@font-face {
  font-family: Geist;
  src: url("/assets/geist.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/plex-mono.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #f7f8f6;
  --ink: #171b23;
  --muted: #485262;
  --line: #d9deda;
  --blue: #2447ff;
  --blue-dark: #1635ce;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  font-family: Geist, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.75rem; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
p, h1, h2, h3, ul, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid #2447ff; outline-offset: 5px; }
.contact :focus-visible { outline-color: #fff; }
.shell { width: min(100% - 112px, 1280px); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 2;
  padding: .65rem 1rem;
  background: #fff;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}
.brand, .nav, .nav-resume { display: flex; align-items: center; }
.brand { gap: .65rem; width: fit-content; font-weight: 700; text-decoration: none; }
.brand-mark {
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font: 500 .81rem var(--mono);
  letter-spacing: -.12em;
  padding-inline-end: .1em;
}
.nav { gap: clamp(1.1rem, 3vw, 3rem); justify-content: center; }
.nav a, .nav-resume, .footer a { text-decoration: none; font-size: .95rem; font-weight: 550; }
.nav a:hover, .footer a:hover { color: var(--blue-dark); text-decoration: underline; }
.nav-resume {
  justify-self: end;
  gap: .65rem;
  padding: .55rem .85rem;
  border: 1px solid var(--line);
}
.nav-resume:hover { background: #eaedf6; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 80px);
  align-items: stretch;
  padding-block: clamp(38px, 6vw, 84px);
}
.hero-copy { align-self: center; padding-block: 1.2rem; }
.eyebrow {
  color: var(--blue-dark);
  font: 500 .83rem/1.45 var(--mono);
  text-transform: uppercase;
  letter-spacing: .075em;
}
.hero h1 {
  font-size: clamp(4.5rem, 9.7vw, 9.4rem);
  letter-spacing: -.075em;
  font-weight: 730;
  line-height: 1;
  margin: .08em 0 .15em -.045em;
}
.hero h1 span { color: var(--blue); }
.intro { max-width: 25em; color: var(--muted); font-size: clamp(1.1rem, 1.65vw, 1.4rem); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.75rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  width: fit-content;
  min-height: 48px;
  padding: .6rem 1rem;
  font-weight: 620;
  font-size: .95rem;
  border: 1px solid transparent;
  text-decoration: none;
}
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-dark); }
.button-quiet { border-color: var(--line); }
.button-quiet:hover { background: #eaedf6; }
.download-icon { display: inline-block; position: relative; width: .8rem; height: .78rem; border-bottom: 1.5px solid; flex: none; }
.download-icon::before { content: ""; position: absolute; height: .48rem; border-left: 1.5px solid; left: calc(50% - .75px); }
.download-icon::after { content: ""; position: absolute; width: .34rem; height: .34rem; border: solid; border-width: 0 1.5px 1.5px 0; left: calc(50% - .17rem); top: .19rem; transform: rotate(45deg); }

.hero-art {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  min-height: 380px;
  aspect-ratio: 1.27;
  background: radial-gradient(ellipse at 38% 21%, #4969ff, #2447ff 50%, #1636da 100%);
}
.art-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#d4dfec30 1px, transparent 1px), linear-gradient(90deg, #d4dfec30 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center;
  mask-image: radial-gradient(ellipse, #000 0%, #0008 66%, transparent 110%);
}
.orbit { position: absolute; border: 1px solid #dce6ff62; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-37deg); }
.orbit-outer { width: 78%; height: 62%; }
.orbit-inner { width: 68%; height: 44%; transform: translate(-50%, -50%) rotate(24deg); border-color: #dce6ff46; }
.monolith {
  position: absolute;
  width: 36%;
  aspect-ratio: 1.12;
  top: 50%;
  left: 50%;
  border: 1px solid #cbd8ffba;
  border-radius: 13%;
  box-shadow: 9px 14px 0 #102fc393, 27px 34px 42px #081d9e90, inset 0 1px 4px #e0e8ffab;
  background: linear-gradient(133deg, #e1e8ffed, #7c96ffcc 37%, #3559fd 77%);
}
.monolith-back { transform: translate(-59%, -61%) rotate(-28deg) skewX(10deg); }
.monolith-front {
  transform: translate(-37%, -36%) rotate(-28deg) skewX(10deg);
  background: linear-gradient(139deg, #f4f8ff, #b2c4f7 45%, #5179ff 74%, #284fe3);
}
.monolith-front::after {
  content: "";
  position: absolute;
  inset: 17%;
  border: 1px solid #ffffffc2;
  border-radius: 13%;
  background: linear-gradient(135deg, #a8bcfa54, #f3f7fd5c);
  box-shadow: inset 5px 5px 10px #224ed936;
}
.art-point { position: absolute; width: 7px; height: 7px; background: #fff; box-shadow: 0 0 12px #fff; border-radius: 50%; }
.point-left { top: 57%; left: 15%; }
.point-right { top: 30%; right: 18%; }
.art-cross { position: absolute; width: 13px; height: 13px; opacity: .68; background: linear-gradient(#fff,#fff) center / 1px 100% no-repeat, linear-gradient(#fff,#fff) center / 100% 1px no-repeat; }
.cross-top { top: 10%; left: 9%; }
.cross-bottom { right: 9%; bottom: 10%; }

.section { padding-block: 1.65rem clamp(2.8rem, 6vw, 5.3rem); border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; column-gap: 1rem; row-gap: .4rem; flex-wrap: wrap; margin-bottom: 1.65rem; }
.section h2 { font-size: clamp(2rem, 3.9vw, 3.6rem); letter-spacing: -.065em; font-weight: 680; line-height: 1.06; }
.section-heading > p, .section-heading > a { color: var(--muted); font-size: .95rem; }
.text-link { font-weight: 600; }
.text-link:hover { color: var(--blue-dark); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.project-card { display: grid; align-content: start; border: 1px solid var(--line); text-decoration: none; background: #fff; }
.project-card:hover { border-color: var(--blue); }
.project-visual { width: 100%; min-width: 0; min-height: 194px; aspect-ratio: 2.6; position: relative; overflow: hidden; display: grid; place-items: center; }
.visual-monitor {
  color: #4c68ff;
  background-color: #e1e7ff;
  background-image: linear-gradient(#9eaef549 1px, transparent 1px), linear-gradient(90deg, #9eaef549 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center;
}
.monitor-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  border: 1px solid #a2b1ff;
  width: 130px;
  height: 102px;
  padding: 1.05rem 1.18rem;
  background: #f5f7ff;
  box-shadow: 7px 7px #bdcaff;
}
.monitor-bars i { flex: 1; height: 36%; background: currentColor; }
.monitor-bars i:nth-child(2) { height: 52%; }
.monitor-bars i:nth-child(3) { height: 42%; }
.monitor-bars i:nth-child(4) { height: 71%; }
.monitor-bars i:nth-child(5) { height: 100%; background: #2447ff; }
.visual-agents {
  background: radial-gradient(circle at center, #29334a, #141928 75%);
}
.visual-agents::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .55;
  background: radial-gradient(#b5c5ed70 1px, transparent 1.5px) center / 17px 17px;
  mask-image: radial-gradient(ellipse, #000, transparent 80%);
}
.agent-diagram { width: 158px; height: 96px; position: relative; }
.agent-diagram::before { content: ""; position: absolute; left: 9px; right: 9px; top: 50%; border-top: 1px solid #b5c4ff99; }
.agent-diagram::after { content: ""; position: absolute; height: 78px; left: 50%; top: 10px; border-left: 1px solid #b5c4ff99; }
.agent-diagram i { position: absolute; top: 50%; left: 50%; width: 32px; aspect-ratio: 1; transform: translate(-50%,-50%) rotate(45deg); background: #5873ff; border: 1px solid #b9c8ff; z-index: 1; box-shadow: 0 0 24px #5774ff60; }
.agent-diagram i:nth-child(2) { left: 9px; width: 15px; background: #343e83; }
.agent-diagram i:nth-child(3) { left: calc(100% - 9px); width: 15px; background: #343e83; }
.agent-diagram i:nth-child(4) { top: calc(100% - 10px); width: 15px; background: #343e83; }
.visual-recruitment { background-color: #e7edeb; background-image: radial-gradient(#acbfb3 1px, transparent 1px); background-size: 15px 15px; }
.recruitment-diagram { display: grid; gap: 7px; width: 138px; border: 1px solid #acbfb3; padding: .8rem; background: #f9fbfa; box-shadow: 6px 6px #ccdcd1; }
.recruitment-diagram i { height: 12px; background: linear-gradient(90deg, #638770 12%, transparent 12% 20%, #c9dbcf 20%); }
.project-copy { display: grid; gap: .45rem; padding: 1.25rem clamp(1.1rem, 2.3vw, 1.8rem) 1.45rem; }
.project-copy h3 { font-size: clamp(1.22rem, 2vw, 1.85rem); letter-spacing: -.046em; line-height: 1.2; }
.project-copy > p:not(.eyebrow), .timeline-description { color: var(--muted); line-height: 1.6; }
.project-link { color: var(--blue-dark); font-weight: 650; margin-top: .5rem; }
.project-card:hover .project-link { text-decoration: underline; text-underline-offset: .22em; }
.project-compact { grid-column: 1 / -1; grid-template-columns: minmax(195px, 26%) 1fr; align-items: stretch; }
.project-compact .project-visual { min-height: 142px; height: 100%; aspect-ratio: auto; }
.project-compact .project-copy { align-content: center; }

.timeline { padding: 0; list-style: none; }
.timeline li, .education { display: grid; grid-template-columns: minmax(205px, 1fr) 2.35fr; gap: .6rem 1.5rem; }
.timeline li { padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.timeline li:first-child { border-top: 1px solid var(--line); }
.timeline-date { font: 500 .85rem/1.55 var(--mono); color: var(--muted); }
.timeline h3, .education h3 { font-size: 1.15rem; font-weight: 680; letter-spacing: -.02em; }
.timeline h3 + p, .education h3 + p { margin-top: .2rem; }
.timeline-description, .education .timeline-date { margin-top: .5rem; }
.contact { background: var(--blue-dark); color: #fff; padding: clamp(1.8rem, 5vw, 5rem); }
.contact h2 { font-weight: 700; font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -.075em; }
.contact p { line-height: 1.6; color: #e3e9ff; margin-top: .75rem; }
.button-light { background: #fff; color: var(--blue-dark); margin-top: 1.5rem; }
.button-light:hover { background: #e5ebff; }
.footer { display: flex; gap: 1rem; justify-content: space-between; align-items: center; padding-block: 1.5rem; font-size: .92rem; color: var(--muted); }

.case { padding-block: clamp(1.75rem, 5vw, 4.3rem) 0; }
.case-back { display: inline-block; margin-bottom: clamp(1.7rem, 4vw, 3.5rem); }
.case-head { max-width: 890px; padding-bottom: 1.6rem; }
.case h1 { font-size: clamp(2.8rem, 6.75vw, 6.55rem); font-weight: 725; line-height: 1.02; letter-spacing: -.074em; margin-block: .14em .21em; }
.case .intro { max-width: 40em; }
.case-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(1.35rem, 5vw, 4rem); padding-block: 1.65rem clamp(2.6rem, 5vw, 4.6rem); border-top: 1px solid var(--line); }
.case-layout .project-visual { aspect-ratio: 1.8; }
.case-info { display: grid; grid-template-columns: 1fr; align-content: center; }
.case-info > div { padding-block: .85rem; border-bottom: 1px solid var(--line); }
.case-info > div:first-child { border-top: 1px solid var(--line); }
.case-info dt { color: var(--blue-dark); font: 500 .83rem/1.45 var(--mono); text-transform: uppercase; letter-spacing: .075em; }
.case-info dd { line-height: 1.4; margin-top: .32rem; font-weight: 610; }
.case-body { display: grid; gap: 1.05rem; max-width: 690px; border-top: 1px solid var(--line); padding-block: 1.75rem 3rem; }
.case-body h2 { font-size: clamp(1.7rem, 3vw, 2.75rem); line-height: 1.08; letter-spacing: -.055em; }
.case-body p { font-size: 1.05rem; color: var(--muted); line-height: 1.68; }
.case-next { margin-bottom: 1.2rem; }

@media (max-width: 980px) {
  .shell { width: min(100% - 64px, 1280px); }
  .hero { gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .hero-art { min-height: 340px; }
  .hero h1 { font-size: clamp(4.3rem, 10vw, 7rem); }
}

@media (max-width: 700px) {
  .shell { width: calc(100% - 36px); }
  .top { grid-template-columns: 1fr auto; min-height: auto; padding-block: .7rem; gap: .65rem; }
  .nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; }
  .nav a { padding-block: .35rem; }
  .hero { grid-template-columns: 1fr; gap: 1.55rem; padding-block: 1.75rem 2rem; }
  .hero-copy { padding-block: .35rem; }
  .hero h1 { font-size: clamp(4.25rem, 14.7vw, 7rem); }
  .hero-art { min-height: 0; aspect-ratio: 1.55; max-height: 350px; }
  .actions { margin-top: 1.25rem; }
  .section-heading { margin-bottom: 1.2rem; }
  .project-grid { grid-template-columns: 1fr; }
  .project-visual { min-height: 158px; aspect-ratio: 2.2; }
  .project-compact { grid-template-columns: 1fr; }
  .project-compact .project-visual { height: auto; min-height: 158px; aspect-ratio: 2.2; }
  .timeline li, .education, .case-layout { grid-template-columns: 1fr; }
  .education { gap: 1rem; }
  .case-layout .project-visual { aspect-ratio: 2.2; }
}

@media (max-width: 370px) {
  .shell { width: calc(100% - 28px); }
  .hero h1 { font-size: clamp(3.4rem, 16vw, 4.25rem); }
  .button { font-size: .9rem; padding-inline: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
