
/* Portfolio design system · v9 · locally hosted fonts and icons. */
@font-face {
  font-family:Inter;
  src:url('fonts/Inter-400.woff2') format('woff2');
  font-style:normal;
  font-weight:400;
  font-display:swap
}
@font-face {
  font-family:Inter;
  src:url('fonts/Inter-500.woff2') format('woff2');
  font-style:normal;
  font-weight:500;
  font-display:swap
}
@font-face {
  font-family:Inter;
  src:url('fonts/Inter-600.woff2') format('woff2');
  font-style:normal;
  font-weight:600;
  font-display:swap
}
@font-face {
  font-family:Inter;
  src:url('fonts/Inter-700.woff2') format('woff2');
  font-style:normal;
  font-weight:700;
  font-display:swap
}
@font-face {
  font-family:Neulis;
  src:url('fonts/Neulis_Sans_Regular.woff2') format('woff2');
  font-style:normal;
  font-weight:400;
  font-display:swap
}
@font-face {
  font-family:Neulis;
  src:url('fonts/Neulis_Sans_Medium.woff2') format('woff2');
  font-style:normal;
  font-weight:500;
  font-display:swap
}
@font-face {
  font-family:Neulis;
  src:url('fonts/Neulis_Sans_Semi_Bold.woff2') format('woff2');
  font-style:normal;
  font-weight:600;
  font-display:swap
}
@font-face {
  font-family:'Material Symbols Rounded';
  src:url('fonts/material-symbols-rounded.woff2') format('woff2');
  font-display:block
}
:root {
  color-scheme:light;
  --ink:#171c1f;
  --text:#4e616b;
  --muted:#61737e;
  --subtle:#83939c;
  --accent:#076eff;
  --accent-ink:#0557c3;
  --canvas:#ffffff;
  --surface:#ffffff;
  --sidebar-bg:linear-gradient(315deg, #f5f9ff, #ffffff);
  --tint:#edf4ff;
  --line:#e1e7eb;
  --hover:#e9f1fb;
  --radius:22px;
  --shadow:0 10px 30px rgba(23,28,31,.055);
  --heading-tracking:-.04em;
}
*,*::before,*::after {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth
}
body {
  margin:0;
  background:var(--canvas);
  color:var(--ink);
  font-family:Neulis,Arial,sans-serif;
  font-size:15px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased
}
h1,h2,h3,h4,.brand-name,.side-link,.filter-button,.tech-tag,.button-primary {
  font-family:Inter,Arial,sans-serif;
}
a {
  color:var(--accent-ink);
}
a:hover {
  color:var(--accent-ink);
}
img {
  max-width:100%
}
button {
  font:inherit
}
button,a {
  -webkit-tap-highlight-color:transparent
}
button:focus-visible,a:focus-visible {
  outline:3px solid var(--accent-ink);
  outline-offset:3px;
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap
}
.material-symbols {
  font-family:'Material Symbols Rounded';
  font-weight:normal;
  font-style:normal;
  font-size:26px;
  line-height:1;
  letter-spacing:normal;
  white-space:nowrap;
  direction:ltr;
  font-feature-settings:'liga';
  -webkit-font-smoothing:antialiased
}
.site-shell {
  width:min(100%,1700px);
  margin:auto;
  padding:26px;
  display:grid;
  grid-template-columns:minmax(295px,350px) minmax(0,1fr);
  gap:30px;
  align-items:start;
}
.sidebar-column {
  position:sticky;
  top:26px;
  align-self:start;
  height:calc(100dvh - 52px);
  min-height:0;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:20px;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:none;
}
.sidebar-column::-webkit-scrollbar {
  display:none
}
.sidebar {
  display:flex;
  flex-direction:column;
  gap:0;
  flex:none;
  padding:28px;
  background:var(--sidebar-bg);
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:var(--shadow);
}
.sidebar-top {
  display:flex;
  flex-direction:column;
  gap:0
}
.brand-name {
  font-size:clamp(27px,2.2vw,35px);
  font-weight:700;
  letter-spacing:-.055em;
  line-height:1.1;
  color:var(--ink);
  overflow-wrap:normal
}
.cofounder-logo {
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:10px;
  min-height:24px;
  color:var(--muted);
  text-decoration:none;
  max-width:max-content;
}
.cofounder-logo span {
  font:600 12px/1 Inter,Arial,sans-serif;
  letter-spacing:.02em;
  color:var(--muted);
  white-space:nowrap;
}
.cofounder-logo img {
  display:block;
  width:auto;
  height:24px;
  object-fit:contain;
}
.sidebar-summary {
  font-size:14px;
  line-height:1.7;
  margin:20px 0 10px;
  color:var(--text);
}
.sidebar-summary strong {
  color:var(--ink);
  font-weight:600
}
.side-nav {
  margin-top:0;
}
.side-links {
  padding:0;
  margin:0;
  list-style:none
}
.side-links li+li {
  border-top:1px solid var(--line)
}
.side-link {
  display:block;
  padding:15px 0;
  text-decoration:none;
  color:var(--text);
  font-family:Neulis,Arial,sans-serif;
  font-size:14px;
  font-weight:400;
  transition:color .2s;
}
.side-link:hover,.side-link[aria-current="page"] {
  color:var(--accent-ink)
}
.side-link[aria-current="page"] {
  color:var(--accent-ink);
  font-weight:500;
}
.sidebar-extras {
  padding:0 8px 2px;
  flex:none;
}
.social-links {
  display:flex;
  gap:10px;
  flex-wrap:wrap
}
.social-links a {
  display:grid;
  place-items:center;
  width:45px;
  height:45px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--sidebar-bg);
  color:var(--accent-ink);
  text-decoration:none;
  transition:background .2s,transform .2s,border-color .2s;
}
.social-links a:hover {
  background:var(--hover);
  border-color:#b9cce2;
  color:var(--accent-ink);
  transform:translateY(-2px);
}
.social-links svg {
  height:19px;
  width:19px
}
.social-links .material-symbols {
  font-size:22px
}
.sidebar-copyright {
  font-size:11px;
  line-height:1.6;
  color:var(--text);
  margin:17px 0 0;
}
.mobile-toggle {
  display:none
}
.site-main {
  min-width:0;
  padding:10px 0 30px;
}
.section-block {
  margin:0 0 50px
}
.section-head {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:18px;
  margin-bottom:25px
}
.section-heading {
  font-size:clamp(40px,4.5vw,62px);
  font-weight:700;
  line-height:1.07;
  letter-spacing:var(--heading-tracking);
  margin:0;
  color:var(--ink);
}
.section-lead {
  font-size:16px;
  line-height:1.7;
  max-width:720px;
  color:var(--muted);
  margin:18px 0 0
}
.heading-meta {
  color:var(--muted);
  font:700 11px/1.5 Neulis,Arial,sans-serif;
  letter-spacing:.05em;
}
.overline,.detail-side-label,.publication-tag {
  font:700 12px/1.5 Neulis,Arial,sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--accent-ink);
}
.filter-row {
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin:0 0 23px
}
.filter-button {
  border:1px solid var(--line);
  background:var(--sidebar-bg);
  border-radius:999px;
  padding:11px 18px;
  font-family:Neulis,Arial,sans-serif;
  font-size:13px;
  line-height:1.25;
  font-weight:600;
  color:var(--text);
  cursor:pointer;
  transition:background .18s,color .18s,border-color .18s,box-shadow .18s;
}
.filter-button:hover {
  background:var(--hover);
  border-color:#b9cce2;
}
.filter-button[aria-pressed="true"] {
  color:#fff;
  background:var(--accent-ink);
  border-color:var(--accent-ink);
  box-shadow:0 4px 14px rgba(7,110,255,.12);
}
.project-list {
  display:grid;
  gap:23px
}
.project-card {
  position:relative;
  isolation:isolate;
  display:block;
  width:100%;
  aspect-ratio:1672/941;
  background:#f1f4f6;
  overflow:hidden;
  border-radius:var(--radius);
  border:1px solid var(--line);
  text-decoration:none;
  color:#fff;
}
.project-card[hidden] {
  display:none
}
.project-image {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  transition:transform .35s
}
.project-card:hover .project-image {
  transform:scale(1.015)
}
.project-card::after {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 40%,rgba(5,10,20,.2) 65%,rgba(5,10,20,1) 100%);
  pointer-events:none
}
.project-top,.project-bottom {
  position:absolute;
  z-index:1;
  left:27px;
  right:27px;
  display:flex;
  justify-content:space-between;
  gap:18px
}
.project-top {
  top:24px
}
.project-bottom {
  bottom:26px;
  align-items:end
}
.project-kind {
  font:600 11px/1.4 Neulis,Arial,sans-serif;
  border:1px solid #fff7;
  padding:8px 12px;
  border-radius:100px;
  background:#171c1fa8;
  color:#fff;
  backdrop-filter:blur(9px);
}
.project-title {
  display:block;
  font-family:Inter,Arial,sans-serif;
  font-size:clamp(21px,2.4vw,31px);
  font-weight:600;
  letter-spacing:-.04em;
  line-height:1.13;
  margin:0 0 8px;
  color:#fff;
  overflow-wrap:anywhere;
  text-shadow:0 2px 12px #0009;
}
.project-caption {
  display:block;
  font-size:13px;
  line-height:1.48;
  max-width:620px;
  margin:0;
  color:#f3f6fa;
  text-shadow:0 2px 8px #000b;
}
.arrow-square {
  width:42px;
  height:42px;
  flex:none;
  display:grid;
  place-items:center;
  border:1px solid #ffffff90;
  border-radius:12px;
  background:#171c1f77;
  color:#fff
}
.arrow-square svg {
  width:19px;
  height:19px
}
.services-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:17px
}
.service-card {
  display:flex;
  flex-direction:column;
  min-height:200px;
  padding:25px 27px;
  border:1px solid var(--line);
  border-radius:23px;
  background:var(--surface);
  box-shadow:var(--shadow);
  transition:border-color .2s,transform .2s;
}
.service-card:hover {
  border-color:#b9cce2;
  transform:translateY(-2px)
}
.service-icon {
  width:45px;
  height:45px;
  border-radius:13px;
  background:var(--tint);
  display:grid;
  place-items:center;
  color:var(--accent-ink);
  margin-bottom:24px;
}
.service-heading {
  margin:auto 0 11px;
  font-size:clamp(20px,2vw,25px);
  line-height:1.25;
  letter-spacing:-.035em;
  color:var(--ink)
}
.service-copy {
  font-size:14px;
  line-height:1.6;
  color:var(--muted);
  margin:0
}
.tech-heading {
  margin:43px 0 15px
}
.tech-heading h2 {
  font-family:Inter,Arial,sans-serif;
  font-size:28px;
  letter-spacing:var(--heading-tracking);
  line-height:1.2;
  margin:0 0 9px;
  font-weight:700;
  color:var(--ink);
}
.tech-heading p {
  margin:0;
  color:var(--muted);
  font-size:14px
}
.tech-list {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:20px 0;
}
.tech-tag {
  display:inline-flex;
  align-items:center;
  gap:9px;
  background:var(--sidebar-bg);
  border:1px solid var(--line);
  border-radius:999px;
  padding:11px 16px;
  color:var(--ink);
  font-family:Neulis,Arial,sans-serif;
  font-size:13px;
  line-height:1.35;
  font-weight:600;
}
.publications-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:19px
}
.publication-card {
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  color:var(--ink);
  text-decoration:none;
  box-shadow:var(--shadow)
}
.publication-card:hover {
  border-color:#b9cce2
}
.publication-thumb {
  aspect-ratio:1672/941;
  position:relative;
  overflow:hidden;
  background:var(--tint);
}
.publication-thumb img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain
}
.publication-thumb::after {
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,transparent 40%,rgba(5,10,20,.08) 65%,rgba(5,10,20,.42) 100%)
}
.publication-body {
  padding:22px;
  display:flex;
  flex-direction:column;
  flex:1
}
.publication-title {
  font-size:20px;
  line-height:1.27;
  letter-spacing:-.035em;
  margin:10px 0;
  color:var(--ink)
}
.publication-description {
  font-size:14px;
  line-height:1.55;
  color:var(--muted);
  margin:0 0 17px
}
.publication-arrow {
  margin-top:auto;
  display:inline-flex;
  gap:7px;
  align-items:center;
  font:600 13px/1.5 Neulis,Arial,sans-serif;
  color:var(--accent-ink);
}
.publication-arrow svg {
  width:16px;
  height:16px
}
.about-copy p {
  font-size:16px;
  line-height:1.8;
  margin:0 0 21px;
  color:var(--text)
}
.about-copy strong {
  font-weight:600;
  color:var(--ink)
}
.about-copy a {
  font-weight:600
}
.detail-card,.contact-panel {
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.project-hero {
  margin:0 0 23px;
  padding:0;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.crumb {
  font:700 12px/1.5 Neulis,Arial,sans-serif;
  text-decoration:none;
  letter-spacing:.055em;
  color:var(--accent-ink);
}
.project-cover {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:1672/941;
  object-fit:contain;
}
.project-detail-cols {
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(220px,.75fr);
  gap:18px
}
.detail-card {
  padding:25px;
  margin-bottom:17px;
  color:var(--text)
}
.detail-card h2 {
  font-size:23px;
  line-height:1.3;
  letter-spacing:-.035em;
  color:var(--ink);
  margin:11px 0
}
.detail-card p {
  line-height:1.7
}
.detail-aside {
  min-width:0
}
.detail-data {
  margin:8px 0 0;
  color:var(--ink);
  font-weight:600
}
.detail-side-label {
  margin-bottom:8px
}
.feature-list {
  list-style:none;
  padding:0;
  margin:13px 0;
  color:var(--text);
  line-height:1.7;
}
.feature-list li {
  display:flex;
  align-items:flex-start;
  gap:11px;
}
.feature-list li::before {
  content:"✓";
  display:grid;
  place-items:center;
  flex:none;
  width:21px;
  height:21px;
  margin-top:2px;
  border-radius:50%;
  background:var(--tint);
  color:var(--accent-ink);
  font:700 12px/1 Inter,Arial,sans-serif;
}
.feature-list li+li {
  margin-top:10px;
}
.button-primary {
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:13px 17px;
  border:0;
  border-radius:11px;
  background:var(--accent-ink);
  color:white;
  text-decoration:none;
  font-size:13px;
  font-weight:600;
  font-family:Neulis,Arial,sans-serif;
  margin-top:20px;
}
.button-primary:hover {
  color:white;
  background:#064ca6
}
.button-primary svg {
  width:17px;
  height:17px
}
.gallery-section {
  margin:37px 0 30px
}
.gallery-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:27px;
}
.gallery-item {
  display:block;
  justify-self:center;
  width:fit-content;
  max-width:100%;
  height:auto;
  padding:0;
  border:0;
  border-radius:20px;
  background:transparent;
  overflow:hidden;
  cursor:zoom-in;
}
.gallery-item img {
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:680px;
  object-fit:contain;
  border-radius:20px;
}
.gallery-item:hover {
  border-color:transparent;
}
.contact-panel {
  padding:25px
}
.contact-panel h3 {
  margin:14px 0;
  letter-spacing:-.04em
}
.lightbox {
  border:0;
  padding:0;
  max-width:95vw;
  max-height:95dvh;
  background:transparent;
  color:white;
  overflow:visible
}
.lightbox::backdrop {
  background:rgba(6,15,28,.92);
  backdrop-filter:blur(8px)
}
.lightbox img {
  display:block;
  max-width:94vw;
  max-height:85dvh;
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:9px
}
.lightbox-close {
  position:absolute;
  right:0;
  top:-52px;
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  padding:0;
  border:1px solid #ffffff80;
  border-radius:50%;
  background:#171c1f;
  color:#fff;
  cursor:pointer
}
.lightbox-close:hover {
  background:var(--accent-ink)
}
/* About: profile and tools are distinct sections with a shared baseline. */
.about-tech {
  margin-top:24px;
  padding-top:28px;
  border-top:1px solid var(--line);
}
.about-tech .tech-heading {
  margin:0 0 14px;
}
.about-tech .tech-list {
  margin:19px 0 0;
}
/* Intro is outside the featured-image card on every project detail. */
.project-intro {
  margin:6px 0 27px;
  max-width:840px;
}
.project-intro .overline {
  display:block;
  margin-top:23px;
}
.project-intro h1 {
  font-family:Inter,Arial,sans-serif;
  font-size:clamp(33px,4.1vw,57px);
  line-height:1.12;
  letter-spacing:var(--heading-tracking);
  color:var(--ink);
  margin:14px 0;
}
.project-intro p {
  max-width:740px;
  font-size:16px;
  line-height:1.7;
  color:var(--muted);
  margin:0;
}
.tech-tag::before {
  content:"";
  width:6px;
  height:6px;
  flex:none;
  border-radius:50%;
  background:var(--accent);
}
.close-svg {
  display:block;
  width:19px;
  height:19px;
}
.gallery-item:focus-visible {
  outline:3px solid var(--accent-ink);
  outline-offset:4px;
}

@media (max-width:1100px) {
  .site-shell { grid-template-columns:280px minmax(0,1fr); gap:20px; padding:18px; }
  .sidebar-column { top:18px; height:calc(100dvh - 36px); }
  .sidebar { padding:22px; }
  .brand-name { font-size:27px; }
  .services-grid { gap:13px; }
  .service-card { padding:22px; }
}
@media (max-width:800px) {
  .site-shell { display:flex; flex-direction:column; gap:0; padding:12px; }
  /* Social links and copyright move after <main> without duplicating content. */
  .sidebar-column { display:contents; }
  .sidebar {
    position:sticky;
    top:10px;
    z-index:50;
    order:0;
    width:100%;
    padding:14px 18px;
    border-radius:19px;
    box-shadow:0 8px 25px rgba(23,28,31,.05);
  }
  .sidebar-top { flex-direction:row; justify-content:space-between; align-items:center; gap:18px; }
  .sidebar-top>div { min-width:0; }
  .brand-name { font-size:clamp(18px,4vw,23px); line-height:1.1; max-width:calc(100vw - 110px); }
  .cofounder-logo,.sidebar-summary { display:none; }
  .mobile-toggle {
    flex:none;
    align-self:flex-start;
    display:grid;
    place-items:center;
    width:43px;
    height:43px;
    border:1px solid var(--line);
    background:var(--surface);
    border-radius:13px;
    color:var(--ink);
    cursor:pointer;
  }
  .mobile-toggle svg { width:22px; height:22px; }
  .side-nav { display:none; }
  .sidebar.is-open .side-nav { display:block; padding-top:17px; }
  .sidebar.is-open { max-height:calc(100dvh - 20px); overflow-y:auto; scrollbar-width:none; }
  .sidebar.is-open::-webkit-scrollbar { display:none; }
  .site-main { order:1; width:100%; padding:25px 4px 35px; }
  .sidebar-extras { order:2; width:100%; margin:8px 0 0; padding:20px 14px 8px; border-top:1px solid var(--line); }
  .project-detail-cols { grid-template-columns:1fr; }
  .project-title { font-size:clamp(20px,3vw,27px); }
}
@media (max-width:600px) {
  .project-card::after {
    background:linear-gradient(180deg,transparent 18%,rgba(5,10,20,.08) 38%,rgba(5,10,20,.84) 76%,#050a14 100%);
  }
  .project-caption { display:none; }
  .project-text { min-width:0; }
  .project-title { font-size:clamp(15px,4.4vw,21px); line-height:1.18; margin:0; }
  .project-top,.project-bottom { left:clamp(12px,4vw,20px); right:clamp(12px,4vw,20px); }
  .project-top { top:clamp(11px,3vw,17px); }
  .project-bottom { bottom:clamp(13px,4vw,20px); gap:10px; }
  .project-kind { font-size:10px; padding:6px 9px; }
  .arrow-square { width:clamp(28px,8vw,36px); height:clamp(28px,8vw,36px); }
}
@media (max-width:560px) {
  .site-shell { padding:10px; }
  .sidebar { top:8px; }
  .brand-name { font-size:18px; max-width:calc(100vw - 104px); }
  .section-heading { font-size:clamp(35px,10vw,48px); }
  .section-lead { font-size:15px; }
  .services-grid,.publications-grid { grid-template-columns:1fr; }
  .service-card { min-height:200px; }
  .lightbox-close { top:-47px; }
}
@media (max-width:340px) {
  .project-bottom .arrow-square { display:none; }
  .project-title { font-size:15px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; }
}

/* Make the existing skip link visible when reached via keyboard. */
.sr-only:focus-visible {
  position:fixed;
  top:12px;
  left:12px;
  width:auto;
  height:auto;
  overflow:visible;
  clip:auto;
  white-space:normal;
  z-index:9999;
  padding:9px 14px;
  background:var(--surface);
  color:var(--accent-ink);
  border-radius:9px;
  box-shadow:var(--shadow);
}
