/* ==========================================================
   gacsmedia — site styles
   Palette: Ink #101010 · Warm white #F5F3EF · Signal orange #FF4D00 · Graphite #292929
   ========================================================== */

:root {
  --ink: #101010;
  --white: #f5f3ef;
  --orange: #ff4d00;
  --graphite: #292929;
  --muted: rgba(245, 243, 239, 0.62);
  --muted-ink: rgba(16, 16, 16, 0.62);
  --line: rgba(245, 243, 239, 0.14);
  --line-ink: rgba(16, 16, 16, 0.14);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 1440px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; } /* the work filters and the admin's on/off switches hide things this way */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--orange); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 200;
  background: var(--orange); color: var(--ink); padding: .75rem 1rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */

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

.section { padding-block: clamp(5rem, 11vw, 10rem); position: relative; }

.surface-white { background: var(--white); color: var(--ink); }
.surface-orange { background: var(--orange); color: var(--ink); }

/* ---------- Type ---------- */

.display {
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.86;
  font-size: clamp(3.4rem, 12.5vw, 12rem);
}
.display--md { font-size: clamp(3rem, 9vw, 8.5rem); }
.display--sm { font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: .9; }

.lead {
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.45;
  max-width: 38ch;
}

.label {
  font-size: .9rem;
  font-weight: 500;
}

.muted { color: var(--muted); }
.surface-white .muted, .surface-orange .muted { color: var(--muted-ink); }
.accent { color: var(--orange); }
.dot { color: var(--orange); }
.surface-orange .dot { color: var(--ink); }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--orange);
  --btn-fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  padding: 1.05rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: color .4s var(--ease);
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--white);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
  z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--white); }
.btn--dark::before { background: var(--orange); }
.btn--dark:hover { color: var(--ink); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: currentColor;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn--ghost::before { background: var(--orange); }
.btn--ghost:hover { color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: .2rem;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: transform .5s var(--ease), background-color .4s, backdrop-filter .4s;
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-header.is-scrolled {
  background: rgba(16, 16, 16, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }

.brand img { height: 26px; width: auto; }

.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav a {
  position: relative;
  font-weight: 600;
  font-size: .98rem;
}
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:not(.nav-cta):hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .nav-cta { padding: .7rem 1.1rem; font-size: .95rem; }

/* a pill with the word "Menu" and two lines that turn into an X */
.menu-toggle {
  display: none;
  height: 42px; padding: 0 46px 0 1.1rem;
  border: 1.5px solid currentColor; border-radius: 999px;
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  position: relative;
  z-index: 120;
}
.menu-label { min-width: 4em; text-align: left; } /* same width for "Menu" and "Close" so the button keeps its size */
.menu-toggle span[aria-hidden] {
  position: absolute; right: 17px; width: 18px; height: 2px; background: currentColor;
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.menu-toggle span[aria-hidden]:nth-child(1) { top: 15px; }
.menu-toggle span[aria-hidden]:nth-child(2) { top: 22px; }
.menu-open .menu-toggle span[aria-hidden]:nth-child(1) { top: 18.5px; transform: rotate(45deg); }
.menu-open .menu-toggle span[aria-hidden]:nth-child(2) { top: 18.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; /* under the header so the logo and close button stay visible */
  background: var(--ink); color: var(--white);
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-in-out), visibility 0s .7s; /* hides only after sliding back up */
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-in-out), visibility 0s; }
.menu-open .site-header { background: transparent; border-color: transparent; backdrop-filter: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-weight: 900; letter-spacing: -0.05em; line-height: 1;
  font-size: clamp(1.875rem, 9vw, 3.5rem);
  padding: .25em 0;
  transition: color .3s;
}
.mobile-menu nav a + a { border-top: 1px solid var(--line); }
.mobile-menu nav a:hover, .mobile-menu nav a:focus-visible { color: var(--orange); }
.mobile-menu .label { margin-top: auto; padding-top: 2.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Hero ---------- */

.reel-section { padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.hero {
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4.5rem));
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
}
.hero-meta { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: flex-start; gap: 2rem; }
/* grows and shrinks with the window like the title; never below a readable size, stops growing when the title does */
.hero-list { text-align: right; font-size: clamp(.7rem, 1.25vw, 1.2rem); letter-spacing: .06em; line-height: 1.5; }
.hero-list li { overflow: hidden; }
.hero-title { align-self: end; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; }
.hero-mark-wrap { align-self: end; perspective: 900px; }
.hero-mark {
  width: clamp(140px, 19vw, 280px);
  aspect-ratio: 1;
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--orange);
  display: grid; place-items: center;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}
.hero-mark img { width: 100%; height: 100%; }
.hero-foot { grid-column: 1 / -1; padding-top: 1.5rem; }
.hero-foot p { font-size: clamp(1.05rem, 1.5vw, 1.3rem); }

/* intro animation */
.js .hero-title .line > span,
.js .hero-list li > span { transform: translateY(105%); }
.js .hero-mark { transform: scale(.4) rotate(-90deg); opacity: 0; } /* spins in as soon as the page has loaded */
.js .hero-foot { opacity: 0; }
.is-loaded .hero-title .line > span,
.is-loaded .hero-list li > span { transform: none; transition: transform 1.1s var(--ease); }
.is-loaded .hero-title .line:nth-child(2) > span { transition-delay: .09s; }
.is-loaded .hero-list li:nth-child(2) > span { transition-delay: .06s; }
.is-loaded .hero-list li:nth-child(3) > span { transition-delay: .12s; }
.hero-list li > span { display: inline-block; }
.is-loaded .hero-mark { transform: none; opacity: 1; transition: transform 1.2s var(--ease) .25s, opacity .6s .25s; }
.is-loaded .hero-foot { opacity: 1; transition: opacity 1s .5s; }

/* page hero (inner pages) */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(3.5rem, 10vw, 8rem));
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.page-hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  align-items: end;
}
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: 1.6fr 1fr; } }

/* ---------- Showreel ---------- */

.reel {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--graphite);
  overflow: hidden;
  display: block;
  width: 100%;
  text-align: left;
}
/* same hover frame as the project cards */
.reel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 0 var(--orange);
  transition: box-shadow .5s var(--ease);
}
.reel:hover::after, .reel:focus-visible::after { box-shadow: inset 0 0 0 6px var(--orange); }
.reel-bg { position: absolute; inset: 0; }
.reel-bg img, .reel-bg video { width: 100%; height: 100%; object-fit: cover; }
.reel-title {
  position: absolute; top: clamp(1rem, 2.4vw, 1.75rem); left: clamp(1rem, 2.4vw, 1.75rem);
  font-weight: 900; letter-spacing: -.05em; line-height: .9;
  font-size: clamp(1.6rem, 3.4vw, 3rem);
}
.reel-play {
  position: absolute; left: 50%; top: 50%;
  width: clamp(88px, 11vw, 150px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: var(--orange); color: var(--ink);
  display: grid; place-items: center;
  transition: transform .6s var(--ease);
}
.reel-play svg { width: 30%; transition: transform .6s var(--ease); }
.reel:hover .reel-play { transform: translate(-50%, -50%) scale(1.12) rotate(90deg); }
.reel:hover .reel-play svg { transform: rotate(-90deg); }

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: clamp(1rem, 2.4vw, 1.8rem);
  user-select: none;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-track span {
  display: inline-flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem);
  padding-right: clamp(1.5rem, 3vw, 3rem);
  font-weight: 900; letter-spacing: -.05em;
  font-size: clamp(2.2rem, 6vw, 5.5rem); line-height: 1;
  white-space: nowrap;
}
.marquee-track span::after {
  content: ""; width: .32em; height: .32em; background: var(--orange); flex: none;
}
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--white); }

/* ---------- Section heads ---------- */

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

/* ---------- Work grid & cards ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.25rem, 3vw, 2.75rem);
  row-gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}
/* Two columns that each stack on their own, so a card sits right under the one above it whatever their heights. */
.work-col { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: clamp(3rem, 6vw, 5rem); }
.work-col + .work-col { margin-top: clamp(4rem, 12vw, 10rem); } /* the right column starts lower */

.card { display: block; position: relative; text-align: left; width: 100%; cursor: pointer; }
.has-cursor .card { cursor: none; }
.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--graphite);
}
.card--tall .card-media { aspect-ratio: 4 / 5; }
.card--square .card-media { aspect-ratio: 1; }
.card-media > img, .card-media > video, .card-media > .ph {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.card-media > video { opacity: 0; transition: opacity .4s; }
.card:hover .card-media > video.is-playing { opacity: 1; }
.card-media::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 0 var(--orange);
  transition: box-shadow .5s var(--ease);
  pointer-events: none;
}
.card:hover .card-media::after, .card:focus-visible .card-media::after { box-shadow: inset 0 0 0 6px var(--orange); }

.card-badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--ink); color: var(--white);
  padding: .4rem .6rem;
}
.card-badge svg { width: .7rem; height: .7rem; }

.card-info {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem;
  padding-top: 1.1rem;
}
.card-title {
  font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
}
.card-meta { text-align: right; flex: none; }
.card-meta .label { display: block; }

/* placeholder media (until real covers are added) */
.ph {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(1rem, 2.4vw, 1.75rem);
  overflow: hidden;
}
.ph-num {
  font-weight: 900; letter-spacing: -.06em; line-height: .78;
  font-size: clamp(5rem, 14vw, 13rem);
  align-self: flex-end;
}
.ph-word { font-weight: 900; letter-spacing: -.05em; line-height: .9; font-size: clamp(1.6rem, 3.4vw, 3rem); max-width: 10ch; }
.card:hover .card-media > img, .card:hover .card-media > .ph { transform: scale(1.05); }
.ph[data-tone="orange"] { background: var(--orange); color: var(--ink); }
.ph[data-tone="orange"] .dot { color: var(--ink); }
.ph[data-tone="graphite"] { background: var(--graphite); color: var(--white); }
.ph[data-tone="ink"] { background: #161616; color: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.ph[data-tone="white"] { background: var(--white); color: var(--ink); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; }
.filter {
  padding: .7rem 1.1rem;
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 600;
  transition: background .3s, color .3s, box-shadow .3s;
}
.filter:hover { box-shadow: inset 0 0 0 1.5px var(--white); }
.filter[aria-pressed="true"] { background: var(--orange); color: var(--ink); box-shadow: none; }
.filter sup { font-size: .7rem; margin-left: .25rem; opacity: .7; }
.filters--sub { margin-top: .6rem; }
.filters--sub .filter { padding: .45rem .85rem; font-size: .875rem; }

.work-grid.is-filtering .card { opacity: 0; transform: translateY(24px); }
.work-grid .card { transition: opacity .35s var(--ease), transform .5s var(--ease); }
.empty-state { padding: 4rem 0; grid-column: 1 / -1; }

/* ---------- Services list (home) ---------- */

.svc-list { border-top: 1.5px solid currentColor; }
.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.25rem, 2.5vw, 2rem) 0;
  border-bottom: 1.5px solid currentColor;
  isolation: isolate;
}
.svc-row::before {
  /* small equal bleed past the rules: text stays aligned with the heading but gets breathing room */
  content: ""; position: absolute; inset: 0 calc(min(1.5rem, var(--gutter)) * -1);
  background: var(--orange); z-index: -1;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s var(--ease);
}
.svc-row:hover::before { transform: scaleY(1); transform-origin: top; }
.svc-row .svc-name {
  font-weight: 900; letter-spacing: -.05em; line-height: .95;
  font-size: clamp(2.4rem, 6.5vw, 5.75rem);
  transition: transform .5s var(--ease);
}
.svc-row:hover .svc-name { transform: translateX(1rem); }
.svc-row .svc-desc { max-width: 32ch; text-align: right; }

/* ---------- Stats ---------- */

.stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2rem; } /* however many there are, they share the row equally */
.stat { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.stat-num {
  font-weight: 900; letter-spacing: -.06em; line-height: .9;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
}
.stat-num .dot { font-size: .6em; }

/* ---------- CTA ---------- */

.cta { overflow: hidden; }
.cta-inner { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.5fr 1fr; } }
.cta-side { display: grid; gap: 1.75rem; justify-items: start; }
.cta-side .lead { max-width: 30ch; }

/* ---------- Footer ---------- */

.site-footer { padding-top: clamp(4rem, 9vw, 8rem); padding-bottom: 2rem; border-top: 1px solid var(--line); }
.footer-big {
  font-weight: 900; letter-spacing: -.055em; line-height: .88;
  font-size: clamp(2.8rem, 9vw, 8.5rem);
  margin-bottom: clamp(3rem, 7vw, 6rem);
}
/* inline link so the clickable area hugs the words, not the whole block */
.footer-big a { display: inline; transition: color .4s; }
.footer-big a:hover { color: var(--orange); }
.footer-big a:hover .dot { color: var(--white); }
.footer-cols {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 3rem;
}
.footer-cols h4 { font-size: .9rem; color: var(--muted); font-weight: 500; margin-bottom: 1rem; }
.footer-cols li + li { margin-top: .4rem; }
.footer-cols a { transition: color .3s; }
.footer-cols a:hover { color: var(--orange); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 1.5rem;
  color: var(--muted);
}
.footer-bottom img { height: 20px; width: auto; }
.to-top { display: inline-flex; align-items: center; gap: .5rem; }
.to-top:hover { color: var(--orange); }

/* ---------- Services page ---------- */

.svc-block {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .svc-block { grid-template-columns: 1.1fr 1fr; } }
.svc-block .h-svc { font-weight: 900; letter-spacing: -.05em; line-height: .9; font-size: clamp(2.8rem, 6vw, 5rem); }
.svc-block p + p { margin-top: 1rem; }
.svc-items li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .95rem 0;
  font-weight: 600;
  transition: padding .4s var(--ease), color .3s;
}
.svc-items li + li { border-top: 1px solid var(--line); } /* lines between rows only, none above the first or below the last */
.svc-items li:hover { padding-left: .75rem; color: var(--orange); }
.svc-items li span:last-child { font-weight: 400; }

.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step {
  position: relative;
  padding: 2rem 1.5rem 2.5rem;
  border-left: 1.5px solid var(--line-ink);
  min-height: 300px;
  /* text sits a fixed distance under the number, so headings and texts line up across the steps */
  display: flex; flex-direction: column; gap: 2rem;
  isolation: isolate;
}
.step:last-child { border-right: 1.5px solid var(--line-ink); }
/* hover: a dark fill rises from the bottom, the text turns light and the number lifts.
   Transitions sit on the fill and the children because the scroll-reveal rule owns .step's own transition. */
.step::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s var(--ease);
}
.step:hover::before { transform: scaleY(1); }
.step:hover { color: var(--white); }
.step h3, .step .muted { transition: color .4s var(--ease); }
.step:hover .muted { color: var(--muted); }
.step-num { font-weight: 900; letter-spacing: -.06em; font-size: clamp(3rem, 6vw, 5rem); line-height: .8; color: var(--orange); transition: transform .5s var(--ease); }
.step:hover .step-num { transform: translateY(-.6rem); }
.step h3 { font-weight: 800; letter-spacing: -.03em; font-size: 1.6rem; margin-bottom: .6rem; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  padding: 1.6rem 0;
  font-weight: 800; letter-spacing: -.03em; font-size: clamp(1.2rem, 2vw, 1.6rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { width: 1.6rem; height: 1.6rem; position: relative; flex: none; }
.faq .plus::before, .faq .plus::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--orange);
  transition: transform .45s var(--ease);
}
.faq .plus::after { transform: rotate(90deg); }
.faq details[open]:not(.is-closing) .plus::after { transform: rotate(0); }
.faq .answer { padding: 0 0 1.75rem; max-width: 62ch; color: var(--muted); }

/* ---------- Reveal on scroll (elements tagged in main.js) ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- About page ---------- */

.about-grid { display: grid; gap: clamp(2.5rem, 6vw, 6rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1.2fr; } }
.about-copy p { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
.about-copy p + p { margin-top: 1.25rem; }
.about-copy strong { color: var(--white); }
.portrait {
  position: relative; aspect-ratio: 4 / 5; background: var(--graphite); overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.portrait:hover img { filter: none; transform: scale(1.03); }
.portrait .ph { position: absolute; inset: 0; }
.portrait-tag { position: absolute; left: 0; bottom: 0; background: var(--orange); color: var(--ink); padding: .9rem 1.1rem; font-weight: 700; }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.principle {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  min-height: clamp(320px, 34vw, 460px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2rem;
  overflow: hidden;
}
.principle h3 { font-weight: 900; letter-spacing: -.055em; line-height: .88; font-size: clamp(2.4rem, 4.6vw, 4.25rem); }
.principle:nth-child(1) { background: var(--ink); color: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.principle:nth-child(2) { background: var(--white); color: var(--ink); }
.principle:nth-child(3) { background: var(--orange); color: var(--ink); }
.principle:nth-child(n+2) .muted { color: var(--muted-ink); }

[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

.mix { display: flex; height: clamp(56px, 8vw, 88px); gap: 0; }
.mix > div { display: flex; align-items: center; justify-content: center; font-weight: 700; transition: flex-grow .7s var(--ease); }
.mix .m-dark { flex: 70; background: var(--ink); color: var(--white); }
.mix .m-white { flex: 20; background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.mix .m-accent { flex: 10; background: var(--orange); color: var(--ink); }
.mix > div:hover { flex-grow: 120; }

.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1.5rem; }
.swatch {
  padding: 1.25rem; min-height: 170px;
  display: flex; flex-direction: column; justify-content: space-between;
  text-align: left; position: relative;
}
.swatch strong { font-size: 1.15rem; letter-spacing: -.02em; }
.swatch .copied { position: absolute; right: 1rem; top: 1.25rem; opacity: 0; transition: opacity .3s; }
.swatch.is-copied .copied { opacity: 1; }

/* ---------- Contact page ---------- */

.contact-grid { display: grid; gap: clamp(3rem, 6vw, 6rem); grid-template-columns: 1fr; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1.25fr; } }
.contact-details { display: grid; gap: 2rem; align-content: start; }
.contact-details .big-mail {
  font-weight: 800; letter-spacing: -.035em; font-size: clamp(1.5rem, 3vw, 2.4rem);
  border-bottom: 2px solid var(--orange); padding-bottom: .2rem; justify-self: start;
  word-break: break-all;
}
.contact-details .big-mail:hover { color: var(--orange); }
.socials { display: flex; gap: .6rem; flex-wrap: wrap; }
.socials a { padding: .6rem 1rem; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; transition: background .3s, color .3s, box-shadow .3s; }
.socials a:hover { background: var(--white); color: var(--ink); box-shadow: none; }

.form { display: grid; gap: 2rem; }
.form-row { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: .5rem; }
.field label, .field legend { font-size: .9rem; font-weight: 500; color: var(--muted); padding: 0; }
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit; font-size: 1.15rem;
  color: var(--white);
  background: transparent;
  border: 0; border-bottom: 1.5px solid var(--line);
  padding: .7rem 0;
  border-radius: 0;
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--orange) 50%), linear-gradient(-45deg, transparent 50%, var(--orange) 50%); background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); }
.field input::placeholder, .field textarea::placeholder { color: rgba(245, 243, 239, .3); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.field .chip { font-size: 1rem; color: var(--white); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: .65rem 1.05rem; font-weight: 600; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background .3s, color .3s, box-shadow .3s;
}
.chip span:hover { box-shadow: inset 0 0 0 1.5px var(--white); }
.chip input:checked + span { background: var(--orange); color: var(--ink); box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.form-status { min-height: 1.5em; }
.form-status.is-ok { color: var(--orange); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(16, 16, 16, .96);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 1.25rem var(--gutter) 1.5rem;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1rem; }
.lb-close { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; padding: .5rem 0; }
.lb-close:hover { color: var(--orange); }
.lb-stage { display: grid; place-items: center; min-height: 0; container-type: size; }
.lb-frame {
  /* --ar is the video's own shape (width / height), set by main.js once it is known.
     The frame is as big as fits the space between the top bar and the text (second "width"; the first is for older browsers). */
  width: min(100%, calc((100svh - 220px) * var(--ar, 16 / 9)));
  width: min(100cqw, calc(100cqh * var(--ar, 16 / 9)));
  aspect-ratio: var(--ar, 16 / 9);
  background: var(--graphite);
  position: relative; overflow: hidden;
  transform: scale(.96); transition: transform .5s var(--ease);
}
.lightbox.is-open .lb-frame { transform: none; }
.lb-frame iframe, .lb-frame video, .lb-frame img, .lb-frame .ph { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; }
.lb-frame .ph { object-fit: initial; }
.lb-frame img { background: var(--ink); }
.lb-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; padding-top: 1.25rem; }
.lb-title { font-weight: 900; letter-spacing: -.045em; line-height: 1; font-size: clamp(1.5rem, 3vw, 2.6rem); }
.lb-summary { color: var(--muted); max-width: 60ch; margin-top: .5rem; }
.lb-nav { display: flex; gap: .5rem; flex: none; }
.lb-nav button {
  width: 52px; height: 52px; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--line); transition: background .3s, color .3s;
}
.lb-nav button:hover { background: var(--orange); color: var(--ink); box-shadow: none; }
.lb-nav svg { width: 20px; height: 20px; }
.lb-nav .prev svg { transform: rotate(180deg); }
body.lb-locked { overflow: hidden; }

/* ---------- Cursor ---------- */

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor summary, .has-cursor .chip span { cursor: none; }
  .cursor {
    position: fixed; left: 0; top: 0; z-index: 300;
    pointer-events: none;
    width: 12px; height: 12px;
    margin: -6px 0 0 -6px;
    background: var(--orange);
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .3s, opacity .3s;
    display: grid; place-items: center;
    opacity: 0;
  }
  .cursor.is-visible { opacity: 1; }
  .cursor-label {
    font-size: .8rem; font-weight: 700;
    color: var(--ink); opacity: 0; transition: opacity .2s; white-space: nowrap;
  }
  .cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: transparent; box-shadow: inset 0 0 0 2px var(--orange); }
  .cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--orange); box-shadow: none; }
  .cursor.is-label .cursor-label { opacity: 1; }
  .cursor.on-orange { background: var(--ink); }
  .cursor.on-orange.is-link { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
  .cursor.on-orange .cursor-label { color: var(--white); }
  .cursor.is-text { width: 3px; height: 28px; margin: -14px 0 0 -1.5px; }
  .cursor.is-down { transform: scale(.8); }
}

/* ---------- Page transition ---------- */

.page-wipe {
  position: fixed; inset: 0; z-index: 400;
  background: var(--orange);
  pointer-events: none;
  transform: translateY(100%);
}
.js .page-wipe { transform: translateY(0); }
.js.is-loaded .page-wipe { transform: translateY(-100%); transition: transform .6s var(--ease-in-out); }
.js.is-leaving .page-wipe { transform: translateY(0); transition: transform .4s var(--ease-in-out); }
.js.is-leaving.is-loaded .page-wipe { animation: wipeIn .4s var(--ease-in-out) forwards; }
@keyframes wipeIn { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { border-top: 1.5px solid var(--line-ink); }
  .step:nth-child(2) { border-right: 1.5px solid var(--line-ink); }
  .principles { grid-template-columns: 1fr; }
  .principle { min-height: 260px; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .brand img { height: 22px; }
  /* title and logo stay side by side; both scale with the screen so they always fit */
  .hero .wrap { column-gap: 4vw; }
  .hero-mark { width: 22vw; }
  .hero-title { font-size: 14vw; }
  .work-grid { grid-template-columns: 1fr; }
  .work-col { display: contents; } /* one column: the cards line up by their "order" */
  .svc-row { grid-template-columns: 1fr; gap: .5rem; }
  .svc-row .svc-desc { text-align: left; }
  .stats { grid-auto-flow: row; }
  .form-row { grid-template-columns: 1fr; }
  .lb-bottom { flex-direction: column; align-items: stretch; }
  .lb-nav { justify-content: flex-end; }
}

@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
  .step { border-right: 1.5px solid var(--line-ink); min-height: 0; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .card-info { flex-direction: column; gap: .5rem; }
  .card-meta { text-align: left; }
  .mix > div { font-size: .8rem; }
}

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