/* ============================================================
   Jennifer Bruno — HOLO variant
   Deep-purple + iridescent gradient, Fraunces display + Poppins.
   Adapted from the Figma "Portfolio" holographic layout.
   ============================================================ */

:root {
  --bg:        #1f083b;   /* deep purple — main sections */
  --bg-2:      #26003f;   /* hero overlay purple */
  --holo-lt:   #fdf8fe;   /* near-white holo */
  --white:     #ffffff;
  --muted:     #a898bc;   /* lilac-grey text */
  --accent:    #9e66d7;   /* violet accent */
  --pink:      #ed9ee5;   /* pink pill border */
  --line:      #796ae5;   /* violet hairline */
  --line-soft: rgba(121,106,229,0.28);
  --card:      rgba(255,255,255,0.10);
  --card-2:    rgba(255,255,255,0.06);
  --pill-bg:   rgba(237,158,229,0.10);

  --grad: linear-gradient(99deg, #6e5be6 6%, #9e5bd2 50%, #e86cb0 94%);

  --f-disp: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Poppins", system-ui, -apple-system, sans-serif;
  --wonk: "SOFT" 0, "WONK" 1;

  /* ---------- type scale ----------
     Every step is a multiple of 4px: 4px steps up to 32px, 8px steps above.
     Body is 16px; line-heights land on the 4/8px grid (16 x 1.5 = 24). */
  --fs-caption: 0.75rem;  /* 12px — tags, captions, footnotes, eyebrows */
  --fs-body:    1rem;     /* 16px — body copy, nav, buttons, bullets */
  --fs-lead:    1.25rem;  /* 20px — lead paragraphs, subtitles */
  --fs-h4:      1.5rem;   /* 24px — step titles, section kickers */
  --fs-h3:      2rem;     /* 32px — small display */
  --fs-h2:      2.5rem;   /* 40px — stat numbers, metrics */
  --fs-h1:      3rem;     /* 48px — step numbers */
  --fs-display: 4rem;     /* 64px — quote mark */

  --wrap: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg); color: var(--white);
  font-family: var(--f-body); font-size: var(--fs-body); line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 32px; }
.spark { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* holo gradient text helper */
.holo-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 32px; border-radius: 999px;
  border: 2px solid var(--pink); background: var(--pill-bg);
  font-size: var(--fs-body); letter-spacing: 0.12em; line-height: 1.5;
  color: var(--holo-lt); text-transform: uppercase; white-space: nowrap;
}
.pill--sm { padding: 8px 20px; font-size: var(--fs-caption); letter-spacing: 0.14em; text-transform: none; }
.pill--ghost { border-color: var(--muted); background: transparent; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--f-body);
  font-weight: 600; font-size: var(--fs-body); line-height: 1.5; letter-spacing: 0.01em;
  padding: 12px 24px; border-radius: 999px; border: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.btn--lg { padding: 16px 32px; }
.btn--holo { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -12px rgba(158,102,215,.7); }
.btn--holo:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -14px rgba(232,108,176,.8); }
.btn--out { background: rgba(255,255,255,0.02); color: var(--white); box-shadow: inset 0 0 0 2px var(--line); }
.btn--out:hover { color: var(--pink); box-shadow: inset 0 0 0 2px var(--pink); transform: translateY(-3px); }

/* email button with side copy icon */
.copy-btn { cursor: pointer; position: relative; }
.copy-btn__ico { display: block; flex: none; opacity: .85; transition: opacity .3s var(--ease); }
.copy-btn:hover .copy-btn__ico { opacity: 1; }
.copy-btn__ico--done { display: none; }
.copy-btn.is-copied .copy-btn__ico--copy { display: none; }
.copy-btn.is-copied .copy-btn__ico--done { display: block; opacity: 1; }
/* copied tooltip */
.copy-btn::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 4px);
  padding: 6px 10px; border-radius: 8px; font-size: .8rem; font-weight: 600; white-space: nowrap;
  background: var(--grad); color: #fff; box-shadow: 0 10px 24px -12px rgba(158,102,215,.8);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.copy-btn.is-copied::after { opacity: 1; transform: translate(-50%, 0); }

/* ---------- type helpers ---------- */
.h2 {
  font-family: var(--f-disp); font-variation-settings: var(--wonk);
  font-weight: 600; font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.05;
  letter-spacing: -0.01em; margin-top: 24px; max-width: 16ch;
}

/* ============================================================
   NAV
   ============================================================ */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background .4s var(--ease), border-color .4s; border-bottom: 1px solid transparent; }
.nav.is-stuck { background: rgba(31,8,59,.82); backdrop-filter: blur(14px); border-bottom-color: var(--line-soft); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { font-family: var(--f-disp); font-variation-settings: var(--wonk); font-weight: 600; font-size: var(--fs-h3); letter-spacing: .02em; }
.brand .spark { font-size: .6em; vertical-align: super; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { font-weight: 500; font-size: var(--fs-body); color: var(--muted); transition: color .25s; }
.nav__links a:hover { color: var(--white); }
.nav__end { display: flex; align-items: center; gap: 20px; }
.lang { background: none; border: none; cursor: pointer; color: var(--muted); font-family: var(--f-body); font-weight: 600; font-size: var(--fs-caption); display: inline-flex; gap: 4px; }
.lang__opt.is-on { color: var(--pink); }
.lang__sep { opacity: .4; }
/* hamburger (mobile only — shown in the max-width:600px block) */
.nav__toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 132px 0 72px; text-align: center; overflow: hidden; }
.hero__bg {
  position: absolute; inset: -10% -5% auto -5%; height: 130%; z-index: 0;
  background:
    radial-gradient(60% 55% at 18% 22%, rgba(232,108,176,.55), transparent 60%),
    radial-gradient(55% 50% at 82% 18%, rgba(110,91,230,.6), transparent 62%),
    radial-gradient(65% 60% at 70% 78%, rgba(158,91,210,.5), transparent 60%),
    radial-gradient(50% 45% at 30% 85%, rgba(120,200,235,.28), transparent 60%),
    linear-gradient(180deg, #2a0b4f 0%, #1f083b 100%);
  background-size: 175% 175%;
  filter: saturate(1.15);
  animation: holoDrift 13s ease-in-out infinite, holoHue 10s ease-in-out infinite alternate;
}
.hero__bg::after { content: ""; position: absolute; inset: 0; background: rgba(38,0,63,0.42); }
@keyframes holoDrift {
  0%, 100% { background-position: 20% 40%; }
  25%      { background-position: 65% 12%; }
  50%      { background-position: 85% 65%; }
  75%      { background-position: 42% 88%; }
}
@keyframes holoHue {
  from { filter: saturate(1.12) hue-rotate(0deg); }
  to   { filter: saturate(1.24) hue-rotate(-16deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none; }
}
.hero__inner { position: relative; z-index: 2; }
.hero__img {
  position: absolute; inset: 0; z-index: 0;
  background: url("https://vmmdhjotyilrqlkixdqc.supabase.co/storage/v1/object/public/LP%20Images/Portfolio/Background.png") center / cover no-repeat;
}
/* animated gradient sits above the image, semi-transparent so it shows through */
.hero .hero__bg { z-index: 1; opacity: .6; }
.hero__eyebrow { font-family: var(--f-body); font-weight: 400; letter-spacing: 0.34em; text-transform: uppercase; font-size: clamp(0.75rem, 1.2vw, 1rem); color: rgba(255,255,255,.82); }
/* subtitle mirrors the eyebrow: thin, wide-tracked, uppercase, translucent white */
.hero__role { margin: 12px auto 0; font-family: var(--f-body); font-weight: 400; letter-spacing: 0.34em; text-transform: uppercase; font-size: clamp(0.75rem, 1.2vw, 1rem); color: rgba(255,255,255,.82); }

.hero__name {
  position: relative; display: flex; flex-direction: column; align-items: center;
  font-family: var(--f-disp); font-variation-settings: var(--wonk);
  font-weight: 900; text-transform: uppercase; color: var(--white);
  line-height: 0.9; letter-spacing: -0.01em; margin: 12px 0 6px;
}
.hero__word { display: block; font-size: clamp(3rem, 13vw, 10.5rem); transition: font-variation-settings .45s var(--ease); }
.hero__name { cursor: pointer; }
.hero__photo {
  position: absolute; top: 50%; left: 50%; transform: translate(-40%, -50%);
  width: clamp(96px, 12vw, 172px); aspect-ratio: 171 / 223; border-radius: 999px;
  overflow: hidden; border: 3px solid var(--white);
  box-shadow: 0 4px 27px 9px rgba(22,0,59,.35); z-index: 2;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo.is-empty { background: var(--accent); }

.hero__lead { max-width: 42ch; margin: 18px auto 28px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.9); line-height: 1.45; }
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   TOOL BAR
   ============================================================ */
.tools {
  background: var(--bg); border-block: 1px solid var(--line); padding: 40px 0 44px; overflow: hidden; position: relative;
}
.tools__label {
  text-align: center; margin: 0 auto 28px; color: var(--muted);
  font-size: var(--fs-caption); letter-spacing: .2em; text-transform: uppercase;
}
.tools__marquee {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 15%, #000 85%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 15%, #000 85%, transparent 100%);
}
.tools__track { display: flex; align-items: center; gap: 60px; width: max-content; padding-left: 60px; will-change: transform; }
.tools__w {
  position: relative;
  font-family: var(--f-disp); font-variation-settings: var(--wonk); font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 3rem); letter-spacing: -0.01em; white-space: nowrap;
  color: var(--accent); opacity: .6; cursor: pointer; user-select: none;
}
/* gradient layer crossfaded in near the centre for a smooth transition */
.tools__hi-ov {
  position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tools__w.is-hi { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-reduced-motion: reduce) { .tools__track { flex-wrap: wrap; justify-content: center; width: auto; padding-left: 0; } }

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--bg); border-bottom: 1px solid var(--line); padding-block: 76px; }
.stats__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 40px; }
.stat__n { font-family: var(--f-disp); font-variation-settings: var(--wonk); font-weight: 600; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1; color: var(--white); letter-spacing: -0.02em; }
.stat__n i { font-style: normal; font-size: 0.4em; }
.stat__n--holo { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__l { margin-top: 12px; color: var(--white); font-size: var(--fs-body); line-height: 1.5; opacity: .85; }

/* ============================================================
   SECTION rhythm
   ============================================================ */
.section { padding-block: clamp(72px, 10vw, 140px); }
.head { margin-bottom: clamp(40px, 5vw, 64px); }
.head .pill { margin-bottom: 8px; }

/* ============================================================
   WORK
   ============================================================ */
/* Forced 2-line break is desktop-only. Below that the <br> is switched off and the title
   keeps the exact same type as every other .h2, wrapping freely. The space before the <br>
   in the copy is what keeps the sentence readable once the break is disabled. */
.h2 .brk { display: none; }
@media (min-width: 1000px) {
  .h2 .brk { display: inline; }
  .work .h2 { max-width: 26ch; }
}

.cards { columns: 2; column-gap: 40px; }
.cards .card:nth-child(3) { margin-top: 96px; }   /* offset 2nd column → staggered, non-uniform masonry */
.card {
  display: block; break-inside: avoid; margin-bottom: 40px;
  background: var(--card); border-radius: 32px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.card:hover { transform: translateY(-6px); border-color: var(--pink); box-shadow: 0 24px 60px -30px rgba(232,108,176,.6); }
.card__thumb { height: 240px; background: var(--grad); position: relative; background-size: cover; background-position: center top; overflow: hidden; }
.card__thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 20% 0%, rgba(255,255,255,.28), transparent 55%); }
/* case-card previews show the FULL fig.01 composite — thumb hugs the image's aspect, no crop */
.card__thumb.has-img { height: auto; aspect-ratio: 1680 / 1000; background-size: 100% auto; background-position: center; }
.card__thumb.has-img::after { display: none; }
.card:hover .card__thumb.has-img { background-size: 106% auto; transition: background-size .6s var(--ease); }
.thumb--a { height: 200px; background: linear-gradient(120deg, #6e5be6, #e86cb0); }
.thumb--b { height: 300px; background: linear-gradient(140deg, #9e5bd2, #6e5be6); }
.thumb--c { height: 250px; background: linear-gradient(130deg, #e86cb0, #9e5bd2); }
.thumb--d { height: 340px; background: linear-gradient(150deg, #6e5be6, #78c8eb); }
.card__text { padding: 44px; }
.card__tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.card__title { font-family: var(--f-body); font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.25; color: var(--white); }
.card__role { color: var(--muted); font-size: var(--fs-body); line-height: 1.5; margin-top: 16px; }
.card__go { display: inline-block; margin-top: 28px; font-weight: 700; font-size: var(--fs-caption); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); transition: letter-spacing .3s var(--ease), color .3s; }
.card:hover .card__go { color: var(--pink); letter-spacing: 0.22em; }

/* ============================================================
   ABOUT + SKILLS
   ============================================================ */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about__p { color: rgba(255,255,255,.78); margin-top: 20px; max-width: 50ch; font-size: var(--fs-body); line-height: 1.75; }
.skills { display: flex; flex-direction: column; gap: 16px; }
.skill { background: var(--card-2); border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; padding: 20px 24px; }
.skill__top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.skill__top span { font-family: var(--f-disp); font-variation-settings: var(--wonk); font-size: var(--fs-h4); color: var(--pink); }
.skill__bar { display: block; height: 8px; border-radius: 100px; background: rgba(255,255,255,0.10); margin-top: 12px; position: relative; overflow: hidden; }
.skill__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--grad); border-radius: 100px; transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); }
.skill.in .skill__bar::after { transform: scaleX(1); }

/* ============================================================
   PROCESS
   ============================================================ */
.proc__lead { color: rgba(255,255,255,.72); max-width: 58ch; margin-top: 20px; font-size: var(--fs-lead); line-height: 1.6; }

/* simplified accordion + swapping artifact image (left list / right media) */
.proc__grid {
  margin-top: 52px;
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 76px); align-items: start;
}

/* --- left: numbered accordion --- */
.proc__acc { border-top: 1px solid rgba(255,255,255,.12); }
.pstep { --tint: var(--accent); border-bottom: 1px solid rgba(255,255,255,.12); transition: border-color .35s var(--ease); }
.pstep--1 { --tint: #9a8cff; } .pstep--2 { --tint: #f0a6d6; }
.pstep--3 { --tint: #7fb0ff; } .pstep--4 { --tint: #74d6b8; }
.pstep.is-open { border-bottom-color: color-mix(in srgb, var(--tint) 70%, transparent); }

.pstep__head {
  width: 100%; display: flex; align-items: center; gap: 20px;
  padding: 26px 6px; margin: 0; background: none; border: 0; cursor: pointer;
  text-align: left; color: var(--white); font: inherit;
}
.pstep__head:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 14px; }
.pstep__n {
  font-family: var(--f-disp); font-variation-settings: var(--wonk); font-weight: 700;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1; color: var(--muted);
  min-width: 1.6em; transition: color .3s var(--ease); font-feature-settings: "tnum";
}
.pstep__t {
  flex: 1; margin: 0; font-family: var(--f-disp); font-variation-settings: var(--wonk);
  font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.05;
  color: rgba(255,255,255,.82); transition: color .3s var(--ease);
}
.pstep__chev { display: grid; place-items: center; color: var(--muted); flex: 0 0 auto; transition: transform .35s var(--ease), color .3s var(--ease); }
.pstep__chev svg { width: 22px; height: 22px; }
.pstep.is-open .pstep__n,
.pstep.is-open .pstep__t { color: var(--tint); }
.pstep.is-open .pstep__chev { transform: rotate(180deg); color: var(--tint); }
.pstep:not(.is-open) .pstep__head:hover .pstep__t { color: #fff; }
.pstep:not(.is-open) .pstep__head:hover .pstep__chev { color: #fff; }

/* animated collapse via grid-rows (0fr → 1fr) */
.pstep__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.pstep.is-open .pstep__panel { grid-template-rows: 1fr; }
.pstep__inner { overflow: hidden; min-height: 0; opacity: 0; transform: translateY(-6px); transition: opacity .35s var(--ease) .05s, transform .35s var(--ease) .05s; }
.pstep.is-open .pstep__inner { opacity: 1; transform: none; }

.pstep__list { list-style: none; margin: 0; padding: 2px 0 20px 2px; display: flex; flex-direction: column; gap: 13px; }
.pstep__list li {
  position: relative; padding-left: 35px;
  color: rgba(255,255,255,.74); font-size: var(--fs-body); line-height: 1.5;
}
.pstep__list li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; background: var(--tint);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12 2.4 2.4 4.6-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='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12 2.4 2.4 4.6-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.pstep__list strong { color: var(--white); font-weight: 600; }
.pstep__tags { margin: 0 0 26px; }
.pstep__tags .pill--sm {
  border-color: color-mix(in srgb, var(--tint) 50%, transparent);
  background: color-mix(in srgb, var(--tint) 12%, transparent);
  color: var(--tint);
}

/* --- right: artifact image that swaps with the open step --- */
.proc__media { position: sticky; top: 104px; }
.proc__stage {
  position: relative; aspect-ratio: 1120 / 1400; border-radius: 26px;
  transform: rotate(-3deg); box-shadow: 0 60px 100px -46px rgba(0,0,0,.75);
  outline: 1px solid rgba(255,255,255,.08);
}
.proc__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: 26px; opacity: 0; transition: opacity .5s var(--ease);
}
.proc__img.is-on { opacity: 1; }
.proc__stage { cursor: zoom-in; }
.proc__stage:focus-visible { outline: 2px solid var(--pink); outline-offset: 6px; }
.proc__zoom {
  position: absolute; right: 16px; bottom: 16px; z-index: 6; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; pointer-events: none;
  background: rgba(20,6,40,.55); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.7); transition: transform .3s var(--ease), background .3s var(--ease);
}
.proc__stage:hover .proc__zoom { transform: scale(1.08); background: rgba(20,6,40,.75); }
.proc__zoom svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) {
  .pstep__panel, .pstep__inner, .proc__img, .pstep__chev, .proc__zoom { transition: none; }
}

/* zoomable image lightbox (shared) */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; opacity: 0; visibility: hidden;
  background: rgba(12, 3, 26, .9); backdrop-filter: blur(12px);
  transition: opacity .25s var(--ease), visibility .25s var(--ease); overscroll-behavior: contain;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { position: absolute; user-select: none; -webkit-user-drag: none;
  max-width: none; max-height: none;   /* override global img{max-width:100%} so zoom can exceed viewport */
  border-radius: 12px; box-shadow: 0 50px 120px -30px rgba(0,0,0,.85); cursor: zoom-in; will-change: left, top, width; }
.lightbox__close {
  position: fixed; top: 20px; right: 24px; z-index: 1002; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.08); color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer; display: grid; place-items: center; transition: background .25s, border-color .25s;
}
.lightbox__close:hover { background: rgba(255,255,255,.18); border-color: var(--pink); }
.lightbox__hint { position: fixed; left: 0; right: 0; bottom: 22px; z-index: 1001; text-align: center;
  color: rgba(255,255,255,.72); font-size: var(--fs-caption); letter-spacing: .02em; pointer-events: none; }

/* ============================================================
   LOGOS
   ============================================================ */
.logos__label { text-transform: uppercase; letter-spacing: 0.18em; font-size: var(--fs-caption); color: var(--muted); text-align: center; margin-bottom: 32px; }
.logos__row { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 48px; }
.logos__row li { font-family: var(--f-disp); font-variation-settings: var(--wonk); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--white); opacity: .4; transition: opacity .3s, color .3s; }
.logos__row li:hover { opacity: 1; color: var(--pink); }

/* ---- client work gallery ---- */
.gallery { margin-top: 0; }   /* section padding already provides the standard inter-section gap */
.gallery__head { margin-bottom: 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.gallery__head .logos__label { margin-bottom: 0; text-align: left; }
.gallery__nav { display: flex; gap: 12px; flex-shrink: 0; }
/* full-bleed auto-scrolling carousel */
.gwall {
  position: relative; width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.gtrack { display: flex; gap: 22px; width: max-content; padding: 6px 11px; will-change: transform; }
/* auto-scroll + smooth slow-on-hover are driven by JS (rAF) to avoid position jumps */

.gcard {
  flex: 0 0 clamp(300px, 30vw, 480px); margin: 0; position: relative; aspect-ratio: 16 / 9;
  border-radius: 18px; overflow: hidden; background: var(--bg-2);
}
.gcard__view { position: absolute; inset: 0; }
/* dimmed at rest (keeps the page from getting too bright); on hover it lifts + scrolls through the page */
.gcard__view img { width: 100%; height: 100%; object-fit: cover; object-position: center 0%; display: block; filter: brightness(.78) saturate(.95); transition: filter .5s var(--ease); }
.gcard:hover .gcard__view img { filter: none; animation: gpan 6s ease-in-out infinite; }  /* cycle 4 page/scroll views */
@keyframes gpan {
  0%, 16%   { object-position: center 0%; }
  25%, 41%  { object-position: center 33%; }
  50%, 66%  { object-position: center 66%; }
  75%, 91%  { object-position: center 100%; }
  100%      { object-position: center 0%; }
}
.gcard::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,6,40,0) 44%, rgba(20,6,40,.55) 72%, rgba(20,6,40,.92)); }
.gcard__meta { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; }
.gcard__brand { font-family: var(--f-disp); font-variation-settings: var(--wonk); font-weight: 600; font-size: var(--fs-h4); color: #fff; line-height: 1.1; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
@media (prefers-reduced-motion: reduce) {
  .gwall { overflow-x: auto; scroll-snap-type: x mandatory; }
  .gcard { scroll-snap-align: center; }
  .gcard:hover .gcard__view img { animation: none; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.testi__ctrl { display: flex; gap: 12px; flex: 0 0 auto; }
.tnav { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--card-2); color: var(--white); font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; transition: border-color .25s var(--ease), background .25s var(--ease), opacity .25s; }
.tnav:hover:not(:disabled) { border-color: var(--pink); background: var(--pill-bg); }
.tnav:disabled { opacity: .35; cursor: default; }

/* full-width auto-scrolling carousel, mirroring the brands wall */
.testi__wall {
  position: relative; overflow: hidden; padding: 6px 0 14px;
  width: 100vw; margin-left: calc(50% - 50vw);   /* full-bleed, like the tools + client-work carousels */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  scrollbar-width: none; -ms-overflow-style: none;
}
.testi__wall::-webkit-scrollbar { display: none; }
.testi__track { display: flex; align-items: stretch; gap: 28px; width: max-content; will-change: transform; }
/* auto-scroll + smooth slow-on-hover are driven by JS (rAF) to avoid position jumps */

.tcard { flex: 0 0 clamp(300px, 32vw, 400px); background: var(--card); border: 1px solid rgba(255,255,255,0.08); border-radius: 28px; padding: 36px 36px 30px; display: flex; flex-direction: column; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.tcard:hover { border-color: var(--pink); transform: translateY(-5px); }
.tcard__q { font-family: var(--f-disp); font-variation-settings: var(--wonk); font-size: var(--fs-display); line-height: 0.5; display: block; height: 30px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tcard__quote { color: rgba(255,255,255,.9); font-size: var(--fs-body); line-height: 1.7; margin-top: 16px; }
.tcard__by { margin-top: auto; padding-top: 24px; display: flex; align-items: center; gap: 16px; }
.tcard__ph {
  width: 56px; height: 56px; border-radius: 50%; flex: 0 0 auto;
  background-size: cover; background-position: center; background-color: var(--card-2);
  border: 2px solid var(--pink);
  user-select: none; -webkit-user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.tcard__id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tcard__id b { font-weight: 700; font-size: var(--fs-body); }
.tcard__id span { color: var(--muted); font-size: var(--fs-caption); line-height: 1.4; }

@media (max-width: 600px) { .tcard { flex: 0 0 clamp(260px, 80vw, 360px); } .testi__head { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) {
  .testi__wall { overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; }
  .tcard { scroll-snap-align: start; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { text-align: center; position: relative; overflow: hidden; }
.contact .hero__bg { inset: 0; height: 100%; }
.contact__inner { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; }
.contact__big {
  font-family: var(--f-disp); font-variation-settings: var(--wonk); font-weight: 900;
  text-transform: uppercase; line-height: 0.86; letter-spacing: -0.01em; margin: 24px 0;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact__big span { display: block; font-size: clamp(3.5rem, 16vw, 12rem); }
.contact__big .spark { display: inline-block; font-size: clamp(1rem, 3vw, 2rem); vertical-align: super; }
.contact__sub { color: rgba(255,255,255,.82); font-size: var(--fs-lead); line-height: 1.6; margin-bottom: 32px; max-width: 40ch; }
.contact__res { margin-top: 32px; color: var(--muted); font-size: var(--fs-caption); line-height: 1.5; }
.contact__res a { color: var(--pink); }
.contact__socials { display: flex; gap: 14px; justify-content: center; margin-top: 28px; }
.social-link {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  color: var(--white); background: rgba(255,255,255,0.02);
  box-shadow: inset 0 0 0 2px var(--line);
  transition: color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.social-link:hover { color: var(--pink); box-shadow: inset 0 0 0 2px var(--pink); transform: translateY(-3px); }
.social-link svg { width: 22px; height: 22px; fill: currentColor; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line-soft); padding-block: 32px; }
.footer__inner { display: flex; justify-content: space-between; color: var(--muted); font-size: var(--fs-caption); line-height: 1.5; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .stats__grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .proc__grid { grid-template-columns: 1fr; gap: 36px; }
  .proc__media { position: static; order: -1; width: min(360px, 74%); margin: 0 auto; }
  .proc__stage { transform: rotate(-2deg); }
}
@media (max-width: 860px) {
  .cards { columns: 1; }
  .about__grid, .testi__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  /* ---- mobile nav: hamburger + slide-down panel ---- */
  .nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; flex: 0 0 auto;
  }
  .nav__toggle span { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--white); transition: transform .3s var(--ease), opacity .2s var(--ease); }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__cta { display: none; }

  .nav__links {
    display: flex; flex-direction: column; gap: 2px;
    position: fixed; inset: 80px 0 auto 0;
    background: rgba(31,8,59,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
    padding: 12px 20px 22px;
    opacity: 0; visibility: hidden; transform: translateY(-12px); pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s var(--ease);
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .nav__links a { padding: 14px 6px; font-size: 1.125rem; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav__links a:last-child { border-bottom: 0; }

  .wrap { padding-inline: 20px; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__inner { flex-direction: column; gap: 8px; text-align: center; }
  .hero { padding-top: 130px; }
  .hero__photo { transform: translate(-50%, -50%); }
  .card__text { padding: 32px; }
}
