@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=IBM+Plex+Mono:wght@400;500&family=Instrument+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --paper: #f5f3ea;
  --ink: #182b25;
  --muted: #4b5e54;
  --line: #bdc6b7;
  --accent: #9b4429;
  --dark: #152e26;
  --technical: 'IBM Plex Mono', monospace;
  --heading: 'Barlow Condensed', 'Arial Narrow', 'Arial', sans-serif;
  font-family: 'Instrument Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
p { line-height: 1.62; }
h1, h2, h3, p, figure { margin: 0; }
.shell { width: min(1240px, calc(100% - 104px)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -5rem; padding: 1rem; background: white; z-index: 1; }
.skip:focus { top: 1rem; }
.masthead { height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 12px; align-items: center; font-weight: 700; text-decoration: none; }
.mark { font: 500 .83rem var(--technical); background: var(--dark); color: var(--paper); padding: .57rem .5rem; }
nav, .footer-inner div { display: flex; gap: clamp(15px, 3vw, 42px); }
nav a { font-size: .9rem; font-weight: 600; text-decoration: none; }
nav a:hover, .text-link:hover { color: var(--accent); }
.hero { display: grid; grid-template-columns: .83fr 1.17fr; align-items: center; gap: clamp(32px, 7vw, 112px); padding-block: clamp(54px, 7.2vw, 112px); }
.label { font: 500 .73rem/1.5 var(--technical); letter-spacing: .045em; text-transform: uppercase; }
.eyebrow { color: var(--muted); }
h1, h2 { font-family: var(--heading); }
h1 { font-size: clamp(5.5rem, 10.5vw, 10.5rem); line-height: .79; letter-spacing: -.035em; margin: 22px 0 28px; }
h1 .name-period { color: var(--accent); }
.lede { max-width: 37ch; font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--muted); }
.lede + .lede { margin-top: 12px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; gap: 16px; padding: .85rem 1rem; background: var(--dark); color: var(--paper); text-decoration: none; font-weight: 600; }
.button:hover { background: #285242; }
.text-link { font-weight: 700; }
.board { border: 1px solid #98a99b; background: #e8ebe0; padding: 13px; min-width: 0; }
.figure-head, figcaption { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 5px 4px 12px; }
.board-image { background: #65667d; border: 1px solid #4e514c; }
.board-image img { display: block; width: 100%; height: auto; }
figcaption { justify-content: start; font: .76rem var(--technical); padding-block: 13px 4px; }
figcaption a { margin-left: auto; font-size: 1.2rem; text-decoration: none; }
.signal { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--accent); }
.experience { background: var(--dark); color: var(--paper); }
.section-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; padding-block: 64px 72px; }
h2 { font-size: clamp(3rem, 5.5vw, 5rem); line-height: .95; letter-spacing: -.02em; }
.roles article { border-top: 1px solid #627a6c; padding-block: 19px 24px; }
.role-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
h3 { font-size: clamp(1.22rem, 2vw, 1.65rem); line-height: 1.15; }
.roles .label, .role span { color: #c5d4c4; }
.role { margin: 7px 0 9px; font-weight: 600; }
.role span { display: block; font-weight: 400; }
.roles ul { padding-left: 1.1rem; margin: 0; line-height: 1.55; }
.roles li + li { margin-top: 6px; }
.projects { padding-block: 70px 82px; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 33px; }
.project-grid article { border-top: 1px solid var(--line); padding-top: 14px; scroll-margin-top: 22px; }
.project-grid img { display: block; width: 100%; aspect-ratio: 1.55; object-fit: cover; background: #dfe4d9; }
.project-grid article:nth-child(2) img { object-fit: contain; }
.project-grid .label { margin: 17px 0 8px; color: var(--accent); }
.project-grid article > p:not(.label) { color: var(--muted); margin: 9px 0 16px; }
footer { background: #e6e9dd; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 22px; padding-block: 36px 48px; }
.footer-inner h2 { font-size: 2.7rem; }
@media (max-width: 850px) {
  .shell { width: calc(100% - 48px); }
  .hero { gap: 28px; }
  .section-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 36px); }
  .masthead { min-height: 68px; height: auto; gap: 14px; flex-wrap: wrap; padding-block: 12px; }
  .hero, .project-grid { grid-template-columns: 1fr; }
  .hero { gap: 38px; }
  .hero h1 { font-size: clamp(5.25rem, 19vw, 7rem); }
  .project-grid { gap: 34px; }
}

.skills {
  background: #e8ebe0;
  border-top: 1px solid var(--line);
}
.skill-group {
  border-top: 1px solid var(--line);
  padding-block: 18px 24px;
}
.skill-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.skill-group li {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: .32rem .58rem;
  font: 500 .78rem/1.5 var(--technical);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero .intro { animation: settle-in 560ms ease-out both; }
  .hero .board { animation: settle-in 680ms 90ms ease-out both; }
  .signal { animation: status-pulse 1.1s ease-out 2; }
  .entered { animation: settle-in 520ms ease-out; }
  .button, nav a, .text-link, figure a {
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
  }
  .button:hover, .button:focus-visible, figure a:hover, figure a:focus-visible {
    transform: translateY(-2px);
  }
}
@keyframes settle-in {
  from { opacity: .55; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes status-pulse {
  from { box-shadow: 0 0 0 0 #9b442968; }
  to { box-shadow: 0 0 0 7px transparent; }
}

.role-meta { align-items: center; }
.role-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.role-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: contain;
}
.role-mark-hydro {
  padding: 0;
  overflow: hidden;
}
.role-mark-hydro img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.48);
}

.intro-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}
.portrait {
  display: block;
  width: clamp(72px, 7vw, 96px);
  height: auto;
  aspect-ratio: 1;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.name-line { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .name-letter-pending { opacity: 0; }
}

.rocket-demo {
  margin-top: 24px;
  padding: 14px;
  border: 1px solid #627a6c;
  background: #10271f;
}
.rocket-heading, .rocket-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rocket-heading { justify-content: space-between; flex-wrap: wrap; }
.rocket-heading h4 { margin: 0; font-size: 1rem; }
.rocket-controls button {
  min-width: 34px;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid #819b87;
  background: transparent;
  color: inherit;
  font: 500 .75rem var(--technical);
  cursor: pointer;
}
.rocket-controls button:hover:not(:disabled) { background: #264638; }
.rocket-controls button:disabled { opacity: .45; cursor: default; }
.rocket-controls button:focus-visible { outline: 2px solid #d2f6ab; outline-offset: 3px; }
.rocket-field {
  position: relative;
  overflow: hidden;
  height: 150px;
  margin: 12px 0 8px;
  border: 1px solid #506a5b;
  background:
    linear-gradient(90deg, #284637 1px, transparent 1px),
    linear-gradient(#284637 1px, transparent 1px),
    #132e24;
  background-size: 16px 16px;
}
.rocket-field::after {
  content: "";
  position: absolute;
  bottom: 12px;
  left: calc(50% - 22px);
  width: 44px;
  border-bottom: 2px solid #819b87;
}
.rocket-track {
  position: absolute;
  top: 0;
  bottom: 18px;
  left: 50%;
}
.rocket {
  position: absolute;
  bottom: 0;
  left: -11px;
  width: 22px;
  height: 41px;
  transform: rotate(var(--heading));
  transform-origin: center bottom;
  background: linear-gradient(90deg, #b5caba, #f5f3ea 60%);
  clip-path: polygon(50% 0, 78% 29%, 78% 65%, 100% 90%, 100% 100%, 67% 87%, 33% 87%, 0 100%, 0 90%, 22% 65%, 22% 29%);
}
.rocket::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #325c49;
}
@property --flight-progress {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
@property --drift {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
.rocket-launched .rocket-track {
  --flight-progress: 1;
  transform: translate(
    calc(var(--drift) * var(--flight-progress)),
    calc(-62px * var(--flight-progress))
  );
}
.rocket-launched .rocket { background: linear-gradient(#f5f3ea 76%, #ffbd73 77%); }
.rocket-status { color: #c5d4c4; font-size: .82rem; }

@media (prefers-reduced-motion: no-preference) {
  .rocket { transition: transform 180ms ease-out; }
  .rocket-launched .rocket-track {
    animation: rocket-flight 1.45s ease-in forwards;
    transition: --drift 240ms ease-out;
  }
}
@keyframes rocket-flight {
  from { --flight-progress: 0; }
  to { --flight-progress: 1; }
}

.rocket-target {
  position: absolute;
  bottom: 91px;
  left: calc(50% + var(--target-offset));
  width: 18px;
  height: 18px;
  transform: translateX(-50%);
  border: 1px solid #ffce83;
  border-radius: 50%;
  background: radial-gradient(circle, #ffce83 2px, transparent 3px);
  z-index: 1;
}
.rocket-hit .rocket-target {
  border-color: #d2f6ab;
  background: #d2f6ab66;
  box-shadow: 0 0 16px #d2f6ab99;
}
.rocket-missed .rocket-target {
  border-color: #e8a595;
  background: #e8a59555;
}
.rocket-hit .rocket-status { color: #d2f6ab; }
.rocket-missed .rocket-status { color: #ffc4b3; }
.rocket-controls button[aria-disabled="true"] { opacity: .55; cursor: default; }

.education {
  border-top: 1px solid var(--line);
}
.education-entry {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.education-entry .label, .education-details {
  color: var(--muted);
}
.education-details {
  margin-bottom: 8px;
}

.rocket-disclosure {
  margin-top: 16px;
}
.rocket-disclosure summary {
  display: list-item;
  width: fit-content;
  padding: 7px 11px;
  border: 1px solid #819b87;
  color: inherit;
  font: 500 .75rem/1.45 var(--technical);
  cursor: pointer;
}
.rocket-disclosure summary:hover, .rocket-disclosure[open] summary {
  background: #264638;
}
.rocket-disclosure summary:focus-visible {
  outline: 2px solid #d2f6ab;
  outline-offset: 3px;
}
.rocket-disclosure .rocket-demo {
  margin-top: 10px;
}
