/* Essentials Kit Studios, LLC
   Palette and type are drawn from the logo: near-black field, white mark. */

:root {
  --ink:        #0f1114;
  --ink-deep:   #07080a;
  --ink-raised: #14171b;
  --paper:      #ffffff;
  --muted:      #a8adb5;
  --muted-dim:  #767c85;
  --line:       rgba(255, 255, 255, 0.14);
  --line-soft:  rgba(255, 255, 255, 0.07);

  --font-display: "Oswald", "Haettenschweiler", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --measure: 68rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;

  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 100;
  padding: 0.7rem 1.2rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
}

h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 4vw, 2.35rem); }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.3rem); }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
  max-width: 42rem;
}

.eyebrow {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  margin-right: -0.28em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 20, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  width: 2.3rem;
  height: 2.3rem;
  object-fit: contain;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.13em;
  margin-right: -0.13em;
  text-transform: uppercase;
  line-height: 1.15;
}

.brand__name span {
  display: block;
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  margin-right: -0.24em;
  color: var(--muted-dim);
}

.nav__toggle {
  display: none;
  padding: 0.55rem 0.8rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  margin-right: -0.16em;
  text-transform: uppercase;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.1rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list a {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding-block: 0.3rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.nav__list a:hover {
  color: var(--paper);
}

.nav__list a[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--paper);
}

/* ---------- Main / sections ---------- */

main {
  flex: 1;
}

.section {
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  border-top: 1px solid var(--line-soft);
}

/* Keep anchor targets clear of the sticky header. */
.section[id] {
  scroll-margin-top: 5rem;
}

.section--flush {
  border-top: 0;
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section__head h2 + p {
  margin-top: 1.1rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 10vw, 7rem);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  width: min(130vmin, 1000px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 62%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
}

.hero__logo {
  width: clamp(200px, 32vmin, 300px);
  margin: 0 auto 2.25rem;
  filter: drop-shadow(0 18px 45px rgba(0, 0, 0, 0.6));
}

.hero p {
  margin-inline: auto;
}

.hero__rule {
  width: min(100%, 26rem);
  height: 1px;
  margin: 2.25rem auto 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

/* ---------- Cards ---------- */

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.card {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--ink-raised);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: var(--line);
  transform: translateY(-2px);
}

.card__num {
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  color: var(--muted-dim);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Numbered detail blocks (services page) */

.detail {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
  border-top: 1px solid var(--line-soft);
}

.detail:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.detail__body p {
  color: var(--muted);
}

.detail__list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.detail__list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.detail__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.6rem;
  height: 1px;
  background: var(--muted-dim);
}

/* ---------- Prose (about / privacy) ---------- */

.prose {
  max-width: 44rem;
}

.prose h2 {
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  transition: text-decoration-color 0.2s ease;
}

.prose a:hover {
  text-decoration-color: var(--paper);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.85rem calc(1.7rem - 0.16em) 0.85rem 1.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--paper);
  border-radius: 2px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  background: transparent;
  color: var(--paper);
}

.button--ghost {
  color: var(--paper);
  background: transparent;
  border-color: var(--line);
}

.button--ghost:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* ---------- Product / coming soon ---------- */

.product {
  --accent: #9a6be0;
  --accent-deep: #6d3fb5;

  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: start;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--ink-raised);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
}

/* Accent wash bleeding in from the product's own brand colour. */
.product::before {
  content: "";
  position: absolute;
  top: -45%;
  left: -10%;
  width: 34rem;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(154, 107, 224, 0.16) 0%, rgba(154, 107, 224, 0) 66%);
  pointer-events: none;
}

.product > * {
  position: relative;
}

.product__media img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 16px 38px rgba(0, 0, 0, 0.55));
}

.product__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem 0.35rem 0.7rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(154, 107, 224, 0.1);
  border: 1px solid rgba(154, 107, 224, 0.35);
  border-radius: 100px;
}

.product__status::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

.product__name {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

.product__tagline {
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  color: var(--paper);
  max-width: 34rem;
}

.product__body > p:not(.product__tagline):not(.product__status) {
  color: var(--muted);
  max-width: 38rem;
}

.product__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.5rem 2rem;
  margin: 2rem 0 0;
  padding: 1.9rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}

.product__features h4 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
}

.product__features p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* The convoy feature ties the other three together, so it spans the row. */
.product__features li--wide,
.product__features .is-wide {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}

.product__features .is-wide h4 {
  color: var(--accent);
}

.product__features .is-wide p {
  max-width: 42rem;
}

@media (max-width: 46rem) {
  .product {
    grid-template-columns: 1fr;
  }

  .product__media {
    max-width: 11rem;
  }
}

/* ---------- Contact ---------- */

.contact-card {
  max-width: 34rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--ink-raised);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
}

.contact-card h3 {
  margin-bottom: 0.4rem;
}

.contact-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-card__email {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.3rem);
  letter-spacing: 0.02em;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  word-break: break-word;
  transition: border-color 0.2s ease;
}

.contact-card__email:hover {
  border-bottom-color: var(--paper);
}

/* ---------- Footer ---------- */

.footer {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line-soft);
  background: var(--ink-deep);
  font-size: 0.86rem;
  color: var(--muted-dim);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__brand img {
  width: 2.6rem;
  margin-bottom: 0.85rem;
}

.footer__legal {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 0.35rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer a:hover {
  color: var(--paper);
  border-bottom-color: var(--line);
}

.footer__bottom {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}

.footer__bottom p {
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 46rem) {
  .detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 40rem) {
  .nav__toggle {
    display: block;
  }

  .nav__list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--ink);
    border-bottom: 1px solid var(--line-soft);
  }

  .nav[data-open="true"] .nav__list {
    display: flex;
  }

  .nav__list a {
    display: block;
    padding-block: 0.75rem;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav__list a[aria-current="page"] {
    border-bottom-color: var(--paper);
  }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
