:root {
  --paper: #fdfdfc;
  --outside: #efefec;
  --ink: #262624;
  --soft-ink: #72726e;
  --line: #b9b9b3;
  --light-line: #dfdfda;
  --accent: #9a2944;
  --accent-soft: rgb(154 41 68 / 9%);
  --surface-hover: #f5f5f2;
  --hand: "Caveat", "Segoe Print", cursive;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --mono: "DM Mono", "Courier New", monospace;
  --rail: clamp(24px, 5.2vw, 82px);
  --divider-gap: 64px;
  --content: min(1120px, calc(100vw - (var(--rail) * 2) - 48px));
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #151514;
  --outside: #10100f;
  --ink: #f0f0ec;
  --soft-ink: #b5b5af;
  --line: #464641;
  --light-line: #30302d;
  --accent: #cd4668;
  --accent-soft: rgb(205 70 104 / 14%);
  --surface-hover: #20201e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  transform: translateY(-150%);
}

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

.page-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: var(--paper);
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  pointer-events: none;
}

.page-shell::before {
  left: calc(var(--rail) - 1px);
}

.page-shell::after {
  right: calc(var(--rail) - 1px);
}

.particle-field {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-shell > main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: relative;
  z-index: 20;
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-inline: clamp(32px, 9vw, 150px);
}

.site-nav a {
  position: relative;
  color: var(--soft-ink);
  font-family: var(--hand);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

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

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-right: calc(var(--rail) + clamp(18px, 2vw, 32px));
  margin-left: auto;
}

.nav-control {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--soft-ink);
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.nav-control:hover,
.nav-control:focus-visible {
  border-color: var(--accent);
  background: var(--surface-hover);
  color: var(--ink);
}

.theme-icon {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.icon-moon {
  display: none;
}

html[data-theme="dark"] .icon-sun {
  display: none;
}

html[data-theme="dark"] .icon-moon {
  display: block;
}

.language-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  min-height: clamp(680px, calc(100svh - 64px), 920px);
  display: grid;
  align-items: center;
  margin-bottom: var(--divider-gap);
  padding: clamp(80px, 11vh, 130px) calc(var(--rail) + clamp(34px, 6.5vw, 110px));
}

.hero-copy {
  width: min(980px, 100%);
}

.hero-role {
  margin: 0 0 clamp(22px, 3vw, 38px);
  color: var(--soft-ink);
  font-family: var(--hand);
  font-size: clamp(25px, 2.35vw, 38px);
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1.1;
}

.hero h1 {
  max-width: 1000px;
  margin: 0;
  color: var(--ink);
  font-family: var(--hand);
  font-size: clamp(70px, 9.3vw, 140px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.9;
  text-wrap: balance;
}

.hero-intro {
  max-width: 720px;
  margin: clamp(28px, 3.5vw, 46px) 0 0;
  color: var(--soft-ink);
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 400;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: clamp(38px, 5vw, 60px);
}

.outline-button,
.corner-button {
  --button-line: var(--line);
  position: relative;
  min-width: clamp(150px, 13vw, 190px);
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  color: var(--soft-ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.outline-button {
  border: 1px solid var(--button-line);
}

.corner-button {
  border: 0;
  background:
    repeating-linear-gradient(
        to right,
        var(--button-line) 0 8px,
        transparent 8px 15px
      )
      top left / 100% 1px no-repeat,
    repeating-linear-gradient(
        to right,
        var(--button-line) 0 8px,
        transparent 8px 15px
      )
      bottom left / 100% 1px no-repeat,
    repeating-linear-gradient(
        to bottom,
        var(--button-line) 0 8px,
        transparent 8px 15px
      )
      top left / 1px 100% no-repeat,
    repeating-linear-gradient(
        to bottom,
        var(--button-line) 0 8px,
        transparent 8px 15px
      )
      top right / 1px 100% no-repeat;
}

.outline-button:hover,
.outline-button:focus-visible,
.corner-button:hover,
.corner-button:focus-visible {
  --button-line: var(--accent);
  color: var(--ink);
  background-color: var(--surface-hover);
  transform: translate(-2px, -2px);
}

.section-grid {
  position: relative;
  display: grid;
  grid-template-columns: var(--rail) 1fr var(--rail);
  margin-bottom: var(--divider-gap);
}

.hero::after,
.section-grid::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: calc(-1 * var(--divider-gap));
  left: 0;
  height: var(--divider-gap);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  pointer-events: none;
}

.section-index {
  padding-top: 90px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 18px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
}

.section-index span:last-child {
  color: var(--accent);
  font-family: serif;
  font-size: 15px;
  opacity: 0.55;
  writing-mode: vertical-rl;
}

.hero-section-index {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: var(--rail);
  padding-top: clamp(48px, 6vw, 86px);
}

.section-index-right {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: clamp(38px, 5vw, 72px);
  width: var(--rail);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 18px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
}

.section-index-right span:first-child {
  color: var(--accent);
  font-family: serif;
  font-size: 15px;
  opacity: 0.92;
  writing-mode: vertical-rl;
}

.section-content {
  grid-column: 2;
  padding: clamp(86px, 9vw, 140px) clamp(42px, 7vw, 112px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(140px, 0.32fr) 1fr;
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
  margin-bottom: clamp(64px, 8vw, 120px);
}

.section-heading > p {
  margin: 8px 0 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2 {
  max-width: 800px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 4.2vw, 64px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.section-heading-minimal {
  display: block;
  margin-bottom: clamp(64px, 8vw, 112px);
}

.section-heading-minimal h2 {
  max-width: none;
  color: var(--accent);
  font-family: var(--hand);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 132px;
  width: 1px;
  background: var(--accent);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 104px 56px 1fr;
  align-items: start;
  padding: 0 0 clamp(68px, 8vw, 118px);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-date {
  display: grid;
  gap: 7px;
  padding-top: 1px;
  text-align: right;
}

.timeline-date strong {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.timeline-date span {
  color: var(--soft-ink);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  text-transform: uppercase;
}

.timeline-marker {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  margin: 3px auto 0;
  border: 2px solid var(--accent);
  background: var(--paper);
  transform: rotate(45deg);
}

.timeline-current .timeline-marker {
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.timeline-current .timeline-date span {
  color: var(--accent);
}

.timeline-content {
  padding: 0 0 clamp(44px, 5vw, 68px);
}

.project-type,
.timeline-content li {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-type {
  margin: 0;
  color: var(--accent);
}

.timeline-content h3 {
  margin: 14px 0 18px;
  color: var(--ink);
  font-size: clamp(27px, 3vw, 43px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-wrap: balance;
}

.timeline-content > p:not(.project-type) {
  max-width: 680px;
  margin: 0;
  color: var(--soft-ink);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.75;
}

.timeline-content ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--soft-ink);
  list-style: none;
}

.timeline-content li::before {
  content: "— ";
  color: var(--line);
}

.contact {
  min-height: 720px;
}

.contact-layout .section-heading {
  margin-bottom: clamp(60px, 8vw, 100px);
}

.contact-links {
  display: grid;
  gap: 16px;
}

.contact-links a,
.contact-email {
  display: grid;
  grid-template-columns: minmax(130px, 170px) max-content 72px;
  gap: clamp(26px, 2.4vw, 38px);
  justify-content: start;
  align-items: center;
  padding: 20px 0;
  color: var(--soft-ink);
}

.contact-links a > span:first-child,
.contact-email > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: clamp(14px, 1.45vw, 22px);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.contact-links a > span:first-child::before,
.contact-email > span:first-child::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--accent);
}

.contact-links strong,
.contact-email strong {
  font-size: clamp(14px, 1.45vw, 22px);
  font-weight: 500;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  white-space: nowrap;
}

.contact-links a > span:last-child {
  justify-self: start;
  color: var(--accent);
  font-size: 20px;
  transition: transform 180ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--ink);
}

.contact-links a:hover > span:last-child,
.contact-links a:focus-visible > span:last-child {
  transform: translate(4px, -4px);
}

.copy-email {
  min-width: 0;
  justify-self: start;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-align: right;
  text-transform: uppercase;
}

.copy-email:hover,
.copy-email:focus-visible {
  color: var(--ink);
}

.copy-email.copied {
  color: var(--accent);
}

.site-footer {
  min-height: 90px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px calc(var(--rail) + clamp(28px, 4vw, 64px));
  color: var(--soft-ink);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer p:nth-child(2) {
  color: var(--accent);
  font-family: serif;
  font-size: 17px;
  opacity: 0.55;
}

.site-footer a {
  justify-self: end;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 550ms ease,
    transform 550ms ease;
}

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

@media (max-width: 900px) {
  :root {
    --rail: 38px;
  }

  .site-nav {
    padding-inline: calc(var(--rail) + 44px);
  }

  .hero {
    min-height: 760px;
    padding-inline: calc(var(--rail) + 44px);
  }

  .hero-copy {
    width: 100%;
  }

  .section-content {
    padding-inline: clamp(38px, 7vw, 72px);
  }
}

@media (max-width: 640px) {
  :root {
    --rail: 24px;
    --divider-gap: 58px;
  }

  body {
    font-size: 16px;
  }

  .site-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 0;
    display: block;
    border: 0;
  }

  .menu-button {
    height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border: 0;
    background: var(--paper);
    color: var(--soft-ink);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .menu-icon,
  .menu-icon::before {
    width: 16px;
    height: 1px;
    display: block;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .menu-icon {
    position: relative;
  }

  .menu-icon::before {
    content: "";
    position: absolute;
    top: -5px;
  }

  .menu-button[aria-expanded="true"] .menu-icon {
    transform: rotate(45deg);
  }

  .menu-button[aria-expanded="true"] .menu-icon::before {
    top: 0;
    transform: rotate(90deg);
  }

  .site-nav {
    position: fixed;
    z-index: 1;
    top: 58px;
    right: 0;
    left: 0;
    min-height: calc(100svh - 58px);
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding: 42px;
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 180ms ease,
      visibility 180ms ease,
      transform 180ms ease;
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    width: 100%;
    padding: 18px 0;
    font-size: 30px;
  }

  .menu-button,
  .site-nav {
    display: none;
  }

  .nav-controls {
    position: absolute;
    top: 14px;
    right: calc(var(--rail) + 12px);
    margin: 0;
  }

  .nav-control {
    width: 32px;
    height: 32px;
    background: var(--paper);
  }

  .hero {
    min-height: 100svh;
    align-items: center;
    padding: 74px calc(var(--rail) + 22px) 110px;
  }

  .hero-copy {
    margin-top: 0;
  }

  .hero-role {
    margin-bottom: 26px;
  }

  .hero h1 {
    font-size: clamp(62px, 18vw, 82px);
    line-height: 0.92;
  }

  .hero-intro {
    font-size: 16px;
    line-height: 1.7;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 36px;
  }

  .outline-button,
  .corner-button {
    width: min(100%, 240px);
    min-height: 52px;
    font-size: 11px;
  }

  .section-index {
    padding-top: 54px;
  }

  .hero-section-index {
    padding-top: 38px;
  }

  .section-index-right {
    bottom: 34px;
    gap: 12px;
  }

  .section-content {
    padding: 70px 24px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 60px;
  }

  .section-heading h2 {
    font-size: clamp(34px, 10.5vw, 48px);
  }

  .section-heading-minimal h2 {
    font-size: clamp(46px, 14vw, 58px);
  }

  .timeline::before {
    left: 6px;
  }

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

  .timeline-date {
    grid-column: 2;
    grid-row: 1;
    justify-content: start;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    text-align: left;
  }

  .timeline-marker {
    grid-column: 1;
    grid-row: 1;
    width: 12px;
    height: 12px;
    margin-top: 4px;
  }

  .timeline-content {
    grid-column: 2;
    grid-row: 2;
  }

  .timeline-content h3 {
    font-size: clamp(25px, 8vw, 32px);
  }

  .timeline-content > p:not(.project-type) {
    font-size: 16px;
  }

  .timeline-content ul {
    gap: 7px 12px;
    margin-top: 22px;
  }

  .contact {
    min-height: 640px;
  }

  .contact-links a,
  .contact-email {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    padding: 16px 0;
  }

  .contact-links a > span:first-child,
  .contact-email > span:first-child {
    grid-column: 1 / -1;
    font-size: 15px;
  }

  .contact-links strong,
  .contact-email strong {
    grid-column: 1;
    grid-row: 2;
    font-size: 15px;
    white-space: normal;
  }

  .contact-links a > span:last-child,
  .copy-email {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    padding: 24px calc(var(--rail) + 18px);
  }

  .site-footer p:nth-child(2) {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
