/* ==========================================================================
   Ewan Wills — Product Development Studio
   Bold consultancy-grade design. Trendy but restrained.
   ========================================================================== */

:root {
  --bg: #EFEBE4;
  --bg-2: #E4DFD4;
  --bg-3: #D6D0C2;
  --ink: #1A1816;
  --ink-soft: #55504A;
  --ink-mute: #8A8379;
  --line: #C8C0AE;
  --line-soft: #D8D2C2;
  --accent: #C44A1A;
  --accent-2: #E86B2B;
  --paper: #F7F3EC;
  --radius: 8px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --font-display: "PP Editorial New", "Canela", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Satoshi", "Söhne", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --density: 1;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in: cubic-bezier(0.6, 0, 0.7, 0.2);
}

[data-theme="dark"] {
  --bg: #0E0D0B;
  --bg-2: #161411;
  --bg-3: #1F1C18;
  --ink: #F3EFE6;
  --ink-soft: #B8B2A5;
  --ink-mute: #6E6A62;
  --line: #2A2621;
  --line-soft: #1E1B17;
  --paper: #13110F;
  --accent: #E86B2B;
  --accent-2: #FF8844;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

/* Noise/grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.6;
  mix-blend-mode: multiply;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font: inherit; color: inherit; border: 0; background: transparent; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Top nav bar (sticky, minimal) ---------- */
.topnav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px 6px 18px;
  background: rgba(247, 243, 236, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(200, 192, 174, 0.6);
  border-radius: 999px;
  box-shadow: 0 8px 24px -12px rgba(26, 24, 22, 0.15), 0 1px 0 rgba(255,255,255,0.5) inset;
}
[data-theme="dark"] .topnav {
  background: rgba(22, 20, 17, 0.72);
  border-color: rgba(42, 38, 33, 0.6);
}
.topnav-brand {
  display: flex; align-items: center; gap: 10px;
  padding-right: 14px;
  border-right: 1px solid var(--line);
  margin-right: 4px;
}
.topnav-brand-text { font-size: 13px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.topnav-links { display: flex; gap: 2px; }
.topnav-link {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color .2s, background .2s;
  position: relative;
  white-space: nowrap;
}
.topnav-link:hover { color: var(--ink); background: rgba(26, 24, 22, 0.06); }
.topnav-link.is-active { color: var(--ink); }
.topnav-link.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.topnav-cta {
  padding: 9px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .2s, transform .2s;
  white-space: nowrap;
}
.topnav-cta:hover { background: var(--accent); transform: scale(1.02); }
.topnav-theme {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  transition: all .2s var(--ease);
  margin: 0 4px;
  flex-shrink: 0;
}
.topnav-theme:hover { color: var(--ink); border-color: var(--ink); background: var(--paper); transform: rotate(15deg); }
.topnav-theme svg { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform .35s var(--ease);
  z-index: 0;
}
.btn:hover::before { transform: translateY(0); }
.btn > * { position: relative; z-index: 1; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { color: #fff; border-color: var(--accent); }
.btn-ghost::before { background: var(--ink); }
.btn.lg { padding: 17px 28px; font-size: 15px; }

.icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: all .2s;
}
.icon-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Mono tag ---------- */
.mono-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}
.mono-tag.muted { color: var(--ink-mute); opacity: 0.6; }

/* ---------- Layout ---------- */
.page { padding: 0 clamp(24px, 4vw, 48px); }
.shell { max-width: 1440px; margin: 0 auto; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  padding: 140px 0 60px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-content: end;
  position: relative;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 6px 6px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  align-self: start;
  width: max-content;
}
.hero-badge-pulse {
  width: 8px; height: 8px;
  background: #2ea66a;
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(46, 166, 106, 0.6);
}
.hero-badge-chip {
  padding: 4px 10px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 10.5px;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 166, 106, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(46, 166, 106, 0); }
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-weight: 400;
  text-wrap: balance;
}
.hero-title .line { display: block; position: relative; }
.hero-title em { font-style: italic; color: var(--accent); }
.hero-title .outline {
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
  font-style: italic;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  align-items: end;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.hero-lead {
  font-size: 17.5px;
  line-height: 1.45;
  max-width: 440px;
  color: var(--ink);
  grid-column: 1 / 2;
  text-wrap: pretty;
}
.hero-lead em { font-style: normal; color: var(--accent); font-weight: 500; }
.hero-meta {
  grid-column: 2 / 3;
  display: flex; flex-direction: column; gap: 8px;
}
.hero-meta-row {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.hero-meta-row:last-child { border: 0; }
.hero-cta-group {
  grid-column: 3 / 4;
  display: flex; gap: 10px;
  justify-self: end;
  align-self: end;
}

/* ---------- Marquee ---------- */
.marquee {
  margin: 48px -4vw 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  background: var(--paper);
}
.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee-item {
  display: flex; align-items: center; gap: 48px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.marquee-item .star {
  color: var(--accent);
  font-style: normal;
  font-size: 0.7em;
  transform: rotate(20deg);
  display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section head ---------- */
.section { padding: calc(120px * var(--density)) 0; position: relative; }
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px 40px;
  align-items: baseline;
  margin-bottom: 72px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.section-head-label {
  display: flex; align-items: center; gap: 8px;
}
.section-head-label .sq {
  width: 8px; height: 8px; background: var(--accent);
  display: inline-block;
}
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-note {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 280px;
  line-height: 1.4;
  text-align: right;
}

/* ---------- Featured work cards ---------- */
.work-list { display: flex; flex-direction: column; gap: 0; }
.work-card {
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr 60px;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: padding .4s var(--ease);
}
.work-card:first-child { border-top: 1px solid var(--line); }
.work-card::before {
  content: "";
  position: absolute;
  inset: 0 -24px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  z-index: 0;
}
.work-card:hover::before { opacity: 1; transform: scale(1); }
.work-card > * { position: relative; z-index: 1; }
.work-card:hover { padding-left: 24px; padding-right: 24px; }

.work-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.work-title-group { display: flex; flex-direction: column; gap: 8px; }
.work-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 400;
  transition: color .3s;
}
.work-card:hover .work-title { color: var(--accent); font-style: italic; }
.work-meta { display: flex; gap: 14px; align-items: center; }
.work-meta .pill {
  padding: 4px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--ink-soft);
}

.work-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transform: scale(0.95);
  opacity: 0.7;
  transition: all .4s var(--ease);
  filter: grayscale(0.3);
}
.work-card:hover .work-preview {
  transform: scale(1) rotate(-1deg);
  opacity: 1;
  filter: grayscale(0);
  box-shadow: 0 24px 48px -20px rgba(26, 24, 22, 0.25);
}
.work-preview img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.work-card:hover .work-preview img { transform: scale(1.05); }
.work-preview-tag {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px;
  background: rgba(26, 24, 22, 0.85);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  border-radius: 4px;
  backdrop-filter: blur(6px);
}

.work-arrow {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--ink);
  transition: all .3s var(--ease);
  border: 1px solid var(--line);
}
.work-card:hover .work-arrow {
  background: var(--ink);
  color: var(--bg);
  transform: rotate(-45deg);
  border-color: var(--ink);
}

/* ---------- Capabilities grid ---------- */
.caps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.cap-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  transition: transform .4s var(--ease), background .3s;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.cap-card:hover { transform: translateY(-4px); background: var(--ink); color: var(--bg); }
.cap-card:hover .cap-num { color: var(--accent); }
.cap-card:hover .cap-desc { color: rgba(255,255,255,0.7); }
[data-theme="dark"] .cap-card:hover .cap-desc { color: rgba(0,0,0,0.65); }
.cap-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  margin-bottom: 48px;
  display: block;
  transition: color .3s;
}
.cap-title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.cap-desc {
  font-size: 13px;
  color: var(--ink-soft);
  transition: color .3s;
}

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 40px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
}
.process-step {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background .3s;
}
.process-step:last-child { border-right: 0; }
.process-step:hover { background: var(--bg-2); }
.process-step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 52px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 24px;
}
.process-step-title { font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.process-step-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Drawer ---------- */
.drawer-scrim {
  position: fixed; inset: 0;
  background: rgba(26, 24, 22, 0.6);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 40px);
  animation: fade .25s var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.drawer {
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  background: var(--bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: rise .4s var(--ease);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.4);
}
@keyframes rise { from { transform: translateY(32px) scale(0.98); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--paper);
}
.drawer-meta { display: flex; gap: 14px; align-items: center; }
.drawer-nav { display: flex; gap: 8px; }

.drawer-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
}
.drawer-media {
  background: var(--bg-3);
  padding: 48px;
  display: grid; place-items: center;
  min-height: 380px;
  position: relative;
  overflow: hidden;
}
.drawer-media::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.drawer-media img {
  max-height: 100%; max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
  position: relative;
}
.drawer-content {
  padding: 40px;
  overflow-y: auto;
}
.drawer-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 3.2vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.drawer-title em { font-style: italic; color: var(--accent); }
.drawer-summary {
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.drawer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.stat {
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 6px;
}
.stat strong { font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }

.drawer-notes h4 { margin: 0 0 12px; }
.drawer-notes p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}
.drawer-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--paper);
  font-weight: 500;
}
.chip.xs { font-size: 11px; padding: 4px 9px; }
.chip-btn { cursor: pointer; transition: all .2s; }
.chip-btn:hover { border-color: var(--ink); color: var(--ink); }
.chip-btn.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.chip-btn.is-active .mono-tag { color: rgba(255,255,255,0.6); }
.mt { margin-top: 16px; }

.inline-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap .2s;
  margin-top: 8px;
  width: max-content;
}
.inline-link:hover { gap: 14px; }

/* ---------- Archive ---------- */
.archive-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  padding: 3px;
  background: var(--paper);
}
.view-toggle button {
  padding: 7px 16px;
  font-size: 12.5px;
  color: var(--ink-mute);
  border-radius: 999px;
  transition: all .2s;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.view-toggle button.is-active { background: var(--ink); color: var(--bg); }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.arc-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .2s, box-shadow .3s;
}
.arc-card:hover {
  transform: translateY(-6px);
  border-color: var(--ink);
  box-shadow: 0 24px 48px -20px rgba(26, 24, 22, 0.2);
}
.arc-media {
  aspect-ratio: 4 / 3;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.arc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.arc-card:hover .arc-media img { transform: scale(1.06); }
.arc-media-tag {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 9px;
  background: rgba(247, 243, 236, 0.9);
  backdrop-filter: blur(6px);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #1a1816;
}
.arc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.arc-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}
.arc-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.5;
  text-wrap: pretty;
}

.archive-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.arc-row {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}
.arc-row h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400;
  letter-spacing: -0.02em;
}
.arc-row p { margin: 0; color: var(--ink-soft); font-size: 13.5px; max-width: 640px; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.about-media {
  position: sticky; top: 120px;
  align-self: start;
  display: flex; flex-direction: column; gap: 16px;
}
.about-media-main {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
.about-media-main img { width: 100%; height: 100%; object-fit: cover; }
.about-media-tag {
  position: absolute; bottom: 14px; left: 14px;
  padding: 6px 12px;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}
.about-quote {
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--paper);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  line-height: 1.3;
}

.about-copy .lede {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 52px);
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 32px;
  letter-spacing: -0.03em;
  text-wrap: balance;
  font-weight: 400;
}
.about-copy .lede em { font-style: italic; color: var(--accent); }
.about-copy p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 18px;
  text-wrap: pretty;
  max-width: 540px;
}
.about-copy em { font-style: italic; color: var(--ink); }

.about-services {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 40px;
}
.svc {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), background .3s;
  cursor: default;
}
.svc:hover { transform: translateY(-2px); background: var(--ink); color: var(--bg); }
.svc:hover span { color: rgba(255,255,255,0.7); }
.svc:hover .svc-dot { background: var(--accent); }
.svc-dot {
  width: 8px; height: 8px; background: var(--accent);
  display: inline-block; margin-bottom: 16px;
  transition: background .3s;
}
.svc strong { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; letter-spacing: -0.01em; }
.svc span { font-size: 13px; line-height: 1.5; color: var(--ink-soft); transition: color .3s; }

/* ---------- Contact ---------- */
.contact-hero {
  margin-bottom: 60px;
}
.contact-hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 400;
}
.contact-hero-title em { font-style: italic; color: var(--accent); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-copy .lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.25;
  margin: 0 0 32px;
  text-wrap: balance;
  font-weight: 400;
}
.contact-facts {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--line);
}
.contact-facts li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.contact-facts a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  font-weight: 500;
}
.contact-facts a:hover { border-bottom-color: var(--accent); }

.contact-form {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--paper);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px -30px rgba(26, 24, 22, 0.15);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.field input, .field textarea, .field select {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: all .2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}
[data-theme="dark"] .field input:focus, [data-theme="dark"] .field textarea:focus { background: var(--bg-3); }
.field.has-error input, .field.has-error textarea { border-color: var(--accent); }
.field-err { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.budget-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.budget-chips button {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--bg);
  transition: all .2s;
}
.budget-chips button.is-active {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.budget-chips button:hover { border-color: var(--ink); }

.form-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 80px 0 40px;
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  margin-left: calc(-1 * clamp(24px, 4vw, 48px));
  margin-right: calc(-1 * clamp(24px, 4vw, 48px));
  padding-left: clamp(24px, 4vw, 48px);
  padding-right: clamp(24px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}
.footer-mega {
  font-family: var(--font-display);
  font-size: clamp(80px, 18vw, 280px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
  margin: 0 0 60px;
  font-style: italic;
  text-align: center;
  pointer-events: none;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  margin: 0 0 16px;
  font-weight: 400;
}
.footer-col a, .footer-col p {
  display: block;
  margin: 8px 0;
  font-size: 14px;
  color: var(--ink);
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.footer-bottom a:hover { color: var(--ink); }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .topnav-link { padding: 8px 10px; font-size: 12.5px; }
  .topnav-brand { padding-right: 10px; }
  .caps { grid-template-columns: repeat(2, 1fr); }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2) { border-right: 0; }
  .process-step:nth-child(1),
  .process-step:nth-child(2) { border-bottom: 1px solid var(--line); }
  .about-grid { gap: 48px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .page { padding: 0 20px; }
  body::before { opacity: 0.3; }

  /* Nav */
  .topnav {
    left: 12px; right: 12px; top: 12px;
    transform: none;
    padding: 6px 6px 6px 14px;
    gap: 6px;
  }
  .topnav-links { display: none; }
  .topnav-brand { padding-right: 0; border: 0; margin: 0; flex: 1; gap: 8px; }
  .topnav-brand-text { font-size: 12.5px; }
  .topnav-cta { padding: 8px 14px; font-size: 12px; }

  /* Hero */
  .hero { padding: 96px 0 40px; min-height: auto; gap: 32px; }
  .hero-badge { font-size: 10.5px; padding: 5px 5px 5px 12px; gap: 8px; }
  .hero-badge-chip { font-size: 9.5px; padding: 3px 8px; }
  .hero-title { font-size: clamp(44px, 12.5vw, 72px) !important; line-height: 0.92; }
  .hero-title .line[style],
  .hero-title .outline[style] {
    font-size: clamp(40px, 11.5vw, 66px) !important;
  }
  .hero-title .outline { -webkit-text-stroke-width: 1.5px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .hero-lead, .hero-meta, .hero-cta-group { grid-column: 1 / -1; }
  .hero-lead { font-size: 16px; max-width: none; }
  .hero-cta-group { justify-self: stretch; flex-wrap: wrap; gap: 8px; }
  .hero-cta-group .btn { flex: 1; justify-content: center; min-width: 0; }

  /* Marquee */
  .marquee { margin: 32px -20px 0; padding: 16px 0; }
  .marquee-item { font-size: 32px; gap: 32px; }
  .marquee-track { gap: 32px; }

  /* Sections */
  .section { padding: calc(72px * var(--density)) 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; padding-bottom: 16px; }
  .section-note { text-align: left; max-width: none; }
  .section-title { font-size: clamp(36px, 9.5vw, 52px); }

  /* Work cards */
  .work-list { gap: 4px; }
  .work-card {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 8px 12px;
    padding: 22px 4px;
    align-items: start;
  }
  .work-card:hover { padding-left: 12px; padding-right: 12px; }
  .work-card:hover::before { inset: 0 -12px; }
  .work-num { grid-column: 1; grid-row: 1; font-size: 11px; }
  .work-title-group { grid-column: 1 / -1; grid-row: 2; gap: 6px; }
  .work-title { font-size: clamp(30px, 8vw, 44px); }
  .work-meta { display: none; }
  .work-preview {
    grid-column: 1 / -1; grid-row: 3;
    aspect-ratio: 16 / 9;
    opacity: 1;
    transform: scale(1);
    filter: grayscale(0);
    margin-top: 8px;
  }
  .work-card:hover .work-preview { transform: scale(1); }
  .work-arrow {
    grid-column: 2; grid-row: 1;
    width: 36px; height: 36px;
  }

  /* Caps */
  .caps { grid-template-columns: 1fr; gap: 10px; margin-top: 32px; }
  .cap-card { padding: 22px 20px; }
  .cap-num { margin-bottom: 24px; }
  .cap-title { font-size: 22px; }

  /* Process */
  .process { grid-template-columns: 1fr; }
  .process-step { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 22px; }
  .process-step:last-child { border-bottom: 0; }
  .process-step-num { font-size: 42px; margin-bottom: 16px; }

  /* Drawer */
  .drawer-scrim { padding: 0; }
  .drawer {
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    border: 0;
  }
  .drawer-head { padding: 14px 16px; }
  .drawer-meta { gap: 10px; flex-wrap: wrap; }
  .drawer-nav .icon-btn { width: 34px; height: 34px; }
  .drawer-body { grid-template-columns: 1fr; overflow-y: auto; }
  .drawer-media { padding: 28px; min-height: 240px; }
  .drawer-content { padding: 24px 20px 40px; overflow-y: visible; }
  .drawer-title { font-size: 34px; }
  .drawer-summary { font-size: 15.5px; }
  .drawer-stats { grid-template-columns: 1fr; gap: 8px; }

  /* Archive */
  .archive-grid { grid-template-columns: 1fr; gap: 14px; }
  .archive-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .chips { justify-content: flex-start; }
  .chip { font-size: 11.5px; padding: 6px 10px; }
  .view-toggle { align-self: flex-start; }
  .arc-card { border-radius: var(--radius); }
  .arc-body { padding: 16px 18px 18px; }
  .arc-body h3 { font-size: 22px; }
  .arc-row { flex-direction: column; gap: 6px; padding: 18px 2px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-media { position: relative; top: 0; max-width: 100%; }
  .about-media-main { aspect-ratio: 4 / 5; max-height: 480px; }
  .about-copy .lede { font-size: clamp(28px, 7.5vw, 36px); margin-bottom: 24px; }
  .about-copy p { font-size: 15.5px; }
  .about-services { grid-template-columns: 1fr; margin-top: 28px; gap: 8px; }
  .about-quote { font-size: 17px; padding: 16px 18px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-hero { margin-bottom: 36px; }
  .contact-hero-title { font-size: clamp(52px, 14vw, 80px); }
  .contact-copy .lede { font-size: 20px; }
  .contact-facts li { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .field-row { grid-template-columns: 1fr; gap: 16px; }

  /* Footer */
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-col h5 { font-size: 11.5px; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; font-size: 11.5px; }

  /* Tweaks panel + cursor */
  .cursor-dot { display: none; }

  /* Buttons */
  .btn { padding: 12px 18px; font-size: 13.5px; }
  .btn.lg { padding: 14px 22px; font-size: 14px; }
}

/* ---------- Small mobile ---------- */
@media (max-width: 400px) {
  .hero-title { font-size: clamp(40px, 13.5vw, 60px) !important; }
  .hero-title .line[style],
  .hero-title .outline[style] {
    font-size: clamp(36px, 12vw, 56px) !important;
  }
  .hero-badge-chip { display: none; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Cursor follower ---------- */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 999;
  mix-blend-mode: difference;
  transition: transform .1s linear, width .3s var(--ease), height .3s var(--ease);
  transform: translate(-50%, -50%);
}
.cursor-dot.lg { width: 48px; height: 48px; background: var(--accent); opacity: 0.3; }
@media (pointer: coarse) {
  .cursor-dot { display: none; }
}
