/* ===========================================================================
   Etetos — site styles
   Dark-first, cinematic. Full-bleed video hero with floating text; alternating
   dark/light bands below. Colours come entirely from tokens.css.
   =========================================================================== */

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

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

body {
  margin: 0;
  background: var(--abyss);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img,
picture,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--coral);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- shared type ---------- */

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

.kicker {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 24px;
}

.kicker-quiet {
  color: var(--on-dark-2);
}

/* On the light band the accent has to darken to stay legible (see tokens.css). */
.on-light .kicker,
.on-light .person-role,
.on-light .textlink {
  color: var(--coral-ink);
}

.on-light .textlink {
  border-bottom-color: rgba(194, 62, 43, 0.42);
}

.on-light .textlink:hover {
  border-bottom-color: var(--coral-ink);
}

.on-light .kicker-quiet {
  color: var(--on-light-2);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-h2);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h3);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lede {
  font-size: var(--text-lede);
  line-height: 1.55;
  color: var(--on-dark-2);
  max-width: 54ch;
}

.on-light .lede {
  color: var(--on-light-2);
}

.micro {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.1em;
  color: var(--on-dark-2);
  line-height: 1.6;
}

.on-light .micro {
  color: var(--on-light-2);
}

/* ---------- buttons ---------- */

.btn {
  --btn-bg: var(--coral);
  /* Deep navy rather than white: white on this coral is only 3.15:1, the ink
     is 5.79:1 — and the darker label reads sharper against the accent. */
  --btn-fg: var(--abyss);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 100px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.btn:hover {
  background: var(--coral-hot);
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--on-dark);
  border-color: rgba(238, 246, 250, 0.42);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(238, 246, 250, 0.12);
  border-color: var(--on-dark);
}

.on-light .btn-ghost {
  --btn-fg: var(--on-light);
  border-color: var(--line-light);
}

.on-light .btn-ghost:hover {
  background: rgba(11, 39, 64, 0.06);
  border-color: var(--on-light);
}

.btn-sm {
  height: 42px;
  padding: 0 20px;
  font-size: 14px;
}

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn[aria-busy='true'] {
  cursor: progress;
}

.textlink {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 97, 78, 0.4);
  padding-bottom: 2px;
  transition: border-color var(--dur-fast) var(--ease);
}

.textlink:hover {
  border-bottom-color: var(--coral);
}

/* ---------- header ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 76px;
  display: flex;
  align-items: center;
  transition:
    background var(--dur-mid) var(--ease),
    border-color var(--dur-mid) var(--ease);
  border-bottom: 1px solid transparent;
}

/* Solid only once scrolled past the hero — over the video it floats. */
.topbar.is-stuck {
  background: rgba(6, 22, 38, 0.9);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark-2);
}

.topbar-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--on-dark);
}

/* The supplied logo is a white lockup (network mark over the ETETOS wordmark),
   so it is only ever placed on the dark bands. */
.brand-logo {
  height: 54px; /* stacked lockup in a 76px bar — needs the height to stay legible */
  width: auto;
}

.brand-logo-lg {
  height: 68px;
}

@media (max-width: 560px) {
  .brand-logo {
    height: 46px;
  }
}

.topnav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.topnav a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark);
  opacity: 0.72;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition:
    opacity var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.topnav a:hover,
.topnav a[aria-current='true'] {
  opacity: 1;
  border-bottom-color: var(--coral);
}

.topbar-cta {
  margin-left: 8px;
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  /* Reserve the fixed header's height. Without this, a hero taller than the
     viewport pushes its own first line up underneath the logo. */
  padding-top: calc(var(--head-h) + 28px);
}

.hero-media,
.hero-media video,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Truck sits left-of-centre; bias the crop so it survives narrow viewports. */
  object-position: 42% center;
  z-index: -2;
}

/* Two scrims: a bottom ramp for the text, and a light overall veil so the
   header and any crop still read. Tuned to keep AA contrast at every size. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Lighter than before: the text block sits low, so only the bottom needs a
     firm ramp — the truck keeps the upper two-thirds of the frame. */
  background:
    linear-gradient(
      to top,
      rgba(6, 22, 38, 0.92) 0%,
      rgba(6, 22, 38, 0.78) 22%,
      rgba(6, 22, 38, 0.34) 48%,
      rgba(6, 22, 38, 0.1) 68%,
      rgba(6, 22, 38, 0.3) 100%
    ),
    linear-gradient(to right, rgba(6, 22, 38, 0.42) 0%, rgba(6, 22, 38, 0) 55%);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 9vh, 110px);
}

/* Hierarchy over volume: a quiet one-line setup, then one enormous payoff line.
   The old three-equal-lines slab covered the truck — the best thing on screen. */
.hero-title {
  margin-bottom: 26px;
}

.hero-pre,
.hero-big {
  display: block;
  font-style: normal;
  text-transform: uppercase;
}

.hero-pre {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 2vw, 27px);
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--mist);
  margin-bottom: 10px;
}

.hero-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(58px, 9.4vw, 138px);
  letter-spacing: -0.045em;
  line-height: 0.92;
  color: var(--coral);
}

.hero-lede {
  font-size: var(--text-lede);
  line-height: 1.6;
  color: var(--mist);
  /* Wide enough that the one-sentence lede stays on one line at desktop;
     balance keeps the mobile wrap even instead of orphaning two words. */
  max-width: 60ch;
  text-wrap: balance;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(56px, 9vh, 110px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
  opacity: 0.7;
  text-decoration: none;
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, var(--mist));
}

/* ---------- section frame ---------- */

.band {
  padding: clamp(72px, 11vw, 150px) 0;
  position: relative;
  /* The header is fixed; without this an anchored section starts underneath it. */
  scroll-margin-top: 76px;
}

.band-dark {
  background: var(--abyss);
}

.band-deep {
  background: var(--deep);
}

.band-light {
  background: var(--paper);
  color: var(--on-light);
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(36px, 5vw, 68px);
}

.section-head .lede {
  margin-top: 18px;
}

/* ---------- statement ---------- */

.statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-statement);
  line-height: 1.16;
  letter-spacing: -0.03em;
  max-width: 20ch;
  text-wrap: balance;
}

.statement b {
  color: var(--coral);
  font-weight: 700;
}

.statement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}

.statement-side {
  display: grid;
  gap: 24px;
}

.stat {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-dark);
}

.stat dt {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  margin-bottom: 8px;
}

.stat dd {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
}

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  align-items: start;
}

.card {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-xl);
  padding: 30px;
}

.band-dark .card,
.band-deep .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-dark);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: rgba(244, 97, 78, 0.14);
  color: var(--coral);
}

.card .h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--on-light-2);
}

.band-dark .card p,
.band-deep .card p {
  color: var(--on-dark-2);
}

.pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 100px;
  white-space: nowrap;
}

.pill-live {
  color: var(--live);
  background: var(--live-soft);
}

.pill-quiet {
  color: var(--on-dark-2);
  border: 1px solid var(--line-dark);
}

.on-light .pill-quiet {
  color: var(--on-light-2);
  border-color: var(--line-light);
}

.ticks {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.ticks li {
  position: relative;
  padding-left: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--on-light-2);
}

.band-dark .ticks li,
.band-deep .ticks li {
  color: var(--on-dark-2);
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1px;
  background: var(--coral);
}

.card-dashed {
  background: transparent;
  border-style: dashed;
}

/* The consulting offer carries the accent so it reads as a second real service,
   not an afterthought beside the build work. */
.card-accent {
  border-color: rgba(244, 97, 78, 0.34);
  background: linear-gradient(158deg, rgba(244, 97, 78, 0.09), rgba(255, 255, 255, 0.62) 62%);
}

.band-dark .card-accent,
.band-deep .card-accent {
  background: linear-gradient(158deg, rgba(244, 97, 78, 0.14), rgba(255, 255, 255, 0.04) 62%);
}

.pill-accent {
  color: var(--coral-ink);
  background: rgba(244, 97, 78, 0.16);
}

.band-dark .pill-accent,
.band-deep .pill-accent {
  color: var(--coral);
}

/* The one line that has to land before the paragraph does. */
.card-lead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(21px, 1.9vw, 27px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--coral-ink) !important;
  margin-bottom: 12px;
}

.band-dark .card-lead,
.band-deep .card-lead {
  color: var(--coral) !important;
}

/* ---------- case study ---------- */

.case-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 36px;
}

.case-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  margin-bottom: 44px;
}

.case-cols p + p {
  margin-top: 16px;
}

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 22px;
  align-self: start;
}

.specs dt {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  margin-bottom: 6px;
}

.specs dd {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--on-dark);
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 18px;
}

.shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-dark);
}

.shot figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}

/* ---------- team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  max-width: 880px;
}

/* No plate behind the portraits — they are transparent cut-outs, so they sit
   directly on the band and read as artwork rather than as avatars. */
.person-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 240px;
  margin-bottom: 18px;
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.person-role {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 6px 0 14px;
}

.person p {
  color: var(--on-light-2);
  max-width: 44ch;
}

.person p + p {
  margin-top: 12px;
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.form {
  display: grid;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xl);
  padding: 30px;
}

.field {
  display: grid;
  gap: 7px;
}

.field-label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}

.input {
  height: 48px;
  padding: 0 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-dark);
  background: rgba(6, 22, 38, 0.6);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 15px;
  transition:
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}

.input::placeholder {
  color: var(--on-dark-2);
  opacity: 0.65;
}

.input:hover {
  border-color: rgba(244, 97, 78, 0.5);
}

.input:focus-visible {
  border-color: var(--coral);
  background: rgba(6, 22, 38, 0.9);
}

.input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- footer ---------- */

.sitefoot {
  background: var(--abyss);
  border-top: 1px solid var(--line-dark-2);
  padding: 54px 0 64px;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.foot-col {
  display: grid;
  gap: 8px;
  align-content: start;
}

/* ---------- motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .rise {
    animation: rise var(--dur-mid) var(--ease) both;
    animation-delay: calc(var(--i, 0) * 90ms);
  }

  .observe {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity var(--dur-mid) var(--ease),
      transform var(--dur-mid) var(--ease);
  }

  .observe.in-view {
    opacity: 1;
    transform: none;
  }
}

/* Reduced motion: nothing moves, nothing stays hidden, video does not autoplay. */
@media (prefers-reduced-motion: reduce) {
  .rise,
  .observe {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .statement-grid,
  .case-cols,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .statement {
    max-width: 24ch;
  }
}

@media (max-width: 820px) {
  .topnav {
    display: none;
  }

  .topbar-cta {
    margin-left: auto;
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .card,
  .form {
    padding: 22px;
  }
}

/* Short-and-wide viewports (a laptop in landscape, a projector): the hero must
   not push its own text off-screen. */
@media (max-height: 620px) and (min-width: 821px) {
  .hero {
    min-height: 620px;
  }

  .hero-pre {
    font-size: 17px;
  }

  .hero-big {
    font-size: clamp(44px, 6.5vw, 76px);
  }

  .hero-lede {
    margin-bottom: 24px;
  }
}
