/* ============================================================
   EBG Creative — shared design system
   Type: Space Grotesk (display) · Hanken Grotesk (body) · Space Mono (labels)
   ============================================================ */

:root {
  /* palette — cool neutrals (tuned to brand cyan) */
  --paper:      #F3F6F7;
  --paper-2:    #E8EDF0;
  --card:       #F9FAFB;
  --ink:        #0F1419;
  --ink-2:      #2B353E;
  --ink-soft:   #5A6A76;
  --line:       #D0D8DE;
  --line-soft:  #DDE3E8;

  /* accent — brand cyan #00a5c5 */
  --accent:     #00a5c5;
  --accent-ink: #ffffff;        /* white text on cyan for readability */
  --accent-soft: rgba(0, 165, 197, 0.10);

  /* dark section */
  --night:      #0D1318;
  --night-2:    #131C22;
  --on-night:   #F3F6F7;
  --on-night-soft: #87A0AC;

  /* type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, monospace;

  /* metrics */
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 9vw, 140px);
}

/* font-direction tweak: serif headlines */
:root[data-headfont="serif"] {
  --font-display: 'Newsreader', Georgia, serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px; background: var(--accent);
  display: inline-block;
}
.eyebrow--plain::before { display: none; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.display {
  font-size: clamp(44px, 7.4vw, 104px);
  line-height: 1.0;
  letter-spacing: -0.04em;
}
h2.title { font-size: clamp(32px, 4.6vw, 60px); letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; line-height: 1.12; }
.lead {
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}
.muted { color: var(--ink-soft); }
.accent-text { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #008da8; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #000; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__logo {
  height: 32px; width: auto;
}
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  letter-spacing: -0.02em; white-space: nowrap;
  display: none; /* hidden when logo is present */
}
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  padding: 9px 14px; border-radius: 100px;
  transition: background .15s ease, color .15s ease;
}
.nav__links a:hover { background: var(--paper-2); color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; }

/* ---------- placeholder image ---------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      var(--paper-2) 0 11px,
      color-mix(in srgb, var(--paper-2) 60%, var(--paper)) 11px 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink-soft);
}
.ph::after {
  content: attr(data-label);
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--paper); color: var(--ink-soft);
  padding: 5px 9px; border-radius: 6px; border: 1px solid var(--line);
}
.ph--dark {
  background:
    repeating-linear-gradient(135deg,
      var(--night-2) 0 11px,
      color-mix(in srgb, var(--night-2) 60%, var(--night)) 11px 22px);
  border-color: #1e2c34; color: var(--on-night-soft);
}
.ph--dark::after { background: var(--night); color: var(--on-night-soft); border-color: #1e2c34; }

/* ---------- cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  background: var(--paper-2);
}
.marquee__track {
  display: flex; gap: 0; width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(20px, 2.4vw, 30px);
  padding: 18px 0; letter-spacing: -0.02em;
  display: inline-flex; align-items: center;
}
.marquee__track span::after {
  content: "✦"; color: var(--accent); font-size: 0.6em;
  margin-inline: clamp(28px, 4vw, 52px);
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- reveal on scroll ----------
   Visible by DEFAULT. The hidden-then-animate state only applies while
   <html> carries `.reveal-anim` (added by JS). Both the hidden state AND
   the transition live under that class, so if JS removes it (or never adds
   it — no-JS, no-IntersectionObserver, frozen-transition environments),
   content snaps to fully visible with no stuck transition. */
html.reveal-anim [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
html.reveal-anim [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.reveal-anim [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- footer ---------- */
.footer { background: var(--night); color: var(--on-night); }
.footer a { color: var(--on-night); }
.footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-block: clamp(56px, 7vw, 88px);
}
.footer__brand .brand__logo { /* original logo is cyan-on-dark; works natively on dark footer */ }
.footer h4 {
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-night-soft);
  margin-bottom: 18px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer ul a { color: var(--on-night-soft); font-size: 15px; transition: color .15s ease; }
.footer ul a:hover { color: var(--on-night); }
.footer__bottom {
  border-top: 1px solid #1e2c34; padding-block: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--on-night-soft);
  font-family: var(--font-mono); letter-spacing: 0.02em;
}

/* ---------- utilities ---------- */
.stack-sm > * + * { margin-top: 14px; }
.stack > * + * { margin-top: 22px; }
.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 100px; padding: 6px 12px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav__links, .nav__right .btn { display: none; }
  .nav__toggle {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--card); cursor: pointer;
  }
  .nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
    content: ""; display: block; width: 18px; height: 2px; background: var(--ink);
    position: relative; transition: transform .2s ease;
  }
  .nav__toggle span::before { position: absolute; top: -6px; }
  .nav__toggle span::after  { position: absolute; top: 6px; }
  .mobile-menu {
    display: none; flex-direction: column; gap: 4px;
    padding: 12px var(--gutter) 22px; border-bottom: 1px solid var(--line-soft);
    background: var(--paper);
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 12px 6px; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line-soft); }
  .mobile-menu .btn { margin-top: 10px; justify-content: center; }
  .cols-2 { grid-template-columns: 1fr; }
}
@media (min-width: 761px) { .mobile-menu { display: none !important; } }


/* ============================================================
   PAGE-SPECIFIC STYLES
   ============================================================ */

/* ---- Homepage ---- */

  /* ---- home-only ---- */
  .hero { padding-top: clamp(48px, 7vw, 90px); padding-bottom: clamp(40px, 5vw, 64px); position: relative; }
  .hero__eyebrow { margin-bottom: 26px; }
  .hero__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: end; }
  .hero h1 { margin-bottom: 0; }
  .hero h1 em { font-style: normal; color: var(--accent); }
  .hero__side { padding-bottom: 8px; }
  .hero__side .lead { margin-bottom: 26px; }
  .hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
  .hero__visual { margin-top: clamp(36px, 4vw, 56px); height: clamp(280px, 42vw, 520px); }
  .hero__stats { display: flex; gap: clamp(24px, 4vw, 60px); margin-top: 30px; flex-wrap: wrap; }
  .stat .n { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.03em; line-height: 1; }
  .stat .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; }

  .svc { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
  .svc__cell { background: var(--card); padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; min-height: 240px; transition: background .2s ease; }
  .svc__cell:hover { background: var(--paper); }
  .svc__num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.08em; }
  .svc__cell h3 { margin-top: 14px; }
  .svc__cell p { margin: 12px 0 0; color: var(--ink-soft); font-size: 15.5px; }
  .svc__cell .more { margin-top: auto; padding-top: 22px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); display: inline-flex; gap: 8px; }

  .work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
  .work__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 26px); }
  .proj { display: block; }
  .proj .ph { height: 100%; min-height: 240px; transition: transform .3s ease; }
  .proj:hover .ph { transform: translateY(-4px); }
  .proj__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; }
  .proj__meta h3 { font-size: clamp(20px, 2vw, 26px); }
  .proj__meta .cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
  .span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }

  /* dark "why" section */
  .why { background: var(--night); color: var(--on-night); }
  .why .eyebrow { color: var(--on-night-soft); }
  .why h2 { color: var(--on-night); }
  .why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
  .why__list { display: grid; gap: 2px; }
  .why__item { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid #1e2c34; }
  .why__item:last-child { border-bottom: 1px solid #1e2c34; }
  .why__item .k { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
  .why__item h3 { color: var(--on-night); font-size: 21px; }
  .why__item p { color: var(--on-night-soft); margin: 8px 0 0; font-size: 15.5px; }

  /* process */
  .proc { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); counter-reset: step; }
  .proc__step { border-top: 2px solid var(--ink); padding-top: 18px; }
  .proc__step .s { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.08em; }
  .proc__step h3 { font-size: 22px; margin-top: 10px; }
  .proc__step p { color: var(--ink-soft); font-size: 15px; margin-top: 10px; }

  /* publishing strip */
  .pub__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); }
  .pub__col h3 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 8px; }
  .pub__list { display: grid; gap: 12px; margin-top: 24px; }
  .pub__row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: border-color .15s ease; }
  .pub__row:hover { border-color: var(--ink); }
  .pub__row .ph { width: 52px; height: 52px; flex: none; border-radius: 9px; }
  .pub__row .ph::after { display: none; }
  .pub__row .nm { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
  .pub__row .ty { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }
  .pub__row .go { margin-left: auto; color: var(--ink-soft); font-size: 18px; }
  .book-ph { aspect-ratio: 2/3; }

  /* CTA band */
  .cta-band { background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 80px); text-align: center; }
  .cta-band h2 { color: var(--accent-ink); font-size: clamp(32px, 4.6vw, 62px); }
  .cta-band p { color: color-mix(in srgb, var(--accent-ink) 78%, transparent); max-width: 52ch; margin: 18px auto 30px; font-size: 19px; }

  @media (max-width: 860px) {
    .hero__grid { grid-template-columns: 1fr; align-items: start; }
    .why__grid, .pub__grid { grid-template-columns: 1fr; }
    .svc { grid-template-columns: 1fr; }
    .proc { grid-template-columns: 1fr 1fr; }
    .work__grid { grid-template-columns: 1fr; }
    .span-7, .span-5, .span-6 { grid-column: auto; }
    .proj .ph { min-height: 220px; }
  }
  @media (max-width: 520px) { .proc { grid-template-columns: 1fr; } }


/* ---- Work / Portfolio ---- */

  .page-head { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(32px, 4vw, 56px); }
  .page-head h1 { font-size: clamp(40px, 6.4vw, 88px); letter-spacing: -0.04em; margin-top: 22px; max-width: 16ch; }
  .page-head .lead { margin-top: 24px; }

  .filters { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
  .filters button {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
    background: transparent; border: 1px solid var(--line); color: var(--ink-soft);
    padding: 9px 16px; border-radius: 100px; cursor: pointer; transition: all .15s ease;
  }
  .filters button:hover { border-color: var(--ink); color: var(--ink); }
  .filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

  .pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.6vw, 38px); margin-top: 40px; }
  .pcard { display: flex; flex-direction: column; }
  .pcard .ph { aspect-ratio: 16/10; }
  .pcard.tall .ph { aspect-ratio: 4/5; }
  .pcard__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-top: 18px; }
  .pcard__meta h3 { font-size: clamp(21px, 2vw, 28px); }
  .pcard__meta p { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; max-width: 42ch; }
  .pcard .cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); white-space: nowrap; padding-top: 6px; }
  .pcard.hide { display: none; }

  .stats-band { background: var(--paper-2); border-block: 1px solid var(--line); }
  .stats-band .wrap { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; padding-block: clamp(40px,5vw,64px); }
  .stats-band .stat .n { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px,4vw,52px); letter-spacing: -0.03em; }
  .stats-band .stat .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 10px; }

  @media (max-width: 760px) {
    .pgrid { grid-template-columns: 1fr; }
    .stats-band .wrap { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  }


/* ---- Services ---- */

  .page-head { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(32px, 4vw, 48px); }
  .page-head h1 { font-size: clamp(40px, 6.4vw, 88px); letter-spacing: -0.04em; margin-top: 22px; max-width: 15ch; }
  .page-head .lead { margin-top: 24px; }

  .svc-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line-soft); }
  .svc-row:nth-child(even) .svc-row__media { order: -1; }
  .svc-row__media .ph { aspect-ratio: 4/3; }
  .svc-row__num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.08em; }
  .svc-row h2 { font-size: clamp(28px, 3.4vw, 46px); margin: 14px 0 0; letter-spacing: -0.03em; }
  .svc-row p { color: var(--ink-2); margin: 18px 0 0; max-width: 50ch; font-size: 16.5px; }
  .svc-row ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
  .svc-row li { display: grid; grid-template-columns: auto 1fr; gap: 12px; font-size: 15.5px; color: var(--ink-2); }
  .svc-row li::before { content: "→"; color: var(--accent); font-weight: 700; }
  .svc-row .price { margin-top: 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }

  .niche { background: var(--night); color: var(--on-night); }
  .niche .eyebrow { color: var(--on-night-soft); }
  .niche h2 { color: var(--on-night); font-size: clamp(28px,3.4vw,44px); margin-top: 16px; }
  .niche__lead { color: var(--on-night-soft); max-width: 56ch; margin-top: 18px; font-size: 17px; }
  .niche__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(16px,2vw,24px); margin-top: 44px; }
  .niche__card { border: 1px solid #1e2c34; border-radius: var(--radius-lg); padding: 28px; background: var(--night-2); }
  .niche__card h3 { color: var(--on-night); font-size: 21px; }
  .niche__card p { color: var(--on-night-soft); font-size: 15px; margin-top: 14px; }
  .niche__card .k { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }

  @media (max-width: 820px) {
    .svc-row { grid-template-columns: 1fr; gap: 24px; }
    .svc-row:nth-child(even) .svc-row__media { order: 0; }
    .niche__grid { grid-template-columns: 1fr; }
  }


/* ---- About ---- */

  .page-head { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(28px, 4vw, 44px); }
  .page-head h1 { font-size: clamp(40px, 6.2vw, 84px); letter-spacing: -0.04em; margin-top: 22px; max-width: 17ch; }

  .intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px,4vw,64px); align-items: start; padding-bottom: clamp(48px,6vw,80px); }
  .intro__media .ph { aspect-ratio: 5/4; }
  .intro p { font-size: clamp(17px,1.7vw,20px); line-height: 1.55; color: var(--ink-2); }
  .intro p + p { margin-top: 18px; }

  .values { background: var(--paper-2); border-block: 1px solid var(--line); }
  .values__grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 40px; }
  .values__cell { background: var(--card); padding: clamp(26px,3vw,38px); }
  .values__cell .k { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.06em; }
  .values__cell h3 { margin-top: 12px; font-size: 24px; }
  .values__cell p { margin-top: 12px; color: var(--ink-soft); font-size: 15.5px; }

  .timeline { display: grid; gap: 0; margin-top: 40px; }
  .tl { display: grid; grid-template-columns: 140px 1fr; gap: 28px; padding: 26px 0; border-top: 1px solid var(--line-soft); }
  .tl:last-child { border-bottom: 1px solid var(--line-soft); }
  .tl .yr { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.04em; }
  .tl h3 { font-size: 22px; }
  .tl p { color: var(--ink-soft); margin-top: 8px; font-size: 15.5px; max-width: 56ch; }

  .contact-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(16px,2vw,24px); margin-top: 40px; }
  .contact-strip a { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .15s ease; }
  .contact-strip a:hover { border-color: var(--ink); }
  .contact-strip .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
  .contact-strip .v { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin-top: 10px; letter-spacing: -0.01em; }

  @media (max-width: 820px) {
    .intro { grid-template-columns: 1fr; }
    .intro__media { order: -1; }
    .values__grid { grid-template-columns: 1fr; }
    .tl { grid-template-columns: 1fr; gap: 6px; }
    .contact-strip { grid-template-columns: 1fr; }
  }


/* ---- Contact ---- */

  .contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); padding-top: clamp(40px,5vw,72px); padding-bottom: clamp(56px,7vw,96px); align-items: start; }
  .contact-intro h1 { font-size: clamp(40px, 5.6vw, 76px); letter-spacing: -0.04em; margin-top: 22px; max-width: 13ch; }
  .contact-intro .lead { margin-top: 24px; }
  .contact-details { margin-top: 40px; display: grid; gap: 2px; }
  .cd { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line-soft); align-items: baseline; }
  .cd:last-child { border-bottom: 1px solid var(--line-soft); }
  .cd .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
  .cd .v { font-size: 17px; }
  .cd .v a { border-bottom: 1px solid var(--line); padding-bottom: 1px; }
  .cd .v a:hover { border-color: var(--ink); }
  .socials { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
  .socials a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; border: 1px solid var(--line); border-radius: 100px; padding: 9px 16px; color: var(--ink-2); transition: all .15s ease; }
  .socials a:hover { border-color: var(--ink); color: var(--ink); }

  .form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 40px); }
  .form-card h2 { font-size: 26px; letter-spacing: -0.02em; }
  .form-card .sub { color: var(--ink-soft); font-size: 15px; margin-top: 8px; }
  .field { margin-top: 22px; }
  .field label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 9px; }
  .field input, .field select, .field textarea {
    width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--ink);
    background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
    padding: 13px 15px; transition: border-color .15s ease, box-shadow .15s ease;
  }
  .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .field textarea { resize: vertical; min-height: 120px; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .chips { display: flex; flex-wrap: wrap; gap: 9px; }
  .chips input { position: absolute; opacity: 0; pointer-events: none; }
  .chips label {
    margin: 0; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 14px;
    color: var(--ink-2); border: 1px solid var(--line); border-radius: 100px; padding: 9px 15px; cursor: pointer; transition: all .15s ease;
  }
  .chips input:checked + label { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .form-card .btn { width: 100%; justify-content: center; margin-top: 26px; font-size: 16px; padding: 16px; }
  .form-note { font-size: 12.5px; color: var(--ink-soft); text-align: center; margin-top: 14px; }
  .success { display: none; text-align: center; padding: 20px 0; }
  .success.show { display: block; }
  .success .big { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; }
  .success p { color: var(--ink-soft); margin-top: 10px; }
  .form-live.hide { display: none; }

  @media (max-width: 820px) {
    .contact-wrap { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
  }

