@font-face {
  font-family: Space;
  src: url("/fonts/space-grotesk.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url("/fonts/dm-sans.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Aref Ruqaa";
  src: url("/fonts/aref-ruqaa.ttf") format("truetype");
  font-weight: 400;
  font-display: block;
}
:root {
  --paper: #f5f5f4;
  --surface: #dcdcdd;
  --ink: #46494c;
  --subtle: #4c5c68;
  --line: #c5c3c6;
  --accent: #1985a1;
  --accent-strong: #11677d;
  --accent-fill: #177e98;
  --on-accent-muted: #dcdcdd;
  --display: Space, Arial, sans-serif;
  --body: DM, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  isolation: isolate;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--body);
  overflow-x: clip;
}
body.modal-open {
  overflow: hidden;
}
.calligraphy-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.calligraphy-backdrop span {
  position: absolute;
  top: 55%;
  right: 6vw;
  transform: translateY(-50%) rotate(-8deg);
  font: 400 clamp(220px, 30vw, 480px)/1.6 "Aref Ruqaa", serif;
  color: var(--accent);
  opacity: 0.055;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .calligraphy-backdrop span {
    right: 4vw;
    font-size: 50vw;
    opacity: 0.04;
  }
}
::selection {
  background: var(--accent-fill);
  color: #fff;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  cursor: default;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.06;
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
section {
  scroll-margin-top: 30px;
}
.section-shell {
  padding-left: max(5vw, 24px);
  padding-right: max(5vw, 24px);
}
.eyebrow,
.mono,
.project-meta,
.job-time {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.055em;
  line-height: 1.5;
}
.eyebrow {
  display: block;
  font-weight: 500;
}
.muted {
  color: var(--subtle);
}
.accent {
  color: var(--accent);
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 15px;
  padding: 12px 20px;
  background: var(--accent-fill);
  color: #fff;
  z-index: 200;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  background: var(--accent);
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  z-index: 101;
  pointer-events: none;
}
.site-header {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 245, 244, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
}
.wordmark img {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.25s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .wordmark:hover img {
    transform: rotate(-7deg);
  }
}
.desktop-nav {
  display: flex;
  gap: 42px;
  padding-left: 60px;
}
.desktop-nav a {
  font-size: 14px;
  position: relative;
  padding: 8px 0;
}
.desktop-nav span {
  font:
    10px ui-monospace,
    monospace;
  color: var(--subtle);
  vertical-align: super;
  margin-left: 5px;
}
.desktop-nav a:after,
.text-link:after {
  content: "";
  height: 1px;
  background: currentColor;
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.desktop-nav a:hover:after,
.desktop-nav a[aria-current]:after,
.text-link:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}
.header-contact {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.contact-arrow {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition:
    background 0.3s,
    transform 0.5s;
}
.header-contact:hover .contact-arrow {
  background: var(--on-accent-muted);
  transform: translate(2px, -2px);
}
.action-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.button:hover .action-arrow,
.project-link:hover .action-arrow {
  transform: translateX(2px);
}
.menu-toggle {
  display: none;
}
.mobile-nav[hidden] {
  display: none;
}
.hero {
  padding-top: 33px;
  min-height: calc(100vh - 96px);
  min-height: calc(100svh - 96px);
  display: flex;
  flex-direction: column;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  position: relative;
  flex: 1;
  align-items: center;
  padding: 40px 0 48px;
  gap: 0;
}
.hero-copy {
  z-index: 2;
  padding-top: 8px;
  pointer-events: none;
}
.hero-copy a {
  pointer-events: auto;
}
h1 {
  font-size: clamp(78px, 9.4vw, 154px);
  letter-spacing: -0.055em;
  line-height: 0.86;
}
.name-line {
  display: block;
}
.cat-lab-link {
  position: absolute;
  width: clamp(100px, 10vw, 150px);
  aspect-ratio: 1942 / 809;
  min-height: 44px;
  right: 4px;
  bottom: 100%;
  display: block;
  border-radius: 8px;
  outline-offset: 5px;
}
.sleeping-cat {
  position: absolute;
  width: 100%;
  height: auto;
  right: 0;
  bottom: 0;
  /* Align the visible paws, excluding the PNG's transparent lower margin. */
  transform: translateY(11%);
  transform-origin: 50% 89%;
  animation: cat-breathe 4.8s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}
@keyframes cat-breathe {
  0%, 100% { transform: translateY(11%) scaleY(1); }
  45% { transform: translateY(11%) scaleY(1.045); }
}
.cat-sleep-marks {
  position: absolute;
  right: 16px;
  bottom: calc(100% + clamp(25px, 2.8vw, 42px));
  width: 16px;
  height: 13px;
  color: var(--on-accent-muted);
  font: 500 13px / 1 var(--display);
  pointer-events: none;
  user-select: none;
}
.cat-sleep-marks span {
  position: absolute;
  left: 0;
  bottom: 0;
  opacity: 0.7;
  animation: cat-dream 3.6s linear infinite;
}
.cat-sleep-marks span:nth-child(2) {
  transform: translate(7px, -8px);
  animation-delay: -1.2s;
}
.cat-sleep-marks span:nth-child(3) {
  transform: translate(14px, -16px);
  animation-delay: -2.4s;
}
@keyframes cat-dream {
  0% { transform: translate(0, 0) scale(0.75); opacity: 0; }
  15% { opacity: 0.9; }
  55% { opacity: 0.65; }
  100% { transform: translate(14px, -24px) scale(1.15); opacity: 0; }
}
.name-last {
  margin-top: 9px;
}
.hero-role {
  margin-top: 26px;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.hero-description {
  max-width: 430px;
  font-size: 16px;
  color: var(--subtle);
  line-height: 1.7;
  margin-top: 20px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 16px 22px;
  font-size: 14px;
  font-weight: 600;
  min-height: 54px;
  position: relative;
  overflow: hidden;
  transition:
    background 0.3s,
    transform 0.4s var(--ease);
}
.button-dark {
  background: var(--ink);
  color: #fff;
}
.button-dark:hover {
  background: var(--accent-fill);
  transform: translateY(-3px);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  position: relative;
  padding: 7px 0;
  white-space: nowrap;
}
.text-link svg {
  width: 16px;
  height: 16px;
}
.hero-art {
  height: 100%;
  min-height: 490px;
  max-height: 620px;
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 52%, #dcebee 0, transparent 66%);
  margin-left: -15px;
}
.hero-art:before {
  content: "";
  position: absolute;
  inset: 45px 10px;
  background-image: radial-gradient(#bdc7cb 0.65px, transparent 0.65px);
  background-size: 21px 21px;
  -webkit-mask-image: radial-gradient(ellipse, #000, transparent 68%);
  mask-image: radial-gradient(ellipse, #000, transparent 68%);
  z-index: -1;
}
.hero-art canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.art-topline,
.art-bottomline {
  position: absolute;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  z-index: 1;
  color: var(--subtle);
}
.art-topline {
  top: 18px;
  align-items: flex-start;
}
.landmark-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
#landmark-name {
  color: var(--accent-strong);
  font-weight: 600;
}
#landmark-location {
  font-size: 9px;
}
.art-bottomline {
  bottom: 16px;
  justify-content: flex-end;
}
.art-topline .mono {
  font-size: 10px;
}
@media (hover: hover) and (pointer: fine) {
  .hero-art canvas {
    cursor: crosshair;
  }
}
.motion-off .hero-art canvas {
  cursor: default;
}
.art-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f5f4e6;
  font-size: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 30px;
  transition: background 0.3s;
}
.art-button:hover {
  background: #fff;
}
.art-button span {
  font-size: 20px;
}
.art-corner {
  width: 16px;
  height: 16px;
  border-color: var(--line);
  position: absolute;
  z-index: 1;
}
.top-left {
  top: 0;
  left: 0;
  border-left: 1px solid;
  border-top: 1px solid;
}
.bottom-right {
  bottom: 0;
  right: 0;
  border-right: 1px solid;
  border-bottom: 1px solid;
}
.hero-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: var(--subtle);
}
.hero-bottom p {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-bottom strong {
  color: var(--ink);
  font-weight: 500;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 5px;
}
.motion-toggle {
  font: 12px var(--body);
  padding: 8px 0;
}
.motion-toggle span {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2px 8px;
  margin-left: 6px;
  text-transform: uppercase;
  font-size: 10px;
}
.discipline-strip {
  --weave-width: 96px;
  padding: 32px 0;
  background: var(--surface) url("/images/banner-weave.svg") repeat;
  background-size: var(--weave-width) 32px;
  animation: weave-drift 8s linear infinite;
  border-block: 3px solid var(--subtle);
  color: white;
  overflow: hidden;
}
.marquee-track {
  --marquee-gap: 50px;
  display: flex;
  align-items: center;
  width: max-content;
  padding-block: 15px;
  background: var(--accent-fill);
  box-shadow: 0 -3px 0 var(--paper), 0 3px 0 var(--paper);
  animation: marquee 70s linear infinite;
  font: 600 17px var(--display);
  letter-spacing: 0.03em;
}
.marquee-group {
  /* Equal, viewport-wide copies keep the strip covered through the loop. */
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-around;
  min-width: 100vw;
  gap: var(--marquee-gap);
  padding-inline: calc(var(--marquee-gap) / 2);
  white-space: nowrap;
}
.marquee-group > * {
  flex-shrink: 0;
}
.marquee-separator {
  width: 12px;
  height: 12px;
  border: 2px solid var(--on-accent-muted);
  transform: rotate(45deg);
}
@keyframes weave-drift {
  /* Travel one complete tile so the pattern joins without a jump. */
  from { background-position: 0 0; }
  to { background-position: var(--weave-width) 0; }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.work-section {
  padding-top: 120px;
  padding-bottom: 100px;
}
h2 {
  font-size: clamp(36px, 4vw, 64px);
  letter-spacing: -0.055em;
}
.project {
  background: var(--surface);
}
.project-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  margin-bottom: 34px;
}
.project-visual {
  position: relative;
  min-height: 350px;
  overflow: hidden;
}
.product-visual {
  display: flex;
  align-items: center;
  padding: 76px 24px;
  background:
    radial-gradient(ellipse at 80% 10%, #edf1f2, transparent 70%), var(--surface);
}
.wins-product {
  background:
    radial-gradient(ellipse at 80% 10%, #e5edef, transparent 70%), #cbd6da;
}
.product-shot {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  position: relative;
  border: 1px solid #fff;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 18px 45px #46494c26;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}
.product-shot:hover,
.product-shot:focus-visible {
  transform: perspective(1200px) rotateY(0) rotateX(0) translateY(-4px);
  box-shadow: 0 24px 50px #46494c33;
}
.product-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  background: var(--paper);
}
.window-bar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line);
}
.window-bar span {
  margin-left: 8px;
  font:
    9px ui-monospace,
    monospace;
  color: var(--subtle);
}
.shot-expand {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 11px;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 12px #0002;
  font-size: 10px;
}
.case-image {
  margin: 24px 0;
}
.case-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.case-image figcaption {
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--subtle);
}
.case-image figcaption a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 760px) {
  .product-visual {
    padding: 65px 16px;
  }
  .product-shot {
    transform: none;
  }
  .product-visual .visual-foot {
    left: 16px;
    right: 16px;
    font-size: 8px;
  }
}
.scholar-visual {
  background: var(--surface);
  min-height: 450px;
  display: grid;
  place-items: center;
  background-image:
    linear-gradient(#4c5c6820 1px, transparent 1px),
    linear-gradient(90deg, #4c5c6820 1px, transparent 1px);
  background-size: 36px 36px;
}
.visual-label {
  position: absolute;
  top: 25px;
  left: 28px;
  font-size: 10px;
  opacity: 0.7;
  z-index: 1;
}
.visual-foot {
  position: absolute;
  bottom: 23px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 9px;
  opacity: 0.65;
}
.school-map {
  height: 300px;
  width: 100%;
  max-width: 500px;
  position: relative;
  display: grid;
  place-items: center;
}
.map-ring {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 210px;
  height: 210px;
}
.ring-two {
  width: 320px;
  height: 320px;
  border-style: dashed;
  border-color: var(--line);
}
.map-center {
  width: 124px;
  height: 124px;
  border-radius: 26px;
  box-shadow:
    0 20px 45px #46494c25,
    inset 0 1px 0 #fff;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transform: rotate(-7deg);
}
.scholar-symbol {
  font: 600 64px/0.85 var(--display);
  letter-spacing: -8px;
  color: var(--accent-strong);
  padding-right: 8px;
}
.scholar-symbol span {
  color: var(--subtle);
}
.map-center small {
  font-size: 11px;
  margin-top: 12px;
}
.map-node {
  position: absolute;
  font-size: 11px;
  background: var(--paper);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 5px 15px #46494c09;
}
.node-evidence {
  top: 20px;
  left: 12%;
}
.node-progress {
  right: 4%;
  top: 93px;
}
.node-review {
  left: 5%;
  bottom: 67px;
}
.node-support {
  bottom: 3px;
  right: 16%;
}
.orbit-point {
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  animation: orbit 25s linear infinite;
}
.orbit-point:before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--accent);
  border: 3px solid var(--paper);
  position: absolute;
  top: 0;
  left: 50%;
  border-radius: 50%;
}
@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}
.project-info {
  padding: 36px 36px 28px;
  display: flex;
  flex-direction: column;
}
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--subtle);
  font-size: 10px;
}
.pill {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px 9px;
  white-space: nowrap;
  font: 11px var(--body);
}
.project-info h3 {
  font-size: clamp(29px, 3vw, 44px);
  letter-spacing: -0.05em;
  margin-top: 36px;
  margin-bottom: 20px;
}
.project-info > p {
  font-size: 15px;
  color: var(--subtle);
  line-height: 1.8;
  max-width: 440px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
}
.tags span {
  font:
    11px/1.5 ui-monospace,
    monospace;
  background: var(--paper);
  color: var(--subtle);
  padding: 5px 9px;
}
.project-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0 0;
  margin-top: auto;
  text-align: left;
  font-size: 14px;
  min-height: 70px;
  transition: color 0.3s;
}
.project-link span {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition:
    transform 0.4s,
    background 0.4s,
    color 0.4s;
}
.project-link:hover {
  color: var(--accent-strong);
}
.project-link:hover span {
  background: var(--accent-fill);
  color: #fff;
  border-color: var(--accent);
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}
.project-stacked {
  display: flex;
  flex-direction: column;
}
.project-stacked .project-info {
  flex: 1;
  padding: 30px 32px 22px;
}
.project-stacked h3 {
  margin-top: 25px;
  font-size: 34px;
}
.project-stacked .project-visual {
  height: 420px;
}
.project-stacked .product-visual {
  padding: 55px 24px;
}
.project-stacked .product-shot img {
  max-height: 275px;
  object-fit: contain;
  background: var(--paper);
}
.wiki-visual {
  background: var(--ink);
  color: var(--paper);
  background-image: radial-gradient(
    ellipse at 50% 120%,
    var(--subtle),
    transparent 70%
  );
}
.token-flow {
  padding: 76px 36px 35px;
  position: relative;
  height: 100%;
}
.token-input {
  display: flex;
  gap: 6px;
  position: relative;
  z-index: 2;
}
.token-input > span {
  font:
    15px ui-monospace,
    monospace;
  border: 1px solid #80939d;
  background: var(--subtle);
  padding: 6px 10px;
}
.token-input > .token-cursor {
  border: 0;
  background: none;
  padding-left: 0;
  color: var(--surface);
  animation: blink 1.2s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.token-output {
  position: absolute;
  bottom: 55px;
  left: 36px;
  font: 600 36px/1.05 var(--display);
  letter-spacing: -0.055em;
  color: var(--paper);
  z-index: 2;
}
.token-output span {
  color: #b9dce4;
}
.network-stack {
  position: absolute;
  width: 240px;
  height: 210px;
  right: 15px;
  top: 54px;
  transform: rotate(-17deg);
}
.network-stack div {
  position: absolute;
  width: 160px;
  height: 140px;
  border: 1px solid #dcdcdd55;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 17px,
      #dcdcdd30 18px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 17px,
      #dcdcdd30 18px
    );
  transform: skewY(24deg);
  top: calc(var(--i) * 15px);
  left: calc(var(--i) * 13px);
  animation: layer-float 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.3s);
}
.network-stack div:nth-child(1) {
  --i: 0;
}
.network-stack div:nth-child(2) {
  --i: 1;
}
.network-stack div:nth-child(3) {
  --i: 2;
}
.network-stack div:nth-child(4) {
  --i: 3;
}
.network-stack div:nth-child(5) {
  --i: 4;
}
@keyframes layer-float {
  50% {
    translate: 0 -10px;
  }
}
.learning-visual {
  background: var(--surface);
  color: var(--subtle);
  background-image: radial-gradient(
    circle at 50% 50%,
    var(--paper),
    transparent 65%
  );
}
.learning-diagram {
  position: absolute;
  inset: 70px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}
.message-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 65px;
  flex-shrink: 0;
}
.message-bars i {
  display: block;
  height: 15px;
  background: var(--line);
  border-radius: 3px;
  width: 100%;
  transform-origin: left;
  animation: message 5s ease-in-out infinite;
}
.message-bars i:nth-child(2) {
  width: 78%;
  animation-delay: -1s;
}
.message-bars i:nth-child(3) {
  width: 88%;
  animation-delay: -2s;
}
@keyframes message {
  50% {
    transform: scaleX(0.8);
  }
}
.diagram-connector {
  height: 1px;
  background: var(--line);
  flex: 1;
  min-width: 10px;
}
.privacy-gate {
  width: 100px;
  height: 120px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 15px 25px #4c5c6812;
  border-radius: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.privacy-gate svg {
  width: 40px;
  height: 40px;
  stroke: var(--accent-strong);
  stroke-width: 1.2;
}
.privacy-gate small {
  font-size: 10px;
}
.goal-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.goal-stack span {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 8px;
  font:
    9px ui-monospace,
    monospace;
  border-radius: 3px;
}
.experience-section {
  padding-top: 104px;
  padding-bottom: 108px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}
.experience-intro h2 {
  font-size: clamp(36px, 3.3vw, 52px);
  margin: 24px 0;
}
.experience-intro p {
  max-width: 330px;
  font-size: 15px;
  color: var(--subtle);
  line-height: 1.8;
}
.experience-technologies {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 380px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.experience-technologies li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--subtle);
}
.experience-technologies li:nth-child(3n + 1),
.experience-technologies li:nth-child(3),
.experience-technologies .technology-accent {
  color: var(--accent);
}
.experience-technologies svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
  stroke: none;
}
.experience-technologies .technology-wordmark {
  width: 76px;
}
.experience-technologies .technology-network {
  width: 55px;
  height: 44px;
  margin: -4px 0;
}
.experience-technologies span {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.experience-item {
  border-top: 1px solid var(--line);
}
.experience-item:last-child {
  border-bottom: 1px solid var(--line);
}
.experience-item summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 30px;
  gap: 14px;
  padding: 26px 0;
  cursor: pointer;
}
.experience-item summary::-webkit-details-marker {
  display: none;
}
.job-time {
  grid-column: 1 / -1;
  color: var(--subtle);
  font-size: 10px;
}
.job-main strong {
  display: block;
  font: 600 24px var(--display);
  letter-spacing: -0.03em;
}
.job-main > span {
  font-size: 13px;
  color: var(--subtle);
  display: block;
  margin-top: 5px;
}
.expand-icon {
  font-size: 26px;
  align-self: start;
  transition: transform 0.3s;
  color: var(--subtle);
}
details[open] .expand-icon {
  transform: rotate(45deg);
  color: var(--accent);
}
.job-detail {
  padding: 0 24px 30px 0;
  font-size: 14px;
  color: var(--subtle);
  line-height: 1.8;
}
.job-detail p {
  color: var(--subtle);
}
.job-detail ul {
  padding-left: 18px;
  margin: 15px 0 0;
}
.job-detail li {
  padding-left: 6px;
  margin-bottom: 7px;
}
.job-detail .tags {
  margin-top: 18px;
}
.about-section {
  background: var(--surface);
  padding-top: 100px;
  padding-bottom: 110px;
}
.section-label {
  margin-bottom: 48px;
}
.about-section .section-label {
  margin-bottom: 24px;
}
.about-section h2 {
  font-size: clamp(48px, 5.2vw, 82px);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 64px;
}
.about-statement {
  font: 600 clamp(26px, 2.5vw, 40px) / 1.3 var(--display);
  letter-spacing: -0.04em;
}
.about-statement span {
  color: var(--subtle);
}
.education-card {
  background: var(--paper);
  padding: 34px;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  border-top: 3px solid var(--accent);
}
.education-card h3 {
  font-size: 32px;
  letter-spacing: -0.045em;
  margin: 30px 0 10px;
}
.education-card > p {
  font-size: 15px;
  color: var(--subtle);
}
.education-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-top: 36px;
}
.education-bottom > span {
  font-size: 12px;
  color: var(--subtle);
  line-height: 1.8;
}
.education-bottom strong {
  font: 600 36px var(--display);
  color: var(--accent);
}
.education-bottom strong span {
  font: 10px var(--body);
  display: block;
  color: var(--subtle);
}
.contact-section {
  padding-top: 66px;
  padding-bottom: 66px;
  background: var(--accent-fill);
  color: #fff;
  position: relative;
}
.contact-section h2 {
  font-size: clamp(64px, 8.8vw, 140px);
  line-height: 1.06;
  letter-spacing: -0.067em;
  margin: 0 0 65px;
}
.contact-section h2 a {
  display: block;
  width: fit-content;
  position: relative;
}
.contact-section h2 a > span {
  color: var(--on-accent-muted);
}
.contact-section h2 svg {
  width: 0.68em;
  height: 0.68em;
  stroke-width: 5;
  margin-left: 24px;
  transition: transform 0.5s var(--ease);
}
.contact-section h2 a:hover svg {
  transform: translate(7px, -7px);
}
.contact-bottom {
  position: relative;
  border-top: 1px solid #ffffff45;
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.email-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}
.email-actions > a {
  font-size: 18px;
}
.email-actions > button {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  border: 1px solid #ffffff60;
  border-radius: 30px;
  padding: 9px 12px;
}
.email-actions svg {
  width: 14px;
  height: 14px;
}
.email-actions > button:hover {
  background: #ffffff20;
}
.contact-section :focus-visible {
  outline-color: var(--on-accent-muted);
}
.site-footer {
  padding-top: 30px;
  padding-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.site-footer p,
.site-footer > a:last-child {
  font-size: 12px;
  color: var(--subtle);
}
.site-footer > a:last-child span {
  margin-left: 20px;
}
.site-footer .wordmark {
  width: 48px;
  height: 48px;
}
dialog {
  padding: 32px 44px 36px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  width: min(760px, calc(100vw - 32px));
  max-height: 85vh;
  max-height: 85svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 30px 100px #0003;
}
dialog::backdrop {
  background: #46494cc7;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
dialog[open] {
  animation: dialog-in 0.4s var(--ease);
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
  margin-bottom: 30px;
}
.dialog-top button {
  font-size: 32px;
  line-height: 1;
  width: 40px;
  height: 40px;
}
.dialog-top button:hover {
  color: var(--accent-strong);
}
#dialog-content h2 {
  font-size: 48px;
  margin: 20px 0 16px;
}
#dialog-content .dialog-lead {
  font-size: 19px;
  color: var(--subtle);
  line-height: 1.65;
}
#dialog-content h3 {
  font-size: 20px;
  margin: 30px 0 12px;
}
#dialog-content p,
#dialog-content li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--subtle);
}
#dialog-content ul {
  padding-left: 20px;
}
#dialog-content li {
  margin-bottom: 8px;
}
.dialog-meta {
  font:
    11px ui-monospace,
    monospace;
  letter-spacing: 0.03em;
  color: var(--accent-strong);
}
.dialog-note {
  padding: 16px 20px;
  border-left: 2px solid var(--accent);
  background: #e0eaed;
  margin-top: 28px;
}
.dialog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 35px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  padding: 13px 22px;
  box-shadow: 0 5px 30px #0002;
  z-index: 110;
  transition:
    transform 0.3s,
    opacity 0.3s;
  max-width: 90vw;
  text-align: center;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.hero-copy,
.hero-art,
.hero-bottom {
  animation: enter 1s var(--ease) both;
}
.hero-copy {
  animation-delay: 0.1s;
}
.hero-art {
  animation-delay: 0.2s;
}
.hero-bottom {
  animation-delay: 0.3s;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1600px) {
  .section-shell {
    padding-left: max(5vw, calc((100vw - 1450px) / 2));
    padding-right: max(5vw, calc((100vw - 1450px) / 2));
  }
  .site-header {
    padding-left: max(5vw, calc((100vw - 1450px) / 2));
    padding-right: max(5vw, calc((100vw - 1450px) / 2));
  }
  .hero-layout {
    gap: 50px;
  }
  .hero-art {
    min-height: 590px;
  }
}
@media (max-width: 1050px) {
  .site-header {
    height: 80px;
  }
  .hero {
    min-height: calc(100vh - 80px);
    min-height: calc(100svh - 80px);
  }
  .hero-layout {
    grid-template-columns: 1.2fr 1fr;
    padding: 48px 0;
    gap: 0;
  }
  h1 {
    font-size: 10.8vw;
  }
  .hero-art {
    min-height: 410px;
    margin-left: -50px;
  }
  .hero-description {
    max-width: 350px;
    font-size: 15px;
  }
  .project-featured {
    grid-template-columns: 1fr 1fr;
  }
  .project-info {
    padding: 28px;
  }
  .project-meta {
    flex-wrap: wrap;
  }
  .project-info h3 {
    font-size: 32px;
  }
  .school-map {
    transform: scale(0.85);
  }
  .project-visual {
    min-height: 320px;
  }
  .visual-foot {
    font-size: 8px;
  }
  .project-grid {
    gap: 24px;
  }
  .project-stacked .project-info {
    padding: 26px;
  }
  .learning-diagram {
    inset: 70px 22px;
    gap: 8px;
  }
  .message-bars {
    width: 42px;
  }
  .privacy-gate {
    width: 85px;
  }
  .goal-stack span {
    font-size: 8px;
  }
  .experience-section {
    gap: 45px;
    grid-template-columns: 0.8fr 1.2fr;
  }
  .about-grid {
    gap: 35px;
  }
  .contact-section h2 {
    font-size: 9vw;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 76px;
  }
  .section-shell {
    padding-left: 24px;
    padding-right: 24px;
  }
  .site-header {
    height: 74px;
    padding: 0 24px;
  }
  .wordmark {
    width: 48px;
    height: 48px;
  }
  .desktop-nav {
    display: none;
  }
  .header-contact {
    margin-left: auto;
    margin-right: 24px;
    font-size: 12px;
    gap: 14px;
  }
  .header-contact .contact-arrow {
    width: 26px;
    height: 26px;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 8px 8px;
    width: 35px;
    height: 40px;
  }
  .menu-toggle span {
    width: 25px;
    height: 1px;
    background: var(--ink);
    transition: transform 0.3s;
  }
  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }
  .mobile-nav {
    position: fixed;
    inset: 74px 0 auto;
    background: var(--paper);
    z-index: 39;
    padding: 20px 24px 32px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px #0001;
  }
  .mobile-nav a {
    display: block;
    font: 600 32px var(--display);
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }
  .hero {
    padding-top: 25px;
    min-height: auto;
  }
  .hero-role {
    margin-top: 18px;
    font-size: 11px;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    padding: 40px 0 15px;
  }
  .hero-copy {
    padding-top: 0;
  }
  h1 {
    font-size: clamp(60px, 16.9vw, 130px);
    letter-spacing: -0.055em;
    line-height: 0.9;
  }
  .name-last {
    margin-top: 5px;
  }
  .hero-description {
    font-size: 15px;
    max-width: 440px;
    margin-top: 15px;
  }
  .hero-actions {
    margin-top: 24px;
    gap: 28px;
  }
  .button {
    padding: 14px 19px;
    min-height: 50px;
  }
  .hero-art {
    height: 360px;
    min-height: 0;
    margin: 28px 0 4px;
    max-width: 520px;
    width: 100%;
    justify-self: center;
  }
  .art-topline {
    top: 12px;
  }
  .art-bottomline {
    bottom: 9px;
  }
  .art-topline .mono {
    font-size: 9px;
  }
  .hero-bottom {
    padding: 16px 0;
    flex-wrap: wrap;
    font-size: 11px;
    gap: 10px;
  }
  .hero-bottom p {
    gap: 4px;
  }
  .motion-toggle {
    font-size: 11px;
  }
  .discipline-strip {
    --weave-width: 72px;
    padding: 24px 0;
    background-size: var(--weave-width) 24px;
  }
  .marquee-track {
    padding-block: 14px;
    font-size: 14px;
    --marquee-gap: 30px;
  }
  .work-section {
    padding-top: 70px;
    padding-bottom: 64px;
  }
  h2 {
    font-size: 38px;
  }
  .project-featured {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
  }
  .project-featured .project-visual {
    min-height: 340px;
  }
  .school-map {
    transform: scale(0.9);
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .project-info,
  .project-stacked .project-info {
    padding: 26px 24px 20px;
  }
  .project-info h3,
  .project-stacked h3 {
    font-size: 32px;
    margin-top: 24px;
  }
  .project-info > p {
    max-width: none;
    font-size: 15px;
  }
  .project-link {
    margin-top: 20px;
    min-height: 54px;
    padding-top: 8px;
  }
  .project-meta {
    font-size: 9px;
  }
  .project-stacked .project-visual {
    height: 310px;
    min-height: 310px;
  }
  .project-stacked .product-visual {
    height: auto;
    padding: 60px 16px;
  }
  .visual-label {
    font-size: 9px;
    left: 24px;
  }
  .visual-foot {
    left: 24px;
    right: 24px;
    font-size: 8px;
  }
  .token-output {
    font-size: 32px;
    left: 28px;
    bottom: 52px;
  }
  .token-flow {
    padding-left: 28px;
  }
  .learning-diagram {
    inset: 65px 28px;
    gap: 11px;
  }
  .message-bars {
    width: 55px;
  }
  .privacy-gate {
    width: 90px;
  }
  .goal-stack span {
    font-size: 9px;
  }
  .experience-section {
    padding-top: 70px;
    padding-bottom: 65px;
    display: block;
  }
  .experience-intro h2 {
    font-size: 38px;
  }
  .experience-intro p {
    max-width: 420px;
  }
  .experience-technologies {
    margin-top: 28px;
  }
  .timeline {
    margin-top: 40px;
  }
  .experience-item summary {
    padding: 22px 0;
  }
  .job-detail {
    padding-right: 0;
  }
  .about-section {
    padding-top: 65px;
    padding-bottom: 70px;
  }
  .about-section h2 {
    font-size: 50px;
  }
  .about-statement {
    font-size: 24px;
  }
  .section-label {
    margin-bottom: 32px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    margin-top: 34px;
  }
  .education-card {
    padding: 26px;
    min-height: 300px;
  }
  .education-card h3 {
    font-size: 32px;
  }
  .education-bottom {
    gap: 12px;
  }
  .education-bottom > span {
    font-size: 11px;
  }
  .education-bottom strong {
    font-size: 32px;
  }
  .contact-section {
    padding-top: 36px;
    padding-bottom: 35px;
  }
  .contact-section h2 {
    font-size: clamp(44px, 10.6vw, 76px);
    margin: 42px 0 64px;
  }
  .contact-section h2 svg {
    display: none;
  }
  .contact-bottom {
    display: block;
    padding-top: 22px;
  }
  .email-actions {
    gap: 15px;
    justify-content: space-between;
  }
  .email-actions > a {
    font-size: 14px;
  }
  .email-actions > button {
    padding: 8px;
  }
  .email-actions > button > span {
    display: none;
  }
  .contact-bottom > .text-link {
    margin-top: 22px;
    font-size: 13px;
  }
  .site-footer {
    padding-top: 24px;
    padding-bottom: 24px;
    gap: 15px;
  }
  .site-footer p {
    font-size: 10px;
  }
  .site-footer > a:last-child {
    font-size: 10px;
  }
  .site-footer > a:last-child span {
    margin-left: 6px;
  }
  dialog {
    padding: 20px 23px 26px;
    max-height: 88vh;
    max-height: 88svh;
  }
  #dialog-content h2 {
    font-size: 38px;
  }
  #dialog-content .dialog-lead {
    font-size: 17px;
  }
  .dialog-footer {
    flex-wrap: wrap;
    gap: 12px;
  }
  .dialog-footer .button {
    font-size: 13px;
  }
}
@media (max-width: 360px) {
  .hero-actions {
    gap: 18px;
  }
  .hero-actions .button {
    gap: 20px;
    padding: 13px 15px;
    font-size: 12px;
    white-space: nowrap;
  }
  .hero-actions .text-link {
    font-size: 12px;
    gap: 8px;
  }
  .section-shell {
    padding-left: 18px;
    padding-right: 18px;
  }
  .hero-bottom p {
    font-size: 10px;
  }
  .hero-art {
    height: 310px;
  }
  .learning-diagram {
    gap: 5px;
    inset: 65px 20px;
  }
  .message-bars {
    width: 40px;
  }
  .privacy-gate {
    width: 75px;
  }
  .contact-section h2 {
    font-size: 10.3vw;
  }
  .email-actions > a {
    font-size: 12px;
  }
  .site-footer .wordmark {
    width: 44px;
    height: 44px;
  }
}
html.motion-off {
  scroll-behavior: auto;
}
.motion-off *,
.motion-off *:before,
.motion-off *:after {
  animation: none !important;
  transition: none !important;
}
.motion-off .reveal {
  opacity: 1 !important;
  transform: none !important;
}
@media print {
  .calligraphy-backdrop,
  .site-header,
  .hero-art,
  .discipline-strip,
  .hero-actions,
  .hero-bottom,
  .project-visual,
  .project-link,
  .contact-section,
  .site-footer,
  .experience-technologies,
  .scroll-progress,
  .menu-toggle,
  dialog,
  .toast {
    display: none !important;
  }
  body {
    background: white;
    color: black;
    font-size: 12px;
  }
  .section-shell {
    padding: 20px 0;
  }
  .hero {
    min-height: 0;
  }
  .hero-layout {
    display: block;
    padding: 0;
  }
  h1 {
    font-size: 52px;
  }
  .project,
  .project-info,
  .experience-section,
  .about-section {
    background: white;
  }
  .project-grid,
  .project-featured,
  .experience-section,
  .about-grid {
    display: block;
  }
  .project-info {
    padding: 15px 0;
  }
  .project-info h3 {
    margin-top: 10px;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  h2 {
    font-size: 28px;
  }
  .project,
  .experience-item {
    break-inside: avoid;
  }
}
