/* Topographic Stack — self-contained survey system */
:root {
  --forest: #123b32;
  --forest-deep: #08251f;
  --sand: #d9c39b;
  --sand-light: #eee2ca;
  --cyan: #bde8e3;
  --cyan-bright: #d9f7f2;
  --ink: #101513;
  --paper: #f5f0e6;
  --line: rgba(16, 21, 19, .22);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
::selection { color: var(--cyan-bright); background: var(--forest); }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #e66f35; outline-offset: 4px; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: .65rem 1rem;
  color: white;
  background: var(--ink);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem);
  color: var(--cyan-bright);
  background: var(--forest-deep);
  border-bottom: 1px solid rgba(217,247,242,.25);
}
.wordmark { display: flex; gap: .65rem; align-items: center; font-weight: 800; text-decoration: none; }
.wordmark span:first-child { color: var(--sand); font-size: 1.4rem; }
.site-header nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.site-header nav a {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-header nav a:hover { color: var(--sand); }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 7vw, 8rem);
  color: var(--cyan-bright);
  background: var(--forest-deep);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 11px;
  z-index: 3;
  background: repeating-linear-gradient(90deg, var(--sand) 0 2px, transparent 2px 18px);
}
.hero-map { position: absolute; inset: 0; z-index: -1; opacity: .58; }
.contour { position: absolute; border: 1px solid rgba(189,232,227,.34); border-radius: 46% 54% 61% 39% / 49% 36% 64% 51%; transform: rotate(-8deg); }
.contour::before, .contour::after { content: ""; position: absolute; border: inherit; border-radius: inherit; }
.contour::before { inset: 7%; }
.contour::after { inset: 15%; }
.contour-a { width: 58vw; height: 51vw; left: -25vw; top: -19vw; }
.contour-b { width: 43vw; height: 29vw; right: -8vw; top: -5vw; transform: rotate(15deg); }
.contour-c { width: 32vw; height: 22vw; left: 37%; bottom: -9vw; transform: rotate(6deg); }
.contour-d { width: 18vw; height: 14vw; left: 48%; top: 27%; transform: rotate(28deg); }
.hero-copy { max-width: 790px; position: relative; z-index: 2; }
.eyebrow {
  display: flex;
  gap: 2rem;
  margin: 0 0 1.15rem;
  font: 700 .68rem/1.3 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero .eyebrow { color: var(--sand); }
h1, h2, h3, h4, p { margin-top: 0; }
h1 {
  max-width: 9ch;
  margin-bottom: .5rem;
  font-size: clamp(4.2rem, 10vw, 9.4rem);
  font-weight: 900;
  line-height: .79;
  letter-spacing: -.075em;
}
.title { max-width: 28ch; margin: 1.75rem 0 2rem; color: var(--sand); font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 700; line-height: 1.2; }
.summary { max-width: 62ch; display: grid; grid-template-columns: repeat(2, 1fr); gap: .1rem 2rem; color: rgba(217,247,242,.82); }
.summary p { margin-bottom: .75rem; }
.summary p:first-child { grid-column: 1 / -1; color: var(--cyan-bright); font-size: 1.16rem; }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  gap: 1.2rem;
  justify-content: space-between;
  min-width: 210px;
  padding: .8rem 1rem;
  color: var(--forest-deep);
  background: var(--cyan);
  border: 1px solid var(--cyan);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}
.button:hover { background: var(--sand); border-color: var(--sand); }
.site-address { color: var(--sand); font: .72rem var(--mono); }
.portrait-wrap { width: min(100%, 430px); justify-self: end; margin: 0; }
.portrait-frame { position: relative; padding: 12px; border: 1px solid var(--sand); clip-path: polygon(8% 0,100% 0,100% 92%,92% 100%,0 100%,0 8%); }
.portrait-frame::after { content: "+"; position: absolute; right: 1.4rem; top: 1.2rem; color: var(--sand); font: 1.4rem var(--mono); }
.portrait-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.72) contrast(1.08); }
.portrait-wrap figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: .75rem; color: var(--sand); font: .68rem var(--mono); text-transform: uppercase; }

.survey { padding: clamp(4.5rem, 8vw, 8rem) clamp(1.25rem, 5vw, 5rem); background: var(--sand); }
.section-heading { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(220px, .65fr); gap: 2rem; align-items: end; max-width: 1200px; margin: 0 auto clamp(3rem, 6vw, 5.5rem); }
.section-heading h2 { margin: 0; font-size: clamp(3.2rem, 7vw, 6.8rem); line-height: .82; letter-spacing: -.065em; }
.section-heading > p { max-width: 42ch; margin: 0; padding-left: 1rem; border-left: 1px solid currentColor; }
.terrain { max-width: 1400px; margin: auto; border: 1px solid var(--ink); background: var(--sand-light); }
.terrain-key { display: flex; justify-content: space-between; padding: .55rem .8rem; border-bottom: 1px solid var(--ink); font: .63rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.terrain-field { position: relative; height: 560px; overflow: hidden; }
.strata { position: absolute; left: 0; right: 0; border-top: 1px solid rgba(16,21,19,.35); }
.strata::after { content: ""; position: absolute; inset: 8px 0 auto; border-top: 1px dashed rgba(16,21,19,.18); }
.strata span { position: absolute; right: .7rem; top: .6rem; font: .58rem var(--mono); letter-spacing: .16em; writing-mode: vertical-rl; }
.strata-one { top: 0; height: 25%; background: rgba(189,232,227,.28); }
.strata-two { top: 25%; height: 25%; background: rgba(18,59,50,.09); }
.strata-three { top: 50%; height: 25%; background: rgba(217,195,155,.35); }
.strata-four { top: 75%; bottom: 0; background: rgba(189,232,227,.16); }
.route {
  position: absolute;
  inset: 14% 3% 10%;
  opacity: .5;
  background: repeating-radial-gradient(ellipse at 48% 60%, transparent 0 22px, var(--forest) 23px 24px, transparent 25px 37px);
  clip-path: polygon(0 78%, 7% 57%, 14% 63%, 22% 36%, 29% 42%, 37% 12%, 45% 23%, 53% 3%, 60% 30%, 68% 19%, 77% 47%, 85% 35%, 92% 61%, 100% 50%, 100% 100%, 0 100%);
}
.survey-points { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.survey-points li { position: absolute; }
.survey-points li:nth-child(8n+1) { left: 7%; bottom: 18%; }
.survey-points li:nth-child(8n+2) { left: 19%; bottom: 37%; }
.survey-points li:nth-child(8n+3) { left: 31%; bottom: 51%; }
.survey-points li:nth-child(8n+4) { left: 43%; bottom: 70%; }
.survey-points li:nth-child(8n+5) { left: 55%; bottom: 58%; }
.survey-points li:nth-child(8n+6) { left: 67%; bottom: 43%; }
.survey-points li:nth-child(8n+7) { left: 79%; bottom: 28%; }
.survey-points li:nth-child(8n+8) { left: 90%; bottom: 13%; }
.survey-marker { position: relative; display: block; text-decoration: none; }
.marker-dot { display: block; width: 18px; height: 18px; border: 4px solid var(--paper); border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 1px var(--forest), 0 0 0 8px rgba(18,59,50,.12); transition: transform .18s ease, box-shadow .18s ease; }
.marker-label { position: absolute; left: 9px; bottom: 27px; min-width: 128px; padding: .45rem .55rem; color: var(--cyan-bright); background: var(--forest-deep); border-left: 3px solid var(--cyan); line-height: 1.2; transform: translateX(-8%); }
.marker-label b, .marker-label small { display: block; }
.marker-label b { font-size: .72rem; }
.marker-label small { margin-top: .25rem; color: var(--sand); font: .58rem var(--mono); }
.survey-marker:hover .marker-dot, .survey-marker:focus .marker-dot { transform: scale(1.45); box-shadow: 0 0 0 1px var(--forest), 0 0 0 13px rgba(18,59,50,.18); }
.survey-marker:hover .marker-label, .survey-marker:focus .marker-label { background: #000; }
.terrain-status { min-height: 2rem; margin: 0; padding: .6rem .8rem; border-top: 1px solid var(--ink); font: .68rem var(--mono); text-transform: uppercase; }

.experience { padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 7vw, 8rem); }
.role-list { max-width: 1200px; margin: auto; border-top: 2px solid var(--ink); }
.role { scroll-margin-top: 2rem; display: grid; grid-template-columns: 80px 1fr; border-bottom: 1px solid var(--line); }
.role:target { background: var(--cyan-bright); }
.role.is-connected { background: rgba(189,232,227,.2); }
.role.is-connected .role-index { color: var(--forest); background: var(--cyan); }
.role-index { display: flex; flex-direction: column; align-items: center; padding: 2.3rem .5rem; border-right: 1px solid var(--line); font: .68rem var(--mono); }
.role-index i { width: 1px; flex: 1; min-height: 90px; margin-top: 1rem; background: linear-gradient(var(--forest), transparent); }
.role-body { padding: clamp(2rem, 4vw, 4rem); }
.role-header { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; }
.role-dates, .plate-number { margin-bottom: .6rem; color: var(--forest); font: 700 .66rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.role h3 { max-width: 16ch; margin-bottom: 1.4rem; font-size: clamp(2rem, 4vw, 4rem); line-height: .92; letter-spacing: -.045em; }
.company { padding: .55rem .8rem; color: var(--cyan-bright); background: var(--forest); font: 700 .72rem var(--mono); text-decoration: none; }
a.company:hover { color: var(--forest-deep); background: var(--sand); }
.role-notes { max-width: 780px; margin: .5rem 0 2rem; padding: 0; list-style: none; }
.role-notes li { position: relative; padding: .8rem 0 .8rem 2.25rem; border-top: 1px solid var(--line); }
.role-notes li::before { content: "—"; position: absolute; left: .35rem; color: var(--forest); font-family: var(--mono); }
.tech-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.tech-pill { padding: .3rem .55rem; border: 1px solid var(--line); font: .63rem var(--mono); transition: color .15s, background .15s; }
.tech-pill.is-related { color: var(--cyan-bright); background: var(--forest); border-color: var(--forest); }

.archive { padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 7vw, 8rem); color: var(--cyan-bright); background: var(--forest); }
.archive .section-heading { margin-bottom: 3rem; }
.archive-layout { max-width: 1200px; margin: auto; display: grid; grid-template-columns: 1.35fr .65fr; border: 1px solid rgba(217,247,242,.35); }
.skill-bank, .credentials > section { padding: clamp(2rem, 4vw, 4rem); }
.skill-bank { border-right: 1px solid rgba(217,247,242,.35); }
.archive h3 { margin-bottom: 2rem; color: var(--sand); font-size: 1.25rem; }
.archive .plate-number { color: var(--cyan); }
.skill-bank ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 3rem; }
.skill-item { display: flex; justify-content: space-between; break-inside: avoid; padding: .75rem 0; border-bottom: 1px solid rgba(217,247,242,.2); font-weight: 700; }
.skill-item b { color: var(--sand); font: .6rem var(--mono); }
.skill-item.is-related { margin-inline: -.6rem; padding-inline: .6rem; color: var(--forest-deep); background: var(--cyan); }
.credentials > section + section { border-top: 1px solid rgba(217,247,242,.35); }
.credentials article + article { margin-top: 2rem; }
.credentials h4 { margin-bottom: .4rem; font-size: 1.35rem; line-height: 1.15; }
.credentials article p { margin: 0; color: var(--cyan); }

.references { padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 7vw, 8rem); background: var(--cyan); }
.reference-list { max-width: 1200px; margin: auto; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.reference-list figure { margin: 0; padding: clamp(2rem, 4vw, 4rem); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.reference-list blockquote { margin: 0 0 2rem; font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 700; line-height: 1.35; }
.reference-list figcaption { display: flex; flex-direction: column; font-family: var(--mono); font-size: .7rem; }
.reference-list figcaption span { margin-top: .25rem; color: var(--forest); }

footer { display: grid; grid-template-columns: auto 1fr auto auto; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; padding: 3rem clamp(1.25rem, 7vw, 8rem); color: var(--sand-light); background: var(--ink); font: .72rem var(--mono); }
footer p { margin: 0; }
footer a { text-underline-offset: 4px; }
.footer-mark { color: var(--cyan); font-size: 2rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .portrait-wrap { justify-self: start; width: min(70vw, 380px); }
  .section-heading { grid-template-columns: 1fr; }
  .terrain-field { height: 680px; }
  .marker-label { min-width: 105px; }
  .survey-points li:nth-child(2n) .marker-label { left: auto; right: -9px; transform: none; }
  .archive-layout { grid-template-columns: 1fr; }
  .skill-bank { border-right: 0; border-bottom: 1px solid rgba(217,247,242,.35); }
  footer { grid-template-columns: auto 1fr; }
}

@media (max-width: 620px) {
  .site-header nav a:not(:last-child) { display: none; }
  .hero { min-height: auto; }
  h1 { font-size: clamp(3.6rem, 19vw, 6rem); }
  .summary { grid-template-columns: 1fr; }
  .summary p:first-child { grid-column: auto; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .survey { padding-inline: .75rem; }
  .terrain-field { height: auto; min-height: 700px; }
  .route, .strata span { display: none; }
  .survey-points { position: relative; display: grid; gap: 0; padding: 1rem; }
  .survey-points li { position: static; border-bottom: 1px dashed var(--line); }
  .survey-marker { display: grid; grid-template-columns: 24px 1fr; gap: .75rem; align-items: center; padding: .65rem 0; }
  .marker-label { position: static; min-width: 0; color: var(--ink); background: transparent; border-left: 0; transform: none; }
  .marker-label b { font-size: .78rem; }
  .marker-label small { color: var(--forest); }
  .survey-marker:hover .marker-label, .survey-marker:focus .marker-label { color: var(--cyan-bright); padding-left: .5rem; }
  .role { grid-template-columns: 42px 1fr; }
  .role-body { padding: 2rem 1.2rem; }
  .role-header { grid-template-columns: 1fr; gap: .25rem; }
  .company { justify-self: start; margin-bottom: 1rem; }
  .role-notes li { padding-left: 1.5rem; }
  .skill-bank ul { columns: 1; }
  .reference-list { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
  .footer-mark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
