@import url('../fonts/fonts.css');

/* =========================================================
   Constantin creates. – v2
   Dark anthracite, minimal, fade/position-up motion
   ========================================================= */
:root {
  --bg: #151618;
  --bg-2: #1c1d20;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f1ee;
  --muted: #9a9a9d;
  --dim: #6c6c70;
  --accent: #f1a638;

  --display: 'Clash Display', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Clash Grotesk', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 64px);
  --max: 1320px;
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -0.02em; line-height: 1.02; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Background: flat anthracite ----------
   Large, very dark gradients always show visible steps on 8-bit screens, so the page
   background is a single flat colour. Depth comes from the cards' edge highlights instead. */


/* ---------- Custom cursor (desktop only, added by JS) ---------- */
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor { position: fixed; inset: 0; z-index: 100; pointer-events: none; transition: opacity .3s; }
.cursor.is-hidden { opacity: 0; }
.cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; will-change: transform; }
/* Square dot like the full stop in the "Cc." logo, square outline box around it */
.cursor { --glow: 0 0 10px rgba(241, 166, 56, .45), inset 0 0 8px rgba(241, 166, 56, .18); }
.cursor-dot::before {
  content: ''; position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 1px;
  background: #fff; transition: transform .25s var(--ease), opacity .25s, background .25s, box-shadow .25s;
}
.cursor-ring::before {
  content: ''; position: absolute; width: 29px; height: 29px; margin: -14.5px 0 0 -14.5px; border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .4);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s, box-shadow .35s, transform .2s var(--ease);
}
.cursor-ring em {
  position: absolute; transform: translate(-50%, -50%); font-style: normal; font-size: 11px; font-weight: 600;
  letter-spacing: .04em; color: var(--accent); opacity: 0; transition: opacity .25s; white-space: nowrap;
  text-shadow: 0 0 8px rgba(241, 166, 56, .6);
}
/* Hover over anything interactive: same box, ~15% bigger, CI yellow with a soft glow */
.cursor.is-link .cursor-dot::before { background: var(--accent); box-shadow: 0 0 6px rgba(241, 166, 56, .8); }
.cursor.is-link .cursor-ring::before { transform: scale(1.15); border-color: var(--accent); box-shadow: var(--glow); }
.cursor.is-down.is-link .cursor-ring::before { transform: scale(1); }
/* Over videos, cases and the phone: the dot becomes a word, the box widens to a rectangle */
.cursor.is-label .cursor-dot::before { opacity: 0; }
.cursor.is-label .cursor-ring::before { width: var(--cw, 58px); margin-left: calc(var(--cw, 58px) / -2); border-color: var(--accent); box-shadow: var(--glow); }
.cursor.is-label .cursor-ring em { opacity: 1; }
.cursor.is-down .cursor-ring::before { transform: scale(.85); }

/* ---------- Progressive blur at the bottom (UNUOCEANO-style, into anthracite) ---------- */
.edge-blur {
  transition: opacity .5s;
  position: fixed; left: 0; right: 0; bottom: 0; height: 120px; z-index: 40; pointer-events: none;
}
.edge-blur span { position: absolute; inset: 0; }
.edge-blur span:nth-child(1) { backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); mask: linear-gradient(transparent 0%, #000 17%, #000 33%, transparent 50%); -webkit-mask: linear-gradient(transparent 0%, #000 17%, #000 33%, transparent 50%); }
.edge-blur span:nth-child(2) { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); mask: linear-gradient(transparent 17%, #000 33%, #000 50%, transparent 67%); -webkit-mask: linear-gradient(transparent 17%, #000 33%, #000 50%, transparent 67%); }
.edge-blur span:nth-child(3) { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); mask: linear-gradient(transparent 33%, #000 50%, #000 67%, transparent 83%); -webkit-mask: linear-gradient(transparent 33%, #000 50%, #000 67%, transparent 83%); }
.edge-blur span:nth-child(4) { backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); mask: linear-gradient(transparent 50%, #000 67%, #000 83%, transparent 100%); -webkit-mask: linear-gradient(transparent 50%, #000 67%, #000 83%, transparent 100%); }
.edge-blur span:nth-child(5) { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); mask: linear-gradient(transparent 67%, #000 83%, #000 100%); -webkit-mask: linear-gradient(transparent 67%, #000 83%, #000 100%); }
.edge-blur::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(21, 22, 24, .85)); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  transition: background .3s, backdrop-filter .3s;
}
.nav.is-scrolled { background: rgba(21, 22, 24, .55); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.nav .logo img { height: 22px; width: auto; }
.nav .logo-short { display: none; }
.nav-links {
  display: flex; gap: 4px; padding: 5px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.nav-links a { padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }

.btn {
  --pulse: rgba(255, 255, 255, .22);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 12px 22px; border-radius: 999px; font-size: 15px; font-weight: 500;
  border: 1px solid var(--line); background: var(--surface); transition: background .25s, transform .25s var(--ease), border-color .25s;
}
.btn:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, .18); transform: translateY(-1px); }
.btn--light { --pulse: rgba(242, 241, 238, .6); background: var(--text); color: #111; border-color: var(--text); }
.btn--light:hover { background: #fff; }

/* Arrow: on hover the right arrow fades out to the right while a second one slides in
   from the left and pushes the label over. */
.btn .ic { display: inline-flex; overflow: hidden; transition: max-width .5s var(--ease), margin .5s var(--ease), opacity .35s, transform .5s var(--ease); }
.btn .ic svg { flex: 0 0 auto; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.btn .ic--in { max-width: 0; margin-right: -10px; opacity: 0; transform: translateX(-12px); }
.btn .ic--out { max-width: 14px; }
.btn:hover .ic--in { max-width: 14px; margin-right: 0; opacity: 1; transform: none; }
.btn:hover .ic--out { max-width: 0; margin-left: -10px; opacity: 0; transform: translateX(12px); }

/* One ripple on hover: the ring spreads out around the pill (keeping its shape) while it fades
   and softens – all in one continuous eased motion */
.btn::after {
  content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; pointer-events: none;
  opacity: 0;
}
.btn:hover::after { animation: btn-pulse 1.4s cubic-bezier(.22, .61, .36, 1) 1; }
@keyframes btn-pulse {
  from { opacity: .85; box-shadow: 0 0 0 0 var(--pulse); filter: blur(0); }
  to   { opacity: 0;   box-shadow: 0 0 0 18px var(--pulse); filter: blur(5px); }
}

/* Pulse only, no arrow swap (e.g. "See the work") */
.btn--pulse-only .ic { max-width: none; margin: 0; opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .btn:hover::after { animation: none; } }

/* ---------- Reveal: fade + position up (+ a touch of blur) ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: grid; place-items: center; padding: 120px 0 60px; text-align: center; position: relative;
  overflow-x: clip; /* hidden keywords stick out to the right – never let them widen the page (phones zoom out) */ }
.hero > .wrap { position: relative; z-index: 1; }


.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); letter-spacing: .02em; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 1px; background: var(--accent); box-shadow: 0 0 0 4px rgba(241, 166, 56, .15); }
.hero h1 { font-size: clamp(38px, 5.6vw, 92px); font-weight: 600; margin-top: 28px; }
.hero h1 .line { display: block; }
@media (min-width: 700px) { .hero h1 .line { white-space: nowrap; } }
/* Phones: always the same 5 lines – "Hi, I'm [photo]" / "Constantin." / "Let's create" / "[emoji] word" /
   "that [emoji] word". The size is derived from the widest combination ("that 🚀 perform" ≈ 7.1 × font size). */
.m-br { display: none; }
@media (max-width: 699px) {
  .m-br { display: inline; }
  .hero h1 { font-size: min(calc((100vw - 40px) / 7.3), 60px); }
  .hero h1 .line { white-space: nowrap; }
}
.hero h1 .muted { color: var(--dim); }
.inline-photo {
  display: inline-block; vertical-align: middle; width: 1.55em; height: .9em; margin: -.15em .12em 0; border-radius: 999px;
  background: url('../img/constantin.jpg') 50% 32% / 118% auto no-repeat; box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(0, 0, 0, .35);
  transform: rotate(-4deg); transition: transform .4s var(--ease);
}
.inline-photo:hover { transform: rotate(3deg) scale(1.06); }

/* rotating keywords */
.swap { position: relative; display: inline-flex; vertical-align: bottom; height: 1.06em; overflow: visible; transition: width .55s var(--ease); white-space: nowrap; }
.swap span {
  position: absolute; left: 0; bottom: 0; white-space: nowrap; color: var(--text);
  opacity: 0; transform: translateY(.45em); filter: blur(10px);
  transition: opacity .55s var(--ease), transform .55s var(--ease), filter .55s var(--ease);
}
.swap span.is-on { opacity: 1; transform: none; filter: none; }
.swap span.is-out { opacity: 0; transform: translateY(-.45em); filter: blur(10px); }
.swap .emoji { font-size: .72em; margin-right: .2em; display: inline-block; transform: translateY(-.06em); font-style: normal; }
.hero-sub { margin: 28px auto 0; max-width: 560px; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); }
.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.scroll-hint { margin-top: 56px; font-size: 13px; color: var(--dim); display: inline-flex; gap: 8px; align-items: center; }
.scroll-hint i { width: 1px; height: 28px; background: linear-gradient(var(--dim), transparent); animation: hint 2s var(--ease) infinite; }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Tilted 3-row creative wall ---------- */
/* Only clipped sideways: the tilted rows may reach up into the hero and down into the next
   section, so there's never a cut edge. The height fits exactly three rows of tiles. */
.wall {
  --tw: clamp(140px, 11.5vw, 200px);
  --gap: clamp(12px, 1.2vw, 18px);
  position: relative; z-index: 1; overflow-x: clip; overflow-y: visible;
  height: calc(var(--tw) * 16 / 9 * 3 + var(--gap) * 2);
  margin: -5vw 0 10vw;
}
.wall-stage {
  position: absolute; left: 50%; top: 50%; width: 140vw;
  transform: translate(-50%, -50%) rotate(var(--tilt, 8deg));
  display: grid; gap: var(--gap);
  will-change: transform;
}
.wall-row { overflow: visible; touch-action: pan-y; } /* horizontal drags move the row, vertical ones scroll the page */
.wall img, .wall video { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
.wall-row.is-dragging .tile { pointer-events: none; }
/* Movement is driven by JS (eases to a stop on hover) */
.wall-track { display: flex; gap: var(--gap); width: max-content; will-change: transform; }

.tile {
  position: relative; flex: 0 0 auto; width: var(--tw); aspect-ratio: 9 / 16;
  border-radius: 16px; overflow: hidden; background: var(--bg-2); cursor: pointer;
  box-shadow: 0 0 0 1px var(--line), 0 20px 40px rgba(0, 0, 0, .35);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile video { opacity: 0; transition: opacity .35s; }
.tile.is-playing video { opacity: 1; }
.tile:hover { transform: scale(1.04); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 30px 60px rgba(0, 0, 0, .5); z-index: 2; }
.tile .tag {
  position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 8px 10px; border-radius: 10px;
  background: rgba(15, 15, 17, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 12px; line-height: 1.25; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease);
}
.tile .tag b { display: block; font-weight: 500; }
.tile .tag small { color: var(--muted); }
.tile:hover .tag, .tile.is-playing .tag { opacity: 1; transform: none; }
.tile .sound {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; padding: 0; border: 0;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(15, 15, 17, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: rgba(255, 255, 255, .85);
  opacity: 0; transition: opacity .3s, background .2s;
}
.tile .sound:hover { background: rgba(15, 15, 17, .7); }
.tile .sound svg, .sound-toggle svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile.is-video .sound { opacity: .75; }
.tile.is-video:hover .sound { opacity: 1; }
/* on/off icon follows the wall's sound state */
.sound .i-on, .sound-toggle .i-on, .sound-on .sound .i-off, .sound-on .sound-toggle .i-off { display: none; }
.sound-on .sound .i-on, .sound-on .sound-toggle .i-on { display: block; }
.sound-on .tile .sound { color: var(--accent); }
/* Sound switch for the whole wall: fixed at the bottom of the screen above the edge blur, shown while the wall is in view */
.sound-toggle {
  position: fixed; left: 50%; bottom: 28px; z-index: 45;
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; cursor: pointer;
  font: 500 14px var(--body); color: var(--text);
  background: rgba(21, 22, 24, .72); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transform: translate(-50%, 10px); pointer-events: none;
  transition: opacity .35s, transform .35s var(--ease), border-color .2s, color .2s;
}
.sound-toggle.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.sound-toggle:hover { border-color: rgba(255, 255, 255, .28); }
.sound-on .sound-toggle { color: var(--accent); border-color: rgba(241, 166, 56, .45); }
.sound-toggle svg { width: 16px; height: 16px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 110px) 0; position: relative; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 80px); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.label { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.label::before { content: ''; width: 7px; height: 7px; border-radius: 1px; background: var(--accent); box-shadow: 0 0 0 4px rgba(241, 166, 56, .15); margin: 0 4px 0 4px; }
.section-head h2 { font-size: clamp(36px, 5vw, 72px); }
.section-head p { color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); max-width: 520px; }

/* Bento for creative strategy */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.card {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: clamp(22px, 2.4vw, 34px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  border: 1px solid var(--line);
}
.card::before { /* top-edge light reflection */
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
}
.card h3 { font-size: clamp(22px, 2vw, 30px); margin-bottom: 12px; }
.card p { color: var(--muted); }
.card .num { font-family: var(--display); font-size: 14px; color: var(--accent); margin-bottom: 40px; display: block; }
.bento .card:nth-child(1) { grid-column: span 4; }
.bento .card:nth-child(2) { grid-column: span 2; }
.bento .card:nth-child(3) { grid-column: span 2; }
.bento .card:nth-child(4) { grid-column: span 2; }
.bento .card:nth-child(5) { grid-column: span 2; }
.card--intro h3 { font-size: clamp(28px, 3vw, 44px); max-width: 16ch; }

/* Glowing cards (Aceternity-style): outer frame + darker inner card, icon box instead of a number,
   and a gold light that runs along the frame towards the cursor when it comes close. */
.glow-card {
  --angle: 0; --active: 0; --spread: 46;
  overflow: visible; padding: 9px; border-radius: 26px;
  background: rgba(255, 255, 255, .015); border: 1px solid var(--line);
}
.glow-card::before { display: none; }
.card-inner {
  position: relative; z-index: 1; height: 100%; border-radius: 18px; padding: clamp(22px, 2.4vw, 32px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  background: linear-gradient(180deg, #121315, #0e0f11);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .045), 0 10px 30px rgba(0, 0, 0, .35);
}
.card--intro .card-inner { min-height: 320px; }
.card-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .02); color: var(--text);
}
.card-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.kicker { display: block; font-family: var(--display); font-size: 14px; color: var(--accent); margin-bottom: 14px; }
/* The glow: a conic gradient peaking at --angle, cut down to the 1.5px frame by a mask */
.glow {
  position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  padding: 1.6px; opacity: var(--active); transition: opacity .4s var(--ease);
  background: conic-gradient(from calc((var(--angle) - var(--spread)) * 1deg),
    transparent 0deg, var(--accent) calc(var(--spread) * 1deg), transparent calc(var(--spread) * 2deg), transparent 360deg);
  filter: drop-shadow(0 0 4px rgba(241, 166, 56, .38));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.glow::after { /* soft halo around the lit part of the frame */
  content: ''; position: absolute; inset: 0; border-radius: inherit; background: inherit; filter: blur(10px); opacity: .7;
}
@media (hover: none) { .glow { display: none; } }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.pills span { padding: 7px 14px; border-radius: 999px; font-size: 14px; border: 1px solid var(--line); color: var(--text); background: rgba(255, 255, 255, .03); }

.loop { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.loop svg { width: 18px; height: 18px; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* AI cases */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
/* Box in a box, like the strategy cards: frame (.glow-card) + darker inner box with the media */
.case { position: relative; display: block; }
.case-media, .design-inner {
  position: relative; z-index: 1; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, #121315, #0e0f11);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.case-media::before, .design-inner::before { /* hairline on top of the media, like the inner strategy card */
  content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.case-media { aspect-ratio: 1 / 1; }
.case img, .case video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.case video { opacity: 0; transition: opacity .4s, transform .8s var(--ease); }
.case:hover video { opacity: 1; }
.case:hover img, .case:hover video { transform: scale(1.04); }
.case-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(10, 10, 12, .85)); }
.case-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 24px; display: grid; gap: 8px; }
.case-info small { color: var(--muted); font-size: 13px; }
.case-info h3 { font-size: clamp(22px, 1.9vw, 28px); }
.case-info .more { display: inline-flex; gap: 8px; font-size: 14px; color: var(--text); opacity: .8; }
.case:hover .case-info .more { opacity: 1; }

/* Organic: phone */
.organic { display: grid; grid-template-columns: 1fr auto; gap: clamp(40px, 7vw, 120px); align-items: center; }
.organic h2 { font-size: clamp(36px, 5vw, 72px); margin-bottom: 22px; }
.organic .copy p { color: var(--muted); max-width: 470px; }
.client-list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 0; max-width: 470px; }
.client-list li { border-top: 1px solid var(--line); }
.client-list button {
  all: unset; box-sizing: border-box; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0; font-size: 15px; cursor: pointer; transition: color .3s, padding .4s var(--ease);
}
.client-list button span:first-child { display: inline-flex; align-items: center; gap: 0; transition: gap .4s var(--ease); }
.client-list button span:first-child::before { /* square marker, appears for the reel that's playing */
  content: ''; width: 0; height: 7px; border-radius: 1px; background: var(--accent); transition: width .4s var(--ease);
}
.client-list button span:last-child { color: var(--muted); text-align: right; transition: color .3s; }
.client-list button:hover span:first-child { color: #fff; }
.client-list li.is-playing button { color: var(--accent); }
.client-list li.is-playing button span:first-child { gap: 10px; }
.client-list li.is-playing button span:first-child::before { width: 7px; }
.client-list li.is-playing button span:last-child { color: rgba(241, 166, 56, .7); }

.phone-wrap { display: flex; align-items: center; gap: 18px; }
.now-playing { display: none; }
.phone {
  position: relative; width: clamp(260px, 24vw, 330px); aspect-ratio: 9 / 19.2; border-radius: 48px; padding: 10px;
  min-height: 0; overflow: hidden; /* without this the stacked reels can stretch the phone to their full height */
  flex: 0 0 auto;
  background: linear-gradient(145deg, #3a3b3f, #1b1c1f 40%, #2a2b2e);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 40px 80px rgba(0, 0, 0, .55), 0 0 0 1px #000;
}
.phone-screen { position: relative; height: 100%; border-radius: 39px; overflow: hidden; background: #000; }
.phone-island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 5; }
.feed { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.feed::-webkit-scrollbar { display: none; }
.reel { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; background: #000; }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel-top { position: absolute; top: 46px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 17px; z-index: 2; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.reel-ui { position: absolute; right: 10px; bottom: 90px; display: grid; gap: 18px; justify-items: center; z-index: 2; }
.reel-ui svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .4)); }
.reel-meta { position: absolute; left: 14px; right: 60px; bottom: 22px; z-index: 2; font-size: 13px; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.reel-meta .user { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 6px; }
.reel-meta .avatar { width: 28px; height: 28px; border-radius: 50%; background: url('../img/logo-cc.png') center / 70% no-repeat, #1c1d20; border: 1px solid rgba(255, 255, 255, .5); }
.reel-meta .follow { padding: 3px 9px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 7px; font-size: 12px; }
.reel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .25), transparent 18%, transparent 65%, rgba(0, 0, 0, .55)); pointer-events: none; }
.mute-btn { position: absolute; top: 44px; right: 14px; z-index: 6; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .45); cursor: pointer; font-size: 15px; display: none; }
.phone-nav { display: grid; gap: 10px; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 18px; transition: background .2s; }
.round-btn:hover { background: var(--surface-2); }

/* Design / branding */
.design-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.design-item { position: relative; }
.design-item .imgs { position: relative; aspect-ratio: 1; overflow: hidden; }
.design-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.design-item img + img { opacity: 0; }
.design-item:hover img + img { opacity: 1; }
.design-item:hover img { transform: scale(1.03); }
.design-item .meta { padding: 18px 18px 20px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.design-item h3 { font-size: 19px; letter-spacing: -.01em; }
.design-item small { color: var(--muted); font-size: 13px; text-align: right; }

/* Contact */
.contact { text-align: center; padding-bottom: clamp(80px, 9vw, 130px); }
.contact h2 { font-size: clamp(44px, 8vw, 130px); }
.contact h2 .muted { color: var(--dim); }
.contact p { color: var(--muted); margin: 26px auto 34px; max-width: 520px; }
.footer { border-top: 1px solid var(--line); padding: 28px 0 clamp(24px, 3vw, 40px); color: var(--muted); font-size: 14px; }
.footer-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.footer-bar small { color: var(--dim); font-size: 14px; }
.footer-bar nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bar a { color: var(--muted); transition: color .2s; }
.footer-bar a:hover { color: var(--text); }
/* Big logo at the very bottom, fully visible */
.footer-mark { max-width: var(--max); margin: clamp(20px, 2.5vw, 36px) auto 0; padding: 0 var(--gutter); }
.footer-mark img { width: 100%; height: auto; }


/* ---------- Case pages ---------- */
.case-page { padding-top: 130px; }
.case-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.back { display: flex; width: max-content; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 34px; }
.back:hover { color: var(--text); }
.case-hero h1 { font-size: clamp(42px, 6vw, 92px); margin-bottom: 24px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 36px 0; border-top: 1px solid var(--line); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--dim); font-size: 13px; margin-bottom: 4px; }
.facts dd { margin: 0; }
.case-video { position: sticky; top: 110px; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 40px 80px rgba(0, 0, 0, .5); }
.case-video video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.case-body { display: grid; gap: 40px; margin-top: 50px; }
.case-body h2 { font-size: 24px; margin-bottom: 12px; }
.case-body p { color: var(--muted); max-width: 60ch; }
.todo { color: var(--accent) !important; font-style: italic; }
.next-case { margin-top: clamp(90px, 10vw, 150px); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav { padding: 14px var(--gutter); }
  /* Phones: the short "Cc." mark instead of the full wordmark */
  .nav .logo-long { display: none; }
  .nav .logo .logo-short { display: block; height: 28px; width: auto; }
  .nav .btn { padding: 9px 14px; font-size: 14px; }
  .section-head, .organic, .case-hero { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento .card:nth-child(n) { grid-column: auto; }
  .cases, .design-grid { grid-template-columns: 1fr; }
  .case-media { aspect-ratio: 4 / 4.6; }
  .phone-wrap { flex-direction: column; align-items: center; gap: 0; }
  .phone-nav { display: none; }
  /* Phones: heading + text, then the phone, then one line with what's playing – no list */
  .organic .client-list { display: none; }
  .phone { width: min(78vw, 330px); }  /* same width as the line below */
  .now-playing {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    width: min(78vw, 330px); margin: 18px 0 0; padding: 14px 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13.5px; white-space: nowrap;
  }
  .np-format { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .np-title { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); }
  .np-title::before { content: ''; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 1px; background: var(--accent); }
  .np-format { color: rgba(241, 166, 56, .7); text-align: right; }
  .now-playing.is-swap span { animation: np-in .5s var(--ease); }
  @keyframes np-in { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
  .wall { --tw: 132px; margin: -40px 0 80px; }
  .wall-stage { width: 260vw; }

  .case-video { position: relative; top: 0; max-width: 420px; order: -1; margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  html { scroll-behavior: auto; }
}

.edge-blur.is-off { opacity: 0; }

/* ---------- Legal page ---------- */
.legal-page { max-width: 860px; }
.legal-page h1 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 28px; }
.legal-page .legal-h1 { margin-top: clamp(56px, 7vw, 96px); }
.legal-body { color: var(--muted); }
.legal-body p { margin-bottom: 1em; max-width: 70ch; }
.legal-body h2 { font-size: 20px; color: var(--text); margin: 2em 0 .6em; letter-spacing: -.01em; }
.legal-body a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }
.legal-body a:hover { text-decoration-color: var(--accent); }

/* ---------- Mobile hero (kept at the end so it wins over the base rules above) ---------- */
@media (max-width: 699px) {
  /* Phones: start right under the menu instead of centring in a full-height screen,
     keep the focus on the headline and drop the e-mail button (the CTA top right covers it) */
  .hero { min-height: auto; place-items: start center; padding: 100px 0 36px; }
  .hero h1 { margin-top: 38px; }
  .hero-sub { font-size: 15px; margin-top: 38px; max-width: 34ch; }
  .hero .hero-cta { display: none; } /* the menu CTA and the wall right below do the job on phones */
  .scroll-hint { display: none; } /* the creative wall peeking in below already invites scrolling */
  .wall { margin-top: 56px; } /* the tilted rows rise on the left – keep them clear of the button */
}
