/* ==========================================================================
   Zinnia — styles
   Tokens first; then base, layout, components, sections.
   ========================================================================== */

:root {
  /* Palette */
  --bg: #F8F3F0;
  --bg-alt: #F0E9E5;
  --surface: #FFFCFA;
  --ink: #0D1626;
  --ink-2: #3A4558;
  --ink-3: #586377;
  --line: rgba(13, 22, 38, 0.14);
  --line-strong: rgba(13, 22, 38, 0.28);
  --accent: #014BAA;          /* royal blue: AAA on --bg */
  --accent-soft: #DCE6F5;
  --accent-light: #A9C8FF;    /* for use on the royal blue contact section */
  --dark: #014BAA;            /* contact section */
  --dark-2: #013F90;
  --on-dark: #F8F3F0;
  --on-dark-2: #CFDDF3;
  --on-accent: #FFFFFF;
  --hover-tint: rgba(13, 22, 38, .05);
  --field-bg: var(--surface);
  --enquiry-bg: var(--bg);

  /* Glass (floating UI only) */
  --glass-bg: rgba(255, 252, 250, .55);
  --glass-bg-strong: rgba(248, 243, 240, .78);
  --glass-border: rgba(255, 255, 255, .65);
  --glass-edge: rgba(13, 22, 38, .08);
  --glass-highlight: rgba(255, 255, 255, .8);
  --glass-shadow: 0 24px 48px -22px rgba(13, 30, 66, .38), 0 6px 14px -8px rgba(13, 30, 66, .16);
  --glass-blur: blur(22px) saturate(1.8);
  --glass-bg-open: rgba(255, 252, 250, .72);
  --glass-shadow-lift: 0 34px 64px -26px rgba(13, 30, 66, .45), 0 10px 20px -10px rgba(13, 30, 66, .2);
  --shadow-color: 13, 30, 66;

  color-scheme: light;

  /* Type */
  --font-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;

  /* Layout */
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 72px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Dark theme: follows the system unless the visitor picked light; data-theme="dark" forces it */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A101C;
    --bg-alt: #0E1524;
    --surface: #141C2D;
    --ink: #F8F3F0;
    --ink-2: #C5CBD6;
    --ink-3: #949DAE;
    --line: rgba(248, 243, 240, 0.12);
    --line-strong: rgba(248, 243, 240, 0.26);
    --accent: #7EA6F2;
    --accent-soft: rgba(126, 166, 242, .2);
    --dark: #013A85;
    --on-accent: #0A101C;
    --hover-tint: rgba(248, 243, 240, .07);
    --field-bg: #1B2436;
    --enquiry-bg: #111A2B;
    --glass-bg: rgba(22, 31, 50, .55);
    --glass-bg-strong: rgba(10, 16, 28, .78);
    --glass-border: rgba(255, 255, 255, .12);
    --glass-edge: rgba(0, 0, 0, .4);
    --glass-highlight: rgba(255, 255, 255, .1);
    --glass-shadow: 0 24px 48px -20px rgba(0, 0, 0, .7), 0 6px 14px -8px rgba(0, 0, 0, .45);
    --glass-bg-open: rgba(26, 36, 58, .7);
    --glass-shadow-lift: 0 34px 64px -24px rgba(0, 0, 0, .8), 0 10px 20px -10px rgba(0, 0, 0, .5);
    --shadow-color: 0, 0, 0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A101C;
  --bg-alt: #0E1524;
  --surface: #141C2D;
  --ink: #F8F3F0;
  --ink-2: #C5CBD6;
  --ink-3: #949DAE;
  --line: rgba(248, 243, 240, 0.12);
  --line-strong: rgba(248, 243, 240, 0.26);
  --accent: #7EA6F2;
  --accent-soft: rgba(126, 166, 242, .2);
  --dark: #013A85;
  --on-accent: #0A101C;
  --hover-tint: rgba(248, 243, 240, .07);
  --field-bg: #1B2436;
  --enquiry-bg: #111A2B;
  --glass-bg: rgba(22, 31, 50, .55);
  --glass-bg-strong: rgba(10, 16, 28, .78);
  --glass-border: rgba(255, 255, 255, .12);
  --glass-edge: rgba(0, 0, 0, .4);
  --glass-highlight: rgba(255, 255, 255, .1);
  --glass-shadow: 0 24px 48px -20px rgba(0, 0, 0, .7), 0 6px 14px -8px rgba(0, 0, 0, .45);
  --glass-bg-open: rgba(26, 36, 58, .7);
  --glass-shadow-lift: 0 34px 64px -24px rgba(0, 0, 0, .8), 0 10px 20px -10px rgba(0, 0, 0, .5);
  --shadow-color: 0, 0, 0;
  color-scheme: dark;
}

/* Shared glass surface. Used only on UI that floats over content. */
.glass,
.site-header.is-scrolled .header-inner,
.site-header.is-open .header-inner,
.menu-sheet,
.work-tag,
.hv-card,
.hv-browser,
.fold,
.why-item {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 0 0 .5px var(--glass-edge), var(--glass-shadow);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  transition: background-color .3s, color .3s;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
}

::selection { background: var(--accent); color: var(--on-accent); }

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

[tabindex="-1"]:focus { outline: none; }

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

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: .75em 1.4em;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn-icon { width: 1.15em; height: 1.15em; flex: none; transition: transform .3s var(--ease); }
.btn:hover .btn-icon:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary { --btn-bg: var(--ink); --btn-fg: var(--bg); }

.btn--ghost { --btn-border: var(--line-strong); }
.btn--ghost:hover { --btn-border: var(--ink); --btn-bg: var(--hover-tint); }

.btn--accent { --btn-bg: var(--on-dark); --btn-fg: var(--dark); }
.btn--accent:hover { --btn-bg: var(--on-dark); }

.btn--ghost-light { --btn-fg: var(--on-dark); --btn-border: rgba(248, 243, 240, .35); }
.btn--ghost-light:hover { --btn-border: var(--on-dark); --btn-bg: rgba(248, 243, 240, .06); }

.btn--sm { min-height: 42px; padding: .6em 1.1em; font-size: .9375rem; }

/* ---------- Wordmark ---------- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
  color: var(--ink);
  --mark-center: var(--bg);
}
.wordmark-mark { width: 28px; height: 28px; color: var(--accent); transition: transform .8s var(--ease); }
.wordmark:hover .wordmark-mark { transform: rotate(60deg); }
.wordmark-text {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.045em;
  line-height: 1;
  transform: translateY(-1px);
}

/* ---------- Header ---------- */
/* Transparent at the top; the inner bar becomes a floating glass pill once the page scrolls.
   No filter on .site-header itself, so the fixed mobile menu is positioned against the viewport. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 8px;
}
.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  width: calc(100% - 2 * var(--gutter) + 32px);
  max-width: calc(var(--container) - 2 * var(--gutter) + 32px);
  height: calc(var(--header-h) - 16px);
  margin-inline: auto;
  padding-inline: 16px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
@media (max-width: 860px) {
  .header-inner { width: calc(100% - 16px); gap: 10px; padding-inline: 14px 6px; }
}

/* Desktop compact header, built to cost almost nothing while it animates:
   the bar keeps its size; its glass is a separate layer whose edges glide inward, and the
   logo and the right-hand controls slide in with `translate`. No text or button is resized,
   so the page is never re-laid out during the transition. --cshift is set by main.js. */
@media (min-width: 861px) {
  .site-header.is-scrolled .header-inner {
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-color: transparent;
    box-shadow: none;
  }
  .header-inner::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    z-index: -1;
    border-radius: 999px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 var(--glass-highlight), 0 0 0 .5px var(--glass-edge), var(--glass-shadow);
    opacity: 0;
    transition: opacity .3s ease, left .5s cubic-bezier(.22, 1, .36, 1), right .5s cubic-bezier(.22, 1, .36, 1),
      top .5s cubic-bezier(.22, 1, .36, 1), bottom .5s cubic-bezier(.22, 1, .36, 1);
  }
  .site-header.is-scrolled .header-inner::before {
    opacity: 1;
    top: 4px; bottom: 4px;
    left: var(--cshift, 0px);
    right: var(--cshift, 0px);
  }
  .header-inner .wordmark, .header-inner .primary-nav { transition: translate .5s cubic-bezier(.22, 1, .36, 1); }
  .header-inner .header-cta, .header-inner .theme-toggle {
    transition:
      translate .5s cubic-bezier(.22, 1, .36, 1),
      transform 1s cubic-bezier(.22, 1, .36, 1), background-color 1s cubic-bezier(.22, 1, .36, 1),
      border-color 1s cubic-bezier(.22, 1, .36, 1), box-shadow 1s cubic-bezier(.22, 1, .36, 1), color .6s ease;
  }
  .site-header.is-scrolled .wordmark { translate: var(--cshift, 0px) 0; }
  .site-header.is-scrolled .primary-nav,
  .site-header.is-scrolled .theme-toggle,
  .site-header.is-scrolled .header-cta { translate: calc(-1 * var(--cshift, 0px)) 0; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header-inner::before { background: var(--surface); }
}
@media (prefers-reduced-transparency: reduce) {
  .header-inner::before { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.theme-toggle:hover { background: var(--hover-tint); border-color: var(--ink); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
@media (max-width: 860px) {
  .theme-toggle { margin-left: auto; }
}

.primary-nav { margin-left: auto; position: relative; }
.primary-nav ul { position: relative; z-index: 1; }
/* Glass highlight that slides to the link of the section in view */
.nav-pill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: rgba(1, 75, 170, .1);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .8), inset 0 -2px 6px rgba(1, 75, 170, .08), 0 6px 16px -8px rgba(var(--shadow-color), .45);
  opacity: 0;
  transform: translateX(0);
  transition: transform .55s cubic-bezier(.3, 1.25, .5, 1), width .55s cubic-bezier(.3, 1.25, .5, 1), opacity .4s ease;
  pointer-events: none;
}
.nav-pill.is-on { opacity: 1; }
:root[data-theme="dark"] .nav-pill { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .2), 0 6px 16px -8px rgba(0, 0, 0, .6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-pill { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .2), 0 6px 16px -8px rgba(0, 0, 0, .6); }
}
.primary-nav a[aria-current="true"] { color: var(--ink); }
.primary-nav ul { display: flex; gap: 6px; }
.primary-nav a {
  display: block;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: .975rem;
  color: var(--ink-2);
  transition: color .2s, background-color .2s;
}
.primary-nav a:hover { color: var(--ink); background: var(--hover-tint); }
.primary-nav a[aria-current="true"] { color: var(--ink); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
  font-size: .9375rem;
}
.menu-toggle-label { display: inline-grid; }
.menu-toggle-label > span { grid-area: 1 / 1; text-align: center; transition: opacity .2s; }
.menu-toggle-label .label-open,
.menu-toggle[aria-expanded="true"] .label-closed { opacity: 0; }
.menu-toggle[aria-expanded="true"] .label-open { opacity: 1; }
.menu-toggle-lines {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
}
.menu-toggle-lines span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.6px;
  background: var(--bg);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle-lines span:first-child { top: 14px; }
.menu-toggle-lines span:last-child { top: 20px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:first-child { top: 17px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:last-child { top: 17px; transform: rotate(-45deg); }

/* Mobile menu: an iOS 26-style Liquid Glass sheet that grows out of the Menu button,
   over a lightly dimmed and blurred page. */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow-y: auto;
  padding: calc(var(--header-h) + 2px) 8px 24px;
}
/* Dim layer as a pseudo-element: a filter or fading opacity on .mobile-menu itself would stop the
   sheet's glass from blurring the page behind it. */
.mobile-menu::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(6, 12, 24, .16);
}
.mobile-menu[hidden] { display: none; }

.menu-sheet {
  position: relative;
  margin-left: auto;
  max-width: 420px;
  padding: 8px;
  border-radius: 32px;
  transform-origin: calc(100% - 40px) -20px;
}
.sheet-group { display: grid; }
.sheet-group li + li a::before { /* inset hairline separators, iOS-style */
  content: "";
  position: absolute;
  top: 0; left: 18px; right: 18px;
  height: 1px;
  background: var(--line);
  transform: scaleY(.6);
}
.sheet-group li:hover + li a::before,
.sheet-group a:hover::before { opacity: 0; }
.sheet-group a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 14px 10px 18px;
  border-radius: 24px;
  text-decoration: none;
  transition: background-color .2s, transform .25s cubic-bezier(.3, 1.4, .5, 1);
}
.sheet-group a:hover, .sheet-group a[aria-current="true"] { background: var(--hover-tint); }
.sheet-group a:active { background: var(--hover-tint); transform: scale(.97); }
.sheet-text { display: grid; gap: 1px; flex: 1; min-width: 0; }
.sheet-title { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.sheet-sub { font-size: .8125rem; color: var(--ink-3); line-height: 1.3; }
.sheet-chevron { width: 18px; height: 18px; flex: none; color: var(--ink-3); }

.sheet-actions { display: grid; gap: 8px; margin-top: 8px; }
.sheet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--hover-tint);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), background-color .2s;
}
.sheet-btn:active { transform: scale(.97); }
.sheet-btn--primary { background: var(--ink); color: var(--bg); border-color: transparent; box-shadow: none; }

@media (prefers-reduced-motion: no-preference) {
  .mobile-menu:not([hidden])::before { animation: scrim-in .3s ease both; }
  .mobile-menu:not([hidden]) .menu-sheet { animation: sheet-in .5s cubic-bezier(.32, 1.3, .5, 1) both; }
  .mobile-menu.is-closing::before { animation: scrim-out .22s ease both; }
  .mobile-menu.is-closing .menu-sheet { animation: sheet-out .22s cubic-bezier(.4, 0, .9, .5) both; }
  .mobile-menu:not([hidden]) .sheet-group li,
  .mobile-menu:not([hidden]) .sheet-actions { animation: row-in .45s var(--ease) both; }
  .mobile-menu:not([hidden]) .sheet-group li:nth-child(2) { animation-delay: .03s; }
  .mobile-menu:not([hidden]) .sheet-group li:nth-child(3) { animation-delay: .06s; }
  .mobile-menu:not([hidden]) .sheet-group li:nth-child(4) { animation-delay: .09s; }
  .mobile-menu:not([hidden]) .sheet-group li:nth-child(5) { animation-delay: .12s; }
  .mobile-menu:not([hidden]) .sheet-actions { animation-delay: .15s; }
  .mobile-menu.is-closing .sheet-group li, .mobile-menu.is-closing .sheet-actions { animation: none; }
}
@keyframes scrim-in { from { opacity: 0; } }
@keyframes scrim-out { to { opacity: 0; } }
@keyframes sheet-in { from { opacity: 0; transform: scale(.6); filter: blur(6px); } }
@keyframes sheet-out { to { opacity: 0; transform: scale(.7); filter: blur(4px); } }
@keyframes row-in { from { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 860px) {
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 861px) {
  .mobile-menu { display: none !important; }
}

/* ---------- Opening animation ---------- */
.intro { display: none; }
.intro-on .intro { display: block; position: fixed; inset: 0; z-index: 100; }
.intro-bg { position: absolute; inset: 0; background: var(--bg); }
.intro-logo {
  position: fixed;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--ink);
  transform-origin: 0 0;
  opacity: 0;
  will-change: transform, opacity;
  --mark-center: var(--bg);
}
.intro-logo .wordmark-mark { width: 28px; height: 28px; color: var(--accent); will-change: transform; }
/* While it plays, the real header logo waits and the hero's own entrance holds */
.intro-on .header-inner .wordmark { opacity: 0; }
.intro-on .hero-copy > *, .intro-on .hv-browser, .intro-on .hv-card { animation-play-state: paused !important; }

/* ---------- Shared section bits ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink-2);
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.section { padding-block: clamp(80px, 11vw, 150px); }
.section--tight { padding-top: clamp(40px, 6vw, 80px); }
.section--alt { background: var(--bg-alt); }

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 20px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-index {
  grid-column: 1 / -1;
  font-size: .875rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .02em;
}
.section-title {
  grid-column: 1 / span 8;
  font-size: clamp(2.25rem, 5.2vw, 4.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.section-title em { letter-spacing: -0.015em; }
.section-intro {
  grid-column: 9 / -1;
  align-self: end;
  color: var(--ink-2);
  max-width: 42ch;
}
@media (max-width: 960px) {
  .section-title, .section-intro { grid-column: 1 / -1; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: clamp(48px, 6vw, 72px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-title {
  margin-top: 22px;
  font-size: clamp(2.75rem, 5.9vw, 5.5rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero-title em { color: var(--accent); letter-spacing: -0.02em; padding-right: .04em; }
.hero-lede {
  margin-top: 28px;
  max-width: 52ch;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  color: var(--ink-2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-strip li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .875rem;
  color: var(--ink-2);
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Hero visual (decorative composition) */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.02;
  width: 100%;
  max-width: 600px;
  justify-self: end;
  container-type: inline-size;
}
@media (max-width: 960px) {
  .hero-visual { justify-self: center; max-width: 560px; aspect-ratio: 1 / .92; }
}

.hv-bloom {
  position: absolute;
  top: -6%; right: -14%;
  width: 62%;
  color: var(--accent);
  opacity: .9;
  --mark-center: var(--bg);
}
.hv-bloom svg { width: 100%; height: auto; aspect-ratio: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hv-bloom svg { animation: spin 90s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.hv-browser {
  position: absolute;
  left: 4%; top: 12%;
  width: 84%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hv-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 7.5cqi;
  min-height: 30px;
  padding-inline: 3cqi;
  border-bottom: 1px solid var(--line);
}
.hv-bar > span { width: 1.6cqi; height: 1.6cqi; min-width: 7px; min-height: 7px; border-radius: 50%; background: var(--line-strong); }
.hv-url {
  margin-inline: auto;
  padding: .6cqi 3cqi;
  border-radius: 999px;
  background: var(--bg);
  font-size: max(9px, 1.9cqi);
  color: var(--ink-3);
  letter-spacing: .01em;
}
.hv-page { position: relative; padding: 4cqi 4.5cqi 5cqi; }
.hv-grid {
  position: absolute;
  inset: 0 4.5cqi;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.2cqi;
  pointer-events: none;
}
.hv-grid i { background: rgba(1, 75, 170, .055); border-inline: 1px dashed rgba(1, 75, 170, .14); }
.hv-nav { position: relative; display: flex; align-items: center; gap: 2cqi; }
.hv-nav b { width: 9cqi; height: 2cqi; border-radius: 4px; background: var(--ink); }
.hv-nav span { width: 6cqi; height: 1.2cqi; border-radius: 4px; background: var(--line-strong); }
.hv-nav span:first-of-type { margin-left: auto; }
.hv-nav em { width: 10cqi; height: 3.6cqi; border-radius: 999px; background: var(--ink); }
.hv-headline { position: relative; margin-top: 7cqi; display: grid; }
.hv-h {
  font-size: 7.2cqi;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}
.hv-h i { font-family: var(--font-serif); font-weight: 400; color: var(--accent); letter-spacing: -0.01em; }
.hv-lines { position: relative; display: grid; gap: 1.4cqi; margin-top: 3.5cqi; }
.hv-lines span { height: 1.4cqi; border-radius: 4px; background: var(--line); width: 62%; }
.hv-lines span:last-child { width: 44%; }
.hv-buttons { position: relative; display: flex; gap: 1.6cqi; margin-top: 3.5cqi; }
.hv-buttons b { width: 16cqi; height: 4.6cqi; border-radius: 999px; background: var(--ink); }
.hv-buttons em { width: 13cqi; height: 4.6cqi; border-radius: 999px; border: 1px solid var(--line-strong); }
.hv-media { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.6cqi; margin-top: 5cqi; height: 20cqi; }
.hv-tile { border-radius: 2cqi; }
.hv-tile--a { background: radial-gradient(120% 90% at 20% 110%, #7EA6F2 0%, transparent 55%), linear-gradient(160deg, #0D1A33, #1B3566); }
.hv-tile--b { background: linear-gradient(180deg, #E8E1DC, #D6DCE6); }
.hv-tile--c { background: radial-gradient(circle at 50% 55%, var(--accent) 0 22%, transparent 23%), #E3EBF8; }
.hv-annot {
  position: absolute;
  padding: .5cqi 1.4cqi;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: max(9px, 1.7cqi);
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.hv-annot--1 { bottom: 7cqi; left: 7cqi; }
.hv-annot--2 { top: 12.5cqi; right: 6cqi; background: var(--ink); color: var(--bg); }

.hv-card {
  position: absolute;
  border-radius: var(--radius-lg);
  padding: 3cqi 3.4cqi;
}
.hv-label {
  display: block;
  font-size: max(9px, 1.8cqi);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hv-type { left: 0; bottom: 2%; width: 34%; }
.hv-aa { display: block; font-family: var(--font-serif); font-size: 13cqi; line-height: 1; margin-top: 1cqi; }
.hv-meta { display: block; font-size: max(9px, 1.7cqi); color: var(--ink-3); margin-top: .8cqi; }
.hv-swatches { display: flex; gap: 1cqi; margin-top: 2cqi; }
.hv-swatches span { width: 4.2cqi; height: 4.2cqi; border-radius: 50%; border: 1px solid var(--line); }
.hv-swatches span:nth-child(1) { background: var(--ink); }
.hv-swatches span:nth-child(2) { background: var(--accent); }
.hv-swatches span:nth-child(3) { background: var(--accent-soft); }
.hv-swatches span:nth-child(4) { background: var(--bg); }

.hv-check { right: 0; bottom: 8%; width: 46%; }
.hv-check ul { display: grid; gap: 1.2cqi; margin-top: 1.8cqi; }
.hv-check li {
  display: flex;
  align-items: center;
  gap: 1.6cqi;
  font-size: max(10px, 2.3cqi);
  font-weight: 500;
  line-height: 1.25;
}
.hv-check li::before {
  content: "";
  flex: none;
  width: 3.2cqi; height: 3.2cqi;
  min-width: 12px; min-height: 12px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.3 2.6 2.4L12 5.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 75% no-repeat;
}

@media (max-width: 560px) {
  .hero-visual { aspect-ratio: 1 / .86; }
  .hv-browser { left: 0; width: 100%; top: 6%; }
  .hv-bloom { right: -22%; top: -10%; }
  .hv-check { display: none; }
  .hv-type { left: auto; right: 4%; bottom: 0; width: 40%; }
  .hv-annot--2 { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .hv-browser, .js .hv-card { animation: rise .9s var(--ease) both; }
  .js .hv-type { animation-delay: .15s; }
  .js .hv-check { animation-delay: .28s; }
  .js .hero-copy > * { animation: rise .8s var(--ease) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .js .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .js .hero-copy > :nth-child(4) { animation-delay: .18s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Statement ---------- */
.statement { padding-block: clamp(64px, 9vw, 120px) 0; }
.statement-text {
  max-width: 26ch;
  font-size: clamp(1.75rem, 3.7vw, 3.25rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}
.statement-text em { color: var(--accent); }

/* ---------- Services & Process: expandable frosted boxes ---------- */
.fold-wrap { position: relative; isolation: isolate; }

/* Soft shapes behind the boxes, so the glass has something to frost */
.fold-decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fold-decor svg { position: absolute; color: var(--accent); --mark-center: var(--bg); opacity: .55; }
.fold-decor svg:nth-child(1) { width: 340px; height: 340px; left: 6%; top: 8%; transform: rotate(12deg); }
.fold-decor svg:nth-child(2) { width: 260px; height: 260px; right: 8%; bottom: 4%; transform: rotate(-20deg); opacity: .4; }
.fold-decor span {
  position: absolute;
  left: 35%; top: 30%;
  width: 40%; height: 50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
}
.fold-decor svg:nth-child(2) { rotate: 18deg; }

.fold-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
  align-items: start;
}
.fold-grid--process { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .fold-grid--process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .fold-grid, .fold-grid--process { grid-template-columns: 1fr; } }

.fold {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: 28px;
  transform: scale(1);
  transition:
    transform 1s cubic-bezier(.22, 1, .36, 1),
    box-shadow 1s cubic-bezier(.22, 1, .36, 1),
    background-color 1s cubic-bezier(.22, 1, .36, 1);
}
.js .fold { cursor: pointer; }
@media (hover: hover) {
  .fold:hover {
    transform: scale(1.012);
    transition-duration: .7s;
  }
}
.fold.is-open {
  cursor: default;
  transform: scale(1.012);
  background-color: var(--glass-bg-open);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 0 0 .5px var(--glass-edge), var(--glass-shadow-lift);
}

.fold-head { margin: 0; }
.fold-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.fold-toggle:focus-visible { outline-offset: 6px; border-radius: 12px; }
.fold-num { font-size: .875rem; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; flex: none; }
.fold-grid--process .fold-num { font-family: var(--font-serif); font-size: 2.25rem; line-height: 1; font-weight: 400; }
.fold-title {
  flex: 1;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
/* Plus that turns into a cross */
.fold-icon {
  position: relative;
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--glass-bg);
  transition: transform .8s cubic-bezier(.22, 1, .36, 1), background-color .6s, border-color .6s;
}
.fold-icon::before, .fold-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 1.6px;
  margin: -.8px 0 0 -7px;
  border-radius: 2px;
  background: var(--ink);
}
.fold-icon::after { transform: rotate(90deg); }
.fold.is-open .fold-icon { transform: rotate(135deg); background: var(--ink); border-color: var(--ink); }
.fold.is-open .fold-icon::before, .fold.is-open .fold-icon::after { background: var(--bg); }
.no-js .fold-icon, html:not(.js) .fold-icon { display: none; }

.fold-summary { color: var(--ink-2); font-size: 1rem; max-width: 52ch; }
.fold-peek { font-size: .875rem; color: var(--ink-3); transition: opacity .5s; }
.js .fold.is-open .fold-peek { opacity: 0; height: 0; margin-top: -12px; overflow: hidden; }

/* Smooth height: the body animates between 0fr and 1fr */
.fold-body { display: grid; grid-template-rows: 1fr; }
.js .fold-body {
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .9s cubic-bezier(.22, 1, .36, 1), opacity .6s ease;
}
.js .fold.is-open .fold-body { grid-template-rows: 1fr; opacity: 1; transition-duration: .9s, .9s; }
.fold-inner { min-height: 0; overflow: hidden; }
.fold-inner > p { color: var(--ink-2); padding-top: 4px; max-width: 60ch; }

.service-list { display: grid; padding-top: 6px; }
.service-list li {
  display: grid;
  gap: 2px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}
.service-list strong { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.service-list span { color: var(--ink-3); font-size: .9688rem; }

.process-out {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: .9375rem;
  font-weight: 500;
}
.process-out span {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-3);
  padding-top: .2em;
}

/* ---------- Work ---------- */
.work-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.work-count { font-size: .9375rem; color: var(--ink-3); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px) clamp(20px, 3vw, 40px);
}
@media (min-width: 861px) {
  .work-grid > li:nth-child(even) { margin-top: clamp(40px, 7vw, 120px); }
  .work-grid.is-filtered > li:nth-child(even) { margin-top: 0; }
}
@media (max-width: 860px) {
  .work-grid { grid-template-columns: 1fr; }
}
.work-card { display: grid; gap: 26px; align-content: start; align-self: start; }
.work-card[hidden] { display: none; }

/* Raised card around each preview: still, with a soft drop shadow that deepens on hover */
.work-window {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 0 0 .5px var(--glass-edge),
    0 44px 80px -38px rgba(var(--shadow-color), .5),
    0 16px 30px -20px rgba(var(--shadow-color), .32);
  transition: box-shadow 1s cubic-bezier(.22, 1, .36, 1), scale 1s cubic-bezier(.22, 1, .36, 1);
}
@media (hover: hover) {
  .work-card:hover .work-window {
    scale: 1.012;
    box-shadow:
      inset 0 1px 0 var(--glass-highlight),
      0 0 0 .5px var(--glass-edge),
      0 60px 100px -40px rgba(var(--shadow-color), .6),
      0 22px 40px -22px rgba(var(--shadow-color), .38);
    transition-duration: .7s;
  }
}
.work-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  overflow: hidden;
  background: var(--p-bg, var(--surface));
  isolation: isolate;
}
.work-media > img { width: 100%; height: 100%; object-fit: cover; }
/* Thumbnails rest with a faint blur and sharpen with a slow zoom on hover or keyboard focus.
   Only on devices that can hover; touch screens always see them sharp. */
@media (hover: hover) and (pointer: fine) {
  .work-media > img {
    filter: blur(1.6px) saturate(.92);
    transform: scale(1.02);
    transition: filter .7s var(--ease), transform 1.1s var(--ease);
    will-change: transform, filter;
  }
  .work-card:hover .work-media > img,
  .work-card:focus-within .work-media > img {
    filter: none;
    transform: scale(1.06);
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  .work-card:hover .work-media > img,
  .work-card:focus-within .work-media > img { transform: scale(1.02); }
}
.work-tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.work-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.work-body { display: grid; gap: 10px; }
.work-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .875rem; color: var(--ink-3); }
.work-title {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.work-title a { text-decoration: none; }
.work-title a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.work-summary { color: var(--ink-2); max-width: 56ch; }
.work-services { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.work-services li {
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .8125rem;
  color: var(--ink-2);
}
.work-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  margin-top: 6px;
  padding-block: 6px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color .2s, color .2s;
}
.work-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.work-link:hover .btn-icon { transform: translateX(3px); }
.work-empty { grid-column: 1 / -1; color: var(--ink-3); }
.noscript-note { color: var(--ink-2); }

/* Generated preview compositions (decorative) */
.pv {
  position: absolute;
  inset: 9% 7% -6% 7%;
  background: var(--p-surface);
  color: var(--p-ink);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.45);
  overflow: hidden;
  container-type: inline-size;
  transition: transform .7s var(--ease);
}
@media (prefers-reduced-motion: no-preference) {
  .work-card:hover .pv { transform: translateY(-2%); }
}
.pv-nav { display: flex; align-items: center; gap: 3cqi; padding: 3.2cqi 4.5cqi; font-size: 2.3cqi; font-weight: 600; }
.pv-nav .pv-logo { font-size: 3cqi; letter-spacing: -0.03em; }
.pv-nav .pv-links { margin-left: auto; display: flex; gap: 3cqi; opacity: .6; font-weight: 500; }
.pv-nav .pv-cta { padding: .9cqi 2.4cqi; border-radius: 999px; background: var(--p-accent); color: var(--p-on-accent, #fff); }
.pv-serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }

/* layout: shop */
.pv--shop .pv-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 4cqi; padding: 3cqi 4.5cqi; align-items: center; }
.pv--shop .pv-h { font-size: 8.5cqi; line-height: .95; }
.pv--shop .pv-sub { margin-top: 2.5cqi; font-size: 2.3cqi; opacity: .7; max-width: 30ch; line-height: 1.4; }
.pv--shop .pv-btn { display: inline-block; margin-top: 3cqi; padding: 1.4cqi 3.4cqi; border-radius: 999px; background: var(--p-ink); color: var(--p-surface); font-size: 2.2cqi; font-weight: 600; }
.pv--shop .pv-object {
  position: relative;
  aspect-ratio: 1;
  border-radius: 3cqi;
  background: radial-gradient(70% 70% at 50% 35%, color-mix(in srgb, var(--p-accent) 22%, var(--p-surface)), color-mix(in srgb, var(--p-accent) 38%, var(--p-surface)));
}
.pv--shop .pv-object::before { /* vase */
  content: "";
  position: absolute;
  left: 32%; right: 32%; top: 22%; bottom: 14%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--p-accent) 85%, #000) 0%, var(--p-accent) 45%, color-mix(in srgb, var(--p-accent) 70%, #fff) 100%);
  border-radius: 40% 40% 30% 30% / 18% 18% 22% 22%;
}
.pv--shop .pv-object::after { /* shadow */
  content: "";
  position: absolute;
  left: 26%; right: 26%; bottom: 10%;
  height: 6%;
  border-radius: 50%;
  background: rgba(0,0,0,.18);
  filter: blur(4px);
  z-index: -1;
}
.pv--shop .pv-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.4cqi; padding: 2cqi 4.5cqi; }
.pv--shop .pv-row span { aspect-ratio: 1; border-radius: 2cqi; background: color-mix(in srgb, var(--p-accent) 14%, var(--p-surface)); }

/* layout: editorial */
.pv--editorial .pv-h { padding: 3cqi 4.5cqi 0; font-size: 12cqi; line-height: .88; letter-spacing: -0.04em; font-weight: 600; }
.pv--editorial .pv-h .pv-serif { font-weight: 400; }
.pv--editorial .pv-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.4cqi; padding: 4cqi 4.5cqi; }
.pv--editorial .pv-cols span { height: 32cqi; border-radius: 1cqi; }
.pv--editorial .pv-cols span:nth-child(1) {
  background:
    linear-gradient(90deg, transparent 0 58%, rgba(0,0,0,.08) 58% 59%, transparent 59%),
    linear-gradient(180deg, color-mix(in srgb, var(--p-accent) 30%, #fff) 0 55%, color-mix(in srgb, var(--p-ink) 75%, var(--p-accent)) 55%);
}
.pv--editorial .pv-cols span:nth-child(2) { background: linear-gradient(200deg, #CFC6BA, #8E8478); }
.pv--editorial .pv-cols span:nth-child(3) { background: var(--p-accent); }
.pv--editorial .pv-caption { display: flex; justify-content: space-between; padding: 0 4.5cqi; font-size: 2cqi; opacity: .6; }

/* layout: saas */
.pv--saas { text-align: center; }
.pv--saas .pv-pill { display: inline-block; margin-top: 3cqi; padding: .8cqi 2.4cqi; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--p-ink) 20%, transparent); font-size: 2cqi; }
.pv--saas .pv-h { margin: 2.5cqi auto 0; max-width: 18ch; font-size: 7.6cqi; line-height: 1; letter-spacing: -0.045em; font-weight: 600; }
.pv--saas .pv-h .pv-serif { color: var(--p-accent); }
.pv--saas .pv-btns { display: flex; justify-content: center; gap: 1.6cqi; margin-top: 3cqi; }
.pv--saas .pv-btns span { padding: 1.3cqi 3cqi; border-radius: 999px; font-size: 2.1cqi; font-weight: 600; background: var(--p-ink); color: var(--p-surface); }
.pv--saas .pv-btns span + span { background: transparent; color: var(--p-ink); border: 1px solid color-mix(in srgb, var(--p-ink) 25%, transparent); }
.pv--saas .pv-dash {
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: 2cqi;
  margin: 5cqi 6cqi 0;
  padding: 2.4cqi;
  border-radius: 2cqi 2cqi 0 0;
  background: color-mix(in srgb, var(--p-ink) 5%, var(--p-surface));
  border: 1px solid color-mix(in srgb, var(--p-ink) 10%, transparent);
  border-bottom: 0;
  height: 32cqi;
}
.pv--saas .pv-side { display: grid; align-content: start; gap: 1.6cqi; }
.pv--saas .pv-side span { height: 2cqi; border-radius: 1cqi; background: color-mix(in srgb, var(--p-ink) 12%, transparent); }
.pv--saas .pv-side span:first-child { background: var(--p-accent); width: 70%; }
.pv--saas .pv-chart { display: flex; align-items: flex-end; gap: 1.4cqi; padding: 2cqi; border-radius: 1.4cqi; background: var(--p-surface); }
.pv--saas .pv-chart span { flex: 1; border-radius: .8cqi .8cqi 0 0; background: color-mix(in srgb, var(--p-accent) 30%, var(--p-surface)); }
.pv--saas .pv-chart span:nth-child(5) { background: var(--p-accent); }

/* layout: stay (hospitality) */
.pv--stay .pv-scene {
  position: relative;
  margin: 0 3cqi;
  height: 52cqi;
  border-radius: 2cqi;
  overflow: hidden;
  background:
    radial-gradient(14cqi 14cqi at 70% 46%, color-mix(in srgb, var(--p-accent) 70%, #fff) 0 40%, transparent 41%),
    linear-gradient(180deg, color-mix(in srgb, var(--p-accent) 35%, #FCE9D8) 0%, #F6CDB0 45%, #2E4A57 46%, #1C2F38 100%);
}
.pv--stay .pv-scene::after { /* water lines */
  content: "";
  position: absolute;
  inset: 48% 0 0;
  background: repeating-linear-gradient(180deg, transparent 0 2.2cqi, rgba(255,255,255,.12) 2.2cqi 2.5cqi);
}
.pv--stay .pv-overlay { position: absolute; left: 4cqi; bottom: 9cqi; z-index: 1; color: #fff; }
.pv--stay .pv-h { font-size: 8cqi; line-height: .95; }
.pv--stay .pv-sub { font-size: 2.1cqi; opacity: .85; margin-top: 1.4cqi; }
.pv--stay .pv-book {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 2cqi;
  margin: -5cqi 7cqi 0;
  position: relative;
  padding: 2.4cqi;
  border-radius: 2cqi;
  background: var(--p-surface);
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  font-size: 2cqi;
}
.pv--stay .pv-book span { display: grid; gap: .4cqi; }
.pv--stay .pv-book span b { font-weight: 600; }
.pv--stay .pv-book span i { font-style: normal; opacity: .6; }
.pv--stay .pv-book em { align-self: center; padding: 1.4cqi 3cqi; border-radius: 999px; background: var(--p-accent); color: #fff; font-style: normal; font-weight: 600; }

/* ---------- Why: frosted cards (short enough to stay open) ---------- */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.why-head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: grid;
  gap: 20px;
  justify-items: start;
}
.why-head .section-title, .why-head .section-intro { grid-column: auto; }
.why-list { display: grid; gap: clamp(12px, 1.4vw, 16px); }
.why-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 10px 28px;
  padding: clamp(20px, 2.2vw, 28px);
  border-radius: 24px;
}
.why-item {
  transform: scale(1);
  transition:
    transform 1s cubic-bezier(.22, 1, .36, 1),
    box-shadow 1s cubic-bezier(.22, 1, .36, 1),
    background-color 1s cubic-bezier(.22, 1, .36, 1);
}
@media (hover: hover) {
  .why-item:hover {
    transform: scale(1.015);
    background-color: var(--glass-bg-open);
    box-shadow: inset 0 1px 0 var(--glass-highlight), 0 0 0 .5px var(--glass-edge), var(--glass-shadow-lift);
    transition-duration: .7s;
  }
}
.why-item:active { transform: scale(1.015); transition-duration: .7s; }
.why-item h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.why-item p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 960px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-head { position: static; }
}
@media (max-width: 600px) {
  .why-item { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact {
  background: var(--dark);
  color: var(--on-dark);
  padding-block: clamp(80px, 10vw, 140px);
  --mark-center: var(--dark);
}
.contact :focus-visible { outline-color: var(--accent-light); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.section-index--light { color: var(--accent-light); }
.contact-title {
  margin-top: 20px;
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.contact-title em { color: var(--accent-light); }
.contact-lede { margin-top: 24px; color: var(--on-dark-2); max-width: 46ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.next-steps { margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid rgba(248, 243, 240, .16); }
.contact .btn--accent { --btn-bg: var(--on-dark); --btn-fg: var(--dark); }
.next-steps h3 { font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); }
.next-steps ol { display: grid; gap: 12px; margin-top: 16px; counter-reset: ns; }
.next-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; counter-increment: ns; }
.next-steps li::before {
  content: counter(ns, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--accent-light);
}

/* Soft shapes behind the form so the frosted glass has something to blur */
.contact { position: relative; isolation: isolate; overflow: hidden; }
.contact-decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.contact-decor svg { position: absolute; color: #4C8BE8; --mark-center: var(--dark); opacity: .55; }
.contact-decor svg:nth-child(1) { width: 420px; height: 420px; right: 18%; top: 4%; }
.contact-decor svg:nth-child(2) { width: 300px; height: 300px; right: -60px; bottom: 6%; color: #8DB8FF; opacity: .4; }
.contact-decor span { position: absolute; border-radius: 50%; }
.contact-decor span:nth-of-type(1) { width: 520px; height: 520px; right: 2%; top: 30%; background: radial-gradient(closest-side, rgba(169, 200, 255, .55), transparent); }
.contact-decor span:nth-of-type(2) { width: 460px; height: 460px; left: 40%; top: -10%; background: radial-gradient(closest-side, rgba(1, 30, 90, .6), transparent); }
.contact-decor svg:nth-child(2) { rotate: -14deg; }
@media (max-width: 960px) {
  .contact-decor svg:nth-child(1) { right: -80px; top: auto; bottom: 30%; }
}

/* Enquiry form: frosted glass over the royal blue section; every control matches */
.enquiry {
  --f-ink: #FFFFFF;
  --f-ink-2: rgba(248, 243, 240, .78);
  --f-line: rgba(255, 255, 255, .3);
  --f-fill: rgba(255, 255, 255, .1);
  color: var(--f-ink);
  background: linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .08));
  border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  backdrop-filter: blur(26px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 34px 70px -28px rgba(0, 12, 48, .7), 0 10px 24px -12px rgba(0, 12, 48, .4);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 44px);
  display: grid;
  gap: 20px;
  --mark-center: var(--dark);
}
.enquiry :focus-visible { outline-color: var(--accent-light); }
.enquiry-title { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.025em; }
.enquiry-title .lamp { margin-left: auto; width: 12px; height: 12px; }
.enquiry-note { margin-top: -10px; font-size: .9375rem; color: var(--f-ink-2); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { display: flex; align-items: center; gap: 4px; font-size: .9375rem; font-weight: 600; }
.req { color: var(--accent-light); }
.opt { font-weight: 400; color: var(--f-ink-2); margin-left: 4px; }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--f-line);
  border-radius: 12px;
  background: var(--f-fill);
  color: var(--f-ink);
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .55); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 4px rgba(169, 200, 255, .3);
}
.field [aria-invalid="true"] { border-color: #FF9C9C; }
.field select option { color: #0D1626; background: #FFFFFF; }
.field-hint { font-size: .875rem; color: var(--f-ink-2); }
.field-error { font-size: .875rem; font-weight: 500; color: #FFC4C4; }
.field-error:empty { display: none; }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.6px solid var(--f-ink);
  border-bottom: 1.6px solid var(--f-ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.chips { border: 0; padding: 0; margin: 0; }
.chips legend { padding: 0; margin-bottom: 10px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.enquiry .chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--f-line);
  border-radius: 999px;
  background: var(--f-fill);
  color: var(--f-ink);
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
}
.enquiry .chip:hover span { border-color: rgba(255, 255, 255, .6); }
.enquiry .chip:hover input:not(:checked) + span { background-color: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .6); }
.enquiry .chip input:checked + span { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.chip input:focus-visible + span { outline: 2px solid var(--accent-light); outline-offset: 2px; }

.enquiry .btn--primary { --btn-bg: var(--on-dark); --btn-fg: var(--dark); }
.enquiry-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { font-size: .9375rem; color: var(--f-ink-2); }
.form-status:empty { display: none; }
.form-status.is-success { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); color: var(--f-ink); }
.form-status a { font-weight: 600; color: var(--f-ink); }

/* Validation lights: off until there is something to say, then a soft green or red glow */
.lamp {
  flex: none;
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .35);
  transition: background-color .5s ease, box-shadow .5s ease, transform .5s cubic-bezier(.3, 1.4, .5, 1);
}
.lamp.is-ok {
  background: #3BE48B;
  box-shadow: 0 0 0 3px rgba(59, 228, 139, .18), 0 0 12px 2px rgba(59, 228, 139, .75), inset 0 1px 1px rgba(255, 255, 255, .6);
  transform: scale(1.12);
}
.lamp.is-bad {
  background: #FF5C6C;
  box-shadow: 0 0 0 3px rgba(255, 92, 108, .18), 0 0 12px 2px rgba(255, 92, 108, .75), inset 0 1px 1px rgba(255, 255, 255, .6);
  transform: scale(1.12);
}

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .contact-actions .btn, .hero-actions .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(56px, 7vw, 96px) 32px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line-strong); }
.wordmark--lg .wordmark-mark { width: clamp(44px, 6vw, 72px); height: clamp(44px, 6vw, 72px); }
.wordmark--lg .wordmark-text { font-size: clamp(3rem, 9vw, 7.5rem); letter-spacing: -0.06em; }
.wordmark--lg { gap: clamp(.5rem, 1.2vw, 1rem); }
.footer-tag { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.625rem); color: var(--ink-2); }

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 32px;
  padding-block: 40px;
}
.footer-h { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.footer-cols ul { display: grid; gap: 6px; }
.footer-cols ul a { text-decoration: none; color: var(--ink-2); padding-block: 4px; display: inline-block; }
.footer-cols ul a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 340px) {
  .footer-cols { grid-template-columns: 1fr; }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--ink-3);
}
.to-top { text-decoration: none; color: var(--ink-2); }
.to-top:hover { color: var(--ink); }

/* ---------- Footer garden ---------- */
.site-footer { padding-bottom: 0; }
.footer-garden { display: block; width: 100%; height: 170px; margin-top: 8px; }
@media (max-width: 600px) { .footer-garden { height: 130px; } }

/* ---------- Scroll reveal (only with JS + motion allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - var(--header-h)); display: grid; align-content: center; gap: 24px; padding-block: 80px; }
.notfound h1 { font-size: clamp(2.75rem, 7vw, 6rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.notfound h1 em { color: var(--accent); }
.notfound p { color: var(--ink-2); max-width: 46ch; }
.notfound .hero-actions { margin-top: 8px; }

/* ---------- Buttons: frosted glaze + very gentle lift ----------
   Same on every device: hover on desktop, press on touch (main.js enables :active on iOS),
   and keyboard focus. Slow ease-out in, even slower drift back. */
.btn, .theme-toggle, .menu-toggle, .filter, .sheet-btn, .chip span {
  --lift: 1.03;
  position: relative;
  isolation: isolate;
  transform: scale(1);
  transition:
    transform 1s cubic-bezier(.22, 1, .36, 1),
    background-color 1s cubic-bezier(.22, 1, .36, 1),
    border-color 1s cubic-bezier(.22, 1, .36, 1),
    box-shadow 1s cubic-bezier(.22, 1, .36, 1),
    color .6s ease;
}
.sheet-btn { --lift: 1.02; }
/* Frosted sheen that fades in over the button's own colour */
.btn::before, .theme-toggle::before, .menu-toggle::before, .filter::before, .sheet-btn::before, .chip span::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, .07) 50%, rgba(255, 255, 255, 0) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 0 0 1px rgba(255, 255, 255, .1);
  opacity: 0;
  transition: opacity 1s cubic-bezier(.22, 1, .36, 1);
}

@media (hover: hover) {
  .btn:hover, .theme-toggle:hover, .menu-toggle:hover, .filter:hover, .sheet-btn:hover, .chip:hover span {
    transform: scale(var(--lift));
    box-shadow: 0 12px 30px -16px rgba(var(--shadow-color), .45);
    transition-duration: .7s, .7s, .7s, .7s, .4s;
  }
  .btn:hover::before, .theme-toggle:hover::before, .menu-toggle:hover::before, .filter:hover::before, .sheet-btn:hover::before, .chip:hover span::before {
    opacity: 1;
    transition-duration: .7s;
  }
}
.btn:active, .theme-toggle:active, .menu-toggle:active, .filter:active, .sheet-btn:active, .chip:active span,
.btn:focus-visible, .theme-toggle:focus-visible, .menu-toggle:focus-visible, .filter:focus-visible, .sheet-btn:focus-visible, .chip input:focus-visible + span {
  transform: scale(var(--lift));
  box-shadow: 0 12px 30px -16px rgba(var(--shadow-color), .45);
  transition-duration: .7s, .7s, .7s, .7s, .4s;
}
.btn:active::before, .theme-toggle:active::before, .menu-toggle:active::before, .filter:active::before, .sheet-btn:active::before, .chip:active span::before,
.btn:focus-visible::before, .theme-toggle:focus-visible::before, .menu-toggle:focus-visible::before, .filter:focus-visible::before, .sheet-btn:focus-visible::before, .chip input:focus-visible + span::before {
  opacity: 1;
  transition-duration: .7s;
}

/* Outline-style buttons turn into frosted glass rather than just tinting */
@media (hover: hover) {
  .btn--ghost:hover, .theme-toggle:hover, .menu-toggle:hover, .filter[aria-pressed="false"]:hover, .sheet-btn:not(.sheet-btn--primary):hover, .chip:hover input:not(:checked) + span {
    --btn-bg: var(--glass-bg);
    background-color: var(--glass-bg);
    border-color: var(--glass-border);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
  }
}
.btn--ghost:active, .theme-toggle:active, .menu-toggle:active, .filter[aria-pressed="false"]:active, .sheet-btn:not(.sheet-btn--primary):active {
  --btn-bg: var(--glass-bg);
  background-color: var(--glass-bg);
  border-color: var(--glass-border);
}
/* The contact section is always dark, so its outline button frosts in a dark tone */
.btn--ghost-light:hover, .btn--ghost-light:active {
  --btn-bg: rgba(248, 243, 240, .1);
  --btn-border: rgba(248, 243, 240, .5);
}
@media (prefers-reduced-motion: reduce) {
  .btn, .theme-toggle, .menu-toggle, .filter, .sheet-btn, .chip span { --lift: 1; }
}

/* ---------- Scrolling performance ----------
   Live backdrop blur is re-rendered on every scrolled frame, so it is kept to the header,
   the hero window and the open mobile menu. Everything else uses "painted frost": a translucent
   panel over decorations that are blurred once, which looks the same and costs nothing to scroll. */
.hv-bloom svg { will-change: transform; }
.is-offscreen .hv-bloom svg { animation-play-state: paused; }
.hero-visual.is-scrolling .hv-bloom svg { animation-play-state: paused; }

/* Decorations are pre-blurred once instead of blurred live behind each panel */
.fold-decor svg, .contact-decor svg { filter: blur(22px); }
.fold-decor, .contact-decor { contain: strict; }

.fold, .fold.is-open, .why-item, .work-tag, .enquiry {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.fold, .why-item {
  background: linear-gradient(165deg, rgba(255, 255, 255, .78), rgba(255, 252, 250, .52));
}
.fold.is-open { background: linear-gradient(165deg, rgba(255, 255, 255, .9), rgba(255, 252, 250, .7)); }
@media (hover: hover) {
  .why-item:hover { background: linear-gradient(165deg, rgba(255, 255, 255, .9), rgba(255, 252, 250, .7)); }
}
.work-tag { background: rgba(255, 252, 250, .88); }
:root[data-theme="dark"] .fold, :root[data-theme="dark"] .why-item { background: linear-gradient(165deg, rgba(34, 46, 70, .82), rgba(20, 28, 45, .62)); }
:root[data-theme="dark"] .fold.is-open, :root[data-theme="dark"] .why-item:hover { background: linear-gradient(165deg, rgba(40, 54, 82, .92), rgba(22, 31, 50, .78)); }
:root[data-theme="dark"] .work-tag { background: rgba(20, 28, 45, .85); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fold, :root:not([data-theme="light"]) .why-item { background: linear-gradient(165deg, rgba(34, 46, 70, .82), rgba(20, 28, 45, .62)); }
  :root:not([data-theme="light"]) .fold.is-open, :root:not([data-theme="light"]) .why-item:hover { background: linear-gradient(165deg, rgba(40, 54, 82, .92), rgba(22, 31, 50, .78)); }
  :root:not([data-theme="light"]) .work-tag { background: rgba(20, 28, 45, .85); }
}

/* Touch screens: lighter blur on what is left, and no blur on button presses */
@media (hover: none), (max-width: 860px) {
  :root { --glass-blur: blur(14px) saturate(1.6); }
  .hv-card, .hv-browser {
    -webkit-backdrop-filter: blur(10px) saturate(1.5);
    backdrop-filter: blur(10px) saturate(1.5);
  }
  .btn:hover, .theme-toggle:hover, .menu-toggle:hover, .filter:hover, .sheet-btn:hover {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
/* Button hovers frost with a tint rather than a live blur */
.btn--ghost:hover, .theme-toggle:hover, .menu-toggle:hover, .filter[aria-pressed="false"]:hover, .sheet-btn:not(.sheet-btn--primary):hover {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* ---------- Glass fallbacks ---------- */
/* Visitors who turn on Reduce Transparency (iOS/macOS) or browsers without backdrop-filter get solid panels. */
@media (prefers-reduced-transparency: reduce) {
  .glass, .site-header.is-scrolled .header-inner, .site-header.is-open .header-inner, .menu-sheet, .work-tag, .hv-card, .hv-browser, .fold, .why-item {
    background: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .mobile-menu::before { background: rgba(6, 12, 24, .3); }
  .enquiry { background: var(--dark-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .site-header.is-scrolled .header-inner, .site-header.is-open .header-inner, .menu-sheet, .work-tag, .hv-card, .hv-browser, .fold, .why-item { background: var(--surface); }
  .mobile-menu::before { background: rgba(6, 12, 24, .3); }
}
