:root {
  --accent: #eda467;
  --sand: #ba9475;
  --stone: #877b70;
  --slate: #544a41;
  --ink: #33271d;
  --paper: #f5f1ed;
  --white: #fffdfa;
  --line-dark: rgba(255, 253, 250, 0.16);
  --line-light: rgba(51, 39, 29, 0.16);
  --font-display: "Manrope", Arial, sans-serif;
  --font-mono: "DM Mono", "Courier New", monospace;
  --shell: min(1240px, calc(100% - 48px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
}

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

svg {
  display: block;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--ink);
  font: 500 0.75rem/1 var(--font-mono);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  color: var(--white);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-dark);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.8rem;
  font-weight: 600;
}

.site-nav > a {
  position: relative;
  padding: 12px 0;
  color: rgba(255, 253, 250, 0.72);
  transition: color 180ms ease;
}

.site-nav > a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 6px;
  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 {
  color: var(--white);
}

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

.site-nav .nav-external {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--white);
}

.nav-external svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.hero {
  min-height: 820px;
  display: flex;
  align-items: center;
  padding: 152px 0 80px;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 0.88fr);
  gap: clamp(56px, 8vw, 116px);
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  color: var(--sand);
  font: 500 0.68rem/1.4 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 24px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(3.25rem, 5.7vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-intro {
  max-width: 590px;
  margin: 34px 0 0;
  color: rgba(255, 253, 250, 0.67);
  font-size: clamp(1.02rem, 1.4vw, 1.19rem);
  line-height: 1.7;
}

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

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

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

.button-primary:hover {
  background: #f0b17c;
}

.availability {
  color: rgba(255, 253, 250, 0.5);
  font: 400 0.65rem/1.5 var(--font-mono);
}

.origin-map {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  background: rgba(84, 74, 65, 0.13);
}

.map-header {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-dark);
  color: rgba(255, 253, 250, 0.45);
  font: 400 0.6rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-field {
  position: relative;
  height: 430px;
  overflow: hidden;
  background-image: radial-gradient(rgba(255, 253, 250, 0.13) 0.8px, transparent 0.8px);
  background-size: 24px 24px;
}

.map-field::before,
.map-field::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background: var(--line-dark);
}

.map-field::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.map-field::after {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.map-paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(255, 253, 250, 0.24);
  stroke-dasharray: 3 5;
  stroke-width: 1;
}

.map-paths path {
  animation: reveal-path 1100ms 320ms both ease-out;
}

.map-paths .path-active {
  stroke: var(--accent);
  stroke-dasharray: none;
}

.origin-node {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 9px;
  color: var(--accent);
  transform: translate(-50%, -50%);
}

.origin-node svg {
  width: 76px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.origin-node span {
  font: 500 0.61rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-node {
  position: absolute;
  z-index: 3;
  width: 124px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 11px 13px;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  background: var(--ink);
  transform: translateY(-50%);
}

.map-node-live {
  top: 28.5%;
  right: 8px;
  border-color: rgba(237, 164, 103, 0.72);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.map-node-live:hover,
.map-node-live:focus-visible {
  border-color: var(--accent);
  background: var(--slate);
}

.node-status {
  margin-bottom: 6px;
  color: var(--accent);
  font: 500 0.52rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.map-node strong {
  font-size: 0.76rem;
  font-weight: 600;
}

.map-node small {
  margin-top: 3px;
  color: rgba(255, 253, 250, 0.46);
  font-size: 0.6rem;
}

.map-node-future {
  right: 8px;
  color: rgba(255, 253, 250, 0.48);
}

.map-node-mobile {
  top: 50%;
}

.map-node-services {
  top: 71.5%;
}

.origin-map figcaption {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-top: 1px solid var(--line-dark);
  color: rgba(255, 253, 250, 0.48);
  font-size: 0.67rem;
  line-height: 1.5;
}

.purpose {
  padding: 120px 0;
  background: var(--sand);
}

.purpose-grid {
  display: grid;
  grid-template-columns: 0.58fr 1.55fr 0.7fr;
  gap: 64px;
}

.section-label {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: rgba(51, 39, 29, 0.66);
  font: 500 0.63rem/1.4 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.purpose-copy h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.2rem, 4.1vw, 4.3rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.purpose-copy p {
  max-width: 590px;
  margin: 38px 0 0;
  color: rgba(51, 39, 29, 0.75);
  font-size: 1rem;
  line-height: 1.75;
}

.purpose-key {
  align-self: end;
  padding-bottom: 2px;
}

.key-line {
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 18px;
  background: rgba(51, 39, 29, 0.3);
}

.purpose-key p {
  margin: 10px 0;
  color: rgba(51, 39, 29, 0.72);
  font: 500 0.63rem/1.4 var(--font-mono);
  letter-spacing: 0.04em;
}

.projects {
  padding: 128px 0 112px;
  background: var(--paper);
}

.projects-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
}

.eyebrow-dark {
  margin-bottom: 20px;
  color: var(--slate);
}

.projects h2 {
  margin: 0;
  font-size: clamp(3.4rem, 6vw, 6.2rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.project-card {
  min-height: 180px;
  display: grid;
  grid-template-columns: 0.25fr 1.15fr 0.82fr 0.52fr;
  align-items: center;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  transition: background-color 220ms ease, color 220ms ease, padding 220ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  padding-inline: 22px;
  background: var(--ink);
  color: var(--white);
}

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

.project-number {
  color: var(--stone);
  font: 400 0.68rem/1 var(--font-mono);
}

.project-identity {
  display: flex;
  align-items: center;
  gap: 22px;
}

.project-mark {
  width: 68px;
  height: 68px;
  display: block;
  flex: 0 0 auto;
}

.project-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.project-identity h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.project-identity p,
.project-domain {
  margin: 5px 0 0;
  color: var(--stone);
  font: 400 0.65rem/1.4 var(--font-mono);
}

.project-domain {
  margin: 0;
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  font-size: 0.76rem;
  font-weight: 700;
}

.project-link svg {
  width: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.projects-note {
  margin: 24px 0 0;
  color: var(--stone);
  font: 400 0.65rem/1.5 var(--font-mono);
}

.site-footer {
  padding: 68px 0;
  background: var(--slate);
  color: var(--white);
}

.footer-grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.footer-brand {
  color: var(--accent);
}

.footer-grid > div:first-child > p {
  margin: 20px 0 0;
  color: rgba(255, 253, 250, 0.55);
  font-size: 0.78rem;
}

.footer-meta {
  text-align: right;
}

.footer-meta p {
  margin: 10px 0 0;
  color: rgba(255, 253, 250, 0.5);
  font: 400 0.61rem/1.5 var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-meta .deployment-note {
  color: rgba(255, 253, 250, 0.66);
  text-transform: none;
}


a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

@keyframes reveal-path {
  from {
    opacity: 0;
    stroke-dashoffset: 60;
  }
  to {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

@media (max-width: 1020px) {
  .hero {
    padding-top: 136px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 72px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .origin-map {
    width: min(680px, 100%);
  }

  .purpose-grid {
    grid-template-columns: 0.38fr 1.62fr;
  }

  .purpose-key {
    grid-column: 2;
    width: min(300px, 100%);
    margin-top: 16px;
  }

  .project-card {
    grid-template-columns: 0.18fr 1.2fr 0.75fr;
  }

  .project-domain {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(100% - 32px, 1240px);
  }

  .header-inner {
    min-height: 72px;
  }

  .site-nav {
    gap: 18px;
  }

  .site-nav > a:first-child {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 132px 0 56px;
  }

  .hero-grid {
    gap: 58px;
  }

  .hero h1 {
    font-size: clamp(3rem, 14.5vw, 4.7rem);
  }

  .hero-intro {
    font-size: 0.98rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .map-field {
    height: 360px;
  }

  .map-paths {
    width: 115%;
    transform: translateX(-15%);
  }

  .origin-node {
    left: 38%;
  }

  .map-field::before {
    left: 38%;
  }

  .map-node {
    width: 112px;
  }

  .map-node-live {
    right: 6px;
  }

  .purpose,
  .projects {
    padding: 84px 0;
  }

  .purpose-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .section-label {
    flex-direction: row;
  }

  .purpose-copy h2 {
    font-size: clamp(2.35rem, 11vw, 3.55rem);
  }

  .purpose-copy p {
    margin-top: 28px;
  }

  .purpose-key {
    grid-column: auto;
    margin-top: 6px;
  }

  .projects-heading {
    margin-bottom: 42px;
  }

  .project-card {
    min-height: auto;
    grid-template-columns: 1fr auto;
    gap: 26px 16px;
    padding: 28px 0;
  }

  .project-card:hover,
  .project-card:focus-visible {
    padding-inline: 16px;
  }

  .project-number {
    grid-column: 1 / -1;
  }

  .project-link span {
    display: none;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
    gap: 42px;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 0.88rem;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .site-nav {
    gap: 14px;
    font-size: 0.74rem;
  }

  .nav-external svg {
    display: none;
  }

  .map-header span:last-child {
    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;
  }
}
