/* ==========================================================================
   Molly Bruckman — portfolio
   Warm paper, ink, one copper accent. Fraunces for display, Inter for text.
   ========================================================================== */

:root {
  --paper: #f8f5ef;
  --paper-2: #f0eadf;
  --card: #fdfbf7;
  --ink: #1b1814;
  --ink-2: #48413a;        /* body copy: ~9:1 on paper */
  --muted: #6e665d;        /* captions, labels: ~5:1 on paper */
  --rule: #e2dacd;
  --accent: #a6461d;       /* copper, AA for text on paper */
  --accent-ink: #fff8f2;
  --night: #1d1915;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(80px, 10vw, 128px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
strong { color: var(--ink); font-weight: 600; }
ul, ol { list-style: none; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  line-height: 1.12;
  text-wrap: balance;
}
p { text-wrap: pretty; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 500; transition: top .2s;
}
.skip-link:focus { top: 16px; }

.eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  font: 500 .9375rem/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .875rem; }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-ghost-light { background: transparent; color: var(--paper); border-color: rgba(248, 245, 239, .4); }
.btn-ghost-light:hover { border-color: var(--paper); background: rgba(248, 245, 239, .08); }

.text-link {
  color: var(--ink); font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px; transition: color .2s, background-size .3s var(--ease);
}
.text-link:hover { color: var(--accent); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 245, 239, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.wordmark {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.site-header nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); }
.nav-links { display: flex; gap: clamp(16px, 2.6vw, 28px); }
.nav-links a {
  font-size: .9375rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
  padding: 8px 0; transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 9vw, 112px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 88px);
  align-items: end;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  font-weight: 350; letter-spacing: -0.025em; line-height: 1.04;
  margin-bottom: 28px; max-width: 15ch;
}
.hero h1 em { font-style: italic; font-weight: 350; color: var(--accent); }
.lede { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); max-width: 60ch; margin-bottom: 36px; }

.portrait { width: clamp(180px, 20vw, 240px); }
.portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: 999px 999px 18px 18px;
  box-shadow: 0 30px 60px -30px rgba(60, 40, 20, .35);
}

.proof {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--rule);
}
.proof > div { padding: 28px 24px 4px 0; }
.proof > div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.proof dt {
  font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 400;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1; margin-bottom: 10px;
}
.proof dd { font-size: .875rem; line-height: 1.5; color: var(--muted); max-width: 26ch; }
.press { margin-top: 28px; font-size: .875rem; color: var(--muted); }
.press a { color: var(--ink-2); text-underline-offset: 3px; text-decoration-color: var(--rule); }
.press a:hover { color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-tint { background: var(--paper-2); }
.section-head { margin-bottom: clamp(44px, 6vw, 72px); }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); max-width: 24ch; }

/* ---------- Case studies ---------- */
.case + .case {
  margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(64px, 8vw, 104px);
  border-top: 1px solid var(--rule);
}
.case-head { max-width: 46rem; margin-bottom: 28px; }
.case-tag { font-size: .8125rem; font-weight: 500; letter-spacing: .02em; color: var(--muted); margin-bottom: 14px; }
.case h3 { font-size: clamp(1.625rem, 2.8vw, 2.25rem); }
.case-body {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px clamp(32px, 6vw, 80px); align-items: start;
}
.case-body > p { max-width: 62ch; }
.case-body .note { grid-column: 1; font-size: .9375rem; color: var(--muted); }

.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.metrics dt {
  font-family: var(--serif); font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 400;
  color: var(--accent); letter-spacing: -0.02em; line-height: 1; margin-bottom: 8px;
}
.metrics dd { font-size: .875rem; line-height: 1.5; color: var(--muted); }

.media-stack { display: grid; gap: clamp(20px, 3vw, 32px); margin-top: clamp(40px, 5vw, 56px); }
.media-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); align-items: start; }
.media-pair-video { margin-top: clamp(40px, 5vw, 56px); grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.media-col { display: grid; gap: clamp(20px, 3vw, 32px); }

.media img, .media video {
  width: 100%; border-radius: var(--radius); background: var(--paper-2);
  box-shadow: 0 0 0 1px var(--rule), 0 24px 48px -32px rgba(60, 40, 20, .3);
}
figcaption { margin-top: 12px; font-size: .8125rem; line-height: 1.55; color: var(--muted); max-width: 70ch; }

/* ---------- Offers ---------- */
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.offer {
  display: flex; flex-direction: column; gap: 20px;
  background: var(--card); border: 1px solid var(--rule); border-radius: 20px;
  padding: clamp(28px, 4vw, 48px);
}
.offer-kicker { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.offer h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
.offer .btn { align-self: flex-start; margin-top: auto; }
.steps { counter-reset: step; display: grid; gap: 16px; padding-top: 4px; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; font-size: .9375rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rule);
  display: grid; place-items: center; font: 500 .8125rem/1 var(--sans); color: var(--accent); background: var(--paper);
}
.checks { display: grid; gap: 10px; font-size: .9375rem; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px;
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg);
}

/* ---------- About ---------- */
.principles {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(64px, 9vw, 104px); margin-bottom: clamp(64px, 9vw, 104px);
  border-bottom: 1px solid var(--rule);
}
.principle h3 { font-size: 1.375rem; margin-bottom: 12px; }
.principle p { font-size: .9375rem; }

.career { display: grid; gap: clamp(36px, 5vw, 56px); max-width: 60rem; }
.career > li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 24px; }
.career-when { font-size: .875rem; font-weight: 500; color: var(--muted); padding-top: .35em; font-variant-numeric: tabular-nums; }
.career h3 { font-size: 1.5rem; margin-bottom: 10px; }
.career h3 span { display: block; margin-top: 6px; font: 400 .9375rem/1.5 var(--sans); color: var(--muted); letter-spacing: 0; }
.roles { display: grid; gap: 12px; margin-top: 18px; }
.roles li { position: relative; padding-left: 20px; font-size: .9375rem; }
.roles li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--accent); }

/* ---------- Ventures ---------- */
.ventures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.venture {
  background: var(--card); border: 1px solid var(--rule); border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
}
.venture-gallery {
  display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px;
  aspect-ratio: 16 / 9; background: var(--rule);
}
.venture-gallery img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.venture-gallery img:first-child { grid-row: span 2; }
.venture-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.venture-body { padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.venture h3 { font-size: 1.75rem; }
.venture-tag { font-size: .875rem; color: var(--muted); margin-top: -6px; }
.venture .text-link { align-self: flex-start; margin-top: auto; padding-top: 8px; background-position: 0 100%; }

/* ---------- Quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.quote { border-top: 1px solid var(--ink); padding-top: 24px; }
.quote blockquote p {
  font-family: var(--serif); font-size: clamp(1.1875rem, 1.7vw, 1.375rem); font-weight: 350;
  line-height: 1.45; color: var(--ink); letter-spacing: -0.01em;
}
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(248, 245, 239, .78); padding-block: var(--section) 48px; }
.site-footer .eyebrow { color: #e0956b; }
.site-footer h2 { color: var(--paper); font-size: clamp(3rem, 8vw, 6rem); font-weight: 350; letter-spacing: -0.03em; margin-bottom: 24px; }
.footer-lede { max-width: 52ch; font-size: 1.125rem; margin-bottom: 36px; }
.colophon { margin-top: clamp(72px, 10vw, 120px); padding-top: 24px; border-top: 1px solid rgba(248, 245, 239, .14); font-size: .8125rem; color: rgba(248, 245, 239, .55); }
.site-footer :focus-visible { outline-color: #e0956b; }

/* ---------- Motion (opt-in via JS, skipped for reduced motion) ---------- */
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.motion .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .case-body { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; max-width: 40rem; }
  .proof { grid-template-columns: repeat(2, 1fr); }
  .proof > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .proof > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 820px) {
  .offers, .ventures { grid-template-columns: 1fr; }
  .media-pair, .media-pair-video { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { order: -1; width: 132px; }
  .career > li { grid-template-columns: 1fr; gap: 6px; }
  .metrics { gap: 24px 20px; }
  .proof > div { padding-right: 12px; }
  .proof > div + div { padding-left: 16px; }
  .proof > div:nth-child(3) { padding-left: 0; }
}
