:root {
  --ink: #101112;
  --muted: #62635e;
  --quiet: #a2a29c;
  --line: #deded7;
  --paper: #f4f3ed;
  --panel: #fdfcf8;
  --blue: #2457f5;
  --blue-dark: #1539b6;
  --lime: #d8ff46;
  --radius-lg: 30px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(16, 17, 18, .12);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; }

.site-header {
  position: fixed;
  z-index: 10;
  top: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100vw - 32px));
  min-height: 58px;
  padding: 9px 10px 9px 18px;
  border: 1px solid rgba(16, 17, 18, .09);
  border-radius: 999px;
  background: rgba(253, 252, 248, .78);
  box-shadow: 0 12px 32px rgba(16, 17, 18, .07);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}
.brand { text-decoration: none; letter-spacing: -.045em; }
.brand span { font-size: 1rem; font-weight: 800; }
nav { display: flex; gap: 4px; align-items: center; }
nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #484944;
  font-size: .83rem;
  font-weight: 750;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}
nav a:hover, nav a:focus-visible { color: white; background: var(--ink); outline: 0; }

main { overflow: hidden; }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, .94fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  min-height: 760px;
  padding: 146px max(24px, calc((100vw - 1280px) / 2)) 88px;
  background:
    radial-gradient(circle at 84% 16%, rgba(216, 255, 70, .62) 0 9%, transparent 29%),
    linear-gradient(130deg, #fdfcf8 0%, #f4f3ed 72%);
}
.hero::after {
  position: absolute;
  right: 2.6vw;
  bottom: 34px;
  color: rgba(16, 17, 18, .22);
  content: "01";
  font-family: Georgia, serif;
  font-size: clamp(8rem, 18vw, 18rem);
  font-weight: 400;
  line-height: .7;
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--blue-dark);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.eyebrow::before { width: 22px; height: 2px; background: currentColor; content: ""; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.052em; }
h1 {
  max-width: 790px;
  margin-bottom: 24px;
  font-size: clamp(4rem, 7.2vw, 7.2rem);
  font-weight: 820;
  line-height: .89;
}
h2 { margin-bottom: 0; font-size: clamp(3rem, 5.2vw, 5.4rem); line-height: .92; }
h3 { margin-bottom: 20px; font-size: clamp(2.15rem, 3.4vw, 3.55rem); line-height: .96; }
h4 { margin-bottom: 12px; color: var(--blue-dark); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.intro { max-width: 480px; margin-bottom: 0; color: var(--muted); font-size: clamp(1.04rem, 1.5vw, 1.22rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.button {
  display: inline-flex;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 12px 20px;
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s ease;
}
.button::after { margin-left: 10px; content: "↗"; font-size: 1rem; }
.button.primary { border-color: var(--blue); color: white; background: var(--blue); box-shadow: 0 9px 18px rgba(36, 87, 245, .25); }
.button.secondary { background: transparent; }
.button:hover { transform: translateY(-3px); box-shadow: 0 12px 21px rgba(16, 17, 18, .14); }
.button.primary:hover { background: var(--blue-dark); }
.button:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

.hero-panel {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(16,17,18,.13);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.hero-panel::before { position: absolute; z-index: 1; top: 15px; left: 15px; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: 18px 0 0 var(--paper), 36px 0 0 var(--blue); content: ""; }
.hero-panel img { aspect-ratio: 4 / 3; object-fit: cover; }
.hero-panel dl { display: grid; grid-template-columns: .72fr 1.28fr; margin: 0; border-top: 1px solid var(--line); }
.hero-panel dl > div { padding: 18px 20px 20px; }
.hero-panel dl > div + div { border-left: 1px solid var(--line); }
.hero-panel .hero-discipline { display: flex; align-items: center; }
.hero-panel .hero-discipline dt { display: flex; flex-wrap: wrap; gap: 0 7px; font-size: .95rem; font-weight: 750; line-height: 1.45; }
dt { font-size: 2rem; font-weight: 850; letter-spacing: -.07em; line-height: 1; }
dd { margin: 5px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.25; }

.section-strip, .projects, .contact { padding: clamp(70px, 9vw, 130px) max(24px, calc((100vw - 1280px) / 2)); }
.section-strip {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(340px, 1fr);
  gap: clamp(34px, 7vw, 110px);
  align-items: start;
  color: var(--panel);
  background: var(--ink);
}
.section-strip .eyebrow { color: var(--lime); }
.section-strip h2 { max-width: 690px; }
.skill-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.skill-list li { display: flex; align-items: center; min-height: 66px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .93rem; font-weight: 700; }
.skill-list li::before { flex: 0 0 auto; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--lime); content: ""; }

.projects { background: var(--panel); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: clamp(36px, 6vw, 72px); }
.project { display: grid; grid-template-columns: minmax(290px, .9fr) minmax(0, 1.1fr); gap: clamp(34px, 6vw, 92px); align-items: center; padding: clamp(50px, 7vw, 98px) 0; border-top: 1px solid var(--line); }
.project-visuals { position: relative; }
.project-visuals::before { position: absolute; z-index: 2; top: -19px; left: -3px; width: 38px; height: 38px; border-radius: 50%; color: white; background: var(--blue); content: "0" counter(projects); counter-increment: projects; display: grid; place-items: center; font-size: .73rem; font-weight: 800; }
.projects { counter-reset: projects; }
.gallery-kicker { margin-bottom: 13px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.project-media { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-self: start; }
.project-media img { height: 166px; min-height: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #f8f8f6; object-fit: contain; cursor: zoom-in; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.project-media img:hover { position: relative; z-index: 2; box-shadow: 0 18px 30px rgba(16,17,18,.15); transform: scale(1.035); }
.project-media.image-grid img:first-child, .project-media img.gallery-wide { grid-column: 1 / -1; height: 225px; }
.project-type { margin-bottom: 11px; color: var(--blue); font-size: .7rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.three-col { display: grid; grid-template-columns: 1fr; gap: 17px; margin-top: 32px; }
.three-col > div { border-top: 2px solid var(--ink); padding-top: 12px; }
.three-col p, .three-col ul, .clean-list { color: var(--muted); }
.three-col ul { display: grid; gap: 8px; margin: 0; padding-left: 18px; font-size: .93rem; line-height: 1.55; }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); gap: clamp(42px, 9vw, 140px); align-items: end; color: white; background: var(--blue); }
.contact .eyebrow { color: var(--lime); }
.contact h2 { max-width: 720px; }
.contact-links { display: grid; gap: 7px; }
.contact-links a, .contact-links span { border-bottom: 1px solid rgba(255,255,255,.4); padding: 10px 0 13px; color: white; font-size: clamp(1rem, 1.5vw, 1.25rem); font-weight: 650; text-decoration: none; overflow-wrap: anywhere; transition: padding .2s var(--ease); }
.contact-links a:hover { padding-left: 10px; }

.lightbox { position: fixed; inset: 0; z-index: 30; display: none; align-items: center; justify-content: center; padding: 28px; background: rgba(10, 10, 10, .9); }
.lightbox.is-open { display: flex; }
.lightbox-content { display: grid; grid-template-columns: minmax(0, auto) minmax(180px, 300px); gap: 16px; align-items: center; max-width: 94vw; max-height: 88vh; }
.lightbox-image, .lightbox-legend { width: auto; max-width: min(1120px, 94vw); max-height: 88vh; border-radius: var(--radius-md); background: white; object-fit: contain; box-shadow: 0 26px 80px rgba(0,0,0,.36); }
.lightbox-legend { max-width: 300px; max-height: 70vh; padding: 8px; }
.lightbox-legend[hidden] { display: none; }
.lightbox-content:has(.lightbox-legend[hidden]) { grid-template-columns: minmax(0, auto); }
.lightbox-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: white; background: rgba(255,255,255,.09); font-size: 2rem; line-height: 1; cursor: pointer; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 130px; }
  .hero-panel { max-width: 640px; transform: rotate(1deg); }
  .hero::after { right: 5vw; }
  .section-strip, .project, .contact { grid-template-columns: 1fr; }
  .project { gap: 42px; }
}
@media (max-width: 620px) {
  .site-header { top: 10px; width: calc(100vw - 20px); padding-left: 15px; }
  .brand span { font-size: .88rem; }
  nav { gap: 0; }
  nav a { padding: 8px 8px; font-size: .72rem; }
  .hero { padding-right: 22px; padding-left: 22px; }
  h1 { font-size: clamp(3.25rem, 16vw, 4.2rem); }
  .hero-panel dl { grid-template-columns: .8fr 1.2fr; }
  .hero-panel dl > div { padding: 14px; }
  .section-strip, .projects, .contact { padding-right: 22px; padding-left: 22px; }
  .skill-list, .project-media { grid-template-columns: 1fr; }
  .project-media.image-grid img:first-child, .project-media img.gallery-wide, .project-media img { height: 215px; }
  .lightbox { padding: 18px; }
  .lightbox-content { grid-template-columns: 1fr; overflow: auto; }
  .lightbox-image, .lightbox-legend { max-width: 100%; max-height: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 1ms !important; } }
