:root {
  --page: #ececec;
  --frame: #ffffff;
  --card: #f2f2f2;
  --surface: #fafafa;
  --ink: #111111;
  --ink-2: #555555;
  --ink-3: #9a9a9a;
  --line: #e4e4e4;
  --radius-frame: 40px;
  --radius-card: 28px;
  --radius-inner: 20px;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* Floating nav: distance from the screen edge, and the space pages
     reserve below their content so nothing ends up under it */
  --dock-bottom: 20px;
  --dock-clearance: 120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- Frame + cards ---------- */

.frame {
  max-width: 1120px;
  margin: 40px auto var(--dock-clearance);
  padding: 10px;
  background: var(--frame);
  border-radius: var(--radius-frame);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 36px 34px;
  scroll-margin-top: 24px;
}

.label {
  margin: 0 0 24px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.muted { color: var(--ink-2); max-width: 36em; margin: 0; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 36px 48px;
  align-items: stretch;
}

.hero-main .lede { max-width: 26em; }

/* Education panel: top-aligned with the headshot. Gaps are tuned so the
   column's bottom lands near the bottom of the buttons; the two schools sit
   closer together than the Open To / Experience cards. */
.edu { align-self: start; }

/* Same small gray mono style as the OPEN TO / PREVIOUSLY AT labels */
.edu .label {
  margin-bottom: 12px;
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-2);
}

.edu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.school {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px 14px 14px;
  background: #fff;
  border-radius: var(--radius-inner);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.school:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06); }

.seal {
  flex: none;
  width: 64px;
  height: 64px;
  padding: 5px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  object-fit: contain;
}

.school-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.school-text strong { font-weight: 600; font-size: 17px; line-height: 1.3; }
.school-text span { color: var(--ink-2); font-size: 15px; line-height: 1.4; margin-top: 2px; }

/* Matches .job time in Experience */
.school-text .edu-years {
  margin-top: 6px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  color: #858585;
}

/* Small cards: Open To, Experience */
.mini-card {
  margin-top: 18px;
  padding: 10px 18px 12px;
  background: #fff;
  border-radius: var(--radius-inner);
}
.mini-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--card);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}
.pill:has(.logo-chip) { padding-left: 4px; }

/* Every logo sits in the same 18px rounded tile */
.logo-chip {
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
}
.logo-chip img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Transparent logos get breathing room so they aren't cropped */
.logo-pad img { width: 14px; height: 14px; }

/* Experience card: NOW / BEFORE rows; the grid keeps both labels the same width */
.exp-rows {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px 12px;
}
.exp-when {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #858585;
}

.avatar {
  width: 115px;
  height: 115px;
  background: #fff;
  border: 4px solid #fff;
  border-radius: 26px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
}

.name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 26px 0 2px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
}


.role { margin: 0; color: var(--ink-2); font-size: 16px; }

.lede { max-width: 30em; margin: 34px 0 30px; font-size: 19px; line-height: 1.6; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: #111; color: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18); }
.btn-light { background: #fff; color: var(--ink); }

/* ---------- Selected work ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.work {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px 14px 16px;
  background: var(--surface);
  border-radius: var(--radius-inner);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.work:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07); }

.thumb {
  aspect-ratio: 1.65;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.thumb span {
  color: #fff;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  text-align: center;
  padding: 0 12px;
}
/* Project art — swap for real screenshots via background-image: url(...) */
.thumb span { font-size: 24px; }
.thumb:has(img) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.thumb img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }

.thumb-cargo {  /* ocean route grid */
  background-image:
    radial-gradient(circle at 25% 70%, rgba(56, 189, 248, 0.55) 0%, transparent 40%),
    radial-gradient(circle at 80% 25%, rgba(251, 146, 60, 0.45) 0%, transparent 35%),
    linear-gradient(160deg, #0b2440 0%, #0d3a5c 55%, #081a2e 100%);
}
.thumb-bank { background-image: radial-gradient(circle at 70% 30%, #d9c27a 0%, transparent 42%), linear-gradient(160deg, #10302a 0%, #174a3c 55%, #0b201c 100%); }
.thumb-edu { background-image: radial-gradient(circle at 30% 25%, #8aa2ff 0%, transparent 45%), linear-gradient(160deg, #4f6ef7 0%, #3a54d6 60%, #2c3fa8 100%); }
.thumb-llm { background-image: radial-gradient(circle at 70% 70%, #a78bfa 0%, transparent 45%), linear-gradient(160deg, #1e1b3a 0%, #2d2566 55%, #15122b 100%); }
.thumb-hack {  /* dark tech green */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 70% 25%, #76b900 0%, transparent 45%),
    linear-gradient(160deg, #0f1a12 0%, #13261a 60%, #0b120d 100%);
  background-size: 22px 22px, 22px 22px, auto, auto;
}
.thumb-card {  /* CardVantage palette: midnight blue, gold, cream */
  background-image:
    linear-gradient(115deg, transparent 42%, rgba(246, 239, 224, 0.16) 50%, transparent 58%),
    radial-gradient(circle at 78% 22%, #d4af61 0%, transparent 38%),
    linear-gradient(160deg, #0f1c3f 0%, #172a5c 55%, #0a1430 100%);
}
.thumb-card span { color: #f6efe0; }
.thumb-ev { background-image: radial-gradient(circle at 30% 30%, #7fd1b9 0%, transparent 45%), linear-gradient(160deg, #1f5e57 0%, #16403f 55%, #0e2a2c 100%); }

/* Row under the project grid: "View all" link + 3D printing teaser */
.work-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 24px;
}
.work-footer .more { margin-top: 0; }

.maker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  background: #fff;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.maker:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06); }
.maker-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #111;
  color: #fff;
}
.maker-icon svg { width: 20px; height: 20px; }
.maker-text { display: flex; flex-direction: column; line-height: 1.3; }
.maker-text strong { font-size: 14px; font-weight: 600; }
.maker-text span { font-size: 13px; color: var(--ink-2); }
.maker-arrow { margin-left: 4px; font-weight: 600; transition: transform 0.15s ease; }
.maker:hover .maker-arrow { transform: translateX(3px); }

.work h3 { margin: 18px 0 4px; font-size: 22px; font-weight: 600; }

.blurb {
  flex: 1;  /* takes the spare height so tags line up across cards */
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}

.tag { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }

.more {
  display: inline-flex;
  gap: 6px;
  margin-top: 28px;
  font-weight: 600;
  font-size: 18px;
}
.more span { transition: transform 0.15s ease; }
.more:hover span { transform: translateX(3px); }

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 40px;
  align-items: center;
}

.portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-inner);
}

.about .label { margin-bottom: 18px; }
.about .body { margin: 0; max-width: 34em; font-size: 18px; line-height: 1.65; }
.about .more { margin-top: 20px; }

/* ---------- About page ---------- */

.about-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.about-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 5px solid #fff;
  border-radius: 28px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.back {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 22px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
}
.back:hover { color: var(--ink); }

.about-hero .label { margin-bottom: 10px; font-weight: 500; font-size: 12px; color: var(--ink-2); }

.about-title { margin: 0 0 2px; font-size: 36px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }

.prose { margin: 24px 0 28px; max-width: 34em; }
.prose p { margin: 0 0 14px; font-size: 18px; line-height: 1.65; }
.prose p:last-child { margin-bottom: 0; }

.strengths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.strength { padding: 18px 20px; background: #fff; border-radius: var(--radius-inner); }
.strength p { margin: 0; font-size: 16px; line-height: 1.55; }

.journey { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.journey .mini-label { margin-bottom: 12px; }

.about-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.about-cta .label { margin-bottom: 12px; }

/* Pills that sit directly on a gray card */
.pills-light .pill { background: #fff; font-size: 13px; padding: 5px 12px; }
.pill-emoji { font-size: 14px; line-height: 1; }

.tile-title { margin: 0 0 6px; font-size: 18px; font-weight: 600; line-height: 1.3; }
.strength .mini-label { margin-bottom: 10px; }
.tile-pills { margin-top: 14px; }

/* Experience timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.t-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 16px 22px 16px 16px;
  background: #fff;
  border-radius: var(--radius-inner);
}
.t-body strong { display: block; font-size: 18px; font-weight: 600; line-height: 1.3; }
.t-org { display: block; margin-top: 2px; color: var(--ink-2); font-size: 15px; }
.t-body p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; max-width: 44em; }
.t-item time { font-family: var(--mono); font-weight: 500; font-size: 14px; white-space: nowrap; padding-top: 3px; }

.logo.logo-sm { width: 56px; height: 56px; border-radius: 14px; }
.logo-sm.logo-mono { font-size: 24px; }

.school-col { align-items: flex-start; }
.school-col .tile-pills { margin-top: 12px; }
.school-col .pill { white-space: normal; }

/* ---------- Projects page ---------- */

.proj-intro { margin: 10px 0 0; max-width: 36em; font-size: 18px; color: var(--ink-2); }
.projects-head .label { margin-bottom: 10px; font-weight: 500; font-size: 12px; color: var(--ink-2); }

.proj-list { display: grid; gap: 18px; }

.proj {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: start;
  padding: 16px 24px 20px 16px;
  background: #fff;
  border-radius: var(--radius-inner);
  scroll-margin-top: 24px;
}
.proj .thumb { border-radius: 14px; }

.proj-title { margin: 0 0 8px; font-size: 24px; font-weight: 600; line-height: 1.25; }
.proj-desc { margin: 0 0 12px; font-size: 16px; line-height: 1.6; }
.proj-points { margin: 0 0 16px; padding-left: 18px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.proj-points li { margin-bottom: 4px; }

.proj-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.15s ease;
}
.proj-link:hover { opacity: 0.85; }
.proj-link + .proj-link { background: var(--card); color: var(--ink); }
.proj-link svg { width: 16px; height: 16px; }

/* Digital / Physical tabs */
.tabs {
  display: inline-flex;
  gap: 4px;
  margin-top: 24px;
  padding: 4px;
  background: #fff;
  border-radius: 999px;
}
.tab {
  height: 38px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: #111; color: #fff; }

/* Physical: 3D print gallery */
.panel-intro { margin: 0 0 20px; max-width: 40em; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.print-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.print { padding: 12px 12px 16px; background: #fff; border-radius: var(--radius-inner); }
.print-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
}
.print-photo img { width: 100%; height: 100%; object-fit: cover; }
.print-photo svg { width: 56px; height: 56px; color: #b5b5b5; }
.print .mini-label { margin-bottom: 6px; }
.print h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.print p { margin: 0 0 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.print-meta { font-family: var(--mono); font-size: 12px; font-weight: 500; color: #858585; }
.print-empty .print-photo { border: 2px dashed #d6d6d6; background: #fafafa; }

/* ---------- 404 ---------- */
.notfound { padding-top: 56px; padding-bottom: 56px; }
.notfound .actions { margin-top: 28px; }

/* ---------- Experience ---------- */

.jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }

.job {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 26px 16px 16px;
  background: #fff;
  border-radius: var(--radius-inner);
}

.logo {
  flex: none;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 18px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}
.logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Transparent logos/seals: contained with a little breathing room */
.logo-img { background: #fff; }
.logo-img img { width: 78%; height: 78%; object-fit: contain; }
/* Monogram tile for companies without a usable logo */
.logo-mono { background: #111; color: #fff; font-weight: 700; font-size: 30px; }

.job-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.job-text strong { font-weight: 600; font-size: 19px; }
.job-text span { color: var(--ink-2); }

.job time { font-family: var(--mono); font-weight: 500; font-size: 17px; white-space: nowrap; }

/* ---------- Contact ---------- */

.socials { display: flex; gap: 22px; margin: 24px 0 4px; }
.socials a { width: 28px; height: 28px; color: var(--ink); transition: opacity 0.15s ease; }
.socials a:hover { opacity: 0.6; }
.socials svg { width: 100%; height: 100%; }


/* ---------- Dock ---------- */

.dock {
  position: fixed;
  left: 50%;
  bottom: var(--dock-bottom);
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
  padding: 8px 10px;
  /* Frosted glass: stays readable over images and text */
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 66px;
  padding: 5px 7px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, color 0.15s ease;
}
.dock svg { width: 24px; height: 24px; }
.dock a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.dock a.active { color: #fff; background: rgba(255, 255, 255, 0.15); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .print-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proj { grid-template-columns: 1fr; gap: 18px; padding: 14px 14px 18px; }
  .about-hero { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { max-width: 260px; }
  .strengths, .journey { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .print-grid { grid-template-columns: minmax(0, 1fr); }
  .t-item { grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; padding: 14px; }
  .t-item time { grid-column: 2; grid-row: 1; justify-self: start; padding: 0; font-size: 12px; color: #858585; }
  .t-body { grid-column: 2; grid-row: 2; }
  .t-item .logo { grid-row: 1 / span 2; }
  .about-title { font-size: 28px; }
  .prose p { font-size: 16px; }
  body { font-size: 16px; }
  .frame { margin: 0 0 var(--dock-clearance); padding: 8px; border-radius: 0 0 28px 28px; }
  .card { padding: 26px 20px; border-radius: 22px; }
  .name { font-size: 26px; }
  .lede { font-size: 17px; margin: 24px 0 22px; }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .portrait { max-width: 220px; }
  .job { gap: 14px; padding: 12px 16px 12px 12px; flex-wrap: wrap; }
  .logo { width: 56px; height: 56px; border-radius: 14px; }
  .logo-mono { font-size: 22px; }
  .job time { font-size: 14px; }
  :root { --dock-bottom: 12px; --dock-clearance: 100px; }
  .dock { padding: 6px; }
  .dock a { min-width: 58px; padding: 5px 6px; }
  .dock svg { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
