:root {
  --paper: #ffffff;
  --ink: #17243a;
  --muted: #566276;
  --accent: #2458ad;
  --line: #dce3ee;
  --portrait-position: 50% 70%;
}

/* Foundation */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.65 Arial,
    Helvetica,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
a:hover {
  color: var(--accent);
}
::selection {
  background: #dbe8ff;
}
img {
  display: block;
  max-width: 100%;
}
.container {
  width: min(1160px, calc(100% - 96px));
  margin-inline: auto;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(42px, 4.65vw, 66px);
  line-height: 1.08;
  letter-spacing: -2.8px;
  font-weight: 500;
  margin-bottom: 28px;
}
h2 {
  font-size: clamp(30px, 3.2vw, 43px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -1.6px;
  margin-bottom: 0;
}
h3 {
  font-size: 27px;
  letter-spacing: -0.7px;
  line-height: 1.2;
  font-weight: 500;
  margin-bottom: 19px;
}
em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--accent);
}
.eyebrow,
.role-date,
.focus-strip,
.visual-footer,
.visual-label {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.09em;
}
.eyebrow {
  color: var(--accent);
  margin: 0 0 22px;
}
.intro-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--accent);
}
.text-link {
  display: inline-block;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  padding-bottom: 4px;
}
.section {
  padding-block: 100px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 50px;
}
.section-heading .eyebrow {
  margin-bottom: 16px;
}
.section-heading > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 3px;
}

/* Navigation */
.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 20;
}
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  z-index: 10;
}
.header-inner {
  height: 92px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -3px;
}
.wordmark span {
  color: var(--accent);
}
nav {
  display: flex;
  gap: 34px;
  font-size: 13px;
}
nav a {
  position: relative;
  padding: 10px 0;
}
nav a[aria-current]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: var(--accent);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 12px;
  background: var(--ink);
  color: white;
  z-index: 30;
}
.skip-link:focus {
  top: 12px;
}

/* Introduction */
.hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 70px;
  padding-block: 88px 70px;
  align-items: center;
}
.intro {
  max-width: 510px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 28px;
}
.hero-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.button {
  display: inline-block;
  padding: 13px 21px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
}
.button:hover {
  background: var(--accent);
  color: white;
}
.hero-note {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.hero-note > span {
  color: var(--muted);
}
.hero-note p {
  margin: 0;
}
.portrait {
  margin: 0;
}
.portrait-frame {
  background: #e6ecf6;
  overflow: hidden;
  aspect-ratio: 4/5;
  border-radius: 5px;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--portrait-position);
  filter: none;
}
figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
  padding-top: 13px;
}
figcaption a {
  font-size: 20px;
  line-height: 1;
}
.focus-strip {
  border-block: 1px solid var(--line);
  padding-block: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}
.focus-strip span + span::before {
  content: "+";
  margin-right: clamp(12px, 4vw, 65px);
  color: var(--accent);
}

/* Projects */
.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  padding-block: 40px;
  border-top: 1px solid var(--line);
  align-items: center;
}
.project-copy .eyebrow {
  font-size: 10px;
  margin-bottom: 17px;
}
.project-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 14px;
}
.project-result {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--accent);
  padding-left: 17px;
  margin: 24px 0;
}
.project-result strong {
  font-size: 29px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -1px;
}
.project-result strong span {
  font-size: 13px;
  letter-spacing: 0;
}
.project-result > span {
  font-size: 11px;
  color: var(--muted);
}
.tags {
  display: flex;
  list-style: none;
  gap: 7px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 0 24px;
}
.tags li {
  font-size: 10px;
  border: 1px solid var(--line);
  padding: 3px 8px;
}
.project-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
}
.vision-visual {
  background-color: #edf3fc;
  color: #2458ad;
  background-image:
    linear-gradient(#2458ad0c 1px, transparent 1px),
    linear-gradient(90deg, #2458ad0c 1px, transparent 1px);
  background-size: 28px 28px;
}
.target-frame {
  position: relative;
  width: 75%;
  margin: auto;
  border: 1px solid #7898c5;
  padding: 15px 10px;
}
.target-frame::before,
.target-frame::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid var(--accent);
}
.target-frame::before {
  top: -2px;
  left: -2px;
  border-right: 0;
  border-bottom: 0;
}
.target-frame::after {
  bottom: -2px;
  right: -2px;
  border-left: 0;
  border-top: 0;
}
.target-frame > span {
  font:
    9px Consolas,
    monospace;
  position: absolute;
  top: -24px;
  left: 0;
}
.target-frame svg {
  width: 100%;
  display: block;
}
.visual-footer {
  position: absolute;
  bottom: 25px;
  left: 30px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
}
.language-visual {
  background: #183969;
  color: #e6efff;
  align-items: center;
}
.visual-label {
  position: absolute;
  top: 30px;
  left: 30px;
  font-size: 9px;
}
.voice-mark {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 25px;
}
.voice-mark i {
  display: block;
  width: 3px;
  background: #a9caff;
  height: 18px;
}
.voice-mark i:nth-child(3n) {
  height: 44px;
}
.voice-mark i:nth-child(3n + 1) {
  height: 28px;
}
.voice-mark i:nth-child(5n) {
  height: 65px;
}
.language-caption {
  font-size: 39px;
  line-height: 1.1;
  letter-spacing: -1px;
  text-align: center;
}
.language-caption em {
  color: #c3d8ff;
}
.other-work {
  margin-top: 30px;
}
.other-work > .eyebrow {
  margin-bottom: 15px;
}
.other-work > a {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.other-work > a > span:first-child {
  font-size: 17px;
}
.other-work > a > span:nth-child(2) {
  font-size: 12px;
  color: var(--muted);
}

/* Experience and background */
.experience-band {
  background: #f6f8fc;
}
.experience-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 45px;
  border-top: 1px solid #d7e0ef;
  padding-block: 32px;
}
.role-date {
  padding-top: 5px;
  color: var(--muted);
  font-size: 10px;
}
.current-label {
  display: block;
  width: fit-content;
  border: 1px solid #b6c9e6;
  padding: 2px 7px;
  margin-top: 13px;
  color: var(--accent);
  font-size: 9px;
}
.experience-row h3 {
  font-size: 22px;
  margin-bottom: 7px;
}
.organization {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 15px;
}
.experience-row p:last-child {
  max-width: 630px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 110px;
}
.about-copy {
  font-size: 14px;
  color: var(--muted);
  max-width: 480px;
  margin: 24px 0 0;
}
.education {
  margin-top: 40px;
}
.education h3 {
  font-size: 16px;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}
.education p:not(.eyebrow) {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 23px;
}
.education p span {
  display: block;
  font-size: 11px;
  margin-top: 3px;
}
.skills {
  padding-top: 5px;
}
.skills > div {
  border-top: 1px solid var(--line);
  padding: 24px 0 7px;
}
.skills h3 {
  font-size: 16px;
  letter-spacing: 0;
  margin-bottom: 10px;
}
.skills p:not(.eyebrow) {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}

/* Contact and motion */
.contact {
  border-top: 1px solid var(--line);
  padding-block: 65px 80px;
}
.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.contact h2 {
  font-size: 54px;
}
.contact-inner > div > p {
  font-size: 14px;
  color: var(--muted);
}
.contact-email {
  font-size: 19px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  display: block;
}
.social-links {
  display: flex;
  gap: 27px;
  font-size: 12px;
  margin-top: 22px;
}
footer {
  border-top: 1px solid var(--line);
  padding-block: 25px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
}
.will-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.will-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive layouts */
@media (max-width: 900px) {
  .container {
    width: calc(100% - 56px);
  }
  .hero {
    gap: 35px;
    padding-top: 60px;
    grid-template-columns: 1.4fr 1fr;
  }
  h1 {
    font-size: 45px;
  }
  .hero-links,
  .hero-note {
    gap: 18px;
  }
  .focus-strip {
    font-size: 9px;
  }
  .focus-strip span + span::before {
    margin-right: 14px;
  }
  .section {
    padding-block: 75px;
  }
  .project {
    gap: 30px;
  }
  .project-visual {
    min-height: 370px;
  }
  .about-grid {
    gap: 55px;
  }
  .contact h2 {
    font-size: 44px;
  }
  .section-heading > p {
    max-width: 220px;
  }
  .contact-email {
    font-size: 16px;
  }
}
@media (max-width: 640px) {
  .container {
    width: calc(100% - 40px);
  }
  .header-inner {
    height: 74px;
  }
  .wordmark {
    font-size: 26px;
  }
  nav {
    gap: 17px;
    font-size: 11px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 50px 38px;
  }
  h1 {
    font-size: 45px;
    letter-spacing: -2px;
  }
  .intro {
    font-size: 15px;
  }
  .hero-note {
    margin-top: 30px;
  }
  .portrait {
    display: block;
    width: min(100%, 360px);
    margin-top: 4px;
  }
  .portrait-frame {
    aspect-ratio: 4 / 5;
  }
  .portrait img {
    object-position: var(--portrait-position);
  }
  .portrait figcaption {
    font-size: 12px;
    max-width: none;
    line-height: 1.6;
    padding-top: 10px;
  }
  .focus-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    padding-block: 18px;
    font-size: 9px;
  }
  .focus-strip span + span::before {
    content: none;
  }
  .section {
    padding-block: 60px;
  }
  .section-heading {
    display: block;
    margin-bottom: 30px;
  }
  .section-heading > p {
    margin-top: 20px;
    max-width: none;
  }
  .section-heading > p br {
    display: none;
  }
  h2 {
    font-size: 32px;
  }
  .project {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 30px;
  }
  .project-visual {
    min-height: 290px;
    width: 100%;
  }
  .project-copy h3 {
    font-size: 28px;
  }
  .target-frame {
    max-width: 270px;
  }
  .project-copy .eyebrow {
    font-size: 9px;
  }
  .other-work > a {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .other-work > a > span:nth-child(2) {
    grid-row: 2;
    font-size: 11px;
  }
  .experience-row {
    grid-template-columns: 1fr;
    gap: 17px;
    padding-block: 26px;
  }
  .role-date {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  .current-label {
    margin: 0;
  }
  .experience-row h3 {
    font-size: 21px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .contact {
    padding-block: 45px 55px;
  }
  .contact-inner {
    display: block;
  }
  .contact h2 {
    font-size: 43px;
    margin-bottom: 30px;
  }
  .contact-email {
    font-size: 17px;
    width: fit-content;
  }
  footer {
    flex-wrap: wrap;
  }
  footer > span:nth-child(2) {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .will-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
