:root {
  color-scheme: light;
  --ink: #15161d;
  --paper: #fff;
  --card: #f5f5f5;
  --page-gutter: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page-shell { position: relative; min-height: 100svh; }

/* Header / Figma reference: top aligned, right anchored. */
.site-header {
  position: fixed;
  z-index: 10;
  top: 26px;
  right: 54px;
  left: var(--page-gutter);
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 69px;
}

.site-nav a {
  margin: -2px -4px;
  padding: 2px 4px;
  color: #9b9b9b;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible { background: var(--ink); color: #fff; outline: none; }

/* Hero / keep dimensions here for direct comparison with the 1920px Figma capture. */
.hero {
  min-height: 100svh;
  padding: clamp(220px, 30.5svh, 395px) var(--page-gutter) 250px;
}

.hero-content { max-width: 1120px; }

.hero h1 {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: clamp(40px, 3.18vw, 61px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.038em;
}

.hero h1 span { white-space: nowrap; }

.hero-lead {
  margin: 20px 0 0;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.045em;
}

.hero-description {
  margin: 16px 0 0;
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: -0.04em;
}

.hero-button {
  display: inline-flex;
  min-width: 220px;
  min-height: 56px;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 36px;
  border-radius: 100px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.hero-button:hover,
.hero-button:focus-visible { background: #34363f; }
.hero-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* About / 1920 × 1162 reference: copy x=28, image column x≈692. */
.about {
  display: grid;
  grid-template-columns: 600px 510px minmax(0, 1fr);
  column-gap: 64px;
  min-height: 1680px;
  padding: 46px 28px 0;
  scroll-margin-top: 0;
}

.about-copy { padding-top: 132px; }
.about-eyebrow { margin: 0; color: #666; font-size: 13px; font-weight: 700; line-height: 1.25; }
.about h2 { margin: 35px 0 0; color: #252525; font-size: 32px; font-weight: 400; line-height: 1.32; letter-spacing: -0.045em; }
.about-intro { max-width: 510px; margin: 25px 0 0; color: #242424; font-size: 16px; line-height: 1.5; letter-spacing: -0.035em; }
.about-facts { display: grid; gap: 49px; margin: 34px 0 0; }
.about-fact { display: grid; grid-template-columns: 146px 1fr; font-size: 16px; line-height: 1.5; }
.about-fact dt, .about-fact dd { margin: 0; }
.resume-button {
  display: flex;
  width: 220px;
  height: 55px;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 63px 0 0 334px;
  border-radius: 100px;
  background: #202020;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

/* The wordmark starts low, then sticks near viewport center as the gray panels scroll past. */
.about-visual { position: relative; grid-column: 2; height: 1550px; isolation: isolate; }
.about-image { position: absolute; z-index: -1; left: 0; width: 100%; background: #d7d7d7; }
.about-image-first { top: 0; height: 660px; }
.about-image-second { top: 666px; height: 884px; background: #cfcfcf; }
.about-name {
  position: sticky;
  z-index: 1;
  top: 50vh;
  width: max-content;
  margin-top: 70vh;
  margin-left: 25px;
  color: var(--ink);
  font-size: clamp(65px, 4.6vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.055em;
  white-space: nowrap;
  pointer-events: none;
}

/* Projects / centered list and gray preview match the 1920 × 1063 frame. */
.projects { display: flex; min-height: 100svh; align-items: center; justify-content: center; padding: 100px 28px; }
.projects-inner { display: grid; grid-template-columns: 286px 1fr; align-items: center; gap: 20px; width: min(100%, 682px); }
.projects-preview { width: 286px; height: 338px; background: #d9d9d9; }
.projects-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.projects-list a, .project-pending { display: grid; grid-template-columns: 47px 196px 1fr; align-items: baseline; min-height: 26px; text-decoration: none; white-space: nowrap; }
.projects-list a { width: max-content; padding: 2px 4px; margin: -2px -4px; color: #9e9e9e; }
.projects-list a:hover, .projects-list a:focus-visible { background: var(--ink); color: #fff; outline: none; }
.projects-list strong, .project-number { font-size: 20px; font-weight: 700; line-height: 1.2; }
.project-type { font-size: 16px; font-weight: 400; }
.project-pending { color: #9e9e9e; cursor: default; }

/* Objects / same restrained layout and hover behavior as Projects. */
.objects { display: flex; min-height: 100svh; align-items: center; justify-content: center; padding: 100px 28px; }
.objects-inner { display: grid; grid-template-columns: 286px 1fr; align-items: center; gap: 32px; width: min(100%, 648px); }
.objects-preview { width: 286px; height: 338px; background: #d9d9d9; }
.objects-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.objects-list a { display: grid; grid-template-columns: 58px 1fr; width: max-content; min-height: 26px; align-items: baseline; margin: -2px -4px; padding: 2px 4px; color: #9e9e9e; font-size: 20px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.objects-list a:hover, .objects-list a:focus-visible { background: var(--ink); color: #fff; outline: none; }

/* A simple destination for the contact card until a Contact Figma frame is provided. */
.contact-page-content { display: flex; min-height: 100svh; flex-direction: column; justify-content: center; padding: 140px var(--page-gutter); }
.contact-page-content p { margin: 0 0 25px; color: #777; font-size: 13px; font-weight: 700; }
.contact-page-content h1 { margin: 0 0 30px; font-size: clamp(64px, 8vw, 150px); line-height: 1; letter-spacing: -0.06em; }
.contact-page-content a { width: max-content; max-width: 100%; font-size: clamp(22px, 3vw, 42px); text-decoration-thickness: 1px; text-underline-offset: 6px; overflow-wrap: anywhere; }
.contact-page-content span { margin-top: 35px; color: #777; font-size: 16px; }

/* Contact detail visible at the bottom left of the supplied Home frame. */
.contact-card {
  position: fixed;
  z-index: 8;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 291px;
  min-height: 213px;
  padding: 31px 50px 28px 60px;
  background: var(--card);
  color: #222;
  font-size: 16px;
  line-height: 1.35;
}

.contact-card-top { display: flex; justify-content: space-between; padding: 0 16px 9px; font-weight: 600; }
.contact-card-top a { text-decoration: none; }
.contact-card-top button { border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.contact-card-top a, .contact-card-top button { margin: -2px -4px; padding: 2px 4px; }
.contact-card-top a:hover, .contact-card-top a:focus-visible, .contact-card-top button:hover, .contact-card-top button:focus-visible { background: var(--ink); color: #fff; outline: none; }
.contact-card-line { width: 191px; height: 1px; margin-left: -10px; margin-bottom: 10px; background: #222; }
.contact-card strong { font-weight: 700; }
.contact-card a { width: max-content; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-card small { margin-top: 22px; font-size: 14px; white-space: nowrap; }

@media (max-width: 1360px) {
  :root { --page-gutter: 32px; }
  .site-header { right: 32px; }
  .site-nav { gap: 26px; }
  .site-nav a { font-size: 17px; }
  .hero { padding-top: clamp(210px, 29svh, 330px); }
  .hero h1 { font-size: clamp(38px, 5.2vw, 56px); }
  .hero h1 span { white-space: normal; }
  .hero-lead { font-size: 23px; }
  .hero-description { font-size: 18px; }
  .about { grid-template-columns: minmax(0, 1fr) minmax(260px, 38vw); column-gap: 30px; padding-right: 32px; }
  .about h2 { font-size: 27px; }
  .about-intro { max-width: 100%; }
  .about-fact { grid-template-columns: 112px 1fr; font-size: 14px; }
  .resume-button { margin-left: auto; }
  .about-name { margin-left: -105px; font-size: clamp(56px, 7vw, 74px); }
  .projects-inner { width: min(100%, 682px); }
  .objects-inner { width: min(100%, 648px); }
}

@media (max-width: 640px) {
  :root { --page-gutter: 22px; }
  .site-header { top: 22px; right: 22px; }
  .site-nav { justify-content: flex-start; flex-wrap: wrap; gap: 13px 20px; }
  .site-nav a { font-size: 14px; }
  .hero { min-height: 100svh; padding-top: clamp(175px, 28svh, 260px); padding-bottom: 220px; }
  .hero h1 { font-size: clamp(35px, 9vw, 48px); line-height: 1.13; }
  .hero-lead { margin-top: 24px; font-size: 21px; }
  .hero-description { margin-top: 12px; font-size: 16px; }
  .hero-button { margin-top: 29px; }
  .contact-card { width: 246px; min-height: 185px; padding: 22px 30px; font-size: 14px; }
  .contact-card-top { padding: 0 12px 7px; }
  .contact-card-line { width: 186px; margin-left: 0; }
  .contact-card small { margin-top: 16px; font-size: 12px; }
  .about { display: block; min-height: auto; padding: 0 22px 210px; }
  .about-copy { padding-top: 150px; }
  .about-eyebrow { font-size: 11px; }
  .about h2 { margin-top: 28px; font-size: clamp(25px, 6.2vw, 32px); }
  .about h2 br { display: none; }
  .about-intro { margin-top: 20px; font-size: 14px; }
  .about-facts { gap: 34px; margin-top: 35px; }
  .about-fact { grid-template-columns: 105px 1fr; font-size: 14px; }
  .resume-button { margin: 48px 0 80px auto; }
  .about-visual { width: min(74vw, 510px); height: 980px; margin-left: auto; }
  .about-image-first { height: 450px; }
  .about-image-second { top: 456px; height: 524px; }
  .about-name { top: 47vh; margin-top: 340px; margin-left: -80px; font-size: clamp(42px, 11vw, 65px); }
  .contact-card { position: static; }
  .projects { min-height: 740px; padding: 110px 22px 100px; }
  .projects-inner { display: block; width: 100%; }
  .projects-preview { width: min(100%, 286px); height: 260px; margin: 0 auto 35px; }
  .projects-list { gap: 18px; }
  .projects-list a, .project-pending { grid-template-columns: 31px minmax(0, 1fr); column-gap: 8px; white-space: normal; }
  .projects-list strong, .project-number { font-size: 16px; }
  .project-type { grid-column: 2; font-size: 12px; }
  .objects { min-height: 740px; padding: 110px 22px 100px; }
  .objects-inner { display: block; width: 100%; }
  .objects-preview { width: min(100%, 286px); height: 260px; margin: 0 auto 35px; }
  .objects-list { gap: 18px; }
  .objects-list a { grid-template-columns: 31px minmax(0, 1fr); column-gap: 8px; font-size: 16px; white-space: normal; }
  .contact-page-content { padding: 160px 22px 80px; }
}
