/* Fonts are self-hosted (no requests to Google): Instrument Sans (variable, 400–700) and Courgette, both SIL Open Font
   Licence. latin covers English, latin-ext adds the Serbian letters (č ć š ž đ); browsers only download what a page uses. */
@font-face { font-family: "Instrument Sans"; src: url("../assets/fonts/instrument-sans-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; src: url("../assets/fonts/instrument-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Courgette"; src: url("../assets/fonts/courgette-latin-ext.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Courgette"; src: url("../assets/fonts/courgette-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Raven — hand-written layer on top of the compiled Tailwind export (css/styles.css).
   Theme tokens, light mode, the theme toggle, readability and rhythm fixes.
   Load order: styles.css, then this file. */

/* ── Dark (default, the navy brand) ───────────────────────────── */
:root {
  --muted-foreground: oklch(82% .03 260);
  --nav-height: 6rem;
  color-scheme: dark;
}

/* ── Light ─────────────────────────────────────────────────────── */
:root[data-theme="light"] {
  color-scheme: light;
  --background: oklch(97.4% .009 262);
  --foreground: oklch(20% .075 266);
  --card: oklch(100% 0 0);
  --card-foreground: oklch(20% .075 266);
  --popover: oklch(100% 0 0);
  --popover-foreground: oklch(20% .075 266);
  --primary: oklch(54% .22 259);
  --primary-foreground: oklch(100% 0 0);
  --secondary: oklch(90.5% .05 262);
  --secondary-foreground: oklch(20% .075 266);
  --muted: oklch(93.5% .02 262);
  --muted-foreground: oklch(42% .045 264);
  --accent: oklch(54% .22 259);
  --accent-foreground: oklch(100% 0 0);
  --border: oklch(20% .075 266 / .12);
  --input: oklch(20% .075 266 / .16);
  --ring: oklch(54% .22 259);
  --surface: oklch(20% .075 266 / .035);
  --surface-strong: oklch(90.5% .05 262);
  --line: oklch(20% .075 266 / .09);
  --border-strong: oklch(20% .075 266 / .2);
  --highlight: oklch(100% 0 0 / .75);
  --shadow-soft: 0 18px 50px oklch(25% .09 265 / .08);
  --shadow-card: 0 24px 70px oklch(25% .09 265 / .1), inset 0 1px 0 oklch(100% 0 0 / .8);
  --shadow-card-hover: 0 34px 90px oklch(25% .09 265 / .16), 0 0 0 1px oklch(54% .22 259 / .18), inset 0 1px 0 oklch(100% 0 0 / .9);
  --shadow-button: 0 12px 28px oklch(54% .22 259 / .24), inset 0 1px 0 oklch(100% 0 0 / .22);
  --shadow-button-hover: 0 18px 40px oklch(54% .22 259 / .34), inset 0 1px 0 oklch(100% 0 0 / .26);
  --hero-gradient: radial-gradient(circle at 75% 40%, oklch(90.5% .05 262 / .8), transparent 38%);
  --accent-gradient: linear-gradient(135deg, oklch(57% .22 259), oklch(44% .2 264));
  --metal-gradient: linear-gradient(130deg, oklch(20% .075 266), oklch(46% .09 262));
}

:root[data-theme="light"] .site-grid-texture { filter: none; opacity: .035; }
:root[data-theme="light"] .hero-video { opacity: .1; filter: grayscale(1) contrast(1.1); }
:root[data-theme="light"] .opening-raven { opacity: .22; } /* tablet: a faint backdrop behind the copy */
@media (width >= 1024px) { :root[data-theme="light"] .opening-raven { opacity: .95; } }
:root[data-theme="light"] .why-scene > .depth-layer { opacity: .18; }
:root[data-theme="light"] .cursor-glow { mix-blend-mode: multiply; opacity: .5; }
:root[data-theme="light"] .tier-card.is-featured { color: var(--foreground); }
:root[data-theme="light"] .glass-tile,
:root[data-theme="light"] .glass-pill { background: color-mix(in oklab, var(--card) 72%, transparent); }

/* Project frames stay dark in both themes: the work is shown on its own ground. */
:root[data-theme="light"] .project-frame {
  --background: oklch(17.5% .075 266);
  --foreground: oklch(100% 0 0);
  --muted-foreground: oklch(84% .03 260);
  --border: oklch(100% 0 0 / .13);
  --primary: oklch(66% .2 255);
  color: var(--foreground);
}

/* Logo: white wordmark on navy, navy wordmark on light. */
.logo-light { display: none; }
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: block; }

/* Smooth colour change when the visitor switches theme (not on first paint). */
html.theme-switching,
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition: background-color .45s var(--ease-premium), color .45s var(--ease-premium),
    border-color .45s var(--ease-premium), fill .45s var(--ease-premium) !important;
}

/* ── Header actions + theme toggle ─────────────────────────────── */
.header-actions { display: flex; align-items: center; gap: .75rem; }

.theme-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--foreground);
  cursor: pointer;
  transition: border-color .4s var(--ease-premium), color .4s var(--ease-premium), transform .4s var(--ease-premium);
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg {
  grid-area: 1 / 1;
  inline-size: 1.125rem;
  block-size: 1.125rem;
  transition: opacity .35s var(--ease-premium), transform .5s var(--ease-premium);
}
.theme-toggle .icon-moon { opacity: 0; transform: rotate(-60deg) scale(.6); }
:root[data-theme="light"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(60deg) scale(.6); }
:root[data-theme="light"] .theme-toggle .icon-moon { opacity: 1; transform: none; }

/* No light sweep across buttons on hover (a template tell); lift and shadow stay */
.group\/button::before { content: none; }

/* ── Reveal: never hide content when scripts don't run ─────────── */
html:not(.js) [data-reveal] { opacity: 1; transform: none; clip-path: none; }
[data-reveal], [data-reveal][data-visible="true"] { clip-path: none; }

/* ── Readability: nothing meant to be read below 13px, body at 16px ─ */
main p.text-sm,
main li.text-sm,
main .text-sm.leading-7,
main .text-sm.leading-6 { font-size: 1rem; line-height: 1.7; }
main p.text-xs { font-size: .875rem; line-height: 1.5; }
main .text-\[10px\],
main .text-\[11px\],
footer .text-\[10px\] { font-size: .8125rem; line-height: 1.5; }
footer a.text-xs { font-size: .875rem; }
.eyebrow { font-size: .8125rem; letter-spacing: .14em; }

/* ── Rhythm: one consistent gap between sections ───────────────── */
main > section:not(.opening-scene):not(.contact-scene):not(.trust-scene):not(.page-intro) {
  padding-block: clamp(5.5rem, 10vw, 9.5rem);
}
main > section.contact-scene { padding-block: clamp(5rem, 8vw, 8rem); }

/* ── Hero ──────────────────────────────────────────────────────── */
.opening-title {
  font-size: clamp(3rem, 6.6vw, 7.25rem);
  line-height: .9;
  letter-spacing: -.01em;
  max-width: 15ch;
}
.opening-lede { font-size: 1.125rem; line-height: 1.7; max-width: 34rem; color: var(--muted-foreground); }

/* Raven as a bust: head to chest, anchored to the content column (not the window edge),
   lower body fading into the page. The image is a 1920² transparent WebP facing right. */
@media (width >= 1024px) {
  .opening-scene {
    --shell: min(100vw - 5rem, 80rem);
    --edge: calc((100vw - var(--shell)) / 2);
    --bust: calc(var(--shell) * .46); /* the frame the crop is measured against */
    /* the hero fits its content on tall screens instead of filling 94% of a big monitor with air */
    --hero-h: min(94svh, 62rem);
    --ticker-h: 5rem;
    --stage-h: calc(var(--hero-h) - var(--nav-height) - var(--ticker-h)); /* room between header and ticker */
    min-height: var(--hero-h);
  }
  .opening-scene > .section-shell { min-height: var(--stage-h); }
  .opening-title { font-size: clamp(3rem, 5.2vw, 4.7rem); }
  .opening-raven {
    --bust-h: min(var(--stage-h) - 1rem, var(--shell) * .6);
    /* centred beside the copy on tall screens, tucked under the header on short ones */
    top: max(var(--nav-height) + .5rem, var(--nav-height) + (var(--stage-h) - var(--bust-h)) / 2 - 1rem);
    bottom: auto;
    left: auto;
    right: 0; /* runs to the window edge so the back leaves the screen instead of being cut */
    width: calc(var(--bust) + var(--edge) - 3rem);
    height: var(--bust-h);
    overflow: hidden;
    opacity: 1;
    /* soft on every side that isn't the window edge, so neither the head nor the glow gets a hard cut */
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 46%, transparent 94%), linear-gradient(to right, transparent, #000 12%);
    mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 46%, transparent 94%), linear-gradient(to right, transparent, #000 12%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
  .opening-raven .raven-bust {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(var(--bust) * 1.92);
    height: auto;
    max-width: none;
    /* head top sits ~10% down the frame: clear of the soft top edge even at the top of the breathing motion */
    translate: -13% .5%;
    /* breathe around the head, not the middle of the (much larger) image, so it doesn't rise into the edge */
    transform-origin: 38% 18%;
  }
}

/* Big screens: the left column carries more weight next to the bust */
@media (width >= 1600px) and (height >= 950px) {
  .opening-lede { font-size: 1.25rem; max-width: 38rem; }
  .opening-scene .glass-tile .text-metal { font-size: 2.25rem; }
  .opening-scene .glass-tile p.text-xs { font-size: .95rem; }
  .opening-scene .glass-tile { padding: 1.5rem 1.75rem; }
}

/* Services ticker along the bottom of the hero */
.hero-ticker {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  min-height: 5rem;
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 55%, transparent);
}
.hero-ticker .marquee-mask { width: 100%; }
.hero-ticker-track { animation-duration: 80s; }
.hero-ticker:hover .hero-ticker-track { animation-play-state: paused; }
.hero-ticker-group {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-ticker-group li {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.125rem, 1.5vw, 1.5rem);
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--muted-foreground);
}
.hero-ticker-group li::after {
  content: "";
  inline-size: .45rem;
  block-size: .45rem;
  border-radius: 1px;
  background: var(--primary);
  rotate: 45deg;
}

/* ── Industries page: 18 industries as a grid ────────────────────── */
main > section.industries-list { padding-top: clamp(2.5rem, 4vw, 3.5rem) !important; } /* the intro already ends with space */
.industry-grid {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (width >= 640px) { .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (width >= 1024px) { .industry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.industry-card {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: 1.75rem 1.75rem 1.6rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: var(--surface);
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
  transition: border-color .45s var(--ease-premium), background-color .45s var(--ease-premium), translate .45s var(--ease-premium);
}
.industry-card:hover { border-color: color-mix(in oklab, var(--primary) 55%, var(--border)); background: color-mix(in oklab, var(--primary) 7%, var(--surface)); translate: 0 -3px; }
.industry-card:target { border-color: var(--primary); background: color-mix(in oklab, var(--primary) 10%, var(--surface)); }
.industry-name { font-family: var(--font-display); font-size: clamp(1.15rem, 1.65vw, 1.375rem); font-weight: 600; line-height: 1.2; letter-spacing: 0; }
.industry-desc { font-size: 1rem; line-height: 1.65; color: var(--muted-foreground); }
.industry-clients {
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid var(--border);
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--foreground);
}
.industry-clients span:not(.hy-word) {
  display: block;
  margin-bottom: .2rem;
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--primary);
}
.industry-more {
  display: grid;
  gap: .5rem;
  margin-top: clamp(3rem, 5vw, 4.5rem);
  max-width: 40rem;
}
.industry-more-title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; }
.industry-more-text { font-size: 1.0625rem; line-height: 1.7; color: var(--muted-foreground); }

/* ── Inner page intros: headline sits under the header, not at the bottom of a tall empty block ── */
.page-intro {
  min-height: 0;
  padding-top: calc(var(--nav-height) + clamp(2.5rem, 5vw, 4.5rem));
}
.page-intro > .section-shell {
  min-height: 0;
  justify-content: flex-start;
  gap: clamp(1.75rem, 3.5vw, 3rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}
.page-title {
  font-size: clamp(2.75rem, 6vw, 6.25rem);
  line-height: .95;
  letter-spacing: -.01em;
}
.page-intro .page-title + div { margin-top: clamp(1.5rem, 3vw, 2.5rem); }

/* Tablet: the raven stays a faint backdrop, but its head clears the header;
   the hero hugs its content instead of centring it in a near-full-screen block */
@media (768px <= width < 1024px) {
  .opening-scene { min-height: 0; }
  .opening-scene > .section-shell { min-height: 0; padding-block: 5rem 4.5rem; }
  .opening-raven { top: calc(var(--nav-height) + 1rem); }
}

/* ── Section headings ──────────────────────────────────────────── */
.scene-title { letter-spacing: -.005em; }
.manifesto-title { font-size: clamp(2.6rem, 5.4vw, 5.6rem); letter-spacing: -.01em; line-height: .95; }
.contact-title { letter-spacing: -.01em; }

/* Services: heading spans the width, rows below */
.services-head { display: grid; gap: 2rem; align-items: end; }
@media (width >= 1024px) { .services-head { grid-template-columns: 1.4fr 1fr; } }
.service-line { grid-template-columns: 1fr; }
@media (width >= 768px) { .service-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) !important; align-items: baseline; } }

/* Industries, folded into "Why Raven" as one line */
.industry-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}
.industry-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  transition: border-color .4s var(--ease-premium), color .4s var(--ease-premium), transform .4s var(--ease-premium);
}
.industry-strip a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.industry-strip .industry-strip-more { border-color: var(--primary); color: var(--primary); background: transparent; }

/* FAQ: heading across the top, questions set in from the right */
.faq-layout { display: grid; gap: 3.5rem; }
.faq-layout .scene-title { margin-top: 0; }
@media (width >= 1024px) { .faq-list { width: min(100%, 56rem); margin-left: auto; } }

/* Closing call to action: two lines on desktop */
.contact-title { font-size: clamp(2.4rem, 5.2vw, 5.5rem); line-height: .95; max-width: none; }

/* Phone sizes for the long headings */
@media (width <= 767px) {
  .manifesto-title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .contact-title { font-size: clamp(2.1rem, 9.5vw, 2.8rem); }
  .opening-lede { font-size: 1.0625rem; }
}

/* Contact form */
.form-label {
  display: block;
  margin-bottom: .75rem;
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--foreground);
}
.form-optional { font-weight: 500; color: var(--muted-foreground); }
.form-error {
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  background: color-mix(in oklab, var(--destructive) 14%, transparent);
  color: var(--foreground);
  font-size: .9375rem;
}
.form-error a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.chip[aria-pressed] { min-height: 2.75rem; }
button[aria-busy="true"] { opacity: .7; cursor: progress; }

/* Work: caption without the old number column */
@media (width >= 768px) { .project-caption { grid-template-columns: minmax(0, 1fr) auto !important; } }
.project-caption .eyebrow { letter-spacing: .08em; }

.text-link { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* ── Process as a roadmap: one road, four numbered milestones ─────
   Desktop/tablet: horizontal road through the markers. Phone: vertical road on the left.
   The blue road draws itself in once the first milestone scrolls into view. */
.roadmap {
  --node: 3rem;
  position: relative;
  display: grid;
  gap: 3rem;
  margin: clamp(3.5rem, 6vw, 5.5rem) 0 0;
  padding: 0;
  list-style: none;
}
.roadmap::before,
.roadmap::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
/* base road (faint) and the drawn road (brand blue), both fading out past the last stop */
.roadmap::before { background: var(--border-strong); }
.roadmap::after { background: var(--primary); }

.road-step { position: relative; z-index: 1; }
.road-node {
  display: grid;
  place-items: center;
  inline-size: var(--node);
  block-size: var(--node);
  border-radius: 999px;
  border: 2px solid var(--primary);
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  /* the ring of page colour lifts the marker off the road */
  box-shadow: 0 0 0 .5rem var(--background), 0 0 2rem color-mix(in oklab, var(--primary) 40%, transparent);
  transition: background-color .4s var(--ease-premium), color .4s var(--ease-premium), transform .4s var(--ease-premium);
}
.road-step:hover .road-node { background: var(--primary); color: var(--primary-foreground); transform: scale(1.08); }
.road-icon {
  display: block;
  inline-size: 4.5rem;
  block-size: 4.5rem;
  margin-top: 1.75rem;
  object-fit: contain;
}
.road-step:hover .road-icon { transform: translateY(-6px) scale(1.05); }
.road-title { margin-top: 1.25rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.road-text { margin-top: .75rem; max-width: 22rem; font-size: 1rem; line-height: 1.65; color: var(--muted-foreground); }

@media (width >= 768px) {
  .roadmap { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .roadmap::before,
  .roadmap::after {
    top: calc(var(--node) / 2 - 1px);
    left: calc(var(--node) / 2);
    right: 0;
    height: 2px;
    -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent);
    mask-image: linear-gradient(90deg, #000 78%, transparent);
  }
  .roadmap::after { transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease-premium) .15s; }
  .roadmap:has(> .road-step[data-visible="true"])::after,
  html:not(.js) .roadmap::after { transform: scaleX(1); }
}

@media (width < 768px) {
  .road-step { padding-left: calc(var(--node) + 1.5rem); min-height: var(--node); }
  .road-node { position: absolute; left: 0; top: 0; }
  .road-icon { margin-top: 0; inline-size: 3.75rem; block-size: 3.75rem; }
    .roadmap::before,
  .roadmap::after {
    left: calc(var(--node) / 2 - 1px);
    top: calc(var(--node) / 2);
    bottom: 0;
    width: 2px;
    -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent);
    mask-image: linear-gradient(180deg, #000 85%, transparent);
  }
  .roadmap::after { transform: scaleY(0); transform-origin: top; transition: transform 1.8s var(--ease-premium) .15s; }
  .roadmap:has(> .road-step[data-visible="true"])::after,
  html:not(.js) .roadmap::after { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .roadmap::after { transition: none; }
}

/* ══ Calm palette (direction A) ═════════════════════════════════════
   Same navy + blue, but flat: no gradient fills, no glass, no glows.
   Surfaces are separated by small steps in tone instead. */
:root {
  --tile: oklch(21.5% .085 266);          /* one step up from the page */
  --tile-strong: oklch(25.5% .11 265);    /* featured surface */
  --band: oklch(24.5% .13 265);           /* full-width colour field (closing call to action) */
  --accent-gradient: linear-gradient(var(--primary-deep), var(--primary-deep));
  --metal-gradient: linear-gradient(var(--foreground), var(--foreground));
  --shadow-button: none;
  --shadow-button-hover: 0 10px 24px -10px color-mix(in oklab, var(--primary) 70%, transparent);
  --shadow-card: none;
  --shadow-card-hover: none;
  --shadow-soft: none;
}
:root[data-theme="light"] {
  --tile: oklch(100% 0 0);
  --tile-strong: oklch(95.5% .028 262);
  --band: oklch(92% .045 262);
  --accent-gradient: linear-gradient(var(--primary-deep), var(--primary-deep));
  --metal-gradient: linear-gradient(var(--foreground), var(--foreground));
  --shadow-button: none;
  --shadow-button-hover: 0 10px 24px -10px color-mix(in oklab, var(--primary) 55%, transparent);
  --shadow-card: none;
  --shadow-card-hover: none;
  --shadow-soft: none;
}

/* page-wide washes and textures */
body::before { content: none; }
.site-grid-texture, .opening-grid, .glow-orb, .tier-aura, .page-intro-light { display: none; }
.opening-light { animation: none; opacity: .5; }
.why-scene::before, .expertise-scene::before { content: none; }
.opening-raven { filter: drop-shadow(0 30px 80px color-mix(in oklab, var(--primary) 16%, transparent)); }

/* flat surfaces instead of glass */
.glass-tile, .glass-pill, .floating-card, .counter-card, .premium-card {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: var(--tile);
  box-shadow: none;
}
.glass-pill { border: 1px solid var(--border); }
:root[data-theme="light"] .glass-tile,
:root[data-theme="light"] .glass-pill { background: var(--tile); }
.backdrop-blur, .backdrop-blur-sm, .backdrop-blur-md { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* pricing cards */
.tier-card {
  background: var(--tile);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
.tier-card:hover { box-shadow: none; transform: translateY(-4px); }
.tier-card.is-featured { background: var(--tile-strong); border-color: var(--primary); box-shadow: none; }

/* text and lines that were gradients */
.text-metal { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--foreground); }
.service-line::before { background: var(--surface); }

/* closing call to action: one flat field of colour */
.contact-scene { background: var(--band); }

/* roadmap markers: ring of page colour, no halo */
.road-node { box-shadow: 0 0 0 .5rem var(--background); }

/* ══ Constellation language ═════════════════════════════════════════
   The logo is a raven drawn as a constellation: separate points joined into one shape.
   The same idea (dots joined by fine lines) replaces template ornaments across the site. */
.star-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.star-lines polyline {
  fill: none;
  stroke: var(--primary);
  stroke-opacity: .45;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: star-connect 2.6s var(--ease-premium) .5s forwards;
}
.star-lines polyline:nth-child(2) { animation-delay: 1.1s; }
.star-lines polyline:nth-child(3) { animation-delay: .8s; }
.star-lines polyline:nth-child(4) { animation-delay: 1.4s; }
.star-lines polyline:nth-child(5) { animation-delay: 1.7s; }
.star-dots circle { fill: var(--foreground); opacity: .4; }
.star-dots .node { fill: var(--primary); opacity: .85; }
.star-dots .tw { animation: star-twinkle 5s ease-in-out infinite; }
.star-dots .tw:nth-of-type(2n) { animation-delay: 1.6s; }
.star-dots .tw:nth-of-type(3n) { animation-delay: 3.1s; }
:root[data-theme="light"] .star-dots circle { opacity: .28; }
:root[data-theme="light"] .star-lines polyline { stroke-opacity: .35; }
@keyframes star-connect { to { stroke-dashoffset: 0; } }
@keyframes star-twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .7; } }
@media (prefers-reduced-motion: reduce) {
  .star-lines polyline { animation: none; stroke-dashoffset: 0; }
  .star-dots .tw { animation: none; }
}
/* on phones the field sits behind the copy, so keep it quieter */
@media (width < 768px) { .star-field { opacity: .55; } }

/* Constellation icons (roadmap) */
.constellation-icon { overflow: visible; }
.constellation-icon .ci-lines polyline {
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: .75;
  transition: opacity .4s var(--ease-premium);
}
.constellation-icon .ci-dots circle { fill: var(--foreground); transition: fill .4s var(--ease-premium); }
.constellation-icon .ci-dots .ci-soft { fill: var(--primary); opacity: .8; }
.road-step:hover .constellation-icon .ci-lines polyline { opacity: 1; }
.road-step:hover .constellation-icon .ci-dots circle:not(.ci-soft) { fill: var(--primary); }
.road-icon.constellation-icon { inline-size: 4rem; block-size: 4rem; transition: transform .6s var(--ease-premium); }

/* Hero: four stats, location line with a small constellation mark */
.hero-stats { max-width: 52rem; }
@media (width >= 480px) { .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (width >= 1024px) { .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hero-locale p { font-size: .9375rem; color: var(--muted-foreground); }
.hero-locale p span { margin-inline: .35rem; color: var(--primary); }
.hero-locale-mark { inline-size: 1.9rem; block-size: 1.25rem; flex: none; overflow: visible; }
.hero-locale-mark polyline { fill: none; stroke: var(--primary); stroke-width: 1.3; stroke-linejoin: round; }
.hero-locale-mark circle { fill: var(--foreground); }

/* Why Raven: four reasons, 2 × 2 then 4 across */
.why-grid { max-width: 76rem; }
@media (width >= 768px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (width >= 1280px) { .why-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.why-grid > article { background: var(--tile); }

/* About: principles grid, and the "Why a raven?" section with the constellation logo */
.about-principles { max-width: 76rem; }
@media (width >= 768px) { .about-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (width >= 1280px) { .about-principles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.about-principles > article { padding: 2rem; background: var(--tile); }
.about-name { background: var(--surface); }
.about-name-grid { display: grid; gap: 3rem; align-items: center; }
@media (width >= 1024px) { .about-name-grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; } }
.about-name-mark {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 26rem;
  border-radius: 1.5rem;
  background: var(--tile);
  border: 1px solid var(--border);
}
.about-name-mark img { width: 62%; height: auto; }

/* Buttons: one flat fill, a touch lighter on hover */
.bg-accent-gradient { background: var(--primary-deep); transition-property: transform, box-shadow, background-color, border-color, color; }
.bg-accent-gradient:hover { background: var(--primary); }

/* Why Raven: the faded raven sits lower and further right, clear of the headline */
@media (width >= 1024px) { .why-scene > .depth-layer { right: -26%; top: 22%; } }

/* Services page: one row per service, name left, description + what's included right */
.service-detail {
  display: grid;
  gap: 1.25rem;
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid var(--border);
}
.service-detail:last-child { border-bottom: 1px solid var(--border); }
@media (width >= 900px) { .service-detail { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; align-items: start; } }
.service-detail-title { font-family: var(--font-display); font-size: clamp(1.75rem, 3.6vw, 3.25rem); font-weight: 600; line-height: 1; letter-spacing: -.005em; }
.service-detail-text { max-width: 34rem; font-size: 1.0625rem; line-height: 1.7; color: var(--muted-foreground); }
.service-detail-tags { margin-top: 1rem; font-family: var(--font-display); font-size: .9375rem; font-weight: 600; color: var(--primary); }

/* Language switch (EN / SR) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: .2rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.lang-switch a {
  display: inline-grid;
  place-items: center;
  min-inline-size: 2.4rem;
  block-size: 2.3rem;
  padding-inline: .55rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted-foreground);
  transition: color .3s var(--ease-premium), background-color .3s var(--ease-premium);
}
.lang-switch a:hover { color: var(--foreground); }
.lang-switch a[aria-current="true"] { background: var(--primary); color: var(--primary-foreground); }
@media (width < 400px) { .header-actions { gap: .5rem; } .lang-switch a { min-inline-size: 2.1rem; padding-inline: .4rem; } }

/* Services page rows: flat hover instead of the old gradient wash */
.capability-row:hover { background: transparent; padding-inline: 0; }

/* Footer: the Raven logo as a constellation, assembling itself line by line when the footer comes into view */
.closing-raven { inline-size: min(100%, 22rem); margin-inline-start: auto; }
.closing-raven svg { display: block; inline-size: 100%; block-size: auto; overflow: visible; }
.closing-raven line {
  stroke: var(--primary);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.closing-raven circle { fill: var(--primary); opacity: 0; transform-box: fill-box; transform-origin: center; scale: .3; }
.closing-raven[data-visible="true"] line { animation: star-connect .7s var(--ease-premium) forwards; animation-delay: calc(var(--i) * 55ms); }
.closing-raven[data-visible="true"] circle { animation: cr-dot .5s var(--ease-premium) forwards; animation-delay: calc(var(--i) * 85ms + .25s); }
@keyframes cr-dot { to { opacity: 1; scale: 1; } }
html:not(.js) .closing-raven line { stroke-dashoffset: 0; }
html:not(.js) .closing-raven circle { opacity: 1; scale: 1; }
@media (prefers-reduced-motion: reduce) {
  .closing-raven line { animation: none !important; stroke-dashoffset: 0; }
  .closing-raven circle { animation: none !important; opacity: 1; scale: 1; }
}
@media (width < 768px) { .closing-raven { inline-size: min(70%, 16rem); margin-inline: 0 auto; } }

/* About: founder */
.founder-grid { display: grid; gap: 3rem; align-items: center; }
@media (width >= 1024px) { .founder-grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; } }
.founder-photo { margin: 0; max-width: 26rem; }
.founder-photo img,
.founder-photo-placeholder {
  display: block;
  inline-size: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 1.5rem;
  object-fit: cover;
}
.founder-photo-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  border: 1px dashed var(--border-strong);
  background: var(--tile);
}
.founder-mark { inline-size: 45%; overflow: visible; opacity: .5; }
.founder-mark line { stroke: var(--primary); stroke-width: 3.2; stroke-linecap: round; }
.founder-mark circle { fill: var(--primary); }
.founder-photo-placeholder span { font-family: var(--font-display); font-size: .9375rem; font-weight: 600; color: var(--muted-foreground); }
.founder-quote { margin: 2rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.founder-quote p { font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.55; color: var(--foreground); max-width: 40rem; }
.founder-name { margin-top: 2rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.founder-role { margin-top: .25rem; color: var(--muted-foreground); }

/* ══ Footer: brand / pages / services / contact, with the star field behind ══ */
.site-footer { padding-block: clamp(4rem, 7vw, 6rem) 0; }
.star-field-footer { opacity: .7; }
.footer-grid { position: relative; display: grid; gap: 2.75rem; }
@media (width >= 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (width >= 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.25fr 1.25fr; gap: 3rem; } }
.footer-logo { display: inline-block; }
.footer-logo img { block-size: 4.5rem; inline-size: auto; }
.footer-text { margin-top: 1.25rem; max-width: 22rem; font-size: .9375rem; line-height: 1.7; color: var(--muted-foreground); }
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.5rem;
  min-height: 2.75rem;
  padding-inline: 1.3rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 600;
  transition: background-color .3s var(--ease-premium), translate .3s var(--ease-premium);
}
.footer-cta:hover { background: color-mix(in oklab, var(--primary) 86%, white); translate: 0 -2px; }
.footer-title { margin-bottom: 1.1rem; font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--foreground); }
.footer-col ul { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.footer-col li, .footer-col a { font-size: .9375rem; line-height: 1.5; color: var(--muted-foreground); }
.footer-col a { transition: color .3s var(--ease-premium); }
.footer-col a:hover { color: var(--foreground); }
.footer-col .footer-email { color: var(--foreground); font-weight: 600; word-break: break-all; }
.footer-col .footer-email:hover { color: var(--primary); }
.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .875rem;
  color: var(--muted-foreground);
}
.footer-top { color: var(--muted-foreground); transition: color .3s var(--ease-premium); }
.footer-top:hover { color: var(--foreground); }

/* ══ Pricing (generated by tools/pricing-render.mjs) ═══════════════════ */
main > section.pricing-plans { padding-top: clamp(2.5rem, 4vw, 3.5rem) !important; }
main > section.pricing-onetime { padding-top: clamp(1rem, 2vw, 2rem) !important; }
.pricing-head { display: grid; gap: 1.25rem; max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.pricing-lede { font-size: 1.0625rem; line-height: 1.7; color: var(--muted-foreground); max-width: 38rem; }
.price-region {
  margin-bottom: 1.25rem;
  padding: .85rem 1.1rem;
  max-width: 46rem;
  border-radius: .9rem;
  border: 1px solid color-mix(in oklab, var(--primary) 45%, var(--border));
  background: color-mix(in oklab, var(--primary) 8%, transparent);
  font-size: .9375rem;
  line-height: 1.55;
}

/* Monthly / Annual switch */
.billing-toggle {
  display: inline-flex;
  padding: .25rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
html:not(.js) .billing-toggle { display: none; }
.billing-toggle button {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.75rem;
  padding-inline: 1.15rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: background-color .3s var(--ease-premium), color .3s var(--ease-premium);
}
.billing-toggle button:hover { color: var(--foreground); }
.billing-toggle button[aria-pressed="true"] { background: var(--primary); color: var(--primary-foreground); }
.billing-save {
  padding: .1rem .45rem;
  border-radius: 999px;
  font-size: .75rem;
  background: color-mix(in oklab, var(--primary) 18%, transparent);
  color: var(--primary);
}
.billing-toggle button[aria-pressed="true"] .billing-save { background: oklch(100% 0 0 / .2); color: inherit; }

/* Plan cards */
.plan-grid { display: grid; gap: 1.25rem; align-items: stretch; }
@media (width >= 1024px) { .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan-card { padding: clamp(1.75rem, 2.5vw, 2.25rem); }
.plan-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 600;
}
.plan-name { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; line-height: 1.1; letter-spacing: 0; }
.plan-tagline { margin-top: .6rem; font-size: 1rem; line-height: 1.6; color: var(--muted-foreground); }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .6rem; margin-top: 1.75rem; }
.plan-amount { font-family: var(--font-display); font-size: clamp(2.25rem, 3.2vw, 2.75rem); font-weight: 600; letter-spacing: 0; line-height: 1; }
.plan-per { font-size: .9375rem; color: var(--muted-foreground); }
.plan-old { font-family: var(--font-display); font-size: 1.125rem; color: var(--muted-foreground); text-decoration-thickness: 2px; }
.plan-billed { margin-top: .5rem; font-size: .875rem; color: var(--primary); font-weight: 600; }
.plan-features { display: grid; gap: .8rem; margin: 1.75rem 0 0; padding: 1.5rem 0 0; list-style: none; border-top: 1px solid var(--border); }
.plan-features li { display: flex; align-items: flex-start; gap: .75rem; font-size: .9375rem; line-height: 1.5; color: var(--foreground); }
.plan-card .relative { flex: 1; }

/* Buttons inside pricing */
.plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  margin-top: 2rem;
  padding-inline: 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--foreground);
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 600;
  transition: border-color .3s var(--ease-premium), background-color .3s var(--ease-premium), translate .3s var(--ease-premium);
}
.plan-card .plan-cta { width: 100%; }
.plan-cta:hover { border-color: var(--primary); translate: 0 -2px; }
.plan-cta.is-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.plan-cta.is-primary:hover { background: color-mix(in oklab, var(--primary) 86%, white); }
.plan-cta-arrow { inline-size: 1rem; block-size: 1rem; }

/* Custom plan bar */
.plan-custom {
  display: grid;
  gap: 1rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1.75rem, 2.5vw, 2.25rem);
  border-radius: 1.75rem;
  border: 1px solid var(--border);
  background: var(--tile);
}
@media (width >= 768px) { .plan-custom { grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; } .plan-custom .plan-cta { margin-top: 0; } }

.plan-notes { display: grid; gap: .4rem; margin: 1.75rem 0 0; padding: 0; list-style: none; font-size: .875rem; color: var(--muted-foreground); }
.plan-notes li::before { content: "·"; margin-right: .5rem; color: var(--primary); font-weight: 700; }
.pricing-more { margin-top: 2.25rem; text-align: center; font-family: var(--font-display); font-weight: 600; }

/* One-time projects */
.onetime-grid { display: grid; gap: 1.25rem; }
@media (width >= 768px) { .onetime-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.onetime-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.75rem, 2.5vw, 2.25rem);
  border-radius: 1.75rem;
  border: 1px solid var(--border);
  background: var(--tile);
}
.onetime-price { margin-top: 1rem; font-family: var(--font-display); font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 600; letter-spacing: 0; }
.onetime-price span { font-size: 1rem; font-weight: 500; color: var(--muted-foreground); }
.onetime-card .plan-tagline { flex: 1; }
/* an extra included in the price (data/pricing.json oneTime[].note), in the brand blue under the text */
.onetime-card .plan-tagline:has(+ .onetime-note) { flex: 0 0 auto; }
.onetime-note { flex: 1; margin-top: .75rem; color: var(--primary); font-weight: 600; text-wrap: pretty; }
@media (width >= 1024px) { .plan-card .plan-tagline { min-height: 3.2em; } } /* two lines, so prices line up across cards */

/* ══ Voucher slide-in (js/main.js → PROMO) ═══════════════════════════ */
.promo-card {
  position: fixed;
  z-index: 60;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  inline-size: min(23rem, calc(100vw - 2rem));
  padding: 1.5rem 1.5rem 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border-strong);
  background: var(--tile);
  color: var(--foreground);
  box-shadow: 0 24px 60px -20px oklch(0% 0 0 / .55); /* it floats over the page */
  opacity: 0;
  translate: 0 1.5rem;
  transition: opacity .45s var(--ease-premium), translate .45s var(--ease-premium);
}
:root[data-theme="light"] .promo-card { box-shadow: 0 24px 60px -24px oklch(25% .09 265 / .35); }
.promo-card.is-open { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .promo-card { transition: opacity .2s linear; translate: 0 0; } }
@media (width < 640px) {
  .promo-card { right: .75rem; left: .75rem; bottom: .75rem; inline-size: auto; }
}
.promo-close {
  position: absolute;
  top: .6rem;
  right: .6rem;
  display: grid;
  place-items: center;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  border-radius: 999px;
  color: var(--muted-foreground);
  cursor: pointer;
}
.promo-close:hover { color: var(--foreground); background: var(--surface); }
.promo-close svg { inline-size: 1.1rem; block-size: 1.1rem; }
.promo-badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 600;
}
.promo-title { margin-top: .8rem; padding-right: 1.5rem; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.promo-text { margin-top: .5rem; font-size: .9375rem; line-height: 1.55; color: var(--muted-foreground); }
.promo-form { display: grid; gap: .75rem; margin-top: 1rem; }
.promo-field input {
  inline-size: 100%;
  min-height: 2.9rem;
  padding-inline: 1rem;
  border-radius: .8rem;
  border: 1px solid var(--input);
  background: var(--background);
  color: var(--foreground);
  font-size: 1rem;
}
.promo-field input:focus { outline: 2px solid var(--ring); outline-offset: 1px; }
.sr-only-promo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.promo-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .8125rem; line-height: 1.5; color: var(--muted-foreground); }
.promo-consent input { margin-top: .2rem; inline-size: 1rem; block-size: 1rem; accent-color: var(--primary); flex: none; }
.promo-submit {
  min-height: 2.9rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .3s var(--ease-premium);
}
.promo-submit:hover { background: color-mix(in oklab, var(--primary) 86%, white); }
.promo-submit:disabled { opacity: .6; cursor: progress; }
.promo-error { font-size: .8125rem; color: var(--destructive); }
.promo-terms { margin-top: .8rem; font-size: .75rem; line-height: 1.5; color: var(--muted-foreground); }

/* Privacy policy page */
main > section.legal-page { padding-top: clamp(2.5rem, 4vw, 3.5rem) !important; }
.legal { max-width: 46rem; }
.legal-updated { font-size: .9375rem; color: var(--muted-foreground); }
.legal h2 { margin-top: clamp(2.5rem, 4vw, 3.25rem); font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: 0; }
.legal h3 { margin-top: 1.75rem; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.legal p, .legal li { margin-top: .75rem; font-size: 1.0625rem; line-height: 1.75; color: var(--muted-foreground); }
.legal h2 + p, .legal h3 + p { margin-top: .6rem; }
.legal ul { margin-top: .5rem; padding-left: 1.25rem; list-style: disc; }
.legal li { margin-top: .4rem; }
.legal li::marker { color: var(--primary); }

/* Contact form privacy line, footer privacy link */
.form-privacy { font-size: .875rem; color: var(--muted-foreground); }
.footer-privacy { color: var(--muted-foreground); text-decoration: underline; text-underline-offset: 3px; }
.footer-privacy:hover { color: var(--foreground); }
/* phones: compact teaser first */
.promo-expand { display: none; }
.promo-card.is-compact { padding: 1rem 1.1rem; }
.promo-card.is-compact .promo-text,
.promo-card.is-compact .promo-form,
.promo-card.is-compact .promo-terms { display: none; }
.promo-card.is-compact .promo-title { margin-top: .5rem; font-size: 1.05rem; }
.promo-card.is-compact .promo-expand {
  display: block;
  inline-size: 100%;
  min-height: 2.75rem;
  margin-top: .8rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
}

/* ══ Motion layer (js/main.js) ══════════════════════════════════════ */
/* 1 · Living constellation: replaces the still star field once it runs; faint behind the copy */
.constellation-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  animation: cc-in 1.6s var(--ease-premium) .3s forwards;
}
/* quieter behind the headline and copy on the left */
.cc-hero {
  -webkit-mask-image: linear-gradient(90deg, rgb(0 0 0 / .35), rgb(0 0 0 / .5) 40%, #000 72%);
  mask-image: linear-gradient(90deg, rgb(0 0 0 / .35), rgb(0 0 0 / .5) 40%, #000 72%);
}
.cc-intro {
  -webkit-mask-image: linear-gradient(90deg, rgb(0 0 0 / .45), rgb(0 0 0 / .6) 45%, #000 80%);
  mask-image: linear-gradient(90deg, rgb(0 0 0 / .45), rgb(0 0 0 / .6) 45%, #000 80%);
}
.cc-footer { --cc-opacity: .55; }
@keyframes cc-in { to { opacity: var(--cc-opacity, 1); } }
@media (width < 1024px) { .constellation-canvas { --cc-opacity: .45; } }
.has-live-stars > .star-field { display: none; }
:root[data-theme="light"] .constellation-canvas { filter: saturate(1.1); }

/* 2 · Roadmap follows scrolling */
.roadmap.is-scroll-driven::after { transition: transform .12s linear !important; }
@media (width >= 768px) { .roadmap.is-scroll-driven::after { transform: scaleX(var(--road-progress, 0)) !important; } }
@media (width < 768px) { .roadmap.is-scroll-driven::after { transform: scaleY(var(--road-progress, 0)) !important; } }
.roadmap.is-scroll-driven .road-step > :not(.road-node) { transition: opacity .5s var(--ease-premium), transform .4s var(--ease-premium); }
.roadmap.is-scroll-driven .road-step:not(.is-reached) > :not(.road-node) { opacity: .4; }
.roadmap.is-scroll-driven .road-step:not(.is-reached) .road-node { border-color: var(--border-strong); }
.roadmap.is-scroll-driven .road-step.is-reached .road-node {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
  animation: node-pop .5s var(--ease-premium);
}
@keyframes node-pop { 40% { scale: 1.18; } }

/* 3 · Counting stats keep their width while counting */
.hero-stats .text-metal { font-variant-numeric: tabular-nums; }

/* 4 · Tilting portfolio cards */
.tilt-card { transform-style: preserve-3d; will-change: transform; }
.tilt-glare {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / .16), transparent 45%);
  transition: opacity .4s var(--ease-premium);
}
.tilt-card.is-tilting .tilt-glare { opacity: 1; }

/* ══ Social links (footer + contact) and the back-to-top button ══════ */
.social-links { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.footer-col .social-links { display: flex; gap: .6rem; margin-top: 1.5rem; }
@media (width < 768px) { .footer-bottom { padding-bottom: 4.5rem; } }
.social-links a {
  display: inline-grid;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--foreground);
  transition: background-color .3s var(--ease-premium), border-color .3s var(--ease-premium), color .3s var(--ease-premium), translate .3s var(--ease-premium);
}
.footer-col .social-links a { color: var(--foreground); }
.social-links a:hover,
.social-links a:focus-visible { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); translate: 0 -2px; }
.social-links-named a {
  display: inline-flex;
  gap: .6rem;
  inline-size: auto;
  padding: 0 1.1rem 0 1rem;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
}
.social-links-named svg { color: var(--primary); transition: color .3s var(--ease-premium); }
.social-links-named a:hover svg,
.social-links-named a:focus-visible svg { color: currentColor; }
.contact-social { margin-top: 2.5rem; }
.contact-social .social-links { margin-top: 0; }

.to-top {
  position: fixed;
  z-index: 55;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  display: grid;
  place-items: center;
  inline-size: 3rem;
  block-size: 3rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--tile);
  color: var(--foreground);
  cursor: pointer;
  opacity: 0;
  translate: 0 1rem;
  pointer-events: none;
  transition: opacity .4s var(--ease-premium), translate .4s var(--ease-premium), background-color .3s var(--ease-premium), color .3s var(--ease-premium), border-color .3s var(--ease-premium);
}
.to-top.is-shown { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top:hover, .to-top:focus-visible { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.to-top svg { transition: translate .3s var(--ease-premium); }
.to-top:hover svg { translate: 0 -2px; }
/* step aside while the voucher card or the mobile menu is open */
body:has(.promo-card.is-open) .to-top,
body:has([data-menu-toggle][aria-expanded="true"]) .to-top { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .to-top { translate: 0 0; } }

/* ══ Hero headline: "We give wings to your ideas and let them fly." ══ */
.opening-title { max-width: 20ch; }
.script-word {
  display: inline-block;
  font-family: "Courgette", cursive;
  font-style: normal;
  font-weight: 400;
  font-size: 1.14em;
  line-height: .8;
  letter-spacing: 0;
  color: var(--primary);
  padding-inline: .02em;
  rotate: -3deg;
  animation: take-off 1.1s var(--ease-premium) both;
  animation-delay: .55s;
}
.opening-title .script-word:last-of-type { animation-delay: .85s; }
@keyframes take-off {
  from { opacity: 0; translate: -.25em .35em; rotate: 4deg; }
  to { opacity: 1; translate: 0 0; rotate: -3deg; }
}
@media (prefers-reduced-motion: reduce) { .script-word { animation: none; } }
@media (width < 1024px) { .hero-br { display: none; } }
@media (width >= 1024px) { .opening-title { font-size: clamp(3.2rem, 5.6vw, 5.1rem); line-height: .98; } }

/* ══ Buttons: one shape everywhere, no arrow-in-a-circle; the arrow takes flight on hover ══ */
.group\/button,
.footer-cta,
.plan-cta { border-radius: .55rem !important; }
.group\/button.rounded-full { padding-right: 1.75rem; }
.group\/button > span.rounded-full {
  inline-size: auto;
  block-size: auto;
  margin-left: .1rem;
  background: none !important;
}
.footer-cta, .plan-cta { overflow: hidden; }
@keyframes arrow-fly {
  0% { translate: 0 0; opacity: 1; }
  45% { translate: .9em -.9em; opacity: 0; }
  46% { translate: -.9em .9em; opacity: 0; }
  100% { translate: 0 0; opacity: 1; }
}
@keyframes arrow-dash {
  0% { translate: 0 0; opacity: 1; }
  45% { translate: 1.1em 0; opacity: 0; }
  46% { translate: -1.1em 0; opacity: 0; }
  100% { translate: 0 0; opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .group\/button:hover .lucide-arrow-up-right,
  .footer-cta:hover > span { animation: arrow-fly .6s var(--ease-premium); }
  .footer-cta > span { display: inline-block; }
  .group\/button:hover .lucide-arrow-right,
  .plan-cta:hover .plan-cta-arrow { animation: arrow-dash .6s var(--ease-premium); }
}

/* ══ 404: "How did you get here?" ═════════════════════════════════ */
.notfound { display: grid; align-items: center; min-height: min(100svh, 56rem); }
.notfound-shell { padding-block: 3rem clamp(4rem, 8vw, 7rem); }
.notfound-code {
  position: absolute;
  z-index: 0;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(9rem, 30vw, 26rem);
  line-height: .8;
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in oklab, var(--primary) 45%, transparent);
  user-select: none;
}
.notfound-shell > :not(.notfound-code) { position: relative; z-index: 1; }
.notfound-title { max-width: 14ch; }
.notfound-title .script-word { animation-delay: .4s; }
.notfound-text { max-width: 34rem; margin-top: 1.75rem; font-size: 1.125rem; line-height: 1.7; color: var(--muted-foreground); }
.notfound-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.5rem; }
.notfound-actions .footer-cta, .notfound-actions .plan-cta { margin-top: 0; min-height: 3rem; padding-inline: 1.5rem; }
@media (width < 768px) { .notfound-code { top: auto; bottom: -1rem; translate: 0 0; opacity: .7; } }

/* ══ Type: Clash Display for headlines (self-hosted), Instrument Sans for text, Courgette for the accent ══ */
@font-face { font-family: "Clash Display"; src: url("../assets/fonts/clash-display-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("../assets/fonts/clash-display-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("../assets/fonts/clash-display-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  --font-display: "Clash Display", "Instrument Sans", sans-serif;
  --font-sans: "Instrument Sans", sans-serif;
  --default-font-family: "Instrument Sans", sans-serif;
}
html, body { font-family: var(--font-sans); }
.font-display { font-family: var(--font-display); }
/* Clash Display is a headline face: small interface text (menu, buttons, tags, labels) uses Instrument Sans */
.font-display:is(.text-xs, .text-sm, .text-base, .text-lg),
.group\/button,
header nav a,
.industry-clients span:not(.hy-word),
.industry-strip a,
.form-label,
.lang-switch a,
.footer-cta,
.billing-toggle button,
.plan-badge,
.plan-cta,
.plan-old,
.pricing-more,
.service-detail-tags,
.founder-photo-placeholder span,
.promo-badge,
.promo-submit,
.promo-card .promo-expand,
.social-links-named a { font-family: var(--font-sans); letter-spacing: 0; }
/* Clash Display is already tight: headlines get normal tracking and a touch more room between words */
h1, h2, h3, .page-title, .opening-title, .title-lg, .scene-title, .manifesto-title, .contact-title, .service-detail-title {
  letter-spacing: 0;
  word-spacing: .06em;
}
.footer-title { font-family: var(--font-sans); letter-spacing: 0; }
/* Clash Display runs wider than the old face: section titles one step smaller so they keep to two lines */
.scene-title { font-size: clamp(2.4rem, 4.6vw, 4.75rem); line-height: .98; }
@media (width < 768px) { .scene-title { font-size: clamp(2.2rem, 10vw, 3.4rem); } }
@media (width < 1024px) { .opening-title { line-height: 1.02; } }

/* ══ Plan ravens: Nest (plain), Wing (sunglasses), Sky (top hat); Custom shows the logo raven ══ */
/* All three images share one 480×560 canvas: same bird size and position, only the glasses and hat differ.
   Each raven is centred on its card and rises above the top edge; its chest fades into the card. */
.plan-grid {
  --art-w: clamp(7.5rem, 10vw, 9rem);
  --art-h: calc(var(--art-w) * 560 / 480);
  padding-top: calc(var(--art-h) * .5 + .25rem); /* room for the head and hat above the cards */
}
@media (width < 1024px) { .plan-grid { gap: calc(var(--art-h) * .5 + 1.5rem); } } /* stacked: clear of the card above */
.plan-card { overflow: visible; padding-top: calc(var(--art-h) * .5 + .5rem); }
.plan-art {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  inline-size: var(--art-w);
  block-size: auto;
  translate: -50% -50%;
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 74%, transparent 99%);
  transform-origin: 50% 90%;
  transition: rotate .5s var(--ease-premium);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .plan-card:hover .plan-art { rotate: -4deg; }
}
/* name with "Most popular" beside it */
.plan-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.plan-card .plan-badge { position: static; flex: none; }
.plan-card .plan-tagline { margin-top: .75rem; }
/* Custom: the measuring-tape raven, rising above the row exactly like the plan ravens */
.plan-custom {
  --art-w: clamp(7.5rem, 10vw, 9rem);
  --art-h: calc(var(--art-w) * 560 / 480);
  --pad: clamp(1.75rem, 2.5vw, 2.25rem);
  position: relative;
  margin-top: calc(var(--art-h) * .5 + 1.5rem);
  padding-top: calc(var(--art-h) * .5 + .5rem); /* phones: raven centred on top, text below */
}
.custom-art {
  position: absolute;
  top: 0;
  left: 50%;
  inline-size: var(--art-w);
  block-size: auto;
  translate: -50% -50%;
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 74%, transparent 99%);
  transform-origin: 50% 90%;
  transition: rotate .5s var(--ease-premium);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) { .plan-custom:hover .custom-art { rotate: -4deg; } }
@media (width >= 768px) {
  /* wide row: raven beside the text, vertically centred; the empty space above the bird is cropped away */
  .plan-custom {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 1.75rem;
    margin-top: 1.25rem;
    padding: clamp(1.25rem, 2vw, 1.5rem) var(--pad);
  }
  .custom-art {
    position: static;
    translate: none;
    inline-size: clamp(5.5rem, 7vw, 6.5rem);
    aspect-ratio: 480 / 430;
    object-fit: cover;
    object-position: 50% 100%;
    -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  }
}

/* ══ Thank-you message after the contact form: the bow-tie raven takes a small bow ══ */
.thanks-box { align-items: center; text-align: center; }
.thanks-box p { max-width: 36rem; }
.thanks-raven {
  display: block;
  inline-size: clamp(8rem, 14vw, 10.5rem);
  block-size: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 99%);
  transform-origin: 50% 92%;
}
@media (prefers-reduced-motion: no-preference) {
  .thanks-raven { animation: raven-bow 1.4s var(--ease-premium) .15s both; }
}
@keyframes raven-bow {
  0% { opacity: 0; translate: 0 1.25rem; rotate: 0deg; }
  35% { opacity: 1; translate: 0 0; rotate: 0deg; }
  60% { rotate: -9deg; }
  100% { opacity: 1; translate: 0 0; rotate: 0deg; }
}

/* ══ Footer easter egg: "Or if you're just here to pass time, try this →" → Flappy Raven ══ */
/* a pill riding the seam between the closing band and the footer */
.game-teaser-seam { position: relative; z-index: 3; height: 0; display: flex; align-items: flex-start; justify-content: center; padding-inline: 1rem; }
.game-teaser {
  display: inline-block;
  translate: 0 -50%;
  max-inline-size: calc(100vw - 2rem);
  padding: .75rem 1.4rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--tile);
  text-align: center;
  color: var(--muted-foreground);
  font: inherit;
  font-size: 1rem;
  line-height: 1.35;
  cursor: pointer;
  transition: color .3s var(--ease-premium), background-color .3s var(--ease-premium);
}
.game-teaser:hover, .game-teaser:focus-visible { color: var(--foreground); border-color: var(--primary); }
.game-teaser-arrow { display: inline-block; color: var(--primary); transition: translate .3s var(--ease-premium); }
.game-teaser:hover .game-teaser-arrow { translate: .3rem 0; }
@media (width < 640px) { .game-teaser { font-size: .875rem; padding: .6rem 1.1rem; border-radius: 1.25rem; } }

body.game-open { overflow: hidden; }
.game-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(.75rem, 3vw, 2rem);
  background: oklch(10% .05 266 / .72);
  opacity: 0;
  transition: opacity .35s var(--ease-premium);
}
.game-overlay.is-open { opacity: 1; }
.game-panel {
  position: relative;
  inline-size: min(44rem, 100%);
  max-block-size: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  border-radius: 1.75rem;
  border: 1px solid var(--border-strong);
  background: var(--tile);
  color: var(--foreground);
  scale: .96;
  transition: scale .35s var(--ease-premium);
}
.game-overlay.is-open .game-panel { scale: 1; }
@media (prefers-reduced-motion: reduce) { .game-overlay, .game-panel { transition: none; scale: 1; } }
.game-close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  display: grid;
  place-items: center;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--foreground);
  font-size: 1rem;
  cursor: pointer;
}
.game-close:hover, .game-close:focus-visible { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.game-head { padding-right: 3rem; }
.game-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; line-height: 1.1; }
.game-egg { margin-top: .4rem; font-size: .9375rem; color: var(--muted-foreground); }
.game-stage {
  position: relative;
  margin-top: 1rem;
  block-size: min(26rem, 62svh);
  border-radius: 1.1rem;
  overflow: hidden;
  background: var(--background);
  touch-action: none;
  user-select: none;
}
.game-canvas { display: block; inline-size: 100%; block-size: 100%; outline: none; cursor: pointer; }
.game-canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--primary); }
.game-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; text-align: center; pointer-events: none; }
.game-msg.is-ready { align-content: end; padding-bottom: 12%; }
.game-hint { font-family: var(--font-sans); font-weight: 600; font-size: 1rem; color: var(--foreground); }
.game-best { margin-top: .35rem; font-size: .875rem; color: var(--muted-foreground); }
.game-card {
  pointer-events: auto;
  max-inline-size: 26rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border-strong);
  background: var(--tile);
}
.game-card-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.game-card-text, .game-score { margin-top: .6rem; color: var(--muted-foreground); }
.game-card-text { color: var(--foreground); font-size: 1.05rem; }
.game-btn { margin-top: 1.1rem; }
.game-cta { margin-top: 1rem; font-size: .9375rem; color: var(--muted-foreground); }
/* the sentence and the link each get their own tidy line instead of the link breaking mid-way */
.game-cta { text-wrap: balance; }
.game-cta .text-link { display: table; margin: .45rem auto 0; white-space: nowrap; }
.game-code { margin-top: 1rem; padding: .65rem 1rem; border-radius: .75rem; border: 1px dashed var(--primary); font-size: .95rem; }
.game-code strong { font-family: var(--font-display); letter-spacing: .04em; color: var(--primary); }
.game-terms { margin-top: 1rem; font-size: .78rem; line-height: 1.5; color: var(--muted-foreground); }
.game-confetti { color: var(--primary); letter-spacing: .5em; font-size: 1.1rem; }
@media (prefers-reduced-motion: no-preference) {
  .is-won .game-card { animation: game-pop .6s var(--ease-premium) both; }
}
@keyframes game-pop { from { opacity: 0; scale: .9; } }
@media (width < 640px) {
  .game-panel { border-radius: 1.25rem; }
  .game-stage { block-size: min(34rem, 66svh); }
}

/* the company name in the footer description */
.footer-text strong { color: var(--foreground); font-weight: 600; }

/* ══ Contact page map (Google Maps loads on click) ══════════════════ */
.map-card { margin: 2.5rem 0 0; max-inline-size: 26rem; }
.map-placeholder,
.map-frame {
  display: block;
  inline-size: 100%;
  block-size: 15rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border-strong);
}
.map-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .6rem;
  padding: 1.25rem;
  text-align: center;
  /* a quiet dotted "map" in the brand colours until the real one is loaded */
  background:
    radial-gradient(circle, color-mix(in oklab, var(--primary) 45%, transparent) 1.2px, transparent 1.6px) 0 0 / 22px 22px,
    var(--tile);
}
.map-place { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--foreground); }
.map-load {
  padding: .6rem 1.2rem;
  border-radius: .55rem;
  border: 0;
  background: var(--primary);
  color: var(--primary-foreground);
  font: inherit;
  font-weight: 600;
  font-size: .9375rem;
  cursor: pointer;
  transition: background-color .3s var(--ease-premium);
}
.map-load:hover, .map-load:focus-visible { background: color-mix(in oklab, var(--primary) 86%, white); }
.map-note { font-size: .8125rem; color: var(--muted-foreground); }
.map-frame { border-style: solid; background: var(--tile); }
/* black-and-white map: plain grey on the light theme, inverted to a dark grey map on the dark theme */
.map-frame { filter: grayscale(1) contrast(1.05); }
:root:not([data-theme="light"]) .map-frame { filter: grayscale(1) invert(.92) contrast(.95); }
.map-caption { margin-top: .75rem; font-size: .875rem; }

/* "Why a raven?": the painting-raven photo in place of the big logo */
.about-name-photo { margin: 0; overflow: hidden; border-radius: 1.75rem; border: 1px solid var(--border); background: var(--tile); }
.about-name-photo img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 1278 / 1230; object-fit: cover; }
@media (width >= 1024px) { .about-name-grid:has(.about-name-photo) { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 5vw, 5rem); } }
.founder-role + .founder-role { margin-top: .1rem; }

/* image protection (with js/main.js): no dragging, no long-press "Save image" on phones; text stays selectable */
img, video { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; }

/* ══ Portfolio grid: 15 cards, 3 × 5 on desktop ═════════════════════ */
.work-grid { display: grid; gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.25rem, 2.5vw, 2rem); }
@media (width >= 640px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (width >= 1024px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.work-card { display: flex; flex-direction: column; }
.work-media { aspect-ratio: 16 / 10; border-radius: 1.25rem; }
.work-title { margin-top: .6rem; font-family: var(--font-display); font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 600; line-height: 1.15; }

/* portfolio grid: stronger motion (tilt is in js/main.js) */
.work-grid .tilt-glare { background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / .26), transparent 50%); }
.work-grid .tilt-card.is-tilting { box-shadow: 0 30px 60px -30px oklch(0% 0 0 / .6); }
/* the picture zooms in and slides against the cursor inside its frame (values set by js/main.js) */
.work-grid .work-media img { transition: transform .9s var(--ease-premium); will-change: transform; }
.work-card:hover .work-media img { transform: scale(1.18) translate(var(--mx, 0%), var(--my, 0%)); }
.work-grid .tilt-card.is-tilting img { transition: transform .25s ease-out; }

/* ══ Project gallery (portfolio): click a card image, swipe through the project ══ */
.stack-card[data-gallery], .work-media[data-gallery] { cursor: url("../assets/bc83b6-cursor-feather-active.png") 16 1, pointer; } /* the upright feather, same as links */
.stack-card[data-gallery]:focus-visible, .work-media[data-gallery]:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
body.gallery-open { overflow: hidden; }
.gallery {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: oklch(9% .04 266);
  color: oklch(100% 0 0);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease-premium), visibility 0s linear .3s;
}
.gallery.is-open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease-premium); }
.gallery-top { display: flex; align-items: center; gap: 1rem; padding: 1rem clamp(1rem, 3vw, 2rem); }
.gallery-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.gallery-count { margin-left: auto; font-size: .9375rem; color: oklch(100% 0 0 / .7); font-variant-numeric: tabular-nums; }
.gallery-close {
  display: grid; place-items: center;
  inline-size: 2.75rem; block-size: 2.75rem;
  border-radius: 999px; border: 1px solid oklch(100% 0 0 / .25);
  background: transparent; color: inherit; font-size: 1rem; cursor: pointer;
}
.gallery-close:hover, .gallery-close:focus-visible { background: var(--primary); border-color: var(--primary); }
.gallery-stage { position: relative; overflow: hidden; touch-action: pan-y; cursor: url("../assets/bc83b6-cursor-feather-active.png") 16 1, pointer; }
.gallery-track { display: flex; block-size: 100%; transition: transform .45s var(--ease-premium); }
.gallery-slide { flex: 0 0 100%; display: grid; place-items: center; padding: 0 clamp(1rem, 6vw, 6rem); }
.gallery-slide img { border-radius: .75rem; user-select: none; }
.gallery-arrow {
  position: absolute; top: 50%; translate: 0 -50%;
  display: grid; place-items: center;
  inline-size: 3.25rem; block-size: 3.25rem;
  border-radius: 999px; border: 1px solid oklch(100% 0 0 / .25);
  background: oklch(10% .04 266 / .6); color: inherit; font-size: 1.25rem; cursor: pointer;
  transition: background-color .3s var(--ease-premium), opacity .3s var(--ease-premium);
}
.gallery-arrow.is-prev { left: clamp(.5rem, 2vw, 1.5rem); }
.gallery-arrow.is-next { right: clamp(.5rem, 2vw, 1.5rem); }
.gallery-arrow:hover:not(:disabled), .gallery-arrow:focus-visible { background: var(--primary); border-color: var(--primary); }
.gallery-arrow:disabled { opacity: .25; cursor: default; }
.gallery.is-single .gallery-arrow, .gallery.is-single .gallery-dots { display: none; }
@media (hover: none) { .gallery-arrow { display: none; } } /* phones: swipe instead */
.gallery-bottom { display: grid; justify-items: center; gap: .75rem; padding: 1rem 1rem 1.5rem; }
.gallery-hint {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem 1rem; border-radius: 999px; border: 1px solid oklch(100% 0 0 / .25);
  font-family: var(--font-sans); font-size: .8125rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  transition: opacity .4s var(--ease-premium);
}
.gallery-hint span { color: var(--primary); letter-spacing: 0; }
@media (prefers-reduced-motion: no-preference) { .gallery.is-open .gallery-hint:not(.is-done) { animation: swipe-nudge 1.8s var(--ease-premium) infinite; } }
@keyframes swipe-nudge { 0%, 100% { translate: 0 0; } 30% { translate: -10px 0; } 60% { translate: 10px 0; } }
.gallery-hint.is-done { opacity: 0; }
.gallery-dots { display: flex; gap: .5rem; }
.gallery-dots span { inline-size: .5rem; block-size: .5rem; border-radius: 999px; background: oklch(100% 0 0 / .3); transition: background-color .3s, inline-size .3s; }
.gallery-dots span[aria-current="true"] { inline-size: 1.4rem; background: var(--primary); }

/* portfolio grid: wider than the rest of the page on big screens, so the cards fill the space */
@media (width >= 1280px) {
  .section-shell.work-grid { width: min(100% - 5rem, 100rem); column-gap: clamp(2rem, 2.2vw, 2.75rem); }
  .work-grid .work-title { font-size: clamp(1.75rem, 1.6vw, 2.25rem); }
  .work-grid .eyebrow { font-size: .8125rem; }
  .work-grid .work-result, .work-grid .work-insta { font-size: 1rem; }
}

/* project gallery: reels play inside the gallery; cards with a reel get a small badge */
.gallery-slide { block-size: 100%; min-block-size: 0; }
/* whole picture always visible: limited by the screen height minus the top bar and the swipe hint */
.gallery-slide video, .gallery-slide img { display: block; inline-size: auto; block-size: auto; max-inline-size: 100%; max-block-size: calc(100dvh - 11.5rem); }
.gallery-slide.is-video { position: relative; }
.gallery-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; inline-size: 5.5rem; block-size: 5.5rem;
  border-radius: 999px; border: 2px solid oklch(100% 0 0 / .85);
  background: oklch(15% .05 266 / .55); color: #fff; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: scale .3s var(--ease-premium), background-color .3s var(--ease-premium);
}
.gallery-play:hover, .gallery-play:focus-visible { scale: 1.08; background: var(--primary); border-color: var(--primary); }
.gallery-play svg { margin-left: .3rem; }
.gallery-slide.is-playing .gallery-play { opacity: 0; pointer-events: none; }
.gallery-slide video { inline-size: auto; block-size: auto; border-radius: .75rem; background: #000; }
.work-reel {
  position: absolute; left: 1rem; top: 1rem; z-index: 1;
  padding: .25rem .65rem; border-radius: 999px;
  background: var(--primary); color: var(--primary-foreground);
  font-family: var(--font-sans); font-size: .75rem; font-weight: 600; letter-spacing: .02em;
}
.work-insta { display: inline-flex; align-items: center; gap: .45rem; margin-top: .4rem; color: var(--primary); font-size: .9375rem; text-decoration: none; }
.work-insta:hover { text-decoration: underline; text-underline-offset: 3px; }
.work-insta:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.work-insta svg { flex: none; }

/* portfolio cards: long service lists wrap, so line the rows up — category, name and link sit level across a row */
.work-card .eyebrow { text-wrap: balance; }
@media (width >= 640px) {
  .section-shell.work-grid { row-gap: 0; }
  .work-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; padding-bottom: clamp(2.5rem, 4vw, 4.5rem); }
  .work-card > .eyebrow { align-self: end; }
  .work-card > .work-insta { justify-self: start; align-self: start; }
}

/* home page "Selected work": falling feather wallpaper behind the frames (js/main.js featherWallpaper) */
.work-scene.has-feathers { position: relative; }
.feather-canvas {
  position: absolute; inset: 0; z-index: 0; inline-size: 100%; block-size: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
.work-scene.has-feathers > .section-shell { position: relative; z-index: 1; }

/* very wide screens: the selected work uses more of the width (from 1920, so the constellation line keeps its margin) */
@media (width >= 1920px) {
  .work-scene > .section-shell { width: min(100% - 5rem, 90rem); }
}

/* home page "Selected work": stacking cards. Each sticks below the header and the next slides over it;
   js/main.js stackCards sets --stack (0 → 1) on a card as it gets covered, so it shrinks a little and dims */
.stack-reel { display: grid; gap: 3rem; }
.stack-card {
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid var(--border); border-radius: 1.75rem; background: var(--background);
  box-shadow: 0 -24px 60px -36px oklch(0% 0 0 / .7);
  transform-origin: 50% 0;
}
/* the card's own picture, blurred, gives each project its colour mood behind the text */
.stack-backdrop {
  position: absolute; inset: -10%; z-index: -2; inline-size: 120%; block-size: 120%; max-inline-size: none;
  object-fit: cover; filter: blur(60px) saturate(1.25); opacity: .6; pointer-events: none;
}
.stack-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, color-mix(in oklab, var(--background) 78%, transparent) 15%, color-mix(in oklab, var(--background) 30%, transparent));
}
.stack-body { display: grid; gap: 1.5rem; padding: 1rem 1rem 1.5rem; }
.stack-media { position: relative; order: -1; overflow: hidden; border-radius: 1.1rem; }
.stack-media img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 16 / 10; transition: transform .9s var(--ease-premium); }
.stack-card:hover .stack-media img { transform: scale(1.03); }
.stack-text { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; padding-inline: .5rem; }
.stack-text .project-name { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 3.4rem); font-weight: 600; line-height: 1.04; text-wrap: balance; }
.stack-handle { color: var(--muted-foreground); font-size: .95rem; }
.stack-cta {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: .8rem; padding: .75rem 1.25rem;
  border: 1px solid var(--border); border-radius: 999px; background: color-mix(in oklab, var(--background) 55%, transparent);
  font-family: var(--font-display); font-size: .875rem; font-weight: 600;
  transition: border-color .3s, color .3s;
}
.stack-cta svg { inline-size: 1rem; block-size: 1rem; }
.stack-card:hover .stack-cta { border-color: var(--primary); color: var(--primary); }
.stack-dim { position: absolute; inset: 0; z-index: 2; background: var(--background); opacity: calc(var(--stack, 0) * .6); pointer-events: none; }
@media (width >= 768px) {
  .stack-body { grid-template-columns: minmax(15rem, .8fr) 2fr; align-items: end; gap: clamp(1.5rem, 3vw, 3rem); padding: clamp(1.25rem, 2.2vw, 2.25rem); }
  .stack-media { order: 0; justify-self: end; }
  .stack-media img { inline-size: auto; max-inline-size: 100%; max-block-size: calc(100svh - 14rem); }
  .stack-text { padding: 0 0 .5rem .5rem; }
}
@media (width >= 768px) and (height >= 640px) {
  .stack-reel { gap: 12vh; }
  .stack-card { position: sticky; top: calc(6.75rem + var(--i, 0) * 1.25rem); scale: calc(1 - var(--stack, 0) * .06); }
}

/* portfolio page: the closing note under the grid ("…a terabyte of server space") */
.more-work {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  margin-top: clamp(5rem, 9vw, 8rem); padding-block: clamp(4rem, 8vw, 7rem);
}
.more-work-title {
  max-inline-size: 22ch; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.08; text-wrap: balance;
}
.more-work-title .script-word { animation: none; }
.more-work-copy { max-inline-size: 36rem; margin-top: 1.4rem; color: var(--muted-foreground); font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.6; text-wrap: pretty; }
.more-work-btn { margin-top: 2.2rem; border: 1px solid var(--border); }
.more-work-btn:hover { border-color: var(--primary); }

/* home page "Big-agency expertise": the Raven logo, see-through, to the right of the four reasons and partly behind
   them. It reaches out past the content toward the screen edge (up to 22rem, never off screen).
   It is a mask, so it takes the theme's blue in dark and light mode */
.why-mark {
  position: absolute; z-index: 0; pointer-events: none;
  inset-block-start: 5.5rem; inset-inline-end: max(-22rem, calc((100% - 100vw) / 2 + 1.5rem));
  block-size: clamp(26rem, 30vw, 48rem); aspect-ratio: 907 / 929;
  background: var(--primary); opacity: .16;
  -webkit-mask: url("../assets/raven-mark.svg") center / contain no-repeat;
  mask: url("../assets/raven-mark.svg") center / contain no-repeat;
}
.why-scene .section-shell > :not(.why-mark) { position: relative; z-index: 1; }
@media (width < 1024px) { .why-mark { inset-block-start: 2rem; inset-inline-end: -18%; block-size: 22rem; opacity: .08; } }
/* laptops: there is little room beside the boxes, so the raven goes over them, see-through (the headline stays on top) */
@media (1024px <= width < 1900px) {
  .why-mark { z-index: 2; opacity: .11; }
  .why-scene .section-shell > .manifesto-title { z-index: 3; }
}

/* home page, wide screens: the constellation down the left side (js/main.js constellationScroll) */
main.has-cscroll { position: relative; }
.cscroll {
  position: absolute; inset-block-start: 0; inset-inline-start: 0; z-index: 5;
  overflow: visible; pointer-events: none; color: #fff;
}
.cscroll-track, .cscroll-lit { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.cscroll-track { opacity: .15; }
.cscroll-lit { filter: drop-shadow(0 0 4px rgb(255 255 255 / .45)); }
.cscroll-node {
  fill: var(--background); stroke: currentColor; stroke-width: 2;
  transform-box: fill-box; transform-origin: center;
  transition: fill .35s ease, filter .35s ease;
}
.cscroll-node.is-reached { fill: currentColor; filter: drop-shadow(0 0 7px rgb(255 255 255 / .75)); animation: cscroll-pop .5s var(--ease-premium); }
@keyframes cscroll-pop { from { scale: 1.45; } to { scale: 1; } }
:root[data-theme="light"] .cscroll { color: var(--foreground); }
:root[data-theme="light"] .cscroll-lit, :root[data-theme="light"] .cscroll-node.is-reached { filter: none; }
@media (prefers-reduced-motion: reduce) { .cscroll-node.is-reached { animation: none; } }
@media (width < 1600px) { .cscroll { display: none; } }
@media print { .cscroll { display: none; } }

/* ══ Text wrapping: no single word left alone on the last line, anywhere on the site ══
   Headings and short labels are split into even lines; running text avoids a one-word last line.
   (Browsers without text-wrap: pretty get the same result from js/main.js noLonelyWords) */
h1, h2, h3, h4, h5, h6, .eyebrow, .form-label, .chip, .plan-tagline, .stat-label, figcaption, summary, th { text-wrap: balance; }
p, li, dd, dt, blockquote, label, td, .footer-text { text-wrap: pretty; }

/* a headline with a line break inside: each part balances on its own */
.manifesto-title > span:not(.hy-word), .scene-title > span:not(.hy-word) { display: block; text-wrap: balance; }
li span, li a { text-wrap: pretty; }
/* short card texts with hyphenated words ("SEO-ready", "sign-ups"): even lines, so the hyphen never strands a word */
.plan-features li > span:last-child, .industry-desc { text-wrap: balance; }
/* three-word headings that would otherwise leave one word alone: a touch smaller where the column is narrow */
@media (768px <= width < 1024px) { .services-scene h3 { font-size: 1.6rem; } .road-title { font-size: 1.3rem; } }
.road-text { text-wrap: balance; }

/* the Raven logo (2026): horizontal in the header, stacked in the footer */
.brand-logo { block-size: 2.1rem; inline-size: auto; max-inline-size: none; }
/* the logo never gives way when the header gets tight (around 1024 px it was squeezed out of shape) */
.site-header a:has(> .brand-logo) { flex-shrink: 0; margin-inline-end: 1.25rem; }
/* 1024–1279 px: menu, language switch and button only just fit next to the full logo, so everything sits closer */
@media (1024px <= width < 1280px) {
  .site-header nav.gap-9 { gap: 1.1rem; }
  .site-header .brand-logo { block-size: 1.8rem; }
  .site-header .header-actions { gap: .5rem; }
  .site-header .header-actions a.h-11 { padding-inline: .9rem; }
}
@media (1024px <= width < 1100px) { .site-header nav.gap-9 { gap: .8rem; } } /* the Serbian menu words are longer */
@media (width < 640px) { .brand-logo { block-size: 1.75rem; } }

/* home page hero video: full colour and more visible (trial; the text side keeps a darker veil so it stays readable) */
.hero-video { opacity: .58; filter: none; transition: opacity 1.2s ease; }
.hero-video:not(.is-playing) { opacity: 0 !important; } /* starts after the page has loaded, then fades in */
.hero-veil {
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--background) 35%, transparent) 0%, transparent 40%, color-mix(in oklab, var(--background) 60%, transparent) 85%, var(--background) 100%),
    linear-gradient(90deg, color-mix(in oklab, var(--background) 88%, transparent) 0%, color-mix(in oklab, var(--background) 60%, transparent) 42%, transparent 75%);
}
:root[data-theme="light"] .hero-video { opacity: .35; filter: none; }
/* js/main.js keepHyphenatedWords: a hyphenated word kept on one line; it looks exactly like the text around it */
.hy-word { white-space: nowrap; }
.manifesto-title .hy-word, .scene-title .hy-word { display: inline; color: inherit; }

/* footer: the WhatsApp / Viber / Instagram buttons sit under the logo and description, left-aligned */
.footer-brand .social-links { margin-top: 1.5rem; }
.footer-brand .social-links a { color: var(--foreground); }

/* hero band: client logos instead of service names (white, each sized to the same visual weight via --h) */
.logo-ticker-group li { gap: 0; padding-right: clamp(2.5rem, 4vw, 4.5rem); }
.logo-ticker-group li::after { content: none; }
.logo-ticker-group img { display: block; block-size: var(--h); inline-size: auto; opacity: .82; transition: opacity .3s; }
.logo-ticker-group li:hover img { opacity: 1; }
@media (width < 768px) { .logo-ticker-group img { block-size: calc(var(--h) * .78); } }
:root[data-theme="light"] .logo-ticker-group img { filter: brightness(0); opacity: .7; }

/* home hero: play button for the agency video (js/main.js: "coming soon" until the video is added) */
.hero-play {
  display: inline-flex; align-items: center; gap: 1rem; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--foreground); font-family: var(--font-display); font-size: 1rem; font-weight: 600; text-align: left;
}
.hero-play-icon {
  position: relative; display: grid; place-items: center; inline-size: 4rem; block-size: 4rem; border-radius: 999px;
  background: var(--primary); color: var(--primary-foreground); box-shadow: 0 14px 40px -12px color-mix(in oklab, var(--primary) 75%, transparent);
  transition: scale .4s var(--ease-premium), box-shadow .4s var(--ease-premium);
}
.hero-play-icon svg { translate: 2px 0; } /* optical centre of the triangle */
.hero-play-icon::before, .hero-play-icon::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1.5px solid var(--primary);
  animation: hero-play-ring 2.6s ease-out infinite; pointer-events: none;
}
.hero-play-icon::after { animation-delay: 1.3s; }
@keyframes hero-play-ring { from { opacity: .7; scale: 1; } to { opacity: 0; scale: 1.75; } }
.hero-play:hover .hero-play-icon { scale: 1.06; box-shadow: 0 18px 48px -12px color-mix(in oklab, var(--primary) 90%, transparent); }
.hero-play-text { display: grid; }
/* Phones: a "Let's talk" button replaces the video button, with the location pill above it (tablets and computers
   keep the video). "Phone" = narrow, or a touch screen under 500 px tall, i.e. a phone turned sideways. */
.hero-talk { display: none; }
@media (width < 768px), (pointer: coarse) and (height < 500px) {
  .hero-play { display: none; }
  .hero-locale { order: -1; }
  .hero-talk {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-block-size: 3.25rem; padding-inline: 1.75rem; border-radius: var(--radius, .5rem);
    font-family: var(--font-display, inherit); font-weight: 600; font-size: 1.05rem;
    box-shadow: var(--shadow-button); transition: translate .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
  }
  .hero-talk:active { translate: 0 1px; }
  .hero-talk svg { transition: translate .4s cubic-bezier(.2,.8,.2,1); }
  .hero-talk:hover svg { translate: 2px -2px; }
}
.hero-play.is-soon .hero-play-label { color: var(--primary); }
@media (prefers-reduced-motion: reduce) { .hero-play-icon::before, .hero-play-icon::after { animation: none; opacity: 0; } }

/* ══ First-visit loader: the constellation raven draws itself (js/main.js ravenLoader) ══ */
/* until the script builds the loader, a plain cover keeps the page from flashing; the page's own entrance animations wait */
html.raven-loading::before { content: ""; position: fixed; inset: 0; z-index: 2147483646; background: var(--background); }
html.raven-loading body > :not(.raven-loader), html.raven-loading body > :not(.raven-loader) * { animation-play-state: paused !important; }
html.raven-loading body { overflow: hidden; }
.raven-loader {
  position: fixed; inset: 0; z-index: 2147483647; display: grid; place-items: center;
  background: radial-gradient(45% 40% at 50% 48%, color-mix(in oklab, var(--primary) 18%, transparent), transparent 70%), var(--background);
  color: #02aefe;
  transition: opacity .55s var(--ease-premium), translate .65s var(--ease-premium);
}
:root[data-theme="light"] .raven-loader { color: var(--primary); }
.raven-loader.is-leaving { opacity: 0; translate: 0 -3%; pointer-events: none; }
.raven-loader-stage { position: relative; inline-size: min(44vw, 240px); aspect-ratio: 1056 / 1080; }
.raven-loader-mark { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; overflow: visible; }
.raven-loader-mark line {
  stroke: currentColor; stroke-width: 15; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: rl-draw .26s ease-out forwards; animation-delay: var(--d);
}
.raven-loader-mark circle {
  fill: currentColor; transform-box: fill-box; transform-origin: center; opacity: 0; scale: .2;
  animation: rl-dot .34s var(--ease-premium) forwards; animation-delay: var(--d);
}
/* the real logo settles in over the drawing, with a soft glow */
.raven-loader-logo {
  position: absolute; left: 50%; top: 50%; inline-size: calc(100% * 976 / 1056); aspect-ratio: 976 / 1000; translate: -50% -50%;
  background: currentColor; -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain; opacity: 0;
  animation: rl-logo .3s ease-out .95s forwards;
}
.raven-loader-stage { animation: rl-glow .5s ease-out .95s forwards; }
@keyframes rl-draw { to { stroke-dashoffset: 0; } }
@keyframes rl-dot { 60% { opacity: 1; scale: 1.25; } to { opacity: 1; scale: 1; } }
@keyframes rl-logo { to { opacity: 1; } }
@keyframes rl-glow { 50% { filter: drop-shadow(0 0 22px color-mix(in oklab, currentColor 70%, transparent)); } to { filter: drop-shadow(0 0 10px color-mix(in oklab, currentColor 40%, transparent)); } }
@media print { .raven-loader { display: none; } html.raven-loading::before { content: none; } }

/* accessibility: small white text on blue needs a slightly deeper blue (WCAG AA 4.5:1); the "save" pill reads lighter */
.lang-switch a[aria-current="true"], .billing-toggle button[aria-pressed="true"], .work-reel { background: var(--primary-deep); }
/* a touch deeper than the brand blue, for filled buttons and badges with small white text (contrast 5:1 instead of 4.1:1) */
:root { --primary-deep: color-mix(in oklab, var(--primary) 90%, black); }
.billing-save { color: color-mix(in oklab, var(--primary) 45%, white); }
:root[data-theme="light"] .billing-save { color: color-mix(in oklab, var(--primary) 80%, black); }
picture:has(> .raven-bust) { display: contents; } /* the hero raven picture lays out exactly like the old img */
.work-reel::before { content: attr(data-label); } /* the badge text is decoration, not part of the card name */
/* small blue labels on dark cards read a little lighter; the map button uses the deeper button blue */
.industry-clients span:not(.hy-word) { color: color-mix(in oklab, var(--primary) 78%, white); }
:root[data-theme="light"] .industry-clients span:not(.hy-word) { color: var(--primary-deep); }
.map-load { background: var(--primary-deep); }
.map-load:hover, .map-load:focus-visible { background: var(--primary); }
