/* ============================================================
   Martin Alva ; Personal Brand Site
   Warm & personable · one bold accent on warm neutral · modern sans
   ============================================================ */

/* ---- Tokens ---- */
:root {
  --bg:        oklch(0.972 0.009 78);
  --bg-2:      oklch(0.945 0.012 76);
  --surface:   oklch(0.992 0.006 84);
  --ink:       oklch(0.235 0.014 62);
  --ink-soft:  oklch(0.475 0.013 64);
  --ink-faint: oklch(0.63 0.012 66);
  --line:      oklch(0.885 0.012 76);
  --line-soft: oklch(0.925 0.01 76);

  /* accent is overridable via Tweaks */
  --accent:     oklch(0.64 0.158 42);
  --accent-2:   oklch(0.70 0.13 50);
  --accent-ink: oklch(0.985 0.01 80);
  --accent-wash: oklch(0.64 0.158 42 / 0.10);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-text:    "Hanken Grotesk", system-ui, sans-serif;

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 72px);
  --radius: 18px;
  --radius-sm: 12px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

section { position: relative; }

/* ---- Reusable bits ---- */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head h2 {
  font-size: clamp(32px, 4.4vw, 54px);
  margin-top: 18px;
}
.section-head p {
  color: var(--ink-soft);
  font-size: clamp(17px, 1.4vw, 20px);
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: oklch(from var(--accent) calc(l - 0.05) c h); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* striped image placeholder */
.ph {
  position: relative;
  border-radius: var(--radius);
  background-color: var(--bg-2);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0 11px,
    oklch(0.5 0.01 70 / 0.07) 11px 12px
  );
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.ph span {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  background: var(--surface);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

/* ---- Reveal motion ---- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad);
  transition: padding .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding-block: 13px;
  background: oklch(0.972 0.009 78 / 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links nav {
  display: flex;
  gap: 30px;
}
.nav-links a.link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color .2s var(--ease);
}
.nav-links a.link::after {
  content: "";
  position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a.link:hover { color: var(--ink); }
.nav-links a.link:hover::after { transform: scaleX(1); }
.nav-cta { padding: 11px 20px; font-size: 15px; }
.nav-toggle { display: none; }
@media (max-width: 880px) {
  .nav-links nav, .nav-cta { display: none; }
}

/* ============================================================
   HERO ; base + 3 variants via [data-hero]
   ============================================================ */
.hero {
  padding-top: clamp(72px, 9vh, 110px);
  padding-bottom: clamp(44px, 6vh, 84px);
  overflow: hidden;
}
.hero .wrap { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.hero-overline {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  margin-bottom: 26px;
}
.hero-overline .pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: oklch(0.62 0.14 150);
  box-shadow: 0 0 0 0 oklch(0.62 0.14 150 / 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 oklch(0.62 0.14 150 / 0.5); }
  70% { box-shadow: 0 0 0 9px oklch(0.62 0.14 150 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.62 0.14 150 / 0); }
}
.hero h1 {
  font-size: clamp(44px, 7vw, 92px);
  letter-spacing: -0.035em;
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .underline {
  position: relative;
  white-space: nowrap;
}
.hero h1 .underline::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0.04em;
  height: 0.13em;
  background: var(--accent-wash);
  border-radius: 4px;
  z-index: -1;
}
.hero-sub {
  font-size: clamp(18px, 1.55vw, 22px);
  color: var(--ink-soft);
  max-width: 50ch;
  margin-top: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}
.hero-meta {
  display: flex;
  gap: 34px;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.hero-meta .m-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.hero-meta .m-lab {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* portrait stack */
.hero-portrait {
  position: relative;
}
.hero-portrait .ph {
  aspect-ratio: 4 / 5;
  border-radius: 24px;
}
.hero-portrait .badge {
  position: absolute;
  bottom: 22px; left: -22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 18px 40px -22px oklch(0.3 0.02 60 / 0.4);
  display: flex; align-items: center; gap: 13px;
}
.hero-portrait .badge .bdot {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--accent-wash);
  display: grid; place-items: center;
  color: var(--accent); font-weight: 800;
  font-family: var(--font-display);
}
.hero-portrait .badge b { font-family: var(--font-display); font-size: 15px; }
.hero-portrait .badge small { display: block; color: var(--ink-soft); font-size: 12.5px; }

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0;
}

/* --- Variant A: Editorial portrait (default) --- */
[data-hero="a"] .hero-portrait { display: block; }
[data-hero="a"] .hero-block { display: none; }

/* --- Variant B: Statement type --- */
[data-hero="b"] .hero-grid {
  grid-template-columns: 1fr;
  text-align: left;
}
[data-hero="b"] .hero h1 { font-size: clamp(52px, 10.5vw, 150px); letter-spacing: -0.045em; }
[data-hero="b"] .hero-sub { max-width: 60ch; }
[data-hero="b"] .hero-portrait { display: none; }
[data-hero="b"] .hero-block { display: none; }
[data-hero="b"] .hero-meta { gap: 56px; }
[data-hero="b"] .hero-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 50px;
}
[data-hero="b"] .hero-strip .ph { aspect-ratio: 5/4; border-radius: 16px; }
.hero-strip { display: none; }

/* --- Variant C: Warm accent block --- */
[data-hero="c"] { background: linear-gradient(160deg, var(--accent-wash), transparent 55%); }
[data-hero="c"] .hero-grid { grid-template-columns: 0.92fr 1.08fr; }
[data-hero="c"] .hero-portrait { display: none; }
[data-hero="c"] .hero-block { display: block; }

.hero-block {
  position: relative;
  display: none;
}
.hero-block .panel {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 26px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.hero-block .panel::after {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: oklch(1 0 0 / 0.10);
}
.hero-block .panel .ph {
  aspect-ratio: 16/10;
  border-radius: 16px;
  background-color: oklch(1 0 0 / 0.12);
  border-color: oklch(1 0 0 / 0.2);
  background-image: repeating-linear-gradient(-45deg, transparent 0 11px, oklch(1 0 0 / 0.08) 11px 12px);
}
.hero-block .panel .ph span { background: oklch(1 0 0 / 0.15); border-color: oklch(1 0 0 / 0.25); color: var(--accent-ink); }
.hero-block .panel h3 { color: var(--accent-ink); font-size: 22px; margin-top: 22px; }
.hero-block .panel p { color: oklch(1 0 0 / 0.85); margin-top: 8px; font-size: 15.5px; }
.hero-block .float-card {
  position: absolute;
  bottom: -26px; left: -26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 22px 50px -24px oklch(0.3 0.02 60 / 0.45);
}
.hero-block .float-card .fc-num { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--accent); }
.hero-block .float-card .fc-lab { font-size: 13px; color: var(--ink-soft); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr !important; gap: 0; }
  .hero-portrait { display: none !important; }
  .hero h1 { font-size: clamp(32px, 8vw, 52px); }
  .hero-strip { display: none !important; }
  .hero-meta { gap: 20px; flex-wrap: wrap; }
  .hero-overline { max-width: 100%; flex-wrap: wrap; }
}

/* ============================================================
   LOGOS marquee
   ============================================================ */
.logos {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.logos .lab {
  text-align: center;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 30px;
}
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  padding-right: 64px;
  animation: scroll-x 34s linear infinite;
  flex-shrink: 0;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-100%); } }
.logo-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -0.01em;
  color: var(--ink-faint);
  white-space: nowrap;
  display: flex; align-items: center; gap: 9px;
  transition: color .3s var(--ease);
  flex-shrink: 0;
}
.logo-item:hover { color: var(--ink); }
.logo-item .lm {
  width: 13px; height: 13px;
  background: currentColor;
}
.logo-item .lm.c { border-radius: 50%; }
.logo-item .lm.d { transform: rotate(45deg); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: clamp(56px, 8vh, 104px) 0; }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.about-photo { position: relative; }
.about-photo .ph { aspect-ratio: 1; border-radius: 22px; }
.about-photo .stamp {
  position: absolute;
  top: -18px; right: -18px;
  width: 112px; height: 112px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  animation: spin-slow 26s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.about-body h2 { font-size: clamp(28px, 3.6vw, 44px); }
.about-lead {
  font-size: clamp(19px, 1.7vw, 24px);
  color: var(--ink);
  margin-top: 22px;
  line-height: 1.5;
}
.about-body p.muted { color: var(--ink-soft); margin-top: 18px; font-size: 17.5px; }
.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 36px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.about-facts .fact {
  background: var(--surface);
  padding: 20px 22px;
}
.about-facts .fact b { font-family: var(--font-display); display: block; font-size: 15px; }
.about-facts .fact span { color: var(--ink-soft); font-size: 14.5px; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding: clamp(56px, 8vh, 104px) 0; background: var(--bg-2); }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.svc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -36px oklch(0.3 0.02 60 / 0.45);
  border-color: var(--accent);
}
.svc-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.svc-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-wash);
  display: grid; place-items: center;
  margin: 18px 0 22px;
}
.svc-icon i {
  width: 22px; height: 22px;
  border: 2.5px solid var(--accent);
  display: block;
}
.svc-icon.s1 i { border-radius: 50%; }
.svc-icon.s2 i { border-radius: 3px; transform: rotate(45deg); }
.svc-icon.s3 i { border-radius: 3px 12px; }
.svc-card h3 { font-size: 23px; }
.svc-card > p { color: var(--ink-soft); margin-top: 12px; font-size: 16px; }
.svc-list {
  list-style: none;
  padding: 0; margin: 22px 0 0;
  display: flex; flex-direction: column; gap: 11px;
}
.svc-list li {
  font-size: 15px;
  color: var(--ink);
  display: flex; align-items: center; gap: 11px;
}
.svc-list li::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.work { padding: clamp(56px, 8vh, 104px) 0; }
.work-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px; margin-bottom: 50px; flex-wrap: wrap;
}
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.case {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.case:hover { transform: translateY(-6px); box-shadow: 0 36px 70px -40px oklch(0.3 0.02 60 / 0.5); }
.case.feature { grid-column: span 2; }
.case .thumb { position: relative; }
.case .thumb .ph { border-radius: 0; aspect-ratio: 16/9; border: none; border-bottom: 1px solid var(--line); }
.case.feature .thumb .ph { aspect-ratio: 21/8; }
.case .tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px; font-weight: 600;
  color: var(--ink-soft);
}
.case .case-body { padding: 26px 28px 30px; }
.case .case-body h3 { font-size: clamp(21px, 2.2vw, 28px); }
.case .case-body p { color: var(--ink-soft); margin-top: 10px; font-size: 16px; }
.case .case-foot {
  display: flex; align-items: center; gap: 22px;
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.case .case-foot .res b {
  font-family: var(--font-display); font-size: 21px; color: var(--accent);
  display: block; line-height: 1;
}
.case .case-foot .res span { font-size: 12.5px; color: var(--ink-soft); }
.case .case-link {
  margin-left: auto; font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--ink);
}
.case .case-link .arrow { transition: transform .3s var(--ease); }
.case:hover .case-link .arrow { transform: translateX(4px); }

/* ============================================================
   RESULTS / metrics
   ============================================================ */
.results {
  padding: clamp(52px, 8vh, 96px) 0;
  background: var(--ink);
  color: var(--bg);
}
.results .eyebrow { color: var(--accent-2); }
.results .eyebrow::before { background: var(--accent-2); }
.results .section-head h2 { color: var(--bg); }
.results .section-head p { color: oklch(0.78 0.01 70); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: oklch(0.34 0.012 62);
  border: 1px solid oklch(0.34 0.012 62);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--ink);
  padding: 38px 30px;
}
.stat .s-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 62px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--bg);
}
.stat .s-num .u { color: var(--accent-2); }
.stat .s-lab { color: oklch(0.78 0.01 70); margin-top: 14px; font-size: 15.5px; }
@media (max-width: 820px) { .stat-grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quotes { padding: clamp(56px, 8vh, 104px) 0; }
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  display: flex; flex-direction: column;
}
.quote.big { grid-column: span 2; background: var(--accent-wash); border-color: transparent; }
.quote .mark {
  font-family: var(--font-display);
  font-size: 54px; line-height: 0.6;
  color: var(--accent);
  height: 30px;
}
.quote p {
  font-size: 18px; line-height: 1.55;
  margin-top: 18px; color: var(--ink);
}
.quote.big p { font-size: clamp(21px, 2.3vw, 28px); font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.32; }
.quote .who {
  display: flex; align-items: center; gap: 13px;
  margin-top: auto; padding-top: 26px;
}
.quote .who .av {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  flex-shrink: 0;
  background-image: repeating-linear-gradient(-45deg, transparent 0 6px, oklch(0.5 0.01 70 / 0.08) 6px 7px);
}
.quote .who b { font-family: var(--font-display); font-size: 15.5px; display: block; }
.quote .who span { font-size: 13.5px; color: var(--ink-soft); }
@media (max-width: 820px) {
  .quote-grid { grid-template-columns: 1fr; }
  .quote.big { grid-column: span 1; }
}

/* ============================================================
   BLOG
   ============================================================ */
.blog { padding: clamp(56px, 8vh, 104px) 0; background: var(--bg-2); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.post {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.post:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -38px oklch(0.3 0.02 60 / 0.45); }
.post .ph { border-radius: 0; aspect-ratio: 16/10; border: none; border-bottom: 1px solid var(--line); }
.post .post-body { padding: 24px 24px 28px; }
.post .meta { display: flex; gap: 12px; font-size: 13px; color: var(--ink-faint); font-weight: 500; }
.post .meta .cat { color: var(--accent); }
.post h3 { font-size: 20px; margin-top: 14px; line-height: 1.2; }
.post p { color: var(--ink-soft); margin-top: 10px; font-size: 15px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: clamp(60px, 9vh, 112px) 0; }
.contact-card {
  background: var(--ink);
  color: var(--bg);
  border-radius: 30px;
  padding: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute; right: -120px; bottom: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: var(--accent-wash);
}
.contact-card .eyebrow { color: var(--accent-2); }
.contact-card .eyebrow::before { background: var(--accent-2); }
.contact-card h2 { font-size: clamp(32px, 4.4vw, 56px); color: var(--bg); margin-top: 18px; }
.contact-card .c-sub { color: oklch(0.8 0.01 70); margin-top: 20px; font-size: 18px; max-width: 44ch; }
.contact-form { position: relative; display: flex; flex-direction: column; gap: 14px; }
.contact-form .field { display: flex; flex-direction: column; gap: 7px; }
.contact-form label { font-size: 13px; font-weight: 600; color: oklch(0.8 0.01 70); letter-spacing: 0.02em; }
.contact-form input, .contact-form textarea {
  font-family: var(--font-text);
  font-size: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid oklch(0.4 0.012 62);
  background: oklch(0.29 0.013 62);
  color: var(--bg);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: oklch(0.62 0.01 66); }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent-2); background: oklch(0.31 0.013 62);
}
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-form .btn-primary { justify-content: center; margin-top: 4px; }
.form-note { font-size: 13px; color: oklch(0.7 0.01 66); text-align: center; }
.form-ok {
  display: none;
  text-align: center;
  background: var(--accent-wash);
  border: 1px solid var(--accent-2);
  border-radius: 14px;
  padding: 22px;
  color: var(--bg);
}
.form-ok.show { display: block; }
.form-ok b { font-family: var(--font-display); color: var(--accent-2); }
@media (max-width: 820px) { .contact-card { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 52px 0 30px; border-top: 1px solid var(--line); }
.footer-top {
  display: flex; justify-content: space-between; gap: 40px;
  flex-wrap: wrap; padding-bottom: 44px;
}
.footer .brand { font-size: 24px; }
.footer-tag { color: var(--ink-soft); margin-top: 14px; max-width: 36ch; font-size: 16px; }
.footer-cols { display: flex; gap: 70px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-text); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.footer-col a { display: block; color: var(--ink-soft); font-size: 15.5px; margin-top: 13px; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px;
  padding-top: 28px; border-top: 1px solid var(--line-soft);
  color: var(--ink-faint); font-size: 14px; flex-wrap: wrap;
}

/* ============================================================
   SERVICES / quotes / blog responsive
   ============================================================ */
@media (max-width: 920px) {
  .svc-grid, .quote-grid, .blog-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .case.feature { grid-column: span 1; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; }
}

/* === Production additions === */
.hero-portrait-img {
  aspect-ratio: 4/5;
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid var(--line);
}

@media (max-width: 880px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    background: none;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 0;
  }
  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-links.open nav,
  .nav-links.open .nav-cta { display: flex !important; }
  .nav-links.open {
    position: fixed;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: oklch(0.972 0.009 78 / 0.97);
    backdrop-filter: blur(14px);
    padding: 24px var(--pad);
    border-bottom: 1px solid var(--line);
    gap: 16px;
    z-index: 49;
    box-shadow: 0 8px 32px oklch(0.3 0.02 60 / 0.12);
  }
  .nav-links.open nav { flex-direction: column; gap: 16px; }
  .nav-links.open .nav-cta { margin-top: 8px; }
}
.case .thumb .thumb-img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}
.case.feature .thumb .thumb-img {
  aspect-ratio: 21 / 8;
}
.venture-img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 24px;
}
/* ============================================================
   MOBILE OVERFLOW FIXES
   ============================================================ */
@media (max-width: 860px) {
  /* Clip any decorative overflow at the section level */
  section, .nav, footer { overflow-x: clip; }

  /* Footer column gap too wide on mobile */
  .footer-cols { gap: 28px; }
  .footer-top { gap: 20px; }

  /* About facts - single column on mobile */
  .about-facts { grid-template-columns: 1fr; }

  /* Work head - stack on mobile */
  .work-head { flex-direction: column; align-items: flex-start; gap: 16px; }

  /* Stat grid already 2-col at 820px; ensure it fits */
  .stat-grid { grid-template-columns: 1fr 1fr; }

  /* Contact card sub text */
  .contact-card .c-sub { font-size: 16px; }
}
@media (max-width: 480px) {
  .hero-meta { gap: 14px; }
  .hero-meta .m-num { font-size: 24px; }
  .hero-meta .m-lab { font-size: 12px; }
}