/* ==========================================================================
   Nour Tarek — Creative Portfolio
   ========================================================================== */
@font-face { font-family: "Bricolage Grotesque"; src: url("bricolage-grotesque-var.woff2") format("woff2-variations"), url("bricolage-grotesque-var.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("jetbrains-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --blue: #2a3bff;
  --blue-deep: #1525c9;
  --pink: #ff3ea5;
  --magenta: #e0157f;
  --violet: #8b3dff;
  --purple: #34137a;
  --ink: #0b0b10;
  --ink-2: #16161f;
  --paper: #ffffff;
  --grey: #f2f1f5;
  --grey-2: #e4e2ea;
  --muted: #5d5b6b;
  --grad: linear-gradient(115deg, var(--blue) 0%, var(--violet) 48%, var(--pink) 100%);
  --grad-hot: linear-gradient(135deg, var(--violet) 0%, var(--magenta) 60%, var(--pink) 100%);

  --f-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --f-body: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --maxw: 1440px;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: clamp(1rem, .95rem + .2vw, 1.075rem); line-height: 1.6;
  font-variation-settings: "opsz" 14; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--f-display); line-height: 1.05; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dd, figure { margin: 0; }
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.mono-label {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 600; margin: 0;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.brand {
  display: inline-flex; font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; text-decoration: none;
  width: 46px; height: 46px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.9); letter-spacing: -.04em;
  opacity: 0; transform: scale(.6); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.brand span:last-child { color: var(--pink); }
.is-scrolled .brand { opacity: 1; transform: none; }
.site-nav ul { display: flex; gap: .25rem; padding: .35rem; border-radius: 999px; transition: background .35s, box-shadow .35s, backdrop-filter .35s; }
.is-scrolled .site-nav ul { background: rgba(255,255,255,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 6px 30px rgba(11,11,16,.12); }
.site-nav a {
  position: relative; display: inline-flex; align-items: baseline; gap: .35rem; padding: .55rem .95rem; border-radius: 999px;
  font-family: var(--f-mono); font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; transition: background .25s, color .25s;
}
.nav-n { color: var(--pink); font-size: .62rem; }
.site-nav a:hover { background: var(--grey); }
.site-nav a.is-active { background: var(--ink); color: #fff; }
.site-nav a.is-active .nav-n { color: var(--pink); }
.menu-btn { display: none; }

@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%;
    border: 0; background: var(--ink); cursor: pointer; z-index: 2;
  }
  .menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: transform .3s var(--ease), background .3s; }
  .menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
  .menu-lines::before { top: -6px; } .menu-lines::after { top: 6px; }
  .nav-open .menu-lines { background: transparent; }
  .nav-open .menu-lines::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 0; background: var(--ink); display: flex; align-items: center; padding: var(--gutter);
    clip-path: circle(0 at calc(100% - 45px) 36px); transition: clip-path .6s var(--ease); visibility: hidden;
  }
  .nav-open .site-nav { clip-path: circle(150% at calc(100% - 45px) 36px); visibility: visible; }
  .site-nav ul, .is-scrolled .site-nav ul { flex-direction: column; background: none; box-shadow: none; backdrop-filter: none; gap: .4rem; width: 100%; }
  .site-nav a { color: #fff; font-family: var(--f-display); font-size: clamp(2.4rem, 12vw, 4rem); font-weight: 800; letter-spacing: -.03em; text-transform: uppercase; padding: .2rem 0; }
  .site-nav a:hover, .site-nav a.is-active { background: none; color: var(--pink); }
  .nav-n { font-family: var(--f-mono); font-size: .8rem; }
  .brand { opacity: 1; transform: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: grid; place-items: center; padding: calc(var(--header-h) + 2rem) var(--gutter) 5rem; background: var(--paper);
}
.bgname { position: absolute; inset: -4% -10%; display: flex; flex-direction: column; justify-content: space-between; z-index: -1; user-select: none; }
.bgname-row { overflow: hidden; white-space: nowrap; }
.bgname-track {
  display: inline-block; font-family: var(--f-display); font-weight: 800; font-size: clamp(4rem, 13vw, 12rem); line-height: .9;
  letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.2px rgba(11,11,16,.075);
  animation: drift 90s linear infinite; animation-direction: normal;
}
.bgname-row:nth-child(even) .bgname-track { animation-direction: reverse; animation-duration: 110s; }
.bgname-track .a-pink { color: rgba(255,62,165,.1); -webkit-text-stroke-color: transparent; }
.bgname-track .a-blue { color: rgba(42,59,255,.08); -webkit-text-stroke-color: transparent; }
.bgname-track .dot { font-size: .4em; vertical-align: middle; margin: 0 .35em; -webkit-text-stroke: 0; color: rgba(139,61,255,.18); }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero-shape { position: absolute; z-index: -1; pointer-events: none; }
.hero-shape--circle { width: clamp(140px, 20vw, 300px); aspect-ratio: 1; border-radius: 50%; background: var(--grad-hot); right: 9%; top: 18%; filter: saturate(1.1); animation: float 9s ease-in-out infinite; opacity: .92; }
.hero-shape--square { width: clamp(70px, 9vw, 140px); aspect-ratio: 1; background: var(--blue); left: 7%; bottom: 17%; transform: rotate(12deg); animation: float 11s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -18px; } }

.hero-title { font-weight: 800; text-transform: uppercase; letter-spacing: -.045em; line-height: .8; text-align: center; font-variation-settings: "opsz" 96, "wdth" 78; }
.hero-line { display: block; font-size: clamp(3.4rem, 20.5vw, 23rem); white-space: nowrap; }
.hero-line--2 { margin-top: .04em; }
.ltr { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; }
.ltr-in { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms + 150ms); }
.hero-line--2 .ltr-in { animation-delay: calc(var(--i) * 55ms + 450ms); }
.ltr-in.a-pink { color: var(--pink); } .ltr-in.a-blue { color: var(--blue); } .ltr-in.a-violet { color: var(--violet); }
.hero-title:hover .ltr-in { transition: transform .35s var(--ease); }
.ltr:hover .ltr-in { transform: translateY(-6%) !important; }
@keyframes rise { to { transform: none; } }

.hero-corner { position: absolute; z-index: 2; }
.hero-tl { top: calc(var(--header-h) - 48px); left: var(--gutter); max-width: 330px; animation: fadeIn 1s .9s both; }
.hero-tl .mono-label { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.hero-intro { font-size: .98rem; line-height: 1.45; color: var(--muted); }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(255,62,165,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,62,165,0); } 100% { box-shadow: 0 0 0 0 rgba(255,62,165,0); } }
.hero-bl { left: var(--gutter); bottom: 2rem; animation: fadeIn 1s 1s both; }
.hero-br { right: var(--gutter); bottom: 2rem; animation: fadeIn 1s 1.1s both; text-align: right; }
.hero-scroll { position: absolute; left: 50%; bottom: 1.9rem; transform: translateX(-50%); text-decoration: none; color: var(--muted); animation: fadeIn 1s 1.3s both; }
.hero-scroll span { display: inline-block; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .hero { place-items: center; padding-top: 11rem; padding-bottom: 7rem; }
  .hero-tl { top: calc(var(--header-h) + .6rem); right: var(--gutter); max-width: none; }
  .hero-line { font-size: 24.5vw; }
  .hero-bl { bottom: 5.6rem; }
  .hero-br { bottom: 4.2rem; }
  .hero-scroll { bottom: 1.4rem; }
  .hero-shape--circle { top: auto; bottom: 26%; right: -8%; }
  .hero-shape--square { bottom: auto; top: 44%; left: -4%; }
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
.section-tag { display: inline-flex; gap: .6rem; align-items: center; font-family: var(--f-mono); font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.4rem; }
.section-tag span { color: var(--pink); }

/* ==========================================================================
   About
   ========================================================================== */
.about { background: var(--ink); color: #f4f3f8; padding: clamp(5rem, 11vw, 9rem) 0 clamp(5rem, 10vw, 8rem); position: relative; overflow: hidden; }
.about::after { content: ""; position: absolute; width: 60vw; height: 60vw; right: -25vw; top: -20vw; background: radial-gradient(closest-side, rgba(139,61,255,.32), transparent); pointer-events: none; }
.about-title { font-size: clamp(2.6rem, 9.2vw, 9.4rem); font-weight: 800; letter-spacing: -.02em; line-height: .86; text-transform: uppercase; font-variation-settings: "opsz" 96, "wdth" 84; margin-bottom: clamp(3rem, 7vw, 6rem); }
.about-title em { font-family: var(--f-serif); font-weight: 400; font-style: italic; text-transform: none; color: var(--pink); letter-spacing: 0; }
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; position: relative; z-index: 1; }
.about-photos { position: relative; padding: 0 12% 30% 0; }
.about-main { position: relative; z-index: 1; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.about-main img { width: 100%; transition: transform 1.2s var(--ease); }
.about-main:hover img { transform: scale(1.03); }
.about-casual {
  position: absolute; z-index: 2; right: 0; bottom: 0; width: 40%; border: 7px solid #fff; border-radius: 4px; overflow: hidden;
  transform: rotate(3deg); box-shadow: 0 24px 50px rgba(0,0,0,.5); transition: transform .6s var(--ease);
}
.about-casual:hover { transform: rotate(0) translateY(-6px); }
.about-block { position: absolute; z-index: 0; }
.about-block--pink { width: 46%; aspect-ratio: 1; left: -5%; top: -9%; background: var(--grad-hot); border-radius: 4px; }
.about-block--blue { width: 22%; aspect-ratio: 1; left: 22%; bottom: 8%; border-radius: 50%; background: var(--blue); }
.about-caption { position: absolute; left: 0; bottom: 0; color: rgba(255,255,255,.5); }
.bio p { color: #d9d7e3; font-size: clamp(1.02rem, .98rem + .25vw, 1.16rem); line-height: 1.7; }
.bio p:first-child { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.55rem); line-height: 1.45; color: #fff; font-weight: 500; letter-spacing: -.01em; }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.2rem; }

.btn { display: inline-flex; align-items: center; gap: .85rem; border: 0; cursor: pointer; text-decoration: none; font-weight: 700; font-size: 1.02rem; border-radius: 999px; }
.btn-cv { padding: .55rem 1.6rem .55rem .55rem; background: #fff; color: var(--ink); position: relative; overflow: hidden; isolation: isolate; transition: color .35s var(--ease), transform .35s var(--ease); }
.btn-cv::before { content: ""; position: absolute; inset: 0; background: var(--grad); z-index: -1; transform: translateX(-101%); transition: transform .5s var(--ease); }
.btn-cv:hover { color: #fff; transform: translateY(-2px); }
.btn-cv:hover::before { transform: none; }
.btn-cv-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: #fff; transition: background .35s, transform .35s var(--ease); }
.btn-cv:hover .btn-cv-icon { background: var(--ink); transform: translateY(2px); }
.btn-cv .ic { width: 20px; height: 20px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--f-mono); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding-bottom: 3px; border-bottom: 1.5px solid currentColor; transition: color .25s, gap .25s; }
.link-arrow .ic { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--pink); gap: .65rem; }
.link-arrow:hover .ic { transform: rotate(45deg); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photos { padding-right: 8%; }
}

/* ==========================================================================
   Projects
   ========================================================================== */
.projects { background: var(--grey); padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 7rem); }
.projects-title { font-size: clamp(3.4rem, 14vw, 14rem); font-weight: 800; letter-spacing: -.025em; line-height: .82; text-transform: uppercase; font-variation-settings: "opsz" 96, "wdth" 76; margin-bottom: clamp(2rem, 4vw, 3rem); }
.outline { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.projects-title .outline { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0; }

.tabs-bar { position: sticky; top: 0; z-index: 30; padding: .8rem 0; background: rgba(242,241,245,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--grey-2); }
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; padding-right: 0; }
.tab {
  display: inline-flex; align-items: center; gap: .5rem; border: 1.5px solid var(--ink); background: transparent; cursor: pointer;
  padding: .55rem 1rem; border-radius: 999px; font-family: var(--f-mono); font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  white-space: nowrap; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.tab-num { color: var(--muted); transition: color .25s; }
.tab:hover { transform: translateY(-2px); border-color: var(--blue); color: var(--blue); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab[aria-selected="true"] .tab-num { color: var(--pink); }
@media (min-width: 1101px) { .site-header { transition: transform .4s var(--ease); } }
@media (max-width: 1100px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { scroll-snap-align: start; }
}
/* keep fixed header out of the way of the sticky tab bar */
.tabs-pinned .site-header { transform: translateY(-110%); }

.panels { padding-top: clamp(2.5rem, 5vw, 4rem); }
.panel:focus { outline: none; }
.panel.is-entering { animation: panelIn .55s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.panel-head { display: grid; grid-template-columns: auto 1fr; gap: .3rem 2rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); padding-bottom: 1.6rem; border-bottom: 2px solid var(--ink); }
.panel-index { grid-row: span 2; font-family: var(--f-display); font-weight: 800; font-size: clamp(3.5rem, 8vw, 7rem); line-height: .8; letter-spacing: -.05em; margin: 0; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.panel-index span { font-size: .3em; -webkit-text-stroke: 0; color: var(--pink); letter-spacing: 0; }
.panel-title { font-size: clamp(1.9rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; text-transform: uppercase; font-variation-settings: "opsz" 96, "wdth" 85; }
.panel-lede { margin: 0; color: var(--muted); max-width: 60ch; }
@media (max-width: 600px) { .panel-head { grid-template-columns: 1fr; } .panel-index { grid-row: auto; } }

.sub-head { display: flex; align-items: baseline; gap: 1rem; font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; margin: clamp(3rem, 6vw, 5rem) 0 1.6rem; }
.sub-head .mono-label { color: var(--pink); }
.mini-head { font-family: var(--f-mono); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin: 1.8rem 0 .8rem; color: var(--muted); }

/* ---------- icon buttons ---------- */
.ic { width: 20px; height: 20px; flex: none; }
.btn-icon {
  display: inline-flex; align-items: center; gap: .55rem; padding: .62rem 1.1rem .62rem .8rem; border-radius: 999px; text-decoration: none;
  font-family: var(--f-mono); font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: var(--ink); color: #fff; transition: transform .3s var(--ease), box-shadow .3s, background .3s;
}
.btn-icon:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(11,11,16,.18); }
.btn-icon--ig:hover { background: linear-gradient(45deg, #f9ce34, #ee2a7b 45%, #6228d7); }
.btn-icon--yt:hover { background: #ff0033; }
.btn-icon--article:hover { background: var(--blue); }
.btn-icon--docs:hover { background: #1a73e8; }
.btn-icon--sm { padding: .42rem .8rem .42rem .55rem; font-size: .66rem; }
.btn-icon--sm .ic { width: 16px; height: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { padding: .45rem .95rem; border-radius: 999px; border: 1.5px solid currentColor; font-size: .9rem; font-weight: 600; }
.chips--sm li { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; padding: .38rem .75rem; border-color: var(--grey-2); background: #fff; }

/* ---------- Reels ---------- */
.reel-summary { background: var(--grad); color: #fff; border-radius: var(--radius); padding: 1.4rem clamp(1.2rem, 3vw, 2.2rem); display: flex; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; flex-wrap: wrap; margin-bottom: clamp(3rem, 6vw, 5rem); box-shadow: 0 20px 50px rgba(90,40,255,.25); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: 1.4rem 0 1.6rem; }
.stats div { background: var(--grey); border-radius: 12px; padding: .7rem .8rem; }
.stats dt { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stats dd { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 1.75rem); letter-spacing: -.03em; line-height: 1.1; }
.stats--summary { margin: 0; flex: 1 1 520px; max-width: 720px; }
.stats--summary div { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); }
.stats--summary dt { color: rgba(255,255,255,.85); }
.stats--summary dd { font-size: clamp(1.5rem, 3vw, 2.2rem); }

.reels { display: flex; flex-direction: column; gap: clamp(3rem, 7vw, 6rem); }
.reel { --acc: var(--pink); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; position: relative; }
.reel--blue { --acc: var(--blue); } .reel--violet { --acc: var(--violet); } .reel--magenta { --acc: var(--magenta); }
.reel--flip .reel-info { order: 2; }
.reel-num { font-family: var(--f-display); font-weight: 800; font-size: clamp(5rem, 12vw, 10rem); line-height: .75; letter-spacing: -.06em; color: var(--acc); margin: 0 0 1rem; }
.reel-info .mono-label { color: var(--muted); margin-bottom: .5rem; }
.reel-title { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 1rem; }
.reel-desc { color: #33313f; max-width: 52ch; }
.reel .stats dd { color: var(--ink); }
.reel .stats div:first-child { background: var(--acc); }
.reel .stats div:first-child dt, .reel .stats div:first-child dd { color: #fff; }
.reel-media { display: flex; justify-content: center; position: relative; }
.reel-media::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--acc); opacity: .16; filter: blur(50px); top: 15%; z-index: 0; }
.phone { position: relative; z-index: 1; width: min(380px, 100%); aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: var(--ink); box-shadow: 0 30px 70px rgba(11,11,16,.28), 0 0 0 6px #fff; transition: transform .5s var(--ease); }
.phone:hover { transform: translateY(-6px) rotate(-.6deg); }
.phone video { width: 100%; height: 100%; object-fit: contain; background: var(--ink); }
.phone.is-embed { aspect-ratio: auto; height: 680px; background: #fff; }
.phone iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 860px) {
  .reel { grid-template-columns: 1fr; }
  .reel--flip .reel-info { order: 0; }
  .phone { width: min(360px, 100%); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) { .stats--summary { grid-template-columns: repeat(2, minmax(0, 1fr)); flex-basis: 100%; } }

/* ---------- Press ---------- */
.pr-features { display: flex; flex-direction: column; gap: 1.5rem; }
.pr-feature { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 16px 40px rgba(11,11,16,.07); position: relative; }
.pr-feature::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--grad); z-index: 2; }
.pr-feature--flip { grid-template-columns: 1fr 1.15fr; }
.pr-feature--flip .pr-feature-img { order: 2; }
.pr-feature--flip::before { left: auto; right: 0; }
.pr-feature-img { overflow: hidden; min-height: 320px; background: var(--grey-2); }
.pr-feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pr-feature:hover .pr-feature-img img { transform: scale(1.04); }
.pr-feature-img--contain { background: radial-gradient(circle at 50% 70%, #fff 0 45%, var(--grey) 75%); display: flex; align-items: flex-end; justify-content: center; }
.pr-feature-img--contain img { object-fit: contain; height: auto; max-height: 440px; width: auto; mix-blend-mode: multiply; }
.pr-feature-body { padding: clamp(1.5rem, 3.5vw, 3rem); display: flex; flex-direction: column; align-items: flex-start; }
.pr-badge { font-family: var(--f-mono); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.pr-badge span { background: var(--pink); color: #fff; padding: .3rem .6rem; border-radius: 999px; margin-right: .5rem; }
.pr-cat { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); font-weight: 600; margin-bottom: .6rem; }
.pr-feature-title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 1rem; }
.pr-desc { color: #3a3846; font-size: .97rem; }
.pr-meta { width: 100%; border-top: 1px solid var(--grey-2); padding-top: .9rem; margin: .4rem 0 1.2rem; display: grid; gap: .35rem; }
.pr-meta p { margin: 0; font-size: .9rem; }
.pr-meta .mono-label { display: inline-block; min-width: 7.5rem; color: var(--muted); font-size: .64rem; }
.pr-feature-body .btn-icon, .pr-body .btn-icon { margin-top: auto; }

.pr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.pr-card { background: #fff; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; }
.pr-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(11,11,16,.1); }
.pr-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--grey-2); }
.pr-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pr-card:hover .pr-thumb img { transform: scale(1.06); }
.pr-no { position: absolute; top: .7rem; left: .7rem; font-family: var(--f-mono); font-size: .7rem; font-weight: 600; background: var(--ink); color: #fff; padding: .25rem .55rem; border-radius: 999px; }
.pr-card:nth-child(3n+1) .pr-no { background: var(--pink); }
.pr-card:nth-child(3n+2) .pr-no { background: var(--blue); }
.pr-card:nth-child(3n) .pr-no { background: var(--violet); }
.pr-body { padding: 1.15rem 1.2rem 1.3rem; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.pr-title { font-size: 1.12rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.22; margin-bottom: .6rem; }
.pr-body .pr-desc { font-size: .9rem; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pr-body .pr-meta { margin-top: 0; }
.pr-body .pr-meta p { font-size: .82rem; }
.pr-body .pr-meta .mono-label { min-width: 0; display: block; }
@media (max-width: 1000px) { .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .pr-feature, .pr-feature--flip { grid-template-columns: 1fr; }
  .pr-feature--flip .pr-feature-img { order: 0; }
  .pr-feature-img { min-height: 0; aspect-ratio: 16 / 10; }
  .pr-feature-img--contain { aspect-ratio: 4 / 3; }
  .pr-feature-img--contain img { max-height: 100%; }
}
@media (max-width: 600px) { .pr-grid { grid-template-columns: 1fr; } }

/* ---------- Campaign ---------- */
.campaign { background: var(--ink); color: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(1.5rem, 4vw, 3.5rem); position: relative; overflow: hidden; isolation: isolate; }
.campaign::before { content: ""; position: absolute; inset: auto -20% -40% auto; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(255,62,165,.55), transparent); z-index: -1; }
.campaign::after { content: ""; position: absolute; inset: -30% auto auto -15%; width: 55%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(42,59,255,.55), transparent); z-index: -1; }
.campaign-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1rem 4rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.campaign-intro > .mono-label { grid-column: 1 / -1; color: var(--pink); }
.campaign-title { font-size: clamp(2.8rem, 7.5vw, 6.5rem); font-weight: 800; letter-spacing: -.025em; line-height: .86; text-transform: uppercase; font-variation-settings: "opsz" 96, "wdth" 80; }
.campaign-desc { color: rgba(255,255,255,.82); margin: 0; }
.role { grid-column: 2; }
.role .mono-label { color: rgba(255,255,255,.6); margin-bottom: .7rem; }
.role .chips li { border-color: rgba(255,255,255,.4); }
.camp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.5rem); }
.camp-fig figcaption { display: flex; align-items: center; justify-content: space-between; margin-top: .8rem; color: rgba(255,255,255,.7); }
.camp-fig .btn-icon { background: #fff; color: var(--ink); }
.camp-fig .btn-icon:hover { color: #fff; }
.camp-zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; border-radius: 12px; overflow: hidden; aspect-ratio: 5 / 7; background: #b68a36; }
.camp-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: transform .9s var(--ease); }
.camp-img--1 { object-position: 50% 0%; }
.camp-zoom:hover .camp-img { transform: scale(1.04); }
.camp-zoom-ic { position: absolute; right: .7rem; top: .7rem; width: 38px; height: 38px; border-radius: 50%; background: rgba(11,11,16,.6); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s var(--ease); }
.camp-zoom-ic .ic { width: 18px; height: 18px; }
.camp-zoom:hover .camp-zoom-ic, .camp-zoom:focus-visible .camp-zoom-ic { opacity: 1; transform: none; }
@media (max-width: 820px) {
  .campaign-intro { grid-template-columns: 1fr; }
  .role { grid-column: auto; }
  .camp-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

/* ---------- Events (case studies) ---------- */
.case { --acc: var(--pink); background: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(1.4rem, 4vw, 3.5rem); margin-bottom: clamp(2rem, 4vw, 3rem); position: relative; overflow: hidden; }
.case--blue { --acc: var(--blue); }
.case::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--acc); }
.case-head { display: grid; grid-template-columns: 1fr auto; gap: .6rem 2rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.case-head > .mono-label { color: var(--acc); }
.case-logo { grid-column: 2; grid-row: 1 / span 2; width: clamp(90px, 12vw, 150px); height: auto; align-self: start; }
.case-title { grid-column: 1; font-size: clamp(1.8rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: .98; }
.case-meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem 2rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--grey-2); }
.case-meta dt { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.case-meta dd { font-size: .95rem; font-weight: 600; line-height: 1.4; }
.case-body { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.case-body--flip .case-media { order: -1; }
.case-text > p { color: #34323f; }
.more summary { list-style: none; cursor: pointer; display: inline-flex; font-family: var(--f-mono); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); border-bottom: 1.5px solid currentColor; margin-bottom: .5rem; }
.more summary::-webkit-details-marker { display: none; }
.more .more-close, .more[open] .more-open { display: none; }
.more[open] .more-close { display: inline; }
.more p { color: #34323f; margin-top: 1rem; }
.more[open] > p { animation: panelIn .45s var(--ease) both; }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; font-size: .96rem; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 3px; background: var(--acc); transform: rotate(45deg); }
.case-media { position: sticky; top: 90px; }
.collage { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: repeat(2, 1fr); gap: .6rem; aspect-ratio: 1 / 1.05; }
.col-tile, .rw-tile { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--grey-2); position: relative; }
.col-tile img, .rw-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.col-tile:hover img, .rw-tile:hover img { transform: scale(1.06); }
.col-tile--0 { grid-row: 1 / span 2; }
.col-tile--0 img { object-position: 50% 30%; }
.col-tile--3 img { object-position: 50% 35%; }
.btn-ghost { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; padding: .6rem 1rem; background: transparent; border: 1.5px solid var(--ink); border-radius: 999px; cursor: pointer; font-family: var(--f-mono); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; transition: background .25s, color .25s; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost .ic { width: 16px; height: 16px; }
.rw-grid { display: grid; grid-template-columns: 1.333fr 1fr 1fr; gap: .6rem; align-items: start; }
.rw-tile--0 { aspect-ratio: 830 / 844; }
.rw-tile--1, .rw-tile--2 { aspect-ratio: 3 / 4; }
.rw-tile--0 img { object-fit: contain; background: #2d5d7c; }
@media (max-width: 920px) {
  .case-body, .case-body--flip { grid-template-columns: 1fr; }
  .case-body--flip .case-media { order: 0; }
  .case-media { position: static; }
}
@media (max-width: 560px) {
  .case-head { grid-template-columns: 1fr; }
  .case-logo { grid-column: 1; grid-row: auto; width: 110px; }
  .rw-grid { grid-template-columns: 1fr 1fr; }
  .rw-tile--0 { grid-column: 1 / -1; }
}

/* ---------- Editorial ---------- */
.issues { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.issue { background: #fff; border-radius: var(--radius); padding: clamp(1.2rem, 2.5vw, 2rem); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); align-items: start; }
.issue-cover { border-radius: 6px; overflow: hidden; box-shadow: 0 20px 40px rgba(11,11,16,.18); transform: rotate(-1.5deg); transition: transform .5s var(--ease); }
.issue:hover .issue-cover { transform: rotate(0) translateY(-4px); }
.issue--upcoming { background: transparent; border: 2px dashed rgba(139,61,255,.45); }
.issue--upcoming .issue-cover { transform: rotate(1.5deg); box-shadow: 0 12px 30px rgba(11,11,16,.1); border: 1px solid var(--grey-2); }
.issue-body .mono-label { color: var(--muted); margin-bottom: .4rem; }
.issue-title { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .9rem; }
.issue-body > p:not(.status):not(.mono-label) { font-size: .93rem; color: #3a3846; }
.status { display: inline-flex; align-items: center; gap: .45rem; padding: .32rem .7rem; border-radius: 999px; font-family: var(--f-mono); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.status span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--live { background: rgba(42,59,255,.1); color: var(--blue); }
.status--dev { background: rgba(255,62,165,.12); color: var(--magenta); }
.status--dev span { animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }
.chips--themes { margin: .2rem 0 1rem; }
.chips--themes li { border-color: var(--violet); color: var(--violet); background: transparent; }
.note { font-size: .84rem; color: var(--muted); font-style: italic; }

.articles { display: flex; flex-direction: column; gap: clamp(1.5rem, 3vw, 2.5rem); }
.article-feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; background: #fff; border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2.5rem); }
.article-feature--flip .article-art { order: 2; }
.article-art { border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--grey-2); box-shadow: 14px 14px 0 var(--pink); transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.article-feature--flip .article-art { box-shadow: -14px 14px 0 var(--blue); }
.article-feature:hover .article-art { transform: translate(-4px, -4px); box-shadow: 18px 18px 0 var(--pink); }
.article-feature--flip:hover .article-art { transform: translate(4px, -4px); box-shadow: -18px 18px 0 var(--blue); }
.article-body .mono-label { color: var(--pink); margin-bottom: .6rem; }
.article-feature--flip .article-body .mono-label { color: var(--blue); }
.article-title { font-size: clamp(1.5rem, 2.8vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 1.2rem; }
.pull { margin: 0 0 1.4rem; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.2; padding-left: 1rem; border-left: 4px solid var(--violet); }
.article-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.5rem; margin-bottom: 1.2rem; }
.article-meta dt { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.article-meta dd { font-size: .9rem; font-weight: 600; line-height: 1.4; }
.article-body > p:not(.mono-label) { color: #3a3846; font-size: .95rem; }
@media (max-width: 1000px) { .issues { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .article-feature { grid-template-columns: 1fr; }
  .article-feature--flip .article-art { order: 0; }
}
@media (max-width: 520px) {
  .issue { grid-template-columns: 1fr; }
  .issue-cover { max-width: 260px; }
  .article-meta { grid-template-columns: 1fr; }
}

/* ---------- Films ---------- */
.films { display: flex; flex-direction: column; gap: clamp(2.5rem, 6vw, 5rem); }
.film { --acc: var(--violet); display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.film--blue { --acc: var(--blue); } .film--pink { --acc: var(--pink); }
.film--flip { grid-template-columns: 1fr 1.45fr; }
.film--flip .film-poster { order: 2; }
.film-poster { position: sticky; top: 90px; display: block; border-radius: 14px; overflow: hidden; background: var(--ink); box-shadow: 0 26px 60px rgba(11,11,16,.25); }
.film-poster img { width: 100%; transition: transform 1s var(--ease), opacity .4s; }
.film-poster:hover img { transform: scale(1.04); opacity: .85; }
.film-play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: #fff; transform: scale(.85); opacity: .92; transition: transform .4s var(--ease), opacity .3s; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.film-play .ic { width: 34px; height: 34px; margin-left: 4px; }
.film-poster:hover .film-play { transform: scale(1); opacity: 1; }
.film-type { display: inline-block; padding: .35rem .75rem; border-radius: 999px; background: var(--acc); color: #fff; font-family: var(--f-mono); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .8rem; }
.film-type--ad { background: transparent; color: var(--magenta); border: 1.5px solid var(--magenta); }
.film-num { float: right; font-family: var(--f-mono); font-size: .8rem; font-weight: 600; color: var(--muted); margin: .4rem 0 0; }
.film-title { font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -.025em; line-height: .92; text-transform: uppercase; font-variation-settings: "opsz" 96, "wdth" 82; margin-bottom: .5rem; clear: both; }
.case-meta--film { margin-top: 1rem; grid-template-columns: 1fr; gap: .8rem; }
.film-body > p { font-size: .95rem; color: #3a3846; }
.synopsis { font-family: var(--f-serif); font-size: 1.22rem !important; line-height: 1.45; color: var(--ink) !important; }
.film-body .btn-icon { margin-top: .6rem; }
@media (max-width: 900px) {
  .film, .film--flip { grid-template-columns: 1fr; }
  .film--flip .film-poster { order: 0; }
  .film-poster { position: relative; top: 0; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: var(--paper); padding: clamp(5rem, 11vw, 9rem) 0 clamp(4rem, 8vw, 7rem); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 38vw; aspect-ratio: 1; border-radius: 50%; right: -12vw; top: 6rem; background: var(--grad-hot); opacity: .1; filter: blur(30px); }
.contact-title { font-size: clamp(2.8rem, 9vw, 8.6rem); font-weight: 800; letter-spacing: -.025em; line-height: .88; text-transform: uppercase; font-variation-settings: "opsz" 96, "wdth" 80; margin-bottom: clamp(2.5rem, 6vw, 5rem); max-width: 14ch; }
.bang { color: var(--pink); display: inline-block; transform-origin: bottom center; }
.contact-title.is-in .bang { animation: wiggle 1.2s .6s var(--ease) both; }
@keyframes wiggle { 30% { transform: rotate(14deg); } 60% { transform: rotate(-8deg); } 100% { transform: none; } }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; position: relative; z-index: 1; }
.contact-text > p { font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); color: #33313f; }
.contact-sign { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.4rem, 2.3vw, 1.85rem) !important; color: var(--ink) !important; }
.contact-links { display: grid; gap: .7rem; margin: 2rem 0 1.4rem; }
.c-link { display: flex; align-items: center; gap: 1rem; text-decoration: none; padding: .6rem 1.1rem .6rem .6rem; border-radius: 999px; border: 1.5px solid var(--grey-2); transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; width: fit-content; max-width: 100%; }
.c-link small { display: block; font-family: var(--f-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.c-link > span:last-child { font-weight: 700; line-height: 1.2; word-break: break-word; }
.c-ic { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: transform .35s var(--ease); }
.c-link--mail .c-ic { background: var(--pink); }
.c-link--phone .c-ic { background: var(--violet); }
.c-link--in .c-ic { background: var(--blue); }
.c-link:hover { border-color: var(--ink); transform: translateX(6px); box-shadow: 0 10px 26px rgba(11,11,16,.08); }
.c-link:hover .c-ic { transform: rotate(-12deg) scale(1.06); }
.cv-small { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-mono); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; transition: color .25s; }
.cv-small .ic { width: 16px; height: 16px; }
.cv-small:hover { color: var(--pink); }

.cform { background: #fff; border: 1.5px solid var(--grey-2); border-radius: calc(var(--radius) + 6px); padding: clamp(1.4rem, 3.5vw, 2.8rem); box-shadow: 0 30px 70px rgba(11,11,16,.07); }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: .5rem; }
.field label span { color: var(--pink); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid #cfccd8; border-radius: 12px;
  padding: 1rem 1.1rem; transition: border-color .25s, box-shadow .25s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 190px; }
.field input::placeholder, .field textarea::placeholder { color: #9c99a8; }
.field input:hover, .field textarea:hover { border-color: #a7a3b5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(42,59,255,.14); }
.field.has-error input, .field.has-error textarea { border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(224,21,127,.1); }
.err { color: var(--magenta); font-size: .84rem; margin: .4rem 0 0; min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-send { width: 100%; justify-content: center; padding: 1.15rem 1.5rem; background: var(--ink); color: #fff; font-size: 1.08rem; position: relative; overflow: hidden; isolation: isolate; transition: transform .3s var(--ease), color .3s; }
.btn-send::before { content: ""; position: absolute; inset: 0; background: var(--grad); z-index: -1; opacity: 0; transition: opacity .4s; }
.btn-send:hover::before { opacity: 1; }
.btn-send:hover { transform: translateY(-2px); }
.btn-send:disabled { cursor: progress; opacity: .85; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.is-sending .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin: 1rem 0 0; font-weight: 600; border-radius: 12px; }
.form-status:empty { display: none; }
.form-status.ok { background: rgba(42,59,255,.08); color: var(--blue-deep); padding: .9rem 1rem; }
.form-status.bad { background: rgba(224,21,127,.08); color: var(--magenta); padding: .9rem 1rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #fff; padding: 2.5rem 0; }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer-name { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.04em; }
.footer-name span { color: var(--pink); }
.site-footer .mono-label { color: rgba(255,255,255,.65); }
.to-top { text-decoration: none; }
.to-top:hover { color: var(--pink) !important; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(11,11,16,.94); color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; animation: fadeIn .3s both; }
.lightbox::backdrop { background: rgba(11,11,16,.6); }
.lb-fig { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; padding: 3.5rem 0 1.5rem; min-width: 0; }
.lb-img { max-height: calc(100vh - 7rem); max-width: 100%; width: auto; object-fit: contain; border-radius: 6px; }
.lb-cap { margin-top: .9rem; color: rgba(255,255,255,.7); text-align: center; padding: 0 1rem; text-transform: none; letter-spacing: .02em; }
.lb-btn { width: 52px; height: 52px; margin: 0 1rem; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .25s; }
.lb-btn:hover { background: var(--pink); }
.lb-close { position: absolute; top: 1rem; right: 0; z-index: 2; }
.lb-btn[hidden] { visibility: hidden; display: grid; }
@media (max-width: 600px) { .lb-btn { width: 42px; height: 42px; margin: 0 .3rem; } }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ltr-in { transform: none; }
}

/* film label colours must win over .film-body > p */
.film-body > .film-type { color: #fff; font-size: .68rem; }
.film-body > .film-type--ad { color: var(--magenta); }
.film-body > .film-num { color: var(--muted); font-size: .8rem; }
