/* Lachlan Mireylees, portfolio
   TODO: light theme one day, maybe */

:root {
  --bg: #0a0c0f;
  --bg-card: #0f1217;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --text: #ece9e3;
  --muted: #8f959e;
  --dim: #6a7079;
  --accent: #6ee7c8;
  --amber: #f0b45b;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --nav-h: 72px;
  --ease: cubic-bezier(.2, .75, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
figure { margin: 0; }
code { font-family: var(--mono); }

::selection { background: var(--accent); color: #04120e; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--accent);
  color: #04120e;
  font-weight: 500;
}
.skip:focus { top: 16px; }


/* ---- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #04120e;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); background: #8ff0d6; }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .04); border-color: var(--muted); }

.btn-sm { height: 38px; padding: 0 16px; gap: 8px; font-size: 14px; }
.btn-sm .ico { width: 14px; height: 14px; }


/* ---- nav ---- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.nav.scrolled,
.nav.open {
  background: rgba(10, 12, 15, .78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 12px; }
.mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font: 500 12px/1 var(--mono);
  letter-spacing: .04em;
  transition: border-color .25s, color .25s;
}
.brand:hover .mark { border-color: var(--accent); color: var(--accent); }
.brand-name { font-size: 15px; font-weight: 500; }

.links { display: flex; align-items: center; gap: 28px; }
.links a:not(.btn) {
  position: relative;
  font-size: 14px;
  color: var(--muted);
  transition: color .2s;
}
.links a:not(.btn):hover,
.links a.current { color: var(--text); }
.links a.current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
}

.menu-btn {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-btn span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--text);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 23px; }
.nav.open .menu-btn span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav.open .menu-btn span:last-child { top: 19.5px; transform: rotate(-45deg); }


/* ---- hero ---- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 96px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 50% at 78% 38%, rgba(110, 231, 200, .09), transparent 70%),
    radial-gradient(40% 45% at 8% 92%, rgba(96, 120, 255, .07), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: 180px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

#grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 64px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .02);
  font: 400 13px/1.4 var(--mono);
  color: var(--muted);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 2.4s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(110, 231, 200, .5); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(110, 231, 200, 0); }
}

.hero h1 {
  margin-bottom: 32px;
  font-family: var(--serif);
  font-size: clamp(60px, 10.5vw, 150px);
  line-height: .9;
  letter-spacing: -.02em;
}
.hero h1 em { color: var(--accent); }

/* lines slide up from behind a mask on load */
.hero h1 .line {
  display: block;
  overflow: hidden;
  padding: 0 .08em .12em 0;
  margin-bottom: -.12em;
}
.hero h1 .line > span { display: inline-block; animation: line-up 1.1s var(--ease) both; }
.hero h1 .line + .line > span { animation-delay: .1s; }

.lead {
  max-width: 30em;
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 300;
  color: var(--muted);
}
.lead strong { font-weight: 400; color: var(--text); }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero .status,
.hero .lead,
.hero .cta,
.hero .term { animation: fade-up 1s var(--ease) both; }
.hero .lead { animation-delay: .35s; }
.hero .cta { animation-delay: .45s; }
.hero .term { animation-delay: .6s; }

@keyframes line-up { from { transform: translateY(110%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }

/* terminal */
.term {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(15, 18, 23, .8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .75);
  font: 400 13.5px/1.75 var(--mono);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #262b33; }
.term-bar span { margin: 0 auto; padding-right: 40px; font-size: 12px; color: var(--dim); }

.term-body {
  min-height: 300px;
  padding: 20px 22px 24px;
  white-space: pre-wrap;
  word-break: break-word;
}
.term .u { color: var(--accent); }
.term .d { color: var(--dim); }
.term .out { color: var(--muted); }
.term .ok { color: #7fdc8f; }
.term .warn { color: var(--amber); }

.caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: -2px;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 22px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  transform: translateX(-50%);
}
.scroll-hint span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 2px;
  height: 7px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--muted);
  animation: scrolly 1.8s infinite;
}
@keyframes scrolly {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}


/* ---- ticker ---- */

.ticker {
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 45s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span {
  position: relative;
  padding-right: 56px;
  font: 400 14px var(--mono);
  color: var(--muted);
  white-space: nowrap;
}
.ticker span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 26px;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  background: var(--dim);
}
@keyframes marquee { to { transform: translateX(-50%); } }


/* ---- sections ---- */

.section { position: relative; padding: clamp(96px, 12vw, 160px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.grid-2 {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
}
.grid-2 .sec-head {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
  align-self: start;
  margin-bottom: 0;
}

.sec-head { margin-bottom: 64px; }
.sec-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.sec-num {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font: 400 13px var(--mono);
  color: var(--accent);
}
.sec-num::after {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}

.section h2 {
  font-family: var(--serif);
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: -.01em;
}
.sec-sub { max-width: 24em; margin-top: 20px; font-size: 15px; color: var(--muted); }

/* revealed by main.js, only when JS is actually running */
.js .reveal { opacity: 0; }
.js .reveal.in { animation: rise .9s var(--ease) var(--delay, 0s) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}


/* ---- about ---- */

.about-body .big {
  margin-bottom: 1.3em;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 300;
  line-height: 1.45;
}
.about-body p:not(.big) { max-width: 40em; color: var(--muted); }

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 48px 0 0;
  border-top: 1px solid var(--line);
}
.facts div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 24px; }
.facts dt {
  margin-bottom: 6px;
  font: 400 12px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}
.facts dd { margin: 0; }


/* ---- experience ---- */

.tl { border-top: 1px solid var(--line); }
.tl > li {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.tl-when {
  margin: 0;
  padding-top: 6px;
  font: 400 14px var(--mono);
  color: var(--muted);
  transition: color .3s;
}
.tl > li:hover .tl-when { color: var(--accent); }

.tl h3 { font-size: 24px; font-weight: 500; letter-spacing: -.01em; }
.tl h3 span {
  margin-left: 10px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: 400 11px var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: 4px;
  color: var(--dim);
}
.org { margin: 4px 0 18px; font-size: 15px; color: var(--accent); }

.tl-what ul li {
  position: relative;
  max-width: 46em;
  margin-bottom: 8px;
  padding-left: 22px;
  color: var(--muted);
}
.tl-what ul li::before {
  content: "";
  position: absolute;
  top: .8em;
  left: 0;
  width: 10px;
  height: 1px;
  background: var(--dim);
}

.tags, .stack { display: flex; flex-wrap: wrap; gap: 6px; }
.tags { margin-top: 22px; }
.tags span,
.stack li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 400 12px var(--mono);
  color: var(--muted);
}


/* ---- projects ---- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.filters button {
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.filters button:hover { color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.proj {
  --x: 50%;
  --y: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
  transition: border-color .3s;
}
.proj[hidden] { display: none; }
.proj::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--x) var(--y), rgba(110, 231, 200, .07), transparent 45%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.proj > * { position: relative; }
.proj:hover { border-color: var(--line-2); }
.proj:hover::before { opacity: 1; }

.proj-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.proj-idx { font: 400 12px var(--mono); color: var(--dim); }
.proj-links { display: flex; gap: 2px; margin-right: -8px; }
.proj-links a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--muted);
  transition: color .2s, background-color .2s;
}
.proj-links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.proj-links .ico { width: 17px; height: 17px; }

.proj h3 { margin-bottom: 12px; font-size: 21px; font-weight: 500; letter-spacing: -.01em; }
.proj p { flex: 1; font-size: 15px; color: var(--muted); }
.stack { margin-top: 20px; }

/* featured card */
.proj.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 40px;
}
.feat-copy { display: flex; flex-direction: column; }
.proj.featured h3 { font-family: var(--serif); font-size: clamp(36px, 4vw, 48px); font-weight: 400; line-height: 1; margin-bottom: 18px; }

.outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 12px 0 6px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.outcomes li { font-size: 13px; line-height: 1.45; color: var(--muted); }
.outcomes strong {
  display: block;
  margin-bottom: 8px;
  font: 400 34px/1 var(--serif);
  color: var(--text);
}

.topo-wrap {
  display: grid;
  place-items: center;
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: #0c0f13;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
}
.topo { width: 100%; max-width: 440px; height: auto; overflow: visible; }
.topo .node rect { fill: #11151b; stroke: var(--line-2); }
.topo .core rect { fill: rgba(110, 231, 200, .07); stroke: var(--accent); }
.topo .ids rect { stroke-dasharray: 2 3; }
.topo text { font: 500 11px var(--mono); fill: var(--text); text-anchor: middle; }
.topo text.sub { font-size: 10px; font-weight: 400; fill: var(--dim); }

.topo .wire path { fill: none; stroke: var(--line-2); }
.topo .wire .tap { stroke-dasharray: 2 3; }
.topo .flow path {
  fill: none;
  stroke-width: 1.5;
  stroke-dasharray: 3 9;
  animation: flow 1.4s linear infinite;
}
.topo .atk { stroke: var(--amber); }
.topo .tel { stroke: var(--accent); }
.topo .wan { stroke: var(--muted); }
.topo .legend path { fill: none; stroke-width: 2; }
.topo .legend text { font-size: 10px; font-weight: 400; fill: var(--muted); text-anchor: start; }
@keyframes flow { to { stroke-dashoffset: -12; } }


/* ---- research ---- */

.papers { border-top: 1px solid var(--line); }
.paper { padding: 34px 0; border-bottom: 1px solid var(--line); }

.paper-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  font: 400 12px var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim);
}
.kind { color: var(--accent); }

.paper h3 {
  max-width: 30em;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.3;
  letter-spacing: -.01em;
}
.venue { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

.paper details { margin-top: 18px; }
.paper summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  font: 400 13px var(--mono);
  color: var(--muted);
  cursor: pointer;
  transition: color .2s;
}
.paper summary::-webkit-details-marker { display: none; }
.paper summary:hover { color: var(--text); }
.paper summary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  font-size: 12px;
  line-height: 1;
}
.paper details[open] summary::before { content: "\2212"; }
.paper details p {
  max-width: 44em;
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.paper-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 18px; }
.paper-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
  transition: color .2s, border-color .2s;
}
.paper-links a:hover { color: var(--accent); border-color: var(--accent); }
.paper-links .ico { width: 13px; height: 13px; }


/* ---- skills ---- */

.skills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.skill-col {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.skill-col h3 {
  margin-bottom: 20px;
  font: 500 12px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.skill-col li { padding: 7px 0; font-size: 15px; }
.skill-col li span { display: block; font-size: 13px; color: var(--dim); }

.sub-title {
  margin: 72px 0 24px;
  font: 500 12px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cert {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .3s;
}
.cert:hover { border-color: var(--line-2); }
.cert-status {
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: 400 11px var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim);
}
.cert-status.is-done { color: var(--accent); border-color: rgba(110, 231, 200, .3); }
.cert h4 { margin: 0 0 6px; font-size: 17px; font-weight: 500; line-height: 1.3; }
.cert p { margin: 0; font-size: 14px; color: var(--muted); }


/* ---- contact ---- */

.contact { overflow: hidden; }
.contact h2 {
  max-width: 13em;
  margin-bottom: 64px;
  font-size: clamp(48px, 7vw, 104px);
  letter-spacing: -.02em;
}
.contact h2 em { color: var(--accent); }

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.email { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.email-link {
  font-size: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line-2);
  transition: border-color .25s, color .25s;
}
.email-link:hover { color: var(--accent); border-color: var(--accent); }

.copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: none;
  font: 400 12px var(--mono);
  color: var(--muted);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.copy:hover, .copy.done { color: var(--accent); border-color: var(--accent); }
.copy .ico { width: 14px; height: 14px; }

.socials { display: flex; flex-wrap: wrap; gap: 28px; }
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--muted);
  transition: color .2s;
}
.socials a:hover { color: var(--text); }
.socials .ico { width: 13px; height: 13px; }

.pgp { margin: 48px 0 0; font: 400 12px var(--mono); color: var(--dim); }
.pgp code { margin-left: 6px; color: var(--muted); word-spacing: 2px; }
.pgp a { border-bottom: 1px solid var(--line-2); }
.pgp a:hover { color: var(--text); }


/* ---- footer ---- */

.foot { padding: 28px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot p { margin: 0; }
.foot a:hover { color: var(--text); }


/* ---- responsive ---- */

@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .term { max-width: 560px; }

  .grid-2 { grid-template-columns: 1fr; gap: 48px; }
  .grid-2 .sec-head { position: static; }
  .tl > li { grid-template-columns: 1fr; gap: 12px; }

  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .proj.featured { grid-template-columns: 1fr; gap: 36px; padding: 32px; }

  .skills, .certs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .menu-btn { display: block; }

  .links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 12, 15, .97);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.open .links { opacity: 1; visibility: visible; transform: none; }

  .links a:not(.btn) {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }
  .links a.current::after { display: none; }
  .links .btn { margin-top: 24px; }
}

@media (max-width: 600px) {
  .wrap { width: min(1180px, 100% - 40px); }
  .hero { padding-top: calc(var(--nav-h) + 28px); }
  .scroll-hint { display: none; }
  .term { font-size: 12px; }
  .term-body { min-height: 0; }
  .brand-name { display: none; }

  .proj-grid, .skills, .certs, .facts { grid-template-columns: 1fr; }
  .proj.featured { padding: 24px; }
  .outcomes { grid-template-columns: 1fr; gap: 14px; }
  .outcomes li { display: flex; align-items: baseline; gap: 16px; }
  .outcomes strong { min-width: 76px; margin: 0; font-size: 28px; }

  .filters { border-radius: 14px; }
  .contact-row { flex-direction: column; align-items: flex-start; }
}

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

/* someone will print it, so make that look decent */
@media print {
  :root {
    --bg: #fff;
    --bg-card: #fff;
    --text: #111;
    --muted: #444;
    --dim: #666;
    --line: #ddd;
    --line-2: #ccc;
    --accent: #0a6b57;
  }
  .nav, #grid, .term, .ticker, .scroll-hint, .filters,
  .proj-links, .topo-wrap, .copy, .skip, .foot a { display: none !important; }
  .hero { min-height: 0; padding: 0 0 24px; }
  .hero::before, .hero::after { display: none; }
  .section { padding: 28px 0; }
  .grid-2 .sec-head { position: static; }
  .proj[hidden] { display: flex; }
  .js .reveal { opacity: 1; animation: none; }
  .paper details p { display: block; }
}

