:root {
  --bg: #f3f0ea;
  --bg-warm: #e4ddd2;
  --paper: #fbfaf7;
  --paper-soft: #f7f4ee;
  --ink: #242220;
  --graphite: #2f2f2b;
  --muted: #6f6961;
  --line: #c9beb0;
  --line-soft: rgba(70, 61, 52, 0.16);
  --accent: #9a5145;
  --accent-deep: #6f2d31;
  --accent-soft: #c9907e;
  --gold: #a9855d;
  --shadow: 0 28px 86px rgba(43, 36, 28, 0.16);
  --radius: 6px;
  --max: 1240px;
  --header-h: 80px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: var(--header-h);
  scroll-behavior: smooth;
}

main[id],
section[id] {
  scroll-margin-top: var(--header-h);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(36, 34, 32, 0.04) 1px, transparent 1px) 0 0 / 78px 78px,
    linear-gradient(180deg, var(--paper) 0%, var(--bg) 46%, #ede7dd 100%);
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.64;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(111, 45, 49, 0.018) 0 1px, transparent 1px 12px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.62), transparent 34%, rgba(169, 133, 93, 0.08));
}

body.nav-open {
  overflow: hidden;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: minmax(210px, auto) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(251, 250, 247, 0.72);
  border-bottom: 1px solid rgba(74, 64, 54, 0.14);
  backdrop-filter: blur(18px);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.site-header.is-scrolled {
  background: var(--paper);
  border-color: rgba(74, 64, 54, 0.2);
  box-shadow: 0 10px 34px rgba(45, 38, 32, 0.055);
}

.brand {
  display: inline-grid;
  grid-template-columns: 42px minmax(0, auto);
  align-items: center;
  gap: 16px;
  min-width: 0;
  font-family: Avenir, "Avenir Next", "Century Gothic", Calibri, sans-serif;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--accent-deep);
  border-right: 1px solid var(--accent);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.brand-name {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-subline {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 48px);
  color: #4c4945;
  font-family: Avenir, "Avenir Next", "Century Gothic", Calibri, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 12px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

.site-nav a.is-active,
.site-nav a[aria-current="true"] {
  color: var(--accent-deep);
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 32;
  width: 50px;
  height: 50px;
  justify-self: end;
  padding: 0;
  color: var(--ink);
  background: rgba(251, 250, 247, 0.84);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(43, 36, 28, 0.06);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 1px;
  margin: 4px auto;
  background: currentColor;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

body.nav-open .nav-toggle-line:first-child {
  transform: translateY(5px) rotate(45deg);
}

body.nav-open .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

body.nav-open .nav-toggle {
  color: var(--accent-deep);
  border-color: rgba(154, 81, 69, 0.48);
  box-shadow: 0 10px 30px rgba(43, 36, 28, 0.1);
}

.scroll-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 80ms linear;
}

.section-shell {
  width: min(var(--max), calc(100% - clamp(34px, 10vw, 148px)));
  margin-inline: auto;
}

.page-rail {
  position: fixed;
  top: calc(var(--header-h) + 24px);
  bottom: 30px;
  left: clamp(20px, 4.6vw, 70px);
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  gap: 22px;
  align-items: center;
  color: var(--accent-deep);
  pointer-events: none;
  font-family: Avenir, "Avenir Next", "Century Gothic", Calibri, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.page-rail::before,
.page-rail::after {
  width: 1px;
  height: 100%;
  margin-inline: auto;
  content: "";
  background: rgba(111, 45, 49, 0.35);
}

.page-rail span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero {
  position: relative;
  overflow: clip;
  min-height: calc(100svh - var(--header-h) - 42px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.84fr);
  align-items: center;
  gap: clamp(38px, 7vw, 108px);
  padding: clamp(44px, 6vw, 84px) 0 clamp(44px, 7vw, 86px);
}

.hero-copy {
  position: relative;
  isolation: isolate;
  animation: heroRise 680ms ease-out both;
}

.hero-copy::before {
  position: absolute;
  top: -0.38em;
  left: -0.14em;
  z-index: -1;
  content: "JH";
  color: rgba(154, 81, 69, 0.04);
  pointer-events: none;
  font-family: Avenir, "Avenir Next", "Century Gothic", Calibri, sans-serif;
  font-size: clamp(160px, 18vw, 280px);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 52%;
  height: 1px;
  content: "";
  background: rgba(47, 47, 43, 0.22);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Avenir, "Avenir Next", "Century Gothic", Calibri, sans-serif;
  font-weight: 500;
}

h1 {
  max-width: 9ch;
  color: #242322;
  font-size: clamp(70px, 9.4vw, 156px);
  line-height: 0.98;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 span {
  display: block;
}

h2 {
  color: var(--ink);
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.14;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h3 {
  color: var(--ink);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
}

.hero-rule {
  display: block;
  width: 46px;
  height: 2px;
  margin: clamp(22px, 3vw, 34px) 0 22px;
  background: var(--accent);
}

.hero-lead {
  max-width: 620px;
  margin: 0;
  color: var(--graphite);
  font-family: Avenir, "Avenir Next", "Century Gothic", Calibri, sans-serif;
  font-size: clamp(22px, 2.35vw, 36px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-subline {
  max-width: 600px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(36, 34, 32, 0.32);
  border-radius: 0;
  font-family: Avenir, "Avenir Next", "Century Gothic", Calibri, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

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

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

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

.button-secondary {
  background: rgba(251, 250, 247, 0.4);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--paper);
  background: var(--graphite);
  border-color: var(--graphite);
}

.hero-visual {
  position: relative;
  display: grid;
  align-items: end;
  min-width: 0;
  padding: 0 0 58px 52px;
  animation: heroRise 780ms 90ms ease-out both;
}

.hero-visual::after {
  position: absolute;
  inset: 42px 0 18px 40%;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(251, 250, 247, 0.72), rgba(228, 221, 210, 0.58)),
    var(--bg-warm);
  border: 1px solid rgba(74, 64, 54, 0.12);
}

.visual-rail {
  position: absolute;
  inset: -28px auto 28px 17px;
  width: 1px;
  content: "";
  background: var(--accent);
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  width: min(100%, 500px);
  justify-self: end;
  aspect-ratio: 2 / 3;
  background: #d6d2ce;
  border: 1px solid rgba(74, 64, 54, 0.16);
  box-shadow: var(--shadow);
}

.portrait-frame::before {
  position: absolute;
  inset: 18px 18px auto auto;
  z-index: 1;
  width: 42%;
  height: 1px;
  content: "";
  background: rgba(47, 47, 43, 0.22);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.visual-note {
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 52px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  color: var(--accent-deep);
  font-family: Avenir, "Avenir Next", "Century Gothic", Calibri, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.profile,
.expertise,
.art,
.experience,
.contact {
  padding: clamp(72px, 9vw, 122px) 0;
}

.profile,
.expertise,
.experience,
.contact {
  border-top: 1px solid rgba(74, 64, 54, 0.18);
}

.experience {
  padding-top: clamp(48px, 5.8vw, 78px);
}

.experience .section-heading {
  margin-bottom: clamp(26px, 3.4vw, 44px);
}

.experience .section-heading::after {
  height: clamp(44px, 5vw, 62px);
}

.profile {
  position: relative;
}

.profile::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 100%;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0%, rgba(251, 250, 247, 0.62) 48%, transparent 100%);
}

.section-heading {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 4vw, 46px);
  margin-bottom: clamp(34px, 5vw, 62px);
}

.section-index {
  margin: 0;
  color: var(--accent);
  font-family: Avenir, "Avenir Next", "Century Gothic", Calibri, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.1;
}

.section-heading::after {
  grid-column: 1;
  width: 1px;
  height: 70px;
  margin: 16px 0 0 6px;
  content: "";
  background: var(--line);
}

.section-heading h2 {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(280px, 0.92fr);
  gap: clamp(34px, 8vw, 96px);
  align-items: start;
  padding-left: clamp(0px, 7vw, 92px);
}

.statement {
  max-width: 620px;
  margin: 0;
  color: var(--graphite);
  font-family: Avenir, "Avenir Next", "Century Gothic", Calibri, sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.28;
}

.profile-text p,
.art-copy > p:not(.statement) {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
}

.profile-text p + p,
.art-copy > p + p {
  margin-top: 22px;
}

.expertise-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.expertise-item {
  min-height: 292px;
  padding: clamp(28px, 4vw, 44px);
  background: transparent;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.expertise-item + .expertise-item {
  border-left: 1px solid var(--line);
}

.item-number,
.timeline-kicker {
  display: block;
  color: var(--accent);
  font-family: Avenir, "Avenir Next", "Century Gothic", Calibri, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.expertise-item h3 {
  margin-top: 42px;
  font-size: clamp(19px, 2vw, 27px);
}

.expertise-item p {
  margin: 20px 0 0;
  color: var(--muted);
}

.process {
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.045) 1px, transparent 1px) 0 0 / 78px 78px,
    linear-gradient(180deg, #30312d 0%, #252622 100%);
}

.process-inner {
  padding: clamp(74px, 9vw, 112px) 0;
}

.process .section-heading {
  margin-bottom: clamp(30px, 5vw, 56px);
}

.process .section-heading h2 {
  color: var(--paper);
  font-size: clamp(26px, 3vw, 42px);
}

.process .section-heading::after {
  background: rgba(251, 250, 247, 0.22);
}

.process-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(251, 250, 247, 0.26);
}

.process-step {
  position: relative;
  min-height: 208px;
  padding: 34px 30px 0 0;
}

.process-step + .process-step {
  padding-left: 30px;
  border-left: 1px solid rgba(251, 250, 247, 0.17);
}

.process-step::before {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--accent-soft);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(201, 144, 126, 0.08);
}

.process-step + .process-step::before {
  left: 30px;
}

.process-step span {
  display: block;
  color: var(--paper);
  font-family: Avenir, "Avenir Next", "Century Gothic", Calibri, sans-serif;
  font-size: clamp(19px, 1.9vw, 27px);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.process-step p {
  margin: 18px 0 0;
  color: rgba(251, 250, 247, 0.72);
}

.art {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(251, 250, 247, 0.86), rgba(243, 240, 234, 0.52)),
    var(--paper-soft);
}

.art::before {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  content: "";
  background: rgba(74, 64, 54, 0.14);
}

.art::after {
  position: absolute;
  top: 12%;
  right: 4vw;
  width: min(34vw, 420px);
  height: min(34vw, 420px);
  content: "";
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(154, 81, 69, 0.075), transparent 48%),
    rgba(251, 250, 247, 0.3);
  border: 1px solid rgba(154, 81, 69, 0.1);
  transform: rotate(2deg);
}

.art-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: clamp(38px, 7vw, 92px);
  align-items: center;
}

.art .section-heading {
  margin-bottom: clamp(26px, 4vw, 42px);
}

.art-visual {
  position: relative;
  padding: 18px 0 0 18px;
}

.art-visual::before {
  position: absolute;
  inset: 0 42px 62px 0;
  content: "";
  border: 1px solid rgba(111, 45, 49, 0.24);
}

.art-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(310px, 38vw, 520px);
  aspect-ratio: 1.58 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.art-visual::after {
  position: absolute;
  right: 26px;
  bottom: 48px;
  z-index: 0;
  width: 42%;
  height: 42%;
  content: "";
  background: rgba(154, 81, 69, 0.08);
  filter: blur(18px);
}

.art-visual p {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: min(100%, 440px);
  margin: 14px 46px 0 auto;
  padding: 7px 12px 6px;
  color: var(--muted);
  background: rgba(251, 250, 247, 0.88);
  border: 1px solid rgba(74, 64, 54, 0.16);
  border-radius: 2px;
  box-shadow: 0 10px 28px rgba(43, 36, 28, 0.06);
  font-size: 14px;
  font-style: italic;
  line-height: 1.42;
  text-align: right;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  counter-reset: experience;
  background: transparent;
  border: 0;
}

.timeline-item {
  position: relative;
  min-width: 0;
  min-height: 256px;
  padding: clamp(32px, 3.6vw, 46px);
  overflow: hidden;
  counter-increment: experience;
  background:
    linear-gradient(135deg, rgba(154, 81, 69, 0.055), transparent 42%),
    rgba(251, 250, 247, 0.62);
  border: 1px solid rgba(74, 64, 54, 0.18);
}

.timeline-item::before {
  display: block;
  margin-bottom: clamp(26px, 3vw, 38px);
  color: rgba(154, 81, 69, 0.88);
  content: "0" counter(experience);
  font-family: Avenir, "Avenir Next", "Century Gothic", Calibri, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.timeline-item::after {
  position: absolute;
  top: clamp(36px, 4vw, 48px);
  right: clamp(28px, 3.6vw, 42px);
  width: 42px;
  height: 1px;
  content: "";
  background: rgba(154, 81, 69, 0.55);
}

.timeline-item h3 {
  margin-top: 12px;
  max-width: 25ch;
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.22;
  text-transform: none;
}

.timeline-item p {
  max-width: 34ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.54;
}

.contact {
  padding-top: clamp(34px, 6vw, 82px);
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.54fr) minmax(280px, 0.86fr) auto;
  align-items: center;
  gap: clamp(24px, 5vw, 62px);
  padding: clamp(34px, 5vw, 56px) clamp(0px, 4vw, 48px);
  background:
    linear-gradient(135deg, rgba(251, 250, 247, 0.62), rgba(228, 221, 210, 0.22)),
    rgba(251, 250, 247, 0.28);
  border: 1px solid var(--line);
}

.contact-panel::before {
  position: absolute;
  top: clamp(26px, 4vw, 42px);
  bottom: clamp(26px, 4vw, 42px);
  left: 0;
  width: 3px;
  content: "";
  background: var(--accent);
}

.contact-panel h2 {
  font-size: clamp(28px, 3.6vw, 48px);
}

.contact-panel p {
  margin: 0;
  color: var(--muted);
}

.contact-panel .button-primary {
  width: min(100%, 300px);
  min-width: min(100%, 300px);
  justify-self: start;
  background: var(--graphite);
  border-color: var(--graphite);
}

.contact-panel .button-primary:hover,
.contact-panel .button-primary:focus-visible {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 24px;
  padding: 26px clamp(18px, 5vw, 72px) 34px;
  color: var(--muted);
  background: #ede7dd;
  border-top: 1px solid rgba(74, 64, 54, 0.14);
  font-size: 13px;
}

@media (hover: hover) {
  .expertise-item:hover {
    transform: translateY(-2px);
  }

  .timeline-item:hover {
    background:
      linear-gradient(135deg, rgba(154, 81, 69, 0.075), transparent 44%),
      rgba(251, 250, 247, 0.76);
  }
}

.reveal-target {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

body.reveal-ready .reveal-target {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 680ms ease,
    transform 680ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

.expertise-item:nth-child(2),
.process-step:nth-child(2),
.timeline-item:nth-child(2) {
  --reveal-delay: 70ms;
}

.expertise-item:nth-child(3),
.process-step:nth-child(3),
.timeline-item:nth-child(3) {
  --reveal-delay: 140ms;
}

.process-step:nth-child(4),
.timeline-item:nth-child(4) {
  --reveal-delay: 210ms;
}

.timeline-item:nth-child(5) {
  --reveal-delay: 70ms;
}

.timeline-item:nth-child(6) {
  --reveal-delay: 140ms;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1180px) {
  .page-rail {
    display: none;
  }

  .section-shell {
    width: min(var(--max), calc(100% - 44px));
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
    gap: 42px;
  }

  h1 {
    font-size: clamp(62px, 9vw, 116px);
    letter-spacing: 0.1em;
  }

  .brand-subline {
    display: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hero,
  .art-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-copy::before {
    top: -0.28em;
    left: -0.1em;
    font-size: clamp(120px, 24vw, 220px);
  }

  .hero::after {
    left: 0;
    right: 0;
  }

  .hero-visual {
    width: min(610px, 100%);
    margin-inline: auto;
  }

  .hero-visual::after {
    inset: 38px 0 16px 24%;
  }

  .profile-grid,
  .expertise-layout,
  .process-line,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .profile-grid {
    padding-left: 0;
  }

  .expertise-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: clamp(18px, 4vw, 30px);
    min-height: 0;
    padding: clamp(26px, 4vw, 36px) 0;
  }

  .expertise-item + .expertise-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .expertise-item .item-number {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .expertise-item h3,
  .expertise-item p {
    grid-column: 2;
  }

  .expertise-item h3 {
    margin-top: 0;
  }

  .expertise-item p {
    margin-top: 12px;
  }

  .process-line {
    border-top: 0;
  }

  .process-step {
    min-height: 0;
    padding: 24px 0 30px 30px;
    border-top: 1px solid rgba(251, 250, 247, 0.2);
  }

  .process-step + .process-step {
    padding-left: 30px;
    border-left: 0;
  }

  .process-step::before,
  .process-step + .process-step::before {
    top: 30px;
    left: 0;
  }

  .art-visual {
    width: min(760px, 100%);
    margin-inline: auto;
  }

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

  .timeline-item {
    min-height: 220px;
    padding: 30px;
  }
}

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

  .site-header {
    min-height: var(--header-h);
    padding: 13px 18px;
    background: var(--paper);
  }

  .site-header.is-scrolled {
    background: var(--paper);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    z-index: 31;
    inset: calc(var(--header-h) + 10px) 16px auto 16px;
    display: grid;
    justify-content: stretch;
    gap: 4px;
    max-height: calc(100vh - var(--header-h) - 32px);
    padding: 12px;
    overflow-y: auto;
    background: var(--paper);
    border: 1px solid rgba(74, 64, 54, 0.18);
    border-radius: var(--radius);
    box-shadow: 0 28px 80px rgba(43, 36, 28, 0.18);
    counter-reset: mobile-nav;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.nav-open .site-header {
    background: var(--paper);
  }

  .site-nav a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    min-height: 54px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    counter-increment: mobile-nav;
    transition:
      background 180ms ease,
      border-color 180ms ease,
      color 180ms ease;
  }

  .site-nav a::before {
    color: rgba(154, 81, 69, 0.76);
    content: "0" counter(mobile-nav);
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .site-nav a::after {
    right: 14px;
    bottom: 8px;
    left: 48px;
    height: 1px;
    transform-origin: left;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible,
  .site-nav a.is-active,
  .site-nav a[aria-current="true"] {
    background: rgba(154, 81, 69, 0.055);
    border-color: rgba(154, 81, 69, 0.18);
  }

  .art::after {
    display: none;
  }
}

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

  html {
    scroll-padding-top: var(--header-h);
  }

  main[id],
  section[id] {
    scroll-margin-top: var(--header-h);
  }

  body {
    font-size: 16px;
  }

  .site-header {
    min-height: var(--header-h);
    padding: 12px 16px;
  }

  .brand {
    grid-template-columns: 36px minmax(0, auto);
    gap: 12px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .brand-name {
    font-size: 13px;
    letter-spacing: 0.16em;
  }

  .site-nav {
    inset: calc(var(--header-h) + 10px) 14px auto 14px;
  }

  .site-nav a {
    min-height: 52px;
    padding-inline: 12px;
  }

  .section-shell {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    gap: 34px;
    padding: 46px 0 34px;
  }

  h1 {
    font-size: clamp(50px, 15.5vw, 88px);
    letter-spacing: 0.08em;
  }

  h2 {
    font-size: clamp(27px, 8vw, 38px);
    letter-spacing: 0.1em;
  }

  .hero-lead {
    font-size: clamp(19px, 6vw, 28px);
    letter-spacing: 0.05em;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-visual {
    padding: 0 0 48px 22px;
  }

  .visual-rail {
    left: 7px;
  }

  .portrait-frame {
    width: 100%;
  }

  .visual-note {
    right: 0;
    left: 22px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .profile,
  .expertise,
  .art,
  .experience,
  .contact {
    padding: 64px 0;
  }

  .experience {
    padding-top: 48px;
  }

  .experience .section-heading {
    margin-bottom: 24px;
  }

  .section-heading {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 28px;
  }

  .section-heading::after {
    height: 46px;
  }

  .statement {
    font-size: clamp(24px, 7vw, 34px);
  }

  .expertise-item {
    padding: 26px 0;
  }

  .expertise-item h3 {
    margin-top: 0;
  }

  .art-visual {
    padding-left: 10px;
  }

  .art-visual::before {
    right: 20px;
    bottom: 54px;
  }

  .art-visual img {
    height: clamp(260px, 70vw, 380px);
  }

  .art-visual p {
    width: max-content;
    max-width: calc(100% - 20px);
    margin: 12px 0 0 10px;
    padding: 6px 10px;
    background: rgba(251, 250, 247, 0.92);
    text-align: left;
  }

  .art::after {
    display: none;
  }

  .timeline {
    position: relative;
    grid-template-columns: 1fr;
    gap: 18px;
    padding-left: 20px;
    background: transparent;
    border: 0;
  }

  .timeline::before {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 4px;
    width: 1px;
    content: "";
    background: rgba(154, 81, 69, 0.34);
  }

  .timeline-item {
    min-height: 0;
    padding: 24px 22px;
    border: 1px solid rgba(74, 64, 54, 0.17);
    background:
      linear-gradient(135deg, rgba(154, 81, 69, 0.05), transparent 48%),
      rgba(251, 250, 247, 0.72);
  }

  .timeline-item::before {
    margin-bottom: 18px;
    font-size: 12px;
  }

  .timeline-item::after {
    top: 30px;
    right: auto;
    left: -25px;
    width: 9px;
    height: 9px;
    background: var(--accent);
    border: 3px solid var(--paper-soft);
    border-radius: 50%;
  }

  .timeline-item h3 {
    max-width: none;
    font-size: 18px;
    letter-spacing: 0.02em;
  }

  .timeline-item p {
    max-width: none;
    font-size: 15px;
  }

  .contact-panel {
    gap: 22px;
    padding: 32px 22px;
  }

  .contact-panel .button-primary {
    width: min(100%, 320px);
  }
}

@media (max-width: 520px) {
  body {
    background:
      linear-gradient(90deg, rgba(36, 34, 32, 0.035) 1px, transparent 1px) 0 0 / 52px 52px,
      linear-gradient(180deg, var(--paper) 0%, var(--bg) 52%, #ede7dd 100%);
  }

  .site-header {
    padding: 10px 14px;
  }

  .brand {
    grid-template-columns: 32px minmax(0, auto);
    gap: 10px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .brand-name {
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .section-shell {
    width: min(100% - 30px, var(--max));
  }

  .hero {
    gap: 30px;
    padding-top: 34px;
  }

  .hero-copy::before {
    display: none;
  }

  h1 {
    font-size: clamp(44px, 14.6vw, 64px);
    line-height: 1;
    letter-spacing: 0.07em;
  }

  h2 {
    font-size: clamp(24px, 7.2vw, 32px);
    line-height: 1.2;
    letter-spacing: 0.08em;
  }

  .hero-rule {
    margin: 18px 0 16px;
  }

  .hero-lead {
    font-size: clamp(17px, 5.1vw, 22px);
    letter-spacing: 0.04em;
  }

  .hero-subline {
    margin-top: 17px;
    font-size: 15.5px;
    line-height: 1.52;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .button {
    min-height: 46px;
    padding: 12px 14px;
    font-size: 11px;
    letter-spacing: 0.09em;
  }

  .hero-visual {
    width: min(100%, 342px);
    padding: 0 0 42px 18px;
  }

  .hero-visual::after {
    inset: 28px 0 18px 24%;
  }

  .visual-rail {
    inset: -18px auto 26px 4px;
  }

  .visual-note {
    left: 18px;
    justify-content: center;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-align: center;
  }

  .profile,
  .expertise,
  .art,
  .experience,
  .contact {
    padding: 56px 0;
  }

  .experience {
    padding-top: 44px;
  }

  .process-inner {
    padding: 58px 0;
  }

  .section-heading {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 24px;
  }

  .section-index {
    font-size: 12px;
  }

  .section-heading::after {
    height: 36px;
    margin-top: 12px;
  }

  .statement {
    font-size: clamp(23px, 6.3vw, 29px);
    line-height: 1.24;
  }

  .profile-grid {
    gap: 24px;
  }

  .profile-text p,
  .art-copy > p:not(.statement) {
    font-size: 15.5px;
    line-height: 1.58;
  }

  .expertise-item {
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 14px;
    padding: 24px 0;
  }

  .expertise-item h3 {
    font-size: 19px;
  }

  .process-step {
    padding: 22px 0 24px 24px;
  }

  .process-step + .process-step {
    padding-left: 24px;
  }

  .process-step::before,
  .process-step + .process-step::before {
    left: 0;
  }

  .process-step span {
    font-size: 17px;
    letter-spacing: 0.09em;
  }

  .process-step p {
    margin-top: 12px;
    font-size: 14.5px;
    line-height: 1.48;
  }

  .art-inner {
    gap: 30px;
  }

  .art-visual img {
    height: clamp(210px, 64vw, 300px);
  }

  .art-visual p {
    font-size: 12px;
    line-height: 1.45;
  }

  .timeline {
    gap: 14px;
  }

  .timeline-item {
    padding: 22px 20px;
  }

  .timeline-kicker {
    font-size: 10px;
    line-height: 1.45;
  }

  .timeline-item h3 {
    font-size: 17px;
  }

  .contact-panel h2 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .contact-panel {
    padding: 28px 18px;
  }

  .site-footer {
    padding: 22px 15px 30px;
  }
}

@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;
  }

  body.reveal-ready .reveal-target {
    opacity: 1;
    transform: none;
  }
}
