/* ============================================================
   Ape Studios — Cinematic Redesign
   Direction: Dark · Animated · Bold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,700;12..96,800&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;1,9..144,300;1,9..144,400&family=Inter+Tight:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:        #0a0a0a;
  --bg-alt:    #111111;
  --bg-card:   #141414;
  --ink:       #f0ece4;
  --ink-soft:  #9a9488;
  --ink-dim:   #4a4640;
  --rule:      #1e1e1e;
  --accent:    #ff3d00;
  --accent-2:  #ff6b35;
  --accent-glow: rgba(255, 61, 0, 0.18);
  --white:     #ffffff;

  --max:  1380px;
  --pad:  clamp(20px, 4vw, 64px);

  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --serif:   'Fraunces', 'Times New Roman', serif;
  --sans:    'Inter Tight', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.76, 0, 0.24, 1);
  --transition:    0.4s var(--ease-out-expo);
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

/* ── CUSTOM CURSOR ──────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out-expo),
              height 0.3s var(--ease-out-expo),
              background 0.3s;
  mix-blend-mode: normal;
}
.cursor-ring {
  position: fixed;
  width: 40px; height: 40px;
  border: 1.5px solid rgba(255,61,0,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.5s var(--ease-out-expo),
              height 0.5s var(--ease-out-expo),
              border-color 0.3s;
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor { width: 16px; height: 16px; }
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring { width: 56px; height: 56px; border-color: var(--accent); }

/* ── PAGE LOADER ─────────────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.loader-word {
  font-family: var(--display);
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--ink);
  overflow: hidden;
}
.loader-word span { display: inline-block; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ── SCROLL REVEAL SYSTEM ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.9s var(--ease-out-expo),
              transform 0.9s var(--ease-out-expo);
}
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.eyebrow.accent { color: var(--accent); }

.lede {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.45;
  max-width: 52ch;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sans);
  letter-spacing: 0.02em;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out-expo);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-in-out);
  z-index: 0;
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { color: var(--bg); border-color: var(--ink); transform: translateY(-2px); }
.btn > * { position: relative; z-index: 1; }
.btn .arr { transition: transform 0.3s var(--ease-out-expo); }
.btn:hover .arr { transform: translateX(4px); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary::before { background: #fff; }
.btn-primary:hover { color: var(--bg); border-color: #fff; }

.btn-ghost {
  border-color: rgba(240,236,228,0.15);
}

/* ── NAV ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding-block: 0;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s;
}
.nav.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
  gap: 16px;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
  transition: padding-block 0.4s;
}
.nav.scrolled .nav-inner { padding-block: 16px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: opacity 0.3s;
}
.brand:hover { opacity: 0.7; }
.brand img {
  width: 34px; height: 34px;
  border-radius: 8px;
  object-fit: cover;
  filter: brightness(1.1);
}
.brand-dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
}
.nav-links a {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 16px; right: 16px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out-expo);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--ink); }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 9px 20px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  transition: background 0.3s, transform 0.3s var(--ease-out-expo) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--accent-2) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 60;
  flex-shrink: 0;
}
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.2s, top 0.3s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: 120px clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(255,61,0,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(255,61,0,0.04) 0%, transparent 50%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px;
}

.hero-content { position: relative; z-index: 2; }

.hero-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out-expo) 0.8s,
              transform 0.6s var(--ease-out-expo) 0.8s;
}
.hero-label.is-visible { opacity: 1; transform: translateY(0); }
.hero-label::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(72px, 16vw, 240px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.88;
  margin: 0;
  position: relative;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line-inner {
  display: block;
  transform: translateY(100%);
  transition: transform 0.9s var(--ease-out-expo);
}
.hero-title .line:nth-child(1) .line-inner { transition-delay: 0.1s; }
.hero-title .line:nth-child(2) .line-inner { transition-delay: 0.22s; }
.hero-title.is-visible .line-inner { transform: translateY(0); }

.hero-title .accent-word { color: var(--accent); }
.hero-title .outline-word {
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: clamp(40px, 5vw, 64px);
  flex-wrap: wrap;
}
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--ink-soft);
  max-width: 36ch;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out-expo) 0.6s,
              transform 0.7s var(--ease-out-expo) 0.6s;
}
.hero-tagline.is-visible { opacity: 1; transform: translateY(0); }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out-expo) 0.75s,
              transform 0.7s var(--ease-out-expo) 0.75s;
}
.hero-actions.is-visible { opacity: 1; transform: translateY(0); }

.hero-scroll-hint {
  position: absolute;
  bottom: clamp(28px, 4vw, 48px);
  right: var(--pad);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeInScroll 0.8s var(--ease-out-expo) 1.4s forwards;
}
@keyframes fadeInScroll {
  to { opacity: 1; }
}
.hero-scroll-hint span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ── MARQUEE ────────────────────────────────────────────── */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  padding-block: 18px;
  background: var(--bg-alt);
}
.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  font-family: var(--display);
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  animation: marqueeScroll 36s linear infinite;
  width: max-content;
}
.marquee-track .dot { color: var(--accent); font-size: 0.6em; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ── SECTIONS ───────────────────────────────────────────── */
.section { padding-block: clamp(64px, 8vw, 120px); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 56px);
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(42px, 7vw, 100px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.88;
  margin: 0;
}
.section-head h2 em { font-style: normal; color: var(--accent); }
.section-head .meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.section-head .meta-link {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  transition: opacity 0.2s;
}
.section-head .meta-link:hover { opacity: 0.7; }

/* ── FEATURED PROJECT ───────────────────────────────────── */
.featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.featured-img {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 5/4;
}
.featured-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-out-expo);
}
.featured-img:hover img { transform: scale(1.04); }
.featured-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,61,0,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.featured-body h3 {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 80px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin: 16px 0 20px;
}
.featured-body p {
  font-family: var(--serif);
  font-size: clamp(17px, 1.4vw, 20px);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 24px;
}
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.tags span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-soft);
}

/* ── WORK GRID ──────────────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.work-card {
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}
.work-card.shift     { margin-top: 64px; }
.work-card.shift-down { margin-top: 32px; }

.work-card-img {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
}
.work-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out-expo);
  filter: grayscale(15%);
}
.work-card:hover .work-card-img img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.work-card:hover .work-card-overlay { opacity: 1; }
.work-card-overlay-inner {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.work-card-overlay-inner::after {
  content: '↗';
  font-size: 14px;
  font-family: var(--sans);
}

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  gap: 12px;
}
.work-meta .name {
  font-family: var(--display);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 700;
  letter-spacing: -0.025em;
  transition: color 0.2s;
}
.work-card:hover .work-meta .name { color: var(--accent); }
.work-meta .tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ── LOGO GRID ──────────────────────────────────────────── */
.logos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.logos-grid-sm .logo-tile { aspect-ratio: 1; }
.logo-tile {
  aspect-ratio: 1;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  transition: transform 0.4s var(--ease-out-expo),
              border-color 0.3s,
              background 0.3s;
}
.logo-tile:hover {
  transform: translateY(-4px) rotate(-1deg);
  border-color: var(--accent);
  background: var(--bg-alt);
}
.logo-tile img {
  max-width: 65%; max-height: 65%;
  object-fit: contain;
  filter: brightness(1.05);
}
.logo-tile small {
  position: absolute;
  bottom: 10px; left: 14px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ── LOGOS PAGE LAYOUTS ─────────────────────────────────── */
.logos-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-bottom: 64px;
}
.logos-feature {
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  transition: border-color 0.3s;
}
.logos-feature:hover { border-color: var(--accent); }
.logos-feature img { max-width: 55%; max-height: 55%; object-fit: contain; }
.logos-feature .stamp {
  position: absolute; top: 18px; left: 22px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-dim);
}
.logos-feature .label {
  position: absolute; bottom: 20px; left: 22px; right: 22px;
  display: flex; flex-direction: column; gap: 4px;
}
.logos-feature .label h3 {
  font-family: var(--serif); font-size: clamp(20px, 2vw, 28px);
  font-weight: 300; font-style: italic; line-height: 1.1; color: var(--ink);
}
.logos-feature .label span {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-dim);
}
.logos-aside { display: flex; flex-direction: column; gap: 10px; }
.logos-aside-card {
  flex: 1; border: 1px solid var(--rule); border-radius: 14px;
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
  background: var(--bg-card); transition: border-color 0.3s;
}
.logos-aside-card:hover { border-color: var(--accent); }
.logos-aside-card .num { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.logos-aside-card h4 { font-family: var(--serif); font-size: 20px; font-weight: 300; font-style: italic; }
.logos-aside-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

.logos-process {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  margin: 56px 0;
}
.logos-process > div {
  padding: 28px 22px;
  border-right: 1px solid var(--rule);
}
.logos-process > div:last-child { border-right: none; }
.logos-process .step-num { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.logos-process h5 { font-family: var(--serif); font-size: 20px; font-weight: 300; font-style: italic; margin-bottom: 8px; }
.logos-process p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

.marks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.wordmarks-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule); border-radius: 16px;
  overflow: hidden; background: var(--bg-alt);
}
.wordmark {
  aspect-ratio: 16/9;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  transition: background 0.3s;
}
.wordmark:nth-child(4n) { border-right: none; }
.wordmark .wm-name {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(16px, 1.4vw, 20px); line-height: 1.2; text-align: center;
}
.wordmark .wm-meta {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-dim); margin-top: 6px;
}
.wordmark:hover { background: rgba(255,61,0,0.05); }

/* ── PORTFOLIO PAGE ─────────────────────────────────────── */
.work-big {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  row-gap: 56px;
}
.work-big .work-card:nth-child(even) { margin-top: 80px; }
.work-big .work-card-img { aspect-ratio: 5/4; border-radius: 16px; }
.work-big .name {
  font-family: var(--display);
  font-size: clamp(26px, 2.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin-top: 18px;
}
.work-big .row {
  display: flex; justify-content: space-between; margin-top: 8px;
  font-family: var(--mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-soft);
}

/* ── ABOUT PAGE ─────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
  padding-block: clamp(32px, 5vw, 72px);
}
.about-img {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  padding: 14%;
  border: 1px solid var(--rule);
}
.about-img img { width: 100%; max-width: 280px; object-fit: contain; }

.about-body p {
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.about-body p strong {
  font-family: var(--display);
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}

.principles {
  border-top: 1px solid var(--rule);
  padding-block: clamp(48px, 7vw, 96px);
}
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.principle .num {
  font-family: var(--display);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  opacity: 0.8;
}
.principle h4 {
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 12px 0 10px;
}
.principle p { font-family: var(--serif); font-size: 16px; font-style: italic; font-weight: 300; color: var(--ink-soft); line-height: 1.55; }

.services-table { border-top: 1px solid var(--rule); padding-block: clamp(48px, 7vw, 96px); }
.service-row {
  display: grid;
  grid-template-columns: 56px 1fr 2fr 120px;
  align-items: baseline;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  transition: background 0.2s;
}
.service-row:hover { background: rgba(255,61,0,0.03); }
.service-row .num { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--ink-dim); }
.service-row .name { font-family: var(--display); font-size: clamp(22px, 2.5vw, 36px); font-weight: 800; letter-spacing: -0.025em; }
.service-row .desc { font-family: var(--serif); font-size: 15px; font-style: italic; font-weight: 300; color: var(--ink-soft); }
.service-row .price { font-family: var(--mono); font-size: 10px; text-align: right; color: var(--ink-soft); letter-spacing: 0.12em; text-transform: uppercase; }

/* ── CONTACT PAGE ───────────────────────────────────────── */
.contact-grid {
  padding-block: clamp(32px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: clamp(32px, 4vw, 56px);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.3s;
}
.contact-card:hover { border-color: rgba(255,61,0,0.3); }
.contact-card .label {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft);
}
.contact-card .email-link {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--accent);
  word-break: break-all;
  line-height: 1.1;
  transition: color 0.2s;
}
.contact-card .email-link:hover { color: var(--accent-2); }
.contact-info p { font-family: var(--serif); font-size: 18px; font-style: italic; font-weight: 300; color: var(--ink-soft); margin-bottom: 20px; line-height: 1.55; }
.info-row {
  padding: 14px 0; border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: baseline;
}
.info-row .k { font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); }
.info-row .v { font-family: var(--serif); font-size: 16px; font-style: italic; }

/* ── CTA BLOCK ──────────────────────────────────────────── */
.cta {
  position: relative;
  margin-block: clamp(48px, 7vw, 96px);
  background: var(--accent);
  padding: clamp(48px, 7vw, 96px) clamp(28px, 4vw, 64px);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: end;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 65%);
  pointer-events: none;
}
.cta h2 {
  font-family: var(--display);
  font-size: clamp(48px, 8vw, 140px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.85;
  margin: 0;
  color: #fff;
  position: relative;
  z-index: 1;
}
.cta h2 em { font-style: normal; color: rgba(0,0,0,0.3); }
.cta .right {
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-start; padding-bottom: 8px;
  position: relative; z-index: 1;
}
.cta .right .email-link {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(18px, 1.8vw, 26px);
  letter-spacing: -0.015em; color: #fff; word-break: break-all;
  transition: opacity 0.2s;
}
.cta .right .email-link:hover { opacity: 0.7; }
.cta .right .meta {
  font-family: var(--mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.18em; color: rgba(255,255,255,0.6);
}

/* ── PAGE HEADER ────────────────────────────────────────── */
.page-header {
  padding-top: clamp(100px, 12vw, 160px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.page-header h1 {
  font-family: var(--display);
  font-size: clamp(64px, 14vw, 220px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85;
  margin: 0;
}
.page-header h1 em { font-style: normal; color: var(--accent); }
.page-header .lede { margin-top: 24px; }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--rule);
  padding-block: clamp(56px, 8vw, 120px) clamp(28px, 3vw, 48px);
  background: var(--bg-alt);
  overflow: hidden;
}
.footer-word {
  font-family: var(--display);
  font-size: clamp(56px, 14vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  font-weight: 800;
  margin: 0 0 48px;
  color: var(--ink);
}
.footer-word em { color: var(--accent); font-style: normal; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.footer h4 {
  font-family: var(--mono); text-transform: uppercase;
  font-size: 9px; letter-spacing: 0.2em; color: var(--ink-dim);
  margin: 0 0 16px; font-weight: 500;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.footer ul a { transition: color 0.2s; }
.footer ul a:hover { color: var(--accent); }
.footer .footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-dim);
  flex-wrap: wrap; gap: 10px;
}

/* ── CHIPS ──────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  background: var(--bg-card); color: var(--ink-soft);
  transition: border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip.accent { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── STAT ROW ───────────────────────────────────────────── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-block: clamp(48px, 6vw, 80px);
}
.stat {
  padding: clamp(24px, 3vw, 40px) 24px;
  border-right: 1px solid var(--rule);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
}
.stat .num em { color: var(--accent); font-style: normal; }
.stat .label {
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-soft);
  margin-top: 8px;
}

/* ── PH (placeholder fallback) ──────────────────────────── */
.ph {
  background: var(--bg-card);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 9px;
  color: var(--ink-dim); letter-spacing: 0.12em; text-transform: uppercase;
  position: relative; overflow: hidden;
}

/* ── DIVIDER ────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--rule); margin: 0; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .featured, .about-grid { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .work-big .work-card:nth-child(even) { margin-top: 0; }
  .work-big { grid-template-columns: 1fr; row-gap: 40px; }
  .logos-hero { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card.shift, .work-card.shift-down { margin-top: 0; }
  .principles-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 44px 1fr; }
  .service-row .desc, .service-row .price { grid-column: 2; }
  .logos-process { grid-template-columns: repeat(2, 1fr); }
  .logos-process > div { border-bottom: 1px solid var(--rule); }
  .logos-process > div:nth-child(2) { border-right: none; }
  .logos-process > div:nth-child(3),
  .logos-process > div:nth-child(4) { border-bottom: none; }
  .stat-row { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--rule); }
  .stat:last-child { border-bottom: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    padding: 100px 28px 40px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out-expo);
    overflow-y: auto;
    z-index: 400;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a {
    font-size: 32px;
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -0.03em;
    padding: 18px 0;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
    color: var(--ink-soft);
  }
  .nav-links a::after { display: none; }
  .nav-links a.is-active,
  .nav-links a:hover { color: var(--accent); background: transparent; }
  .nav-cta {
    margin-top: 24px;
    border-radius: 999px !important;
    text-align: center;
    background: var(--accent) !important;
    color: #fff !important;
    font-size: 18px !important;
    padding: 18px 22px !important;
  }
}

@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; }
  .logos-grid { grid-template-columns: repeat(2, 1fr); }
  .marks-grid { grid-template-columns: repeat(2, 1fr); }
  .wordmarks-grid { grid-template-columns: repeat(2, 1fr); }
  .wordmark:nth-child(2n) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .work-big { grid-template-columns: 1fr; }
  .hero-scroll-hint { display: none; }
  .principles-grid { grid-template-columns: 1fr; }
  .info-row { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 480px) {
  :root { --pad: 18px; }
  .hero { min-height: 100svh; padding-block: 100px 40px; }
  .hero-title { font-size: clamp(56px, 17vw, 96px); letter-spacing: -0.05em; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .page-header { padding-top: 90px; }
  .page-header h1 { font-size: clamp(52px, 15vw, 88px); }
  .footer-word { font-size: clamp(44px, 16vw, 96px); word-break: break-word; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 36px 22px; border-radius: 16px; }
  .cta h2 { font-size: clamp(38px, 13vw, 68px); }
  .cta .right .email-link { font-size: 15px; }
  .featured-body h3 { font-size: clamp(32px, 9vw, 52px); }
  .section-head h2 { font-size: clamp(36px, 10vw, 64px); }
  .btn { padding: 13px 20px; font-size: 13px; }
  .work-big .name { font-size: clamp(22px, 6vw, 34px); }
  .contact-card { padding: 28px 20px; }
  .contact-card .email-link { font-size: clamp(20px, 6vw, 32px); }
  .about-body p { font-size: 17px; }
  .principle h4 { font-size: 20px; }
  .service-row .name { font-size: 20px; }
  .cursor, .cursor-ring { display: none; }
}

@media (max-width: 360px) {
  .hero-title { font-size: 52px; }
  .cta h2 { font-size: 36px; }
  .footer-word { font-size: 40px; }
}

/* ============================================================
   PRICING PAGE
   ============================================================ */

.section-tight {
  padding-block: clamp(40px, 6vw, 72px);
}

/* "How it works" 3-step strip */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(36px, 5vw, 64px);
}
.how-step .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.how-step h4 {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.how-step p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  max-width: 36ch;
}
@media (max-width: 880px) {
  .how-it-works { grid-template-columns: 1fr; gap: 32px; }
}

/* Pricing grid + cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 1300px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (max-width: 880px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 32px 26px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 236, 228, 0.25);
}
.pricing-card.featured {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(255, 61, 0, 0.06) 0%, transparent 40%),
    var(--bg-card);
  box-shadow: 0 0 0 1px var(--accent) inset, 0 24px 60px -30px var(--accent-glow);
}
.pricing-badge {
  position: absolute;
  top: -10px;
  left: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.pricing-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.pricing-card.featured .pricing-name { color: var(--accent); }

.pricing-price {
  font-family: var(--display);
  font-size: clamp(48px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 14px;
}
.pricing-price .dollar {
  font-size: 0.55em;
  vertical-align: top;
  position: relative;
  top: 0.2em;
  margin-right: 2px;
  color: var(--ink-soft);
}
.pricing-price .per {
  font-size: 0.32em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-soft);
  margin-left: 4px;
}

.pricing-tag {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.45;
  margin-bottom: 22px;
  min-height: 3em;
}

.pricing-feats {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex: 1;
}
.pricing-feats li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
  position: relative;
  padding-left: 22px;
}
.pricing-feats li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 11px;
  top: 11px;
}
.pricing-feats li:last-child { border-bottom: none; }
.pricing-feats li strong {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pricing-feats li:has(strong)::before { display: none; }
.pricing-feats li:has(strong) { padding-left: 0; }

.pricing-cta {
  width: 100%;
  justify-content: center;
}

/* Annual prepay callout */
.pricing-annual {
  margin-top: 40px;
  padding: 28px 32px;
  border: 1px dashed var(--rule);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255,61,0,0.02), transparent);
}
.pricing-annual .eyebrow { margin-bottom: 4px; }
.pricing-annual p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  max-width: 64ch;
}
.pricing-annual strong { color: var(--ink); }

/* ============================================================
   LEGAL PAGES (Terms, Privacy)
   ============================================================ */

.legal-prose {
  max-width: 780px;
  padding-block: clamp(40px, 6vw, 80px) clamp(60px, 8vw, 120px);
}
.legal-prose > p,
.legal-prose ul {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 18px;
  max-width: 70ch;
}
.legal-prose p strong { color: var(--ink); }
.legal-prose ul {
  padding-left: 22px;
}
.legal-prose ul li {
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.legal-prose ul li strong { color: var(--ink); }
.legal-prose h2 {
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 56px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 100px;
}
.legal-prose h2:first-of-type {
  margin-top: 40px;
}
.legal-prose a {
  color: var(--accent);
  border-bottom: 1px solid rgba(255, 61, 0, 0.3);
  transition: color 0.2s, border-color 0.2s;
}
.legal-prose a:hover {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
}

/* Footer legal links */
.footer-legal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
}
.footer-legal a {
  color: var(--ink-soft);
  transition: color 0.2s;
}
.footer-legal a:hover {
  color: var(--ink);
}
.footer-legal .sep {
  color: var(--ink-dim);
}

