@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Manrope:wght@400;500;600&display=swap');

:root {
  --ink: #f1f0eb;
  --muted: #858582;
  --dim: #555553;
  --ground: #0a0a0a;
  --surface: #111110;
  --line: rgba(241, 240, 235, 0.15);
  --strong-line: rgba(241, 240, 235, 0.32);
  --sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'DM Mono', monospace;
  color: var(--ink);
  background: var(--ground);
  font-family: var(--sans);
  font-synthesis: none;
}

@layer base {
  * {
    box-sizing: border-box;
  }

  html {
    background: var(--ground);
    scroll-behavior: smooth;
  }

  body {
    margin: 0;
    min-width: 320px;
    background: var(--ground);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
  }

  body.panel-open {
    overflow: hidden;
  }

  ::selection {
    color: var(--ground);
    background: var(--ink);
  }

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

  button {
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
  }

  :focus-visible {
    outline: 1px solid var(--ink);
    outline-offset: 5px;
  }
}

.site-header {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  padding: 0 2.4vw;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand-avatar {
  width: 29px;
  height: 29px;
  object-fit: cover;
  object-position: 50% 16%;
  border: 1px solid var(--line);
  background: #15120f;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 44px);
}

.nav-link {
  position: relative;
  padding: 8px 0;
  color: #aaa9a5;
  font-size: 13px;
  transition: color 180ms ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: '';
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.home-hero {
  display: flex;
  min-height: calc(100svh - 84px);
  padding: 6vh 2.4vw 3.2vh;
  flex-direction: column;
  justify-content: space-between;
}

.hero-meta {
  display: flex;
  gap: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
}

.hero-meta span:not(:last-child)::after {
  margin-left: 7px;
  content: '·';
}

.home-hero h1 {
  max-width: 1500px;
  margin: auto 0;
  font-size: clamp(52px, 8.55vw, 148px);
  font-weight: 500;
  letter-spacing: -0.072em;
  line-height: 0.92;
}

.hero-foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.hero-foot p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.scroll-cue,
.eyebrow,
.index-label,
.page-kicker,
.role-line,
.info-label,
.case-number,
.archive-project-top,
.archive-labels,
.tiny-note,
.document-foot {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.selected-work {
  padding: 0 2.4vw 16vh;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 17vh;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.section-heading p {
  margin: 0;
}

.project-feature {
  margin-bottom: 24vh;
}

.project-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  margin-bottom: 16px;
}

.project-intro p {
  margin: 0;
}

.project-category {
  font-size: 12px;
}

.visual-link {
  display: block;
  overflow: hidden;
}

.project-visual {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 650ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.visual-link:hover .project-visual {
  transform: scale(1.008);
}

.browser-top {
  display: flex;
  height: 42px;
  padding: 0 17px;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: #111823;
}

.browser-top span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #596270;
}

.browser-top b {
  margin-left: auto;
  color: #8792a3;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
}

.syntar-visual {
  border: 1px solid #1e2938;
  background: #101722;
}

.syntar-visual::after {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, rgba(69, 112, 179, 0.22), transparent 65%);
  content: '';
}

.syntar-ui {
  display: grid;
  min-height: 638px;
  grid-template-columns: 21% 1fr;
}

.syntar-side {
  position: relative;
  z-index: 1;
  padding: 36px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.syntar-side strong {
  display: block;
  margin-bottom: 70px;
  color: #9ebfff;
  font-size: 15px;
  letter-spacing: -0.04em;
}

.syntar-side i {
  display: block;
  width: 65%;
  height: 7px;
  margin: 0 0 24px;
  background: rgba(255, 255, 255, 0.11);
}

.syntar-side i:nth-child(3) {
  width: 45%;
  background: #7099e9;
}

.syntar-content {
  position: relative;
  z-index: 1;
  padding: 7% 8%;
}

.syntar-content small {
  color: #8792a3;
  font-family: var(--mono);
  font-size: 9px;
}

.syntar-content h3 {
  margin: 55px 0 90px;
  color: #eef4ff;
  font-size: clamp(34px, 5vw, 78px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.server-row {
  display: grid;
  padding: 22px 5px;
  grid-template-columns: 1fr 0.5fr 0.3fr;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #c9d2df;
  font-size: 11px;
}

.server-row em,
.server-row b {
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  font-weight: 400;
}

.server-row em {
  color: #86daaa;
}

.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 9px 2px 0;
  border-radius: 50%;
  background: #86daaa;
}

.migrate-visual {
  display: grid;
  padding: 5.5% 8%;
  place-items: center;
  background: #c78743;
}

.migrate-visual::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(59, 33, 23, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 33, 23, 0.09) 1px, transparent 1px);
  background-size: 46px 46px;
  content: '';
}

.migrate-window {
  position: relative;
  z-index: 1;
  width: min(840px, 90%);
  border: 1px solid #442b29;
  box-shadow: 18px 22px 0 rgba(67, 40, 32, 0.25);
  background: #f0e7d9;
  color: #2b2423;
}

.migrate-top {
  display: flex;
  height: 42px;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #7c6c65;
  font-family: var(--mono);
  font-size: 9px;
}

.migrate-top b {
  font-weight: 400;
}

.migrate-body {
  position: relative;
  min-height: 480px;
  padding: 48px 9% 38px;
}

.step-count {
  position: absolute;
  top: 55px;
  right: 9%;
  font-family: var(--mono);
  font-size: 9px;
}

.migrate-body h3 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.5vw, 63px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.migrate-body > p {
  margin: 0 0 48px;
  color: #6a5b54;
  font-size: 11px;
}

.transfer-row {
  display: grid;
  padding: 13px 0;
  grid-template-columns: 1fr 90px 26px;
  border-top: 1px solid rgba(43, 36, 35, 0.3);
  font-size: 10px;
}

.transfer-row b {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
}

.transfer-row i {
  width: 13px;
  height: 13px;
  border: 1px solid #443936;
  background: #443936;
}

.transfer-row i::after {
  display: block;
  color: #f0e7d9;
  content: '✓';
  font-size: 8px;
  font-style: normal;
  text-align: center;
}

.migrate-action {
  width: max-content;
  margin-top: 35px;
  margin-left: auto;
  padding: 12px 16px;
  background: #322725;
  color: #f0e7d9;
  font-family: var(--mono);
  font-size: 8px;
}

.project-copy {
  display: grid;
  margin-top: 24px;
  grid-template-columns: 1fr 1fr;
}

.project-copy h2,
.archive-project h2 {
  margin: 0;
  font-size: clamp(45px, 6.8vw, 105px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.project-copy > div {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 28px;
}

.project-description {
  max-width: 440px;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.role-line {
  margin: 3px 0 28px;
  line-height: 1.55;
}

.arrow-link {
  display: flex;
  width: min(320px, 100%);
  padding: 12px 0;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--strong-line);
  font-size: 13px;
  transition: padding 180ms ease;
}

.arrow-link:hover {
  padding-left: 7px;
}

.all-work-link {
  display: flex;
  justify-content: flex-end;
}

.all-work-link .arrow-link {
  width: min(520px, 100%);
  font-size: 18px;
}

.currently-strip {
  position: relative;
  padding: 9vh 2.4vw 11vh;
  border-top: 1px solid var(--line);
  background: #e8e5dc;
  color: #171716;
}

.currently-strip .eyebrow {
  color: #676764;
}

.currently-button {
  display: flex;
  width: 100%;
  padding: 24px 0 12px;
  align-items: end;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  background: transparent;
  text-align: left;
}

.currently-button span:first-child {
  font-size: clamp(60px, 11vw, 170px);
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.currently-button span:last-child {
  padding-bottom: 7px;
  font-size: 12px;
}

.scribble {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  transform: rotate(-1deg);
}

.panel-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.68);
  animation: backdrop-in 250ms ease both;
}

.project-panel {
  width: 100%;
  max-height: 94vh;
  padding: 24px 2.4vw 30px;
  overflow: auto;
  border-top: 1px solid var(--strong-line);
  background: #111110;
  animation: panel-in 500ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.panel-head h2 {
  margin: 4px 0 22px;
  font-size: clamp(45px, 6vw, 92px);
  font-weight: 500;
  letter-spacing: -0.07em;
}

.close-button {
  width: 44px;
  height: 44px;
  background: transparent;
  font-size: 34px;
  font-weight: 300;
}

.project-panel .project-visual {
  min-height: 390px;
  max-height: 54vh;
}

.project-panel .syntar-ui {
  min-height: 350px;
}

.panel-bottom {
  display: grid;
  padding-top: 22px;
  grid-template-columns: 1fr 1fr;
}

.panel-bottom > p {
  max-width: 520px;
  margin: 0;
  color: #b0afaa;
  line-height: 1.5;
}

.panel-bottom .arrow-link {
  justify-self: end;
}

.page {
  min-height: 80vh;
  padding: 0 2.4vw 18vh;
}

.page-intro {
  display: grid;
  min-height: 58vh;
  padding: 9vh 0 6vh;
  grid-template-columns: 1fr 1fr;
  align-content: space-between;
}

.page-intro .page-kicker {
  grid-column: 1 / -1;
  margin: 0;
}

.page-intro h1,
.document-page h1 {
  margin: 0;
  align-self: end;
  font-size: clamp(88px, 14vw, 220px);
  font-weight: 500;
  letter-spacing: -0.085em;
  line-height: 0.75;
}

.page-intro > p:last-child {
  margin: 0;
  align-self: end;
  color: #c0bfba;
  font-size: clamp(20px, 2.2vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.filters {
  display: flex;
  padding: 18px 0;
  gap: clamp(16px, 3vw, 52px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.filter {
  position: relative;
  padding: 4px 0;
  flex: 0 0 auto;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.filter.active {
  color: var(--ink);
}

.filter.active::before {
  margin-right: 6px;
  content: '●';
  font-size: 5px;
  vertical-align: 2px;
}

.archive-labels {
  display: grid;
  padding: 60px 0 12px;
  grid-template-columns: 14% 12% 1fr;
  border-bottom: 1px solid var(--line);
}

.archive-year {
  display: grid;
  position: relative;
  grid-template-columns: 14% 1fr;
}

.sticky-year,
.sticky-month {
  position: sticky;
  top: 20px;
  height: max-content;
  padding-top: 23px;
  font-size: clamp(27px, 3vw, 46px);
  font-weight: 500;
  letter-spacing: -0.06em;
}

.sticky-year {
  align-self: start;
}

.archive-month {
  display: grid;
  grid-template-columns: 14% 1fr;
}

.sticky-month {
  top: 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.archive-project {
  padding: 22px 0 110px;
  border-bottom: 1px solid var(--line);
}

.archive-project-top {
  display: flex;
  margin-bottom: 15px;
  justify-content: space-between;
}

.archive-project .project-visual {
  min-height: 530px;
}

.archive-project h2 {
  margin-top: 26px;
}

.archive-copy {
  display: grid;
  margin-top: 40px;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.archive-copy > p {
  max-width: 500px;
  margin: 0;
  color: #c4c3bd;
  font-size: 17px;
  line-height: 1.5;
}

.empty-archive {
  min-height: 55vh;
  padding: 8vh 28%;
  border-bottom: 1px solid var(--line);
}

.empty-archive p {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.empty-archive span {
  color: var(--muted);
  font-size: 13px;
}

.project-hero {
  padding: 9vh 2.4vw 5vh;
}

.project-hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-hero-meta p {
  margin: 0;
}

.project-hero h1 {
  margin: 13vh 0 0;
  color: var(--project-accent);
  font-size: clamp(100px, 20vw, 310px);
  font-weight: 500;
  letter-spacing: -0.1em;
  line-height: 0.65;
}

.project-deck {
  margin: 10vh 0 0 50%;
  font-size: clamp(25px, 3vw, 45px);
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.project-page-visual {
  padding: 5vh 2.4vw 0;
}

.case-study {
  padding: 9vh 2.4vw 10vh;
}

.case-study > section {
  display: grid;
  padding: 14vh 0;
  grid-template-columns: 24% 1.25fr 0.75fr;
  gap: 4vw;
  border-top: 1px solid var(--line);
}

.case-study section h2 {
  margin: 0;
  font-size: clamp(40px, 5.5vw, 84px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.case-study section > p:last-child {
  max-width: 460px;
  margin: 4px 0 0;
  color: #aaa9a4;
  font-size: 15px;
  line-height: 1.65;
}

.case-study .accent-section {
  margin: 0 -2.4vw;
  padding-right: 2.4vw;
  padding-left: 2.4vw;
  border: 0;
  background: var(--project-accent);
  color: #101010;
}

.accent-section .case-number,
.case-study .accent-section > p:last-child {
  color: rgba(10, 10, 10, 0.68);
}

.technical-details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.technical-details summary {
  display: flex;
  padding: 36px 0;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.05em;
  list-style: none;
}

.technical-details summary::-webkit-details-marker {
  display: none;
}

.details-plus {
  transition: transform 220ms ease;
}

.technical-details[open] .details-plus {
  transform: rotate(45deg);
}

.details-grid {
  display: grid;
  padding: 15px 0 60px 24%;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.details-grid p:last-child {
  max-width: 220px;
  color: #bbb9b3;
  font-size: 13px;
  line-height: 1.6;
}

.next-project {
  padding: 10vh 2.4vw;
  border-top: 1px solid var(--line);
}

.next-project .arrow-link {
  width: 100%;
  margin-top: 30px;
  font-size: clamp(55px, 10vw, 150px);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 1;
}

.about-hero {
  display: grid;
  min-height: 86vh;
  padding: 10vh 0 7vh;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: end;
  gap: 7vw;
}

.about-hero h1 {
  margin: 8vh 0 0;
  font-size: clamp(48px, 7vw, 108px);
  font-weight: 500;
  letter-spacing: -0.072em;
  line-height: 0.95;
}

.portrait-frame {
  margin: 0;
}

.portrait-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 0.78;
  object-fit: cover;
  object-position: top center;
  border: 1px solid #493c32;
  background: #b8803e;
  filter: saturate(0.82) contrast(1.04);
}

.portrait-frame figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.about-copy {
  display: grid;
  padding: 12vh 0 20vh 25%;
  grid-template-columns: 1.5fr 1fr;
  gap: 8vw;
  border-top: 1px solid var(--line);
}

.about-copy p {
  margin: 0;
  color: #aaa9a5;
  font-size: 15px;
  line-height: 1.7;
}

.about-copy .lead {
  color: var(--ink);
  font-size: clamp(25px, 3.3vw, 50px);
  letter-spacing: -0.05em;
  line-height: 1.18;
}

.info-row {
  display: grid;
  padding: 8vh 0;
  grid-template-columns: 25% 1fr;
  border-top: 1px solid var(--line);
}

.info-row > div > h2 {
  max-width: 800px;
  margin: 0 0 20px;
  font-size: clamp(32px, 4vw, 63px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.info-row > div > p {
  color: var(--muted);
  font-size: 14px;
}

.experience-list > div {
  display: grid;
  padding: 0 0 35px;
  grid-template-columns: 20% 30% 1fr;
  border-bottom: 1px solid var(--line);
}

.experience-list > div + div {
  padding-top: 35px;
}

.experience-list span,
.experience-list p {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.experience-list h3,
.experience-list p {
  margin: 0;
}

.experience-list h3 {
  font-size: 18px;
  font-weight: 500;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5vw;
}

.skills-grid > div > p:last-child {
  color: #d0cfca;
  font-size: 16px;
  line-height: 1.85;
}

.resume-link {
  display: flex;
  justify-content: flex-end;
  padding-top: 10vh;
  border-top: 1px solid var(--line);
}

.resume-link a {
  display: flex;
  width: 75%;
  padding-bottom: 18px;
  justify-content: space-between;
  border-bottom: 1px solid var(--strong-line);
  font-size: clamp(34px, 5vw, 75px);
  letter-spacing: -0.06em;
}

.document-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  padding-top: 13vh;
}

.document-page header {
  position: sticky;
  top: 30px;
  height: max-content;
}

.document-page h1 {
  margin-top: 12vh;
}

.document-date {
  margin-top: 8vh;
  color: var(--muted);
  font-size: 14px;
}

.now-list {
  border-top: 1px solid var(--line);
}

.now-list section {
  padding: 35px 0 75px;
  border-bottom: 1px solid var(--line);
}

.now-list h2 {
  margin: 45px 0 10px;
  font-size: clamp(42px, 6vw, 90px);
  font-weight: 500;
  letter-spacing: -0.07em;
}

.now-list section > p:last-child {
  color: #c4c2bd;
  font-size: 18px;
  line-height: 1.7;
}

.document-foot {
  grid-column: 2;
}

.lab-board {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid #dedbd1;
  background: #e7e3d9;
  color: #171716;
}

.lab-note {
  position: absolute;
  z-index: 2;
  top: 13%;
  left: 7%;
  width: min(300px, 33%);
  padding: 18px;
  border: 1px solid #171716;
  background: #d7ff5f;
  box-shadow: 10px 10px 0 #171716;
  transform: rotate(-2deg);
}

.lab-note span {
  font-family: var(--mono);
  font-size: 8px;
}

.lab-note p {
  margin: 60px 0 5px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.lab-orbit {
  position: absolute;
  top: 9%;
  right: 12%;
  display: grid;
  width: 360px;
  max-width: 40vw;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #171716;
  border-radius: 50%;
}

.lab-orbit::before {
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  border: 1px solid #171716;
  border-radius: 50%;
  content: '';
}

.lab-orbit::after {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #171716;
  content: '';
  transform: translate(177px);
}

.lab-orbit span {
  font-family: var(--mono);
  font-size: 8px;
}

.lab-copy {
  position: absolute;
  right: 6%;
  bottom: 8%;
  width: 38%;
}

.lab-copy p:first-child {
  font-size: 26px;
  letter-spacing: -0.04em;
}

.lab-copy p:last-child {
  font-size: 13px;
  line-height: 1.6;
}

.contact-page {
  padding-top: 9vh;
}

.contact-page h1,
.not-found h1 {
  margin: 13vh 0 11vh;
  font-size: clamp(72px, 13vw, 200px);
  font-weight: 500;
  letter-spacing: -0.085em;
  line-height: 0.8;
}

.email-link {
  display: flex;
  padding: 22px 0;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--strong-line);
  border-bottom: 1px solid var(--strong-line);
  font-size: clamp(22px, 4vw, 64px);
  letter-spacing: -0.055em;
}

.contact-links {
  display: grid;
  margin-left: 50%;
  grid-template-columns: 1fr 1fr;
}

.contact-links a {
  display: flex;
  padding: 24px 0;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.contact-links a:first-child {
  margin-right: 30px;
}

.contact-note {
  max-width: 470px;
  margin: 14vh 0 0 50%;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.not-found {
  padding-top: 10vh;
}

.footer {
  padding: 12vh 2.4vw 3vh;
  border-top: 1px solid var(--line);
}

.footer-wordmark {
  overflow: hidden;
  font-size: clamp(60px, 14.5vw, 230px);
  font-weight: 600;
  letter-spacing: -0.095em;
  line-height: 0.83;
  white-space: nowrap;
}

.footer-grid {
  display: grid;
  margin-top: 8vh;
  padding-top: 26px;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  margin-top: 22px;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.footer-note {
  font-size: 13px;
  line-height: 1.3;
}

.footer-note p {
  margin: 0;
}

.footer-grid .tiny-note {
  align-self: end;
  justify-self: end;
}

@keyframes panel-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 800px) {
  .site-header {
    height: auto;
    padding: 14px 18px 12px;
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .nav-link {
    font-size: 11px;
  }

  .home-hero {
    min-height: calc(100svh - 93px);
    padding: 4vh 18px 20px;
  }

  .home-hero h1 {
    font-size: clamp(48px, 15vw, 84px);
    line-height: 0.91;
  }

  .hero-meta span:nth-child(2) {
    display: none;
  }

  .hero-foot {
    gap: 20px;
  }

  .scroll-cue {
    display: none;
  }

  .selected-work,
  .page,
  .project-hero,
  .project-page-visual,
  .case-study,
  .next-project,
  .footer,
  .project-panel {
    padding-right: 18px;
    padding-left: 18px;
  }

  .section-heading {
    margin-bottom: 11vh;
  }

  .project-feature {
    margin-bottom: 16vh;
  }

  .project-intro {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .project-visual,
  .archive-project .project-visual {
    min-height: 390px;
  }

  .syntar-ui {
    min-height: 348px;
    grid-template-columns: 1fr;
  }

  .syntar-side {
    display: none;
  }

  .syntar-content {
    padding: 9% 7%;
  }

  .syntar-content h3 {
    margin: 35px 0 70px;
  }

  .server-row {
    grid-template-columns: 1fr 0.45fr;
  }

  .server-row b {
    display: none;
  }

  .migrate-visual {
    padding: 25px 14px;
  }

  .migrate-window {
    width: 95%;
    box-shadow: 9px 11px 0 rgba(67, 40, 32, 0.25);
  }

  .migrate-body {
    min-height: 320px;
    padding: 35px 8% 28px;
  }

  .migrate-body > p {
    margin-bottom: 27px;
  }

  .step-count {
    top: 38px;
  }

  .transfer-row:nth-of-type(4) {
    display: none;
  }

  .migrate-action {
    margin-top: 20px;
  }

  .project-copy,
  .project-copy > div {
    grid-template-columns: 1fr;
  }

  .project-copy h2 {
    margin-bottom: 35px;
  }

  .project-copy > div {
    gap: 8px;
  }

  .currently-strip {
    padding: 8vh 18px;
  }

  .currently-button {
    align-items: start;
    flex-direction: column;
    gap: 30px;
  }

  .currently-button span:last-child {
    align-self: end;
  }

  .panel-bottom {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .panel-bottom .arrow-link {
    justify-self: start;
  }

  .page-intro {
    min-height: 53vh;
    grid-template-columns: 1fr;
  }

  .page-intro h1 {
    font-size: clamp(80px, 27vw, 150px);
  }

  .archive-labels {
    grid-template-columns: 1fr 1fr;
  }

  .archive-labels span:last-child {
    display: none;
  }

  .archive-year {
    display: block;
  }

  .sticky-year {
    z-index: 12;
    top: 0;
    padding: 12px 0 7px;
    border-bottom: 1px solid var(--line);
    background: var(--ground);
    font-size: 28px;
  }

  .archive-month {
    display: block;
  }

  .sticky-month {
    z-index: 11;
    top: 54px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    background: var(--ground);
  }

  .archive-project {
    padding-top: 28px;
  }

  .archive-copy {
    grid-template-columns: 1fr;
  }

  .empty-archive {
    padding-right: 0;
    padding-left: 0;
  }

  .project-hero {
    padding-top: 7vh;
  }

  .project-hero-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .project-hero h1 {
    margin-top: 12vh;
    font-size: 28vw;
  }

  .project-deck {
    margin-left: 0;
  }

  .case-study > section {
    padding: 10vh 0;
    grid-template-columns: 1fr;
  }

  .case-study .accent-section {
    margin-right: -18px;
    margin-left: -18px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .details-grid {
    padding-left: 0;
    grid-template-columns: 1fr;
  }

  .about-hero {
    min-height: auto;
    padding-top: 8vh;
    grid-template-columns: 1fr;
  }

  .about-hero h1 {
    font-size: 13vw;
  }

  .portrait-frame {
    width: 76%;
    margin-top: 6vh;
    margin-left: auto;
  }

  .about-copy {
    padding-left: 0;
    grid-template-columns: 1fr;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .experience-list > div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .resume-link a {
    width: 100%;
  }

  .document-page {
    display: block;
  }

  .document-page header {
    position: relative;
    top: 0;
    padding-bottom: 10vh;
  }

  .document-page h1 {
    font-size: 30vw;
  }

  .document-foot {
    margin-top: 40px;
  }

  .lab-board {
    min-height: 700px;
  }

  .lab-note {
    width: 70%;
  }

  .lab-orbit {
    top: 39%;
    right: -22%;
    width: 330px;
    max-width: none;
  }

  .lab-orbit::after {
    transform: translate(161px);
  }

  .lab-copy {
    right: auto;
    bottom: 5%;
    left: 7%;
    width: 70%;
  }

  .contact-links {
    margin-left: 0;
  }

  .contact-note {
    margin-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 50px 20px;
  }

  .footer-grid .tiny-note {
    justify-self: start;
  }
}

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

/* Lab archive entries for preserved standalone projects */
.lab-index {
  margin-bottom: 8vh;
  border-top: 1px solid var(--line);
}

.lab-entry {
  display: grid;
  padding: clamp(28px, 4vw, 58px) 0;
  grid-template-columns: 10% 1fr auto;
  gap: 3vw;
  align-items: start;
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease, padding 180ms ease;
}

.lab-entry:hover {
  padding-right: 1.2vw;
  padding-left: 1.2vw;
  background: #10100f;
}

.lab-entry-number,
.lab-entry-type {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.lab-entry-type {
  margin: 0 0 12px;
}

.lab-entry h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 92px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.lab-entry-description {
  max-width: 650px;
  margin: 24px 0 0;
  color: #aaa9a4;
  font-size: 14px;
  line-height: 1.65;
}

.lab-entry-arrow {
  font-size: clamp(26px, 3vw, 44px);
  transition: transform 180ms ease;
}

.lab-entry:hover .lab-entry-arrow {
  transform: translate(4px, -4px);
}

@media (max-width: 760px) {

  .lab-entry {
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
  }

  .lab-entry:hover {
    padding-right: 0;
    padding-left: 0;
    background: transparent;
  }

  .lab-entry-description {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lab-entry,
  .lab-entry-arrow,
  .construction-input-row {
    transition: none;
  }
}

[hidden]{display:none!important;}


/* CMS-driven project media */
.archive-months {
  min-width: 0;
}

.cms-carousel {
  position: relative;
  background: #111110;
}

.carousel-stage-link,
.carousel-stage {
  position: absolute;
  inset: 0;
}

.carousel-stage-link {
  z-index: 1;
  display: block;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 420ms ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 650ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.cms-carousel:hover .carousel-slide.active img {
  transform: scale(1.008);
}

.carousel-progress {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24px, 1fr));
  gap: 8px;
  padding: 8px;
  background: rgba(10, 10, 10, 0.34);
  backdrop-filter: blur(8px);
}

.carousel-segment {
  position: relative;
  height: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.carousel-segment::before {
  position: absolute;
  top: 4px;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.32);
  content: '';
}

.carousel-segment span {
  position: absolute;
  top: 4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}

.carousel-segment.complete span {
  transform: scaleX(1);
}

.carousel-segment.active span {
  animation: carousel-fill var(--carousel-duration, 6000ms) linear forwards;
}

@keyframes carousel-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.project-empty-visual {
  display: flex;
  padding: clamp(24px, 5vw, 80px);
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #151514, #0e0e0d);
}

.project-empty-visual span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.project-empty-visual strong {
  max-width: 80%;
  font-size: clamp(50px, 9vw, 150px);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.cms-empty-note {
  margin: 0;
  padding: 8vh 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 800px) {
  .carousel-progress {
    right: 10px;
    bottom: 10px;
    left: 10px;
    gap: 5px;
    padding: 6px;
  }

  .project-empty-visual {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-slide,
  .carousel-slide img {
    transition: none;
  }

  .carousel-segment.active span {
    animation: none;
    transform: scaleX(1);
  }
}

/* 2026-10 portfolio polish */
.home-hero h1 strong,
.home-hero h1 span { display: block; }
.home-hero h1 strong { font-weight: 720; }
.home-hero h1 span { font-weight: 400; color: #d3d2ce; }
.not-found-copy { display: grid; width: min(720px, 100%); margin-left: auto; gap: 0; }
.not-found-copy > p { max-width: 460px; margin: 0 0 48px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.not-found-copy .arrow-link { padding: 20px 0; border-top: 1px solid var(--line); }
.not-found-copy .arrow-link:last-child { border-bottom: 1px solid var(--line); }
