/* =========================================================================
   Circle of Nine — homepage design system
   Loaded after css/desert-animation.css (kept verbatim). Everything here is
   prefixed .c9-, except a few clearly marked additions scoped to .gda.
   ========================================================================= */

/* ---------- tokens ---------- */
:root {
  --ink: #090a0b;
  --white: #ffffff;
  --silver: #f3f4f4;
  --body-dark: #c9ccd0; /* body text on dark backgrounds (12.4:1 on ink) */
  --body-light: #41464d; /* body text on light backgrounds (9:1 on silver) */
  --mute-light: #585d64; /* metadata on light (6.4:1 on silver) */
  --mute-dark: #a7acb2; /* metadata on dark (8.4:1 on ink) */
  --line-light: rgba(9, 10, 11, 0.14);
  --line-dark: rgba(255, 255, 255, 0.16);
  --error: #ff9c90;

  --sans: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans", "Liberation Sans", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-hero: clamp(52px, 7.7vw, 112px);
  --fs-h2: clamp(40px, 4.9vw, 72px);
  --fs-h3: clamp(26px, 2.5vw, 38px);
  --fs-lead: clamp(19px, 1.65vw, 24px);
  --fs-body: clamp(16px, 1.22vw, 19px);
  --fs-meta: 13px;

  --gutter: clamp(22px, 4vw, 48px);
  --maxw: 1440px;
  --nav-h: 76px;
  --section-y: clamp(72px, 8.5vw, 136px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 1023px) {
  :root {
    --nav-h: 64px;
  }
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
@supports not (overflow: clip) {
  body {
    overflow-x: hidden;
  }
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
} /* all h1–h3 headings: semibold */
ul,
ol {
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
::selection {
  background: var(--ink);
  color: var(--white);
}
.c9-section--ink ::selection,
.c9-footer ::selection {
  background: var(--white);
  color: var(--ink);
}

.c9-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;
}
.c9-skip {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.c9-skip:focus {
  transform: none;
}

.c9-wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- type ---------- */
.gda .gda__title {
  font-weight: 600;
  line-height: 1.1;
} /* overrides css/desert-animation.css (kept verbatim) */
.c9-eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-meta);
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute-light);
  margin-bottom: 26px;
}
.c9-h2 {
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 15ch;
  text-wrap: balance;
}
.c9-intro {
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--body-light);
  max-width: 34ch;
  letter-spacing: -0.005em;
}
.c9-statement {
  font-size: clamp(32px, 4vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  max-width: 19ch;
  text-wrap: balance;
}

/* ---------- controls ----------
   Buttons: pill with a round arrow icon (reference treatment). On hover a fill grows out of the icon to
   cover the pill, the colours invert and the arrow swaps diagonally (out top-right, in from bottom-left). */
.c9-arrow {
  width: 12px;
  height: 12px;
  flex: none;
}
.c9-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  width: var(--icon-size, 44px);
  height: var(--icon-size, 44px);
  border-radius: 50%;
  background: var(--btn-icon-bg, transparent);
  color: var(--btn-icon-fg, currentColor);
  transition:
    background-color 0.5s var(--ease),
    color 0.5s var(--ease),
    border-color 0.5s var(--ease);
}
.c9-icon .c9-arrow {
  grid-area: 1 / 1;
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1);
}
.c9-icon .c9-arrow--next {
  transform: translate(-220%, 220%);
}
.c9-btn:hover .c9-icon .c9-arrow,
.c9-btn:focus-visible .c9-icon .c9-arrow,
.c9-textlink:hover .c9-icon .c9-arrow,
.c9-textlink:focus-visible .c9-icon .c9-arrow {
  transform: translate(220%, -220%);
}
.c9-btn:hover .c9-icon .c9-arrow--next,
.c9-btn:focus-visible .c9-icon .c9-arrow--next,
.c9-textlink:hover .c9-icon .c9-arrow--next,
.c9-textlink:focus-visible .c9-icon .c9-arrow--next {
  transform: translate(0, 0);
}

.c9-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
  padding: 5px 5px 5px 26px;
  border: 1px solid var(--btn-border, transparent);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.5s var(--ease),
    border-color 0.5s var(--ease);
}
.c9-btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 5px;
  width: var(--icon-size, 44px);
  height: var(--icon-size, 44px);
  margin-top: calc(var(--icon-size, 44px) / -2);
  border-radius: 50%;
  background: var(--btn-fill);
  transform: scale(0);
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.2, 1);
}
.c9-btn:hover,
.c9-btn:focus-visible {
  color: var(--btn-fill-fg);
  border-color: var(--btn-fill-border, var(--btn-border, transparent));
}
.c9-btn:hover::before,
.c9-btn:focus-visible::before {
  transform: scale(20);
}
.c9-btn:hover .c9-icon,
.c9-btn:focus-visible .c9-icon {
  background: var(--btn-fill-icon-bg);
  color: var(--btn-fill-icon-fg);
}
.c9-btn--light {
  --btn-bg: var(--white);
  --btn-fg: var(--ink);
  --btn-icon-bg: var(--ink);
  --btn-icon-fg: var(--white);
  --btn-fill: var(--ink);
  --btn-fill-fg: var(--white);
  --btn-fill-icon-bg: var(--white);
  --btn-fill-icon-fg: var(--ink);
}
.c9-btn--dark {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  --btn-border: var(--ink);
  --btn-icon-bg: var(--white);
  --btn-icon-fg: var(--ink);
  --btn-fill: var(--white);
  --btn-fill-fg: var(--ink);
  --btn-fill-icon-bg: var(--ink);
  --btn-fill-icon-fg: var(--white);
}
.c9-btn--outline {
  --icon-size: 34px;
  min-height: 46px;
  padding: 5px 5px 5px 18px;
  gap: 16px;
  --btn-bg: transparent;
  --btn-fg: var(--nav-fg, var(--white));
  --btn-border: var(--nav-fg, var(--white));
  --btn-icon-bg: var(--nav-fg, var(--white));
  --btn-icon-fg: var(--nav-inv, var(--ink));
  --btn-fill: var(--nav-fg, var(--white));
  --btn-fill-fg: var(--nav-inv, var(--ink));
  --btn-fill-icon-bg: var(--nav-inv, var(--ink));
  --btn-fill-icon-fg: var(--nav-fg, var(--white));
}

.c9-textlink {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 16px;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  --tl-inv: var(--white);
}
/* text links share the round arrow icon: outlined at rest, filled on hover */
.c9-textlink .c9-icon {
  --icon-size: 30px;
  border: 1px solid currentColor;
}
.c9-textlink:hover .c9-icon,
.c9-textlink:focus-visible .c9-icon {
  background: currentColor;
}
.c9-textlink:hover .c9-icon .c9-arrow,
.c9-textlink:focus-visible .c9-icon .c9-arrow {
  color: var(--tl-inv);
}
.c9-textlink > span {
  position: relative;
}
.c9-textlink > span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.c9-textlink:hover > span::after {
  animation: c9-underline 0.7s var(--ease-out);
}
@keyframes c9-underline {
  0% {
    transform: scaleX(1);
    transform-origin: right;
  }
  45% {
    transform: scaleX(0);
    transform-origin: right;
  }
  46% {
    transform-origin: left;
  }
  100% {
    transform: scaleX(1);
    transform-origin: left;
  }
}
.c9-textlink--light {
  color: var(--white);
  --tl-inv: var(--ink);
}

/* =========================================================================
   NAVIGATION
   ========================================================================= */
.c9-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  height: var(--nav-h);
  color: var(--white);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
/* over photography / video: a soft dark scrim behind the bar keeps white text readable even over white surf */
.c9-nav::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: 0;
  height: calc(var(--nav-h) + 56px);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 10, 11, 0.62) 0%, rgba(9, 10, 11, 0.4) 48%, rgba(9, 10, 11, 0) 100%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.c9-nav[data-theme="on-image"]::before {
  opacity: 1;
}
.c9-nav[data-theme="on-image"] .c9-nav__logo,
.c9-nav[data-theme="on-image"] .c9-nav__links a,
.c9-nav[data-theme="on-image"] .c9-nav__toggle {
  text-shadow:
    0 1px 2px rgba(9, 10, 11, 0.55),
    0 1px 16px rgba(9, 10, 11, 0.5);
}
.c9-nav[data-theme="on-image"] .c9-nav__cta {
  --btn-bg: rgba(9, 10, 11, 0.38);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
/* colours the nav CTA follows (white on photography / dark sections, ink on silver / light sections) */
.c9-nav {
  --nav-fg: var(--white);
  --nav-inv: var(--ink);
}
.c9-nav[data-theme="on-silver"],
.c9-nav[data-theme="light"] {
  --nav-fg: var(--ink);
  --nav-inv: var(--white);
}
.c9-nav.is-menu-open {
  --nav-fg: var(--white);
  --nav-inv: var(--ink);
}
.c9-nav[data-theme="on-silver"] {
  color: var(--ink);
}
.c9-nav[data-theme="light"] {
  color: var(--ink);
  background: rgba(243, 244, 244, 0.9);
  border-bottom-color: var(--line-light);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
}
.c9-nav[data-theme="dark"] {
  color: var(--white);
  background: rgba(9, 10, 11, 0.86);
  border-bottom-color: var(--line-dark);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.c9-nav.is-menu-open {
  color: var(--white);
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.c9-nav__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.c9-nav__logo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.c9-nav__primary {
  margin-left: auto;
}
.c9-nav__links {
  display: flex;
  gap: clamp(20px, 2.6vw, 40px);
}
.c9-nav__links a {
  position: relative;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.c9-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.c9-nav__links a:hover::after,
.c9-nav__links a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.c9-nav__cta {
  font-size: 16px;
}

.c9-nav__toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 2px;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 16px;
}
.c9-nav__toggle-icon {
  position: relative;
  width: 22px;
  height: 10px;
}
.c9-nav__toggle-icon span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transition:
    transform 0.3s var(--ease),
    top 0.3s var(--ease);
}
.c9-nav__toggle-icon span:first-child {
  top: 0;
}
.c9-nav__toggle-icon span:last-child {
  top: 9px;
}
.c9-nav__toggle[aria-expanded="true"] .c9-nav__toggle-icon span:first-child {
  top: 4.5px;
  transform: rotate(45deg);
}
.c9-nav__toggle[aria-expanded="true"] .c9-nav__toggle-icon span:last-child {
  top: 4.5px;
  transform: rotate(-45deg);
}

@media (max-width: 1023px) {
  .c9-nav__primary,
  .c9-nav__cta {
    display: none;
  }
  .c9-nav__toggle {
    display: inline-flex;
  }
}

/* full-screen mobile menu */
.c9-menu {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: var(--ink);
  color: var(--white);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.c9-menu[hidden] {
  display: none;
}
.c9-menu__inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: calc(var(--nav-h) + 32px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
}
.c9-menu__links {
  border-top: 1px solid var(--line-dark);
}
.c9-menu__links li {
  border-bottom: 1px solid var(--line-dark);
}
.c9-menu__links a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  min-height: 44px;
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-decoration: none;
}
.c9-menu__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mute-dark);
}
.c9-menu__cta {
  align-self: flex-start;
}
.c9-menu__foot {
  margin-top: auto;
  color: var(--body-dark);
  font-size: 15px;
}
body.c9-menu-open {
  overflow: hidden;
}

/* =========================================================================
   SECTIONS 1–3 — additions layered onto the existing desert animation
   ========================================================================= */

/* 1 · hero copy (inside .gda__stage; fades as the camera approaches the portal) */
.c9-hero {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  z-index: 5;
  color: var(--white);
  pointer-events: none;
  will-change: opacity;
}
.c9-hero.is-gone {
  visibility: hidden;
}
.c9-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(9, 10, 11, 0.62) 0%, rgba(9, 10, 11, 0.3) 34%, rgba(9, 10, 11, 0) 60%), linear-gradient(90deg, rgba(9, 10, 11, 0.38) 0%, rgba(9, 10, 11, 0) 52%);
}
.c9-hero__content {
  position: absolute;
  left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  bottom: clamp(84px, 12.5vh, 140px);
  width: min(660px, 52vw);
  pointer-events: auto;
}
.c9-hero__eyebrow {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: clamp(16px, 2.4vh, 26px);
}
.c9-hero__title {
  font-size: min(var(--fs-hero), 13.6vh);
  line-height: 0.96;
  letter-spacing: -0.034em;
  font-weight: 600;
  margin-bottom: clamp(18px, 2.8vh, 30px);
}
.c9-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
} /* room for g/p/y descenders inside the reveal mask */
/* split-heading reveal masks (created by SplitText in js/main.js, one per line, overflow: clip): extend the clip box below
   the line so descenders (g, p, y, comma) are never cut; the negative margin keeps the line spacing unchanged */
[data-split] > div {
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}
.c9-line__inner {
  display: block;
}
/* hero headline intro: the lines wait below their masks until js/main.js slides them up on page load */
.c9-hero-intro .c9-hero__title .c9-line__inner {
  transform: translateY(115%);
} /* 115%: the hero's tight line-height needs a touch more than 108% to hide the letter tops */
.c9-hero__support {
  font-size: clamp(20px, 1.85vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: clamp(12px, 1.8vh, 18px);
  max-width: 26ch;
}
.c9-hero__body {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  max-width: 50ch;
  margin-bottom: clamp(22px, 3.6vh, 36px);
}
.c9-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
.c9-hero__cue {
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  bottom: clamp(28px, 4.5vh, 44px);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-family: var(--mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  pointer-events: auto;
}
.c9-hero__cue-line {
  position: relative;
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}
.c9-hero__cue-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--white);
  animation: c9-cue 2.4s var(--ease) infinite;
}
@keyframes c9-cue {
  0% {
    top: -40%;
  }
  60%,
  100% {
    top: 100%;
  }
}

/* 2 · "Make waves." — atmospheric caption over the full-viewport ocean */
.c9-caption {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 50%;
  z-index: 5;
  margin: 0;
  text-align: center;
  color: var(--white);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  font-size: clamp(52px, 8.4vw, 132px);
  line-height: 1;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.28);
  transform: translate3d(0, calc(-50% + var(--c9-cy, 0px)), 0);
}

/* read by js/desert-animation.js: keeps the stacked (portrait) studio copy below the fixed navigation */
.gda {
  --gda-safe-top: 84px;
} /* plain px: nav height + 8px */
@media (max-width: 1023px) {
  .gda {
    --gda-safe-top: 72px;
  }
}

/* 3 · studio copy — three paragraphs and a link inside the existing lede */
.gda .gda__lede p {
  margin: 0 0 0.85em;
}
.gda .gda__lede .c9-studio-link {
  margin-top: 0.35em;
  color: var(--gda-ink);
  font-size: 16px;
}
.gda.c9-studio-on .gda__lede .c9-studio-link {
  pointer-events: auto;
}
.gda .gda__eyebrow {
  font-size: var(--fs-meta);
}

/* #studio lands on the settled monitor composition */
.c9-anchor-studio {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  top: calc((var(--gda-len, 400vh) - 100vh) * 0.97);
  scroll-margin-top: calc(-1 * var(--nav-h)); /* cancels html scroll-padding */
}
.gda:not(.is-ready) .c9-anchor-studio {
  top: 100%;
}
.gda:not(.is-ready) .c9-caption {
  display: none;
}

/* studio copy: darker grey than the original #5b6069 for readability on the silver stage */
.gda {
  --gda-mute: #474c53;
}

/* stacked composition (phones, portrait tablets): heading + large monitor in the pinned scene,
   the paragraphs follow in normal flow straight after it */
.c9-studio-after {
  display: none;
}
.gda.is-stack .gda__lede {
  display: none;
}
.gda.is-ready.is-stack + .c9-studio-after {
  display: block;
  position: relative;
  z-index: 1;
  color: var(--ink);
  /* tucks into the empty foot of the final scene and blends from the stage's grey into the silver of the next section */
  margin-top: -14vh;
  padding: 3vh 0 clamp(48px, 10vw, 72px);
  background: linear-gradient(180deg, rgba(218, 221, 223, 0) 0, #dadddf 14vh, #f3f4f4 100%);
}
.c9-studio-after .c9-wrap {
  max-width: 660px;
}
.c9-studio-after p {
  color: #3f444b;
  margin-bottom: 0.9em;
  font-size: 17px;
  line-height: 1.6;
}
.c9-studio-after p:first-child {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.c9-studio-after .c9-textlink {
  margin-top: 8px;
}

/* static fallback if the sequence cannot run */
.c9-studio-fallback {
  display: none;
}
.no-js .c9-studio-fallback,
.c9-gda-failed .c9-studio-fallback {
  display: block;
}
.c9-studio-fallback__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.c9-studio-fallback__grid p {
  color: var(--body-light);
  margin-bottom: 1em;
  max-width: 46ch;
}
.c9-studio-fallback__grid .c9-h2 {
  margin-bottom: 28px;
}
.c9-studio-fallback__media img {
  width: 100%;
}

@media (max-width: 767px) {
  .c9-hero__shade {
    background: linear-gradient(0deg, rgba(9, 10, 11, 0.9) 0%, rgba(9, 10, 11, 0.74) 42%, rgba(9, 10, 11, 0.18) 66%, rgba(9, 10, 11, 0) 80%);
  }
  .c9-hero__content {
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .c9-hero__title {
    font-size: clamp(46px, 14.4vw, 56px);
  }
  .c9-hero__support {
    font-size: 20px;
  }
  .c9-hero__body {
    font-size: 16px;
  }
  .c9-hero__actions {
    gap: 8px 24px;
  }
  .c9-hero__cue {
    left: var(--gutter);
    right: auto;
    bottom: calc(18px + env(safe-area-inset-bottom));
  }
  .c9-hero__cue-line {
    width: 24px;
    height: 1px;
  }
  .c9-hero__cue-line::after {
    top: 0;
    left: -40%;
    width: 40%;
    height: 1px;
    animation-name: c9-cue-x;
  }
  .c9-studio-fallback__grid {
    grid-template-columns: 1fr;
  }
}
@keyframes c9-cue-x {
  0% {
    left: -40%;
  }
  60%,
  100% {
    left: 100%;
  }
}
@media (max-width: 767px) and (max-height: 700px) {
  .c9-hero__title {
    font-size: 44px;
  }
  .c9-hero__body {
    font-size: 15px;
    line-height: 1.5;
  }
  .c9-hero__support {
    font-size: 18px;
  }
}
/* short phones (toolbars showing, e.g. 360×560, 375×553): the whole message and both CTAs still fit below the nav */
@media (max-width: 767px) and (max-height: 600px) {
  .c9-hero__content {
    bottom: calc(22px + env(safe-area-inset-bottom));
  }
  .c9-hero__cue {
    display: none;
  }
  .c9-hero__eyebrow {
    margin-bottom: 10px;
  }
  .c9-hero__title {
    font-size: 38px;
    margin-bottom: 10px;
  }
  .c9-hero__support {
    font-size: 17px;
    margin-bottom: 8px;
  }
  .c9-hero__body {
    font-size: 14.5px;
    line-height: 1.45;
    margin-bottom: 16px;
  }
  .c9-hero__actions {
    gap: 4px 20px;
  }
  .c9-hero__actions .c9-btn {
    min-height: 50px;
    --icon-size: 40px;
  }
}
/* portrait tablets: the copy sits over the portal and the surf, so it gets the stronger bottom shade */
@media (min-width: 768px) and (max-aspect-ratio: 1 / 1) {
  .c9-hero__shade {
    background: linear-gradient(0deg, rgba(9, 10, 11, 0.88) 0%, rgba(9, 10, 11, 0.7) 40%, rgba(9, 10, 11, 0.2) 66%, rgba(9, 10, 11, 0) 80%);
  }
  .c9-hero__content {
    width: min(600px, 78vw);
  }
}
@media (min-width: 768px) and (max-height: 720px) {
  .c9-hero__content {
    bottom: 72px;
  }
  .c9-hero__cue {
    display: none;
  }
}

/* =========================================================================
   SHARED SECTION LAYOUT
   ========================================================================= */
.c9-section {
  position: relative;
  padding: var(--section-y) 0;
  scroll-margin-top: 0;
}
.c9-section--silver {
  background: var(--silver);
  color: var(--ink);
}
.c9-section--white {
  background: var(--white);
  color: var(--ink);
}
.c9-section--ink {
  background: var(--ink);
  color: var(--white);
}
.c9-section--ink .c9-eyebrow {
  color: var(--mute-dark);
}
.c9-section--ink .c9-intro,
.c9-section--ink p {
  color: var(--body-dark);
}
.c9-section--ink .c9-h2,
.c9-section--ink h3 {
  color: var(--white);
}

.c9-head {
  margin-bottom: clamp(40px, 5vw, 80px);
}
.c9-head--split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px clamp(32px, 5vw, 96px);
  align-items: end;
}
.c9-head--split .c9-intro {
  justify-self: end;
}
@media (max-width: 1023px) {
  .c9-head--split {
    grid-template-columns: 1fr;
  }
  .c9-head--split .c9-intro {
    justify-self: start;
  }
}

/* =========================================================================
   4 · SERVICES
   ========================================================================= */
.c9-services {
  border-top: 1px solid var(--line-light);
}
.c9-svc {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 112px);
  align-items: start;
}
.c9-svc__stage {
  position: relative;
  height: 100%;
}
.c9-svc__frame {
  position: sticky;
  top: calc(var(--nav-h) + 5vh);
  height: min(calc(100vh - var(--nav-h) - 10vh), 780px);
  min-height: 420px;
  background: var(--ink);
  overflow: hidden;
}
.c9-svc__visual {
  position: absolute;
  inset: 0;
  margin: 0;
  container-type: size;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.8s var(--ease),
    visibility 0s linear 0.8s;
}
.c9-svc__visual.is-active {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.8s var(--ease),
    visibility 0s;
}
.c9-svc__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.6s var(--ease-out);
}
.c9-svc__img--right {
  object-position: 62% 50%;
}
.c9-svc__visual.is-active .c9-svc__img {
  transform: scale(1);
}
.c9-svc__cap {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 6px 9px;
  background: rgba(9, 10, 11, 0.62);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}
.c9-svc__visual--screen {
  background: #111315;
  display: grid;
  place-items: center;
  padding: 16px 16px 52px;
}

.c9-svc__list {
  counter-reset: svc;
  border-bottom: 1px solid var(--line-light);
}
.c9-svc__row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  padding: clamp(36px, 4vw, 56px) 0;
  border-top: 1px solid var(--line-light);
  position: relative;
}
.c9-svc__row::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 1px;
  width: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease-out);
}
.c9-svc__row.is-active::before {
  transform: scaleX(1);
}
.c9-svc__slot {
  display: none;
}
.c9-svc__num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--mute-light);
  padding-top: 0.65em;
  transition: color 0.4s var(--ease);
}
.c9-svc__row.is-active .c9-svc__num {
  color: var(--ink);
}
.c9-svc__title {
  font-size: var(--fs-h3);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin-bottom: 14px;
}
.c9-svc__lead {
  font-size: var(--fs-lead);
  line-height: 1.3;
  letter-spacing: -0.012em;
  margin-bottom: 18px;
  color: var(--ink);
  max-width: 30ch;
}
.c9-svc__body > p:not(.c9-svc__lead) {
  color: var(--body-light);
  max-width: 56ch;
  margin-bottom: 24px;
}
/* service options: two-column list with sparkle markers, black text, no background panel */
.c9-svc__tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
  max-width: 640px;
  margin-bottom: 26px;
  padding: 0;
  background: none;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.c9-svc__tags li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.c9-svc__tags li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 0.14em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0c.5 4.2 3.8 7.5 8 8-4.2.5-7.5 3.8-8 8-.5-4.2-3.8-7.5-8-8 4.2-.5 7.5-3.8 8-8z' fill='%23090A0B'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
@media (max-width: 560px) {
  .c9-svc__tags {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
/* each service row: link to its service page, then the enquiry shortcut */
.c9-svc__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 36px;
}

.c9-closing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  margin-top: clamp(48px, 6vw, 88px);
}
.c9-closing__text {
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.024em;
  max-width: 24ch;
}

/* desktop: 130px breathing room above and below each service */
@media (min-width: 1024px) {
  .c9-svc__row {
    padding-top: 130px;
    padding-bottom: 130px;
  }
}
@media (max-width: 1023px) {
  .c9-svc {
    grid-template-columns: 1fr;
  }
  .c9-svc__stage {
    display: none;
  }
  .c9-svc__row {
    grid-template-columns: 1fr;
  }
  .c9-svc__num {
    padding-top: 0;
    margin-bottom: 14px;
  }
  .c9-svc__slot:not(:empty) {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    margin-bottom: 32px;
    background: var(--ink);
    overflow: hidden;
  }
  .c9-svc__slot .c9-svc__visual {
    opacity: 1;
    visibility: visible;
  }
  .c9-svc__slot .c9-svc__img {
    transform: none;
  }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .c9-svc__slot:not(:empty) {
    aspect-ratio: 16 / 10;
  }
}

/* ---------- illustrative product screens (pure HTML/CSS, decorative) ---------- */
.c9-ui {
  container-type: inline-size;
  position: relative;
  color: var(--ink);
}
.c9-ui span,
.c9-ui em,
.c9-ui b,
.c9-ui i,
.c9-ui strong {
  display: block;
}
.c9-ui .w100 {
  width: 100%;
}
.c9-ui .w80 {
  width: 80%;
}
.c9-ui .w60 {
  width: 60%;
}
.c9-ui .w40 {
  width: 40%;
}

/* ---------- real project screens (03–05 and the project cards) ----------
   A neutral device frame around an actual screenshot. While no screenshot is present the frame shows a quiet
   "asset to follow" label; it hides itself as soon as an <img> is added before it. */
.c9-shot {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #1b1e21;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.65);
}
.c9-svc__visual .c9-shot--browser,
.c9-svc__visual .c9-shot--app {
  width: min(92cqw, calc((96cqh - 30px) * 1.6));
}
.c9-shot--fill {
  width: 100%;
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.8);
  border-radius: 8px;
}
.c9-shot__bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: #24282c;
}
.c9-shot__bar i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4a5056;
}
.c9-shot__url {
  display: block;
  margin-left: 14px;
  flex: 0 1 38%;
  height: 16px;
  border-radius: 8px;
  background: #30353a;
}
.c9-shot__url--text {
  flex: none;
  height: auto;
  padding: 2px 12px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #c2c6cb;
}
.c9-shot__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #121416;
}
.c9-shot__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}
.c9-shot__pending {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 16px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a7acb2 !important;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center;
}
.c9-shot__screen img ~ .c9-shot__pending {
  display: none;
}

/* two phones */
.c9-shot--phones {
  container-type: inline-size;
  width: min(84cqw, 88cqh);
  aspect-ratio: 1 / 1.08;
  background: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}
.c9-shot__phone {
  position: absolute;
  left: 7%;
  top: 0;
  z-index: 2;
  width: 46%;
  border: 2.2cqw solid #1d2023;
  border-radius: 7cqw;
  overflow: hidden;
  background: #121416;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.75);
}
.c9-shot__phone .c9-shot__screen {
  aspect-ratio: 9 / 19.5;
}
.c9-shot__phone .c9-shot__pending {
  font-size: max(10px, 2.6cqw);
  letter-spacing: 0.1em;
  background-size: 20px 20px;
}
.c9-shot__phone--back {
  left: auto;
  right: 5%;
  top: 8%;
  z-index: 1;
}

/* assistant */
.c9-ui--chat {
  width: min(78cqw, 82cqh);
  aspect-ratio: 1 / 1.02;
  background: var(--white);
  padding: 4.5cqw;
  display: flex;
  flex-direction: column;
  gap: 4cqw;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.c9-ui__chathead {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  padding-bottom: 3.4cqw;
  border-bottom: 1px solid #e3e5e7;
}
.c9-ui__chathead .c9-ui__dot {
  width: 4.4cqw;
  height: 4.4cqw;
  border-radius: 50%;
  border: 1px solid var(--ink);
  position: relative;
}
.c9-ui__chathead .c9-ui__dot::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: var(--ink);
}
.c9-ui__chathead > span:last-child {
  height: 2.2cqw;
  background: var(--ink);
}
.c9-ui__msg {
  width: 80%;
  padding: 3.4cqw;
  background: var(--silver);
}
.c9-ui__msg span {
  height: 1.8cqw;
  background: #c3c7cb;
  margin-bottom: 1.8cqw;
}
.c9-ui__msg span:last-of-type {
  margin-bottom: 0;
}
.c9-ui__msg--user {
  align-self: flex-end;
  width: 62%;
  background: var(--ink);
}
.c9-ui__msg--user span {
  background: rgba(255, 255, 255, 0.55);
}
.c9-ui__sources {
  display: flex;
  gap: 1.6cqw;
  margin-top: 3cqw;
}
.c9-ui__sources em {
  width: 16cqw;
  height: 4.4cqw;
  border: 1px solid #bfc3c7;
  background: var(--white);
}
.c9-ui__flow {
  display: flex;
  align-items: center;
  gap: 2cqw;
  font-family: var(--mono);
  font-size: max(8px, 2.5cqw);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5d6268;
}
.c9-ui__flow span {
  display: inline-block;
  padding: 1.2cqw 2cqw;
  border: 1px solid #d4d7da;
}
.c9-ui__flow i {
  flex: 1;
  height: 1px;
  background: #c3c7cb;
}
.c9-ui__compose {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3cqw;
  border: 1px solid #d4d7da;
}
.c9-ui__compose span {
  height: 1.8cqw;
  background: #d4d7da;
}
.c9-ui__compose em {
  width: 5cqw;
  height: 5cqw;
  background: var(--ink);
}

/* =========================================================================
   5 · SELECTED WORK & CREATIVE STUDIES
   ========================================================================= */
.c9-work__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(64px, 8vw, 128px) clamp(24px, 3vw, 48px);
  align-items: start;
}
.c9-study {
  grid-column: span 6;
}
.c9-study--feature {
  grid-column: 1 / -1;
}
.c9-work {
  --study-offset: clamp(80px, 14vw, 220px);
} /* stagger: how far the right-hand card starts below the left one */
.c9-study--offset {
  margin-top: var(--study-offset);
}
.c9-study__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #15171a;
}
.c9-study--feature .c9-study__media {
  aspect-ratio: 21 / 10;
}
.c9-study__media--tall {
  aspect-ratio: 4 / 5;
}
.c9-study__media img {
  position: absolute;
  left: 0;
  top: -9%;
  width: 100%;
  height: 118%;
  object-fit: cover;
  will-change: transform;
}
.c9-study--offset .c9-study__media img {
  object-position: 64% 50%;
}
.c9-study__meta {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  margin-top: 24px;
  align-items: start;
}
.c9-study__index {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--mute-dark);
  padding-top: 0.5em;
}
.c9-study__title {
  font-size: var(--fs-h3);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin-bottom: 8px;
}
.c9-study__cat {
  font-family: var(--mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute-dark) !important;
  margin-bottom: 14px;
}
.c9-study__desc {
  max-width: 46ch;
}
.c9-study__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
}
.c9-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white) !important;
  border: 1px solid var(--line-dark);
  padding: 8px 12px;
  white-space: nowrap;
}
.c9-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--white);
}
.c9-status__dot--study {
  background: transparent;
  border: 1px solid var(--white);
}
.c9-study:not(.c9-study--feature) .c9-study__meta {
  grid-template-columns: 44px minmax(0, 1fr);
}
.c9-study:not(.c9-study--feature) .c9-study__side {
  grid-column: 2;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  text-align: left;
  margin-top: 8px;
}
/* group labels (Digital projects / Creative studies) and the project role line — additions in the same style */
.c9-work__label {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  margin-bottom: calc(-1 * clamp(24px, 4vw, 72px));
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  font-weight: 600;
  color: var(--white);
}
.c9-work__label span {
  font-weight: 400;
  font-family: var(--mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute-dark);
}
.c9-work__label + .c9-study--small,
.c9-work__label ~ .c9-study--small {
  margin-top: 0;
}
.c9-study__role {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-dark);
  max-width: 46ch;
}
.c9-study__role dt {
  font-family: var(--mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute-dark);
}
.c9-study__role dd {
  margin: 0;
  font-size: 16px;
  color: var(--white);
}
.c9-study--small .c9-study__title {
  font-size: clamp(24px, 2vw, 30px);
}
.c9-work__note {
  margin-top: clamp(64px, 8vw, 112px);
  font-size: 15px;
  color: var(--mute-dark) !important;
  max-width: 70ch;
  border-top: 1px solid var(--line-dark);
  padding-top: 20px;
}

@media (max-width: 1023px) {
  .c9-study,
  .c9-study--feature {
    grid-column: 1 / -1;
  }
  .c9-study--offset {
    margin-top: 0;
  }
  .c9-study--feature .c9-study__media {
    aspect-ratio: 16 / 10;
  }
  .c9-study__media--tall {
    aspect-ratio: 4 / 3.4;
  }
}
@media (max-width: 767px) {
  .c9-study__meta,
  .c9-study:not(.c9-study--feature) .c9-study__meta {
    grid-template-columns: 1fr;
  }
  .c9-study__index {
    padding-top: 0;
  }
  .c9-study__side,
  .c9-study:not(.c9-study--feature) .c9-study__side {
    grid-column: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    text-align: left;
    margin-top: 8px;
  }
}

/* creative studies (04, 05): portrait 3:4 frames, matching the tall images of the "Start with what you need" section.
   Width comes from the grid column, height from the ratio — no fixed heights. Images are cropped with object-fit: cover. */
.c9-study--small .c9-study__media {
  aspect-ratio: 3 / 4;
}
.c9-study--small .c9-study__media img {
  object-position: 50% 50%;
}
/* landscape source with the subject on the right: keep the model in the portrait crop instead of cutting her in half */
.c9-study--small .c9-study__media img.c9-study__img--focus-right {
  object-position: 100% 50%;
}
/* tablet: keep the two studies side by side (other work items still go full width at this size) */
@media (min-width: 768px) and (max-width: 1023px) {
  .c9-study--small {
    grid-column: span 6;
  }
}
/* staggered pair, like projects 02 / 03: study 05 starts lower by the same offset. Kept while the two studies sit
   side by side (desktop + tablet); removed on mobile where they stack. Overrides the label's margin-top: 0 reset. */
.c9-work__label ~ .c9-study--small.c9-study--offset {
  margin-top: var(--study-offset);
}
@media (max-width: 767px) {
  .c9-work__label ~ .c9-study--small.c9-study--offset {
    margin-top: 0;
  }
}

/* =========================================================================
   6 · PROJECT STARTING POINTS
   Split head (heading left, intro right), then three stacking rows A / B / C. Each row pairs its own image (left)
   with its lettered text (right); the hairline dividers sit only on the text column.
   Stacking (reference Services behaviour): every row is position: sticky with a slightly larger top offset than the
   one before, and a solid background. As you scroll, row A pins under the header, B slides up over it and pins a
   peek-strip lower, then C does the same, leaving the earlier rows' top edges visible as a stack. A short spacer at
   the end of the list holds the full stack, then all three release together when the list ends (before the CTA).
   All rules are scoped to .c9-start; shared .c9-wrap / .c9-head--split rules are untouched.
   ========================================================================= */
.c9-start {
  --start-maxw: 1320px; /* content width of this section's container */
  --start-gap: clamp(48px, 6.5vw, 112px); /* image ↔ text gap, also the head column gap */
  --start-key: 72px; /* width of the A / B / C identifier column */
  --start-row-gap: clamp(40px, 5vw, 72px); /* space between rows before they stack */
  --start-sticky-top: calc(var(--nav-h) + 24px); /* where row A pins: clears the fixed header */
  --start-peek: 32px; /* strip of each earlier row left visible above the next */
  --start-hold: 30vh; /* scroll distance the complete stack stays pinned */
  --start-row-max: 600px; /* tallest a pinned row gets */
}
.c9-start__wrap {
  max-width: calc(var(--start-maxw) + 2 * var(--gutter));
}

/* head */
.c9-start__head {
  column-gap: var(--start-gap);
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 104px);
}
.c9-start__head .c9-intro {
  max-width: 32ch;
}

/* rows */
.c9-start__item {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: var(--start-gap);
  align-items: stretch;
  background: var(--white); /* solid, so a row covers the one beneath it when they stack */
}
.c9-start__item + .c9-start__item {
  margin-top: var(--start-row-gap);
}
.c9-start__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--silver);
  aspect-ratio: 4 / 5;
  max-height: calc(100vh - var(--nav-h) - 10vh);
}
/* 116% tall so the desktop parallax (±6%) never shows an edge; object-fit keeps any replacement image undistorted */
.c9-start__media img {
  position: absolute;
  left: 0;
  top: -8%;
  width: 100%;
  height: 116%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
}

.c9-start__text {
  position: relative;
  display: grid;
  grid-template-columns: var(--start-key) minmax(0, 1fr);
  align-items: first baseline;
  align-content: center; /* text block centred vertically against the row image */
  padding: clamp(36px, 4vw, 56px) 0;
  border-top: 1px solid var(--line-light);
}
.c9-start__item:last-child .c9-start__text {
  border-bottom: 1px solid var(--line-light);
}
.c9-start__text::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out);
}
.c9-start__num {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--mute-light);
  transition: color 0.3s var(--ease);
}
.c9-start__body {
  min-width: 0;
}
.c9-start__title {
  font-size: clamp(28px, 3.1vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 18px;
  overflow-wrap: break-word;
  transition: transform 0.6s var(--ease-out);
}
.c9-start__item p {
  color: var(--body-light);
  max-width: 48ch;
  text-wrap: pretty;
  transition: transform 0.6s var(--ease-out);
}
@media (hover: hover) {
  .c9-start__item:hover .c9-start__text::before {
    transform: scaleX(1);
  }
  .c9-start__item:hover .c9-start__num {
    color: var(--ink);
  }
  .c9-start__item:hover .c9-start__title,
  .c9-start__item:hover p {
    transform: translateX(10px);
  }
}
.c9-start__close {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
  margin-top: clamp(72px, 9vw, 140px);
}

/* stacking — tablet width and up, only where the viewport is tall enough for a pinned row plus the peek strips */
@media (min-width: 768px) and (min-height: 600px) {
  .c9-start__item {
    position: sticky;
    top: calc(var(--start-sticky-top) + var(--i, 0) * var(--start-peek));
    min-height: clamp(320px, calc(100vh - var(--start-sticky-top) - 2 * var(--start-peek) - 32px), var(--start-row-max));
  }
  .c9-start__media {
    aspect-ratio: auto;
    max-height: none;
  } /* fills the row height instead */
  .c9-start__list::after {
    content: "";
    display: block;
    height: var(--start-hold);
  }
}

/* tablet: tighten gaps, type, identifier column and pinned row height */
@media (max-width: 1023px) {
  .c9-start {
    --start-gap: clamp(28px, 4.5vw, 44px);
    --start-key: 44px;
    --start-row-gap: 40px;
    --start-sticky-top: calc(var(--nav-h) + 16px);
    --start-peek: 28px;
    --start-row-max: 440px;
  }
  .c9-start__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .c9-start__head .c9-intro {
    justify-self: end;
    font-size: 18px;
  }
  .c9-start__text {
    padding: 32px 0;
  }
  .c9-start__title {
    font-size: clamp(24px, 3.2vw, 30px);
    margin-bottom: 14px;
  }
  .c9-start__item p {
    font-size: 16px;
  }
}
/* mobile: natural stacked layout — heading, intro, then each row as image over text; no sticky */
@media (max-width: 767px) {
  .c9-start {
    --start-row-gap: 56px;
  }
  .c9-start__head {
    grid-template-columns: 1fr;
    row-gap: 20px;
    margin-bottom: 40px;
  }
  .c9-start__head .c9-intro {
    justify-self: start;
    font-size: var(--fs-lead);
  }
  .c9-start__item {
    grid-template-columns: 1fr;
  }
  .c9-start__media {
    aspect-ratio: 4 / 3;
    max-height: none;
  }
  .c9-start__text {
    grid-template-columns: 1fr;
    padding: 24px 0 0;
    border-top: 0;
  }
  .c9-start__item:last-child .c9-start__text {
    border-bottom: 0;
  }
  .c9-start__num {
    margin-bottom: 14px;
  }
  .c9-start__title {
    font-size: clamp(26px, 7.2vw, 32px);
  }
}

/* =========================================================================
   7 · PROCESS
   ========================================================================= */
.c9-process .c9-h2 {
  max-width: none;
} /* two lines: "A clear process." / "Room for ambition." (line break in the HTML) */
/* phones: scale down just enough that "Room for ambition." (≈ 8.6 × font-size wide) still fits on one line */
@media (max-width: 767px) {
  .c9-process .c9-h2 {
    font-size: min(var(--fs-h2), calc((100vw - 2 * var(--gutter)) / 9));
  }
}
.c9-steps__line {
  position: relative;
  height: 1px;
  background: var(--line-light);
}
.c9-steps__line span {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: left;
}
.c9-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.c9-step {
  position: relative;
  padding-top: 44px;
}
.c9-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: -4px;
  width: 7px;
  height: 7px;
  background: var(--ink);
}
.c9-step__num {
  display: block;
  font-size: clamp(56px, 5.6vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 300;
  margin-bottom: clamp(28px, 3vw, 44px);
}
.c9-step__title {
  font-size: clamp(22px, 1.8vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin-bottom: 14px;
}
.c9-step p {
  color: var(--body-light);
  font-size: clamp(16px, 1.1vw, 17px);
  max-width: 34ch;
}

@media (max-width: 1023px) and (min-width: 768px) {
  .c9-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 56px;
  }
}
@media (max-width: 767px) {
  .c9-steps__line {
    display: none;
  }
  .c9-steps {
    grid-template-columns: 1fr;
    gap: 0;
    border-left: 1px solid var(--line-light);
  }
  .c9-step {
    padding: 0 0 48px 28px;
  }
  .c9-step:last-child {
    padding-bottom: 0;
  }
  .c9-step::before {
    left: -4px;
    top: 10px;
  }
  .c9-step__num {
    font-size: 52px;
    margin-bottom: 18px;
  }
}

/* =========================================================================
   8 · FAQ
   ========================================================================= */
.c9-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(40px, 6vw, 112px);
  align-items: start;
}
.c9-faq__head {
  position: sticky;
  top: calc(var(--nav-h) + 6vh);
}
/* Accordion — separate rounded cards (reference treatment): silver cards on the white section,
   question set larger and medium weight, a plus that turns into a close cross, one item open at a time. */
.c9-acc {
  display: grid;
  gap: clamp(14px, 1.6vw, 24px);
}
.c9-acc__item {
  background: var(--silver);
  border-radius: 12px;
  transition:
    background-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.c9-acc__item:not(.is-closed) {
  background: var(--silver);
  box-shadow: 0 1px 0 rgba(9, 10, 11, 0.04);
}
.c9-acc__q {
  font-size: inherit;
  font-weight: 600;
}
.c9-acc__q button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: clamp(22px, 2.3vw, 34px) clamp(22px, 2.6vw, 40px);
  background: none;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.018em;
  font-weight: 600;
  color: var(--ink);
}
.c9-acc__item:not(.is-closed) .c9-acc__q button {
  padding-bottom: clamp(10px, 1vw, 14px);
}
.c9-acc__q button:hover > span {
  opacity: 0.72;
}
.c9-acc__q button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}
.c9-acc__icon {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease);
}
.c9-acc__icon::before,
.c9-acc__icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
  border-radius: 1px;
}
.c9-acc__icon::after {
  transform: rotate(90deg);
}
.c9-acc__q button[aria-expanded="true"] .c9-acc__icon {
  transform: rotate(45deg);
} /* + becomes × */
.c9-acc__panel {
  display: grid;
  grid-template-rows: 1fr;
  transition:
    grid-template-rows 0.35s var(--ease),
    visibility 0s;
}
.c9-acc__inner {
  overflow: hidden;
  min-height: 0;
}
.c9-acc__inner p {
  color: var(--body-light);
  max-width: 64ch;
  padding: 0 clamp(56px, 6vw, 96px) clamp(24px, 2.4vw, 36px) clamp(22px, 2.6vw, 40px);
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.6;
}
.c9-acc__item.is-closed .c9-acc__panel {
  grid-template-rows: 0fr;
  visibility: hidden;
  transition:
    grid-template-rows 0.35s var(--ease),
    visibility 0s linear 0.35s;
}
@media (max-width: 767px) {
  .c9-acc__item,
  .c9-acc__q button {
    border-radius: 10px;
  }
  .c9-acc__icon {
    width: 16px;
    height: 16px;
  }
  .c9-acc__icon::before,
  .c9-acc__icon::after {
    width: 16px;
  }
  .c9-acc__inner p {
    padding-right: 22px;
  }
}

/* FAQ (homepage and service pages): numbered questions; the open answer turns ink */
.c9-acc {
  counter-reset: q;
}
.c9-acc__q button > span {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 1.6vw, 24px);
}
.c9-acc__q button > span::before {
  counter-increment: q;
  content: counter(q, decimal-leading-zero);
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--mute-light);
}
.c9-acc__inner p {
  padding-left: calc(clamp(22px, 2.6vw, 40px) + 20px + clamp(14px, 1.6vw, 24px));
}
.c9-acc__item {
  transition:
    background-color 0.4s var(--ease),
    color 0.4s var(--ease);
}
.c9-acc__item:not(.is-closed) {
  background: var(--ink);
}
.c9-acc__item:not(.is-closed) .c9-acc__q button {
  color: var(--white);
}
.c9-acc__item:not(.is-closed) .c9-acc__q button > span::before {
  color: var(--mute-dark);
}
.c9-acc__item:not(.is-closed) .c9-acc__inner p {
  color: var(--body-dark);
}
.c9-acc__item:not(.is-closed) .c9-acc__q button:focus-visible {
  outline-color: var(--white);
}
@media (hover: hover) {
  .c9-acc__item.is-closed:hover {
    background: #e9ebec;
  }
}
@media (max-width: 767px) {
  .c9-acc__inner p {
    padding-left: 22px;
  }
}

@media (max-width: 1023px) {
  .c9-faq__grid {
    grid-template-columns: 1fr;
  }
  .c9-faq__head {
    position: static;
  }
}

/* =========================================================================
   9 · PROJECT ENQUIRY
   ========================================================================= */
.c9-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px clamp(40px, 6vw, 112px);
  align-items: start;
}
.c9-contact__head .c9-h2 {
  margin-bottom: 32px;
}
.c9-contact__head p {
  max-width: 44ch;
  margin-bottom: 1em;
}
.c9-contact .c9-h2 .c9-h2__muted {
  color: #7c8086;
}
.c9-contact .c9-contact__lead {
  color: var(--white);
  font-size: var(--fs-lead);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 26ch;
}

/* Enquiry form — reference treatment: bordered rounded card, uppercase labels, underline fields,
   full-width white pill submit. Focus shows as a brighter underline only (no white box). */
.c9-contact__formwrap {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: clamp(24px, 3.6vw, 52px);
}
.c9-form {
  display: grid;
  gap: clamp(34px, 3.8vw, 52px);
}
.c9-form__row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 3.8vw, 52px) 24px;
}
.c9-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.c9-field label,
.c9-field legend {
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 6px;
  padding: 0;
}
.c9-req {
  color: var(--white);
}
.c9-opt {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute-dark);
  margin-left: 6px;
}
.c9-field input[type="text"],
.c9-field input[type="email"],
.c9-field input[type="url"],
.c9-field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.c9-field textarea {
  resize: vertical;
  min-height: 130px;
}
.c9-field input::placeholder,
.c9-field textarea::placeholder {
  color: #a9aeb4;
  opacity: 1;
}
.c9-field input:hover,
.c9-field textarea:hover {
  border-bottom-color: rgba(255, 255, 255, 0.55);
}
.c9-field input:focus,
.c9-field textarea:focus,
.c9-field input:focus-visible,
.c9-field textarea:focus-visible {
  outline: none;
  box-shadow: none;
  border-bottom-color: var(--white);
}
.c9-field input:-webkit-autofill {
  -webkit-text-fill-color: var(--white);
  -webkit-box-shadow: 0 0 0 1000px var(--ink) inset;
  caret-color: var(--white);
}
.c9-field__hint {
  font-size: 14px;
  color: var(--mute-dark) !important;
  margin-top: 8px;
}
.c9-field--choices .c9-field__hint {
  margin: 0 0 16px;
}
.c9-field__err {
  font-size: 14px;
  color: var(--error) !important;
  margin-top: 8px;
  display: none;
}
.c9-field.is-invalid .c9-field__err {
  display: block;
}
.c9-field.is-invalid input,
.c9-field.is-invalid textarea {
  border-bottom-color: var(--error);
}
.c9-field__err::before {
  content: "! ";
  font-weight: 700;
}

.c9-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.c9-chip {
  position: relative;
  cursor: pointer;
}
.c9-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.c9-chip span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  font-size: 15px;
  color: var(--white);
  transition:
    background-color 0.12s var(--ease),
    color 0.12s var(--ease),
    border-color 0.12s var(--ease);
}
.c9-chip span::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  flex: none;
  transition: background-color 0.12s var(--ease);
}
.c9-chip:hover span {
  border-color: rgba(255, 255, 255, 0.55);
}
.c9-chip input:checked + span {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.c9-chip input:checked + span::before {
  background: currentColor;
}
.c9-chip input:focus-visible + span {
  border-color: rgba(255, 255, 255, 0.7);
}

.c9-hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.c9-form__foot {
  display: grid;
  gap: 20px;
  padding-top: 12px;
}
.c9-form__privacy {
  font-size: 15px;
  max-width: 52ch;
}
.c9-form__privacy a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.c9-form__privacy a:hover {
  text-decoration-thickness: 2px;
}
.c9-form__submit {
  width: 100%;
  min-height: 62px;
  justify-content: center;
  padding: 8px 64px;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.c9-form__submit .c9-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  margin-top: -22px;
}
.c9-form__submit::before {
  right: 8px;
}
.c9-form__submit:hover::before,
.c9-form__submit:focus-visible::before {
  transform: scale(40);
}
.c9-form__submit[aria-busy="true"] {
  opacity: 0.75;
  cursor: progress;
}
.c9-form__error {
  border: 1px solid var(--error);
  border-radius: 10px;
  color: var(--white);
  padding: 16px 18px;
  font-size: 15px;
}
.c9-form__error:focus {
  outline: none;
}
.c9-success {
  padding: 8px 0;
}
.c9-success__title {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--white);
}
.c9-success__title:focus {
  outline: none;
}

@media (max-width: 1023px) {
  .c9-contact__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .c9-form__row--2 {
    grid-template-columns: 1fr;
  }
  .c9-contact__formwrap {
    border-radius: 14px;
  }
  .c9-form__submit {
    justify-content: space-between;
    padding: 8px 8px 8px 24px;
    font-size: 16px;
    text-align: left;
    line-height: 1.25;
  } /* label may wrap to two lines on small phones instead of overflowing */
  .c9-form__submit .c9-icon {
    position: relative;
    right: auto;
    top: auto;
    margin-top: 0;
  }
}

/* =========================================================================
   10 · FOOTER
   ========================================================================= */
.c9-footer {
  background: var(--ink);
  color: var(--white);
  padding: clamp(72px, 8vw, 128px) 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
}
.c9-footer__closing {
  font-size: clamp(38px, 5.6vw, 88px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 16ch;
  margin-bottom: clamp(56px, 6.5vw, 104px);
  text-wrap: balance;
}
.c9-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--line-dark);
}
.c9-footer__logo {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 8px;
}
.c9-footer__brand p {
  color: var(--body-dark);
  max-width: 34ch;
  font-size: 16px;
}
.c9-footer__nav ul {
  display: grid;
  gap: 2px;
}
.c9-footer__nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
  color: var(--body-dark);
  font-size: 16px;
  transition: color 0.2s var(--ease);
}
.c9-footer__nav a:hover {
  color: var(--white);
}
.c9-footer__cta {
  justify-self: end;
}
.c9-footer__company {
  display: flex;
  flex-wrap: wrap;
  gap: 16px clamp(24px, 4vw, 56px);
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 15px;
  line-height: 1.5;
  color: var(--body-dark);
}
.c9-footer__k {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute-dark);
}
.c9-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  margin-top: clamp(32px, 4vw, 56px);
  font-family: var(--mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute-dark);
}
.c9-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}
.c9-footer__legal a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
  color: var(--body-dark);
}
.c9-footer__legal a:hover,
.c9-footer__legal a:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- back to top: round button fixed bottom-right ----------
   Dark disc with a light hairline so it reads on both dark and light sections. On hover it inverts and the
   arrow swaps upward (same motion language as the site's other arrow buttons). Hidden until scrolled. */
.c9-totop {
  position: fixed;
  right: clamp(16px, 2.4vw, 32px);
  bottom: clamp(16px, 2.4vw, 32px);
  z-index: 60;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 30px -12px rgba(9, 10, 11, 0.6);
  text-decoration: none;
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease),
    visibility 0s linear 0s,
    background-color 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.c9-totop svg {
  grid-area: 1 / 1;
  width: 16px;
  height: 16px;
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1);
}
.c9-totop svg + svg {
  transform: translateY(220%);
}
.c9-totop:hover,
.c9-totop:focus-visible {
  background: var(--white);
  color: var(--ink);
  border-color: var(--ink);
}
.c9-totop:hover svg,
.c9-totop:focus-visible svg {
  transform: translateY(-220%);
}
.c9-totop:hover svg + svg,
.c9-totop:focus-visible svg + svg {
  transform: translateY(0);
}
.c9-totop:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px var(--white),
    0 0 0 5px var(--ink);
}
.js .c9-totop:not(.is-visible),
body.c9-menu-open .c9-totop {
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease),
    visibility 0s linear 0.3s;
}
@media (max-width: 767px) {
  .c9-totop {
    width: 48px;
    height: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .c9-totop,
  .c9-totop svg {
    transition: none;
  }
}
@media print {
  .c9-totop {
    display: none;
  }
}
@media (max-width: 767px) {
  .c9-footer__grid {
    grid-template-columns: 1fr;
  }
  .c9-footer__cta {
    justify-self: start;
  }
}

/* =========================================================================
   STUDY DETAIL VIEW (dialog + gallery)
   ========================================================================= */
.c9-dialog {
  width: min(1240px, calc(100vw - 2 * var(--gutter)));
  max-width: none;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-dark);
  background: var(--ink);
  color: var(--white);
  overflow: auto;
  overscroll-behavior: contain;
}
.c9-dialog::backdrop {
  background: rgba(9, 10, 11, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.c9-dialog[open] {
  animation: c9-dialog-in 0.45s var(--ease-out);
}
@keyframes c9-dialog-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.c9-dialog__inner {
  padding: clamp(22px, 3.6vw, 52px);
}
.c9-dialog__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 20px;
}
.c9-dialog__head .c9-eyebrow {
  color: var(--mute-dark);
  margin-bottom: 14px;
}
.c9-dialog__title {
  font-size: clamp(32px, 4vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.c9-dialog__close {
  min-height: 44px;
  padding: 0 18px;
  background: none;
  border: 1px solid var(--line-dark);
  color: var(--white);
  cursor: pointer;
  font-size: 16px;
  flex: none;
}
.c9-dialog__close:hover {
  background: var(--white);
  color: var(--ink);
}
.c9-dialog__desc {
  color: var(--body-dark);
  max-width: 64ch;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.c9-dialog__foot {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute-dark);
  margin-top: 24px;
}

.c9-gallery__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
  outline-offset: 4px;
  overscroll-behavior-x: contain;
}
.c9-gallery__track::-webkit-scrollbar {
  display: none;
}
.c9-gallery__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.c9-gallery__track.is-dragging img {
  pointer-events: none;
}
.c9-gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin: 0;
}
.c9-gallery__slide img {
  width: 100%;
  height: min(58vh, 56vw);
  object-fit: contain;
  background: #050606;
  user-select: none;
  -webkit-user-drag: none;
}
.c9-gallery__slide figcaption {
  font-size: 15px;
  color: var(--body-dark);
  margin-top: 12px;
}
.c9-gallery__controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
}
.c9-gallery__count {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--body-dark) !important;
}
.c9-gallery__btns {
  display: flex;
  gap: 8px;
}
.c9-gallery__btns button {
  min-height: 44px;
  min-width: 88px;
  padding: 0 16px;
  background: none;
  border: 1px solid var(--line-dark);
  color: var(--white);
  cursor: pointer;
  font-size: 16px;
}
.c9-gallery__btns button:hover:not(:disabled) {
  background: var(--white);
  color: var(--ink);
}
.c9-gallery__btns button:disabled {
  opacity: 0.35;
  cursor: default;
}
body.c9-dialog-open {
  overflow: hidden;
}

/* no scrollbar shift when overlays lock scrolling */
html {
  scrollbar-gutter: stable;
}

/* =========================================================================
   MOTION SAFETY
   ========================================================================= */
/* GSAP sets every initial (hidden) state from JavaScript, so content stays visible if scripts fail. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .c9-svc__img,
  .c9-start__title,
  .c9-start__item p {
    transition: none !important;
    transform: none !important;
  }
  .c9-hero__cue-line::after {
    display: none;
  }
}
@media print {
  .c9-nav,
  .c9-menu,
  .c9-hero__cue,
  .c9-svc__stage,
  .c9-dialog {
    display: none !important;
  }
  .gda {
    height: auto !important;
  }
}


/* Mobile header: the menu toggle keeps the full width of its label in every language
   ("Schließen", "Bezárás" were clipped at the right edge on 360 px screens) */
.c9-nav__toggle {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .c9-nav__inner {
    gap: 16px;
  }

  .c9-nav__toggle-icon {
    display: none;
  }

  .c9-nav .c9ml-switch--nav .c9ml-switch__code {
    display: none;
  }

  .c9-nav .c9ml-switch__btn {
    padding: 0 11px;
  }
}
