:root {
  color-scheme:dark;
  --background:#031427;
  --panel:#000f21;
  --surface:#0b1c30;
  --text:#d3e4fe;
  --muted:#c4c6cf;
  --primary:#adc8f5;
  --on-primary:#133155;
  --mint:#8ad5ba;
  --border:#43474e;
  font-family:'Instrument Sans',Arial,sans-serif;
  font-size:15px;
  line-height:1.533;
  color:var(--text);
  background:var(--background);
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
a {
  color:inherit;
  text-decoration:none;
}
a:hover {
  color:var(--primary);
}
button {
  font:inherit;
}
p,h1,h2,h3,figure,dl,dd {
  margin:0;
}
p,dd,figcaption {
  color:var(--muted);
}
h1,h2,h3,.brand {
  font-family:'Red Hat Text',Arial,sans-serif;
}
h1 {
  font-size:44px;
  line-height:52px;
  letter-spacing:-.6px;
  font-weight:700;
  text-wrap:balance;
}
h2 {
  font-size:32px;
  line-height:40px;
  letter-spacing:-.4px;
}
h3,.identity h2 {
  font-size:22px;
  line-height:28px;
  letter-spacing:-.1px;
  font-weight:600;
}
img {
  max-width:100%;
  display:block;
}
svg {
  flex-shrink:0;
}
a,button {
  touch-action:manipulation;
}
a:focus-visible,button:focus-visible {
  outline:3px solid var(--primary);
  outline-offset:4px;
}
section[id],#resume {
  scroll-margin-top:100px;
}
.container {
  width:100%;
  max-width:1280px;
  margin-inline:auto;
  padding-inline:24px;
}
.small,figcaption {
  font-size:12px;
  line-height:16px;
}
.text-link {
  color:var(--primary);
}
.mint {
  color:var(--mint);
}
.site-header {
  position:sticky;
  top:0;
  z-index:20;
  background:var(--panel);
  border-bottom:1px solid var(--border);
}
.header-inner {
  min-height:65px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:18px;
  font-weight:600;
  white-space:nowrap;
}
.monogram {
  width:36px;
  height:36px;
  border-radius:8px;
  background:var(--primary);
  color:var(--on-primary);
  display:grid;
  place-items:center;
  font-size:16px;
}
.header-inner nav {
  display:flex;
  align-items:center;
  gap:16px;
}
.header-inner nav a {
  padding:12px;
  border-radius:8px;
  font-size:14px;
  font-weight:600;
  color:var(--muted);
}
.header-inner nav .text-link {
  color:var(--primary);
}
.header-inner nav a:hover {
  background:var(--surface);
  color:var(--primary);
}
.menu-toggle {
  display:none;
}
.panel {
  border:1px solid var(--border);
  border-radius:16px;
  background:var(--panel);
}
.hero {
  padding-top:32px;
  padding-bottom:56px;
  display:grid;
  grid-template-columns:2.06fr 1fr;
  gap:24px;
}
.hero-copy {
  padding:32px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.hero-badges,.actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:16px;
}
.hero-badges {
  gap:8px;
}
.badge {
  display:inline-flex;
  align-items:center;
  gap:6px;
  align-self:flex-start;
  font-size:12px;
  line-height:16px;
  font-weight:600;
  border-radius:999px;
  padding:4px 12px;
  background:var(--surface);
  color:var(--primary);
  width:fit-content;
}
.badge.public {
  background:#025e49;
  color:var(--mint);
}
.badge.private {
  background:#1b2b3f;
  color:var(--text);
  border:1px solid var(--border);
}
.hero-description {
  font-size:17px;
  line-height:26px;
  max-width:65ch;
}
.hero-actions {
  padding-top:16px;
  margin-top:0;
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:10px 20px;
  border-radius:8px;
  font-size:14px;
  line-height:20px;
  font-weight:600;
  border:1px solid transparent;
  transition:background-color .1s ease-out,border-color .1s ease-out;
}
.button.primary {
  background:var(--primary);
  color:var(--on-primary);
}
.button.primary:hover {
  background:#c6dcff;
}
.button.secondary {
  border-color:var(--border);
  background:var(--panel);
}
.button.secondary:hover {
  background:var(--surface);
  border-color:var(--primary);
}
.full-width {
  width:100%;
}
.identity {
  padding:24px;
  background:var(--surface);
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:16px;
}
.identity img,.mobile-identity img {
  object-fit:cover;
  border:1px solid var(--border);
  border-radius:12px;
  flex-shrink:0;
}
.identity img {
  width:min(100%,240px);
  height:auto;
  aspect-ratio:1;
  align-self:center;
  object-position:center;
}
.identity-caption {
  text-align:center;
}
.identity-caption p {
  margin-top:4px;
}
.mobile-identity {
  display:none;
}
.section {
  padding-bottom:56px;
}
.section-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:24px;
}
.section-heading p {
  margin-top:4px;
}
.section-note {
  max-width:none;
  text-align:right;
}
.tools-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
}
.project-card {
  padding:24px;
  display:flex;
  flex-direction:column;
  gap:16px;
  min-width:0;
}
.project-card:hover {
  border-color:#778ca9;
}
.project-visual {
  height:176px;
  border:1px solid var(--border);
  border-radius:8px;
  overflow:hidden;
  background:var(--surface);
}
.project-visual img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.calculator-visual img {
  object-fit:contain;
}
.coaster-visual {
  background:#20332b;
}
.no-vig-visual {
  background:#fff;
}
.coaster-visual img,.no-vig-visual img {
  object-fit:contain;
}
figcaption {
  margin-top:4px;
}
.project-copy p {
  margin-top:8px;
}
.card-actions {
  border-top:1px solid var(--border);
  padding-top:16px;
  margin-top:auto;
}
.card-actions.actions {
  gap:8px;
}
.card-actions .secondary {
  padding-inline:16px;
}
.private-link {
  min-height:44px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:14px;
  color:var(--muted);
  padding:8px 4px;
}
.analysis-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
}
.analysis-grid .project-visual {
  height:208px;
}
.analysis-grid img {
  object-position:top;
}
.about-band {
  background:var(--surface);
  border-block:1px solid var(--border);
  padding-block:56px;
}
.about-card {
  padding:32px;
}
.about-title {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
}
.readable {
  max-width:65ch;
}
.background-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
  border-top:1px solid var(--border);
  padding-top:24px;
  margin-top:24px;
}
.background-grid h3 {
  font-size:18px;
  line-height:26px;
  margin-bottom:8px;
}
.experience-entry + .experience-entry {
  margin-top:24px;
}
.experience-entry h4 {
  margin:0 0 8px;
  font-family:'Red Hat Text',Arial,sans-serif;
  font-size:16px;
  line-height:24px;
  font-weight:600;
}
.experience-areas {
  margin-top:16px;
}
dt {
  font-weight:600;
  font-size:14px;
}
dd {
  margin-bottom:10px;
}
.credentials {
  border-top:1px solid var(--border);
  padding-top:24px;
  margin-top:24px;
}
.contact-section {
  padding-block:56px;
}
.contact-card {
  padding:32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.contact-card p {
  margin-top:4px;
}
.contact-card .button {
  flex-shrink:0;
  background:var(--surface);
}
.contact-actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:16px;
}
.site-footer {
  background:var(--panel);
  border-top:1px solid var(--border);
}
.footer-inner {
  padding-block:24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:12px;
}
.footer-inner a {
  padding:10px;
}
.skip-link {
  position:fixed;
  left:16px;
  top:-100px;
  padding:12px 16px;
  z-index:50;
  background:var(--primary);
  color:var(--on-primary);
  border-radius:8px;
}
.skip-link:focus {
  top:16px;
}
@media(min-width:761px) and (max-width:1050px) {
  .hero {
    grid-template-columns:1.6fr 1fr;
  }
  h1 {
    font-size:36px;
    line-height:44px;
  }
  .tools-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .header-inner nav {
    gap:0;
  }
  .header-inner nav a {
    padding-inline:9px;
  }
}
@media(max-width:760px) {
  .container {
    padding-inline:16px;
  }
  .header-inner {
    min-height:69px;
    flex-wrap:wrap;
    gap:0;
  }
  .monogram {
    width:32px;
    height:32px;
  }
  .menu-toggle:not([hidden]) {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    padding:0;
    border:1px solid var(--border);
    border-radius:8px;
    color:var(--text);
    background:var(--panel);
  }
  .header-inner nav {
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding-block:12px;
    border-top:1px solid var(--border);
  }
  .header-inner nav a {
    min-height:44px;
  }
  .header-inner nav[data-collapsed="true"] {
    display:none;
  }
  .hero {
    display:block;
    padding-top:24px;
    padding-bottom:32px;
  }
  .hero-copy {
    padding:24px;
    gap:16px;
  }
  .hero-badges,.identity {
    display:none;
  }
  .mobile-identity {
    display:flex;
    align-items:center;
    gap:16px;
  }
  h1 {
    font-size:30px;
    line-height:36px;
    letter-spacing:-.4px;
  }
  h2 {
    font-size:24px;
    line-height:30px;
    letter-spacing:-.2px;
  }
  .hero-description {
    font-size:15px;
    line-height:23px;
  }
  .hero-actions {
    margin:0;
    padding:0;
  }
  .hero-actions .primary {
    width:100%;
  }
  .hero-actions .secondary {
    display:none;
  }
  .hero-actions .primary span {
    display:none;
  }
  .section {
    padding-bottom:32px;
  }
  .section-heading {
    margin-bottom:16px;
    display:block;
  }
  .section-note {
    max-width:none;
    text-align:left;
    margin-top:8px!important;
  }
  .tools-grid,.analysis-grid {
    grid-template-columns:1fr;
    gap:16px;
  }
  .project-card {
    padding:16px;
  }
  .project-visual {
    height:160px;
  }
  .calculator-visual {
    height:auto;
    aspect-ratio:952/488;
  }
  .analysis-grid .project-visual {
    height:192px;
  }
  .coaster-mark {
    height:128px;
  }
  .wave {
    font-size:30px;
    line-height:36px;
  }
  .about-band {
    padding-block:0;
    background:var(--background);
    border:0;
  }
  .about-card {
    padding:16px;
  }
  .about-title {
    display:block;
  }
  .about-title p {
    margin-top:8px;
  }
  .background-grid {
    grid-template-columns:1fr;
    gap:24px;
  }
  .contact-section {
    padding-block:32px;
  }
  .contact-card {
    padding:16px;
    flex-direction:column;
    align-items:stretch;
    gap:12px;
  }
  .contact-actions {
    flex-direction:column;
    align-items:stretch;
    gap:12px;
  }
  .contact-card .button {
    justify-content:flex-start;
  }
  .footer-inner {
    padding-block:16px;
  }
  .button {
    padding-inline:16px;
  }
}
@media(prefers-reduced-motion:no-preference) {
  html {
    scroll-behavior:smooth;
  }
}

/* Keep the three contact actions together as the contact band wraps. */
.contact-card {
  flex-wrap:wrap;
}
.contact-actions {
  flex-shrink:0;
}
.contact-actions .button {
  padding-inline:16px;
}
