/* ==========================================================================
   Studio Marlow - Creative Portfolio template
   --------------------------------------------------------------------------
   REBRAND IN ONE MINUTE
   - Change --accent to your signature color (used for big shapes, the CTA
     band and highlights). Keep --accent-ink a darker shade of the same hue:
     it is used for small accent text and must stay readable on --paper.
   - --paper is the page background, --ink the main text color.
   - Fonts: swap the Google Fonts <link> in each page's <head>, then update
     --font-display and --font-body below. Keep the system fallbacks.
   ========================================================================== */
:root {
  --paper: #f5f2ec;
  --paper-2: #ece7de;
  --ink: #141414;
  --ink-2: #4a4743;
  --line: #d6d0c4;
  --accent: #e4572e;
  --accent-ink: #b8361a;
  --accent-soft: #f6d3c6;

  --font-display: "Syne", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.02; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .7rem 1rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.logo {
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em;
  text-decoration: none; display: inline-flex; align-items: center; gap: .55rem;
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 50%; background: var(--ink); position: relative; flex: none;
}
.logo-mark::after {
  content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); right: -3px; bottom: -3px; border: 2px solid var(--paper);
}
.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  background: none; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink);
  padding: .5rem .95rem; font: 600 .9rem var(--font-body); cursor: pointer;
}
.nav-toggle-bars { width: 16px; height: 10px; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .25s var(--ease);
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-4px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.5rem;
}
.site-nav ul { list-style: none; display: flex; flex-direction: column; }
.site-nav a {
  display: block; text-decoration: none; font-family: var(--font-display); font-weight: 600;
  font-size: 1.6rem; padding: .55rem 0; border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"] { color: var(--accent-ink); }
.site-nav a[aria-current="page"]::before { content: "\2192\00a0"; }

@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; padding: 0; border: 0; background: none; }
  .site-nav ul { flex-direction: row; gap: .25rem; }
  .site-nav a {
    font-family: var(--font-body); font-size: .95rem; font-weight: 500; border: 0;
    padding: .45rem .85rem; border-radius: 999px; transition: background .2s, color .2s;
  }
  .site-nav a:hover { background: var(--paper-2); }
  .site-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
  .site-nav a[aria-current="page"]::before { content: none; }
  .site-nav .nav-cta { border: 1px solid var(--ink); margin-left: .5rem; }
}

/* ---------- Shared bits ---------- */
.eyebrow {
  font: 600 .78rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.btn {
  display: inline-flex; align-items: center; gap: .6rem; justify-content: center;
  font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer;
  padding: .95rem 1.4rem; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); transition: transform .2s var(--ease), background .2s, color .2s;
}
.btn:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.link-arrow { font-weight: 600; text-underline-offset: .25em; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-title { font-size: clamp(2.2rem, 6vw, 4.2rem); }
.section-num { font: 500 .9rem var(--font-body); color: var(--ink-2); display: block; margin-bottom: .75rem; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Placeholder art ---------- */
.ph {
  display: block; position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; background: var(--ph-bg, linear-gradient(135deg, #2a2a2a, #111));
  color: var(--ph-fg, var(--paper)); isolation: isolate;
}
.ph::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background-image: radial-gradient(currentColor 1px, transparent 1.4px);
  background-size: 14px 14px;
}
.ph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-label {
  position: absolute; left: .75rem; bottom: .75rem; z-index: 2;
  font: 500 .75rem/1.2 var(--font-body); letter-spacing: .02em;
  background: rgba(20, 20, 20, .78); color: #fff; padding: .4rem .6rem; border-radius: 3px;
  display: inline-flex; gap: .4rem; align-items: center; max-width: calc(100% - 1.5rem);
}
.ph-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.ph--1 { --ph-bg: linear-gradient(140deg, #e4572e 0%, #f08a5d 60%, #f6c6a8 100%); --ph-fg: #141414; }
.ph--2 { --ph-bg: linear-gradient(160deg, #1b1b1b 0%, #3a3633 100%); --ph-fg: #f5f2ec; }
.ph--3 { --ph-bg: linear-gradient(120deg, #d9e2dc 0%, #b9cbbf 100%); --ph-fg: #1f3a2c; }
.ph--4 { --ph-bg: linear-gradient(150deg, #f2e6c9 0%, #e8c98f 100%); --ph-fg: #4a3410; }
.ph--5 { --ph-bg: linear-gradient(135deg, #22314a 0%, #3f5a85 100%); --ph-fg: #e7edf7; }
.ph--6 { --ph-bg: linear-gradient(135deg, #f6d3c6 0%, #f5f2ec 100%); --ph-fg: #b8361a; }
.ph--7 { --ph-bg: linear-gradient(200deg, #141414 0%, #e4572e 140%); --ph-fg: #f5f2ec; }
.ph--8 { --ph-bg: linear-gradient(160deg, #e9e4f3 0%, #c9bfe0 100%); --ph-fg: #31285a; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-grid { display: grid; gap: 2.5rem; }
.hero-title {
  font-size: clamp(2.9rem, 10vw, 7.6rem); line-height: .94; letter-spacing: -0.045em; font-weight: 800;
}
.hero-title .hl { position: relative; white-space: nowrap; }
.hero-title .hl svg {
  position: absolute; left: -4%; bottom: -.08em; width: 108%; height: .32em; z-index: -1; color: var(--accent);
}
.hero-title .outline { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.hero-side { display: grid; gap: 1.5rem; align-content: end; }
.hero-side p { font-size: 1.15rem; color: var(--ink-2); max-width: 34ch; margin: 0; }
.status {
  display: inline-flex; white-space: nowrap; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 500;
  padding: .45rem .85rem; border: 1px solid var(--line); border-radius: 999px; width: fit-content;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #2f9e5b; box-shadow: 0 0 0 0 rgba(47, 158, 91, .5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 158, 91, .55); } 70% { box-shadow: 0 0 0 9px rgba(47, 158, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 158, 91, 0); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.disciplines {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 1.25rem; border-top: 1px solid var(--ink); list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 2.2vw, 1.4rem);
}
.disciplines span { font: 500 .8rem var(--font-body); color: var(--ink-2); vertical-align: super; margin-right: .3rem; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 8.5fr) minmax(0, 3.5fr); align-items: end; gap: 3rem; }
}

/* ---------- Work grid + filter ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.filter-btn {
  font: 500 .95rem var(--font-body); padding: .55rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink); transition: background .2s, border-color .2s, color .2s;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter-btn .count { font-size: .75rem; opacity: .7; margin-left: .25rem; }

.work-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 2rem); list-style: none; grid-auto-flow: dense; }
.work-item { transition: opacity .32s var(--ease), transform .32s var(--ease); }
.work-item.is-out { opacity: 0; transform: translateY(14px) scale(.98); }
.work-item[hidden] { display: none; }
.work-card {
  display: block; width: 100%; text-align: left; padding: 0; border: 0; background: none; color: inherit;
  font: inherit; cursor: zoom-in;
}
.work-card .ph { transition: transform .5s var(--ease), border-radius .5s var(--ease); }
.work-card:hover .ph { transform: scale(.985); border-radius: 18px; }
.work-card:focus-visible { outline-offset: 6px; }
.work-meta { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-top: .9rem; }
.work-title { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.work-cat { font-size: .88rem; color: var(--ink-2); white-space: nowrap; }
.work-cat::before { content: "\25CF\00a0"; color: var(--accent); font-size: .7em; vertical-align: .15em; }
.work-desc { display: block; color: var(--ink-2); font-size: .95rem; margin: .25rem 0 0; }
.view-hint {
  position: absolute; top: .75rem; right: .75rem; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); color: var(--ink); display: grid; place-items: center;
  opacity: 0; transform: scale(.7); transition: opacity .25s, transform .25s var(--ease);
}
.work-card:hover .view-hint, .work-card:focus-visible .view-hint { opacity: 1; transform: none; }
.work-status { margin: 1.5rem 0 0; font-size: .9rem; color: var(--ink-2); min-height: 1.5em; }

@media (min-width: 700px) {
  .work-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .work-item { grid-column: span 6; }
  .work-item.span-7 { grid-column: span 7; }
  .work-item.span-5 { grid-column: span 5; }
  .work-item.span-5 .ph { aspect-ratio: 4 / 4.2; }
  .work-item.offset { margin-top: clamp(0rem, 6vw, 5rem); }
}

/* ---------- Clients + testimonial ---------- */
.clients { padding: 2.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients-inner { display: grid; gap: 1.25rem; }
.clients-list { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; list-style: none; }
.clients-list li { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #6b665f; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: .5rem; }
.clients-list li::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 50%; }
.clients-list li:nth-child(2n)::before { border-radius: 2px; transform: rotate(45deg); }
@media (min-width: 900px) { .clients-inner { grid-template-columns: 220px 1fr; align-items: center; } }

.quote-block { display: grid; gap: 2rem; }
.quote-block blockquote { margin: 0; }
.quote-block blockquote p {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 4vw, 2.9rem);
  line-height: 1.12; letter-spacing: -0.025em; margin: 0;
}
.quote-mark { font-family: var(--font-display); font-size: 6rem; line-height: .6; color: var(--accent); height: 3rem; }
.tag {
  display: inline-block; font: 600 .72rem var(--font-body); letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent-soft); color: #8f2a12; padding: .3rem .55rem; border-radius: 3px;
}
.quote-block figcaption { color: var(--ink-2); margin-top: 1.25rem; }
.quote-block figcaption strong { color: var(--ink); }
@media (min-width: 900px) { .quote-block { grid-template-columns: 1fr 3fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: var(--ink); padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%;
  border: 2px solid rgba(20, 20, 20, .25); box-shadow: 0 0 0 60px rgba(20, 20, 20, .04), 0 0 0 120px rgba(20, 20, 20, .03);
}
.cta-inner { position: relative; z-index: 1; display: grid; gap: 2rem; align-items: end; }
.cta-band h2 { font-size: clamp(2.6rem, 8vw, 6.4rem); line-height: .95; letter-spacing: -0.04em; font-weight: 800; }
.cta-band .btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d4ca; padding: 4rem 0 2rem; }
.footer-top { display: grid; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid #34312d; }
.footer-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 7vw, 4.5rem); color: var(--paper); text-decoration: none; letter-spacing: -0.04em; line-height: 1; }
.footer-big:hover { color: var(--accent); }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.footer-cols h2 { font: 600 .75rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #a39d92; margin-bottom: .9rem; }
.footer-cols ul { list-style: none; display: grid; gap: .4rem; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: var(--paper); text-decoration: underline; text-decoration-color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-top: 1.5rem; font-size: .88rem; color: #a39d92; }
.site-footer :focus-visible { outline-color: var(--accent); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr; align-items: start; } .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; margin: auto; width: min(1100px, calc(100vw - 1.5rem)); max-height: calc(100vh - 1.5rem);
  background: var(--paper); color: var(--ink); border-radius: 10px; overflow: auto;
}
.lightbox::backdrop { background: rgba(14, 13, 12, .86); backdrop-filter: blur(3px); }
.lightbox[open] { animation: lb-in .3s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.lightbox-inner { display: grid; }
.lightbox-figure { margin: 0; }
.lightbox-art .ph { aspect-ratio: 16 / 10; max-height: min(64vh, 640px); width: 100%; border-radius: 0; }
.lightbox-art .ph-label { font-size: .85rem; }
.lightbox-caption { padding: 1.25rem 1.25rem 1.5rem; display: grid; gap: .35rem; }
.lightbox-caption h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.lightbox-caption p { margin: 0; color: var(--ink-2); }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 1rem; border-top: 1px solid var(--line); }
.lightbox-count { font-size: .9rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lb-btn {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--ink); border: 1px solid var(--line); transition: background .2s, border-color .2s;
}
.lb-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.lb-close { position: absolute; top: .75rem; right: .75rem; z-index: 3; background: var(--paper); border-color: var(--paper); }
.lb-nav { display: flex; gap: .5rem; }
.lightbox-figure { position: relative; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem); }
.page-title { font-size: clamp(2.6rem, 9vw, 6.8rem); line-height: .95; letter-spacing: -0.045em; font-weight: 800; margin-top: 1rem; max-width: 14ch; }
.page-hero .eyebrow { display: flex; width: fit-content; }
.page-lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-2); max-width: 46ch; margin-top: 1.5rem; }

/* ---------- Case study ---------- */
.cs-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ink); }
.cs-meta dt { font: 600 .75rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.cs-meta dd { margin: .3rem 0 0; font-weight: 500; }
@media (min-width: 800px) { .cs-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cs-hero-art .ph { aspect-ratio: 16 / 8; }
@media (max-width: 600px) { .cs-hero-art .ph { aspect-ratio: 4 / 3; } }
.cs-row { display: grid; gap: 1rem 3rem; padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--line); }
.cs-row h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cs-row .cs-body { font-size: 1.125rem; max-width: 62ch; }
.cs-row .cs-body p:last-child { margin-bottom: 0; }
.cs-big { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; }
@media (min-width: 900px) { .cs-row { grid-template-columns: 4fr 8fr; } .cs-row .cs-label { position: sticky; top: 100px; align-self: start; } }
.steps { list-style: none; display: grid; gap: 1rem; counter-reset: step; margin-top: .5rem; }
.steps li { counter-increment: step; padding: 1.4rem 1.4rem 1.4rem 4.25rem; position: relative; background: var(--paper-2); border-radius: 6px; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 1.25rem; top: 1.35rem;
  font: 700 1.1rem var(--font-display); color: var(--accent-ink);
}
.steps h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.steps p { margin: 0; color: var(--ink-2); }
.cs-gallery { display: grid; gap: 1rem; padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 700px) { .cs-gallery { grid-template-columns: 7fr 5fr; } .cs-gallery .ph:last-child { aspect-ratio: auto; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-top: 1.75rem; list-style: none; }
.stats li { border-top: 2px solid var(--ink); padding-top: 1rem; }
.stats strong { display: block; font: 800 clamp(2.4rem, 5vw, 3.4rem)/1 var(--font-display); letter-spacing: -0.04em; }
.stats span { color: var(--ink-2); font-size: .95rem; }
.note { font-size: .85rem; color: var(--ink-2); margin-top: 1rem; }
.next-project { display: block; text-decoration: none; padding: clamp(3rem, 8vw, 5rem) 0; border-top: 1px solid var(--ink); }
.next-project .eyebrow { margin-bottom: 1rem; }
.next-title { font: 800 clamp(2.4rem, 8vw, 6rem)/.95 var(--font-display); letter-spacing: -0.045em; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.next-title .circle { width: clamp(52px, 8vw, 96px); height: clamp(52px, 8vw, 96px); border-radius: 50%; background: var(--accent); display: grid; place-items: center; transition: transform .35s var(--ease); flex: none; }
.next-project:hover .circle { transform: rotate(-45deg); }
.next-project:hover .next-name { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: .12em; text-decoration-color: var(--accent); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 2.5rem; }
.about-grid .ph { aspect-ratio: 4 / 5; }
.about-bio { font-size: 1.15rem; }
.about-bio .cs-big { margin-bottom: 1.5rem; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; } }
.services { list-style: none; border-top: 1px solid var(--ink); }
.service { display: grid; gap: .5rem 2rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); transition: padding .3s var(--ease); }
.service:hover { padding-left: .75rem; }
.service-num { font: 500 .9rem var(--font-body); color: var(--accent-ink); }
.service h3 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.service p { margin: 0; color: var(--ink-2); max-width: 52ch; }
.service .chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin-top: .75rem; }
.chips li { font-size: .8rem; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .65rem; }
@media (min-width: 900px) { .service { grid-template-columns: 80px 1fr 1.3fr; align-items: baseline; } }
.timeline { list-style: none; position: relative; display: grid; gap: 2rem; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-left: 3rem; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: .35rem; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 3px solid var(--accent); }
.timeline .when { font: 600 .78rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.timeline h3 { font-size: 1.5rem; margin: .3rem 0 .4rem; }
.timeline p { margin: 0; color: var(--ink-2); max-width: 52ch; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .timeline::before { left: 0; right: 0; top: 9px; bottom: auto; width: auto; height: 2px; }
  .timeline li { padding: 2.5rem 0 0; }
  .timeline li::before { left: 0; top: 0; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 4fr 7fr; gap: 5rem; } }
.contact-details { list-style: none; display: grid; gap: 1.25rem; }
.contact-details dt, .contact-details .k { font: 600 .75rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.contact-details a, .contact-details .v { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; text-decoration: none; }
.contact-details a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.form { display: grid; gap: 1.4rem; }
.form-row { display: grid; gap: 1.4rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; align-content: start; }
.field label { font-weight: 600; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fffdf9;
  border: 1px solid #a9a296; border-radius: 6px; padding: .85rem .95rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 5px var(--accent-ink); }
.field [aria-invalid="true"] { border-color: #b3261e; background: #fff6f5; }
.error { color: #a1221b; font-size: .88rem; font-weight: 500; min-height: 0; }
.error:empty { display: none; }
.hint { font-size: .85rem; color: var(--ink-2); }
.form-note { font-size: .88rem; color: var(--ink-2); margin: 0; }
.form-success {
  background: var(--ink); color: var(--paper); border-radius: 8px; padding: 2rem; display: grid; gap: .5rem;
}
.form-success h2 { font-size: 2rem; color: var(--paper); }
.form-success p { margin: 0; color: #d9d4ca; }
.form-success[hidden] { display: none; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
