:root {
  --ink: #141414;
  --ink-2: #2a2a2a;
  --ink-3: #5c5c5c;
  --paper: #f4f1ec;
  --paper-2: #ebe7e0;
  --white: #ffffff;
  --accent: #fbf9a1;
  --accent-deep: #f3ef7a;
  --accent-on-light: #6b6700;
  --line: #d9d4cc;
  --radius: 14px;
  --max: 1180px;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }

.wrap { width: min(var(--max), 100% - 2rem); margin-inline: auto; }
.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-on-light);
}
.hero .eyebrow, .work .eyebrow, .contact .eyebrow { color: var(--accent); }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.1; margin-top: 0.6rem; }
.section-head p { margin-top: 1rem; color: var(--ink-3); font-size: 1.05rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,20,20,.92); backdrop-filter: blur(10px);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; color: var(--white); text-decoration: none; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: rgba(255,255,255,.8); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.nav a:hover { color: var(--white); }
.nav .btn { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.nav a.btn-primary { color: var(--ink); }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--white);
  width: 44px; height: 44px; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px auto; transition: transform .2s; }

/* Hero */
.hero {
  position: relative; color: var(--white); background: var(--ink);
  overflow: hidden; isolation: isolate;
}
.hero img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%; z-index: -2;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20,20,20,.92) 0%, rgba(20,20,20,.78) 45%, rgba(20,20,20,.35) 100%);
}
.hero .wrap { min-height: min(86vh, 760px); display: flex; flex-direction: column; justify-content: center; padding: 5rem 0 4rem; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.0; max-width: 11ch;
  margin-top: 1rem;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lede { margin-top: 1.4rem; max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.82); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.hero .meta { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1.6rem; color: rgba(255,255,255,.65); font-size: 0.9rem; }
.hero .meta strong { color: var(--white); font-weight: 600; }

/* Strip */
.strip { background: var(--accent); color: var(--ink); }
.strip .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem;
  padding: 0.9rem 0; font-family: var(--display); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase;
}

/* Services */
.services { background: var(--paper); }
.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; display: flex; flex-direction: column; gap: 0.7rem;
}
.card .icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--ink); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 0.4rem;
}
.card h3 { font-size: 1.2rem; }
.card p { color: var(--ink-3); font-size: 0.97rem; }
.card ul { margin: 0.2rem 0 0; padding-left: 1.1rem; color: var(--ink-2); font-size: 0.92rem; }
.card li + li { margin-top: 0.2rem; }

/* Work */
.work { background: var(--ink); color: var(--white); }
.work .section-head p { color: rgba(255,255,255,.7); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; grid-auto-flow: dense; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
  font-size: 0.9rem;
}
.gallery figcaption strong { display: block; font-family: var(--display); font-size: 1rem; }
.gallery figcaption span { color: rgba(255,255,255,.75); font-size: 0.82rem; }
.gallery .featured { grid-column: span 2; grid-row: span 2; }
.gallery .featured img { aspect-ratio: 1 / 1; height: 100%; }
.gallery .wide { grid-column: span 2; }
.gallery .wide img { aspect-ratio: 2.08 / 1; }
.gallery-note { margin-top: 1.2rem; color: rgba(255,255,255,.55); font-size: 0.85rem; }

/* Process */
.process { background: var(--paper-2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.step { position: relative; padding: 1.6rem 1.4rem 1.4rem; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--display); font-weight: 700; color: var(--accent-on-light); font-size: 0.9rem; letter-spacing: 0.1em;
}
.step h3 { font-size: 1.15rem; margin-top: 0.5rem; }
.step p { margin-top: 0.5rem; color: var(--ink-3); font-size: 0.95rem; }

/* About */
.about .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.about h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; margin-top: 0.6rem; }
.about p { margin-top: 1rem; color: var(--ink-2); font-size: 1.05rem; }
.about .facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.about .fact { border-top: 2px solid var(--ink); padding-top: 0.8rem; }
.about .fact strong { display: block; font-family: var(--display); font-size: 1.5rem; }
.about .fact span { color: var(--ink-3); font-size: 0.9rem; }
.about img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: center 40%; width: 100%; }

/* Contact */
.contact { background: var(--ink); color: var(--white); }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; margin-top: 0.6rem; }
.contact .lead { margin-top: 1rem; color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 40ch; }
.contact dl { margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.contact dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,.5); }
.contact dd { margin: 0.2rem 0 0; font-size: 1.1rem; }
.contact dd a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.contact dd a:hover { border-color: var(--accent); }
.form {
  background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 1.8rem;
  display: grid; gap: 1rem;
}
.form h3 { font-size: 1.25rem; }
.form label { display: grid; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; }
.form input, .form select, .form textarea {
  font: inherit; padding: 0.75rem 0.85rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
}
.form textarea { min-height: 110px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form small { color: var(--ink-3); }

/* Footer */
.site-footer { background: #0e0e0e; color: rgba(255,255,255,.6); font-size: 0.85rem; }
.site-footer .wrap { padding: 2rem 0; display: grid; gap: 1.2rem; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.site-footer .brand img { height: 30px; }
.site-footer a { color: rgba(255,255,255,.75); }
.credits { font-size: 0.75rem; line-height: 1.6; color: rgba(255,255,255,.45); border-top: 1px solid rgba(255,255,255,.08); padding-top: 1rem; }

/* Responsive */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .featured { grid-column: span 2; grid-row: auto; }
  .gallery .featured img { aspect-ratio: 16 / 10; }
  .gallery .wide img { aspect-ratio: 16 / 9; }
  .about .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .about img { aspect-ratio: 16 / 10; object-position: center 35%; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 1rem 1.2rem; border-top: 1px solid rgba(255,255,255,.06); }
  .nav .btn { margin: 0.8rem 1.2rem 1.2rem; justify-content: center; border-radius: 10px; }
  .hero .wrap { min-height: 0; padding: 4rem 0 3rem; }
  .hero::after { background: linear-gradient(180deg, rgba(20,20,20,.9), rgba(20,20,20,.8)); }
  .grid-3, .steps, .gallery { grid-template-columns: 1fr; }
  .gallery .featured, .gallery .wide { grid-column: auto; }
  .gallery .wide img { aspect-ratio: 4 / 3; }
  .form .row { grid-template-columns: 1fr; }
  .about .facts { grid-template-columns: 1fr 1fr; }
}
