@font-face {
  font-family: "Hanken Grotesk";
  src: url("Assets/fonts/hanken-grotesk.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("Assets/fonts/jetbrains-mono.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --cream: #f5f1ea;
  --teal: #0a1f1e;
  --ink: #14201e;
  --muted: #5f6b68;
  --lilac: #c8b8e8;
  --mint: #c8f0b8;
  --border: #ddd8c8;
  --on-dark: #e5e5dc;
  --sans: "Hanken Grotesk", Arial, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --gutter: clamp(20px, 3.3vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--lilac); color: var(--teal); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; }
a:focus-visible { outline: 3px solid #706184; outline-offset: 6px; border-radius: 3px; }
.projects a:focus-visible { outline-color: var(--mint); }
.wrap { width: 100%; padding-inline: var(--gutter); }
.lilac-dot { color: var(--lilac); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 20px; color: var(--cream); background: var(--teal); clip-path: inset(50%); transform: translateY(-160%); }
.skip-link:focus { clip-path: none; transform: translateY(0); }

.site-header { position: absolute; inset: 0 0 auto; z-index: 5; min-height: 104px; display: flex; align-items: center; justify-content: space-between; color: var(--cream); border-bottom: 1px solid #f5f1ea26; }
.header-identity { display: flex; align-items: center; gap: 24px; min-width: 0; }
.header-partner { padding-left: 24px; border-left: 1px solid #f5f1ea40; }
.header-partner span, .header-partner strong { display: block; white-space: nowrap; }
.header-partner span { font-size: 11px; line-height: 1.65; color: #e1e4da; }
.header-partner strong { font-size: 14px; line-height: 1.6; font-weight: 600; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; min-height: 44px; }
.brand img { height: auto; }
.site-header nav { display: flex; align-items: center; gap: 36px; font-size: 15px; }
.site-header nav a { display: inline-flex; align-items: center; gap: 22px; min-height: 44px; }
.site-header nav a:hover { color: var(--lilac); }
.site-header a:focus-visible, .hero a:focus-visible { outline-color: var(--mint); }

.hero { position: relative; isolation: isolate; width: 100%; height: 100vh; background: var(--teal); color: var(--cream); }
.hero-intro { position: relative; z-index: 2; display: grid; height: 100%; grid-template-columns: minmax(0, 1.85fr) minmax(270px, .85fr); align-items: end; gap: 64px; padding-block: 144px 64px; }
h1 { font-size: clamp(54px, 6.4vw, 112px); line-height: 1.01; letter-spacing: -.055em; }
h1 span { color: var(--lilac); }
.hero-copy { max-width: 375px; padding-bottom: 3px; }
.hero-copy p { color: #e1e4da; font-size: 17px; line-height: 1.6; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 50px; padding: 12px 23px; border: 1px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 500; transition: background-color .2s, color .2s, transform .2s; }
.button-lilac { color: var(--teal); background: var(--lilac); }
.button-lilac:hover { background: #e5def0; transform: translateY(-2px); }
.hero-copy .button { margin-top: 24px; }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--teal); }
.hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, #0000004d 0%, #0000001f 24%, transparent 50%), linear-gradient(180deg, #0a1f1e99 0%, transparent 35%, #0a1f1e1a 55%, #0a1f1ee6 100%); }
.hero-image-wrap { position: relative; height: 100%; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }

.section-space { padding-block: 104px; }
.section-marker { display: flex; align-items: center; gap: 11px; font: 400 11px/1.5 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.marker-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #75618f; }
.about { display: grid; grid-template-columns: .7fr 2fr; gap: 80px; }
.about > .section-marker { align-self: start; padding-top: 12px; }
h2 { font-size: clamp(35px, 4vw, 54px); line-height: 1.09; letter-spacing: -.04em; }
.about-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 30px; color: var(--muted); }

.projects { padding-block: 82px 24px; color: var(--on-dark); background: var(--teal); }
.projects-intro { display: flex; justify-content: space-between; align-items: end; gap: 60px; padding-bottom: 58px; }
.projects .section-marker { color: #c7c9c1; margin-bottom: 29px; }
.projects .marker-dot { background: var(--lilac); }
.projects h2 span { color: var(--lilac); }
.projects-intro > p { max-width: 330px; color: #b5c0b9; padding-bottom: 5px; }
.project { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "heading content media media"; align-items: start; gap: 32px; padding-block: 49px 56px; border-top: 1px solid #354642; }
.project-number { display: block; margin-bottom: 16px; color: #9faea6; font: 400 12px/1.6 var(--mono); }
.project-heading { grid-area: heading; }
.project-media { grid-area: media; width: 100%; border: 1px solid #49605a; border-radius: 10px; background: #19332f; }
.project-media img { width: 100%; height: auto; object-fit: contain; border-radius: 9px; }
.project-category { color: #b5c0b9; font: 400 10px/1.7 var(--mono); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 15px; }
h3 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.12; letter-spacing: -.035em; }
.project-content { grid-area: content; color: #c2cbc3; }
.project-content > p:first-child { max-width: 490px; }
.text-link { display: inline-flex; align-items: center; gap: 30px; min-height: 44px; margin-top: 23px; border-bottom: 1px solid #8e839e; color: var(--lilac); font-size: 14px; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translate(3px, -3px); }
.project-status { margin-top: 27px; color: #bec7bd; font: 400 11px/1.7 var(--mono); }
.project-details { margin-top: 27px; padding-top: 22px; border-top: 1px solid #354642; }
.detail-label { display: block; margin-bottom: 8px; color: #9fafa7; font: 400 10px/1.7 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.project-details p { font-size: 15px; }
.course-list { list-style: none; padding: 0; margin: 24px 0 0; }
.course-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding-block: 15px; border-top: 1px solid #354642; color: var(--cream); font-size: 16px; line-height: 1.5; }
.availability-note { margin-top: 15px; color: #a9b7ad; font-size: 13px; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 172px; padding-block: 28px; }
.site-footer p { color: var(--muted); font-size: 14px; }
.footer-partner { margin-top: 12px; }
.footer-partner span, .footer-partner strong { display: block; }
.footer-partner span { font-size: 11px; line-height: 1.65; }
.footer-partner strong { font-size: 14px; line-height: 1.6; font-weight: 600; color: var(--ink); }
.back-to-top { display: inline-flex; align-items: center; gap: 27px; min-height: 44px; font-size: 14px; }
.back-to-top:hover { color: #706184; }

@media (max-width: 1100px) {
  .hero-intro { gap: 36px; grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr); }
  h1 { font-size: clamp(48px, 6.4vw, 70px); }
  .about { grid-template-columns: .65fr 2fr; gap: 40px; }
  .project { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); grid-template-areas: "heading media" "content media"; gap: 26px; }
}

@media (max-width: 760px) {
  .site-header { min-height: 82px; }
  .site-header .brand img { width: 123px; }
  .site-header nav { gap: 23px; font-size: 13px; }
  .site-header nav a { gap: 10px; }
  .hero-intro { grid-template-columns: 1fr; align-content: end; gap: 25px; padding-block: 112px 40px; }
  h1 { max-width: 600px; font-size: clamp(45px, 8.4vw, 64px); }
  .hero-copy { max-width: 460px; }
  .hero-copy p { font-size: 16px; }
  .hero-copy .button { margin-top: 21px; }
  .header-identity { gap: 16px; }
  .header-partner { padding-left: 16px; }
  .header-partner span { font-size: 10px; }
  .header-partner strong { font-size: 12px; }
  .hero-photo { object-position: 70% center; }
  .section-space { padding-block: 65px; }
  .about { grid-template-columns: 1fr; gap: 26px; }
  .about > .section-marker { padding-top: 0; }
  .about-copy { gap: 24px; font-size: 16px; }
  .projects { padding-block: 57px 14px; }
  .projects-intro { flex-direction: column; align-items: start; gap: 24px; padding-bottom: 37px; }
  .projects .section-marker { margin-bottom: 22px; }
  .projects-intro > p { max-width: 420px; font-size: 16px; }
  .projects-intro > p br { display: none; }
  .project { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "content" "media"; gap: 24px; padding-block: 34px 39px; }
  .project-category { margin-bottom: 13px; }
  h3 { font-size: 31px; }
  .project-status { margin-top: 18px; }
  .text-link { margin-top: 17px; }
  .project-content { font-size: 16px; }
  .project-details { margin-top: 21px; padding-top: 18px; }
  .course-list { margin-top: 21px; }
  .course-list li { font-size: 15px; }
  .site-footer { min-height: 148px; flex-wrap: wrap; gap: 13px 20px; padding-block: 26px; }
  .footer-identity { order: 0; }
  .site-footer .footer-tagline { order: 2; width: 100%; font-size: 13px; }
  .back-to-top { order: 1; font-size: 13px; gap: 16px; }
}

@media (max-width: 600px) {
  .site-header { min-height: 128px; align-items: flex-start; gap: 12px; padding-block: 20px; }
  .header-identity { flex-direction: column; align-items: flex-start; gap: 6px; }
  .header-partner { padding-left: 0; border-left: 0; }
  .site-header nav { flex-shrink: 0; }
  .nav-idea { display: none !important; }
}

@media (max-width: 440px) {
  .nav-idea { display: none !important; }
  h1 { font-size: clamp(40px, 10.5vw, 46px); }
  .about-copy { grid-template-columns: 1fr; gap: 18px; }
  h2 { font-size: 35px; }
}

@media (max-height: 620px) {
  .site-header { min-height: 72px; }
  .hero-intro { padding-block: 94px 28px; gap: 18px; }
  .hero h1 { font-size: clamp(32px, 5.5vw, 58px); }
  .hero-copy p { font-size: 14px; }
  .hero-copy .button { margin-top: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
