/* ============================================================
   Jason Grech, v2 design language
   Near-black canvas, soft cards, one grotesk, one red.
   ============================================================ */

:root {
  --bg:        #0B0B0C;
  --surface:   #151517;
  --surface-2: #1D1D20;
  --surface-3: #26262A;
  --line:      rgba(255, 255, 255, 0.08);
  --text:      #F2F2F3;
  --dim:       #A1A1A7;
  --mute:      #74747C;

  --accent:        #D2382B;
  --accent-hover:  #E8473A;
  --accent-strong: #FF6155;
  --on-accent:     #FFFFFF;

  --btn-light-bg: #F2F2F3;
  --btn-light-fg: #0B0B0C;

  --header-bg: rgba(11, 11, 12, 0.82);

  --font: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --r-card: 22px;
  --r-inner: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-reveal: cubic-bezier(0.33, 1, 0.68, 1);
  --header-h: 76px;

  color-scheme: dark;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg:        #F5EFE6;
  --surface:   #FFFFFF;
  --surface-2: #F0E9DE;
  --surface-3: #E6DDCF;
  --line:      rgba(60, 44, 30, 0.12);
  --text:      #221C17;
  --dim:       #62564A;
  --mute:      #8A7C68;
  --accent-strong: #AE2E22;
  --btn-light-bg: #221C17;
  --btn-light-fg: #FFFFFF;
  --header-bg: rgba(245, 239, 230, 0.88);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; padding: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 300; background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: 10px; }

/* ---------- Section heading ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}
.label::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(210, 56, 43, 0.18);
}
.head { text-align: center; max-width: 44rem; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); display: grid; gap: 1rem; justify-items: center; }
.head h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.head p { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--dim); max-width: 34rem; }
.head--split {
  text-align: left;
  max-width: none;
  justify-items: start;
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .head--split { grid-template-columns: 1fr 1.1fr; gap: 2rem 4rem; }
  .head--split .head__right { display: grid; gap: 1rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  background: var(--btn-light-bg);
  color: var(--btn-light-fg);
  transition: transform .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--accent); color: var(--on-accent); }
.btn--red:hover { background: var(--accent-hover); box-shadow: 0 14px 34px -14px rgba(210, 56, 43, .7); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--dim); }
.btn--block { width: 100%; }
/* Speech-bubble corner: a quiet nod to "message me" */
.btn--bubble { border-radius: 22px 22px 22px 6px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled {
  background: var(--header-bg);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
}
.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.nav { display: flex; gap: 1.6rem; }
.nav a { font-size: 0.95rem; font-weight: 500; color: var(--dim); transition: color .25s; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--accent-strong); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.08rem; letter-spacing: -0.02em; justify-self: center; }
.brand__mark {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--accent), #591712);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.header-actions { display: flex; align-items: center; gap: 0.6rem; justify-self: end; }
.header-actions .btn { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.92rem; }

.theme-toggle {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--dim);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color .25s, box-shadow .25s;
}
.theme-toggle:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--dim); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.nav-toggle { display: none; width: 42px; height: 42px; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 50%; width: 20px; height: 2px; border-radius: 2px;
  background: var(--text); transform: translateX(-50%); transition: transform .3s var(--ease), background-color .2s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
  display: flex; flex-direction: column; gap: 2rem;
  transform: translateY(-100%); visibility: hidden; pointer-events: none;
  transition: transform .5s var(--ease), visibility 0s linear .5s;
}
body.nav-open .mobile-nav { transform: none; visibility: visible; pointer-events: auto; transition: transform .5s var(--ease); }
.mobile-nav__list a { display: block; font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 600; letter-spacing: -0.03em; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.mobile-nav__foot { margin-top: auto; display: grid; gap: 1rem; }

@media (max-width: 860px) {
  .site-header .container { grid-template-columns: auto 1fr auto; }
  .nav { display: none; }
  .brand { justify-self: start; grid-column: 1; grid-row: 1; }
  .header-actions { grid-column: 3; }
  .header-actions .btn { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: grid;
  overflow: hidden;
  background: #0B0B0C;
  color: #F2F2F3;
  isolation: isolate;
}
.hero__orbits {
  position: absolute;
  left: 50%;
  bottom: -38%;
  width: min(1300px, 160vw);
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  opacity: .55;
}
/* Real edit timeline, sunk into the dark so it reads as texture, not a screenshot. */
.hero__timeline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  opacity: .2;
  filter: grayscale(.55) contrast(1.1);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 40%, transparent 100%);
}
/* Stage scales the figure and the name together, so the face always
   sits in the gap between the two words. */
.hero__stage {
  --fig: min(700px, 50vw, calc((100svh - var(--header-h)) * 0.86));
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--fig);
  aspect-ratio: 1300 / 1224;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}
.hero__word {
  position: absolute;
  left: 50%;
  top: 17%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: calc(var(--fig) * 0.42);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: calc(var(--fig) * 0.27);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent);
  user-select: none;
}
.hero__figure {
  position: absolute;
  inset: 0;
  z-index: 2;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 97%);
}
.hero__figure img { width: 100%; height: auto; }
.hero__content {
  position: relative;
  z-index: 3;
  align-self: end;
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.6rem;
  text-align: left;
}
.hero__sub { max-width: 27rem; font-size: 1.05rem; line-height: 1.5; color: #C9C9CE; }
.hero__sub strong { color: #fff; font-weight: 600; }
.hero__tag {
  position: absolute;
  z-index: 3;
  top: calc(var(--header-h) + clamp(1.5rem, 5vh, 3rem));
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  color: #E6E6E9;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.hero__tag i { width: 7px; height: 7px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 3px rgba(61,220,132,.2); }
.hero .btn--ghost { color: #F2F2F3; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }

@media (max-width: 860px) {
  /* Not enough width to split around the head: stack tag, name, figure, copy. */
  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: calc(var(--header-h) + 1rem);
  }
  .hero__tag { position: static; transform: none; }
  .hero__stage {
    --fs: min(19vw, 150px);
    --fig: min(108vw, 560px);
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin-top: calc(var(--fs) * 0.95 + 1rem);
  }
  .hero__word { top: calc(var(--fs) * -0.95); gap: .16em; font-size: var(--fs); }
  .hero__content { margin-top: -18%; justify-content: flex-start; padding-bottom: 5.5rem; }
  .hero__sub { font-size: 1rem; }
}

/* ---------- Clients ---------- */
.clients { padding-block: clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--line); }
.clients__intro { text-align: center; color: var(--dim); font-size: .98rem; margin-bottom: 2rem; }
.clients__row { display: grid; gap: 1.2rem; }
.clients__group { display: grid; gap: .9rem; }
@media (min-width: 900px) { .clients__row { grid-template-columns: 1fr 1fr; gap: 1.4rem; } }
.clients__group h3 { font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.clients__list { display: flex; flex-wrap: wrap; gap: .6rem; }
.client {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 52px;
  padding: .6rem 1.1rem;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--dim);
  transition: color .25s, box-shadow .25s;
}
.client:hover { color: var(--text); box-shadow: inset 0 0 0 1px rgba(210,56,43,.45); }
.client small { font-weight: 500; font-size: .78rem; color: var(--mute); }
.client img { height: 22px; width: auto; filter: grayscale(1) brightness(1.6); opacity: .8; }
.client--placeholder { border: 1px dashed var(--mute); box-shadow: none; font-weight: 500; font-style: italic; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-card);
  padding: clamp(1.4rem, 2.6vw, 1.8rem);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.card h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); }
.card p { color: var(--dim); margin-top: .5rem; }

/* ---------- Services bento ---------- */
.bento { display: grid; gap: 1.1rem; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .bento > :nth-child(1) { grid-column: span 7; }
  .bento > :nth-child(2) { grid-column: span 5; }
  .bento > :nth-child(3) { grid-column: span 5; }
  .bento > :nth-child(4) { grid-column: span 7; }
}
.card--photo { min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.card--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.card--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.94) 10%, rgba(0,0,0,.7) 35%, rgba(0,0,0,.25) 62%, transparent 85%); z-index: 1; }
.card--photo > div { text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.card--photo > div { position: relative; z-index: 2; }
.card--photo p { color: rgba(255,255,255,.78); }
.card__stage {
  margin-top: 1.4rem;
  min-height: 210px;
  border-radius: var(--r-inner);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

/* Platform tiles */
.platforms { display: flex; }
.platform {
  width: 84px; height: 84px;
  border-radius: 22px;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 18px 36px -16px rgba(0,0,0,.6);
  margin-left: -10px;
  transition: transform .4s var(--ease);
}
.platform svg { width: 40px; height: 40px; }
.platform:nth-child(1) { background: #0B0B0C; transform: rotate(-8deg); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 18px 36px -16px rgba(0,0,0,.6); }
.platform:nth-child(2) { background: var(--accent); transform: translateY(-6px); z-index: 1; }
.platform:nth-child(3) { background: linear-gradient(135deg, #3A3A3F, #1B1B1E); transform: rotate(8deg); }
.card:hover .platform:nth-child(1) { transform: rotate(-14deg) translateX(-6px); }
.card:hover .platform:nth-child(3) { transform: rotate(14deg) translateX(6px); }

/* Timeline mock */
.timeline-mock { width: 88%; display: grid; gap: 10px; position: relative; padding-block: 14px; }
.track { display: flex; gap: 6px; height: 34px; }
.track span { border-radius: 7px; background: var(--surface-3); }
.track--v span { background: linear-gradient(135deg, #5A5A61, #2A2A2E); }
.track--v span:nth-child(2) { background: linear-gradient(135deg, #8B2A20, #3A120E); }
.track--a { height: 22px; }
.track--a span { background: repeating-linear-gradient(90deg, rgba(210,56,43,.55) 0 2px, transparent 2px 5px); opacity: .7; }
.playhead { position: absolute; top: 0; bottom: 0; left: 46%; width: 2px; background: var(--accent-strong); }
.playhead::before { content: ""; position: absolute; top: -6px; left: 50%; width: 14px; height: 10px; transform: translateX(-50%); border-radius: 3px 3px 7px 7px; background: var(--accent-strong); }
.card:hover .playhead { left: 64%; transition: left 1.6s var(--ease); }
.playhead { transition: left 1.6s var(--ease); }

/* ---------- Work grid ---------- */
.work-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.work {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface);
  color: #fff;
}
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work:hover img { transform: scale(1.05); }
.work__meta {
  position: absolute; inset: auto 0 0 0; padding: 4.5rem 1.2rem 1.2rem;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.78) 35%, rgba(0,0,0,.4) 70%, transparent 100%);
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
}
.work__meta span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #FF8177; }
.work__meta h3 { font-size: 1.15rem; margin-top: .2rem; }
.section-cta { display: flex; justify-content: center; margin-top: 2.4rem; }

/* ---------- Process ---------- */
.process { display: grid; gap: 1.1rem; }
@media (min-width: 900px) { .process { grid-template-columns: repeat(3, 1fr); } }
.process .card { display: flex; flex-direction: column; }
.process .card__stage { margin-top: auto; }
.process .card p { margin-bottom: 1.4rem; }
.step-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pips { display: flex; gap: 5px; }
.pips i { width: 9px; height: 9px; transform: rotate(45deg); border-radius: 2px; background: var(--surface-3); }
.pips i.on { background: var(--accent); }

/* Chat mock */
.chat { width: 82%; display: grid; gap: 10px; }
.bubble { max-width: 82%; padding: .6rem .85rem; border-radius: 16px; font-size: .86rem; line-height: 1.35; }
.bubble--you { background: var(--surface-3); color: var(--text); border-bottom-left-radius: 5px; }
.bubble--me { justify-self: end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.bubble small { display: block; font-size: .7rem; opacity: .7; margin-bottom: .1rem; }

/* Viewfinder mock */
.viewfinder { position: absolute; inset: 0; }
.viewfinder img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.viewfinder::before {
  content: ""; position: absolute; inset: 14%;
  background:
    linear-gradient(#fff,#fff) top left / 18px 2px no-repeat,
    linear-gradient(#fff,#fff) top left / 2px 18px no-repeat,
    linear-gradient(#fff,#fff) top right / 18px 2px no-repeat,
    linear-gradient(#fff,#fff) top right / 2px 18px no-repeat,
    linear-gradient(#fff,#fff) bottom left / 18px 2px no-repeat,
    linear-gradient(#fff,#fff) bottom left / 2px 18px no-repeat,
    linear-gradient(#fff,#fff) bottom right / 18px 2px no-repeat,
    linear-gradient(#fff,#fff) bottom right / 2px 18px no-repeat;
  opacity: .85;
}
.rec {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .25rem .55rem; border-radius: 999px;
  background: rgba(0,0,0,.55); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .06em;
}
.rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-strong); animation: blink 1.4s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* Delivery formats mock */
.formats { display: flex; align-items: flex-end; gap: 12px; }
.fmt {
  display: grid; place-items: end center;
  padding-bottom: 8px;
  border-radius: 10px;
  background: linear-gradient(160deg, #4B4B52, #202024);
  color: #fff; font-size: .68rem; font-weight: 600; letter-spacing: .04em;
  box-shadow: 0 14px 28px -14px rgba(0,0,0,.6);
}
.fmt--v { width: 58px; height: 104px; background: linear-gradient(160deg, var(--accent), #591712); }
.fmt--s { width: 84px; height: 84px; }
.fmt--w { width: 128px; height: 72px; }

/* ---------- Packages ---------- */
.packages { display: grid; gap: 1.1rem; align-items: stretch; }
@media (min-width: 980px) { .packages { grid-template-columns: repeat(3, 1fr); } }
.pkg { display: flex; flex-direction: column; padding: 0; }
.pkg__top { padding: 1.6rem; border-radius: var(--r-card); background: var(--surface-2); position: relative; overflow: hidden; }
.pkg__top > * { position: relative; }
.pkg__name { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pkg__name h3 { font-size: 1.55rem; }
.pkg__for { color: var(--dim); margin-top: .4rem; min-height: 3.2em; }
.pkg__big { font-size: clamp(2rem, 3.4vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; margin: 1.2rem 0 1.4rem; line-height: 1; }
.pkg__big small { font-size: .95rem; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.pkg__list { padding: 1.6rem; display: grid; gap: .85rem; }
.pkg__list li { display: flex; gap: .7rem; color: var(--dim); }
.pkg__list svg { flex: none; width: 18px; height: 18px; margin-top: .2rem; color: var(--text); }
.pkg--featured .pkg__top::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 110%;
  height: 150%;
  background: radial-gradient(circle at 70% 30%, rgba(210,56,43,.75), rgba(210,56,43,.18) 40%, transparent 65%);
  filter: blur(8px);
}
.chip { font-size: .76rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; }
:root[data-theme="light"] .chip { background: rgba(0,0,0,.08); color: var(--text); }
:root[data-theme="light"] .pkg--featured .chip { background: rgba(255,255,255,.3); }
.pkg-side { display: grid; gap: 1.1rem; }
.pkg-side .card { display: flex; flex-direction: column; gap: .4rem; min-height: 220px; }
.pkg-side .card .btn { margin-top: auto; }
.pkg-note { text-align: center; color: var(--mute); font-size: .92rem; margin-top: 1.6rem; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 28px;
  padding: clamp(3rem, 8vw, 5.5rem) var(--gutter);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid; justify-items: center; gap: 1.2rem;
}
.cta::before {
  content: ""; position: absolute; left: 50%; bottom: -70%; width: 900px; height: 600px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(210,56,43,.45), transparent);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); max-width: 16ch; }
.cta p { color: var(--dim); max-width: 32rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-grid p { color: var(--dim); max-width: 32ch; margin-top: .8rem; font-size: .95rem; }
.footer-grid h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: .8rem; font-weight: 600; }
.footer-grid ul { display: grid; gap: .5rem; }
.footer-grid a { color: var(--dim); font-size: .95rem; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; color: var(--mute); font-size: .88rem; }
.social-row { display: flex; gap: .6rem; }
.social-row a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--dim); box-shadow: inset 0 0 0 1px var(--line); }
.social-row a:hover { color: #fff; background: var(--accent); box-shadow: none; }
.social-row svg { width: 17px; height: 17px; }

/* ---------- WhatsApp widget + to-top ---------- */
.wa-widget { position: fixed; left: clamp(1rem,3vw,1.6rem); bottom: clamp(1rem,3vw,1.6rem); z-index: 85; display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; pointer-events: none; }
.wa-widget__toggle { pointer-events: auto; display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.05rem .7rem .8rem; border-radius: 22px 22px 22px 6px; background: var(--surface); color: var(--text); font-size: .88rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line), 0 14px 30px -12px rgba(0,0,0,.5); }
.wa-widget__toggle svg { width: 20px; height: 20px; color: var(--accent-strong); }
.wa-widget__panel { width: min(320px, calc(100vw - 2.5rem)); background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line), 0 28px 60px -20px rgba(0,0,0,.65); transform-origin: bottom left; transform: translateY(10px) scale(.96); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .3s var(--ease), opacity .3s var(--ease), visibility 0s linear .3s; }
.wa-widget.open .wa-widget__panel { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.wa-widget__head { display: flex; align-items: center; gap: .7rem; padding: 1rem; background: linear-gradient(140deg, var(--accent), #591712); color: #fff; }
.wa-widget__avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); font-weight: 800; font-size: .8rem; }
.wa-widget__head strong { display: block; font-size: .95rem; }
.wa-widget__head span { display: block; font-size: .75rem; opacity: .8; }
.wa-widget__close { margin-left: auto; align-self: flex-start; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 1.1rem; }
.wa-widget__body { padding: 1.1rem 1rem; }
.wa-widget__bubble { background: var(--surface-2); border-radius: 5px 16px 16px 16px; padding: .75rem .9rem; font-size: .9rem; color: var(--dim); }
.wa-widget__cta { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 0 1rem 1rem; padding: .8rem; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: .92rem; }
.wa-widget__cta svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .wa-widget__toggle span { display: none; } .wa-widget__toggle { padding: .8rem; } }

.to-top { position: fixed; right: clamp(1rem,3vw,1.6rem); bottom: clamp(1rem,3vw,1.6rem); z-index: 80; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease-reveal), transform .55s var(--ease-reveal); transition-delay: calc(var(--i, 0) * .05s); }
.reveal.is-visible { opacity: 1; transform: none; }
.hero .reveal { transform: translateY(12px); transition-duration: .4s; transition-delay: calc(var(--i, 0) * .04s); }
/* Page headings are on screen straight away: no fade, so the page never looks like it's still loading. */
.page-hero .reveal { opacity: 1; transform: none; transition: none; }

.theme-anim, .theme-anim * { transition: background-color .35s ease, color .35s ease, box-shadow .35s ease !important; }

@media (hover: none) {
  .btn:hover, .card:hover .platform, .work:hover img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Inner pages
   ============================================================ */

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(3.5rem, 9vw, 6.5rem)) 0 clamp(3rem, 7vw, 5rem);
  text-align: center;
}
/* Red glow from the top, fully faded out before the bottom edge so there's no hard line. */
.page-hero::before {
  content: "";
  position: absolute; inset: 0 auto 0 50%;
  width: min(1300px, 140vw); transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 75% at 50% 0%, rgba(210,56,43,.24) 0%, rgba(210,56,43,.14) 35%, rgba(210,56,43,.05) 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  pointer-events: none;
}
.page-hero .container { position: relative; display: grid; justify-items: center; gap: 1.2rem; }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: -0.035em; max-width: 16ch; }
.page-hero p { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--dim); max-width: 38rem; }

/* ---------- Generic grids ---------- */
.grid-3 { display: grid; gap: 1.1rem; }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 1.1rem; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.icon-tile {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(210,56,43,.14); color: var(--accent-strong);
  margin-bottom: 1.1rem;
}
.icon-tile svg { width: 22px; height: 22px; }
.kicker { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: .6rem; display: block; }

.ticks { display: grid; gap: .7rem; margin-top: 1.3rem; }
.ticks li { display: flex; gap: .65rem; color: var(--dim); font-size: .96rem; }
.ticks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: .18rem;
  background: currentColor;
  color: var(--text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.tags span { padding: .45rem .85rem; border-radius: 999px; background: var(--surface-2); color: var(--dim); font-size: .9rem; }

/* ---------- Filters + portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.filter-btn {
  min-height: 42px; padding: .5rem 1.1rem; border-radius: 999px;
  font-size: .92rem; font-weight: 500; color: var(--dim);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color .25s, background-color .25s, box-shadow .25s;
}
.filter-btn:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--dim); }
.filter-btn[aria-pressed="true"] { background: var(--btn-light-bg); color: var(--btn-light-fg); box-shadow: none; font-weight: 600; }
.portfolio-item.is-hidden { display: none; }
.work--wide { aspect-ratio: auto; }
.work__view {
  position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff;
  transition: background-color .3s, transform .3s var(--ease);
}
.work__view svg { width: 18px; height: 18px; }
.work:hover .work__view { background: var(--accent); transform: rotate(45deg); }

/* Showreel */
.reel {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden;
  display: grid; place-items: center; background: var(--surface);
}
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.reel .btn { position: relative; }
.note { color: var(--mute); font-size: .92rem; margin-top: 1rem; text-align: center; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: var(--gutter);
  background: rgba(6,6,7,.92);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.lightbox__inner { max-width: 960px; width: 100%; transform: scale(.97); transition: transform .35s var(--ease); }
.lightbox.open .lightbox__inner { transform: none; }
.lightbox img { width: 100%; border-radius: var(--r-card); }
.lightbox__cap { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; color: #B9B9BF; }
.lightbox__close { position: absolute; top: 1.2rem; right: 1.2rem; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.lightbox__close:hover { background: var(--accent); box-shadow: none; }
.lightbox__close svg { width: 20px; height: 20px; }

/* ---------- Steps list (services process) ---------- */
.steps { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step-num {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--accent); color: #fff; font-weight: 700; font-size: .9rem;
}
.steps .card h3 { font-size: 1.2rem; }

/* ---------- FAQ accordion ---------- */
.accordion { max-width: 820px; margin-inline: auto; display: grid; gap: .7rem; }
.accordion__item { background: var(--surface); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.accordion__trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.2rem 1.4rem; text-align: left; font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em;
}
.accordion__icon { flex: none; position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); }
.accordion__icon::before, .accordion__icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--text); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .3s var(--ease), opacity .3s; }
.accordion__icon::before { width: 12px; height: 2px; }
.accordion__icon::after { width: 2px; height: 12px; }
.accordion__trigger[aria-expanded="true"] .accordion__icon { background: var(--accent); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::before { background: #fff; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { opacity: 0; }
.accordion__panel { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.accordion__panel-inner { padding: 0 1.4rem 1.3rem; color: var(--dim); }

/* ---------- About ---------- */
.bio { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .bio { grid-template-columns: .9fr 1.1fr; } }
.bio__photo {
  position: relative; border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 100%, rgba(210,56,43,.55), transparent 60%), var(--surface);
  aspect-ratio: 4 / 5;
  display: flex; align-items: flex-end; justify-content: center;
  box-shadow: inset 0 0 0 1px var(--line);
}
.bio__photo img { width: 92%; height: auto; }
.bio__body { display: grid; gap: 1.1rem; }
.bio__body h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.bio__body p { color: var(--dim); font-size: 1.05rem; }
.values { display: grid; gap: 1.1rem; }
@media (min-width: 800px) { .values { grid-template-columns: repeat(2, 1fr); } }
.values .card h3 { font-size: 1.25rem; display: flex; align-items: center; gap: .6rem; }
.values .card h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 1.1rem; }
@media (min-width: 960px) { .contact { grid-template-columns: 1.25fr .75fr; align-items: start; } }
.form-card { padding: clamp(1.4rem, 3vw, 2.2rem); }
.field { display: grid; gap: .45rem; margin-bottom: 1.1rem; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-size: .88rem; font-weight: 600; color: var(--dim); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text);
  background: var(--surface-2);
  border: 0; border-radius: 14px;
  padding: .85rem 1rem;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23D2382B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
}
.form-note { color: var(--mute); font-size: .88rem; margin-top: .9rem; }
.form-note a { color: var(--accent-strong); }
.info-list { display: grid; gap: .7rem; }
.info {
  display: flex; gap: .9rem; align-items: center;
  padding: 1rem 1.1rem; border-radius: 18px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .25s, transform .3s var(--ease);
}
a.info:hover { box-shadow: inset 0 0 0 1px rgba(210,56,43,.5); transform: translateX(3px); }
.info .icon-tile { margin: 0; flex: none; }
.info strong { display: block; font-size: 1rem; }
.info span { color: var(--dim); font-size: .92rem; }

/* 404 */
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; }
.notfound .big { font-family: var(--font-display); font-size: clamp(7rem, 26vw, 16rem); line-height: .85; color: var(--accent); }

/* ---------- Video tiles + player ---------- */
.work--video { cursor: pointer; }
.work__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s var(--ease); pointer-events: none; }
.work.is-previewing .work__preview { opacity: 1; }
.work.is-previewing img { transform: none; }
.work__play {
  position: absolute; top: 50%; left: 50%; z-index: 1;
  width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(11,11,12,.45); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
  transition: background .3s var(--ease), transform .3s var(--ease), opacity .3s var(--ease);
}
.work__play svg { width: 22px; height: 22px; margin-left: 3px; }
.work--video:hover .work__play { background: var(--accent); box-shadow: none; transform: scale(1.06); }
.work.is-previewing .work__play { opacity: 0; }
.work--video .work__meta { z-index: 1; }
.vbox {
  position: fixed; inset: 0; z-index: 210;
  display: grid; place-items: center; padding: var(--gutter);
  background: rgba(6,6,7,.94);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.vbox.open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.vbox__inner { display: flex; flex-direction: column; align-items: center; max-width: 100%; transform: scale(.97); transition: transform .35s var(--ease); }
.vbox.open .vbox__inner { transform: none; }
.vbox video { display: block; max-width: min(100%, 1100px); max-height: calc(100svh - 9rem); border-radius: var(--r-card); background: #000; }
.vbox .lightbox__cap { align-self: stretch; }
.vbox__yt { width: min(1100px, calc(100vw - 2 * var(--gutter)), calc((100svh - 9rem) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; background: #000; }
.vbox__yt iframe { width: 100%; height: 100%; border: 0; display: block; }
.vbox__yt[hidden], .vbox video[hidden] { display: none; }
/* Mixed grid: tiles have fixed slot sizes (vertical = 1 slot, YouTube = 2 slots) and every row,
   including a part-filled last row or a filtered tab, sits centred. Sizes come from the wrapper width. */
.work-wrap { container-type: inline-size; }
.work-grid--mixed {
  --cols: 2; --gap: 1.1rem;
  --slot: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols) - 0.3px);
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap);
}
@container (min-width: 640px) { .work-grid--mixed { --cols: 3; } }
@container (min-width: 960px) { .work-grid--mixed { --cols: 5; } }
.work-grid--mixed .work { flex: 0 0 var(--slot); height: calc(var(--slot) * 1.25); aspect-ratio: auto; }
.work-grid--mixed .work--yt, .work-grid--mixed .work--wide { flex-basis: calc(var(--slot) * 2 + var(--gap)); }
.work-grid.is-empty { display: none; }

/* ---------- Photo galleries ---------- */
.work--photo { cursor: zoom-in; }
.work__count {
  position: absolute; top: .8rem; right: .8rem; z-index: 1;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #fff;
  background: rgba(0,0,0,.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.work__count svg { width: 15px; height: 15px; }
.work--photo .work__meta { z-index: 1; }
.gbox {
  position: fixed; inset: 0; z-index: 210;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; padding: var(--gutter);
  background: rgba(6,6,7,.95);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
  touch-action: pan-y;
}
.gbox.open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.gbox__inner { margin: 0; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.gbox__inner img { display: block; max-width: 100%; max-height: calc(100svh - 9rem); border-radius: var(--r-inner); object-fit: contain; transition: opacity .25s var(--ease); }
.gbox__inner img.is-loading { opacity: .35; }
.gbox .lightbox__cap { align-self: stretch; align-items: center; flex-wrap: wrap; }
.gbox .lightbox__cap strong { color: #F2F2F3; font-weight: 600; }
.gbox__right { display: inline-flex; align-items: center; gap: 1rem; }
.gbox__link { color: #fff; font-weight: 600; padding: .45rem .9rem; border-radius: 999px; background: var(--accent); }
.gbox__link:hover { background: var(--accent-hover); }
.gbox__link[hidden] { display: none; }
.gbox__nav { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.gbox__nav:hover { background: var(--accent); box-shadow: none; }
.gbox__nav svg { width: 22px; height: 22px; }
@media (max-width: 700px) {
  .gbox { grid-template-columns: 1fr; }
  .gbox__nav { position: absolute; bottom: 1.2rem; background: rgba(0,0,0,.5); }
  .gbox__nav--prev { left: calc(50% - 60px); } .gbox__nav--next { right: calc(50% - 60px); }
  .gbox__inner img { max-height: calc(100svh - 12rem); }
}

/* ---------- Worked-with logo wall ---------- */
.logo-wall { list-style: none; margin: 0 auto; padding: 0; max-width: calc(5 * 132px + 4 * 1.2rem); display: flex; flex-wrap: wrap; justify-content: center; gap: 2.2rem 1.2rem; }
.logo-item { width: 132px; display: flex; flex-direction: column; align-items: center; gap: .8rem; text-align: center; }
.logo-item img { height: 52px; width: auto; max-width: 118px; object-fit: contain; opacity: .82; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.logo-item span { font-size: .8rem; color: var(--mute); line-height: 1.3; transition: color .3s var(--ease); }
.logo-item:hover img { opacity: 1; transform: translateY(-2px); }
.logo-item:hover span { color: var(--dim); }
[data-theme="light"] .logo-item img { filter: invert(1); }
@media (max-width: 600px) { .logo-item { width: 96px; } .logo-item img { height: 40px; max-width: 88px; } .logo-wall { gap: 1.8rem .6rem; } }

/* ---------- Page-to-page feel ----------
   The new page's content fades up gently as it loads. The header and floating buttons sit outside
   <main>, so they stay put. No cross-page snapshot, so there's nothing white to flash between pages. */
main { animation: page-in .32s ease-out backwards; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { main { animation: none; } }

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed; z-index: 190; left: 50%; bottom: 1.2rem; width: min(560px, calc(100% - 2rem));
  transform: translate(-50%, 12px); opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease);
  display: flex; align-items: center; gap: 1rem 1.2rem; flex-wrap: wrap;
  padding: 1rem 1.1rem; border-radius: 18px; background: var(--surface-2); color: var(--text);
  box-shadow: 0 18px 50px rgba(0,0,0,.45), inset 0 0 0 1px var(--line);
}
.consent.is-open { opacity: 1; transform: translate(-50%, 0); }
.consent[hidden] { display: none; }
.consent p { flex: 1 1 260px; margin: 0; font-size: .9rem; line-height: 1.45; color: var(--dim); }
.consent__btns { display: flex; gap: .5rem; margin-left: auto; }
.consent .btn { padding: .6rem 1rem; font-size: .88rem; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.linkish:hover { color: var(--text); }
@media (max-width: 600px) { .consent { bottom: 4.6rem; } .consent__btns { width: 100%; } .consent .btn { flex: 1; } }

/* ---------- Plain text pages (privacy) ---------- */
.prose { max-width: 42rem; }
.prose h2 { font-size: 1.35rem; margin: 2.2rem 0 .7rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--dim); line-height: 1.7; margin: 0 0 1rem; }
.prose a:not(.btn) { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.consent p a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
