:root {
  color-scheme: light;
  --paper: #f6f5ef;
  --ink: #202019;
  --muted: #5d5e50;
  --line: #c7c6b7;
  --accent: #f2f36b;
  --coral: #ff775e;
  --dark: #262b22;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .23em; }
button { color: inherit; font: inherit; }
:focus-visible { outline: 3px solid #a63e28; outline-offset: 5px; }
.robotics :focus-visible { outline-color: var(--accent); }
.shell { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; top: .75rem; left: .75rem; background: #fff; padding: .65rem 1rem; z-index: 2; transform: translateY(-180%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; min-height: 79px; }
.brand { width: 110px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: clamp(1rem, 3.4vw, 3.25rem); }
.site-header a { text-decoration: none; }
.site-header nav a, .header-contact { font-size: .875rem; font-weight: 650; }
.site-header nav a:hover, .footer a:hover { text-decoration: underline; }
.header-contact { justify-self: end; border: 1px solid var(--ink); padding: .55rem .85rem; }
.header-contact:hover, .menu-toggle:hover { background: var(--accent); }
.menu-toggle { justify-self: end; padding: .5rem .85rem; background: transparent; border: 1px solid var(--ink); cursor: pointer; }
.hero { display: grid; grid-template-columns: 1fr minmax(0, .92fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; padding-block: clamp(2.4rem, 5vw, 4.25rem) clamp(3.5rem, 7vw, 7rem); }
.hero-copy { padding-block: 1rem; }
.eyebrow { display: flex; align-items: center; gap: .65em; font-size: .875rem; line-height: 1.4; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: .56rem; height: .56rem; flex: none; background: var(--coral); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { margin-block: .26em .34em; font-size: clamp(3.95rem, 7.6vw, 7.45rem); line-height: .91; letter-spacing: -.071em; }
h1 em { display: block; font-weight: 400; }
.hero-intro { max-width: 32rem; font-size: clamp(1.02rem, 1.5vw, 1.23rem); color: var(--muted); }
.button { display: inline-block; padding: .76rem 1.1rem; border: 1px solid var(--ink); background: var(--accent); color: var(--ink); text-decoration: none; font-weight: 700; }
.button:hover { background: var(--ink); color: var(--accent); }
.hero .button { margin-top: 1.75rem; }
.hero-art { background: #e8d34c; display: grid; place-items: center; padding: clamp(.75rem, 1.5vw, 1.5rem); }
.hero-art img { width: auto; max-width: 100%; max-height: min(66vh, 660px); object-fit: contain; }
figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 .75rem; padding-top: .65rem; font-size: .8125rem; line-height: 1.45; }
figcaption span { color: var(--muted); }
.section { padding-block: clamp(3.5rem, 7vw, 7rem); }
#projects { border-top: 1px solid var(--line); }
.section-heading { margin-bottom: clamp(2rem, 4.6vw, 4.5rem); }
h2 { font-size: clamp(3.3rem, 7.1vw, 7rem); line-height: .94; letter-spacing: -.065em; }
.section-heading h2, .contact h2 { margin-top: .18em; }
h3 { font-size: clamp(1.7rem, 3.3vw, 3.1rem); line-height: 1.02; letter-spacing: -.038em; }
.journey { display: grid; grid-template-columns: 1.12fr .78fr; gap: clamp(1.5rem, 6vw, 6.5rem); padding: clamp(1.5rem, 4vw, 3.5rem); background: #e9e8dd; }
.journey h3, .humanoid h3 { margin-top: .32em; }
.journey p:not(.eyebrow), .competition p, .stage-notes p, .humanoid p:not(.eyebrow) { margin-block: .75em 1em; }
.text-link { font-weight: 650; }
.text-link:hover, .school-list a:hover { text-decoration-thickness: 2px; }
.journey dl > div, .results > div { display: grid; grid-template-columns: minmax(6rem, .48fr) 1fr; gap: .75rem; padding: .72rem 0; border-top: 1px solid var(--line); }
.journey dt, .results dt { font-weight: 750; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 3vw, 2.8rem); margin-top: clamp(2rem, 4vw, 4rem); }
.story img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #e9e8dd; }
.story .zawad img { object-fit: contain; background: #e6e5d7; }
.story h3 { margin-top: .55em; }
.byline { margin-top: .35em; color: var(--muted); font-size: .875rem; font-weight: 650; }
details { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .58rem; }
summary { cursor: pointer; font-size: .875rem; font-weight: 700; padding-block: .16rem; }
details p { margin: .55em 0 .4em; }
.robotics { background: var(--dark); color: #f7f7ed; --line: #666d5e; --muted: #d6d7c8; }
.robotics .eyebrow span { background: var(--accent); }
.competition { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.75rem, 5vw, 5rem); align-items: center; }
.competition figure img { background: #fff; }
.results { margin: 1.4rem 0 .9rem; }
.stage-notes { padding-block: 2rem; margin-block: 2rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(9rem, 16rem) minmax(0, 33rem); align-items: center; gap: clamp(1.25rem, 5vw, 5rem); }
.humanoid { display: grid; grid-template-columns: minmax(0, .85fr) 1fr; align-items: center; background: #343b2e; gap: clamp(1.75rem, 7vw, 7rem); padding: clamp(1rem, 3.6vw, 3.6rem); }
.humanoid img { aspect-ratio: 1 / 1; object-fit: cover; object-position: center 44%; }
.humanoid h3 { font-size: clamp(2.8rem, 5.6vw, 6rem); line-height: .92; }
.humanoid p { max-width: 28rem; }
.school-intro { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: clamp(1.5rem, 5vw, 5rem); }
.school-intro p { font-size: clamp(1.1rem, 2.25vw, 1.6rem); max-width: 27rem; line-height: 1.45; }
.school-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); margin-top: clamp(2rem, 5vw, 4.5rem); }
.school-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.school-list > :is(div, li) { border-top: 1px solid var(--line); padding-block: .8rem; }
.school-list dt { font-weight: 750; }
.school-list :is(dd, p) { margin-top: .15rem; color: var(--muted); }
.alumni { background: #e9eadf; }
.alumni-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1rem, 2.6vw, 2.5rem); }
.alumni-grid figure { background: #dbddcd; }
.alumni-grid img { aspect-ratio: 1 / 1; object-fit: cover; }
.alumni-grid .laleh img { object-position: 76% center; }
.alumni-grid .portrait img { object-fit: contain; }
.alumni-grid h3 { font-size: clamp(1.4rem, 2.5vw, 2.35rem); margin-top: .5em; }
.contact { background: var(--accent); }
.contact-inner { min-height: 19rem; padding-block: 4rem; display: flex; justify-content: space-between; align-items: center; gap: 1.75rem; }
.contact h2 { font-size: clamp(2.85rem, 6vw, 5.8rem); }
.contact .button { flex: none; background: var(--ink); color: var(--paper); }
.contact .button:hover { background: var(--paper); color: var(--ink); }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.25rem; padding-block: 1.4rem; font-size: .875rem; }
@media (max-width: 1000px) {
  .shell { width: calc(100% - 64px); }
  .alumni-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 67px; grid-template-columns: 1fr auto; gap: 0 1rem; }
  .brand { width: 92px; }
  .header-contact { display: none; }
  .site-header nav { grid-column: 1 / -1; padding-block: .75rem; gap: .2rem 1.3rem; }
  .site-header nav a { padding-block: .4rem; }
  .hero, .journey, .competition, .school-intro, .humanoid { grid-template-columns: 1fr; }
  .hero { gap: 1.5rem; padding-top: 1.75rem; }
  h1 { font-size: clamp(3.22rem, 10.7vw, 5.5rem); }
  .hero-art img { max-height: 490px; }
  .project-grid { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .humanoid img { aspect-ratio: 1.1 / 1; }
  .humanoid { padding-bottom: 1.7rem; }
  .contact-inner { min-height: 0; align-items: flex-start; flex-direction: column; padding-block: 3rem; }
}
@media (max-width: 480px) {
  .project-grid, .stage-notes, .school-grid { grid-template-columns: 1fr; }
  .alumni-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-notes figure { max-width: 17rem; }
}
.nav-contact { display: none; }
@media (max-width: 720px) {
  .site-header .nav-contact { display: inline; }
}
