:root {
  --graphite: #172832;
  --bone: #f7f3ea;
  --warm: #fbf8f1;
  --sage: #9eb6ad;
  --teal: #2f4b52;
  --taupe: #6f6859;
  --line: #d9d2c2;
  --white: #fffdf8;
  --shadow: 0 30px 90px rgba(23, 40, 50, 0.16);
  --container: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 112px;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--graphite);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

p,
li {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.skip-link {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 40;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--warm);
  color: var(--graphite);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 14px clamp(20px, 4vw, 58px);
  border-bottom: 1px solid rgba(217, 210, 194, 0.75);
  background: rgba(247, 243, 234, 0.9);
  backdrop-filter: blur(20px);
  transition:
    min-height 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.site-header.is-scrolled {
  min-height: 72px;
  background: rgba(247, 243, 234, 0.96);
  box-shadow: 0 14px 42px rgba(23, 40, 50, 0.08);
}

.brand img {
  width: clamp(132px, 13vw, 174px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--graphite);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 5px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  margin: 7px auto;
  background: var(--graphite);
  transition: transform 0.2s;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  padding: 132px clamp(20px, 5vw, 72px) 164px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(158, 182, 173, 0.35), transparent 30%),
    linear-gradient(135deg, var(--warm), var(--bone));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(840px, 100%);
  align-self: center;
}

.hero-kicker,
.section-label {
  color: var(--taupe);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.architecture-section h2,
.sequence-section h2,
.team-section h2,
.contact-section h2 {
  margin: 0;
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.96;
}

.hero h1 {
  max-width: 800px;
  margin-top: 24px;
  font-size: 5.2rem;
}

.hero p {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--teal);
  font-size: 1.18rem;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--graphite);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button:focus-visible,
.site-nav a:focus-visible,
.brand:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 5px;
}

.button.primary {
  background: var(--graphite);
  color: var(--bone);
}

.button.secondary {
  color: var(--graphite);
}

.button.on-dark {
  border-color: rgba(247, 243, 234, 0.72);
}

.button.primary.on-dark {
  background: var(--bone);
  color: var(--graphite);
}

.button.on-dark:focus-visible,
.contact-section a:focus-visible {
  outline-color: var(--sage);
}

.button.secondary.on-dark {
  color: var(--bone);
}

.growth-field {
  position: absolute;
  right: clamp(-80px, -4vw, 0px);
  top: 50%;
  width: min(42vw, 560px);
  height: min(72vh, 740px);
  transform: translateY(-46%);
  opacity: 0.82;
}

.axis,
.measure,
.plate-row {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.axis {
  width: 1px;
  height: 100%;
  background: rgba(23, 40, 50, 0.12);
}

.axis-left {
  margin-left: -132px;
}

.axis-right {
  margin-left: 132px;
}

.plate-row {
  width: clamp(180px, 24vw, 340px);
  height: clamp(44px, 6vw, 76px);
  border: 1px solid rgba(47, 75, 82, 0.28);
  background: linear-gradient(180deg, rgba(158, 182, 173, 0.88), rgba(47, 75, 82, 0.88));
  box-shadow: 0 20px 60px rgba(23, 40, 50, 0.14);
}

.row-1 {
  top: 14%;
  width: clamp(120px, 18vw, 250px);
}

.row-2 {
  top: 29%;
}

.row-3 {
  top: 44%;
  width: clamp(210px, 28vw, 390px);
}

.row-4 {
  top: 59%;
}

.row-5 {
  top: 74%;
  width: clamp(120px, 18vw, 250px);
}

.measure {
  width: min(36vw, 520px);
  height: 1px;
  background: var(--taupe);
}

.measure-1 {
  top: 7%;
}

.measure-2 {
  top: 50%;
}

.measure-3 {
  top: 91%;
}

.hero-foot {
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  right: clamp(20px, 5vw, 72px);
  bottom: 34px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-foot div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  padding: 16px 28px 18px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.hero-foot div:last-child {
  border-right: 0;
}

.hero-foot span,
.team-table span,
.sequence-list span,
.program-index {
  display: block;
  color: var(--taupe);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-foot strong {
  display: block;
  margin-top: 8px;
  color: var(--teal);
  font-size: 0.95rem;
  line-height: 1.35;
}

.section,
.sequence-section {
  padding: clamp(86px, 11vw, 138px) clamp(20px, 5vw, 72px);
}

.thesis-section {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 90px);
  background: var(--graphite);
  color: var(--bone);
}

.thesis-copy h2 {
  font-size: 6.2rem;
}

.thesis-copy p {
  max-width: 920px;
  margin: 28px 0 0;
  color: rgba(247, 243, 234, 0.78);
  font-size: 1.16rem;
  line-height: 1.68;
}

.problem-band {
  padding: 0 clamp(20px, 5vw, 72px);
  background: var(--graphite);
  color: var(--bone);
}

.problem-statement {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 90px);
  padding: 42px 0 64px;
  border-top: 1px solid rgba(217, 210, 194, 0.22);
}

.problem-statement span {
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.problem-statement p {
  max-width: 980px;
  margin: 0;
  color: rgba(247, 243, 234, 0.86);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 3.65rem;
  line-height: 1.04;
}

.wedge-section {
  padding: clamp(76px, 10vw, 120px) clamp(20px, 5vw, 72px);
  background: var(--warm);
  border-bottom: 1px solid var(--line);
}

.wedge-heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 90px);
  margin-bottom: 46px;
}

.wedge-heading h2 {
  max-width: 900px;
  margin: 0;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 5rem;
  font-weight: 600;
  line-height: 0.98;
}

.wedge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.wedge-grid article {
  min-height: 270px;
  padding: 28px;
  background: var(--bone);
}

.wedge-grid span,
.platform-note span {
  display: block;
  color: var(--taupe);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wedge-grid h3 {
  margin: 58px 0 0;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 2.28rem;
  font-weight: 600;
  line-height: 1;
}

.wedge-grid p {
  margin: 18px 0 0;
  color: var(--teal);
  line-height: 1.65;
}

.section-heading {
  max-width: 920px;
  margin-bottom: clamp(36px, 6vw, 72px);
}

.section-heading h2 {
  margin-top: 16px;
  font-size: 5.45rem;
}

.section-heading p {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--teal);
  font-size: 1.08rem;
  line-height: 1.7;
}

.program-section {
  background: var(--bone);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: var(--shadow);
}

.program-item {
  min-height: 330px;
  padding: 34px;
  background: var(--warm);
}

.program-index {
  margin-bottom: 56px;
  color: var(--teal);
}

.program-item h3 {
  margin: 0;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 2.72rem;
  line-height: 1;
  font-weight: 600;
}

.program-item p {
  margin: 22px 0 0;
  color: var(--teal);
  line-height: 1.65;
}

.architecture-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: center;
  padding: clamp(86px, 11vw, 138px) clamp(20px, 5vw, 72px);
  background: var(--warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.architecture-copy h2 {
  margin-top: 18px;
  font-size: 5.75rem;
}

.architecture-copy p {
  max-width: 780px;
  margin: 28px 0 0;
  color: var(--teal);
  font-size: 1.08rem;
  line-height: 1.72;
}

.platform-note {
  max-width: 680px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.platform-note strong {
  display: block;
  margin-top: 12px;
  color: var(--graphite);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.1;
}

.architecture-diagram {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 42px clamp(28px, 4vw, 52px);
}

.diagram-rule {
  height: 2px;
  background: var(--graphite);
}

.diagram-layer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  border: 1px solid rgba(23, 40, 50, 0.12);
  background: linear-gradient(180deg, rgba(158, 182, 173, 0.82), rgba(47, 75, 82, 0.9));
  color: var(--bone);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.layer-1,
.layer-4 {
  margin-inline: 60px;
}

.layer-2,
.layer-3 {
  margin-inline: 22px;
}

.sequence-section {
  background: var(--bone);
}

.sequence-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sequence-list li {
  min-height: 300px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.sequence-list li:last-child {
  border-right: 0;
}

.sequence-list strong {
  display: block;
  margin-top: 34px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.05;
}

.sequence-list p {
  margin: 18px 0 0;
  color: var(--teal);
  line-height: 1.65;
}

.team-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.72fr);
  gap: clamp(42px, 8vw, 120px);
  padding: clamp(86px, 11vw, 138px) clamp(20px, 5vw, 72px);
  color: var(--bone);
  background: var(--teal);
}

.team-copy h2 {
  margin-top: 18px;
  font-size: 5.35rem;
}

.team-copy p {
  max-width: 760px;
  margin: 28px 0 0;
  color: rgba(247, 243, 234, 0.8);
  font-size: 1.08rem;
  line-height: 1.72;
}

.team-table {
  border-top: 1px solid rgba(247, 243, 234, 0.32);
}

.team-table div {
  padding: 24px 0;
  border-bottom: 1px solid rgba(247, 243, 234, 0.32);
}

.team-table span {
  color: var(--sage);
}

.team-table strong {
  display: block;
  margin-top: 10px;
  color: var(--bone);
  font-size: 1.14rem;
  line-height: 1.35;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.45fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: end;
  padding: clamp(72px, 10vw, 116px) clamp(20px, 5vw, 72px);
  color: var(--bone);
  background: var(--graphite);
}

.contact-section img {
  width: min(390px, 100%);
  margin-bottom: 44px;
}

.contact-section h2 {
  max-width: 820px;
  font-size: 4.8rem;
}

.contact-section p {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(247, 243, 234, 0.74);
  font-size: 1.05rem;
  line-height: 1.65;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label span {
  color: var(--sage);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(247, 243, 234, 0.3);
  border-radius: 0;
  background: rgba(247, 243, 234, 0.06);
  color: var(--bone);
  font: inherit;
  line-height: 1.5;
  padding: 13px 14px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.contact-form button {
  cursor: pointer;
}

.contact-form button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.field-hidden {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.35em;
  margin: -2px 0 0;
  color: rgba(247, 243, 234, 0.72);
  font-size: 0.88rem;
  line-height: 1.45;
}

.form-status[data-state="success"] {
  color: var(--sage);
}

.form-status[data-state="error"] {
  color: #f1b39b;
}

.mail-fallback {
  color: rgba(247, 243, 234, 0.7);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.mail-fallback:hover,
.mail-fallback:focus-visible {
  color: var(--bone);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(217, 210, 194, 0.18);
  color: rgba(247, 243, 234, 0.68);
  background: var(--graphite);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--bone);
}

.legal-page {
  background: var(--warm);
}

.legal-main {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) 0;
}

.legal-back {
  display: inline-block;
  margin-bottom: 48px;
  color: var(--taupe);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-main h1,
.legal-main h2 {
  margin: 0;
  font-family: "EB Garamond", Georgia, serif;
  color: var(--graphite);
  font-weight: 600;
}

.legal-main h1 {
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  line-height: 0.96;
}

.legal-main h2 {
  margin-top: 46px;
  font-size: 2.1rem;
}

.legal-main p {
  margin: 18px 0 0;
  color: var(--teal);
  font-size: 1.08rem;
  line-height: 1.72;
}

.legal-main a {
  color: var(--graphite);
}

@media (max-width: 1120px) {
  .growth-field {
    right: -210px;
    opacity: 0.18;
  }

  .hero h1 {
    font-size: 4.7rem;
  }

  .thesis-copy h2,
  .section-heading h2,
  .wedge-heading h2,
  .architecture-copy h2,
  .team-copy h2 {
    font-size: 4.7rem;
  }

  .problem-statement p,
  .contact-section h2 {
    font-size: 3.4rem;
  }

  .sequence-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-item,
  .sequence-list li {
    min-height: 0;
  }

  .architecture-section,
  .team-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    max-width: 420px;
  }
}

@media (max-width: 820px) {
  section[id] {
    scroll-margin-top: 96px;
  }

  .site-header {
    min-height: 72px;
  }

  .brand img {
    width: 142px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--bone);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    flex-direction: column;
    min-height: 0;
    padding-top: 112px;
    padding-bottom: 34px;
  }

  .hero-inner {
    align-self: start;
    padding-bottom: 220px;
  }

  .hero h1 {
    font-size: 3.55rem;
  }

  .hero p {
    font-size: 1.06rem;
    line-height: 1.55;
  }

  .growth-field {
    top: auto;
    right: 50%;
    bottom: 126px;
    width: 420px;
    height: 240px;
    transform: translateX(50%);
    opacity: 0.48;
  }

  .hero-foot {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: auto;
    margin-bottom: 8px;
  }

  .hero-foot div {
    min-height: 0;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .thesis-section,
  .wedge-heading,
  .problem-statement {
    grid-template-columns: 1fr;
  }

  .thesis-copy h2,
  .section-heading h2,
  .wedge-heading h2,
  .architecture-copy h2,
  .team-copy h2 {
    font-size: 3.65rem;
  }

  .problem-statement p,
  .contact-section h2 {
    font-size: 2.72rem;
  }

  .program-grid,
  .wedge-grid,
  .sequence-list {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .sequence-list li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sequence-list li:last-child {
    border-bottom: 0;
  }

  .layer-1,
  .layer-4 {
    margin-inline: 28px;
  }

  .layer-2,
  .layer-3 {
    margin-inline: 8px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 3.08rem;
  }

  .thesis-copy h2,
  .section-heading h2,
  .wedge-heading h2,
  .architecture-copy h2,
  .team-copy h2 {
    font-size: 2.92rem;
  }

  .problem-statement p,
  .contact-section h2 {
    font-size: 2.28rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .architecture-diagram {
    padding-inline: 0;
  }
}
