:root {
  --bg: #ffffff;
  --surface: #fbf8f6;
  --line: #f0e6e1;
  --line-strong: #e7dcd7;
  --ink: #1c1a19;
  --muted: #7d7876;
  --faint: #a8a19e;
  --accent: #ee5a24;
  --green: #50b83c;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5.6vw, 80px);
  --max: 1280px;
  --radius: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }

/* Type */
.serif { font-family: var(--serif); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.accent { color: var(--accent); }
@media (max-width: 600px) { .br-wide { display: none; } }
.label { margin: 0 0 16px; font-size: 13px; font-weight: 500; color: var(--muted); }
.h1 { font-size: clamp(48px, 7.4vw, 88px); line-height: 1.06; letter-spacing: -0.028em; }
.h2 { font-size: clamp(36px, 4.4vw, 52px); }
.lede { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 16px; border-radius: 8px; font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; transition: background-color .2s, border-color .2s, transform .2s; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-line { background: #fff; border: 1px solid var(--line-strong); }
.btn-line:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { border: 1px solid rgb(255 255 255 / .3); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn.has-chip { padding-right: 8px; }
.chip { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 14px; transition: transform .2s; }
.btn:hover .chip { transform: translateX(2px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: -0.04em; }
.nav-links { display: flex; gap: 32px; font-size: 14px; font-weight: 500; }
.nav-links a { padding: 8px 0; color: var(--ink); }
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; gap: 10px; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--line-strong); place-items: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; content: ""; transition: transform .2s; }
.menu-toggle span::before { position: absolute; top: -5px; }
.menu-toggle span::after { position: absolute; top: 5px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(72px, 10vw, 120px) 0 clamp(48px, 6vw, 72px); text-align: center; }
.hero .h1 { margin: 28px auto 24px; }
.hero .lede { max-width: 700px; margin: 0 auto; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border: 1px solid var(--line-strong); border-radius: 99px; font-size: 13px; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgb(80 184 60 / .16); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 36px; }

/* Clients */
.clients { padding: 24px 0 clamp(72px, 9vw, 104px); text-align: center; }
.client-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px clamp(28px, 4.4vw, 64px); margin: 0; padding: 0; list-style: none; }
.client-list li { font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; letter-spacing: -0.02em; color: var(--faint); }

/* Work */
.work { padding: 24px 0 clamp(80px, 10vw, 120px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 56px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { min-height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: #fff; font-size: 13px; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 16px; }
.card { display: block; min-width: 0; }
.card.wide { grid-column: 1 / -1; }
.card[hidden] { display: none; }
.card-art { overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.card-art img { width: 100%; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-art img { transform: scale(1.012); }
.caption { padding-top: 18px; }
.caption-meta { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); }
.caption-meta .index { font-weight: 500; }
.caption-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0; }
.caption-title h3 { margin: 0; font-size: clamp(20px, 2vw, 24px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.arrow { flex-shrink: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line-strong); font-size: 15px; transition: background-color .2s, color .2s, border-color .2s; }
.card:hover .arrow { background: var(--ink); border-color: var(--ink); color: #fff; }
.caption p { margin: 0 0 8px; color: var(--muted); max-width: 72ch; }
.role { font-size: 12px; font-weight: 500; letter-spacing: .02em; color: rgb(28 26 25 / .55); }
.empty-note { grid-column: 1 / -1; color: var(--muted); }

/* How I work */
.how { padding: clamp(80px, 10vw, 120px) 0; background: var(--surface); border-block: 1px solid var(--line); }
.how .section-head p { margin: 0; color: var(--muted); max-width: 300px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 16px; padding: 0; list-style: none; }
.panel { background: #fff; border: 1px solid #efe6e1; border-radius: 16px; }
.step { padding: 28px 28px 32px; }
.step .num { display: block; margin-bottom: 40px; font-size: 13px; font-weight: 500; color: var(--accent); }
.step h3 { margin: 0 0 10px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.step p { margin: 0; font-size: 15px; color: var(--muted); }
.studio { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 64px; padding: 40px; }
.studio-name { margin: 0 0 12px; font-size: 40px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.studio p { margin: 0 0 16px; color: var(--muted); }
.text-link { display: inline-flex; gap: 6px; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.text-link:hover { border-color: var(--ink); }
.capabilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.capabilities h3 { margin: 0 0 10px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.capabilities ul { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.capabilities li + li { margin-top: 6px; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); align-items: center; gap: clamp(40px, 7vw, 96px); padding: clamp(80px, 10vw, 120px) 0; }
.portrait { width: 100%; aspect-ratio: 520 / 600; object-fit: cover; border-radius: 16px; background: var(--surface); }
.about .h2 { margin-bottom: 24px; }
.about-copy p { margin: 0 0 16px; color: var(--muted); }
.about-copy .intro { color: var(--ink); font-size: 18px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 28px 0 32px; }
.facts div { padding-top: 16px; border-top: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 15px; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Contact */
.contact { padding-bottom: clamp(48px, 7vw, 96px); }
.contact-panel { padding: clamp(64px, 9vw, 104px) clamp(24px, 6vw, 80px); border-radius: var(--radius); text-align: center; color: #fff; background: linear-gradient(135deg, #24160f 0%, #4a2c2a 60%, #8a4a2e 100%); }
.contact-panel .label { color: rgb(255 255 255 / .6); }
.contact-panel .serif { font-size: clamp(40px, 6vw, 72px); line-height: 1.08; }
.contact-panel p { max-width: 560px; margin: 24px auto 0; color: rgb(255 255 255 / .72); font-size: 18px; }
.contact-panel .hero-actions { margin-top: 36px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 28px 0; font-size: 13px; color: var(--muted); }
.footer-inner .brand { font-size: 14px; color: var(--ink); }
.footer-inner .mark { width: 24px; height: 24px; font-size: 11px; border-radius: 7px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--ink); }

/* Project page */
.project-hero { padding: clamp(48px, 7vw, 88px) 0 40px; }
.back { display: inline-flex; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.back:hover { color: var(--ink); }
.project-hero .label { margin-top: 40px; }
.project-hero .h1 { font-size: clamp(40px, 6vw, 76px); max-width: 22ch; }
.project-hero .lede { max-width: 720px; margin: 20px 0 0; font-size: clamp(18px, 2vw, 22px); }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; margin: 48px 0 0; }
.meta div { padding: 16px 24px 0 0; border-top: 1px solid var(--line); }
.meta dt { font-size: 13px; color: var(--muted); }
.meta dd { margin: 4px 0 0; font-weight: 500; }
.meta a { border-bottom: 1px solid var(--line-strong); }
.meta a:hover { border-color: var(--ink); }
.project-art { overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.project-art.narrow { max-width: 820px; margin-inline: auto; }
.project-body { padding: clamp(64px, 8vw, 104px) 0; }
.project-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); }
.project-section h2 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -0.015em; line-height: 1.2; }
.project-section p { margin: 0; font-size: 18px; line-height: 1.7; color: #45413f; max-width: 64ch; }
.points { margin: 0; padding: 0; list-style: none; }
.points li { position: relative; padding: 0 0 14px 28px; font-size: 18px; color: #45413f; }
.points li::before { content: ""; position: absolute; left: 0; top: .7em; width: 14px; height: 1.5px; background: var(--accent); }
.next { padding-bottom: clamp(64px, 8vw, 96px); }
.next .card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.next .caption { padding: 0; }

/* 404 */
.not-found { padding: clamp(96px, 16vw, 200px) 0; text-align: center; }
.not-found .lede { margin: 20px 0 36px; }

/* Responsive */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .menu-toggle { display: grid; }
  .menu-open .nav-links, .menu-open .nav-actions { display: flex; }
  .menu-open .header-inner { flex-wrap: wrap; height: auto; padding: 15px 0 20px; row-gap: 18px; }
  .menu-open .nav-links { order: 3; flex-direction: column; gap: 4px; width: 100%; font-size: 18px; }
  .menu-open .nav-actions { order: 4; width: 100%; }
  .menu-open .nav-actions .btn { flex: 1; justify-content: center; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 40px; }
  .work-grid { grid-template-columns: 1fr; gap: 56px; }
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 520px; aspect-ratio: 1; }
  .capabilities { grid-template-columns: 1fr; }
  .project-section { grid-template-columns: 1fr; gap: 16px; }
  .next .card { grid-template-columns: 1fr; gap: 0; }
  .next .caption { padding-top: 18px; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .steps { grid-template-columns: 1fr; }
  .step .num { margin-bottom: 24px; }
  .studio { padding: 28px 24px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .card-art, .project-art, .contact-panel { border-radius: 16px; }
  .hero-actions .btn, .actions .btn { flex: 1 1 auto; justify-content: center; }
  .caption-meta { flex-direction: column; gap: 2px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
