:root {
  --color-bg: #fcfbf8;
  --color-bg-alt: #f6f1e8;
  --color-text: #121110;
  --color-muted: #6a6258;
  --color-border: rgba(113, 88, 47, 0.16);
  --color-border-strong: rgba(35, 28, 20, 0.22);
  --color-accent: #a8741f;
  --color-accent-strong: #8a5c12;
  --color-accent-ink: #7c5614;
  --color-accent-soft: #f3e5cc;
  --color-accent-glow: rgba(168, 116, 31, 0.18);
  --color-panel: rgba(255, 252, 247, 0.82);
  --color-panel-raised: rgba(255, 255, 255, 0.76);
  --color-ink-soft: #312c26;
  --shadow-line: 0 1px 0 rgba(11, 11, 11, 0.08);
  --shadow-soft: 0 28px 90px rgba(62, 45, 22, 0.1);
  --shadow-card: 0 18px 48px rgba(73, 53, 25, 0.08);
  --shadow-lifted: 0 30px 90px rgba(62, 45, 22, 0.14);
  --font-display: "Playfair Display", "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --font-display-latin: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Serif 4", "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --container: min(100% - 40px, 1180px);
  --section-space: clamp(72px, 11vw, 148px);
  --radius-soft: 16px;
  --radius-pill: 18px;
  --transition-base: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

html.project-modal-open {
  scrollbar-gutter: stable;
  scrollbar-color: transparent transparent;
}

body {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(244, 231, 210, 0.92), transparent 26vw),
    radial-gradient(circle at 82% 18%, rgba(168, 116, 31, 0.12), transparent 26vw),
    radial-gradient(circle at 78% 68%, rgba(53, 41, 22, 0.05), transparent 30vw),
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(252, 251, 248, 0.96) 26%, var(--color-bg) 100%),
    var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg width='760' height='760' viewBox='0 0 760 760' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23a8741f' stroke-linecap='round'%3E%3Cpath d='M380 380 C408 355 452 365 468 402 C490 454 433 514 359 492 C269 466 236 354 306 277 C390 184 552 223 604 351 C668 510 522 679 333 641 C105 596 30 327 190 162 C375 -29 706 49 818 302' stroke-opacity='.18' stroke-width='1.4'/%3E%3Cpath d='M380 380 C360 398 326 388 314 360 C298 321 340 277 395 292 C462 311 488 394 437 452 C375 522 254 493 215 397 C167 278 276 153 418 181' stroke-opacity='.12' stroke-width='1'/%3E%3Ccircle cx='380' cy='380' r='5' fill='%23a8741f' fill-opacity='.16' stroke='none'/%3E%3C/g%3E%3C/svg%3E") right -190px top 90px / min(72vw, 760px) auto no-repeat,
    url("data:image/svg+xml,%3Csvg width='640' height='640' viewBox='0 0 640 640' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%230b0b0b' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M320 94 L516 207 L516 433 L320 546 L124 433 L124 207 Z' stroke-opacity='.08' stroke-width='1.2'/%3E%3Cpath d='M320 172 L448 246 L448 394 L320 468 L192 394 L192 246 Z' stroke-opacity='.07' stroke-width='1'/%3E%3Cpath d='M320 94 V546 M124 207 L516 433 M516 207 L124 433' stroke-opacity='.07' stroke-width='1'/%3E%3Ccircle cx='320' cy='320' r='5' fill='%230b0b0b' fill-opacity='.08' stroke='none'/%3E%3C/g%3E%3C/svg%3E") left -180px top 560px / min(70vw, 640px) auto no-repeat;
  opacity: 0.82;
  content: "";
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(18, 17, 16, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 17, 16, 0.018) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 36%, transparent 100%);
  opacity: 0.5;
  content: "";
}

body > * {
  position: relative;
  z-index: 1;
}

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

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

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

button,
a {
  touch-action: manipulation;
}

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

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--color-text);
  color: var(--color-bg);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: var(--container);
  margin: 0 auto;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 252, 247, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-pill);
  box-shadow: 0 14px 42px rgba(55, 40, 19, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(1.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background:
    radial-gradient(circle at 82% 54%, rgba(243, 229, 204, 0.7) 0 2px, transparent 3px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 44%),
    var(--color-text);
  color: var(--color-bg);
  border-radius: 13px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 22px rgba(18, 17, 16, 0.1);
}

.brand-mark::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 11px;
  width: 1px;
  border-radius: 999px;
  background: rgba(243, 229, 204, 0.52);
  content: "";
}

.brand-mark__text {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

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

.brand-title {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
}

.brand-kicker {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: color var(--transition-base), background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.82);
  color: var(--color-text);
  box-shadow: inset 0 0 0 1px rgba(168, 116, 31, 0.18);
}

.site-nav a[aria-current="page"] {
  background: linear-gradient(135deg, #1a1917 0%, #2c2418 100%);
  color: var(--color-bg);
  border-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 10px 24px rgba(18, 17, 16, 0.12);
}

main {
  width: var(--container);
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: clamp(36px, 8vw, 96px);
  min-height: calc(100dvh - 90px);
  align-items: center;
  padding: clamp(68px, 10vw, 128px) 0 clamp(54px, 7vw, 96px);
}

.hero::after {
  position: absolute;
  right: clamp(18px, 3vw, 36px);
  top: clamp(26px, 3vw, 42px);
  width: clamp(140px, 16vw, 210px);
  height: clamp(140px, 16vw, 210px);
  border: 1px solid rgba(168, 116, 31, 0.16);
  border-radius: 50%;
  opacity: 0.7;
  content: "";
}

.hero-copy {
  position: relative;
  max-width: 860px;
  padding-left: clamp(18px, 2.4vw, 32px);
}

.hero-copy::after {
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 2px;
  height: clamp(108px, 16vw, 168px);
  background: linear-gradient(180deg, var(--color-accent) 0%, rgba(168, 116, 31, 0) 100%);
  content: "";
}

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

h1,
h2,
h3 {
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

h1 {
  max-width: 920px;
  margin-bottom: 24px;
  font-size: 96px;
  letter-spacing: 0;
  text-shadow: 0 8px 28px rgba(18, 17, 16, 0.06);
}

.hero--latin {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: clamp(28px, 5vw, 72px);
}

.hero-title--latin {
  font-family: var(--font-display-latin);
  max-width: 820px;
  font-size: clamp(52px, 5.5vw, 74px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-wrap: pretty;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-subtitle {
  margin-bottom: 0;
}

.hero--latin .hero-note {
  justify-self: end;
  width: min(100%, 256px);
}

h2 {
  margin-bottom: 20px;
  font-size: 64px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 18px;
  font-size: 34px;
  letter-spacing: 0;
}

.hero-copy > p,
.page-hero > p,
.section-heading > p,
.about-copy > p {
  max-width: 720px;
  color: var(--color-ink-soft);
}

.hero-copy > p,
.page-hero > p {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.82;
}

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

.button,
.card-link,
.text-link,
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  transition: transform var(--transition-base), background var(--transition-base), color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.button {
  padding: 13px 20px;
  border: 1px solid var(--color-text);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 24px rgba(18, 17, 16, 0.06);
  gap: 10px;
}

.button::after {
  display: inline-block;
  transition: transform var(--transition-base);
  content: "\2192";
}

.button:hover::after {
  transform: translateX(4px);
}

.button-primary {
  background: linear-gradient(135deg, #1a1917 0%, #2c2418 100%);
  color: var(--color-bg);
  border-color: rgba(0, 0, 0, 0.9);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.68);
  color: var(--color-text);
  border-color: rgba(18, 17, 16, 0.14);
}

.hero-note {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 154px;
  padding: 30px 28px 30px 44px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: calc(var(--radius-soft) + 2px);
  background:
    radial-gradient(circle at top left, rgba(243, 229, 204, 0.72), transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(251, 247, 240, 0.74)),
    var(--color-panel-raised);
  box-shadow: var(--shadow-lifted);
  backdrop-filter: blur(16px);
}

.hero-note::before {
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 16px;
  width: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--color-accent) 0%, rgba(168, 116, 31, 0.28) 100%);
  content: "";
}

.hero-note span,
.contact-card span {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0;
}

.hero-note strong {
  display: block;
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(36px, 3.8vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero-note p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 17px;
  line-height: 1.4;
}

.content-section,
.about-split,
.about-layout,
.contact-page {
  padding: var(--section-space) 0;
  border-top: 1px solid rgba(113, 88, 47, 0.11);
}

.content-section--photography {
  padding-top: clamp(48px, 6vw, 72px);
  border-top-color: rgba(18, 17, 16, 0.16);
}

#home,
#projects,
#photography,
#about,
#contact {
  scroll-margin-top: 112px;
}

.content-section--photography#photography,
.content-section--photography {
  scroll-margin-top: 88px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: end;
  margin-bottom: clamp(20px, 4vw, 48px);
}

.section-heading p {
  margin-bottom: 0;
}

#projects > .section-heading,
#projects > .section-heading {
  grid-template-columns: 1fr;
}

#projects > .section-heading h2,
#projects > .section-heading h2 {
  white-space: nowrap;
}

.project-grid {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
}

.project-featured {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
}

.project-deck {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 28px);
}

.project-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 24px);
}

.project-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(113, 88, 47, 0.14);
  border-radius: calc(var(--radius-soft) + 2px);
  background:
    radial-gradient(circle at top left, rgba(243, 229, 204, 0.78), transparent 36%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(250, 246, 240, 0.86)),
    var(--color-panel-raised);
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  transition: background var(--transition-base), transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.project-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(132deg, rgba(255, 255, 255, 0.34), transparent 34%, transparent 74%, rgba(168, 116, 31, 0.06));
  pointer-events: none;
  content: "";
}

.project-card p {
  color: var(--color-ink-soft);
}

.project-card__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.project-card__serial {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 0;
  color: rgba(18, 17, 16, 0.08);
  font-family: var(--font-mono);
  font-size: clamp(56px, 6vw, 82px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  pointer-events: none;
  transition: color var(--transition-base), transform var(--transition-base);
}

.project-card__lead {
  margin: 14px 0 18px;
  color: var(--color-ink-soft);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.64;
}

.project-card__media {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 10px 0 6px;
}

.project-card__media-glow {
  position: absolute;
  inset: 24% 8% 0;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 116, 31, 0.24), rgba(168, 116, 31, 0) 72%);
  filter: blur(40px);
  opacity: 0.92;
  transform: scale(0.96);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.project-card__preview {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(113, 88, 47, 0.16);
  border-radius: 18px;
  background: rgba(246, 241, 232, 0.92);
  box-shadow:
    0 24px 52px rgba(73, 53, 25, 0.14),
    0 8px 18px rgba(73, 53, 25, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  transform: perspective(1400px) rotateY(-8deg) rotateX(2deg);
  will-change: transform;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.project-card__preview::after {
  position: absolute;
  inset: -44% -70%;
  z-index: 3;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.42) 47%, transparent 59%);
  opacity: 0.24;
  pointer-events: none;
  transform: translateX(-18%) rotate(8deg);
  transition: opacity var(--transition-base), transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
  content: "";
}

.project-card__preview img {
  display: block;
  width: 100%;
  height: 100%;
  filter: saturate(0.96) contrast(1.02) brightness(0.99);
  object-fit: cover;
  object-position: center top;
  transform: scale(1.012);
  transition: filter var(--transition-base), transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card--spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
  align-items: center;
  gap: clamp(22px, 3.2vw, 34px);
  width: 100%;
  min-height: clamp(280px, 27vw, 372px);
  padding: clamp(22px, 2.4vw, 30px);
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.project-card--spotlight-reverse {
  grid-template-columns: minmax(330px, 0.88fr) minmax(0, 1.12fr);
}

.project-card--spotlight-reverse .project-card__media {
  order: -1;
}

.project-card--spotlight-reverse .project-card__preview {
  transform: perspective(1400px) rotateY(8deg) rotateX(2deg);
}

.project-card--spotlight .project-card__copy {
  max-width: min(100%, 600px);
}

.project-card--spotlight .project-card__serial {
  top: 18px;
  right: 20px;
  z-index: 2;
}

.project-card--spotlight h3 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(29px, 2.8vw, 42px);
  line-height: 1.02;
}

.project-card__headline-primary,
.project-card__headline-secondary {
  display: block;
  max-width: 100%;
  word-break: keep-all;
}

.project-card__headline-secondary {
  margin-top: 2px;
}

.project-card--spotlight .project-card__lead {
  max-width: 23em;
}

.project-card--spotlight .tag-list {
  margin: 0 0 16px;
  gap: 10px;
}

.project-card--spotlight .card-link {
  margin-top: 0;
}

.project-card--medium {
  display: grid;
  grid-template-columns: minmax(190px, 0.46fr) minmax(0, 0.54fr);
  gap: clamp(18px, 2.2vw, 24px);
  align-items: stretch;
  width: 100%;
  min-height: 296px;
  padding: 16px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.project-card__medium-media {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 238px;
  padding-top: 0;
  perspective: 1600px;
}

.project-card__medium-media::after {
  position: absolute;
  right: 20px;
  bottom: 16px;
  left: 12px;
  z-index: 0;
  height: 30px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(73, 53, 25, 0.18), rgba(73, 53, 25, 0) 74%);
  filter: blur(16px);
  opacity: 0.48;
  transform: translateX(-4px) scale(0.92);
  transform-origin: 22% 50%;
  transition: transform var(--transition-base), opacity var(--transition-base);
  pointer-events: none;
  content: "";
}

.project-card__preview--medium {
  width: min(100%, 304px);
  min-height: 0;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(113, 88, 47, 0.16);
  border-radius: 14px;
  background: rgba(246, 241, 232, 0.92);
  box-shadow:
    0 24px 52px rgba(73, 53, 25, 0.14),
    0 8px 18px rgba(73, 53, 25, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  overflow: hidden;
  transform-origin: 92% 58%;
  transform: perspective(1400px) rotateY(16deg) rotateX(4deg);
  will-change: transform;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.project-card__preview--medium::after {
  position: absolute;
  inset: -44% -70%;
  z-index: 3;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.42) 47%, transparent 59%);
  opacity: 0.24;
  pointer-events: none;
  transform: translateX(-18%) rotate(8deg);
  transition: opacity var(--transition-base), transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
  content: "";
}

.project-card__preview--medium img {
  display: block;
  width: 100%;
  height: 100%;
  filter: saturate(0.96) contrast(1.02) brightness(0.99);
  object-fit: cover;
  object-position: center top;
  transform: scale(1.012);
  transition: filter var(--transition-base), transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card--medium .project-card__serial {
  top: 24px;
  right: 24px;
  z-index: 3;
  color: rgba(18, 17, 16, 0.1);
  font-size: clamp(34px, 3.5vw, 48px);
}

.project-card--medium .project-card__copy {
  justify-content: center;
  padding: 4px 8px 4px 0;
}

.project-card--medium h3 {
  margin-bottom: 14px;
  font-size: clamp(25px, 2vw, 31px);
  line-height: 1.02;
}

.project-card--medium .project-card__lead {
  display: -webkit-box;
  max-width: 27em;
  margin: 0 0 14px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.54;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-card--medium .tag-list {
  margin: 0 0 16px;
  gap: 8px;
}

.project-card--medium .tag-list li {
  padding: 7px 12px;
  font-size: 12px;
}

.project-card--compact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 258px;
  padding: 22px 22px 24px;
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.project-card--compact h3 {
  max-width: 11em;
  margin-bottom: 14px;
  font-size: clamp(26px, 2vw, 31px);
  line-height: 0.98;
}

.project-card--compact p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.62;
}

.project-card--compact .tag-list {
  margin: 0 0 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 28px;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 8px 14px;
  border: 1px solid rgba(168, 116, 31, 0.30);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.card-link,
.text-link,
.contact-link {
  width: fit-content;
  min-height: auto;
  padding: 4px 0 0px;
  border-bottom: 1px solid var(--color-accent);
  color: var(--color-text);
}

.project-card .card-link {
  margin-top: auto;
}

.project-card--spotlight .project-card__copy .card-link {
  margin-top: 0;
}

.project-card--medium.project-card .card-link {
  margin-top: 0;
}

.project-card--compact.project-card .card-link {
  margin-top: 0;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.project-modal[hidden] {
  display: none;
}

.project-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: rgba(18, 17, 16, 0.04);
  backdrop-filter: none;
  cursor: pointer;
}

.project-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: min(88dvh, 980px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: clamp(12px, 2vw, 16px);
  background:
    radial-gradient(circle at top right, rgba(243, 229, 204, 0.84), transparent 24vw),
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(251, 247, 240, 0.96)),
    #fffaf3;
  box-shadow:
    0 18px 36px rgba(18, 17, 16, 0.12),
    0 42px 96px rgba(18, 17, 16, 0.18);
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition-base);
}

.project-modal__scroll {
  max-height: min(88dvh, 980px);
  overflow: auto;
  padding: clamp(32px, 5vw, 56px);
  padding-top: clamp(24px, 3.5vw, 36px);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 116, 31, 0.62) rgba(243, 229, 204, 0.34);
}

.project-modal.is-visible .project-modal__dialog {
  transform: translateY(0) scale(1);
}

.project-modal__scroll::-webkit-scrollbar {
  width: 12px;
}

.project-modal__scroll::-webkit-scrollbar-track {
  margin: 16px 0;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(243, 229, 204, 0.3)),
    rgba(243, 229, 204, 0.24);
}

.project-modal__scroll::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(182, 127, 36, 0.95), rgba(138, 92, 18, 0.9)) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(243, 229, 204, 0.26)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 6px 14px rgba(138, 92, 18, 0.16);
}

.project-modal__scroll::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(194, 132, 24, 0.98), rgba(124, 86, 20, 0.94)) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(243, 229, 204, 0.32)) border-box;
}

.project-modal__scroll::-webkit-scrollbar-corner {
  background: transparent;
}

.project-modal__toolbar {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
}

.project-modal__close {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(113, 88, 47, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  color: rgba(32, 23, 15, 0.62);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(68, 54, 34, 0.1);
  backdrop-filter: blur(12px);
  transition: transform var(--transition-base), background var(--transition-base), border-color var(--transition-base), color var(--transition-base), box-shadow var(--transition-base), opacity var(--transition-base);
}

.project-modal__close::before,
.project-modal__close::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.project-modal__close::before {
  transform: rotate(45deg);
}

.project-modal__close::after {
  transform: rotate(-45deg);
}

.project-modal__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px 24px;
}

.project-modal__title {
  width: 100%;
  margin-bottom: 0;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.08;
}

.project-modal__tags {
  margin: 0;
}

.project-modal__tags li {
  background: rgba(255, 255, 255, 0.82);
}

.project-modal__meta {
  width: 100%;
  margin: 4px 0 0;
  color: var(--color-ink-soft);
  font-size: 15px;
  line-height: 1.4;
}

.project-modal__meta-label {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 600;
  margin-right: 6px;
}

.project-modal__meta-dot {
  margin: 0 14px;
  opacity: 0.4;
}

.project-modal__divider {
  height: 1px;
  margin: 28px 0;
  padding: 0;
  border: 0;
  background: rgba(113, 88, 47, 0.1);
}

.project-modal__section {
  margin-top: 24px;
}

.project-modal__section-label {
  display: block;
  margin-bottom: 12px;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.project-modal__prose,
.project-modal__shot figcaption p {
  max-width: 760px;
  margin: 0;
  color: rgba(32, 23, 15, 0.9);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.82;
  letter-spacing: 0.01em;
}

.project-modal__prose + .project-modal__prose,
.project-modal__prose + .project-modal__list,
.project-modal__list + .project-modal__prose {
  margin-top: 14px;
}

.project-modal__list {
  max-width: 760px;
  margin: 0;
  padding-left: 1.35em;
  color: rgba(32, 23, 15, 0.9);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.82;
  letter-spacing: 0.01em;
}

.project-modal__list li + li {
  margin-top: 8px;
}

.project-modal__video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.project-modal__video-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(68, 54, 34, 0.1);
}

.project-modal__video-frame iframe {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  border: 0;
}

.project-modal__showcase {
  display: grid;
  gap: 36px;
  margin-top: 24px;
}

.project-modal__shot {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.project-modal__shot img {
  width: 100%;
  border-radius: 12px;
  background: var(--color-panel);
  box-shadow: 0 12px 36px rgba(68, 54, 34, 0.1);
}

.project-modal__shot figcaption {
  display: grid;
  gap: 6px;
  padding-top: 14px;
}

.project-modal__shot figcaption strong {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
}

.project-modal__shot--split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  gap: 24px;
  align-items: center;
}

.project-modal__shot--split figcaption {
  gap: 10px;
  align-content: center;
  padding-top: 0;
}

.gallery-section {
  position: relative;
  isolation: isolate;
}

.photo-intro {
  display: block;
  margin-bottom: clamp(34px, 5vw, 56px);
}

.photo-intro__heading {
  display: grid;
  gap: 16px;
}

.photo-intro__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--color-accent-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.photo-intro__eyebrow::before {
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, rgba(18, 17, 16, 0.68), rgba(18, 17, 16, 0));
  content: "";
}

.photo-intro h2 {
  margin-bottom: 0;
  white-space: nowrap;
}

.gallery-section::before {
  position: absolute;
  inset: -20px -6vw 6% -6vw;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(44% 34% at 10% 8%, rgba(243, 229, 204, 0.84), transparent 72%),
    radial-gradient(34% 26% at 76% 14%, rgba(255, 255, 255, 0.98), transparent 78%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.52) 48%, rgba(255, 255, 255, 0.14) 100%);
  filter: blur(12px);
  content: "";
}

.gallery-section::after {
  position: absolute;
  top: clamp(26px, 4vw, 54px);
  right: -4vw;
  width: min(48vw, 620px);
  height: clamp(260px, 32vw, 420px);
  z-index: -1;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 72%);
  opacity: 0.88;
  pointer-events: none;
  filter: blur(10px);
  content: "";
}

.photo-gallery {
  display: grid;
  gap: clamp(30px, 4vw, 40px);
}

.photo-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.58fr);
  gap: clamp(24px, 3vw, 36px);
  align-items: start;
}

.photo-stage__column {
  display: grid;
  gap: clamp(20px, 2.4vw, 26px);
  padding-top: clamp(14px, 3vw, 36px);
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.8vw, 30px);
}

.photo-card {
  margin: 0;
}

.photo-card__trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(18, 17, 16, 0.08);
  border-radius: 18px;
  background: #fffdf9;
  box-shadow: 0 16px 38px rgba(60, 44, 24, 0.06);
  transition: filter var(--transition-base), transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.photo-card.photo-wide img {
  aspect-ratio: 4 / 3;
}

.photo-card.photo-tall img {
  aspect-ratio: 2 / 3;
}

.photo-card.photo-square img {
  aspect-ratio: 1 / 1;
}

.photo-card--lead img {
  aspect-ratio: 2 / 3;
}

.photo-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(18, 17, 16, 0.08);
}

.photo-card__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.photo-card__text strong {
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.08;
  font-weight: 600;
  text-wrap: balance;
}

.photo-card__index {
  flex: none;
  color: rgba(18, 17, 16, 0.38);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.photo-card--lead .photo-card__text strong {
  font-size: clamp(28px, 3.2vw, 40px);
}

.photo-card--aside .photo-card__text strong {
  font-size: clamp(18px, 2vw, 24px);
}

.photo-card--mini .photo-card__text strong {
  font-size: 16px;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.photo-lightbox__backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}

.photo-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 4vh 4vw;
  background: transparent;
  box-shadow: none;
  transform: scale(0.96);
  transition: transform var(--transition-base);
}

.photo-lightbox.is-visible .photo-lightbox__dialog {
  transform: scale(1);
}

.photo-lightbox__figure {
  margin: 0;
}

.photo-lightbox__image {
  display: block;
  width: auto;
  max-width: min(92vw, 1600px);
  max-height: 92dvh;
  margin: 0 auto;
  border-radius: 0;
  background: transparent;
  box-shadow:
    0 18px 36px rgba(18, 17, 16, 0.12),
    0 42px 96px rgba(18, 17, 16, 0.18);
}

.mobile-visit-notice-open {
  overflow: hidden;
}

.mobile-visit-notice {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.mobile-visit-notice[hidden] {
  display: none;
}

.mobile-visit-notice.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.mobile-visit-notice__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 17, 16, 0.44);
  backdrop-filter: blur(10px);
}

.mobile-visit-notice__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 247, 240, 0.96)),
    var(--color-panel-raised);
  box-shadow: 0 24px 72px rgba(18, 17, 16, 0.24);
  transform: translateY(8px) scale(0.96);
  transition: transform var(--transition-base);
}

.mobile-visit-notice.is-visible .mobile-visit-notice__dialog {
  transform: translateY(0) scale(1);
}

.mobile-visit-notice__dialog h2 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.15;
}

.mobile-visit-notice__dialog p {
  margin-bottom: 20px;
  color: var(--color-ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.mobile-visit-notice__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(18, 17, 16, 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, #1a1917 0%, #2c2418 100%);
  color: var(--color-bg);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.mobile-visit-notice__button:focus-visible {
  outline: 3px solid rgba(168, 116, 31, 0.32);
  outline-offset: 3px;
}

.about-split,
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 1.18fr);
  gap: clamp(28px, 7vw, 92px);
  align-items: start;
}

.about-split .section-heading,
.about-layout .section-heading {
  display: block;
  margin-bottom: 0;
}

#about {
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(40px, 6vw, 80px) 0;
}

#about .about-copy {
  position: relative;
  top: clamp(-34px, -2.8vw, -18px);
  align-self: center;
  max-width: 660px;
  justify-self: stretch;
  padding: 0;
}

#about .about-copy > p {
  max-width: 75%;
  margin: 0;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.82;
}

#about .about-skills {
  max-width: 520px;
  justify-self: end;
}

#about .about-skill-groups {
  display: grid;
  gap: 16px;
}

#about .about-skill-group {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

#about .about-skill-group + .about-skill-group {
  padding-top: 16px;
  border-top: 1px solid rgba(113, 88, 47, 0.12);
}

#about .about-skill-group__title {
  padding-top: 8px;
  color: var(--color-accent-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

#about .about-skills__list {
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
}

.info-board,
.contact-panel,
.contact-card {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(251, 247, 240, 0.76)),
    var(--color-panel-raised);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.info-board h3 {
  margin-top: 28px;
  font-size: 24px;
}

.info-board h3:first-child {
  margin-top: 0;
}

.about-layout--timeline {
  display: block;
}

.home-timeline {
  padding-top: clamp(16px, 3vw, 36px);
  border-top: 0;
}

.home-timeline .timeline-item:nth-child(-n + 3) {
  min-height: calc(92px + var(--weight, 1) * 14px);
  padding: 4px 0;
}

.home-timeline .timeline-item:nth-child(-n + 3) .timeline-card {
  min-height: clamp(88px, 8vw, 112px);
  padding-block: clamp(12px, 1.3vw, 16px);
}

.home-timeline .timeline-item:nth-child(-n + 3) .timeline-card h3 {
  margin-bottom: 10px;
}

.about-split > *,
.about-layout > * {
  min-width: 0;
}

.timeline-board {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.timeline {
  position: relative;
  min-width: 0;
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 0 6px;
  --timeline-track-width: 16px;
  --timeline-track-line-width: 4px;
  --timeline-focus-size: 0px;
  --timeline-current-rgb: 168, 116, 31;
  --timeline-energy: 0.18;
  --timeline-focus-y: 0px;
}

.timeline-track {
  position: absolute;
  z-index: 1;
  top: 18px;
  bottom: 18px;
  left: 50%;
  width: var(--timeline-track-width);
  overflow: visible;
  border-radius: var(--radius-pill);
  background: transparent;
  pointer-events: none;
  transform: translateX(-50%);
}

.timeline-track::before,
.timeline-track::after {
  position: absolute;
  content: "";
}

.timeline-track::before {
  inset: 0;
  background: linear-gradient(180deg, rgba(193, 154, 90, 0.3), rgba(193, 154, 90, 0.12)) center / var(--timeline-track-line-width) 100% no-repeat;
}

.timeline-track::after {
  content: none;
}

.timeline-track-fill {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 0;
  overflow: hidden;
  border-radius: inherit;
  transition: height 90ms linear;
  will-change: height;
}

.timeline-track-fill::before,
.timeline-track-fill::after {
  position: absolute;
  inset: 0;
  content: "";
}

.timeline-track-fill::before {
  background: linear-gradient(180deg, rgba(var(--timeline-current-rgb), 0.92), rgba(var(--timeline-current-rgb), 0.34)) center / var(--timeline-track-line-width) 100% no-repeat;
  box-shadow: 0 0 10px rgba(var(--timeline-current-rgb), calc(0.06 + var(--timeline-energy, 0) * 0.12));
}

.timeline-track-fill::after {
  content: none;
}

.timeline-track-loop {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  width: var(--timeline-track-line-width);
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(var(--timeline-current-rgb), 0) 0%, rgba(255, 249, 238, 0.94) 14%, rgba(var(--timeline-current-rgb), 0.88) 48%, rgba(var(--timeline-current-rgb), 0.2) 82%, rgba(var(--timeline-current-rgb), 0) 100%);
  box-shadow: 0 0 12px rgba(var(--timeline-current-rgb), 0.18);
  opacity: 0;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

.timeline-track-focus {
  display: none;
}

.timeline-track-focus.is-idle {
  opacity: 0;
}

.timeline-items {
  display: grid;
  min-width: 0;
  gap: 0;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr);
  min-width: 0;
  min-height: calc(98px + var(--weight, 1) * 18px);
  align-items: center;
  padding: 6px 0;
  --timeline-branch-edge: 66px;
  --timeline-branch-top: 30px;
  --timeline-branch-bottom: 30px;
  --timeline-instant-top: 50%;
}

.timeline-branch {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.timeline-branch-out,
.timeline-branch-run,
.timeline-branch-back {
  position: absolute;
  display: block;
  background: var(--timeline-color, var(--color-accent));
  box-shadow: 0 0 8px rgba(var(--timeline-rgb, 168, 116, 31), 0.12);
  opacity: calc(0.3 + var(--branch-progress, 0) * 0.7);
  content: "";
}

.timeline-branch-out,
.timeline-branch-back {
  height: 2px;
  width: var(--timeline-branch-edge);
  transform: scaleX(var(--branch-progress, 0));
}

.timeline-branch-out {
  top: var(--timeline-branch-top);
}

.timeline-branch-run {
  top: var(--timeline-branch-top);
  bottom: var(--timeline-branch-bottom);
  width: 2px;
  transform: scaleY(var(--branch-progress, 0));
  transform-origin: top;
}

.timeline-branch-back {
  bottom: var(--timeline-branch-bottom);
}

.timeline-item--instant .timeline-branch-out {
  top: var(--timeline-instant-top);
  transform: translateY(-50%) scaleX(var(--branch-progress, 0));
}

.timeline-item--right .timeline-branch-out,
.timeline-item--right .timeline-branch-back {
  left: 50%;
  transform-origin: left;
}

.timeline-item--right .timeline-branch-run {
  left: calc(50% + var(--timeline-branch-edge) - 1px);
}

.timeline-item--left .timeline-branch-out,
.timeline-item--left .timeline-branch-back {
  right: 50%;
  transform-origin: right;
}

.timeline-item--left .timeline-branch-run {
  right: calc(50% + var(--timeline-branch-edge) - 1px);
}

.timeline-point-dot {
  position: absolute;
  left: 50%;
  z-index: 4;
  display: block;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(252, 251, 248, 0.98);
  border-radius: 50%;
  background: var(--timeline-color, var(--color-accent));
  box-shadow: 0 0 0 4px rgba(var(--timeline-rgb, 168, 116, 31), 0.12);
  opacity: calc(0.45 + var(--branch-progress, 0) * 0.55);
}

.timeline-point-dot--start {
  top: var(--timeline-branch-top);
  transform: translate(-50%, -50%);
}

.timeline-item--instant .timeline-point-dot--start {
  top: var(--timeline-instant-top);
}

.timeline-point-dot--end {
  bottom: var(--timeline-branch-bottom);
  transform: translate(-50%, 50%);
}

.timeline-point-label {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(var(--timeline-rgb, 168, 116, 31), 0.28);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 247, 240, 0.88)),
    var(--color-panel-raised);
  color: var(--timeline-ink, var(--color-accent-ink));
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(var(--timeline-rgb, 168, 116, 31), 0.1);
  opacity: calc(0.32 + var(--branch-progress, 0) * 0.68);
}

.timeline-point-label--start {
  top: var(--timeline-branch-top);
  transform: translateY(-50%);
}

.timeline-item--instant .timeline-point-label--start {
  top: var(--timeline-instant-top);
}

.timeline-point-label--end {
  bottom: var(--timeline-branch-bottom);
  transform: translateY(50%);
}

.timeline-item--right .timeline-point-label {
  right: calc(50% + 14px);
}

.timeline-item--left .timeline-point-label {
  left: calc(50% + 14px);
}

.timeline-card {
  position: relative;
  z-index: 2;
  isolation: isolate;
  grid-column: 3;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-height: clamp(96px, 9vw, 124px);
  align-self: start;
  padding: clamp(13px, 1.5vw, 18px);
  border: 1px solid rgba(113, 88, 47, 0.13);
  border-radius: var(--radius-soft);
  background:
    linear-gradient(135deg, rgba(244, 231, 210, 0.42), transparent 46%),
    linear-gradient(180deg, #fffdf9, #fbf7f0);
  box-shadow: 0 14px 34px rgba(73, 53, 25, 0.07);
  transition: opacity var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base), background var(--transition-base);
}

.timeline-item--left .timeline-card {
  grid-column: 1;
}

.timeline-card::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.32), transparent 38%);
  content: "";
}

.timeline-card::before {
  position: absolute;
  z-index: 1;
  top: 0;
  left: clamp(16px, 2vw, 22px);
  right: clamp(16px, 2vw, 22px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--timeline-color, var(--color-accent)), transparent);
  opacity: 0;
  content: "";
  transition: opacity var(--transition-base);
}

.timeline-event--range .timeline-card::after {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 38%),
    linear-gradient(90deg, rgba(var(--timeline-rgb, 168, 116, 31), 0.16), transparent 22%);
}

.timeline-event--range .timeline-card::before {
  opacity: 0.52;
}

.timeline-event--right.timeline-event--range .timeline-card {
  border-left: 2px solid rgba(var(--timeline-rgb, 168, 116, 31), 0.24);
}

.timeline-event--left.timeline-event--range .timeline-card {
  border-right: 2px solid rgba(var(--timeline-rgb, 168, 116, 31), 0.24);
}

.timeline-card h3 {
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.timeline-card .tag-list {
  position: relative;
  z-index: 2;
  margin: 0;
  gap: 5px;
}

.timeline-card .tag-list li {
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(40, 30, 15, 0.95);
  background: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.timeline-item.is-active .timeline-card {
  border-color: rgba(var(--timeline-rgb, 168, 116, 31), 0.28);
  background:
    linear-gradient(135deg, rgba(244, 231, 210, 0.62), transparent 48%),
    linear-gradient(180deg, #fffdf9, #fbf7f0);
  box-shadow: 0 18px 44px rgba(68, 54, 34, 0.10), 0 0 0 1px rgba(var(--timeline-rgb, 168, 116, 31), 0.05);
}

.timeline-item.is-current .timeline-card {
  border-color: rgba(var(--timeline-rgb, 168, 116, 31), 0.42);
  background:
    linear-gradient(135deg, rgba(244, 231, 210, 0.76), transparent 50%),
    linear-gradient(180deg, #fffefa, #fbf7f0);
  box-shadow: 0 22px 54px rgba(68, 54, 34, 0.14), 0 0 0 1px rgba(var(--timeline-rgb, 168, 116, 31), 0.08);
}

.timeline-item.is-current .timeline-card::before {
  opacity: 1;
}

.timeline-item.is-current .timeline-card h3 {
  color: #0b0b0b;
}

.timeline--ordered .timeline-items {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr);
  grid-auto-rows: var(--timeline-rows, minmax(var(--timeline-row-height), auto));
  --timeline-row-height: 88px;
  --timeline-range-gap: calc(clamp(88px, 8vw, 112px) * 0.28);
  min-width: 0;
  gap: 18px 0;
}

.timeline-time-row {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  grid-row: var(--timeline-row);
  grid-template-columns: subgrid;
  align-items: center;
  --point-progress: 0;
}

.timeline-point-center {
  position: relative;
  z-index: 4;
  grid-column: 2;
  min-height: 100%;
}

.timeline-time-label {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(168, 116, 31, 0.22);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 247, 240, 0.88)),
    var(--color-panel-raised);
  color: var(--color-accent-ink);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(73, 53, 25, 0.08);
  opacity: var(--point-progress, 0);
  transform: translate(-50%, -50%) scale(calc(0.84 + var(--point-progress, 0) * 0.16));
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

.timeline-event {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  align-self: stretch;
  min-width: 0;
  grid-row: var(--timeline-start-row) / var(--timeline-end-row);
  --card-progress: 0;
}

.timeline-event.reveal {
  transform: none;
  transition: opacity 300ms ease;
}

.timeline-event--right {
  grid-column: 3;
}

.timeline-event--left {
  grid-column: 1;
}

.timeline-event--range {
  --timeline-lane-offset: calc(var(--timeline-lane, 0) * 16px);
}

.timeline-event-line {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: block;
  height: 100%;
  overflow: visible;
  color: var(--timeline-color, var(--color-accent));
  opacity: calc(0.34 + var(--branch-progress, 0) * 0.66);
  pointer-events: none;
}

.timeline-event--right .timeline-event-line {
  left: -66px;
  width: calc(66px + 50% - var(--timeline-lane-offset, 0px));
}

.timeline-event--left .timeline-event-line {
  right: -66px;
  width: calc(66px + 50% - var(--timeline-lane-offset, 0px));
}

.timeline-event--instant .timeline-event-line {
  width: 66px;
}

.timeline-event-line path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.timeline-event-line-mask {
  stroke: #fff;
  stroke-width: 12px;
  stroke-dasharray: var(--branch-progress, 0) 1;
  stroke-dashoffset: 0;
}

.timeline-event-line-stroke {
  stroke: currentColor;
  stroke-width: 2px;
  stroke-dasharray: var(--branch-progress, 0) 1;
  stroke-dashoffset: 0;
  transition: stroke-dasharray 90ms linear;
}

.timeline-event--range .timeline-event-line-stroke {
  stroke-width: 3px;
}

.timeline-event-line-flow {
  stroke: rgba(255, 248, 231, 0.96);
  stroke-width: 2.2px;
  stroke-dasharray: 0.14 1.2;
  stroke-dashoffset: 0;
  opacity: 0;
}

.timeline-event--range .timeline-event-line-flow {
  stroke-width: 2.8px;
}

.timeline--ordered .timeline-card {
  z-index: 3;
  width: 100%;
  min-height: calc(clamp(88px, 8vw, 112px) + var(--weight, 1) * 6px);
  align-self: center;
  padding: clamp(12px, 1.35vw, 17px);
  padding-block: calc(clamp(12px, 1.35vw, 17px) + var(--weight, 1) * 2px);
  cursor: pointer;
  opacity: var(--card-progress, 0);
  pointer-events: none;
  transition: opacity var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), transform 220ms cubic-bezier(0.215, 0.61, 0.355, 1), background var(--transition-base);
}

.timeline--ordered .timeline-card:hover {
  transform: translateY(-3px) scale(1.012);
  border-color: rgba(var(--timeline-rgb, 168, 116, 31), 0.32);
  box-shadow: 0 20px 48px rgba(68, 54, 34, 0.12), 0 0 0 1px rgba(var(--timeline-rgb, 168, 116, 31), 0.07);
}

@media (hover: none) {
  .timeline--ordered .timeline-card:hover {
    transform: none;
    border-color: rgba(113, 88, 47, 0.13);
    box-shadow: var(--shadow-card);
  }
}

.timeline-event--left .timeline-card,
.timeline-event--right .timeline-card {
  grid-column: auto;
  transform: translateY(calc(22px - var(--card-progress, 0) * 22px)) scale(calc(0.92 + var(--card-progress, 0) * 0.08));
}

.timeline-event--right .timeline-card {
  transform: translateX(calc((1 - var(--card-progress, 0)) * -26px)) translateY(calc(22px - var(--card-progress, 0) * 22px)) scale(calc(0.92 + var(--card-progress, 0) * 0.08));
}

.timeline-event--left .timeline-card {
  transform: translateX(calc((1 - var(--card-progress, 0)) * 26px)) translateY(calc(22px - var(--card-progress, 0) * 22px)) scale(calc(0.92 + var(--card-progress, 0) * 0.08));
}

.timeline-event--align-top {
  align-items: flex-start;
  padding-top: 6px;
}

.timeline-event--align-top .timeline-card {
  align-self: flex-start;
}

.timeline-event.is-active .timeline-card {
  pointer-events: auto;
  border-color: rgba(var(--timeline-rgb, 168, 116, 31), 0.28);
  background:
    linear-gradient(135deg, rgba(244, 231, 210, 0.62), transparent 48%),
    linear-gradient(180deg, #fffdf9, #fbf7f0);
  box-shadow: 0 18px 44px rgba(68, 54, 34, 0.10), 0 0 0 1px rgba(var(--timeline-rgb, 168, 116, 31), 0.05);
}

.timeline-event.is-current .timeline-card {
  border-color: rgba(var(--timeline-rgb, 168, 116, 31), 0.42);
  background:
    linear-gradient(135deg, rgba(244, 231, 210, 0.76), transparent 50%),
    linear-gradient(180deg, #fffefa, #fbf7f0);
  box-shadow: 0 22px 54px rgba(68, 54, 34, 0.14), 0 0 0 1px rgba(var(--timeline-rgb, 168, 116, 31), 0.08);
}

.timeline-event.is-current .timeline-card::before {
  opacity: 1;
}

.timeline-event.is-current .timeline-card h3 {
  color: #0b0b0b;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  margin: var(--section-space) 0;
}

.contact-panel-copy {
  min-width: 0;
}

.contact-panel-text {
  max-width: 24em;
  margin-bottom: 0;
  color: var(--color-ink-soft);
  font-size: clamp(22px, 2.5vw, 31px);
  line-height: 1.42;
  font-family: var(--font-display);
  font-weight: 600;
}

.contact-panel-actions {
  display: grid;
  justify-items: stretch;
  gap: 12px;
  align-self: center;
  padding: 18px;
  border: 1px solid rgba(113, 88, 47, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(251, 247, 240, 0.46)),
    rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.contact-panel-mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  width: fit-content;
  padding: 0 18px;
  border: 1px solid rgba(18, 17, 16, 0.92);
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #1a1917 0%, #2c2418 100%);
  color: var(--color-bg);
  box-shadow: 0 14px 32px rgba(18, 17, 16, 0.12);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.contact-panel-mail span {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.contact-panel-mail strong {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.2;
}

.contact-panel-mail strong::before {
  content: none;
}

.contact-panel-actions .contact-links {
  display: grid;
  gap: 8px;
}

.contact-panel-actions .contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(168, 116, 31, 0.16);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.contact-panel-actions .contact-links a::after {
  color: var(--color-accent-ink);
  content: "\2192";
}

.contact-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}

.contact-links a,
.footer-links a,
.contact-card a {
  min-height: 44px;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 6px;
}

.page-hero {
  max-width: 940px;
  padding: clamp(72px, 11vw, 152px) 0 clamp(48px, 7vw, 92px);
}

.contact-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 42px);
}

.contact-card {
  min-height: 250px;
}

.contact-card a {
  display: inline-flex;
  align-items: center;
  margin: 22px 0;
  font-size: 26px;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: var(--container);
  margin: var(--section-space) auto 0;
  padding: 48px 36px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-soft);
  background:
    radial-gradient(circle at bottom right, rgba(243, 229, 204, 0.56), transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(251, 247, 240, 0.72)),
    var(--color-panel-raised);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  color: var(--color-muted);
}

.site-footer strong {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0;
}

.site-footer p {
  margin: 8px 0 0;
}

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover {
    transform: translateY(-1px);
  }

  .button:hover,
  .card-link:hover,
  .text-link:hover,
  .contact-link:hover {
    transform: translateY(-2px);
  }

  .button-primary:hover {
    box-shadow: 0 18px 32px rgba(18, 17, 16, 0.16);
  }

  .button-secondary:hover,
  .card-link:hover,
  .text-link:hover,
  .contact-link:hover {
    background: rgba(243, 229, 204, 0.78);
  }

  .contact-panel-mail:hover {
    box-shadow: 0 18px 36px rgba(18, 17, 16, 0.18);
    transform: translateY(-2px);
  }

  .project-card:hover {
    background:
      radial-gradient(circle at top left, rgba(243, 229, 204, 0.9), transparent 38%),
      linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(250, 246, 240, 0.9));
    border-color: rgba(168, 116, 31, 0.24);
    box-shadow: 0 30px 88px rgba(68, 54, 34, 0.16);
    transform: translateY(-7px);
  }

  .project-card:hover .project-card__serial {
    color: rgba(18, 17, 16, 0.13);
    transform: translateY(-3px);
  }

  .project-card:hover .project-card__media-glow {
    opacity: 1;
    transform: scale(1.08);
  }

  .project-card:hover .card-link {
    border-color: var(--color-accent-strong);
    color: var(--color-accent-ink);
  }

  .project-card:hover .project-card__preview::after,
  .project-card:hover .project-card__preview--medium::after {
    opacity: 0.42;
    transform: translateX(18%) rotate(8deg);
  }

  .project-card--spotlight:hover .project-card__preview {
    border-color: rgba(168, 116, 31, 0.24);
    box-shadow:
      0 32px 74px rgba(68, 54, 34, 0.18),
      0 12px 22px rgba(68, 54, 34, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: perspective(1400px) rotateY(-2deg) rotateX(1deg) translateY(-6px) scale(1.012);
  }

  .project-card--spotlight-reverse:hover .project-card__preview {
    transform: perspective(1400px) rotateY(2deg) rotateX(1deg) translateY(-6px) scale(1.012);
  }

  .project-card--spotlight:hover .project-card__preview img {
    filter: saturate(1.02) contrast(1.04) brightness(1);
    transform: scale(1.035);
  }

  .project-card--medium:hover .project-card__preview--medium {
    border-color: rgba(168, 116, 31, 0.24);
    box-shadow:
      0 32px 74px rgba(68, 54, 34, 0.18),
      0 12px 22px rgba(68, 54, 34, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: perspective(1400px) rotateY(5deg) rotateX(1deg) translateY(-7px) scale(1.025);
  }

  .project-card--medium:hover .project-card__medium-media::after {
    opacity: 0.62;
    transform: translateX(10px) scale(1.04);
  }

  .project-card--medium:hover .project-card__preview--medium img {
    filter: saturate(1.02) contrast(1.04) brightness(1);
    transform: scale(1.035);
  }

  .project-modal__close:hover {
    border-color: rgba(113, 88, 47, 0.24);
    background: rgba(255, 255, 255, 0.96);
    color: rgba(18, 17, 16, 0.82);
    box-shadow: 0 16px 34px rgba(68, 54, 34, 0.14);
    transform: translateY(-1px);
  }

  .photo-card:hover img {
    border-color: rgba(168, 116, 31, 0.3);
    box-shadow: 0 24px 58px rgba(68, 54, 34, 0.14);
    transform: translateY(-4px) scale(1.01);
  }

}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 300ms ease, transform 300ms ease;
  transition-delay: var(--delay, 0ms);
}

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

@media (max-width: 920px) {
  :root {
    --container: min(100% - 28px, 760px);
  }

  .timeline {
    --timeline-track-width: 16px;
    --timeline-track-line-width: 4px;
    --timeline-focus-size: 0px;
  }

  h1 {
    font-size: 64px;
  }

  h2 {
    font-size: 46px;
  }

  h3 {
    font-size: 30px;
  }

  .site-header,
  .hero,
  .section-heading,
  .about-split,
  .about-layout,
  .about-layout--timeline,
  .contact-panel,
  .contact-page {
    grid-template-columns: 1fr;
  }

  .content-section,
  .about-split,
  .about-layout,
  .contact-page {
    padding: clamp(36px, 8vw, 64px) 0;
  }

  #about {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  #about .about-copy,
  #about .about-skills {
    max-width: none;
    justify-self: stretch;
  }

  #about .about-copy {
    top: 0;
    align-self: stretch;
  }

  #about .about-copy > p {
    max-width: none;
  }

  #about .about-skill-group {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #about .about-skill-group__title {
    padding-top: 0;
  }

  #about .about-skills__list {
    gap: 8px;
  }

  .site-header {
    align-items: flex-start;
    border-radius: 20px;
  }

  .project-grid {
    gap: 24px;
  }

  .project-deck {
    grid-template-columns: 1fr;
  }

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

  .project-card--spotlight {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 24px;
  }

  .project-card--spotlight-reverse {
    grid-template-columns: 1fr;
  }

  .project-card--spotlight-reverse .project-card__media {
    order: 0;
  }

  .project-card--spotlight .project-card__copy {
    max-width: none;
  }

  .project-card--spotlight .project-card__serial {
    top: 18px;
    right: 18px;
  }

  .project-card--medium {
    min-height: 0;
  }

  .project-card__serial {
    top: 22px;
    right: 24px;
    font-size: clamp(42px, 9vw, 66px);
  }

  .project-card__preview,
  .project-card--spotlight-reverse .project-card__preview,
  .project-card__preview--medium {
    transform: none;
  }

  .project-modal {
    padding: 18px;
  }

  .project-modal__dialog {
    width: 100%;
    max-height: min(90dvh, 980px);
  }

  .project-modal__header {
    flex-direction: column;
    gap: 12px;
  }

  .project-modal__video-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .photo-stage {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .photo-stage__column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 0;
  }

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

  .gallery-section::after {
    right: -12vw;
    width: min(62vw, 440px);
    height: 240px;
  }

  .site-footer {
    flex-direction: column;
  }

  .contact-panel {
    gap: 22px;
  }

  .contact-panel-text {
    max-width: 100%;
  }

  .contact-panel-actions {
    max-width: 360px;
  }

  .timeline {
    max-width: min(100%, 760px);
    margin: 0 auto;
    padding: 14px 0 6px;
  }

  .timeline-track {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-items {
    grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
    grid-auto-rows: minmax(82px, auto);
    --timeline-row-height: 82px;
    gap: 14px 0;
  }

  .timeline-item,
  .timeline-item--left,
  .timeline-item--right {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
    min-height: calc(96px + var(--weight, 1) * 17px);
    padding: 6px 0;
    --timeline-branch-edge: 46px;
    --timeline-branch-top: 28px;
    --timeline-branch-bottom: 28px;
  }

  .timeline-point-label {
    font-size: 10px;
    min-height: 22px;
    padding: 4px 7px;
  }

  .timeline-time-label {
    min-height: 26px;
    padding: 5px 9px;
    font-size: 12px;
  }

  .timeline-branch {
    display: block;
  }

  .timeline-event--range {
    --timeline-lane-offset: calc(var(--timeline-lane, 0) * 12px);
  }

  .timeline-event--right .timeline-event-line {
    left: -46px;
    width: calc(46px + 50% - var(--timeline-lane-offset, 0px));
  }

  .timeline-event--left .timeline-event-line {
    right: -46px;
    width: calc(46px + 50% - var(--timeline-lane-offset, 0px));
  }

  .timeline-event--instant .timeline-event-line {
    width: 46px;
  }

  .timeline-card,
  .timeline-item--left .timeline-card,
  .timeline-item--right .timeline-card {
    opacity: var(--card-progress, 0);
  }

  .timeline-card,
  .timeline-item--right .timeline-card {
    grid-column: 3;
  }

  .timeline-item--left .timeline-card {
    grid-column: 1;
  }

  .timeline-branch-out,
  .timeline-branch-back {
    width: var(--timeline-branch-edge);
  }
}

@media (max-width: 620px) {
  .timeline {
    --timeline-track-width: 14px;
    --timeline-track-line-width: 3.5px;
    --timeline-focus-size: 0px;
  }

  body {
    font-size: 16px;
  }

  body::before {
    background:
      url("data:image/svg+xml,%3Csvg width='760' height='760' viewBox='0 0 760 760' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23a8741f' stroke-linecap='round'%3E%3Cpath d='M380 380 C408 355 452 365 468 402 C490 454 433 514 359 492 C269 466 236 354 306 277 C390 184 552 223 604 351 C668 510 522 679 333 641 C105 596 30 327 190 162 C375 -29 706 49 818 302' stroke-opacity='.16' stroke-width='1.4'/%3E%3Cpath d='M380 380 C360 398 326 388 314 360 C298 321 340 277 395 292 C462 311 488 394 437 452 C375 522 254 493 215 397 C167 278 276 153 418 181' stroke-opacity='.1' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E") right -260px top 130px / 580px auto no-repeat,
      url("data:image/svg+xml,%3Csvg width='640' height='640' viewBox='0 0 640 640' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%230b0b0b' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M320 94 L516 207 L516 433 L320 546 L124 433 L124 207 Z' stroke-opacity='.07' stroke-width='1.2'/%3E%3Cpath d='M320 94 V546 M124 207 L516 433 M516 207 L124 433' stroke-opacity='.06' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E") left -300px top 680px / 520px auto no-repeat;
  }

  .site-header {
    flex-direction: column;
    position: static;
    gap: 10px;
    padding: 14px 16px;
    margin-top: 12px;
    border-radius: 18px;
  }

  .brand,
  .site-nav {
    width: 100%;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 4px;
  }

  .site-nav a {
    padding-inline: 8px;
  }

  h1 {
    max-width: none;
    font-size: 42px;
    line-height: 1.12;
    letter-spacing: 0;
    word-break: keep-all;
  }

  h2 {
    font-size: 34px;
  }

  h3 {
    font-size: 26px;
  }

  .hero-note strong {
    font-size: 40px;
  }

  .contact-card a {
    font-size: 20px;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hero--latin {
    gap: 28px;
  }

  .hero-title--latin {
    max-width: none;
    font-size: clamp(32px, 11vw, 54px);
    line-height: 0.98;
    letter-spacing: -0.05em;
  }

  .hero-title-line {
    white-space: normal;
  }

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

  .hero-copy {
    padding-left: 18px;
    padding-right: 6px;
  }

  .hero-copy::after {
    height: 104px;
  }

  .hero-note {
    min-height: 144px;
    padding: 28px 22px 28px 44px;
  }

  .hero--latin .hero-note {
    justify-self: stretch;
    width: 100%;
  }

  .hero-note::before {
    left: 16px;
  }

  .gallery-section::after {
    content: none;
  }

  .project-card .card-link,
  .text-link,
  .contact-link {
    width: 100%;
  }

  .project-card--spotlight,
  .project-card--medium,
  .project-card--compact {
    padding: 18px;
  }

  .project-card__lead {
    margin: 16px 0 18px;
    font-size: 16px;
    line-height: 1.58;
  }

  .project-shelf {
    grid-template-columns: 1fr;
  }

  .project-card--spotlight h3 {
    max-width: none;
    font-size: 32px;
    line-height: 0.98;
  }

  .project-card--medium h3 {
    font-size: 28px;
  }

  .project-card--medium {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .project-card--medium .project-card__copy {
    padding: 0;
  }

  .project-card__medium-media {
    min-height: 0;
    margin-bottom: 18px;
  }

  .project-card--compact h3 {
    max-width: none;
    font-size: 24px;
  }

  .project-card__preview {
    border-radius: 18px;
    aspect-ratio: 16 / 9;
  }

  .project-card__preview--medium {
    width: 100%;
    max-width: 360px;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .project-card__serial {
    top: 18px;
    right: 18px;
    font-size: 34px;
  }

  .project-card--medium .project-card__serial {
    top: 24px;
    right: 24px;
    font-size: 32px;
  }

  .project-modal {
    padding: 12px;
    place-items: start center;
  }

  .project-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - 24px);
    border-radius: 14px;
  }

  .project-modal__scroll {
    padding: 22px 18px;
  }

  .project-modal__toolbar {
    top: 14px;
    right: 14px;
  }

  .project-modal__close {
    width: 48px;
    height: 48px;
  }

  .project-modal__title {
    font-size: 30px;
    line-height: 1.1;
  }

  .project-modal__prose,
  .project-modal__shot figcaption p {
    font-size: 15px;
    line-height: 1.76;
  }

  .project-modal__divider {
    margin: 20px 0;
  }

  .project-modal__video-frame {
    border-radius: 10px;
  }

  .project-modal__shot img {
    border-radius: 8px;
  }

  .project-modal__shot--split {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }

  .project-modal__shot--split figcaption {
    gap: 8px;
    padding-top: 10px;
  }

  .photo-intro__eyebrow {
    letter-spacing: 0.08em;
  }

  .photo-intro h2 {
    white-space: normal;
  }

  .photo-stage__column,
  .photo-strip {
    grid-template-columns: 1fr;
  }

  .photo-card figcaption,
  .contact-links,
  .footer-links {
    flex-direction: column;
    gap: 4px;
  }

  .photo-card__text strong {
    font-size: 15px;
  }

  .photo-card--lead .photo-card__text strong {
    font-size: 24px;
  }

  .photo-lightbox {
    padding: 0;
  }

  .photo-lightbox__dialog {
    width: 100%;
    height: 100%;
    padding: 18px;
  }

  .photo-lightbox__image {
    max-width: 100%;
    max-height: calc(100dvh - 36px);
  }

  .mobile-visit-notice {
    padding: max(16px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  }

  .mobile-visit-notice__dialog {
    padding: 22px;
  }

  .mobile-visit-notice__dialog h2 {
    font-size: 22px;
  }

  .timeline {
    max-width: 100%;
    padding: 12px 0 6px;
  }

  .timeline-track {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline--ordered .timeline-items {
    grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
    grid-auto-rows: var(--timeline-rows, minmax(var(--timeline-row-height), auto));
    --timeline-row-height: 76px;
    --timeline-range-gap: calc(clamp(88px, 8vw, 112px) * 0.22);
    gap: 12px 0;
  }

  .timeline-time-row {
    grid-template-columns: subgrid;
  }

  .timeline-point-center {
    grid-column: 2;
  }

  .timeline-time-label {
    left: 50%;
    min-height: 24px;
    padding: 4px 7px;
    font-size: 9px;
    transform: translate(-50%, -50%) scale(calc(0.84 + var(--point-progress, 0) * 0.16));
  }

  .timeline-point-dot {
    left: 50%;
    width: 8px;
    height: 8px;
    box-shadow: 0 0 0 3px rgba(var(--timeline-rgb, 168, 116, 31), 0.1);
  }

  .timeline-point-label {
    min-height: 20px;
    padding: 3px 5px;
    font-size: 7px;
    box-shadow: 0 8px 18px rgba(var(--timeline-rgb, 168, 116, 31), 0.1);
  }

  .timeline-event--left {
    grid-column: 1;
  }

  .timeline-event--right {
    grid-column: 3;
  }

  .timeline-event--left .timeline-card,
  .timeline-event--right .timeline-card,
  .timeline--ordered .timeline-card {
    grid-column: auto;
    width: 100%;
    min-height: 0;
    padding: 10px 9px;
    border-radius: 16px;
  }

  .timeline-event--right .timeline-event-line {
    left: -38px;
    right: auto;
    width: calc(38px + 50% - var(--timeline-lane-offset, 0px));
  }

  .timeline-event--left .timeline-event-line {
    right: -38px;
    left: auto;
    width: calc(38px + 50% - var(--timeline-lane-offset, 0px));
  }

  .timeline-event--instant .timeline-event-line {
    width: 38px;
  }

  .timeline-card h3 {
    margin-bottom: 9px;
    font-size: 19px;
  }

  .timeline-card .tag-list {
    gap: 4px;
  }

  .timeline-card .tag-list li {
    padding: 5px 8px;
    font-size: 11px;
  }
}

/* ---------- copy-email toast ---------- */
.copy-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #1a1917 0%, #2c2418 100%);
  color: var(--color-bg);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 32px rgba(18, 17, 16, 0.18);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 280ms ease, transform 280ms ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@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 {
    opacity: 1;
    transform: none;
  }

  .timeline-track-fill {
    transition: none;
  }

  .timeline-track-fill::after {
    animation: none;
    opacity: 0;
  }

  .timeline-track-focus {
    transition: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
  }

  .timeline-track-loop {
    opacity: 0 !important;
    box-shadow: none;
  }

  .timeline-time-label,
  .timeline--ordered .timeline-card {
    transition: none;
  }

  .timeline-event-line-stroke {
    transition: none;
  }

  .timeline-event-line-flow {
    animation: none;
    opacity: 0;
  }

  .timeline-event--right .timeline-card,
  .timeline-event--left .timeline-card,
  .timeline-item.is-active .timeline-card {
    transform: none;
  }

  .project-modal__dialog {
    transform: none;
  }

  .mobile-visit-notice,
  .mobile-visit-notice__dialog,
  .mobile-visit-notice__button {
    transition: none;
  }

}
