/* =============================================================================
   OceanStrive — design system
   -----------------------------------------------------------------------------
   1.  Fonts
   2.  Tokens
   3.  Reset & base
   4.  Layout primitives
   5.  Typography
   6.  Buttons & links
   7.  Header & navigation
   8.  Hero & wave motion
   9.  Cards
   10. Sections & components
   11. Forms
   12. Footer
   13. Utilities & motion
   14. Responsive
   ========================================================================== */

/* 1. Fonts ================================================================= */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-400-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-700-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('../fonts/montserrat-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* 2. Tokens ================================================================ */

:root {
  /* Brand */
  --deep: #123c43;
  --teal: #668e8d;
  --aqua: #3fa7a3;
  --ice: #eaf5f4;
  --cloud: #f7fbfc;
  --graphite: #243238;

  /* Derived depth */
  --deep-900: #0b2a30;
  --deep-800: #0f343a;
  --deep-700: #123c43;
  --deep-600: #17484f;
  --aqua-bright: #4fc4bf;
  --aqua-dim: #2f8a87;

  /* Accessible derivatives of Aqua.
     Brand Aqua (#3FA7A3) is a light accent: it is correct for icons, rules,
     borders and wave art, but fails WCAG AA as text on light surfaces and
     behind white button text. These are its text-safe counterparts.
       --aqua-ink     4.84:1 on Cloud, 4.53:1 on Ice
       --aqua-btn     4.54:1 against white button text
       --aqua-bright  5.69:1 on Deep Ocean */
  --aqua-ink: #2e7a77;
  --aqua-btn: #31827f;
  --aqua-btn-hover: #2a7370;

  /* Accent colour for TEXT. Reassigned on dark surfaces further down, so
     eyebrows, links and labels stay legible in both contexts. */
  --accent-text: var(--aqua-ink);

  /* Light surface roles */
  --bg: var(--cloud);
  --surface: #ffffff;
  --surface-sunken: var(--ice);
  --ink: var(--graphite);
  --ink-2: #4a5a61;
  --ink-3: #5c6c73;   /* 5.24:1 on Cloud, 4.90:1 on Ice */
  --line: #dde9ea;
  --line-strong: #c6dad9;

  /* Dark surface roles (applied inside .is-dark) */
  --d-ink: #ffffff;
  --d-ink-2: #b8d2d2;
  --d-ink-3: #8fadaf;
  --d-line: rgb(255 255 255 / 0.12);
  --d-line-strong: rgb(255 255 255 / 0.22);

  /* Type */
  --font-head: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Lato', 'Segoe UI', system-ui, sans-serif;
  --font-ui: 'Montserrat', 'Segoe UI', system-ui, sans-serif;

  --fs-display: clamp(2.6rem, 1.45rem + 4.6vw, 5.4rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  --fs-h2: clamp(1.85rem, 1.3rem + 2.1vw, 3rem);
  --fs-h3: clamp(1.35rem, 1.12rem + 0.85vw, 1.85rem);
  --fs-h4: clamp(1.12rem, 1.03rem + 0.38vw, 1.32rem);
  --fs-lede: clamp(1.08rem, 1rem + 0.44vw, 1.35rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;

  /* Space */
  --gap: 1.5rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --container: 1240px;
  --container-narrow: 820px;
  --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 2.5rem);

  /* Form */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgb(18 60 67 / 0.05), 0 2px 8px rgb(18 60 67 / 0.04);
  --shadow: 0 2px 4px rgb(18 60 67 / 0.04), 0 12px 32px rgb(18 60 67 / 0.08);
  --shadow-lg: 0 4px 8px rgb(18 60 67 / 0.05), 0 24px 60px rgb(18 60 67 / 0.12);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.42s;

  --header-h: 78px;
}

/* 3. Reset & base ========================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--deep);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

.icon {
  width: 1.5em;
  height: 1.5em;
  flex: none;
}

/* 4. Layout primitives ===================================================== */

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

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}

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

/* Dark surfaces reassign the text/line roles so components adapt in place. */
.is-dark {
  --ink: var(--d-ink);
  --ink-2: var(--d-ink-2);
  --ink-3: var(--d-ink-3);
  --line: var(--d-line);
  --line-strong: var(--d-line-strong);
  --surface: rgb(255 255 255 / 0.04);
  --surface-sunken: rgb(255 255 255 / 0.06);
  --accent-text: var(--aqua-bright);
  background: var(--deep);
  color: var(--d-ink);
}

/* The hero, interior page heroes and CTA band paint their own dark grounds
   without .is-dark, so they need the same accent reassignment. */
.hero,
.page-hero,
.cta-band {
  --accent-text: var(--aqua-bright);
  --ink-3: var(--d-ink-3);
}

.is-ice {
  background: var(--ice);
}

.is-white {
  background: #fff;
}

.grid {
  display: grid;
  gap: var(--gap);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack > * + * {
  margin-top: var(--stack-gap, 1rem);
}

/* 5. Typography ============================================================ */

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
  color: var(--ink);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.24; }
h4 { font-size: var(--fs-h4); line-height: 1.34; letter-spacing: -0.012em; }

p { text-wrap: pretty; }

.display {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.eyebrow--plain::before {
  display: none;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 1.6rem + 3vw, 4rem);
}

.section-head > * + * {
  margin-top: 1.1rem;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .lede {
  margin-inline: auto;
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  max-width: none;
}

/* Grid children are the two columns, so cancel the stacked spacing rule. */
.section-head--split > * + * { margin-top: 0; }

.section-head--split > :first-child > * + * { margin-top: 1.1rem; }

.text-muted { color: var(--ink-2); }
.text-aqua  { color: var(--accent-text); }

.prose {
  max-width: 68ch;
  font-size: 1.09rem;
  line-height: 1.78;
  color: var(--ink-2);
}

.prose > * + * { margin-top: 1.35rem; }

.prose h2 {
  margin-top: 2.9rem;
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 1.95rem);
  color: var(--ink);
}

.prose h3 {
  margin-top: 2.2rem;
  font-size: 1.3rem;
  color: var(--ink);
}

.prose strong { color: var(--ink); font-weight: 700; }

.prose a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose a:hover { color: var(--deep); }

.prose ul,
.prose ol {
  padding-left: 1.35rem;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li + li { margin-top: 0.6rem; }

.prose li::marker { color: var(--aqua); }

.prose code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.9em;
  background: var(--ice);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--deep);
}

.prose blockquote {
  border-left: 3px solid var(--aqua);
  padding-left: 1.4rem;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink);
}

/* 6. Buttons & links ======================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform 0.2s var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn .icon {
  width: 1.15em;
  height: 1.15em;
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .icon { transform: translateX(3px); }

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

.btn--primary {
  background: var(--aqua-btn);
  color: #fff;
  box-shadow: 0 1px 2px rgb(18 60 67 / 0.12), 0 10px 24px rgb(63 167 163 / 0.26);
}

.btn--primary:hover {
  background: var(--aqua-btn-hover);
  box-shadow: 0 2px 4px rgb(18 60 67 / 0.14), 0 14px 34px rgb(63 167 163 / 0.36);
}

.btn--deep {
  background: var(--deep);
  color: #fff;
}

.btn--deep:hover { background: var(--deep-600); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--aqua);
  color: var(--accent-text);
  background: rgb(63 167 163 / 0.06);
}

/* Every dark surface, not just .is-dark — the hero, interior page heroes and
   the CTA band set their own dark backgrounds without that class. */
.is-dark .btn--ghost,
.hero .btn--ghost,
.page-hero .btn--ghost,
.cta-band .btn--ghost {
  color: #fff;
  border-color: rgb(255 255 255 / 0.34);
}

.is-dark .btn--ghost:hover,
.hero .btn--ghost:hover,
.page-hero .btn--ghost:hover,
.cta-band .btn--ghost:hover {
  border-color: var(--aqua);
  color: #fff;
  background: rgb(63 167 163 / 0.18);
}

.btn--white {
  background: #fff;
  color: var(--deep);
}

.btn--white:hover { background: var(--ice); }

.btn--sm { padding: 0.7rem 1.2rem; font-size: 0.875rem; }
.btn--lg { padding: 1.1rem 2.1rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Inline arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-text);
  transition: gap 0.3s var(--ease-out), color 0.3s var(--ease);
}

.is-dark .link-arrow { color: var(--aqua-bright); }

.link-arrow .icon { width: 1.1em; height: 1.1em; }

.link-arrow:hover { gap: 0.85rem; color: var(--deep); }

.is-dark .link-arrow:hover { color: #fff; }

/* 7. Header & navigation =================================================== */

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

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2.5rem);
  width: 100%;
  min-width: 0;
}

.header__logo {
  display: block;
  flex: none;
  margin-right: auto;
}

.header__logo img {
  width: auto;
  height: 34px;
  transition: opacity 0.3s var(--ease);
}

/* Two logo lockups cross-fade as the header changes state. */
.header__logo .logo--light { display: block; }
.header__logo .logo--dark { display: none; }

/* Transparent-over-hero state */
.header--transparent {
  background: transparent;
}

.header--transparent .nav__link,
.header--transparent .header__phone {
  color: rgb(255 255 255 / 0.88);
}

.header--transparent .nav__link:hover,
.header--transparent .nav__link[aria-current='page'] {
  color: #fff;
}

.header--transparent .nav__toggle { color: #fff; }

/* Scrolled / solid state */
.header--solid {
  background: rgb(247 251 252 / 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px rgb(18 60 67 / 0.06);
}

.header--solid .header__logo .logo--light { display: none; }
.header--solid .header__logo .logo--dark { display: block; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav__item { position: relative; }

.nav__link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--radius-sm);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current='page'],
.nav__item--open > .nav__link {
  color: var(--deep);
  background: rgb(63 167 163 / 0.09);
}

.header--transparent .nav__item--open > .nav__link {
  background: rgb(255 255 255 / 0.14);
}

.nav__link .icon {
  width: 0.85em;
  height: 0.85em;
  transition: transform 0.3s var(--ease);
}

.nav__item--open .nav__link .icon { transform: rotate(180deg); }

/* Dropdown */
.nav__panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  translate: -50% 0;
  width: min(680px, 88vw);
  padding: 0.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease-out),
    visibility 0.28s;
}

.nav__item--open .nav__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2rem;
}

.nav__panel-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius);
  transition: background 0.22s var(--ease);
}

.nav__panel-link:hover { background: var(--ice); }

.nav__panel-link .icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  color: var(--aqua);
  flex: none;
}

.nav__panel-title {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--deep);
  line-height: 1.3;
}

.nav__panel-desc {
  display: block;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ink-3);
  margin-top: 0.15rem;
}

.nav__panel-foot {
  margin-top: 0.4rem;
  padding: 0.75rem 0.8rem 0.35rem;
  border-top: 1px solid var(--line);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.25s var(--ease);
}

.header__phone:hover { color: var(--accent-text); }

.header__phone .icon { width: 1.05em; height: 1.05em; }

.nav__toggle {
  display: none;
  padding: 0.5rem;
  color: var(--ink);
  border-radius: var(--radius-sm);
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
}

.drawer[data-open='true'] { visibility: visible; }

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgb(11 42 48 / 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.drawer[data-open='true'] .drawer__scrim { opacity: 1; }

.drawer__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--deep);
  color: #fff;
  transform: translateX(100%);
  transition: transform 0.42s var(--ease-out);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer[data-open='true'] .drawer__panel { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem var(--gutter);
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

.drawer__head img { height: 30px; width: auto; }

.drawer__close {
  padding: 0.5rem;
  color: #fff;
  border-radius: var(--radius-sm);
}

.drawer__body {
  flex: 1;
  padding: 1.25rem var(--gutter) 2rem;
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.95rem 0;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  text-align: left;
}

.drawer__link .icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--aqua-bright);
  transition: transform 0.3s var(--ease);
}

.drawer__group[data-open='true'] > .drawer__link .icon { transform: rotate(180deg); }

.drawer__sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s var(--ease-out);
}

.drawer__group[data-open='true'] .drawer__sub { grid-template-rows: 1fr; }

.drawer__sub-inner {
  overflow: hidden;
}

.drawer__sub a {
  display: block;
  padding: 0.6rem 0 0.6rem 1rem;
  font-size: 0.95rem;
  color: var(--d-ink-2);
  border-left: 1px solid rgb(255 255 255 / 0.15);
}

.drawer__sub a:first-child { margin-top: 0.75rem; }
.drawer__sub a:last-child { margin-bottom: 0.75rem; }
.drawer__sub a:hover { color: #fff; border-left-color: var(--aqua); }

.drawer__foot {
  padding: 1.5rem var(--gutter) 2rem;
  display: grid;
  gap: 0.75rem;
}

.drawer__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--d-ink-2);
}

.drawer__meta .icon { width: 1.1em; height: 1.1em; color: var(--aqua-bright); }

body.is-locked { overflow: hidden; }

/* 8. Hero & wave motion ==================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(600px, 88svh, 900px);
  padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4rem));
  padding-bottom: clamp(3rem, 6vw, 6rem);
  background: var(--deep);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 78% 8%, rgb(63 167 163 / 0.28) 0%, transparent 58%),
    radial-gradient(90% 80% at 12% 92%, rgb(102 142 141 / 0.22) 0%, transparent 60%),
    linear-gradient(168deg, var(--deep-800) 0%, var(--deep-700) 46%, var(--graphite) 100%);
}

/* Animated wave field, drawn as layered SVG that drifts horizontally. */
.hero__waves {
  position: absolute;
  inset: auto 0 -2px;
  z-index: -1;
  height: clamp(220px, 34vh, 420px);
  pointer-events: none;
}

/* The 200% width is what makes the -50% drift loop seamlessly, so it must
   escape the global `max-width: 100%` reset. */
.hero__waves svg,
.cta-band__waves svg {
  width: 200%;
  max-width: none;
  height: 100%;
}

.wave-layer {
  animation: waveDrift linear infinite;
  transform-origin: center;
}

.wave-layer--1 { animation-duration: 34s; opacity: 0.30; }
.wave-layer--2 { animation-duration: 26s; opacity: 0.24; animation-direction: reverse; }
.wave-layer--3 { animation-duration: 44s; opacity: 0.16; }

@keyframes waveDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Fine grid overlay — subtle technical texture, not a gradient wash. */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(80% 60% at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000 0%, transparent 78%);
}

.hero__inner {
  position: relative;
  max-width: 960px;
}

.hero .display { color: #fff; }

.hero__lede {
  margin-top: 1.6rem;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.45rem);
  line-height: 1.58;
  color: rgb(234 245 244 / 0.82);
  max-width: 60ch;
}

.hero__cta {
  margin-top: clamp(2rem, 1.4rem + 2vw, 3rem);
}

.hero__scroll {
  position: absolute;
  right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  writing-mode: vertical-rl;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.5);
}

.hero__scroll::after {
  content: '';
  writing-mode: horizontal-tb;
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, rgb(255 255 255 / 0.45), transparent);
  animation: scrollHint 2.4s var(--ease) infinite;
}

@keyframes scrollHint {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50%      { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}

/* Compact page hero for interior pages */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 6vw, 5.5rem));
  padding-bottom: clamp(3rem, 5vw, 5rem);
  background: var(--deep);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(100% 100% at 84% 0%, rgb(63 167 163 / 0.26) 0%, transparent 60%),
    linear-gradient(160deg, var(--deep-800) 0%, var(--deep-700) 55%, var(--graphite) 100%);
}

.page-hero__inner { max-width: 860px; }
.page-hero h1 { color: #fff; margin-top: 1.1rem; }
.page-hero .lede { color: rgb(234 245 244 / 0.8); margin-top: 1.35rem; }

.page-hero--wide .page-hero__inner { max-width: 1000px; }

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgb(255 255 255 / 0.6);
}

.breadcrumbs a { transition: color 0.25s var(--ease); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumbs li + li::before { content: '/'; opacity: 0.45; }
.breadcrumbs [aria-current] { color: rgb(255 255 255 / 0.85); }

/* 9. Cards ================================================================= */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}

.is-dark .card {
  background: rgb(255 255 255 / 0.04);
  border-color: rgb(255 255 255 / 0.1);
}

.card--link:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.is-dark .card--link:hover {
  background: rgb(255 255 255 / 0.07);
  border-color: rgb(63 167 163 / 0.5);
  box-shadow: none;
}

/* Full-card click target that keeps inner links accessible. */
.card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card__no {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-text);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.35rem;
  color: var(--aqua);
  background: rgb(63 167 163 / 0.1);
  border: 1px solid rgb(63 167 163 / 0.2);
  border-radius: 12px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.card__icon .icon { width: 26px; height: 26px; }

.card--link:hover .card__icon {
  background: var(--aqua);
  border-color: var(--aqua);
  color: #fff;
}

.card__title {
  font-size: 1.18rem;
  line-height: 1.34;
  letter-spacing: -0.014em;
}

.card__body {
  margin-top: 0.7rem;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--ink-2);
}

.card__foot {
  margin-top: auto;
  padding-top: 1.4rem;
}

/* Service card — numbered, with a hairline rule that animates on hover */
.service-card {
  overflow: hidden;
}

.service-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.service-card__rule {
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--aqua);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.service-card:hover .service-card__rule { transform: scaleX(1); }

/* Industry card — image with depth overlay */
.industry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--deep);
}

.industry-card__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

.industry-card:hover .industry-card__img { transform: scale(1.06); }

.industry-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgb(11 42 48 / 0.92) 0%,
    rgb(11 42 48 / 0.62) 42%,
    rgb(11 42 48 / 0.22) 100%
  );
  transition: opacity 0.5s var(--ease);
}

.industry-card:hover::after { opacity: 0.86; }

.industry-card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: auto;
  color: var(--aqua-bright);
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 10px;
  backdrop-filter: blur(6px);
}

.industry-card__icon .icon { width: 21px; height: 21px; }

.industry-card__title {
  margin-top: 1.4rem;
  font-size: 1.24rem;
  color: #fff;
}

.industry-card__blurb {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgb(234 245 244 / 0.82);
}

.industry-card__more {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--aqua-bright);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease-out);
}

.industry-card:hover .industry-card__more,
.industry-card:focus-within .industry-card__more {
  opacity: 1;
  transform: translateY(0);
}

.industry-card__more .icon { width: 1rem; height: 1rem; }

/* Work card */
.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease);
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.work-card__visual {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: linear-gradient(150deg, var(--deep-800), var(--deep-700) 60%, var(--graphite));
  overflow: hidden;
}

.work-card__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 80%);
}

.work-card__visual::after {
  content: '';
  position: absolute;
  inset: auto -10% -30% -10%;
  height: 60%;
  background: radial-gradient(60% 100% at 50% 100%, rgb(63 167 163 / 0.36), transparent 72%);
}

/* Screenshot variant: the image fills the card visual edge to edge. */
.work-card__visual--shot {
  padding: 0;
  display: block;
  background: var(--ice);
}

.work-card__visual--shot::before,
.work-card__visual--shot::after { content: none; }

.shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.9s var(--ease-out);
}

.work-card:hover .shot { transform: scale(1.04); }

/* Standalone image on the case-study page — shown in full, not cropped. */
.shot--full {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  transition: none;
}

/* Typographic fallback when no client logo file exists */
.work-card__wordmark {
  position: relative;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 0.9rem + 1vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  color: #fff;
  text-wrap: balance;
}

.work-card__wordmark span {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--aqua-bright);
}

.work-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.work-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.work-card__meta span + span::before {
  content: '·';
  margin-right: 0.5rem;
  color: var(--line-strong);
}

.work-card__title {
  margin-top: 0.7rem;
  font-size: 1.22rem;
}

.work-card__summary {
  margin-top: 0.6rem;
  font-size: var(--fs-sm);
  line-height: 1.62;
  color: var(--ink-2);
}

.work-card__foot {
  margin-top: auto;
  padding-top: 1.35rem;
}

/* Client logo strip */
.strip-label {
  margin-bottom: 1.75rem;
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-3);
}

/* Cell outlines come from each item, not from a gap-coloured container — so a
   row that does not divide evenly leaves empty space, not a grey filler block. */
.client-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
}

.client-strip__item {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  padding: 1.75rem 1.25rem;
  background: transparent;
  box-shadow: 0 0 0 1px var(--line);
  border-radius: 2px;
  text-align: center;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.is-dark .client-strip__item { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12); }

.client-strip__item:hover {
  background: var(--surface-sunken);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.is-dark .client-strip__item:hover {
  background: rgb(255 255 255 / 0.05);
  box-shadow: 0 0 0 1px rgb(63 167 163 / 0.5);
}

.client-strip__item img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter 0.35s var(--ease), opacity 0.35s var(--ease);
}

.client-strip__item:hover img { filter: grayscale(0); opacity: 1; }

.client-strip__name {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
  text-wrap: balance;
  color: var(--ink);
  opacity: 0.72;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}

.client-strip__item:hover .client-strip__name { opacity: 1; color: var(--accent-text); }
.is-dark .client-strip__item:hover .client-strip__name { color: var(--aqua-bright); }

.client-strip__sector {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Insight card */
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease);
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.post-card__cat { color: var(--accent-text); }

.post-card__title {
  margin-top: 0.85rem;
  font-size: 1.2rem;
  line-height: 1.32;
}

.post-card__excerpt {
  margin-top: 0.7rem;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--ink-2);
}

.post-card__foot { margin-top: auto; padding-top: 1.4rem; }

/* 10. Sections & components =============================================== */

/* Numbered process */
.process {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.process__step {
  display: grid;
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3.5rem);
  padding-block: clamp(1.75rem, 1.2rem + 1.6vw, 2.6rem);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease);
}

.process__step:hover { background: rgb(63 167 163 / 0.04); }
.is-dark .process__step:hover { background: rgb(255 255 255 / 0.03); }

.process__no {
  font-family: var(--font-head);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent-text);
  opacity: 0.75;
}

.process__title { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem); }

.process__summary {
  margin-top: 0.5rem;
  font-size: var(--fs-lede);
  color: var(--ink);
}

.process__detail {
  margin-top: 0.9rem;
  color: var(--ink-2);
  max-width: 62ch;
}

.process__outputs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.is-dark .tag {
  background: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.12);
  color: var(--d-ink-2);
}

.tag--aqua {
  color: var(--accent-text);
  background: rgb(63 167 163 / 0.08);
  border-color: rgb(63 167 163 / 0.22);
}

/* Feature list with check marks */
.check-list {
  display: grid;
  gap: 0.85rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-2);
}

.check-list .icon {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex: none;
  color: var(--aqua);
}

.check-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 2rem; }

/* Split feature row */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.split--reverse > :first-child { order: 2; }

/* Stat / fact row */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.facts__item {
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem) 1.4rem;
  background: var(--bg);
}

.is-dark .facts { background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.1); }
.is-dark .facts__item { background: var(--deep); }

.facts__value {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--aqua);
}

.facts__label {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-2);
}

/* Differentiator row */
.diff {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.diff__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.diff__item:last-child { border-bottom: 0; padding-bottom: 0; }

.diff__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--aqua);
  background: rgb(63 167 163 / 0.12);
  border-radius: 12px;
}

.diff__icon .icon { width: 24px; height: 24px; }

.diff__title { font-size: 1.15rem; }

.diff__body {
  margin-top: 0.5rem;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--ink-2);
}

/* Filter bar */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem);
}

.filter-btn {
  padding: 0.6rem 1.15rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: all 0.28s var(--ease);
}

.filter-btn:hover {
  border-color: var(--aqua);
  color: var(--accent-text);
}

.filter-btn[aria-pressed='true'] {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}

.work-grid__item {
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease-out);
}

.work-grid__item[hidden] { display: none; }

.filter-empty {
  padding: clamp(2.5rem, 2rem + 2vw, 4rem);
  text-align: center;
  background: var(--surface-sunken);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}

.filter-empty h3 { font-size: 1.25rem; }
.filter-empty p { margin-top: 0.7rem; color: var(--ink-2); max-width: 48ch; margin-inline: auto; }
.filter-empty .btn { margin-top: 1.5rem; }

/* Accordion (FAQ) */
.accordion {
  border-top: 1px solid var(--line);
}

.accordion__item { border-bottom: 1px solid var(--line); }

.accordion__trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.4rem 0;
  font-family: var(--font-head);
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}

.accordion__trigger:hover { color: var(--accent-text); }

.accordion__trigger .icon {
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.1rem;
  flex: none;
  color: var(--aqua);
  transition: transform 0.35s var(--ease-out);
}

.accordion__item[data-open='true'] .accordion__trigger .icon { transform: rotate(45deg); }

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);
}

.accordion__item[data-open='true'] .accordion__panel { grid-template-rows: 1fr; }

.accordion__panel-inner { overflow: hidden; }

.accordion__panel p {
  padding-bottom: 1.5rem;
  color: var(--ink-2);
  max-width: 70ch;
}

/* Deliverables columns */
.deliverables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.deliverables__col { padding: 1.6rem; background: var(--surface); }

.deliverables__title {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.deliverables__list { margin-top: 1.1rem; display: grid; gap: 0.7rem; }

.deliverables__list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.deliverables__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--aqua);
}

/* Case study anatomy */
.anatomy {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.anatomy__row {
  display: grid;
  grid-template-columns: minmax(0, 0.28fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.anatomy__label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.anatomy__body { color: var(--ink-2); max-width: 68ch; }
.anatomy__body p + p { margin-top: 1rem; }

.tech-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--deep);
  color: #fff;
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 120% at 82% 12%, rgb(63 167 163 / 0.3) 0%, transparent 58%),
    radial-gradient(80% 100% at 10% 90%, rgb(102 142 141 / 0.24) 0%, transparent 62%),
    linear-gradient(150deg, var(--deep-800), var(--deep-700) 55%, var(--graphite));
}

.cta-band__waves {
  position: absolute;
  inset: auto 0 -1px;
  z-index: -1;
  height: 170px;
  opacity: 0.5;
  pointer-events: none;
}


.cta-band__inner {
  position: relative;
  max-width: 760px;
}

.cta-band h2 { color: #fff; font-size: clamp(2rem, 1.5rem + 2.4vw, 3.4rem); }
.cta-band p { margin-top: 1.2rem; font-size: var(--fs-lede); color: rgb(234 245 244 / 0.82); }
.cta-band .btn-row { margin-top: 2.2rem; }

/* Pull quote */
.pullquote {
  position: relative;
  padding-left: clamp(1.5rem, 3vw, 3rem);
  border-left: 2px solid var(--aqua);
}

.pullquote p {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 1.1rem + 1.1vw, 1.9rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.pullquote cite {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Case-study screenshot presentation */
.shot-frame {
  max-width: 1000px;
  margin-inline: auto;
}

.shot-caption {
  max-width: 1000px;
  margin: 1.1rem auto 0;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-3);
  text-align: center;
}

.shot-caption a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent-text);
  font-weight: 600;
}

.shot-caption a:hover { text-decoration: underline; text-underline-offset: 3px; }
.shot-caption .icon { width: 0.95em; height: 0.95em; }

/* Related items rail */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: clamp(1rem, 2vw, 1.75rem);
  bottom: clamp(1rem, 2vw, 1.75rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.15rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--deep);
  border-radius: 999px;
  box-shadow: 0 6px 26px rgb(11 42 48 / 0.32);
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease),
    opacity 0.3s var(--ease);
}

.wa-float:hover { background: var(--aqua-btn); transform: translateY(-2px); }
.wa-float .icon { width: 1.3rem; height: 1.3rem; }
.wa-float__text { display: inline; }

/* 11. Forms ================================================================ */

.form { display: grid; gap: clamp(1.75rem, 1.4rem + 1.2vw, 2.75rem); }

.fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.fieldset__legend {
  display: block;
  width: 100%;
  padding-bottom: 0.9rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  border-bottom: 1px solid var(--line);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.field { display: grid; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }

.field label,
.field .label {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.field .req { color: var(--accent-text); }

.field .hint {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-3);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }

.select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7c83' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.15rem;
}

/* Placeholders are supplementary — every field has a persistent <label> — but
   keep them legible without letting them read as an entered value. */
.input::placeholder,
.textarea::placeholder { color: #7c8e95; }

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgb(63 167 163 / 0.16);
}

.input[aria-invalid='true'],
.select[aria-invalid='true'],
.textarea[aria-invalid='true'] {
  border-color: #c2453c;
  background: #fdf6f5;
}

.input[aria-invalid='true']:focus,
.textarea[aria-invalid='true']:focus {
  box-shadow: 0 0 0 3px rgb(194 69 60 / 0.14);
}

.field-error {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #b93d34;
}

.field-error[data-show='true'] { display: flex; }

/* Multi-select chips */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip { position: relative; }

.chip input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.chip span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: all 0.25s var(--ease);
}

.chip span::before {
  content: '';
  width: 15px;
  height: 15px;
  flex: none;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  transition: all 0.25s var(--ease);
}

.chip input:hover + span { border-color: var(--aqua); color: var(--accent-text); }

.chip input:checked + span {
  background: rgb(63 167 163 / 0.1);
  border-color: var(--aqua);
  color: var(--deep);
}

.chip input:checked + span::before {
  background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.8 12.6 4.6 4.6 9.8-10.4'/%3E%3C/svg%3E") center / 11px no-repeat;
  border-color: var(--aqua);
}

.chip input:focus-visible + span {
  outline: 3px solid var(--aqua);
  outline-offset: 2px;
}

/* Honeypot — visually and programmatically hidden from humans */
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding-top: 0.5rem;
}

.form__note {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 42ch;
}

/* Form-level alert */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  line-height: 1.6;
}

.alert .icon { width: 1.3rem; height: 1.3rem; flex: none; margin-top: 0.1rem; }

.alert--error {
  background: #fdf2f1;
  border: 1px solid #f0cdc9;
  color: #93312a;
}

.alert--success {
  background: rgb(63 167 163 / 0.09);
  border: 1px solid rgb(63 167 163 / 0.3);
  color: var(--deep);
}

/* Confirmation panel */
.confirm {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}

.confirm__mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 2rem;
  color: #fff;
  background: var(--aqua-btn);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgb(63 167 163 / 0.32);
  animation: confirmPop 0.6s var(--ease-out) both;
}

.confirm__mark .icon { width: 38px; height: 38px; }

@keyframes confirmPop {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.confirm h1 { font-size: clamp(1.7rem, 1.35rem + 1.6vw, 2.5rem); }
.confirm p { margin-top: 1.2rem; color: var(--ink-2); font-size: var(--fs-lede); }
.confirm .btn-row { margin-top: 2.2rem; justify-content: center; }

/* Contact method cards */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--gap);
}

.contact-method {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease-out);
}

.contact-method:hover { border-color: var(--aqua); transform: translateY(-3px); }

.contact-method .icon { width: 1.5rem; height: 1.5rem; color: var(--aqua); }

.contact-method__label {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.contact-method__value {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

/* 12. Footer =============================================================== */

.footer {
  background: var(--deep-900);
  color: var(--d-ink-2);
  font-size: var(--fs-sm);
}

.footer a { transition: color 0.25s var(--ease); }
.footer a:hover { color: #fff; }

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
}

.footer__brand img { height: 34px; width: auto; }

.footer__pitch {
  margin-top: 1.5rem;
  max-width: 34ch;
  line-height: 1.7;
  color: var(--d-ink-3);
}

.footer__contact {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.75rem;
}

.footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--d-ink-2);
}

.footer__contact .icon { width: 1.1rem; height: 1.1rem; color: var(--aqua); flex: none; }

.footer__title {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer__links { display: grid; gap: 0.7rem; }
.footer__links a { color: var(--d-ink-3); }

.footer__social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--d-ink-2);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 10px;
  transition: all 0.28s var(--ease);
}

.footer__social a:hover {
  color: #fff;
  border-color: var(--aqua);
  background: rgb(63 167 163 / 0.16);
}

.footer__social .icon { width: 1.15rem; height: 1.15rem; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.82rem;
  color: var(--d-ink-3);
}

.footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* 13. Utilities & motion ================================================== */

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

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.mt-4 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 2.25rem; }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.maxw-narrow { max-width: 62ch; }

.hairline {
  height: 1px;
  background: var(--line);
  border: 0;
}

/* Scroll-reveal — progressive enhancement, applied by JS only */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] { opacity: 1; transform: none; }
  .wave-layer { animation: none; }
  .industry-card:hover .industry-card__img { transform: none; }
}

/* 14. Responsive =========================================================== */

@media (max-width: 1080px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  :root { --header-h: 70px; }

  .nav,
  .header__phone { display: none; }

  .nav__toggle { display: grid; place-items: center; }

  .header__logo img { height: 30px; }

  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .section-head--split {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .split { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .split--reverse > :first-child { order: 0; }
}

@media (max-width: 620px) {
  /* Logo + CTA + toggle no longer fit on one line. The CTA is the first thing
     inside the drawer, and the WhatsApp button stays pinned, so drop it here. */
  .header__actions .btn { display: none; }

  .header__logo img { height: 28px; }
}

@media (max-width: 760px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }

  .check-list--2 { grid-template-columns: minmax(0, 1fr); }

  .field-grid { grid-template-columns: minmax(0, 1fr); }

  .process__step,
  .anatomy__row { grid-template-columns: minmax(0, 1fr); gap: 0.85rem; }

  .process__no { font-size: 2rem; }

  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }

  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .wa-float { padding: 0.85rem; }
  .wa-float__text { display: none; }

  .hero__scroll { display: none; }

  .btn-row .btn { flex: 1 1 auto; }
}

@media print {
  .header, .footer, .wa-float, .drawer, .hero__waves, .cta-band__waves { display: none !important; }
  body { background: #fff; color: #000; }
  .is-dark, .page-hero, .hero { background: #fff !important; color: #000 !important; }
  .is-dark *, .page-hero *, .hero * { color: #000 !important; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 0.8em; }
}
