/* ---------- Tokens ---------- */
:root {
  --bg: #faf7f2;
  --bg-2: #f1ece3;
  --ink: #1c1a17;
  --ink-2: #4a4641;
  --ink-3: #7a746c;
  --line: #e4ddd1;
  --accent: #c8512f;
  --accent-ink: #a6401f;
  --accent-soft: #f6e3da;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(28, 26, 23, .04), 0 12px 32px -12px rgba(28, 26, 23, .18);
  --shadow-lift: 0 2px 4px rgba(28, 26, 23, .05), 0 24px 48px -16px rgba(28, 26, 23, .28);
  --radius: 18px;
  --radius-sm: 12px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1160px;
  --gutter: clamp(20px, 5vw, 56px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.wordmark { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 10px; }
.wordmark__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.nav__links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-2); transition: background .2s, color .2s; }
.nav__links a:hover, .nav__links a.is-active { background: var(--bg-2); color: var(--ink); }
.nav__links a.nav__cta { background: var(--ink); color: var(--bg); }
.nav__links a.nav__cta:hover { background: var(--accent); color: #fff; }
.nav__toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; font-size: 15px; color: var(--ink); }
@media (max-width: 720px) {
  .nav__toggle { display: inline-flex; }
  .nav__links { position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; gap: 4px; padding: 12px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 14px; font-size: 17px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.hero h1 { margin-top: 20px; font-size: clamp(38px, 5.4vw, 66px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent-ink); }
.hero__lede { margin-top: 24px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 54ch; text-wrap: pretty; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--accent); color: #fff; }
.btn--ghost { border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn svg { width: 16px; height: 16px; }
.hero__brands { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 26px; color: var(--ink-3); font-size: 14px; }
.hero__brands span:first-child { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.hero__brands b { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--ink-2); letter-spacing: -0.01em; }
.hero__portrait { position: relative; justify-self: end; width: min(100%, 420px); }
.hero__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: 220px 220px var(--radius) var(--radius); box-shadow: var(--shadow-lift); }
.hero__portrait::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 220px 220px var(--radius) var(--radius); background: var(--accent-soft); z-index: -1; }
.hero__badge { position: absolute; left: -18px; bottom: 36px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); font-size: 14px; line-height: 1.35; }
.hero__badge b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__portrait { justify-self: start; width: min(100%, 340px); margin-top: 8px; }
  .hero__portrait::before { inset: 14px -14px -14px 14px; }
}

/* ---------- Section index ---------- */
.index { padding: 8px 0 clamp(40px, 6vw, 72px); }
.index__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; counter-reset: idx; }
.index__list a { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: transform .2s, box-shadow .2s, border-color .2s; min-height: 108px; }
.index__list a:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.index__list a::before { counter-increment: idx; content: "0" counter(idx); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--accent-ink); }
.index__list a span { font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.15; }
@media (max-width: 860px) { .index__list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .index__list { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 112px) 0; scroll-margin-top: 72px; }
.section + .section { border-top: 1px solid var(--line); }
.section--tint { background: var(--bg-2); }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.section__head h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.02em; margin-top: 16px; text-wrap: balance; }
.section__head p { font-size: 18px; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
@media (max-width: 760px) { .section__head { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Cards (grid) ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.card h3 { font-size: 23px; letter-spacing: -0.015em; }
.card p { color: var(--ink-2); font-size: 15.5px; }
.card__link { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--accent-ink); }
.card__link svg { width: 14px; height: 14px; transition: transform .2s; }
.card:hover .card__link svg { transform: translate(2px, -2px); }
.card > a.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- Feature rows ---------- */
.features { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 88px); }
.feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature:nth-child(even) .feature__media { order: 2; }
.feature__media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.feature__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
.feature__media:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.feature__body h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.02em; margin-top: 14px; text-wrap: balance; }
.feature__body p { margin-top: 16px; color: var(--ink-2); text-wrap: pretty; }
.feature__body p + p { margin-top: 12px; }
.stat { display: inline-flex; flex-direction: column; margin-top: 22px; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.stat b { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1; color: var(--accent-ink); }
.stat span { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.feature__body .btn { margin-top: 24px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature__media { order: 0; }
}

/* ---------- Social masonry ---------- */
.masonry { columns: 4 240px; column-gap: 18px; }
.tile { position: relative; display: block; break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius-sm); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
a.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tile img { width: 100%; }
.tile__tag { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: rgba(28, 26, 23, .78); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; backdrop-filter: blur(6px); }
.tile__tag svg { width: 12px; height: 12px; }
.tile__cap { padding: 10px 12px 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); border-top: 1px solid var(--line); }

/* ---------- Impact list ---------- */
.impact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 760px) { .impact { grid-template-columns: 1fr; } }
.impact .card__media { aspect-ratio: 16 / 10; }
.impact .card h3 { font-size: 26px; }
.impact .card p { font-size: 16px; }
.impact .card p a { position: relative; z-index: 2; color: var(--accent-ink); font-weight: 700; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; }
.impact .card p a:hover { text-decoration-color: var(--accent); }
.impact .card__body { padding: 24px 26px 26px; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.about__body h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.02em; margin-top: 16px; }
.about__body p { margin-top: 18px; font-size: 18px; color: var(--ink-2); text-wrap: pretty; }
.about__body p.lead { font-size: clamp(20px, 2vw, 24px); color: var(--ink); font-family: var(--serif); font-weight: 400; line-height: 1.4; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; list-style: none; padding: 0; }
.pills li { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); }
@media (max-width: 860px) { .about__grid { grid-template-columns: 1fr; } .about__img { max-width: 360px; } }

/* ---------- Contact ---------- */
.contact { text-align: center; padding: clamp(72px, 10vw, 140px) 0; }
.contact h2 { font-size: clamp(36px, 5.5vw, 68px); letter-spacing: -0.025em; margin-top: 18px; text-wrap: balance; }
.contact h2 em { font-style: italic; font-weight: 400; color: var(--accent-ink); }
.contact p { margin: 20px auto 0; max-width: 46ch; font-size: 18px; color: var(--ink-2); }
.contact .btn { margin-top: 32px; padding: 18px 28px; font-size: 16px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--ink-3); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer a:hover { color: var(--ink); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .tile, .feature__media, .btn, .index__list a { transition: none; }
}
