:root {
  --paper: #f3efe7;
  --paper-2: #ebe5d9;
  --ink: #1b2320;
  --ink-2: #4a524d;
  --ink-3: #6f746f;
  --line: rgba(27, 35, 32, 0.14);
  --deep: #17302c;
  --deep-ink: #eae6dc;
  --accent: #c24a2a;
  --font-display: 'Zodiak', 'Times New Roman', serif;
  --font-body: 'General Sans', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
em { font-style: italic; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 239, 231, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark {
  display: inline-flex; align-items: baseline; gap: 0.32em; white-space: nowrap; text-decoration: none;
  font-family: 'Bodoni Moda', 'Didot', 'Times New Roman', serif; font-weight: 800; text-transform: uppercase; line-height: 1;
  font-size: 25px; letter-spacing: 0.02em; font-variation-settings: 'opsz' 8;
}
.wm-nc { color: inherit; }
.wm-rule { display: none; }
.wm-name { letter-spacing: 0.06em; }
.wordmark.small { font-size: 24px; }
.wordmark.small .wm-nc { color: inherit; }
.menu-btn {
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-content: center; gap: 7px; margin-right: -10px;
}
.menu-btn span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform .25s ease; }
.nav-open .menu-btn span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-open .menu-btn span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.nav {
  position: fixed; inset: 64px 0 auto 0; background: var(--paper);
  display: flex; flex-direction: column; padding: 8px var(--gutter) 24px;
  border-bottom: 1px solid var(--line);
  transform: translateY(-8px); opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-open .nav { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.nav a { text-decoration: none; font-family: var(--font-display); font-size: 30px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.nav a:last-child { border-bottom: 0; }

@media (min-width: 860px) {
  .menu-btn { display: none; }
  .nav {
    position: static; flex-direction: row; align-items: center; gap: 32px; padding: 0; border: 0; background: none;
    opacity: 1; transform: none; pointer-events: auto; visibility: visible;
  }
  .nav a { font-family: var(--font-body); font-size: 14px; font-weight: 500; padding: 0; border: 0; color: var(--ink-2); }
  .nav a:hover { color: var(--ink); }
  .nav a.nav-cta { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  background: var(--deep); color: var(--deep-ink); text-decoration: none; font-size: 15px; font-weight: 500;
  border-radius: 2px; transition: background .2s ease;
}
.btn:hover { background: #0f2320; }
.btn-light { background: var(--paper); color: var(--deep); }
.btn-light:hover { background: #fff; }
.link-arrow { font-size: 15px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; gap: 8px; }
.link-arrow::after { content: '→'; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Hero */
.hero { padding-bottom: clamp(56px, 9vw, 112px); border-bottom: 1px solid var(--line); }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 60%; }
.hero-copy { padding-top: 32px; }
.eyebrow { font-size: 13px; color: var(--ink-3); margin-bottom: 18px; letter-spacing: 0.02em; }
.hero h1 { font-family: var(--font-display); font-size: clamp(42px, 9vw, 84px); line-height: 1.02; letter-spacing: -0.025em; max-width: 14ch; }
.hero h1 em { color: var(--accent); }
.lede { margin-top: 24px; font-size: 17px; color: var(--ink-2); max-width: 58ch; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }

@media (min-width: 860px) {
  .hero { display: grid; }
  .hero-media img { aspect-ratio: 21 / 9; object-position: 50% 62%; }
  .hero-copy { padding-top: 56px; display: grid; grid-template-columns: 1.25fr 1fr; column-gap: 64px; align-items: end; }
  .hero-copy .eyebrow { grid-column: 1 / -1; }
  .hero h1 { grid-column: 1; }
  .hero .lede, .hero-actions { grid-column: 2; }
  .hero .lede { margin-top: 0; }
  .hero-actions { margin-top: 24px; }
  .hero-copy { grid-template-rows: auto auto auto; }
  .hero h1 { grid-row: 2 / 4; }
}

/* Section heads */
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 48px); line-height: 1.05; letter-spacing: -0.01em; max-width: 20ch; }
.section-head h2 em { color: var(--accent); }

/* Portfolio — magazine */
.portfolio { padding-block: clamp(64px, 10vw, 128px); }
.stories { display: grid; gap: 56px; border-top: 1px solid var(--ink); padding-top: 40px; }
.story { display: grid; gap: 22px; }
.stage {
  position: relative; display: block; text-decoration: none;
  background: color-mix(in srgb, var(--pop) 32%, var(--paper));
  padding: 7% 20% 9% 6%; border-radius: 4px; overflow: hidden;
  transition: background .25s ease;
}
.stage:hover { background: color-mix(in srgb, var(--pop) 48%, var(--paper)); }
.browser {
  position: relative; background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 24px 48px -24px rgba(27, 35, 32, 0.45), 0 0 0 1px rgba(27, 35, 32, 0.08);
  transition: transform .35s ease;
}
.bar { height: 26px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: #efeeeb; border-bottom: 1px solid rgba(27,35,32,.08); }
.bar i { width: 8px; height: 8px; border-radius: 50%; background: #d4d1cb; flex: none; }
.bar i:first-child { background: var(--pop); }
.bar span { margin-left: 8px; font-size: 11px; color: var(--ink-3); background: #fff; border-radius: 999px; padding: 2px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.phone {
  position: absolute; right: 5%; bottom: 6%; width: 27%;
  border: 5px solid #141816; border-radius: 22px; overflow: hidden; background: #141816;
  box-shadow: 0 24px 40px -18px rgba(27, 35, 32, 0.55);
  transition: transform .35s ease;
}
.phone img { width: 100%; aspect-ratio: 9 / 19; object-fit: cover; object-position: top; border-radius: 16px; }
.stage:hover .browser { transform: translateY(-4px); }
.stage:hover .phone { transform: translateY(-8px) rotate(-1.5deg); }
@media (prefers-reduced-motion: reduce) { .stage:hover .browser, .stage:hover .phone { transform: none; } }
.story-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.story-num { font-family: var(--font-display); font-size: 34px; line-height: 1; color: var(--ink); }
.story-tag {
  display: inline-block; background: var(--pop); color: var(--ink); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
}
.story h3 { font-family: var(--font-display); font-size: clamp(36px, 7vw, 48px); line-height: 1.02; margin-bottom: 12px; }
.story-desc { color: var(--ink-2); max-width: 52ch; }
.h-link {
  margin-top: 16px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  border-bottom: 2px solid var(--pop); overflow-wrap: anywhere;
}
.h-link:hover { background: var(--pop); }
@media (min-width: 860px) {
  .stories { grid-template-columns: repeat(12, 1fr); column-gap: 32px; row-gap: 96px; padding-top: 56px; }
  .story--feature { grid-column: 1 / -1; grid-template-columns: 8fr 4fr; column-gap: 48px; align-items: end; }
  .story--feature h3 { font-size: 64px; }
  .story--half { grid-column: span 6; align-content: start; }
  .story--half.story--drop { margin-top: 120px; }
  .story--half .stage { padding: 9% 22% 12% 6%; }
  .story--wide { grid-column: 1 / -1; grid-template-columns: 7fr 5fr; column-gap: 56px; align-items: center; }
  .story--flip { grid-template-columns: 5fr 7fr; }
  .story--flip .stage { order: 2; }
  .story--flip .story-copy { order: 1; }
}

/* Approach */
.approach { background: var(--deep); color: var(--deep-ink); padding-bottom: clamp(64px, 10vw, 128px); }
.approach-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 60%; }
.approach-inner { padding-top: clamp(48px, 8vw, 96px); }
.approach .label { color: #ffb39f; }
.approach .section-head h2 em { color: #ffb39f; }
.principles { display: grid; gap: 0; counter-reset: p; border-top: 1px solid rgba(234, 230, 220, 0.25); }
.principles li { padding-block: 24px; border-bottom: 1px solid rgba(234, 230, 220, 0.18); counter-increment: p; }
.principles h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; display: flex; gap: 12px; align-items: baseline; }
.principles h3::before { content: counter(p, decimal-leading-zero); font-size: 13px; font-weight: 400; color: rgba(234, 230, 220, 0.6); }
.principles p { color: rgba(234, 230, 220, 0.82); max-width: 52ch; }
@media (min-width: 860px) {
  .approach-media img { aspect-ratio: 21 / 8; }
  .principles { grid-template-columns: 1fr 1fr; column-gap: 64px; border-top: 0; }
  .principles li { padding-block: 32px; }
  .principles li:nth-child(-n+2) { border-top: 1px solid rgba(234, 230, 220, 0.25); }
}

/* Family */
.family { padding-block: clamp(64px, 10vw, 128px); }
.family-inner { display: grid; gap: 40px; }
.family-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.family-copy h2 { font-family: var(--font-display); font-size: clamp(34px, 6vw, 56px); line-height: 1.05; margin: 14px 0 18px; }
.family-copy > p:not(.label) { color: var(--ink-2); max-width: 52ch; }
.family-copy .family-contact { margin-top: 22px; color: var(--ink); }
.btn-linkedin { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; }
.footer-link { align-self: flex-start; gap: 4px; color: inherit; text-decoration: none; border-bottom: 1px solid rgba(234, 230, 220, 0.35); min-height: 44px; display: inline-flex; align-items: center; }
.footer-link:hover { color: #fff; }
.people { margin-top: 36px; display: grid; gap: 28px; }
.person { border-top: 1px solid var(--ink); padding-top: 18px; }
.person h3 { font-family: var(--font-display); font-size: 30px; line-height: 1.1; }
.role { font-size: 13px; color: var(--accent); font-weight: 500; margin: 4px 0 10px; }
.person p:last-child { color: var(--ink-2); }
@media (min-width: 860px) {
  .family-inner { grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
  .people { grid-template-columns: 1fr; max-width: 52ch; }
}

/* Places */
.places { border-top: 1px solid var(--line); }
.places-inner { display: grid; padding-block: 0; }
.place { padding-block: 32px; border-bottom: 1px solid var(--line); }
.place:last-child { border-bottom: 0; }
.place-line { font-family: var(--font-display); font-size: clamp(26px, 4vw, 36px); line-height: 1.2; margin-top: 10px; max-width: 24ch; }
@media (min-width: 860px) {
  .places-inner { grid-template-columns: 1fr 1fr; }
  .place { padding-block: 56px; border-bottom: 0; }
  .place:first-child { border-right: 1px solid var(--line); padding-right: 48px; }
  .place:last-child { padding-left: 48px; }
}

/* Contact */
.contact { background: var(--deep); color: var(--deep-ink); padding-block: clamp(64px, 10vw, 120px); }
.contact h2 { font-family: var(--font-display); font-size: clamp(34px, 6vw, 60px); line-height: 1.02; max-width: 18ch; }
.contact h2 em { color: #ffb39f; }
.contact-routes { margin: 40px 0; border-top: 1px solid rgba(234, 230, 220, 0.25); }
.contact-routes li { display: grid; gap: 4px; padding-block: 18px; border-bottom: 1px solid rgba(234, 230, 220, 0.18); color: rgba(234, 230, 220, 0.82); }
.contact .label { color: #ffb39f; }
@media (min-width: 860px) {
  .contact-routes { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; border-top: 0; }
  .contact-routes li { border-top: 1px solid rgba(234, 230, 220, 0.25); border-bottom: 0; }
}

/* Footer */
.site-footer { background: #10211e; color: rgba(234, 230, 220, 0.7); font-size: 13px; }
.footer-inner { display: flex; flex-direction: column; gap: 8px; padding-block: 28px; }
.footer-inner .wordmark { color: var(--deep-ink); }
@media (min-width: 860px) { .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; } }

/* Brand logos in portfolio cards */
.story h3.story-logo { margin-bottom: 16px; line-height: 0; }
.story-logo img { display: block; width: auto; max-width: 100%; height: var(--logo-h, 36px); }
.story-logo--mls { --logo-h: 30px; }
.story-logo--res { --logo-h: 34px; }
.story-logo--dm { --logo-h: 22px; }
.story-logo--ea { --logo-h: 76px; }
.story-logo--tax { --logo-h: 56px; }
.story-logo--cer { --logo-h: 36px; }
@media (min-width: 860px) {
  .story-logo--mls { --logo-h: 44px; }
  .story-logo--res { --logo-h: 40px; }
  .story-logo--dm { --logo-h: 26px; }
  .story-logo--ea { --logo-h: 92px; }
  .story-logo--tax { --logo-h: 64px; }
  .story-logo--cer { --logo-h: 44px; }
}
