/* =========================================================================
   Digital Legates — Agency Site Styles
   Design tokens, layout primitives, components
   ========================================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,300..900,0..100,0..1;1,9..144,300..900,0..100,0..1&family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: default;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
::selection { background: var(--saffron); color: var(--ink); }

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --ink: #0F0D0A;
  --ink-soft: #16130E;
  --ink-card: #1A1612;
  --cream: #F5EFE3;
  --cream-dim: #D9D2C2;
  --muted: #8E867A;
  --muted-soft: #5E574B;
  --saffron: #FFA300;
  --saffron-deep: #D88300;
  --coral: #E63946;
  --line: rgba(245, 239, 227, 0.12);
  --line-soft: rgba(245, 239, 227, 0.06);

  /* Typography */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-sans: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-y: clamp(80px, 12vw, 160px);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* Easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-sm { padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 96px); }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 400, 'SOFT' 50, 'WONK' 0;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.display-xl { font-size: clamp(56px, 11vw, 168px); }
.display-lg { font-size: clamp(44px, 8vw, 112px); }
.display-md { font-size: clamp(36px, 5.5vw, 76px); }
.display-sm { font-size: clamp(28px, 4vw, 52px); }

.display em, em.display {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'wght' 300, 'SOFT' 100, 'WONK' 1;
  color: var(--saffron);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--saffron);
}

.lede {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--cream-dim);
  max-width: 56ch;
}

h1, h2, h3, h4 { font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 64px); font-variation-settings: 'opsz' 96, 'wght' 400, 'SOFT' 50; }
h3 { font-size: clamp(22px, 2.4vw, 32px); }
h4 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
p { color: var(--cream-dim); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 240ms var(--ease-out);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--saffron);
  color: var(--ink);
}
.btn-primary:hover { background: var(--cream); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--cream); background: rgba(245, 239, 227, 0.04); }
.btn-mini {
  padding: 9px 16px;
  font-size: 13px;
  border-radius: 999px;
}
.btn .arrow { transition: transform 240ms var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 300ms var(--ease-out);
  background: rgba(15, 13, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 12px 0;
  border-bottom-color: var(--line);
  background: rgba(15, 13, 10, 0.85);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  font-variation-settings: 'opsz' 48, 'wght' 500, 'SOFT' 30;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.logo-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--saffron);
  color: var(--ink);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--cream-dim);
}
.nav-links a { position: relative; padding: 4px 0; transition: color 200ms; }
.nav-links a:hover { color: var(--cream); }
.nav-links a.active { color: var(--saffron); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Mobile nav */
.nav-toggle { display: none; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
  }
  .nav-cta .btn { display: none; }
  .nav-cta .nav-toggle { display: flex; }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--ink);
  z-index: 99;
  transform: translateY(-100%);
  transition: transform 400ms var(--ease-out);
  padding: 100px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 38px;
  font-variation-settings: 'opsz' 96, 'wght' 400;
  color: var(--cream);
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.mobile-menu a:hover { color: var(--saffron); }
.mobile-menu .btn { margin-top: 16px; align-self: flex-start; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(140px, 18vw, 220px);
  padding-bottom: clamp(80px, 10vw, 140px);
  overflow: hidden;
}
.hero-grid {
  position: relative;
  z-index: 2;
}
.hero h1 { margin-top: 28px; }
.hero .lede { margin-top: 32px; }
.hero .cta-row { margin-top: 44px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Decorative hero element */
.hero-mark {
  position: absolute;
  top: 22%;
  right: -8%;
  width: clamp(280px, 38vw, 560px);
  height: clamp(280px, 38vw, 560px);
  z-index: 1;
  opacity: 0.85;
  animation: drift 20s var(--ease-in-out) infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-30px, 20px) rotate(8deg); }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 56px;
  animation: scroll 30s linear infinite;
  padding-right: 56px;
}
.marquee-track .item {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-variation-settings: 'opsz' 96, 'wght' 400, 'SOFT' 50;
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marquee-track .item::after {
  content: '✦';
  color: var(--saffron);
  font-size: 0.6em;
}
.marquee-track .item:last-child::after { content: ''; }
.marquee em { font-style: italic; color: var(--saffron); }
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 48px 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 72px);
  font-variation-settings: 'opsz' 144, 'wght' 400, 'SOFT' 30;
  line-height: 1;
  color: var(--cream);
}
.stat-num sup {
  font-size: 0.45em;
  color: var(--saffron);
  vertical-align: 0.6em;
  font-style: italic;
  margin-left: 4px;
}
.stat-label {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Section header ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head .title-block .eyebrow { margin-bottom: 24px; }
.section-head .copy { color: var(--cream-dim); }
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
}

/* ---------- Service bento grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  grid-auto-rows: minmax(220px, auto);
}
.service-card {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 360ms var(--ease-out);
}
.service-card:hover {
  border-color: var(--saffron);
  transform: translateY(-3px);
}
.service-card:hover .service-icon {
  background: var(--saffron);
  color: var(--ink);
  transform: rotate(-6deg) scale(1.05);
}
.service-card .service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 163, 0, 0.12);
  color: var(--saffron);
  display: grid;
  place-items: center;
  transition: all 360ms var(--ease-out);
}
.service-card .service-icon svg { width: 26px; height: 26px; }
.service-card h3 {
  margin-top: 28px;
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 72, 'wght' 400, 'SOFT' 50;
  line-height: 1;
}
.service-card .sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin-top: 14px;
}
.service-card .arrow-link {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--cream);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
/* Bento sizing */
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.service-card.feature {
  background: var(--saffron);
  color: var(--ink);
  border-color: var(--saffron);
}
.service-card.feature h3 { color: var(--ink); }
.service-card.feature .sub { color: var(--ink-soft); }
.service-card.feature .service-icon { background: var(--ink); color: var(--saffron); }
.service-card.feature .arrow-link { color: var(--ink); }
.service-card.feature:hover .service-icon { background: var(--ink-soft); color: var(--saffron); }

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(6, 1fr); }
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 3; }
  .span-12 { grid-column: span 6; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .span-4, .span-5, .span-6, .span-7, .span-8, .span-12 { grid-column: span 1; }
}

/* ---------- Work / case studies ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.work-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 360ms var(--ease-out);
}
.work-card:hover { transform: translateY(-4px); }
.work-thumb {
  aspect-ratio: 4 / 3;
  background: var(--ink-card);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
}
.work-thumb .visual {
  width: 100%;
  height: 100%;
}
.work-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  align-items: baseline;
  gap: 16px;
}
.work-meta h3 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 96, 'wght' 400, 'SOFT' 50;
  line-height: 1.05;
}
.work-meta .tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.work-summary {
  margin-top: 8px;
  color: var(--cream-dim);
  font-size: 15px;
}
@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.process-step {
  padding: 32px 28px 32px 0;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  position: relative;
}
.process-step + .process-step { border-left: 1px solid var(--line); padding-left: 28px; }
.process-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--saffron);
  letter-spacing: 0.12em;
}
.process-step h4 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 72, 'wght' 400, 'SOFT' 50;
  font-size: 28px;
  margin-top: 16px;
  line-height: 1;
}
.process-step p {
  color: var(--cream-dim);
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.55;
}
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(3) { border-left: none; padding-left: 0; }
  .process-step:nth-child(3), .process-step:nth-child(4) { padding-top: 28px; }
}
@media (max-width: 520px) {
  .process { grid-template-columns: 1fr; }
  .process-step + .process-step { border-left: none; padding-left: 0; }
}

/* ---------- Why us — alternating rows ---------- */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(40px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: none; }
.row.reverse .row-text { order: 2; }
.row-text .eyebrow { margin-bottom: 24px; }
.row-text h3 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 96, 'wght' 400, 'SOFT' 50;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.02;
  margin-bottom: 20px;
}
.row-text p { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; }
.row-visual {
  aspect-ratio: 5 / 4;
  background: var(--ink-card);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
@media (max-width: 880px) {
  .row { grid-template-columns: 1fr; }
  .row.reverse .row-text { order: 0; }
}

/* ---------- Testimonials ---------- */
.testimonial {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 400, 'SOFT' 50;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.testimonial blockquote::before { content: '"'; color: var(--saffron); }
.testimonial blockquote::after { content: '"'; color: var(--saffron); }
.testimonial em { font-style: italic; color: var(--saffron); }
.testimonial cite {
  display: block;
  margin-top: 28px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- Industries ---------- */
.industries {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.industry-pill {
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 48, 'wght' 400, 'SOFT' 50;
  font-size: clamp(18px, 1.8vw, 26px);
  color: var(--cream);
  transition: all 240ms var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.industry-pill:hover { background: var(--saffron); color: var(--ink); border-color: var(--saffron); }
.industry-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--saffron);
}
.industry-pill:hover .dot { background: var(--ink); }
.industry-pill em { font-style: italic; }

/* ---------- Final CTA ---------- */
.cta-block {
  background: var(--cream);
  color: var(--ink);
  padding: clamp(48px, 8vw, 120px);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.cta-block h2 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 400, 'SOFT' 50;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 16ch;
}
.cta-block h2 em { font-style: italic; color: var(--saffron-deep); font-variation-settings: 'opsz' 144, 'wght' 300, 'SOFT' 100, 'WONK' 1; }
.cta-block p {
  margin-top: 24px;
  color: rgba(15, 13, 10, 0.7);
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 48ch;
}
.cta-block .cta-row { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.cta-block .btn-primary { background: var(--ink); color: var(--cream); }
.cta-block .btn-primary:hover { background: var(--saffron); color: var(--ink); }
.cta-block .btn-ghost { color: var(--ink); border-color: rgba(15, 13, 10, 0.2); }
.cta-block .btn-ghost:hover { background: rgba(15, 13, 10, 0.06); border-color: var(--ink); }

/* ---------- Footer ---------- */
.footer {
  padding: clamp(60px, 8vw, 120px) 0 32px;
  border-top: 1px solid var(--line);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}
.footer-brand h3 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 400, 'SOFT' 50;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  margin-top: 24px;
  max-width: 12ch;
}
.footer-brand h3 em { font-style: italic; color: var(--saffron); }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 22px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--cream-dim); font-size: 14px; transition: color 200ms; }
.footer-col a:hover { color: var(--saffron); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--cream-dim);
  transition: all 200ms;
}
.footer-social a:hover { background: var(--saffron); color: var(--ink); border-color: var(--saffron); }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 48px; }
  .footer-brand { grid-column: span 2; }
}

/* ---------- Reveal animation on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* ---------- Page-specific: services hub ---------- */
.svc-detail {
  padding-top: clamp(56px, 7vw, 100px);
  padding-bottom: clamp(56px, 7vw, 100px);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
}
.svc-detail .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--saffron);
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.svc-detail h3 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 400, 'SOFT' 50;
  font-size: clamp(40px, 5.5vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.svc-detail h3 em { font-style: italic; color: var(--saffron); }
.svc-detail .copy p { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; color: var(--cream-dim); }
.svc-detail .copy h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 32px;
  margin-bottom: 14px;
}
.svc-detail .deliverables {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.svc-detail .deliverables li {
  font-size: 14px;
  color: var(--cream);
  padding-left: 18px;
  position: relative;
}
.svc-detail .deliverables li::before {
  content: '→';
  color: var(--saffron);
  position: absolute;
  left: 0;
  top: 0;
}
@media (max-width: 880px) {
  .svc-detail { grid-template-columns: 1fr; }
  .svc-detail .deliverables { grid-template-columns: 1fr; }
}

/* ---------- About page ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.value-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-card);
}
.value-card .val-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 56px;
  color: var(--saffron);
  font-variation-settings: 'opsz' 144, 'wght' 300, 'SOFT' 100, 'WONK' 1;
  line-height: 1;
}
.value-card h4 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 72, 'wght' 400, 'SOFT' 50;
  font-size: 24px;
  line-height: 1.1;
}
.value-card p { margin-top: 10px; font-size: 14px; line-height: 1.55; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.tl-entry:last-child { border-bottom: none; }
.tl-year {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 400, 'SOFT' 50;
  font-size: 40px;
  color: var(--saffron);
  font-style: italic;
  line-height: 1;
}
.tl-entry h4 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 72, 'wght' 400, 'SOFT' 50;
  font-size: 26px;
  line-height: 1.1;
}
.tl-entry p { margin-top: 8px; font-size: 15px; }
@media (max-width: 640px) {
  .tl-entry { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
}
.contact-form {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--cream);
  transition: border-color 200ms;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--saffron);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info { display: flex; flex-direction: column; gap: 32px; }
.info-block { padding: 24px 0; border-bottom: 1px solid var(--line); }
.info-block:last-child { border-bottom: none; }
.info-block h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.info-block .info-value {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 72, 'wght' 400, 'SOFT' 50;
  font-size: 26px;
  line-height: 1.15;
}
.info-block .info-value a:hover { color: var(--saffron); }

/* ---------- Page banner (sub-pages) ---------- */
.page-banner {
  padding-top: clamp(140px, 18vw, 200px);
  padding-bottom: clamp(60px, 8vw, 100px);
  border-bottom: 1px solid var(--line);
}
.page-banner h1 {
  margin-top: 28px;
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'wght' 400, 'SOFT' 50;
  font-size: clamp(56px, 10vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.page-banner h1 em { font-style: italic; color: var(--saffron); font-variation-settings: 'opsz' 144, 'wght' 300, 'SOFT' 100, 'WONK' 1; }
.page-banner .lede { margin-top: 32px; }

/* ---------- Utilities ---------- */
.text-muted { color: var(--muted); }
.text-cream { color: var(--cream); }
.text-saffron { color: var(--saffron); }
.mt-32 { margin-top: 32px; }
.mt-64 { margin-top: 64px; }
.flex-grow { flex-grow: 1; }

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
  .hero-mark { animation: none; }
}
