/* —— Tokens —— */
:root {
  --bg: #f7f6f3;
  --canvas-bg: #e6e4df;
  --canvas-dot: rgba(42, 40, 37, 0.11);
  --canvas-dot-fine: rgba(42, 40, 37, 0.06);
  --bg-elevated: #fff;
  --ink: #111111;
  --ink-muted: #4a4a46;
  --ink-soft: #6f6f6a;
  --line: #e0ddd6;
  --accent: #1b4d4a;
  --accent-soft: rgba(27, 77, 74, 0.12);
  --footer-bg: var(--accent);
  --footer-text: #e8e6e1;
  --footer-muted: rgba(153, 189, 186, 1);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --content-max: 1120px;
  --shell-padding-x: 80px;
  /* Horizontal inset for header / sections / footer (not the shell — ticker stays full-bleed) */
  --section-padding-x: var(--shell-padding-x);
  --shell-radius: 24px;
  --shell-radius-bottom: 16px;
  --radius: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 80px var(--space-md);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--canvas-bg);
  background-image: radial-gradient(
      circle at center,
      var(--canvas-dot) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at center,
      var(--canvas-dot-fine) 0.65px,
      transparent 0.65px
    );
  background-size: 24px 24px, 8px 8px;
  background-position: 0 0, 4px 4px;
  -webkit-font-smoothing: antialiased;
  border-radius: 8px;
}

@media (max-width: 640px) {
  :root {
    --section-padding-x: 1.25rem;
  }

  body {
    padding: 0;
    background-color: #ffffff;
    background-image: none;
  }
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: var(--space-sm) var(--space-md);
  background: var(--accent);
  color: var(--bg-elevated);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: var(--space-sm);
  top: var(--space-sm);
  z-index: 100050;
}

/* —— Initial page load (editorial shell card) —— */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100040;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  box-sizing: border-box;
  background-color: var(--canvas-bg);
  background-image: radial-gradient(
      circle at center,
      var(--canvas-dot) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at center,
      var(--canvas-dot-fine) 0.65px,
      transparent 0.65px
    );
  background-size: 24px 24px, 8px 8px;
  background-position: 0 0, 4px 4px;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}

.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__card {
  width: min(20rem, 100%);
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 8px 28px rgba(17, 17, 17, 0.1);
}

.page-loader__track {
  position: relative;
  height: 4px;
  margin: 0 0 var(--space-md);
  overflow: hidden;
  border-radius: 999px;
  background: var(--accent-soft);
}

.page-loader__bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 42%;
  border-radius: 999px;
  background: var(--accent);
  animation: page-loader-slide 1.15s ease-in-out infinite;
}

.page-loader__label {
  margin: 0;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@keyframes page-loader-slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(320%);
  }
}

@media (max-width: 640px) {
  .page-loader {
    background-color: #ffffff;
    background-image: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader__bar {
    animation: none;
    left: 50%;
    width: 36%;
    transform: translateX(-50%);
  }
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.meta {
  color: var(--ink-soft);
}

/* —— Header —— */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin: 0;
  padding: var(--space-md) var(--section-padding-x) var(--space-sm);
  border-bottom: 1px solid var(--line);
}

/* Wordmark (asset: logo-dark on light header) */
.site-header__brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.site-header__brand-img {
  display: block;
  max-height: 24px;
  width: auto;
  max-width: 100%;
}

.site-header__brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-header__menu-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.site-header__menu-toggle:hover {
  background: var(--bg);
}

.site-header__menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-header__menu-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 1.125rem;
}

.site-header__menu-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header--menu-open .site-header__menu-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header--menu-open .site-header__menu-toggle-line:nth-child(2) {
  opacity: 0;
}

.site-header--menu-open .site-header__menu-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .site-header__menu-toggle-line {
    transition: none;
  }
}

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1.25rem;
  margin-left: auto;
  text-align: right;
}

.site-header__nav-link {
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-header__nav-link:hover,
.site-header__nav-link:focus-visible {
  color: var(--ink);
}

.site-header__nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--bg-elevated);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  border: 1px solid transparent;
}

.site-header__nav-cta:hover {
  filter: brightness(1.08);
  color: var(--bg-elevated);
}

.site-header__nav-cta:focus-visible {
  filter: brightness(1.08);
  color: var(--bg-elevated);
  outline: 2px solid var(--bg-elevated);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .site-header {
    flex-wrap: wrap;
    align-items: center;
  }

  .site-header__menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-header__nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    margin-left: 0;
    margin-top: 0.75rem;
    padding-top: 1rem;
    text-align: left;
    gap: 0.625rem;
    border-top: 1px solid var(--line);
  }

  .site-header__nav-link,
  .site-header__nav-cta {
    justify-content: center;
    text-align: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .site-header--menu-open .site-header__nav {
    display: flex;
  }
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 641px) {
  body.nav-open {
    overflow: visible;
  }
}

/* —— Main content shell —— */
.content-container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 5rem;
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(17, 17, 17, 0.07), 0 1px 3px rgba(17, 17, 17, 0.05);
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .content-container {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-bottom: 1.75rem;
    border-radius: 0;
    box-shadow: none;
  }
}

.content-container .section {
  max-width: none;
}

/* —— Sections —— */
.section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-xl) var(--section-padding-x);
}

.section-label {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-label--on-dark {
  color: var(--footer-text);
}

.footer .section-label {
  margin-bottom: 2.75rem;
}

/* —— Hero —— */
.hero {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-md);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 400px);
  gap: var(--space-xl);
  align-items: stretch;
  min-height: min(58vh, 520px);
}

.hero__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  min-height: 0;
}

.hero__title {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero__title-dot {
  color: var(--accent);
}

.hero__role {
  margin: 0 0 var(--space-md);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.hero__lede {
  margin: 0 0 var(--space-md);
  max-width: 36ch;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.text-link {
  display: inline-block;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.text-link:hover {
  text-decoration-thickness: 2px;
}

.text-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.hero__photo-wrap {
  position: relative;
  margin: 0;
  justify-self: end;
  align-self: stretch;
  width: 100%;
  max-width: 400px;
  min-height: 0;
}

.hero__photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 2px;
  border: 0;
  filter: grayscale(100%) contrast(1.05);
  box-shadow: 0 24px 48px rgba(17, 17, 17, 0.06);
  transition: filter 0.5s ease;
}

.hero__photo-wrap:hover .hero__photo {
  filter: none;
}

.hero__mobile-badge {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__photo {
    transition: none;
  }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    min-height: 0;
  }

  .hero__copy {
    order: 0;
  }

  .hero__photo-wrap {
    justify-self: stretch;
    width: 100%;
    max-width: none;
    order: 1;
    aspect-ratio: 3 / 4;
    max-height: min(58vh, 500px);
    min-height: 360px;
    height: auto;
  }

  .hero__photo {
    min-height: 0;
    height: 100%;
    max-height: none;
    object-position: center 10%;
  }
}

/* Same breakpoint as work cards: badge on photo (replaces cursor pill on touch) */
@media (max-width: 768px) {
  .hero__mobile-badge {
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 1.5rem);
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    z-index: 2;
    padding: 0.45rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(17, 17, 17, 0.1);
    pointer-events: none;
    animation: hero-badge-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
  }
}

/* Mobile: let the portrait use its natural height so the full image shows */
@media (max-width: 640px) {
  .hero__photo-wrap {
    aspect-ratio: auto;
    max-height: none;
    min-height: 0;
    align-self: start;
  }

  .hero__photo {
    height: auto;
    width: 100%;
    max-height: none;
    min-height: 0;
    object-fit: contain;
    object-position: center center;
  }
}

@keyframes hero-badge-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__mobile-badge {
    animation: none;
  }
}

/* —— Custom cursor (pointer fine, no reduced motion) —— */
.cursor-dot,
.cursor-badge,
.cursor-path-logo {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 10000;
  will-change: transform;
}

.cursor-dot {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: #111;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  opacity: 0;
  transition:
    opacity 0.15s ease,
    width 0.22s ease,
    height 0.22s ease,
    border-radius 0.22s ease,
    padding 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cursor-dot__inner {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.cursor-dot__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.cursor-dot__arrow {
  font-size: 0.9rem;
  line-height: 1;
  color: var(--ink);
  opacity: 0.85;
}

html.has-custom-cursor .cursor-dot {
  opacity: 1;
}

html.has-custom-cursor .cursor-dot.is-expanded {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 10.75rem;
  height: 2.75rem;
  padding: 0 1.125rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(17, 17, 17, 0.12);
  border: 1px solid var(--line);
  overflow: visible;
}

html.has-custom-cursor .cursor-dot.is-expanded .cursor-dot__inner {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

html.has-custom-cursor .cursor-dot.is-suppressed {
  opacity: 0;
}

/* Career path: logo follows pointer (fine pointer only; see main.js) */
.cursor-path-logo {
  width: min(400px, 92vmin);
  height: min(400px, 92vmin);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 2px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(17, 17, 17, 0.14);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.cursor-path-logo.is-visible {
  opacity: 1;
}

.cursor-path-logo__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 2px;
}

.cursor-badge {
  padding: 0.45rem 0.85rem;
  max-width: 16rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink);
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(17, 17, 17, 0.12);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cursor-badge.is-visible {
  opacity: 1;
}

html.keyboard-nav.has-custom-cursor .cursor-dot,
html.keyboard-nav.has-custom-cursor .cursor-badge,
html.keyboard-nav.has-custom-cursor .cursor-path-logo {
  opacity: 0 !important;
}

@media (pointer: coarse) {
  .cursor-dot,
  .cursor-badge,
  .cursor-path-logo {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-dot,
  .cursor-badge,
  .cursor-path-logo {
    display: none !important;
  }
}

html.has-custom-cursor body {
  cursor: none;
}

html.has-custom-cursor .skip-link:focus-visible {
  cursor: pointer;
}

html.keyboard-nav body {
  cursor: auto;
}

/* —— Ticker (full width of white shell; padding lives on .section, not .content-container) —— */
#ticker-root {
  width: 100%;
}

.ticker {
  width: 100%;
  overflow: hidden;
  background: var(--accent);
  color: var(--bg-elevated);
  padding: var(--space-sm) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ticker__track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: ticker 40s linear infinite;
}

.ticker__group {
  --ticker-gap: 56px;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--ticker-gap);
  /* Match seam (end of copy → start of duplicate) to in-row skill spacing; keeps translateX(-50%) loop aligned */
  padding-right: var(--ticker-gap);
}

.ticker__skill {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__icon {
  display: flex;
  flex-shrink: 0;
  opacity: 0.92;
}

.ticker__icon svg {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .ticker__group:last-child {
    display: none;
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* —— Work (case-study rows: text left, image right, hairline dividers) —— */
.work {
  padding-bottom: var(--space-lg);
}

.work__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  margin-bottom: var(--space-lg);
}

.work__header .section-label {
  margin-bottom: 0;
}

.work__view-all {
  flex-shrink: 0;
}

.work__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.work-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: stretch;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.work-card:last-child {
  border-bottom: none;
}

.work-card:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.work-card__link {
  display: contents;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(27, 77, 74, 0.12);
}

.work-card__mobile-cta {
  display: none;
}

.work-card__mobile-cta--on-visual {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(17, 17, 17, 0.12);
  pointer-events: none;
}

.work-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  min-height: 0;
  gap: var(--space-lg);
}

.work-card__body-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.work-card__stat {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.work-card__stat-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-card__stat-icon-inner {
  display: block;
  font-size: 1.125rem;
  line-height: 1;
  font-weight: 600;
  transform: translateY(-1px);
}

.work-card__stat-text {
  min-width: 0;
}

.work-card__stat-value {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}

.work-card__stat-label {
  margin: 0.35rem 0 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-muted);
}

.work-card__visual {
  aspect-ratio: 16 / 10;
  border-radius: 0;
  background: var(--bg-elevated);
  border: none;
  position: relative;
  overflow: hidden;
  align-self: stretch;
}

.work-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background: linear-gradient(135deg, var(--accent-soft), transparent 60%);
  pointer-events: none;
}

.work-card__visual--gm {
  background: linear-gradient(160deg, #1a2f2e 0%, #2d4a48 45%, var(--bg-elevated) 100%);
}

.work-card__visual--giv {
  background: linear-gradient(160deg, #2c2520 0%, #4a3f38 50%, var(--bg-elevated) 100%);
}

.work-card__visual--octar {
  background: linear-gradient(160deg, #1e2a3d 0%, #354a5c 50%, var(--bg-elevated) 100%);
}

.work-card__visual--photo {
  padding: 0;
  background: var(--bg-elevated);
}

.work-card__visual--photo::after {
  display: none;
}

.work-card__visual--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.work-card__meta {
  margin: 0.75rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.45;
}

.work-card__desc {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  max-width: 42ch;
}

.pill-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.pill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

@media (max-width: 768px) {
  /* display:contents breaks touch hit-testing on many mobile browsers — use a real flex box */
  .work-card {
    display: block;
    grid-template-columns: unset;
    gap: 0;
    padding: var(--space-xl) 0;
  }

  .work-card__link {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    width: 100%;
    min-height: 0;
    touch-action: manipulation;
  }

  .work-card__visual {
    order: -1;
  }

  .work-card__body {
    justify-content: flex-start;
    gap: var(--space-md);
  }

  .work-card__mobile-cta--on-visual {
    display: inline-flex;
  }

  html.js .work-card:not(.work-card--visible) {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }

  html.js .work-card {
    transition:
      opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
  }

  html.js .work-card.work-card--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  @media (max-width: 768px) {
    html.js .work-card:not(.work-card--visible) {
      opacity: 1;
      transform: none;
    }

    html.js .work-card {
      transition: none;
    }
  }
}

/* —— Path: editorial rail (spine + dots), matches work list borders & pill language —— */
.path {
  padding-top: var(--space-lg);
}

.path__track {
  position: relative;
}

.path__title {
  margin: 0 0 var(--space-lg);
  position: relative;
  z-index: 1;
}

.path__list-wrap {
  position: relative;
}

.timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Vertical spine — same dashed language as the old path, now a reading rail */
.timeline__list::before {
  content: "";
  position: absolute;
  left: 0.6875rem;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 2px dashed var(--line);
  pointer-events: none;
  z-index: 0;
}

.timeline__item {
  display: grid;
  grid-template-columns: 1.375rem minmax(0, 1fr);
  gap: var(--space-md);
  align-items: start;
  padding: clamp(1.25rem, 3vw, 2rem) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.timeline__item:last-child {
  border-bottom: none;
}

.timeline__axis {
  position: relative;
  width: 100%;
  min-height: 2.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.15rem;
}

.timeline__dot {
  display: block;
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--bg-elevated);
  z-index: 2;
}

.timeline__item--current .timeline__dot {
  background: var(--accent);
}

.timeline__body {
  min-width: 0;
}

.timeline__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

/* Index chip — same vocabulary as .pill */
.timeline__idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.timeline__year {
  color: var(--accent);
  font-size: 0.75rem;
}

.timeline__org {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.timeline__role {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: var(--space-xs);
  line-height: 1.45;
}

.timeline__range {
  display: block;
  color: var(--ink-soft);
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
}

@media (max-width: 640px) {
  .timeline__list::before {
    left: 0.5625rem;
  }

  .timeline__item {
    grid-template-columns: 1.125rem minmax(0, 1fr);
    gap: var(--space-sm);
    padding: var(--space-md) 0;
  }

  .timeline__axis {
    min-height: 2.25rem;
  }
}

/* —— About —— */
.about__grid {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 280px);
  gap: var(--space-xl);
  align-items: start;
}

.about__text p {
  margin: 0 0 var(--space-md);
  color: var(--ink-muted);
  max-width: 52ch;
}

.about__text p:last-child {
  margin-bottom: 0;
}

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

.about__aside {
  padding: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

@media (max-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
}

/* —— Footer —— */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 0;
}

.footer__container {
  box-sizing: border-box;
  width: 100%;
  padding-left: var(--shell-padding-x);
  padding-right: var(--shell-padding-x);
}

@media (max-width: 640px) {
  .footer__container {
    padding-left: var(--section-padding-x);
    padding-right: var(--section-padding-x);
  }
}

#contact {
  margin-left: 80px;
  margin-right: 80px;
  padding-left: 2px;
  padding-right: 2px;
  border-radius: 2px;
}

@media (max-width: 640px) {
  #contact {
    margin-left: 20px;
    margin-right: 20px;
  }
}

#footer-root {
  border-radius: 24px;
}

.footer__inner {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
  padding-left: 0;
  padding-right: 0;
  border-radius: 24px;
}

.footer__brand {
  display: block;
  margin-bottom: 1.75rem;
  line-height: 0;
  text-decoration: none;
}

.footer__brand-img {
  display: block;
  max-height: 24px;
  width: auto;
  max-width: 100%;
}

.footer__brand:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 4px;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 3.5rem);
  row-gap: 2.5rem;
  margin-bottom: 2.75rem;
}

.footer__form {
  margin: 0 0 2.75rem;
  max-width: 32rem;
}

.footer__form-title {
  margin: 0 0 1.25rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--footer-muted);
}

.footer__form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.footer__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
}

.footer__field--full {
  grid-column: 1 / -1;
}

.footer__field-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--footer-muted);
}

.footer__field input,
.footer__field textarea {
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.85rem;
  box-sizing: border-box;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--footer-text);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.footer__field textarea {
  min-height: 7rem;
  resize: vertical;
}

.footer__field input::placeholder,
.footer__field textarea::placeholder {
  color: rgba(232, 230, 225, 0.35);
}

.footer__field input:hover,
.footer__field textarea:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.footer__field input:focus-visible,
.footer__field textarea:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
  border-color: rgba(255, 255, 255, 0.35);
}

.footer__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--footer-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    filter 0.15s ease,
    transform 0.12s ease;
}

.footer__submit:hover {
  filter: brightness(1.05);
}

.footer__submit:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.footer__form-status {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

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

@media (max-width: 640px) {
  .footer__form-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .footer__links {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }
}

.footer__link {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0;
  color: inherit;
  text-decoration: none;
  border-bottom: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.footer__link:hover {
  opacity: 0.92;
}

.footer__link:hover .footer__link-value {
  color: var(--footer-text);
}

.footer__link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 4px;
}

.footer__link-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--footer-muted);
  margin-bottom: 0.1rem;
}

.footer__link-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
}

.footer__link-value {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  word-break: break-word;
  flex: 1;
  color: rgba(232, 230, 225, 0.98);
}

.footer__arrow {
  flex-shrink: 0;
  font-size: 1rem;
  opacity: 0.5;
}

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: 1.75rem 0 0.25rem;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--footer-muted);
  font-size: 0.75rem;
}

.footer__thanks {
  color: rgba(255, 255, 255, 1);
  letter-spacing: 0.12em;
}
