/* ==========================================================================
   FORME — Design Studio. Inspired structurally by neuemontreal.com
   Brand: deep forest green (#1F3B2C) on warm cream (#F3EFE4)
   Typography: General Sans (grotesque, close analogue to PP Neue Montreal)
   ========================================================================== */

:root {
  --cream: #F3EFE4;
  --cream-dim: #E9E3D4;
  --ink: #14180F;
  --green: #1F3B2C;
  --green-deep: #12241A;
  --green-bright: #3E7A57;
  --line: rgba(20, 24, 15, 0.14);
  --line-soft: rgba(20, 24, 15, 0.08);

  --font: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1440px;
  --pad: clamp(20px, 4vw, 64px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  background: var(--cream);
  scroll-behavior: auto;
}

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  font-weight: 400;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 860px) {
  body { cursor: auto; }
}

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

::selection { background: var(--green); color: var(--cream); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-bright);
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--green-deep);
  color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
}
.preloader__mark {
  width: 72px; height: 72px;
  color: var(--cream);
  animation: spin 2.6s linear infinite;
}
.preloader__mark path { stroke-dasharray: 480; stroke-dashoffset: 480; animation: draw 1.8s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.preloader__wordmark {
  font-size: 13px; letter-spacing: 0.4em; font-weight: 500; opacity: 0.85;
}
.preloader__pct {
  position: absolute; bottom: 40px; right: 40px;
  font-size: 13px; font-variant-numeric: tabular-nums; opacity: 0.7;
}

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; width: 14px; height: 14px;
  border-radius: 50%; background: var(--green);
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), background 0.25s;
  display: flex; align-items: center; justify-content: center;
}
.cursor.is-view { width: 64px; height: 64px; background: var(--green); }
.cursor.is-drag { width: 88px; height: 88px; background: var(--cream); mix-blend-mode: normal; }
.cursor__label {
  font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--cream);
  opacity: 0; transition: opacity 0.2s;
}
.cursor.is-drag .cursor__label { color: var(--green); }
.cursor.is-view .cursor__label, .cursor.is-drag .cursor__label { opacity: 1; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 900; background: var(--line-soft); }
.scroll-progress__bar { height: 100%; width: 0%; background: var(--green); transform-origin: left; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 800;
  padding: 22px var(--pad);
  display: flex; align-items: center;
  color: var(--cream);
}
.nav__inner {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  mix-blend-mode: difference;
}
/* When the mobile menu is open it already sits on an opaque dark panel —
   switch off the blend mode there instead of using isolation (isolation +
   mix-blend-mode on a position:fixed ancestor triggers a compositor bug
   that blanks the page on scroll in some Chromium builds). */
.nav.is-menu-open .nav__inner { mix-blend-mode: normal; color: var(--cream); }
.nav__logo { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.nav__logo-dot { color: var(--green-bright); }
.nav__links { display: flex; gap: 32px; }
.nav__link {
  font-size: 13px; letter-spacing: 0.03em; position: relative; padding-bottom: 3px;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 26px; color: inherit; }
.nav__toggle span { height: 2px; background: currentColor; width: 100%; transition: transform 0.3s, opacity 0.3s; border-radius: 1px; }
.nav__toggle.is-active span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle.is-active span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav__mobile {
  position: fixed; inset: 0; background: var(--green-deep); color: var(--cream);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 18px; padding: var(--pad);
  transform: translateY(-100%); transition: transform 0.5s var(--ease-in-out);
  z-index: -1;
}
.nav__mobile.is-open { transform: translateY(0); z-index: 799; }
.nav__mobile a { font-size: 32px; font-weight: 500; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
}

/* ---------- Section shell ---------- */
section { position: relative; padding: clamp(80px, 12vw, 160px) var(--pad); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 120px;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  width: 100%;
}
.hero__content { min-width: 0; }
.hero__eyebrow { margin-bottom: 24px; overflow: hidden; }
.hero__eyebrow span { display: inline-block; }
.hero__title {
  font-size: clamp(40px, 6.6vw, 104px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.hero__line { display: block; overflow: hidden; }
.hero__line--outline {
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
}
.hero__sub {
  max-width: 460px; margin-top: 32px;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.5;
  color: rgba(20,24,15,0.72);
  overflow: hidden;
}
.hero__sub span { display: inline-block; }
.hero__scroll {
  margin-top: 56px;
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(20,24,15,0.5);
}
.hero__scroll-line { width: 50px; height: 1px; background: var(--line); overflow: hidden; }
.hero__scroll-line i { display: block; width: 40%; height: 100%; background: var(--green); animation: scrollLine 1.8s var(--ease-in-out) infinite; }
@keyframes scrollLine { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* Cursor-reactive ambient blob */
.hero__blob {
  position: absolute; top: 50%; left: 28%; width: 640px; height: 640px;
  margin: -320px 0 0 -320px; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at center, rgba(62,122,87,0.28) 0%, rgba(62,122,87,0.12) 40%, rgba(62,122,87,0) 70%);
  will-change: transform;
}

/* ---------- Hero visual: artistic image with cursor-tilt + glare ---------- */
.hero__visual { position: relative; width: 100%; perspective: 1000px; }
.hero__image {
  position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden;
  background-image: var(--img); background-size: cover; background-position: center;
  filter: saturate(1.05) contrast(1.08);
  box-shadow: 0 30px 70px rgba(18,36,26,0.28);
  transition: filter 0.5s, box-shadow 0.5s;
  transform-style: preserve-3d;
  will-change: transform;
}
.hero__image-tint {
  position: absolute; inset: 0;
  background: linear-gradient(195deg, rgba(31,59,44,0.22) 0%, rgba(18,36,26,0.1) 40%, rgba(18,36,26,0.5) 100%);
  mix-blend-mode: multiply;
}
/* Particle-dissolve canvas — sits under the tint/glare so the colour grading still applies */
.hero__particles {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
/* Cursor-follow glare sheen — the awwwards-style hover */
.hero__image-glare {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(243,239,228,0.5), rgba(243,239,228,0) 42%);
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.4s;
}
.hero__image-frame {
  position: absolute; inset: 10px; border: 1px solid rgba(243,239,228,0.35);
  border-radius: 10px; pointer-events: none;
  opacity: 0; transform: scale(0.97); transition: opacity 0.5s, transform 0.5s var(--ease-out);
}
.hero__visual:hover .hero__image { filter: saturate(1.2) contrast(1.1); box-shadow: 0 40px 90px rgba(18,36,26,0.36); }
.hero__visual:hover .hero__image-glare { opacity: 1; }
.hero__visual:hover .hero__image-frame { opacity: 1; transform: scale(1); }

/* Floating tag pills */
.hero__tag {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream); color: var(--ink);
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.01em;
  padding: 10px 16px 10px 12px; border-radius: 100px;
  box-shadow: 0 12px 28px rgba(18,36,26,0.18);
  animation: tagFloat 4.5s ease-in-out infinite;
  z-index: 4;
}
.hero__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); flex: none; }
.hero__tag--a { top: 8%; right: -6%; animation-delay: 0s; }
.hero__tag--b { bottom: 16%; left: -8%; animation-delay: 1.4s; }
@keyframes tagFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 1180px) {
  .hero__tag--a { right: 4%; }
  .hero__tag--b { left: 4%; }
}

/* Vertical numbered step-nav along the image's left edge */
.hero__steps {
  position: absolute; top: 50%; left: -22px; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 4;
}
.hero__steps::before {
  content: ""; position: absolute; top: -18px; bottom: -18px; left: 50%; width: 1px;
  background: var(--line); z-index: -1;
}
.hero__step {
  width: 40px; height: 40px; border-radius: 50%; background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--ink);
  box-shadow: 0 8px 20px rgba(18,36,26,0.18);
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}
.hero__step:hover { background: var(--green); color: var(--cream); transform: scale(1.1); }
@media (max-width: 1180px) { .hero__steps { display: none; } }

/* Rotating interactive seal — now a stamp over the image */
.hero__badge {
  position: absolute; left: -8%; bottom: -8%;
  width: clamp(96px, 9vw, 136px); height: clamp(96px, 9vw, 136px);
  color: var(--green);
  cursor: pointer;
  background: var(--cream); border-radius: 50%;
  box-shadow: 0 14px 32px rgba(18,36,26,0.22);
  z-index: 5;
}
.hero__badge-ring {
  width: 100%; height: 100%;
  animation: badgeSpin 26s linear infinite;
  transition: animation-duration 0.4s;
}
.hero__badge:hover .hero__badge-ring { animation-duration: 8s; }
@keyframes badgeSpin { to { transform: rotate(360deg); } }
.hero__badge-center {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.hero__badge-center span {
  font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; color: var(--green);
  transition: transform 0.4s var(--ease-out);
}
.hero__badge:hover .hero__badge-center span { transform: scale(1.12); }
@media (max-width: 640px) {
  .hero__badge { left: 12px; bottom: 12px; }
}

@media (max-width: 1180px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 420px; margin: 40px auto 0; }
}
@media (max-width: 640px) {
  .hero__tag { position: static; margin: 8px 8px 0 0; display: inline-flex; animation: none; }
}

.hero__marquee { position: relative; width: 100%; margin-top: 48px; border-top: 1px solid var(--line); padding: 18px 0; }
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 24px; animation: marquee 24s linear infinite; }
.marquee__track span { font-size: 14px; letter-spacing: 0.02em; color: rgba(20,24,15,0.55); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: 260px 1fr; gap: 40px; border-top: 1px solid var(--line); }
.story__lead { font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; line-height: 1.3; margin-bottom: 28px; max-width: 900px; }
.story__text { font-size: 17px; line-height: 1.65; color: rgba(20,24,15,0.72); max-width: 700px; margin-bottom: 18px; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

/* ---------- Services list ---------- */
.services { border-top: 1px solid var(--line); }
.services__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0 60px; align-items: end; }
.services__intro h2 { font-size: clamp(32px, 4vw, 56px); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }
.services__intro p { font-size: 16px; color: rgba(20,24,15,0.65); max-width: 420px; }
.services__list { border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: 60px 1fr 1fr; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: padding 0.4s var(--ease-out);
}
.service-row:hover { padding-left: 16px; }
.service-row__num { font-size: 13px; color: rgba(20,24,15,0.4); font-variant-numeric: tabular-nums; }
.service-row__name {
  font-size: clamp(30px, 5vw, 64px);
  font-weight: 600; letter-spacing: -0.01em;
  transition: color 0.4s, font-weight 0.4s, -webkit-text-stroke 0.4s;
  color: var(--ink);
}
.service-row:hover .service-row__name { color: var(--green); }
.service-row__desc {
  font-size: 15px; color: rgba(20,24,15,0.55); text-align: right; max-width: 340px; justify-self: end;
  opacity: 0; transform: translateX(12px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.service-row:hover .service-row__desc { opacity: 1; transform: translateX(0); }
.services__preview {
  position: fixed; top: 50%; left: 50%; width: 320px; height: 400px;
  transform: translate(-50%, -50%) scale(0.9); pointer-events: none; z-index: 500;
  border-radius: 4px; overflow: hidden; opacity: 0;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  background-size: cover; background-position: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}
.services__preview.is-active { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (max-width: 860px) {
  .services__intro { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 40px 1fr; }
  .service-row__desc { display: none; }
  .services__preview { display: none; }
}

/* ---------- Timeline ---------- */
.timeline { border-top: 1px solid var(--line); overflow: hidden; }
.timeline__track-wrap { margin-top: 50px; overflow: visible; }
.timeline__track { display: flex; gap: 4px; width: max-content; }
.timeline__item {
  min-width: 280px; padding: 30px 30px 30px 0; border-left: 1px solid var(--line);
  padding-left: 28px;
}
.timeline__year { font-size: 15px; color: var(--green-bright); font-weight: 500; }
.timeline__event { display: block; font-size: 26px; font-weight: 600; margin: 10px 0 12px; letter-spacing: -0.01em; }
.timeline__item p { font-size: 14px; color: rgba(20,24,15,0.6); line-height: 1.5; max-width: 260px; }

/* ---------- Statement ---------- */
.statement { display: flex; align-items: center; justify-content: center; text-align: center; background: var(--green); color: var(--cream); overflow: hidden; }
.statement__text {
  font-size: clamp(48px, 11vw, 168px); font-weight: 700; line-height: 0.95; letter-spacing: -0.03em;
}
.statement__outline { -webkit-text-stroke: 1.5px var(--cream); color: transparent; }

/* ---------- Evolution ---------- */
.evolution { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; border-top: 1px solid var(--line); }
.evolution__visual { display: flex; align-items: center; gap: 24px; font-size: clamp(28px, 4vw, 52px); font-weight: 600; }
.evolution__word--from { color: rgba(20,24,15,0.35); font-weight: 300; }
.evolution__word--to { color: var(--green); }
.evolution__arrow { color: var(--green-bright); }
.evolution__copy p { margin-top: 16px; font-size: 16px; line-height: 1.65; color: rgba(20,24,15,0.7); max-width: 520px; }
@media (max-width: 860px) { .evolution { grid-template-columns: 1fr; } }

/* ---------- Work grid ---------- */
.work { border-top: 1px solid var(--line); }
.work__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0 60px; align-items: end; }
.work__intro h2 { font-size: clamp(32px, 4vw, 56px); font-weight: 600; line-height: 1.05; }
.work__intro p { font-size: 16px; color: rgba(20,24,15,0.65); max-width: 420px; }
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.work-card { background: var(--cream); padding: 30px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; position: relative; }
.work-card__media {
  width: 100%; aspect-ratio: 4/3; border-radius: 2px; overflow: hidden;
  background-image: var(--img); background-size: 110%; background-position: center;
  transition: background-size 0.7s var(--ease-out), filter 0.7s;
  filter: grayscale(0.5) brightness(0.95);
}
.work-card:hover .work-card__media { background-size: 130%; filter: grayscale(0) brightness(1); }

/* ---------- Capability card icons (custom SVG, on-topic per card) ---------- */
.work-card__media--icon {
  background: var(--cream-dim);
  display: flex; align-items: center; justify-content: center;
}
.wcard-svg { width: 100%; height: 100%; overflow: visible; }

/* Brand Identity — concentric rings + monogram, rings rotate in on hover */
.wcard-svg--identity .ring { fill: none; stroke: var(--green); stroke-width: 1.4; opacity: 0.5; transform-origin: 100px 75px; transition: transform 0.6s var(--ease-out), opacity 0.4s; }
.wcard-svg--identity .ring--2 { stroke: var(--green-bright); }
.wcard-svg--identity .mono-letter { font-size: 30px; font-weight: 700; fill: var(--green); text-anchor: middle; }
.work-card:hover .wcard-svg--identity .ring--1 { transform: rotate(35deg); opacity: 0.85; }
.work-card:hover .wcard-svg--identity .ring--2 { transform: rotate(-45deg); opacity: 1; }
.work-card:hover .wcard-svg--identity .ring--3 { transform: rotate(60deg); opacity: 0.85; }

/* Web Design — browser mockup, content blocks slide in on hover */
.wcard-svg--web .browser-frame { fill: var(--cream); stroke: var(--line); stroke-width: 1.5; }
.wcard-svg--web .browser-bar { stroke: var(--line); stroke-width: 1.5; }
.wcard-svg--web .browser-dot { fill: rgba(20,24,15,0.25); }
.wcard-svg--web .browser-block { fill: var(--line); transition: transform 0.5s var(--ease-out), opacity 0.5s; opacity: 0.8; }
.wcard-svg--web .browser-cta { fill: var(--green); transition: transform 0.5s var(--ease-out); }
.work-card:hover .wcard-svg--web .b1 { transform: translateX(4px); }
.work-card:hover .wcard-svg--web .b2 { transform: translateX(8px); }
.work-card:hover .wcard-svg--web .b3 { transform: translateX(4px); }
.work-card:hover .wcard-svg--web .browser-cta { transform: scale(1.06); }

/* Motion Design — play button with animated progress ring */
.wcard-svg--motion .motion-track { fill: none; stroke: var(--line); stroke-width: 2; }
.wcard-svg--motion .motion-progress {
  fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 264; stroke-dashoffset: 264; transform-origin: 100px 75px; transform: rotate(-90deg);
  transition: stroke-dashoffset 0.9s var(--ease-out);
}
.wcard-svg--motion .motion-play { fill: var(--green); transition: transform 0.3s var(--ease-out); transform-origin: 100px 75px; }
.work-card:hover .wcard-svg--motion .motion-progress { stroke-dashoffset: 40; }
.work-card:hover .wcard-svg--motion .motion-play { transform: scale(1.1); }

/* Packaging — box, top flap folds down to close on hover */
.wcard-svg--packaging .box-line { fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linejoin: round; }
.wcard-svg--packaging .box-face { fill: var(--cream); }
.wcard-svg--packaging .box-face--left { fill: rgba(31,59,44,0.06); }
.wcard-svg--packaging .box-face--right { fill: rgba(31,59,44,0.12); }
.wcard-svg--packaging .box-flap { transform-origin: 100px 62px; transition: transform 0.5s var(--ease-out); }
.work-card:hover .wcard-svg--packaging .box-flap { transform: rotateX(0deg) translateY(-8px) scale(1.02); }

/* Art Direction — aperture blades close on hover */
.wcard-svg--art .aperture-ring { fill: none; stroke: var(--line); stroke-width: 1.5; }
.wcard-svg--art .blade { fill: var(--green); opacity: 0.75; transform-origin: 100px 75px; transition: transform 0.5s var(--ease-out); }
.work-card:hover .wcard-svg--art .blade { transform: scale(0.55) rotate(18deg); opacity: 0.95; }

/* Typography — Aa with animated cap/baseline guides */
.wcard-svg--type .type-guide { stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 3; }
.wcard-svg--type .type-glyph { font-size: 74px; font-weight: 600; fill: var(--green); font-style: italic; transition: letter-spacing 0.4s; }
.wcard-svg--type .type-guide--cap { stroke-dashoffset: 40; transition: stroke-dashoffset 0.6s var(--ease-out); }
.work-card:hover .wcard-svg--type .type-guide--cap { stroke-dashoffset: 0; stroke: var(--green-bright); }
.work-card:hover .wcard-svg--type .type-glyph { fill: var(--green-bright); }

/* Editorial — paragraph bars, heading grows on hover */
.wcard-svg--editorial .ed-line { fill: var(--line); transition: width 0.5s var(--ease-out), fill 0.4s; }
.wcard-svg--editorial .ed-line--head { fill: var(--green); }
.work-card:hover .wcard-svg--editorial .ed-line--head { width: 130px; }

/* Digital Products — UI card stack fans out on hover */
.wcard-svg--product .ui-card { fill: var(--cream); stroke: var(--line); stroke-width: 1.4; transition: transform 0.5s var(--ease-out); transform-origin: 100px 65px; }
.wcard-svg--product .ui-card--1 { fill: var(--cream); }
.wcard-svg--product .ui-line { stroke: var(--line); stroke-width: 2; }
.work-card:hover .wcard-svg--product .ui-card--1 { transform: translate(-10px, -6px) rotate(-6deg); }
.work-card:hover .wcard-svg--product .ui-card--2 { transform: translate(0, 2px); }
.work-card:hover .wcard-svg--product .ui-card--3 { transform: translate(10px, 8px) rotate(4deg); }

/* Spatial Design — isometric grid, wayfinding dot travels on hover */
.wcard-svg--spatial .iso-line { fill: none; stroke: var(--green); stroke-width: 1.4; }
.wcard-svg--spatial .iso-line--soft { stroke: var(--line); stroke-width: 1; }
.wcard-svg--spatial .iso-dot { fill: var(--green-bright); offset-path: path('M100 30 L160 62 L100 94 L40 62 Z'); offset-distance: 0%; animation: none; }
.work-card:hover .wcard-svg--spatial .iso-dot { animation: isoTravel 2.4s linear infinite; }
@keyframes isoTravel { to { offset-distance: 100%; } }
.work-card h3 { font-size: 20px; font-weight: 600; }
.work-card p { font-size: 14px; line-height: 1.55; color: rgba(20,24,15,0.6); }
@media (max-width: 1000px) { .work__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .work__grid { grid-template-columns: 1fr; } .work__intro { grid-template-columns: 1fr; } }

/* ---------- Split compare ---------- */
.split { border-top: 1px solid var(--line); text-align: center; }
.split__title { font-size: clamp(30px, 4.4vw, 56px); font-weight: 600; margin: 24px 0 50px; line-height: 1.1; }
.split__title span { color: var(--green); font-style: italic; font-weight: 500; }
.split__compare {
  position: relative; height: 62vh; max-height: 560px; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--line); cursor: ew-resize;
}
.split__pane { position: absolute; inset: 0; overflow: hidden; }
.split__art { width: 100%; height: 100%; display: block; }
.split__pane-tag {
  position: absolute; top: 24px; left: 24px; z-index: 2;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.65;
}
.split__pane-caption {
  position: absolute; bottom: 24px; left: 24px; right: 24px; z-index: 2;
  font-size: clamp(14px, 1.6vw, 18px); max-width: 380px; line-height: 1.4;
}

.split__pane--concept { background: var(--green-deep); color: var(--cream); }
.sketch-line { fill: none; stroke: rgba(243,239,228,0.28); stroke-width: 1.4; stroke-linecap: round; }
.sketch-stroke { fill: none; stroke: var(--cream); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
.sketch-stroke--1 { stroke-dasharray: 3 5; }
.sketch-stroke--3 { fill: rgba(243,239,228,0.15); stroke-width: 2; }
.sketch-mark { animation: sketchWobble 5s ease-in-out infinite; transform-origin: 300px 200px; }
@keyframes sketchWobble {
  0%, 100% { transform: translate(300px,200px) rotate(-0.6deg); }
  50% { transform: translate(300px,200px) rotate(0.8deg); }
}

.split__pane--execution { background: var(--cream-dim); color: var(--ink); clip-path: inset(0 0 0 50%); }
.system-grid line { stroke: rgba(20,24,15,0.14); stroke-width: 1; }
.system-ring { fill: none; stroke: var(--green); stroke-width: 2; }
.system-ring--inner { stroke: var(--green-bright); stroke-width: 1.4; }
.system-letter { font-size: 34px; font-weight: 700; fill: var(--green); text-anchor: middle; }

.split__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--cream);
  cursor: ew-resize; z-index: 5; box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.split__handle i {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.3s var(--ease-out);
}
.split__handle:hover i, .split__handle:active i { transform: translate(-50%, -50%) scale(1.1); }
.split__handle i::before { content: "↔"; color: var(--cream); font-size: 18px; }
@media (max-width: 640px) { .split__pane-caption { max-width: none; } }

/* ---------- Detail (ligature analog) ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; border-top: 1px solid var(--line); }
.detail__visual { font-size: clamp(60px, 9vw, 140px); font-weight: 600; color: var(--green); letter-spacing: -0.02em; }
.detail__glyph { display: inline-block; transition: transform 0.5s var(--ease-out); }
.detail__glyph--join { position: relative; }
.detail__copy p { margin-top: 16px; font-size: 16px; line-height: 1.65; color: rgba(20,24,15,0.7); max-width: 480px; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }

/* ---------- Chart ---------- */
.chart { border-top: 1px solid var(--line); background: var(--green); color: var(--cream); text-align: center; }
.chart__label { display: block; margin-bottom: 30px; }
.chart__sentence {
  font-size: clamp(22px, 3.6vw, 44px); line-height: 1.3; max-width: 900px; margin: 0 auto 60px;
  font-weight: 500;
}
.chart__weights { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 34px; }
.chart__weights span { font-size: clamp(18px, 2.4vw, 30px); font-variation-settings: "wght" var(--w); cursor: default; opacity: 0.85; transition: opacity 0.3s, transform 0.3s; }
.chart__weights span:hover { opacity: 1; transform: translateY(-4px); }

/* ---------- Reach ---------- */
.reach { border-top: 1px solid var(--line); }
.reach__stats { display: flex; gap: 80px; margin: 40px 0 40px; flex-wrap: wrap; }
.reach__num { display: block; font-size: clamp(48px, 7vw, 96px); font-weight: 700; letter-spacing: -0.02em; color: var(--green); }
.reach__unit { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(20,24,15,0.55); }
.reach__copy { font-size: 17px; line-height: 1.65; max-width: 720px; color: rgba(20,24,15,0.72); margin-bottom: 40px; }
.reach__cloud { display: flex; flex-wrap: wrap; gap: 14px; }
.reach__cloud span {
  padding: 10px 20px; border: 1px solid var(--line); border-radius: 100px; font-size: 14px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.reach__cloud span:hover { background: var(--green); color: var(--cream); border-color: var(--green); }

/* ---------- Principles ---------- */
.principles { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.principles__copy h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; margin: 16px 0 18px; }
.principles__copy p { font-size: 16px; line-height: 1.65; color: rgba(20,24,15,0.7); max-width: 420px; }
.principles__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.principle { background: var(--cream); padding: 34px; }
.principle span { font-size: 13px; color: var(--green-bright); }
.principle h4 { font-size: 24px; font-weight: 600; margin: 14px 0 8px; }
.principle p { font-size: 14px; color: rgba(20,24,15,0.6); }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Spotlight ---------- */
.spotlight { border-top: 1px solid var(--line); text-align: center; }
.spotlight__title { font-size: clamp(30px, 4.6vw, 60px); font-weight: 600; line-height: 1.1; margin: 20px auto 24px; max-width: 900px; }
.spotlight__copy { font-size: 16px; color: rgba(20,24,15,0.68); max-width: 620px; margin: 0 auto 50px; line-height: 1.6; }
.spotlight__ticket {
  max-width: 420px; margin: 0 auto; border: 1px dashed var(--line);
  border-radius: 6px; padding: 30px; display: flex; flex-direction: column; gap: 10px;
  background: var(--cream-dim);
}
.spotlight__ticket span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green-bright); }
.spotlight__ticket strong { font-size: 20px; font-weight: 600; }
.spotlight__ticket em { font-size: 14px; font-style: normal; color: rgba(20,24,15,0.55); }

/* ---------- Origin / Before-After ---------- */
.origin { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.origin__copy h2 { font-size: clamp(26px, 3.2vw, 42px); font-weight: 600; margin: 16px 0 18px; line-height: 1.15; }
.origin__copy p { font-size: 16px; line-height: 1.65; color: rgba(20,24,15,0.7); max-width: 480px; }
.origin__before-after { position: relative; height: 400px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); cursor: ew-resize; }
.origin__frame { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.origin__frame--before { background: var(--cream-dim); }
.origin__frame--after { background: var(--green-deep); color: var(--cream); clip-path: inset(0 0 0 50%); }
.origin__frame span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.55; }
.origin__frame em { font-size: 13px; font-style: normal; opacity: 0.55; }
.origin__art { width: 140px; height: 140px; }

.old-ring { fill: none; stroke: rgba(20,24,15,0.3); stroke-width: 1.5; stroke-dasharray: 5 4; }
.old-letter { font-size: 52px; font-weight: 300; fill: rgba(20,24,15,0.45); text-anchor: middle; }

.origin__art--spin { animation: badgeSpin 22s linear infinite; }
.new-ring { fill: none; stroke: var(--cream); stroke-width: 2; }
.new-letter { font-size: 40px; font-weight: 700; fill: var(--cream); text-anchor: middle; }
.origin__frame--after text:not(.new-letter) { fill: rgba(243,239,228,0.65); }

.origin__slider {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--cream);
  cursor: ew-resize; box-shadow: 0 0 0 1px rgba(0,0,0,0.15); z-index: 5;
}
.origin__slider i {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center; color: var(--cream); font-size: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.3s var(--ease-out);
}
.origin__slider:hover i, .origin__slider:active i { transform: translate(-50%, -50%) scale(1.1); }
.origin__slider i::before { content: "↔"; }
@media (max-width: 860px) { .origin { grid-template-columns: 1fr; } }

/* ---------- Engagement models ---------- */
.models { border-top: 1px solid var(--line); text-align: center; }
.models__title { font-size: clamp(30px, 4.4vw, 56px); font-weight: 600; margin: 16px 0 20px; line-height: 1.1; }
.models__sub { font-size: 16px; color: rgba(20,24,15,0.68); max-width: 600px; margin: 0 auto 50px; }
.models__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); text-align: left; }
.model-card { background: var(--cream); padding: 36px; transition: background 0.4s, color 0.4s; }
.model-card h3 { font-size: 24px; font-weight: 600; margin-bottom: 12px; }
.model-card p { font-size: 15px; line-height: 1.6; color: rgba(20,24,15,0.65); }
.model-card:hover { background: var(--green); color: var(--cream); }
.model-card:hover p { color: rgba(243,239,228,0.8); }
.model-card--accent { background: var(--green-deep); color: var(--cream); }
.model-card--accent p { color: rgba(243,239,228,0.7); }
@media (max-width: 860px) { .models__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--green-deep); color: var(--cream); padding-top: clamp(80px,12vw,160px); }
.footer__top { text-align: center; margin-bottom: 90px; }
.footer__cta { font-size: clamp(40px, 8vw, 100px); font-weight: 600; line-height: 1; margin: 20px 0 34px; letter-spacing: -0.02em; }
.footer__cta-italic { font-style: italic; color: var(--green-bright); font-weight: 500; }
.footer__email { display: inline-block; font-size: clamp(20px, 2.4vw, 28px); border-bottom: 1px solid rgba(243,239,228,0.4); padding-bottom: 6px; transition: border-color 0.3s, color 0.3s; }
.footer__email:hover { border-color: var(--cream); color: var(--green-bright); }
.footer__bottom { display: flex; gap: 80px; flex-wrap: wrap; padding-bottom: 60px; border-bottom: 1px solid rgba(243,239,228,0.14); }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.5; margin-bottom: 6px; }
.footer__col a, .footer__col p { font-size: 15px; opacity: 0.85; transition: opacity 0.3s; }
.footer__col a:hover { opacity: 1; color: var(--green-bright); }
.footer__wordmark {
  font-size: clamp(60px, 14vw, 220px); font-weight: 700; text-align: center; letter-spacing: -0.03em;
  color: rgba(243,239,228,0.06); margin: 40px 0 10px; user-select: none; line-height: 1;
}
.footer__legal { text-align: center; font-size: 12px; opacity: 0.4; padding-bottom: 30px; }

/* ---------- Reveal utility ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); }
