/* ============================================================
   SINTESIS — digital community
   Palette: classic red accent (~30%) on a soft milky ground.
   Fonts: Saira Condensed (compressed bold grotesque display)
          for logo + headings, Inter for UI/body.
   ============================================================ */

/* ----- custom display font: CyGrotesk Wide (local files) ----- */
@font-face {
  font-family: "CyGrotesk Wide";
  src: url("../fonts/CyGrotesk-WideBold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CyGrotesk Wide";
  src: url("../fonts/CyGrotesk-WideHeavy.otf") format("opentype");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Joker";
  src: url("../fonts/Joker.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Polonium";
  src: url("../fonts/Polonium.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Polonium";
  src: url("../fonts/Polonium-Bold.otf") format("opentype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* palette — milky ground + classic red accent */
  --pink:        #F4EFE6;   /* milky base (was pink) — used across sections */
  --pink-soft:   #FAF6EE;   /* lighter milky */
  --pink-deep:   #ECE4D6;   /* slightly deeper milky (page ground) */
  --black:       #111111;
  --ink:         #1A1A1A;
  --dark:        #161310;
  --white:       #FFFFFF;
  --milk:        #F4EFE6;
  --cream:       #FAF6EE;

  /* red accent system (the ~30% colour) */
  --red:         #E10E0E;   /* classic red */
  --red-deep:    #B70B0B;
  --red-soft:    #F4D3D3;   /* tinted red for dormant rows */

  /* service-panel accents (recoloured around red + neutrals) */
  --yellow:      #E10E0E;   /* legacy var name -> now red */
  --lav:         #F4D3D3;   /* soft red tint */
  --lime:        #FAF6EE;   /* cream */
  --green:       #161310;   /* near-black panel */
  --red-grad-a:  #E10E0E;
  --red-grad-b:  #B70B0B;

  /* type */
  --serif: "Saira Condensed", "Arial Narrow", system-ui, sans-serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;

  /* radii */
  --r-window: 30px;
  --r-card:   18px;
  --r-pill:   100px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:  cubic-bezier(0.65, 0, 0.35, 1);
  --t-int: 240ms var(--ease-out);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--sans);
  background: var(--pink-deep);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* compressed bold grotesque display defaults (logo + headings) */
.hero-title, .header-logo, .intro-logo,
.stats-head h2, .facts .num, .section-label,
.svc-row h3, .portfolio-head h2, .trending-top h2,
.cta-box .big, .foot-logo,
.svc-headline, .founders h2 {
  font-family: var(--serif);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== The "app window" frame =====
   Whole site sits in a rounded container floating over a soft pink ground. */
.frame {
  position: relative;
  width: 100%;
  background: var(--pink);
  border-radius: var(--r-window);
  overflow: clip;
  /* a faint inner edge like the reference */
  box-shadow: 0 40px 120px rgba(120, 20, 40, 0.18);
}

/* portfolio case-card entrance: the image tile slides in from its side while
   its frame stays put (clip), and the title/tags text masks up. JS toggles
   .in once each card reaches the viewport. */
.proj.from-left  .thumb img,
.proj.from-right .thumb img { transform: translateX(0); }
/* (entrance handled in JS via GSAP for precise scrubbed timing) */

/* The page ground (the soft pink behind the window). Margin reveals rounding. */
.ground {
  min-height: 100vh;
  padding: 14px;
  background:
    radial-gradient(120% 120% at 50% 0%, #F4EFE6 0%, #EAE0CF 55%, #DCCFB8 100%);
}

/* ============================================================
   HEADER — floating pill nav
   ============================================================ */
.site-header {
  position: fixed;
  top: 18px;
  left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  pointer-events: none;
  transition: transform 420ms var(--ease-out);
}
.site-header.hidden { transform: translateY(-130%); }
.site-header > * { pointer-events: auto; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--r-pill);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transition: transform var(--t-int), background var(--t-int);
}
.pill:hover { transform: translateY(-2px); }
.pill .arrow { display: inline-block; transition: transform var(--t-int); }
.pill:hover .arrow { transform: translateX(3px); }

/* round logo mark (reference-style), in the site's white-pill language */
.logo-mark {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transition: transform var(--t-int);
}
.logo-mark:hover { transform: translateY(-2px); }
.logo-mark img { width: 26px; height: 26px; display: block; }

/* centre navigation — one white pill, links to the site's sections */
.main-nav {
  /* plain centred text links, like the reference — no pill plate */
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.main-nav a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: 8px 10px;
  transition: color var(--t-int);
}
.main-nav a:hover { color: #6b6258; }

/* ============================================================
   PRELOADER / INTRO
   ============================================================ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  background: var(--pink);
  pointer-events: none;
}
.intro.done { display: none; }
.intro-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.18em;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-size: clamp(28px, 7vw, 92px);
  white-space: nowrap;
}
.intro-logo .w { display: inline-block; will-change: transform; }
.intro-smiley { display: inline-grid; place-items: center; will-change: transform; }

/* SB smiley mark (used in intro + logo dot) */
.smiley-svg { width: 1em; height: 1em; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 88px 26px 26px;
  overflow: hidden;
}
.hero-title {
  font-family: "Plus Jakarta Sans", var(--sans);
  font-weight: 800;
  text-transform: lowercase;
  /* size scales with viewport width so the word always overflows the
     screen by the same proportion on every device (phone, tablet,
     desktop). 32.5vw is tuned so about a THIRD of the first and last
     letter is cropped at each side — like the reference. Clipping is
     symmetric thanks to the absolute centring below. */
  font-size: 32.5vw;
  line-height: 0.92;
  letter-spacing: -0.04em;
  /* Absolute centring guarantees the MIDDLE of the word sits on the
     middle of the screen at ANY width, so the overflow is clipped
     symmetrically left & right on every device. */
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  color: var(--red);
  margin: 0;
  pointer-events: none;
}
/* overlay text on top of the big red title — plain text, no plate */
.hero-sub {
  /* anchored near the bottom so it never collides with the centred
     full-bleed wordmark + overlay text (consistent on all devices) */
  position: absolute;
  left: 50%;
  bottom: clamp(40px, 9vh, 90px);
  transform: translateX(-50%);
  width: 100%;
  z-index: 26;
  text-align: center;
  line-height: 1.25;
}
.hero-sub b { font-weight: 700; font-size: clamp(13px,1.4vw,17px); }
.hero-sub span { display:block; font-weight: 400; font-size: clamp(13px,1.4vw,17px); color:#6b6258; }

/* hero mini case autoplayer (bottom-left) — THIS card is what zooms full-screen.
   Its size/position during the zoom is driven by GSAP, growing straight out of
   this corner with no jump and no extra element below. */
.hero-player {
  position: absolute;
  left: 26px;
  bottom: 26px;
  width: clamp(160px, 17vw, 230px);
  height: calc(clamp(160px, 17vw, 230px) / 1.5);
  border-radius: var(--r-card);
  overflow: hidden;
  background: #111;
  z-index: 30;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  transform-origin: left bottom;
  will-change: width, height, left, bottom, border-radius;
}
/* single showreel video fills the card at every size of the zoom */
.hero-player .player-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   SECTION: ZOOM RUNWAY (Financial expertise)
   The hero is pinned while this empty section scrolls past, giving
   the GSAP timeline its scroll distance. No visible card lives here.
   ============================================================ */
.zoom-section { display: none; }

/* ============================================================
   SECTION: STATS — Crafting premium brands
   ============================================================ */
.stats {
  position: relative;
  background: var(--pink);
  padding: 26px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.stats-media {
  height: clamp(150px, 26vh, 280px);
  border-radius: var(--r-card);
  overflow: hidden;
  position: relative;
  background: linear-gradient(110deg, var(--red-grad-a), var(--red-grad-b));
}
.stats-media .m-slide {
  position:absolute; inset:0; background-size:cover; background-position:center;
  opacity:0; transition: opacity 800ms var(--ease-out);
}
.stats-media .m-slide.active { opacity: 1; }
.stats-body {
  flex: 1;
  display: grid;
  grid-template-columns: 0.9fr 2fr;
  gap: 40px;
  align-items: center;
  padding: 40px 6px 6px;
}
.facts .label {
  display:flex; justify-content:space-between;
  font-size: 13px; font-weight:500;
  border-bottom: 1px solid rgba(0,0,0,0.25);
  padding-bottom: 10px; margin-bottom: 18px;
  max-width: 240px;
}
.facts .num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.facts .desc { font-size: 13px; max-width: 230px; margin-top: 14px; color:#5b5247; line-height:1.45; }
.facts .nav { display:flex; gap: 10px; margin-top: 26px; }
.facts .nav button {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; display:grid; place-items:center; font-size: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform var(--t-int);
}
.facts .nav button:hover { transform: translateY(-2px); }
.stats-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 5.2vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  max-width: 16ch;
}
.stats-head .about-btn { margin-top: 28px; }

/* sticky hint label for next section */
.section-label {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(18px,2vw,26px);
}

/* ============================================================
   SERVICES — pinned scrolling list + swapping media panel
   ============================================================ */
.services { position: relative; background: var(--pink); }
.services-stage {
  position: relative;
  height: 100vh;
  padding: 22px 26px 26px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.services-tag {
  font-size: 14px; font-weight: 600;
  padding-bottom: 14px; flex: 0 0 auto;
}
/* two columns: scrolling title list (left) + fixed media stage (right) */
.svc {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  min-height: 0;
  align-items: start;
}

/* ---- LEFT: list of full-width rows that translate upward ---- */
.svc-list {
  position: relative;
  will-change: transform;
  display: flex; flex-direction: column;
  gap: 14px;
}
.svc-row {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #ECE4D6;            /* dormant milky tint */
}
/* coloured highlight that fades in when the row is active */
.svc-fill {
  position: absolute; inset: 0;
  background: var(--fill);
  opacity: 0;                     /* JS fades 0 -> 1 when active */
  z-index: 0;
}
.svc-head {
  position: relative; z-index: 2;
  padding: 22px 28px;
}
.svc-row h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3.8vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.svc-desc, .svc-tags {
  /* details only show on the active row */
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s ease, opacity .4s ease, margin .5s ease;
  margin: 0;
}
.svc-desc {
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.5; max-width: 42ch;
}
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; }
.svc-tags li { font-size: 12.5px; opacity: 0.85; }
.svc-row.is-active .svc-desc { max-height: 120px; opacity: 1; margin-top: 16px; }
.svc-row.is-active .svc-tags { max-height: 90px; opacity: 1; margin-top: 14px; }
.svc-row--dark.is-active h3,
.svc-row--dark.is-active .svc-desc,
.svc-row--dark.is-active .svc-tags li { color: #fff; }

/* ---- RIGHT: media stage; one panel visible per active service ---- */
.svc-stage {
  position: relative;
  /* Don't stretch past the visible viewport. The stage must sit fully
     inside .services-stage with the SAME breathing room at the bottom as
     at the top, so its rounded bottom corners are never clipped off-screen.
     height = viewport - top padding(22) - services-tag(~22+14) - bottom padding(26) */
  align-self: start;
  height: calc(100vh - 84px);
  max-height: calc(100vh - 84px);
  border-radius: 18px;
  overflow: hidden;
  background: var(--green);
  min-height: 0;
}
.svc-media {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 26px;
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease;
}
.svc-media.is-active { opacity: 1; visibility: visible; }
/* light/cream panels */
.svc-media[data-i="1"] { background: #EFE7D8; }
.svc-media[data-i="3"] { background: var(--red); }
.svc-media[data-i="4"] { background: #EFE7D8; }
.svc-media--dark { background: var(--black); }
.svc-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 30px);
  line-height: 1.08;
  color: #eaf3ef;
  margin-bottom: auto;
}
.svc-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px; margin-top: 18px;
}
.svc-grid img { width: 100%; height: clamp(70px, 11vh, 120px); object-fit: cover; border-radius: 10px; }
.svc-shot { width: 100%; height: 100%; object-fit: contain; }
.svc-media[data-i="1"] .svc-shot,
.svc-media[data-i="4"] .svc-shot { object-fit: cover; border-radius: 12px; }
.svc-mascot-wrap { display: grid; place-items: center; padding: 10px 0 18px; }
.scramble { display: inline-block; }
/* lime mascot */
.mascot { width: 96px; height: 96px; }
.mascot .eye { transform-box: fill-box; transform-origin: center; }

/* ============================================================
   FOUNDERS (Основатели) — pinned cinematic scene (reference-driven)
   A giant single-line NAME runs horizontally across the screen while the
   founder PORTRAIT sits behind it. The letters are filled with the SAME
   colour as the ground, so they act as a mask — the face is only visible
   through the gaps between / inside the glyphs. As the name slides off, the
   letters clear and a clean close-up portrait remains with the founder info.
     • Founder 1 (ZAIR)    — monochrome / black ground
     • Founder 2 (MIKHAIL) — red ground

   >>> ФОТО ОСНОВАТЕЛЕЙ <<<
   Положите вертикальные портреты в /img (founder-1.jpg, founder-2.jpg).
   Путь указывается ОТНОСИТЕЛЬНО этого CSS-файла (поэтому ../img/...). */
#port1 { --photo: url('../img/founder-1.jpg'); }
#port2 { --photo: url('../img/founder-2.jpg'); }

.founders { position: relative; background: #0E0C0A; }

/* the pinned viewport-tall stage */
.fdr-pin {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #0E0C0A;
}

/* colour ground (GSAP crossfades black → red between founders) */
.fdr-ground {
  position: absolute; inset: 0;
  background-color: #0E0C0A;
  z-index: 0;
}

/* a founder scene fills the stage; scene2 starts hidden */
.fdr-scene {
  position: absolute; inset: 0;
  z-index: 1;
  overflow: hidden;
}

/* ---------- portrait layer (behind the letters) ---------- */
.fdr-portrait {
  position: absolute; inset: 0;
  background-image: var(--photo);
  background-size: cover;
  background-position: center 22%;
  z-index: 1;
  will-change: transform, filter;
}

/* edge vignette so the photo melts into the ground colour */
.fdr-vignette {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% 34%, rgba(0,0,0,0) 38%, rgba(14,12,10,0.55) 72%, #0E0C0A 100%),
    linear-gradient(0deg, rgba(14,12,10,0.85), rgba(14,12,10,0) 32%),
    linear-gradient(90deg, rgba(14,12,10,0.5) 0%, rgba(14,12,10,0) 20%, rgba(14,12,10,0) 80%, rgba(14,12,10,0.5) 100%);
}
.fdr-vignette.red {
  background:
    radial-gradient(120% 100% at 50% 34%, rgba(225,14,14,0) 36%, rgba(183,11,11,0.5) 70%, #E10E0E 100%),
    linear-gradient(0deg, rgba(168,8,8,0.85), rgba(225,14,14,0) 32%),
    linear-gradient(90deg, rgba(183,11,11,0.5) 0%, rgba(225,14,14,0) 20%, rgba(225,14,14,0) 80%, rgba(183,11,11,0.5) 100%);
}

/* ---------- STENCIL panel (solid colour with the name CUT OUT) ----------
   A wide SVG sits over the portrait. Inside, a full panel <rect> is filled
   with the ground colour and masked by white-rect-minus-black-text, so the
   letter shapes become HOLES. The portrait below shows only through those
   holes; everything else is solid colour. The whole SVG slides horizontally. */
.fdr-stencil {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  /* much wider than the viewport so the long word fits and can travel across */
  width: 320vw;
  z-index: 3;
  pointer-events: none;
  /* only opacity is animated on the root SVG (the word inside the mask
     carries the motion) — promoting transform here would force a giant
     raster layer that corrupts during backward scrubbing */
  will-change: opacity;
  display: block;
}
.fdr-stencil .panel-fill { fill: #0E0C0A; }            /* black panel for ZAIR */
.fdr-stencil.red .panel-fill { fill: #E10E0E; }        /* red panel for MIKHAIL */
.fdr-stencil .mask-word {
  font-family: var(--serif);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -2px;
  /* huge glyphs that bleed off top and bottom like the reference */
  font-size: 96vh;
}

/* ---------- @handle chip (top-left, like the reference) ---------- */
.fdr-handle {
  position: absolute;
  top: clamp(24px, 6vh, 64px);
  left: clamp(24px, 5vw, 80px);
  z-index: 5;
  font-family: var(--sans);
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.92);
  opacity: 0;            /* GSAP fades in */
  pointer-events: none;
}
.fdr-handle::before {
  content: "↳ ";
  color: var(--red);
  font-weight: 700;
}
.fdr-handle.red::before { color: #2a0606; }
.fdr-handle.red { color: rgba(255,255,255,0.95); }

/* ---------- info that resolves on the clean portrait ---------- */
.fdr-meta {
  position: absolute;
  left: clamp(28px, 6vw, 110px);
  bottom: clamp(40px, 9vh, 100px);
  max-width: 560px;
  z-index: 6;
  color: #fff;
  opacity: 0;            /* GSAP reveals at the end of each scene */
  pointer-events: none;
}
.fdr-kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
#scene2 .fdr-kicker { color: #fff; opacity: 0.92; }
.fdr-name {
  font-family: var(--serif); font-weight: 900; text-transform: uppercase;
  font-size: clamp(44px, 6.5vw, 96px); line-height: 0.86;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.45);
}
.fdr-role {
  font-family: var(--sans);
  font-size: clamp(16px, 1.6vw, 22px);
  color: var(--red);
  margin-top: 12px; font-weight: 600;
}
#scene2 .fdr-role { color: #1a0606; }
.fdr-text {
  font-family: var(--sans);
  font-size: clamp(14px, 1.15vw, 17px); line-height: 1.6;
  color: rgba(255,255,255,0.86);
  margin-top: 20px; max-width: 50ch;
  text-shadow: 0 1px 18px rgba(0,0,0,0.5);
}
#scene2 .fdr-text { color: rgba(255,255,255,0.95); }
.fdr-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.fdr-tags span {
  font-family: var(--sans);
  font-size: 12px; padding: 7px 14px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.14); color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(3px);
}
#scene2 .fdr-tags span {
  background: rgba(0,0,0,0.2); border-color: rgba(0,0,0,0.28);
}

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  .fdr-stencil { width: 520vw; }
  .fdr-stencil .mask-word { font-size: 72vh; letter-spacing: -1px; }
  .fdr-meta {
    left: 22px; right: 22px; bottom: 36px; max-width: none;
  }
  .fdr-portrait { background-position: center 20%; }
}
/* short landscape phones: size the glyphs off the WIDTH so the
   letter’s counter stays big enough for the fly-through zoom */
@media (max-width: 860px) and (orientation: landscape) {
  .fdr-stencil { width: 560vw; }
  .fdr-stencil .mask-word { font-size: 60vw; }
}


/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio { background: var(--pink); padding: 70px 26px 40px; position: relative; z-index: 2; }
.portfolio-head {
  text-align:center; margin-bottom: 40px;
}
.portfolio-head h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 6vw, 92px); line-height: 0.98; letter-spacing:-0.02em;
}
.portfolio-head h2 .l2 { font-weight: 600; }
.portfolio-head .approach-btn { margin-top: 24px; }
.proj-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.proj {
  display: block;
  will-change: transform, opacity;
}
/* card frame */
.proj .thumb {
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 16/9.3;
  background:#e6ddcd;
}
.proj .thumb img {
  width:100%; height:100%; object-fit: cover;
  transition: transform 800ms var(--ease-out);
  will-change: transform;
}
.proj:hover .thumb img { transform: scale(1.04); }

/* title / tags use an inner span so the text can mask-reveal upward */
.proj .title { font-size: clamp(14px,1.4vw,17px); font-weight: 600; margin-top: 12px; overflow: hidden; }
.proj .tags  { font-size: 11px; color:#6b6258; margin-top: 4px; overflow: hidden; }
.proj .title span,
.proj .tags span { display: inline-block; will-change: transform; }
.see-more { display:flex; justify-content:center; margin-top: 36px; }

/* ============================================================
   WHAT'S TRENDING (dark)
   ============================================================ */
.trending { background: var(--black); color: #fff; padding: 60px 26px; }
.trending-top { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom: 36px; }
.trending-top h2 { font-size: clamp(34px,5.5vw,84px); letter-spacing:-0.02em; color: var(--red); }
.trending-top .pill { background: var(--white); color: var(--ink); }
.trending-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.t-card .t-img { border-radius: var(--r-card); overflow:hidden; aspect-ratio: 4/3; background:#222; }
.t-card .t-img img { width:100%; height:100%; object-fit:cover; }
.t-card .t-title { font-size: 15px; font-weight:600; margin-top: 14px; color:#fff; }
.t-card .t-meta { font-size: 11px; letter-spacing: 0.08em; color:#888; margin-top: 10px; }

/* ============================================================
   RELATIONSHIPS / AWARDS (dark)
   ============================================================ */
.relations { background: var(--black); color: var(--cream); padding: 30px 26px 70px; }
.relations h4 { font-family: var(--serif); font-weight: 400; font-size: 18px; margin-bottom: 30px; opacity: 0.95; }
.logo-row { display:grid; grid-template-columns: repeat(4,1fr); gap: 30px 20px; align-items:center; justify-items:center; margin-bottom: 50px; }
.logo-row .lg { font-weight: 700; font-size: 17px; letter-spacing: 0.02em; opacity: 0.92; text-align:center; }
.logo-row .lg small { display:block; font-weight:400; font-size:10px; opacity:0.7; }
.relations hr { border:none; border-top:1px solid rgba(255,255,255,0.12); margin: 10px 0 40px; }

/* ============================================================
   FOOTER / CTA
   ============================================================ */
.footer { background: var(--pink); padding: 26px; }
.cta-row { display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cta-box { border-radius: var(--r-card); padding: 30px; min-height: 230px; display:flex; flex-direction:column; justify-content:space-between; }
.cta-box.dark { background: var(--black); color:#fff; }
.cta-box.lav  { background: var(--red); color: #fff; }
.cta-box .top small { display:block; font-size: 14px; line-height:1.5; opacity:0.8; }
.cta-box .top .head { font-weight: 600; font-size: 15px; }
.cta-box .big { font-family: var(--serif); font-weight: 600; font-size: clamp(34px,5vw,72px); letter-spacing:-0.02em; }
.cta-box.dark .top small { color:#aaa; }

.foot-nav { display:grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding: 46px 4px 30px; }
.foot-nav .col small { display:block; font-size: 10px; letter-spacing:0.1em; color:#8a8175; margin-bottom: 12px; text-transform:uppercase; }
.foot-nav .col a, .foot-nav .col p { display:block; font-size: 17px; font-weight: 500; margin-bottom: 6px; }
.foot-nav .right { text-align: right; }

.foot-logo {
  display:flex; align-items:center; justify-content:center; gap: 0.1em;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(44px, 13vw, 200px); letter-spacing: -0.03em;
  line-height: 1; padding: 10px 0;
}
.foot-logo .smiley-svg { width: 0.7em; height: 0.7em; }
.foot-meta { display:flex; justify-content:space-between; font-size: 10px; color:#8a8175; padding-top: 16px; }

/* ============================================================
   reveal helper
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity:1 !important; transform:none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  /* exactly the same overflowing-centred treatment as desktop —
     identical crop proportion (~⅓ of first/last letter) on every screen */
  .hero-title { font-size: 32.5vw; }
  /* centre nav doesn't fit on small screens — keep logo + CTA only */
  .main-nav { display: none; }
  .stats-body { grid-template-columns: 1fr; gap: 24px; }
  /* services: drop the pinned 100vh stage on mobile — stack rows normally */
  .services-stage { height: auto; overflow: visible; }
  .svc { grid-template-columns: 1fr; gap: 18px; }
  .svc-list { gap: 12px; }
  .svc-row .svc-desc { max-height: 140px; opacity: 1; margin-top: 14px; }
  .svc-row .svc-tags { max-height: 90px; opacity: 1; margin-top: 12px; }
  .svc-stage { min-height: 320px; align-self: auto; }
  .proj-grid, .trending-grid, .logo-row, .foot-nav, .cta-row { grid-template-columns: 1fr; }
  .trending-grid { grid-template-columns: 1fr; }
  .logo-row { grid-template-columns: repeat(2,1fr); }
  /* blog header: stack the heading and the pill so they never collide */
  .trending-top { flex-direction: column; align-items: flex-start; gap: 18px; }
  .trending-top .pill { align-self: flex-start; }
}

/* ---- phones / portrait tablets: rebalanced hero composition ----
   title stays centred & cropped exactly like desktop; the showreel
   card moves to the horizontal centre (bigger, like a stage card)
   with the caption right underneath — nothing overlaps. */
@media (max-width: 860px) and (orientation: portrait) {
  .hero-player {
    width: min(72vw, 330px);
    height: calc(min(72vw, 330px) / 1.5);
    left: calc(50% - min(36vw, 165px));
    bottom: clamp(118px, 17vh, 170px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.22);
  }
  .hero-sub { bottom: clamp(34px, 6vh, 64px); }
}

/* ---- short landscape screens (phones rotated): keep the compact
   corner player so it never collides with the full-bleed title ---- */
@media (max-width: 860px) and (orientation: landscape) {
  .hero-player {
    width: 140px;
    height: calc(140px / 1.5);
    left: 20px;
    bottom: 20px;
  }
}
