:root {
  --paper: #f3efe5;
  --paper-deep: #e9e2d3;
  --ink: #172033;
  --ink-soft: #556071;
  --navy: #1e335b;
  --coral: #e65c43;
  --green: #23806f;
  --gold: #c99536;
  --line: rgba(23, 32, 51, 0.18);
  --white: #fffdf7;
  --display: Georgia, "Noto Serif SC", "Songti SC", STSong, serif;
  --sans: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 6%, rgba(201, 149, 54, 0.1), transparent 22rem),
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(23, 32, 51, 0.025) 50%, transparent calc(50% + 0.5px)),
    var(--paper);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

button,
select {
  font: inherit;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--ink);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1440px, calc(100% - 64px));
  height: 96px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font: 700 14px/1 var(--display);
  letter-spacing: -0.04em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 12px;
  letter-spacing: 0.16em;
}

.brand small {
  margin-top: 5px;
  color: var(--ink-soft);
  font: 9px/1 var(--mono);
  letter-spacing: 0.12em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
}

.desktop-nav a {
  position: relative;
  padding: 12px 0;
  font-size: 13px;
  text-decoration: none;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

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

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
  padding: 11px 16px;
  border: 1px solid var(--ink);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.section-shell {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
  min-height: calc(100vh - 96px);
  padding-top: 64px;
  padding-bottom: 72px;
}

.eyebrow,
.section-kicker {
  color: var(--coral);
  font: 700 11px/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  max-width: 610px;
  justify-content: space-between;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.hero h1,
.section-heading h2,
.manifesto h2,
.route-intro h2,
.workbench-copy h2,
.repository-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.055em;
}

.hero h1 {
  max-width: 760px;
  margin-top: clamp(30px, 5vh, 60px);
  font-size: clamp(64px, 7vw, 118px);
  line-height: 0.95;
}

.hero h1 em {
  color: var(--coral);
  font-weight: 400;
}

.hero-lead {
  max-width: 680px;
  margin: 34px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 20px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}

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

.button-dark {
  color: var(--white);
  background: var(--ink);
  box-shadow: 5px 5px 0 rgba(230, 92, 67, 0.32);
}

.button-dark:hover,
.button-dark:focus-visible {
  box-shadow: 7px 7px 0 rgba(230, 92, 67, 0.45);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: none;
  cursor: pointer;
  font-size: 12px;
}

.copy-icon {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 1px solid currentColor;
}

.copy-icon::after {
  position: absolute;
  top: -4px;
  left: 3px;
  width: 10px;
  height: 10px;
  border: 1px solid currentColor;
  content: "";
  background: inherit;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 680px;
  margin: 56px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  padding: 0 18px;
  border-left: 1px solid var(--line);
}

.hero-stats div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-stats dt {
  font: 400 30px/1 var(--display);
}

.hero-stats dd {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.field-card {
  position: relative;
  overflow: hidden;
  align-self: stretch;
  min-height: 650px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.48);
  border: 1px solid var(--line);
  box-shadow: 18px 22px 0 rgba(30, 51, 91, 0.06);
}

.field-card::before,
.field-card::after {
  position: absolute;
  z-index: 0;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 50%;
  content: "";
}

.field-card::before {
  top: 22%;
  right: -68px;
}

.field-card::after {
  bottom: 16%;
  left: -80px;
  width: 170px;
  height: 170px;
}

.field-card-topline,
.field-card-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 18px;
  font: 700 9px/1 var(--mono);
  letter-spacing: 0.1em;
}

.field-card-topline {
  border-bottom: 1px solid var(--line);
}

.field-card-footer {
  border-top: 1px solid var(--line);
}

.signal {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
}

.signal i,
.card-status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(35, 128, 111, 0.1);
}

.map-stage {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 552px;
  place-items: center;
  padding: 4px 0;
}

.italy-map {
  width: min(100%, 520px);
  height: 100%;
  max-height: 565px;
  color: var(--ink);
}

.land-shadow {
  fill: rgba(30, 51, 91, 0.08);
  transform: translate(7px, 7px);
}

.land,
.island {
  fill: rgba(255, 253, 247, 0.72);
  stroke: rgba(23, 32, 51, 0.52);
  stroke-width: 1.2;
}

.island.small {
  stroke-dasharray: 3 3;
}

.route {
  fill: none;
  stroke: url(#route-gradient);
  stroke-linecap: round;
  stroke-width: 5;
}

.route-dash {
  fill: none;
  stroke: var(--white);
  stroke-dasharray: 3 9;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.city-point circle:first-child {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1;
}

.city-point circle:nth-child(2) {
  fill: var(--coral);
}

.city-point text,
.map-note text {
  fill: var(--ink);
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.07em;
}

.city-point .city-cn,
.map-note .note-cn {
  fill: var(--ink-soft);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.map-note rect {
  fill: rgba(243, 239, 229, 0.88);
  stroke: rgba(23, 32, 51, 0.28);
}

.map-index {
  position: absolute;
  color: var(--ink-soft);
  font: 8px/1 var(--mono);
  letter-spacing: 0.06em;
  writing-mode: vertical-rl;
}

.index-a { right: 7px; top: 32%; }
.index-b { left: 7px; bottom: 28%; transform: rotate(180deg); }

.ticker {
  overflow: hidden;
  padding: 15px 0;
  color: var(--paper);
  background: var(--ink);
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 34px;
  animation: ticker 28s linear infinite;
}

.ticker-track span {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.14em;
}

.ticker-track i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
}

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

.manifesto {
  display: grid;
  grid-template-columns: 0.55fr 1.4fr 0.55fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  padding-top: 150px;
  padding-bottom: 160px;
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  margin: 0;
}

.manifesto h2,
.section-heading h2,
.route-intro h2,
.workbench-copy h2,
.repository-copy h2 {
  font-size: clamp(46px, 5.2vw, 78px);
  line-height: 1.08;
}

.manifesto h2 span,
.section-heading h2 span,
.route-intro h2 span,
.workbench-copy h2 span,
.repository-copy h2 span {
  color: var(--coral);
  font-style: italic;
}

.manifesto > div:nth-child(2) > p {
  max-width: 720px;
  margin: 34px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.9;
}

.manifesto-note {
  padding-top: 10px;
}

.manifesto-note span,
.boundary-note span {
  color: var(--coral);
  font: 700 9px/1 var(--mono);
  letter-spacing: 0.14em;
}

.manifesto-note strong {
  display: block;
  margin-top: 16px;
  font: 400 italic 18px/1.55 var(--display);
}

.skills-section {
  padding-top: 140px;
  padding-bottom: 160px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  gap: 60px;
  align-items: end;
}

.section-heading h2 {
  margin-top: 24px;
}

.section-heading > p {
  max-width: 430px;
  margin: 0 0 7px auto;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.filter-row {
  display: flex;
  gap: 10px;
  margin-top: 58px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filter-button {
  padding: 10px 15px;
  border: 1px solid transparent;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s ease;
}

.filter-button:hover,
.filter-button:focus-visible {
  border-color: var(--line);
  color: var(--ink);
}

.filter-button.is-active {
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.skill-card {
  --accent: var(--coral);
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 570px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.34);
  transition: opacity 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}

.skill-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: var(--accent);
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.skill-card:hover {
  z-index: 1;
  box-shadow: 12px 14px 0 rgba(23, 32, 51, 0.08);
  transform: translateY(-8px);
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-card.is-hidden {
  display: none;
}

.card-blue { --accent: var(--navy); }
.card-gold { --accent: var(--gold); }
.card-green { --accent: var(--green); }

.skill-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-number {
  font: 400 24px/1 var(--display);
}

.card-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font: 700 8px/1 var(--mono);
  letter-spacing: 0.1em;
}

.card-status i {
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}

.skill-symbol {
  position: relative;
  width: 144px;
  height: 144px;
  margin: 52px auto 48px;
  color: var(--accent);
}

.symbol-compass {
  border: 1px solid currentColor;
  border-radius: 50%;
  background: repeating-conic-gradient(from -3deg, transparent 0deg 15deg, color-mix(in srgb, currentColor 12%, transparent) 16deg 17deg);
}

.symbol-compass::before,
.symbol-compass::after {
  position: absolute;
  inset: 15px;
  border: 1px dashed currentColor;
  border-radius: 50%;
  content: "";
}

.symbol-compass::after {
  inset: 45px;
  border-style: solid;
  background: currentColor;
}

.symbol-compass span::before,
.symbol-compass span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 8px;
  height: 104px;
  content: "";
  background: var(--paper);
  transform: translate(-50%, -50%) rotate(34deg);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.symbol-compass span::after {
  width: 4px;
  background: var(--ink);
  transform: translate(-50%, -50%) rotate(-56deg);
}

.symbol-arch {
  border-bottom: 2px solid currentColor;
}

.symbol-arch::before,
.symbol-arch::after {
  position: absolute;
  bottom: 0;
  width: 12px;
  height: 112px;
  border: 1px solid currentColor;
  content: "";
  background: repeating-linear-gradient(90deg, transparent 0 3px, color-mix(in srgb, currentColor 18%, transparent) 4px);
}

.symbol-arch::before { left: 12px; }
.symbol-arch::after { right: 12px; }

.symbol-arch span {
  position: absolute;
  inset: 14px 26px 0;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 60px 60px 0 0;
}

.symbol-arch i {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 90px;
  background: currentColor;
  box-shadow: -22px 18px 0 currentColor, 22px 18px 0 currentColor;
}

.symbol-plate {
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 18px var(--paper), inset 0 0 0 19px currentColor;
}

.symbol-plate::before,
.symbol-plate::after {
  position: absolute;
  top: 9px;
  width: 3px;
  height: 126px;
  content: "";
  background: currentColor;
}

.symbol-plate::before { left: -16px; box-shadow: -6px 0 0 -1px currentColor, 6px 0 0 -1px currentColor; }
.symbol-plate::after { right: -16px; }

.symbol-plate span {
  position: absolute;
  top: 54px;
  left: 52px;
  width: 42px;
  height: 42px;
  border: 1px dashed currentColor;
  border-radius: 58% 42% 60% 40%;
  background: color-mix(in srgb, currentColor 15%, transparent);
  transform: rotate(24deg);
}

.symbol-journal {
  border: 1px solid currentColor;
  border-radius: 2px;
  box-shadow: 8px 8px 0 color-mix(in srgb, currentColor 14%, transparent);
}

.symbol-journal::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 27px;
  width: 1px;
  content: "";
  background: currentColor;
}

.symbol-journal::after {
  position: absolute;
  top: 28px;
  right: 18px;
  width: 80px;
  height: 54px;
  border: 1px solid currentColor;
  content: "";
  background:
    linear-gradient(150deg, transparent 44%, currentColor 45% 47%, transparent 48%) 0 12px / 100% 100%,
    radial-gradient(circle at 73% 25%, currentColor 0 3px, transparent 4px);
}

.symbol-journal span,
.symbol-journal i {
  position: absolute;
  right: 18px;
  bottom: 34px;
  width: 80px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 10px 0 currentColor, 0 20px 0 currentColor;
}

.symbol-journal i {
  right: auto;
  bottom: auto;
  left: 7px;
  top: 18px;
  width: 11px;
  box-shadow: 0 25px 0 currentColor, 0 50px 0 currentColor, 0 75px 0 currentColor, 0 100px 0 currentColor;
}

.skill-card-body {
  margin-top: auto;
}

.skill-en {
  margin: 0 0 9px;
  color: var(--accent);
  font: 700 9px/1 var(--mono);
  letter-spacing: 0.13em;
}

.skill-card h3 {
  margin: 0;
  font: 400 26px/1.25 var(--display);
}

.skill-card-body > p:not(.skill-en) {
  min-height: 66px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 5px 8px;
  border: 1px solid var(--line);
  font-size: 9px;
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px -24px -24px;
  padding: 18px 24px;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  text-align: left;
  transition: color 0.25s ease, background 0.25s ease;
}

.card-link:hover,
.card-link:focus-visible {
  color: var(--white);
  background: var(--accent);
}

.route-section {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background: var(--navy);
}

.route-section::after {
  position: absolute;
  top: 10%;
  right: -10%;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 80px rgba(255,255,255,.02), 0 0 0 160px rgba(255,255,255,.02);
}

.route-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: clamp(60px, 8vw, 140px);
  align-items: center;
  min-height: 810px;
  padding-top: 100px;
  padding-bottom: 100px;
}

.section-kicker.light {
  color: #8acabb;
}

.route-intro h2,
.repository-copy h2 {
  margin-top: 28px;
}

.route-intro h2 span,
.repository-copy h2 span {
  color: #8acabb;
}

.route-intro > p:last-child,
.repository-copy > p {
  max-width: 450px;
  margin: 32px 0 0;
  color: rgba(243, 239, 229, 0.68);
  font-size: 13px;
  line-height: 1.85;
}

.route-board {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(11, 27, 53, 0.35);
  backdrop-filter: blur(10px);
}

.city-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.city-tab {
  min-height: 70px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(243, 239, 229, 0.55);
  background: transparent;
  cursor: pointer;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.08em;
  transition: color 0.2s ease, background 0.2s ease;
}

.city-tab:last-child { border-right: 0; }
.city-tab span { margin-right: 8px; color: #8acabb; }

.city-tab:hover,
.city-tab:focus-visible,
.city-tab.is-active {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
}

.city-panel {
  padding: 34px;
  outline: none;
}

.city-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.city-panel-head span {
  color: #8acabb;
  font: 500 9px/1 var(--mono);
  letter-spacing: 0.1em;
}

.city-panel-head h3 {
  margin: 10px 0 0;
  font: 400 32px/1.2 var(--display);
}

.city-panel-head strong {
  max-width: 270px;
  color: rgba(243, 239, 229, 0.72);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  text-align: right;
}

.city-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.city-step {
  position: relative;
  min-height: 150px;
  padding: 28px 26px 24px 54px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.city-step:nth-child(even) { border-right: 0; }
.city-step:nth-last-child(-n + 2) { border-bottom: 0; }

.city-step > span {
  position: absolute;
  top: 30px;
  left: 22px;
  width: 20px;
  height: 20px;
  border: 1px solid #8acabb;
  border-radius: 50%;
  color: #8acabb;
  font: 700 8px/18px var(--mono);
  text-align: center;
}

.city-step small {
  display: block;
  color: #8acabb;
  font: 600 8px/1 var(--mono);
  letter-spacing: 0.1em;
}

.city-step strong {
  display: block;
  margin-top: 12px;
  font: 400 16px/1.45 var(--display);
}

.city-step p {
  margin: 10px 0 0;
  color: rgba(243, 239, 229, 0.57);
  font-size: 11px;
  line-height: 1.6;
}

.workbench {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(60px, 9vw, 160px);
  align-items: start;
  padding-top: 150px;
  padding-bottom: 160px;
}

.workbench-copy {
  position: sticky;
  top: 42px;
}

.workbench-copy h2 {
  margin-top: 26px;
}

.workbench-copy > p:not(.section-kicker) {
  max-width: 440px;
  margin: 32px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

.boundary-note {
  max-width: 440px;
  margin-top: 54px;
  padding: 18px 0 0 26px;
  border-top: 1px solid var(--line);
  border-left: 3px solid var(--coral);
}

.boundary-note p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.75;
}

.prompt-console {
  border: 1px solid var(--ink);
  background: rgba(255, 253, 247, 0.5);
  box-shadow: 14px 16px 0 rgba(23, 32, 51, 0.08);
}

.console-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  color: var(--paper);
  background: var(--ink);
  font: 700 8px/1 var(--mono);
  letter-spacing: 0.1em;
}

.console-bar > span:first-child {
  display: flex;
  gap: 5px;
}

.console-bar i {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.console-bar > span:last-child {
  justify-self: end;
  color: #8acabb;
}

.console-body {
  padding: clamp(26px, 4vw, 46px);
}

.console-body label,
.console-body legend,
.output-label {
  display: block;
  color: var(--ink-soft);
  font: 700 9px/1 var(--mono);
  letter-spacing: 0.12em;
}

.console-body select {
  width: 100%;
  height: 58px;
  margin-top: 14px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 13px;
}

.console-body fieldset {
  margin: 36px 0 0;
  padding: 0;
  border: 0;
}

.scenario-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.scenario-button {
  min-height: 84px;
  padding: 13px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  line-height: 1.55;
  text-align: left;
  transition: all 0.2s ease;
}

.scenario-button span {
  display: block;
  margin-bottom: 8px;
  color: var(--coral);
  font: 700 8px/1 var(--mono);
}

.scenario-button:hover,
.scenario-button:focus-visible,
.scenario-button.is-active {
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
}

.prompt-output-wrap {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.output-label {
  display: flex;
  justify-content: space-between;
}

#prompt-output {
  min-height: 118px;
  margin: 14px 0 0;
  padding: 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper-deep);
  font: 12px/1.75 var(--mono);
}

.button-coral {
  width: 100%;
  margin-top: 10px;
  color: var(--white);
  background: var(--coral);
}

.console-hint {
  min-height: 34px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.7;
}

.method-section {
  padding-bottom: 160px;
}

.section-heading.compact {
  grid-template-columns: 1fr;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 70px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.method-grid li {
  position: relative;
  min-height: 240px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.method-grid li:last-child { border-right: 0; }

.method-grid li::after {
  position: absolute;
  right: -6px;
  top: 48px;
  z-index: 1;
  width: 11px;
  height: 11px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  content: "";
  background: var(--paper);
}

.method-grid li:last-child::after { display: none; }

.method-grid span {
  color: var(--coral);
  font: 700 10px/1 var(--mono);
}

.method-grid strong {
  display: block;
  margin-top: 62px;
  font: 400 25px/1.2 var(--display);
}

.method-grid p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.repository-section {
  color: var(--paper);
  background: #182131;
}

.repository-shell {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: clamp(60px, 8vw, 140px);
  align-items: center;
  min-height: 820px;
  padding-top: 100px;
  padding-bottom: 100px;
}

.repository-copy .button {
  margin-top: 38px;
}

.button-light {
  color: var(--ink);
  background: var(--paper);
}

.file-tree {
  border: 1px solid rgba(243, 239, 229, 0.2);
  background: rgba(255, 255, 255, 0.025);
}

.tree-head,
.tree-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(243, 239, 229, 0.18);
  color: rgba(243, 239, 229, 0.55);
  font: 700 8px/1 var(--mono);
  letter-spacing: 0.1em;
}

.file-tree > ul {
  margin: 0;
  padding: 4px 0;
  list-style: none;
}

.folder {
  border-bottom: 1px solid rgba(243, 239, 229, 0.11);
}

.folder:last-child { border-bottom: 0; }

.tree-line {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 18px 20px 12px;
}

.tree-line i {
  width: 11px;
  height: 8px;
  border: 1px solid #8acabb;
  border-radius: 1px;
  box-shadow: 2px 2px 0 rgba(138, 202, 187, 0.18);
}

.tree-line b {
  font: 500 12px/1 var(--mono);
}

.tree-line em {
  color: #8acabb;
  font-size: 10px;
  font-style: normal;
}

.folder ul {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0 20px 16px 44px;
  color: rgba(243, 239, 229, 0.48);
  list-style: none;
  font: 9px/1 var(--mono);
}

.folder small {
  margin-left: 7px;
  color: var(--coral);
  font-size: 7px;
}

.tree-footer {
  border-top: 1px solid rgba(243, 239, 229, 0.18);
  border-bottom: 0;
}

.tree-footer span:last-child { color: #8acabb; }

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 230px;
  padding: 48px max(32px, calc((100% - 1440px) / 2));
  color: var(--paper);
  background: #111824;
  border-top: 1px solid rgba(243, 239, 229, 0.12);
}

.footer-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(243, 239, 229, 0.5);
  border-radius: 50%;
  font: 700 19px/1 var(--display);
}

.site-footer strong {
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.14em;
}

.site-footer p {
  margin: 10px 0 0;
  color: rgba(243, 239, 229, 0.5);
  font: italic 13px/1.6 var(--display);
}

.footer-meta {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 20px;
  font: 700 8px/1 var(--mono);
  letter-spacing: 0.1em;
}

.footer-meta a { color: #8acabb; text-decoration: none; }
.footer-meta span { color: rgba(243, 239, 229, 0.38); }

.skill-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: min(850px, calc(100vh - 32px));
  padding: clamp(30px, 5vw, 64px);
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--paper);
  box-shadow: 18px 20px 0 rgba(230, 92, 67, 0.34);
}

.skill-dialog::backdrop {
  background: rgba(12, 19, 31, 0.76);
  backdrop-filter: blur(4px);
}

.skill-dialog[open] {
  animation: dialog-in 0.28s ease both;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}

.dialog-index {
  color: var(--coral);
  font: 400 44px/1 var(--display);
}

.dialog-kicker {
  margin: 22px 0 0;
  color: var(--coral);
  font: 700 9px/1 var(--mono);
  letter-spacing: 0.12em;
}

.skill-dialog h2 {
  margin: 10px 0 0;
  font: 400 43px/1.2 var(--display);
}

.dialog-description {
  max-width: 580px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.dialog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 32px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.dialog-grid > div {
  min-height: 118px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dialog-grid span,
.dialog-command > span {
  color: var(--coral);
  font: 700 8px/1 var(--mono);
  letter-spacing: 0.1em;
}

.dialog-grid p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
}

.dialog-command {
  position: relative;
  margin-top: 22px;
  padding: 18px 74px 18px 18px;
  color: var(--paper);
  background: var(--ink);
}

.dialog-command code {
  display: block;
  margin-top: 10px;
  font: 10px/1.7 var(--mono);
  overflow-wrap: anywhere;
}

.copy-dialog {
  position: absolute;
  top: 50%;
  right: 16px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.3);
  color: var(--paper);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  transform: translateY(-50%);
}

.dialog-file {
  display: inline-block;
  margin-top: 24px;
  color: var(--ink);
  font-size: 11px;
  text-decoration-color: var(--coral);
  text-underline-offset: 5px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 110;
  padding: 14px 18px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--coral);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(24px);
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr 0.85fr;
    gap: 40px;
  }

  .hero h1 { font-size: clamp(58px, 7.5vw, 86px); }
  .field-card { min-height: 580px; }
  .map-stage { min-height: 482px; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .skill-card { min-height: 540px; }
  .workbench { grid-template-columns: 0.65fr 1.35fr; gap: 60px; }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
    width: min(100% - 36px, 1440px);
    height: 78px;
  }

  .desktop-nav { display: none; }
  .section-shell { width: min(100% - 36px, 1440px); }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 72px; }
  .hero-copy { max-width: 720px; }
  .field-card { min-height: 620px; }
  .map-stage { min-height: 522px; }
  .manifesto { grid-template-columns: 1fr; gap: 36px; padding: 110px 0; }
  .manifesto-note { padding: 22px 0 0; border-top: 1px solid var(--line); }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading > p { margin: -22px 0 0 auto; }
  .route-shell,
  .repository-shell { grid-template-columns: 1fr; min-height: auto; padding: 110px 0; }
  .workbench { grid-template-columns: 1fr; }
  .workbench-copy { position: static; }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid li:nth-child(2) { border-right: 0; }
  .method-grid li:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .method-grid li:nth-child(2)::after { display: none; }
  .repository-copy { max-width: 600px; }
}

@media (max-width: 580px) {
  .site-header { width: calc(100% - 28px); }
  .brand-mark { width: 38px; height: 38px; }
  .brand strong { font-size: 10px; }
  .header-cta { padding: 10px 12px; font-size: 10px; }
  .header-cta span { display: none; }
  .section-shell { width: calc(100% - 28px); }
  .hero { padding-top: 50px; padding-bottom: 60px; }
  .eyebrow { font-size: 9px; }
  .hero h1 { margin-top: 34px; font-size: clamp(50px, 15vw, 72px); }
  .hero-lead { font-size: 14px; line-height: 1.8; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 15px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .hero-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .field-card { min-height: auto; box-shadow: 8px 10px 0 rgba(30, 51, 91, 0.06); }
  .map-stage { min-height: 430px; }
  .italy-map { max-height: 440px; }
  .field-card-footer span:first-child { max-width: 250px; }
  .manifesto,
  .skills-section,
  .workbench,
  .method-section { padding-top: 90px; padding-bottom: 90px; }
  .manifesto h2,
  .section-heading h2,
  .route-intro h2,
  .workbench-copy h2,
  .repository-copy h2 { font-size: clamp(40px, 13vw, 58px); }
  .section-heading > p { margin: 0; }
  .filter-row { overflow-x: auto; padding-bottom: 14px; }
  .filter-button { flex: 0 0 auto; }
  .skill-grid { grid-template-columns: 1fr; }
  .skill-card { min-height: 520px; }
  .route-shell,
  .repository-shell { padding: 90px 0; }
  .city-tabs { overflow-x: auto; grid-template-columns: repeat(3, minmax(120px, 1fr)); }
  .city-panel { padding: 22px; }
  .city-panel-head { align-items: flex-start; flex-direction: column; }
  .city-panel-head strong { text-align: left; }
  .city-steps { grid-template-columns: 1fr; }
  .city-step { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16) !important; }
  .city-step:last-child { border-bottom: 0 !important; }
  .console-body { padding: 22px; }
  .scenario-list { grid-template-columns: 1fr; }
  .scenario-button { min-height: 66px; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid li { min-height: 190px; border-right: 0; border-bottom: 1px solid var(--line); }
  .method-grid li:last-child { border-bottom: 0; }
  .method-grid li::after { display: none; }
  .method-grid strong { margin-top: 40px; }
  .tree-line { grid-template-columns: 12px 1fr; }
  .tree-line em { display: none; }
  .folder ul { flex-direction: column; gap: 9px; }
  .tree-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 7px; }
  .site-footer { grid-template-columns: auto 1fr; padding: 50px 20px; }
  .footer-meta { grid-column: 1 / -1; align-items: flex-start; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.12); }
  .skill-dialog { padding: 30px 22px; }
  .skill-dialog h2 { font-size: 34px; }
  .dialog-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal-ready .reveal:not(.is-visible) { opacity: 1; transform: none; }
}
