:root {
  --bg: #020812;
  --bg-deep: #01050b;
  --surface: #071321;
  --surface-2: #0b1a29;
  --text: #edf5f7;
  --muted: #91a1ad;
  --line: rgba(181, 217, 225, 0.16);
  --blue: #79c6e3;
  --blue-bright: #a8e1f2;
  --orange: #e29350;
  --orange-soft: #f1b16f;
  --display: "Instrument Serif", Georgia, serif;
  --sans: "Onest", Arial, sans-serif;
  --wrap: min(1220px, calc(100vw - 64px));
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button { color: inherit; font: inherit; }
.wrap { width: var(--wrap); margin-inline: auto; }
.section { position: relative; padding: clamp(104px, 12vw, 180px) 0; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cursor-glow {
  position: fixed;
  z-index: -2;
  width: 520px;
  height: 520px;
  left: var(--pointer-x, 70%);
  top: var(--pointer-y, 20%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226,147,80,.11), rgba(226,147,80,.035) 35%, transparent 70%);
  pointer-events: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(32px, calc((100vw - 1220px) / 2));
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.site-header.scrolled {
  background: rgba(2,8,18,.86);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.brand {
  font-size: 13px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.brand span { color: var(--orange-soft); }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  color: rgba(237,245,247,.72);
  font-size: 13px;
  transition: color .2s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); }
.menu-toggle { display: none; border: 0; background: none; padding: 10px; }

.hero {
  position: relative;
  min-height: min(860px, 92svh);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-image, .hero-shade { position: absolute; inset: 0; height: 100%; }
.hero-image { object-fit: cover; object-position: center; filter: saturate(.72) contrast(1.08) brightness(.62); }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(1,5,11,.96) 0%, rgba(2,8,18,.72) 48%, rgba(2,8,18,.34) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 45%),
    radial-gradient(circle at 76% 40%, rgba(42,118,153,.18), transparent 45%);
}
.hero-content { position: relative; z-index: 2; padding: 160px 0 108px; }
.eyebrow {
  margin: 0 0 24px;
  color: var(--orange-soft);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .22em;
}
.hero-title, .section-title, .contact-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
}
.hero-title {
  max-width: 1050px;
  font-size: clamp(64px, 8.2vw, 132px);
  line-height: .87;
  text-wrap: balance;
}
.hero-title em {
  color: transparent;
  font-style: italic;
  background: linear-gradient(100deg, var(--orange-soft), #f5d0a6 52%, var(--orange));
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-copy { max-width: 690px; margin: 34px 0 0; color: rgba(237,245,247,.74); font-size: clamp(17px,1.5vw,21px); }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 22px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 650;
  transition: transform .25s var(--ease), background .25s ease, color .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--text); color: #06111d; border-color: var(--text); }
.button-secondary { background: rgba(2,8,18,.42); backdrop-filter: blur(12px); }
.hero-index { position: absolute; z-index: 2; right: 32px; bottom: 30px; display: flex; align-items: baseline; gap: 12px; }
.hero-index span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .18em; }
.hero-index strong { color: var(--orange-soft); font-family: var(--display); font-size: 32px; font-weight: 400; }

.thesis { background: linear-gradient(180deg, rgba(7,19,33,.52), rgba(2,8,18,0)); }
.thesis-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(360px,.75fr); gap: clamp(60px,9vw,150px); align-items: start; }
.section-title { max-width: 800px; font-size: clamp(50px,6vw,88px); line-height: .96; }
.thesis-copy, .about-copy { color: rgba(237,245,247,.72); font-size: clamp(17px,1.5vw,20px); }
.thesis-copy p:first-child, .about-copy p:first-child { margin-top: 0; }
.principle-strip { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 90px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle-strip span { min-height: 112px; display: flex; align-items: center; padding: 20px; border-right: 1px solid var(--line); color: rgba(237,245,247,.68); font-size: 13px; }
.principle-strip span:first-child { padding-left: 0; }
.principle-strip span:last-child { border-right: 0; }

.work { padding-top: 80px; }
.section-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,460px); gap: 60px; align-items: end; margin-bottom: 72px; }
.section-intro { margin: 0; color: rgba(237,245,247,.65); font-size: 17px; }
.project-list { display: grid; gap: 28px; }
.project {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(13,35,53,.88), rgba(4,14,25,.96));
}
.project-reverse .project-media { order: 2; }
.project-featured { grid-template-columns:1fr; }
.project-featured .project-media { min-height:0; aspect-ratio:3 / 2; }
.project-media { position: relative; min-height: 620px; overflow: hidden; background: #07111c; }
.project-media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 55%, rgba(2,8,18,.7)); }
.project-media img { height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.04); transition: transform .8s var(--ease); }
.project-featured .project-media img { object-position:center; filter:saturate(.86) contrast(1.03) brightness(.9); }
.project:hover .project-media img { transform: scale(1.025); }
.light-media img { object-position: 63% center; }
.model-workspace-media { background:#f7f8fa; }
.model-workspace-media img { object-position:center; filter:saturate(.9) contrast(1.01); }
.model-workspace-media .project-status { top:22px; right:24px; bottom:auto; left:auto; }
.magnus-media { background:#020b15; }
.magnus-media img { object-position:center center; filter:saturate(.88) contrast(1.05) brightness(.88); }
.project-status { position: absolute; z-index: 2; left: 24px; bottom: 22px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.24); background: rgba(2,8,18,.72); backdrop-filter: blur(10px); font-size: 10px; text-transform: uppercase; letter-spacing: .16em; }
.project-body { position: relative; padding: clamp(38px,5vw,72px); }
.project-number { position: absolute; top: 24px; right: 28px; color: rgba(121,198,227,.38); font-family: var(--display); font-size: 74px; line-height: 1; }
.project-kicker, .path-label { margin: 0 0 15px; color: var(--orange-soft); font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .19em; }
.project h3, .learning-path h3 { max-width: 520px; margin: 0; font-family: var(--display); font-size: clamp(42px,4.4vw,68px); font-weight: 400; line-height: .98; }
.project-body > p:not(.project-kicker) { max-width: 580px; margin: 24px 0 36px; color: rgba(237,245,247,.66); }
.project-facts { margin: 0; border-top: 1px solid var(--line); }
.project-facts div { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.project-facts dt { color: rgba(237,245,247,.42); font-size: 9px; text-transform: uppercase; letter-spacing: .17em; }
.project-facts dd { margin: 0; color: rgba(237,245,247,.76); font-size: 13px; line-height: 1.55; }

.method { background: #e8eff2; color: #07121e; }
.method .eyebrow { color: #a85e28; }
.method-head { max-width: 980px; }
.method-flow { margin-top: 80px; padding: 0; list-style: none; border-top: 1px solid rgba(7,18,30,.18); }
.method-flow li { display: grid; grid-template-columns: 120px 1fr; gap: 30px; padding: 34px 0; border-bottom: 1px solid rgba(7,18,30,.18); }
.method-flow li > span { color: #a85e28; font-family: var(--display); font-size: 38px; }
.method-flow h3 { margin: 0 0 8px; font-family: var(--display); font-size: clamp(30px,3vw,44px); font-weight: 400; line-height: 1; }
.method-flow p { max-width: 700px; margin: 0; color: rgba(7,18,30,.68); }

.capabilities { background: linear-gradient(180deg, #07131f, var(--bg)); }
.capability-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capability { min-height: 330px; padding: 32px; border-right: 1px solid var(--line); }
.capability:first-child { padding-left: 0; }
.capability:last-child { border-right: 0; }
.capability span { color: var(--orange-soft); font-family: var(--display); font-size: 34px; }
.capability h3 { margin: 70px 0 14px; font-family: var(--display); font-size: 38px; font-weight: 400; line-height: 1; }
.capability p { color: rgba(237,245,247,.6); font-size: 14px; }

.learning { border-top: 1px solid var(--line); }
.learning-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.learning-path { min-height: 430px; display: flex; flex-direction: column; padding: clamp(30px,4vw,54px); border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(145deg, rgba(17,43,62,.76), rgba(4,14,24,.92)); }
.learning-path p:not(.path-label) { max-width: 560px; color: rgba(237,245,247,.64); }
.learning-path a { margin-top: auto; display: flex; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 650; }
.learning-path a span { color: var(--orange-soft); }

.about { background: linear-gradient(140deg, rgba(15,43,62,.46), transparent 66%); }
.about-grid { display:grid; grid-template-columns:minmax(240px,.68fr) minmax(320px,1fr) minmax(320px,.82fr); gap:clamp(34px,5vw,76px); align-items:start; }
.about-portrait { margin:0; }
.about-portrait img { aspect-ratio:4 / 5; object-fit:cover; object-position:center 31%; border:1px solid var(--line); border-radius:8px; filter:saturate(.82) contrast(1.02); }
.about-portrait figcaption { margin-top:14px; color:rgba(237,245,247,.48); font-size:10px; text-transform:uppercase; letter-spacing:.16em; }
.about-copy p { margin-bottom: 24px; }

.contact { min-height: 760px; display: grid; align-items: center; overflow: hidden; border-top: 1px solid var(--line); }
.contact::before { content:""; position:absolute; width:min(70vw,900px); aspect-ratio:1; right:-18%; top:-30%; border-radius:50%; background:radial-gradient(circle, rgba(43,127,164,.22), transparent 67%); }
.contact-inner { position: relative; }
.contact-title { max-width: 1020px; font-size: clamp(58px,8vw,116px); line-height: .9; }
.contact-copy { max-width: 720px; color: rgba(237,245,247,.66); font-size: 18px; }

.site-footer { padding: 72px 0 28px; background: var(--bg-deep); border-top: 1px solid var(--line); }
.footer-top, .footer-bottom { display:flex; justify-content:space-between; gap:30px; }
.footer-brand { font-family:var(--display); font-size:clamp(40px,6vw,82px); line-height:1; }
.footer-top p { max-width:340px; color:var(--muted); text-align:right; }
.footer-bottom { margin-top:70px; padding-top:22px; border-top:1px solid var(--line); color:rgba(237,245,247,.45); font-size:11px; }
.footer-bottom div { display:flex; flex-wrap:wrap; gap:24px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  :root { --wrap: min(100% - 40px, 760px); }
  .site-header { padding-inline: 20px; }
  .menu-toggle { display: grid; gap: 6px; z-index: 2; }
  .menu-toggle span { display:block; width:24px; height:1px; background:var(--text); }
  .site-nav { position:fixed; inset:0; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:20px; padding:70px 32px; background:rgba(2,8,18,.97); transform:translateX(100%); transition:transform .35s var(--ease); }
  .site-nav.open { transform:none; }
  .site-nav a { font-family:var(--display); font-size:44px; }
  .hero { min-height: min(780px, 92svh); }
  .hero-content { padding-bottom: 78px; }
  .hero-title { font-size: clamp(58px,12vw,92px); }
  .hero-index { display:none; }
  .thesis-grid, .section-head { grid-template-columns:1fr; gap:36px; }
  .about-grid { grid-template-columns:minmax(220px,.72fr) minmax(0,1fr); gap:40px; }
  .about-copy { grid-column:1 / -1; }
  .about-portrait img { aspect-ratio:4 / 5; }
  .principle-strip { grid-template-columns:1fr 1fr; }
  .principle-strip span:nth-child(2) { border-right:0; }
  .principle-strip span:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .project, .project-reverse { grid-template-columns:1fr; min-height:0; }
  .project-reverse .project-media { order:0; }
  .project-media { min-height:500px; }
  .capability-grid { grid-template-columns:1fr; }
  .capability, .capability:first-child { min-height:0; padding:30px 0; border-right:0; border-bottom:1px solid var(--line); }
  .capability:last-child { border-bottom:0; }
  .capability h3 { margin-top:34px; }
  .learning-grid { grid-template-columns:1fr; }
}

@media (max-width: 620px) {
  :root { --wrap: calc(100% - 32px); }
  .section { padding: 86px 0; }
  .hero { min-height: min(740px, 90svh); align-items:end; }
  .hero-image { object-position: 60% center; }
  .hero-shade { background:linear-gradient(90deg, rgba(1,5,11,.94), rgba(2,8,18,.56)),linear-gradient(0deg,var(--bg),transparent 60%); }
  .hero-content { padding: 130px 0 60px; }
  .hero-title { font-size: clamp(48px,15vw,68px); line-height:.92; }
  .hero-title br { display:none; }
  .hero-copy { margin-top:24px; font-size:16px; }
  .hero-actions, .contact-actions { display:grid; grid-template-columns:1fr; }
  .button { width:100%; }
  .section-title { font-size:clamp(44px,13vw,60px); }
  .principle-strip { grid-template-columns:1fr; margin-top:54px; }
  .principle-strip span, .principle-strip span:first-child { min-height:76px; padding:16px 0; border-right:0; border-bottom:1px solid var(--line); }
  .principle-strip span:last-child { border-bottom:0; }
  .project-list { width:100%; }
  .project { border-left:0; border-right:0; border-radius:0; }
  .project-media { min-height:390px; }
  .project-body { padding:34px 16px 42px; }
  .project-number { top:30px; right:16px; font-size:48px; }
  .project h3, .learning-path h3 { max-width:80%; font-size:43px; }
  .project-facts div { grid-template-columns:1fr; gap:7px; }
  .method-flow { margin-top:50px; }
  .method-flow li { grid-template-columns:52px 1fr; gap:14px; padding:26px 0; }
  .method-flow li > span { font-size:30px; }
  .learning-path { min-height:380px; padding:28px 22px; }
  .contact { min-height:650px; }
  .contact-title { font-size:clamp(50px,14vw,66px); }
  .footer-top, .footer-bottom { flex-direction:column; }
  .footer-top p { text-align:left; }
  .footer-bottom div { gap:14px 22px; }
  .about-grid { grid-template-columns:1fr; }
  .about-copy { grid-column:auto; }
  .about-portrait { max-width:100%; }
  .about-portrait img { aspect-ratio:4 / 5; object-position:center 28%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
  .reveal { opacity:1; transform:none; }
  .cursor-glow { display:none; }
}
