/* ==========================================================================
   Joshi · Atelier Edition
   Lamborghini-inspired redesign of joshi.ch — dark cinematic layout, editorial
   typography (Instrument Serif + Manrope + JetBrains Mono), champagne accent.
   ========================================================================== */

:root {
  color-scheme: dark light;

  /* Palette -------------------------------------------------------------- */
  --ink: #0a0a0a;
  --ink-2: #121212;
  --ink-3: #1a1a1a;
  --ink-soft: #2a2a2a;
  --paper: #f3efe6;
  --paper-2: #e6e0d1;
  --text-dark: #0a0a0a;
  --text-ink: #f3efe6;
  --muted: rgba(243, 239, 230, 0.62);
  --muted-dark: rgba(10, 10, 10, 0.62);
  --line-dark: rgba(243, 239, 230, 0.14);
  --line-light: rgba(10, 10, 10, 0.14);
  --accent: #d4a843;
  --accent-soft: #e6c47a;
  --accent-dark: #a17f1d;

  /* Type ----------------------------------------------------------------- */
  --font-display: "Instrument Serif", "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout --------------------------------------------------------------- */
  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --header: 80px;
  --radius: 0px; /* sharp edges for editorial feel */

  font-family: var(--font-body);
  background: var(--ink);
}

/* Reset ------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--text-ink);
  font-size: 16px;
  line-height: 1.6;
  font-family: var(--font-body);
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

address {
  font-style: normal;
}

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

/* Accessibility ---------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-150%);
  border: 1px solid var(--accent);
  padding: 10px 16px;
  background: var(--paper);
  color: var(--text-dark);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Scroll progress -------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: calc(var(--progress, 0) * 100%);
  height: 2px;
  background: var(--accent);
  transform-origin: left;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  height: var(--header);
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  background: rgba(10, 10, 10, 0);
  backdrop-filter: blur(0);
  transition: background 280ms ease, border-color 280ms ease, backdrop-filter 280ms ease;
}

.site-header[data-scrolled] {
  border-color: var(--line-dark);
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

.brand-text {
  letter-spacing: 0.08em;
}

.site-nav {
  justify-self: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.4vw, 42px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-list a {
  position: relative;
  display: inline-flex;
  padding: 8px 0;
  color: var(--muted);
  transition: color 200ms ease;
}

.nav-list a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a[aria-current="true"] {
  color: var(--text-ink);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after,
.nav-list a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  border: 1px solid var(--accent);
  padding: 0 18px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 220ms ease, color 220ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--accent);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--text-ink);
  cursor: pointer;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(96px, 11vh, 128px) var(--gutter) clamp(56px, 7vh, 88px);
  background: var(--ink);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(212, 168, 67, 0.08), transparent 60%),
    radial-gradient(ellipse 100% 100% at 0% 100%, rgba(212, 168, 67, 0.04), transparent 60%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-dark) 30%, var(--line-dark) 70%, transparent);
}

.hero-frame {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(28px, 4vh, 56px);
  min-height: calc(100svh - 200px);
}

.hero-mark {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.mark-mono {
  display: inline-block;
}

.mark-divider {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--accent);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hero-meta {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.meta-line {
  display: block;
}

.hero-copy {
  position: relative;
  max-width: 720px;
}



h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 6.4vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: -0.015em;
  margin-bottom: clamp(20px, 2.4vw, 28px);
  color: var(--text-ink);
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-family: var(--font-display);
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.4vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.01em;
  margin-bottom: 0;
  color: var(--text-ink);
}

h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.hero-lede {
  max-width: 560px;
  margin-bottom: clamp(32px, 4vw, 48px);
  color: var(--muted);
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
  line-height: 1.55;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  border: 1px solid transparent;
  padding: 0 28px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease, transform 240ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: var(--ink);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-soft);
}

.button-ghost {
  border-color: var(--line-dark);
  color: var(--text-ink);
  background: transparent;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.button-arrow {
  width: 18px;
  height: 18px;
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.button:hover .button-arrow,
.button:focus-visible .button-arrow {
  transform: translateX(4px);
}

/* Hero figure ---------------------------------------------------------- */
.hero-figure {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  max-height: 64vh;
  overflow: hidden;
  background: var(--ink-2);
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: contrast(1.04) saturate(0.96) brightness(0.94);
  transition: transform 1200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-figure:hover img {
  transform: scale(1.025);
}

.figure-corners .corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
  z-index: 2;
}

.corner.tl { top: 16px; left: 16px; border-top-width: 1.5px; border-left-width: 1.5px; }
.corner.tr { top: 16px; right: 16px; border-top-width: 1.5px; border-right-width: 1.5px; }
.corner.bl { bottom: 16px; left: 16px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.corner.br { bottom: 16px; right: 16px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.hero-figure figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-dark);
  z-index: 2;
}

.caption-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.caption-line {
  width: 1px;
  height: 14px;
  background: var(--line-dark);
}

.caption-text {
  font-size: 0.86rem;
  color: var(--text-ink);
  line-height: 1.4;
}

/* Hero foot spec strip ------------------------------------------------- */
.hero-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.foot-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 28px 22px 0;
  border-left: 1px solid var(--line-dark);
  padding-left: 28px;
}

.foot-cell:first-child {
  border-left: none;
  padding-left: 0;
}

.cell-mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.cell-text {
  font-size: 0.94rem;
  color: var(--muted);
}

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.cue-line {
  display: inline-block;
  width: 38px;
  height: 1px;
  background: var(--accent);
  animation: cuePulse 2400ms ease-in-out infinite;
}

@keyframes cuePulse {
  0%, 100% { width: 38px; opacity: 0.5; }
  50% { width: 56px; opacity: 1; }
}

/* ==========================================================================
   Story
   ========================================================================== */
.story {
  position: relative;
  background: var(--paper);
  color: var(--text-dark);
  padding: clamp(110px, 14vw, 180px) var(--gutter) clamp(60px, 8vw, 100px);
  border-top: 1px solid var(--line-light);
}

.story::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  opacity: 0.4;
}

.story-shell {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.story-aside {
  position: sticky;
  top: calc(var(--header) + 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--font-mono);
}

.aside-num {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  font-family: var(--font-display);
  font-style: italic;
}

.aside-tag {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.aside-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--ink);
  margin-top: 12px;
}

.story-main {
  max-width: 880px;
}

.story-title {
  margin-bottom: clamp(28px, 4vw, 48px);
  color: var(--text-dark);
}

.story-body {
  display: grid;
  gap: 22px;
  max-width: 720px;
  color: var(--muted-dark);
  font-size: clamp(1.06rem, 1.4vw, 1.22rem);
  line-height: 1.55;
}

.story-body p {
  margin-bottom: 0;
}

/* Journey -------------------------------------------------------------- */
.journey {
  max-width: var(--max);
  margin: clamp(80px, 10vw, 130px) auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.journey-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(28px, 3.5vw, 44px) clamp(18px, 2.4vw, 28px);
  border-left: 1px solid var(--line-light);
}

.journey-step:first-child {
  border-left: none;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.step-body h3 {
  margin-bottom: 12px;
  color: var(--text-dark);
  font-weight: 700;
}

.step-body p {
  margin-bottom: 0;
  color: var(--muted-dark);
  font-size: 0.96rem;
  line-height: 1.5;
}

.step-tail {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  margin-top: auto;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery {
  position: relative;
  background: var(--ink);
  padding: clamp(110px, 14vw, 170px) var(--gutter);
  border-bottom: 1px solid var(--line-dark);
}

.gallery-head {
  max-width: var(--max);
  margin: 0 auto clamp(48px, 6vw, 80px);
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--font-mono);
}

.gallery-num {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-style: italic;
  font-family: var(--font-display);
  color: var(--accent);
  line-height: 1;
}

.gallery-tag {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.gallery-strip {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.95);
  transition: transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-card figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-dark);
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.gallery-card strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-ink);
  line-height: 1.3;
}

/* ==========================================================================
   Competence
   ========================================================================== */
.competence {
  background: var(--paper);
  color: var(--text-dark);
  padding: clamp(110px, 14vw, 180px) var(--gutter);
}

.comp-shell {
  max-width: var(--max);
  margin: 0 auto;
}

.comp-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  margin-bottom: clamp(60px, 8vw, 100px);
}

.comp-num {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-style: italic;
  font-family: var(--font-display);
  color: var(--accent);
  line-height: 1;
}

.comp-tag {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.comp-title {
  max-width: 880px;
  color: var(--text-dark);
}

.comp-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}

.comp-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(32px, 4vw, 50px) clamp(28px, 3vw, 40px);
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  background: var(--paper);
  transition: background 280ms ease;
}

.comp-card:hover {
  background: var(--paper-2);
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.comp-card h3 {
  color: var(--text-dark);
  font-weight: 700;
}

.comp-card p {
  margin-bottom: 0;
  color: var(--muted-dark);
  font-size: 0.96rem;
  line-height: 1.55;
}

/* ==========================================================================
   Timeline (Heritage)
   ========================================================================== */
.timeline-section {
  position: relative;
  background: var(--ink);
  padding: clamp(110px, 14vw, 180px) var(--gutter);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.time-shell {
  max-width: var(--max);
  margin: 0 auto;
}

.time-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  margin-bottom: clamp(60px, 8vw, 100px);
}

.time-num {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-style: italic;
  font-family: var(--font-display);
  color: var(--accent);
  line-height: 1;
}

.time-tag {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.time-title {
  max-width: 900px;
}

.timeline {
  position: relative;
  display: grid;
  border-top: 1px solid var(--line-dark);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: clamp(160px, 18vw, 240px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(32px, 4.4vw, 56px) 0;
  border-bottom: 1px solid var(--line-dark);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: clamp(40px, 5.4vw, 64px);
  left: clamp(160px, 18vw, 240px);
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--accent);
  background: var(--ink);
  transform: translateX(-50%) rotate(45deg);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 4px;
}

.timeline-content {
  max-width: 720px;
}

.timeline-content h3 {
  margin-bottom: 10px;
  color: var(--text-ink);
  font-weight: 700;
}

.timeline-content p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.timeline-content small {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-style: italic;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  background: var(--paper);
  color: var(--text-dark);
  padding: clamp(110px, 14vw, 180px) var(--gutter);
}

.srv-shell {
  max-width: var(--max);
  margin: 0 auto;
}

.srv-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  margin-bottom: clamp(60px, 8vw, 100px);
}

.srv-num {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-style: italic;
  font-family: var(--font-display);
  color: var(--accent);
  line-height: 1;
}

.srv-tag {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.srv-title {
  max-width: 880px;
  color: var(--text-dark);
}

.srv-grid,
.work-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}

.srv-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(32px, 4vw, 48px) clamp(28px, 3vw, 38px);
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  background: var(--paper);
  transition: background 280ms ease;
}

.srv-card:hover {
  background: var(--ink);
  color: var(--text-ink);
}

.srv-card:hover h3,
.srv-card:hover .srv-link {
  color: var(--text-ink);
}

.srv-card:hover .srv-link {
  border-color: var(--accent);
  color: var(--accent);
}

.srv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.srv-card .srv-num {
  font-size: 0.84rem;
  font-style: normal;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.srv-card .srv-tag {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--muted-dark);
}

.srv-card:hover .srv-tag {
  color: rgba(243, 239, 230, 0.5);
}

.srv-card h3 {
  color: var(--text-dark);
  font-weight: 700;
  font-size: clamp(1.18rem, 1.6vw, 1.36rem);
  line-height: 1.2;
}

.srv-card p {
  margin-bottom: 0;
  color: var(--muted-dark);
  font-size: 0.96rem;
  line-height: 1.55;
  flex: 1;
}

.srv-card:hover p {
  color: var(--muted);
}

.srv-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 0 0 4px;
  border-bottom: 1px solid var(--line-light);
  color: var(--text-dark);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  align-self: flex-start;
  transition: color 200ms ease, border-color 200ms ease, gap 200ms ease;
}

.srv-link svg {
  width: 16px;
  height: 16px;
  transition: transform 220ms ease;
}

.srv-link:hover {
  gap: 16px;
  color: var(--accent);
  border-color: var(--accent);
}

.srv-link:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Proof — Why this person
   ========================================================================== */
.proof {
  position: relative;
  background: var(--ink);
  color: var(--text-ink);
  padding: clamp(110px, 14vw, 180px) var(--gutter);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.proof::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(212, 168, 67, 0.06), transparent 60%);
}

.proof-shell {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}

.proof-head {
  position: sticky;
  top: calc(var(--header) + 40px);
}

.proof-num {
  display: block;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-style: italic;
  font-family: var(--font-display);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 18px;
}

.proof-tag {
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.proof-title {
  margin-bottom: 28px;
  color: var(--text-ink);
  max-width: 540px;
}

.proof-lede {
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.55;
  margin-bottom: 0;
}

.proof-grid {
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.proof-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(36px, 4.5vw, 52px) clamp(28px, 3vw, 40px);
  background: var(--ink-2);
  transition: background 280ms ease;
}

.proof-card:hover {
  background: var(--ink-3);
}

.proof-card-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  color: var(--accent);
  line-height: 1;
}

.proof-card h3 {
  color: var(--text-ink);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.8vw, 1.42rem);
}

.proof-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 460px;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  background: var(--paper);
  color: var(--text-dark);
  padding: clamp(110px, 14vw, 180px) var(--gutter);
  position: relative;
}

.contact-shell {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: start;
}

.contact-head {
  position: sticky;
  top: calc(var(--header) + 40px);
}

.contact-num {
  display: block;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-style: italic;
  font-family: var(--font-display);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 18px;
}

.contact-tag {
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-title {
  margin-bottom: 28px;
  color: var(--text-dark);
  max-width: 580px;
}

.contact-lede {
  max-width: 540px;
  color: var(--muted-dark);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.55;
  margin-bottom: 0;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line-light);
  background: var(--paper);
}

.contact-line {
  display: grid;
  grid-template-columns: minmax(0, 110px) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 26px 32px;
  border-bottom: 1px solid var(--line-light);
  color: var(--text-dark);
  transition: background 240ms ease, color 240ms ease;
}

.contact-line:last-of-type {
  border-bottom: none;
}

.contact-line:hover {
  background: var(--ink);
  color: var(--text-ink);
}

.contact-line:hover .line-tag {
  color: var(--accent);
}

.line-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.line-text {
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
  font-weight: 500;
  word-break: break-word;
}

.contact-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 32px;
  border-top: 1px solid var(--line-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 28px var(--gutter);
  background: var(--ink);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid var(--line-dark);
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.site-footer a {
  justify-self: end;
  color: var(--text-ink);
  font-weight: 600;
  transition: color 220ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
}

.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.mark-line {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.mark-text {
  color: var(--text-ink);
  font-weight: 600;
}

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 900ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for hero copy */
.hero-copy.reveal {
  transition-delay: 120ms;
}
.hero-figure.reveal {
  transition-delay: 280ms;
}
.hero-foot.reveal,
.hero-foot {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 460ms,
    transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 460ms;
}
.hero-foot.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-layout,
  .story-shell,
  .proof-shell,
  .contact-shell {
    grid-template-columns: 1fr;
    gap: clamp(40px, 6vw, 64px);
  }

  .hero-meta {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 22px;
    text-align: left;
  }

  .story-aside,
  .proof-head,
  .contact-head {
    position: static;
  }

  .gallery-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comp-grid,
  .srv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 820px) {
  :root {
    --header: 68px;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    padding-inline: 18px;
  }

  .brand-text {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 82;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-dark);
    background: transparent;
    color: var(--text-ink);
    cursor: pointer;
  }

  .nav-toggle span:not(.sr-only) {
    position: absolute;
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: transform 220ms ease;
  }

  .nav-toggle span:first-child {
    transform: translateY(-4px);
  }

  .nav-toggle span:nth-child(2) {
    transform: translateY(4px);
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: rotate(-45deg);
  }

  .site-nav {
    justify-self: end;
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 81;
    display: grid;
    gap: 0;
    padding: calc(var(--header) + 18px) 22px 28px;
    border-bottom: 1px solid var(--line-dark);
    background: rgba(10, 10, 10, 0.97);
    transform: translateY(-110%);
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-list[data-open] {
    transform: translateY(0);
  }

  .nav-list a {
    border-top: 1px solid var(--line-dark);
    padding: 17px 0;
    font-size: 0.9rem;
  }

  .hero {
    min-height: auto;
    padding: clamp(100px, 14vh, 130px) 18px clamp(60px, 8vh, 90px);
  }

  .hero-foot {
    grid-template-columns: 1fr;
  }

  .foot-cell {
    border-left: none;
    border-top: 1px solid var(--line-dark);
    padding: 18px 0;
  }

  .foot-cell:first-child {
    border-top: none;
  }

  h1 {
    font-size: clamp(2.6rem, 11vw, 3.8rem);
    line-height: 0.96;
  }

  h2 {
    font-size: clamp(2rem, 9.4vw, 3.4rem);
  }

  .scroll-cue {
    position: static;
    margin-top: 36px;
  }

  .journey {
    grid-template-columns: 1fr;
  }

  .journey-step {
    border-left: none;
    border-top: 1px solid var(--line-light);
    padding: 26px 0;
  }

  .journey-step:first-child {
    border-top: none;
  }

  .gallery-strip,
  .comp-grid,
  .srv-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    grid-column: auto;
    aspect-ratio: 4 / 5;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .timeline-item::before {
    display: none;
  }

  .contact-line {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 22px 24px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 14px;
  }

  .footer-mark,
  .site-footer a {
    justify-self: center;
  }
}

@media (max-width: 540px) {
  :root {
    --gutter: 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .proof-shell,
  .comp-head,
  .time-head,
  .srv-head,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .contact-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal,
  .hero-foot {
    opacity: 1;
    transform: none;
  }
}
