:root {
  color-scheme: light;
  --ink: #182332;
  --muted: #4a5867;
  --brand: #312658;
  --line: #dce2e8;
  --wide: 72rem;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
body, figure, p, h1, h2, h3 { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #8271dd; outline-offset: 4px; }

.wrap { width: min(var(--wide), 100% - 3.5rem); margin-inline: auto; }
.skip { position: fixed; inset: .5rem auto auto .5rem; transform: translateY(-180%); z-index: 3; background: white; padding: .5rem 1rem; }
.skip:focus { transform: none; }

.masthead { border-bottom: 1px solid #dfe4ec; background: #f8fafc; }
.masthead-inner { min-height: 5.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.brand { display: block; width: clamp(9rem, 19vw, 15rem); flex: 0 0 auto; }
.masthead nav { display: flex; gap: clamp(.85rem, 2.9vw, 2.5rem); flex-wrap: wrap; }
.masthead nav a { padding-block: .6rem; font-size: .94rem; font-weight: 650; color: var(--brand); text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }

.hero {
  color: white;
  background-color: #192b3a;
  background-image: linear-gradient(107deg, #1a2b3ec9, #182636d9 61%, #17232db5), url("assets/architecture.webp");
  background-position: center;
  background-size: cover;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: clamp(2.5rem, 5vw, 5rem); padding-block: clamp(3.75rem, 8vw, 7rem); }
.hero-photo { position: relative; overflow: hidden; border-radius: .7rem; background: #263c43; box-shadow: 0 18px 40px #10192355; }
.hero-photo img { width: 100%; }
.hero-photo figcaption { position: absolute; inset: auto auto .75rem .75rem; background: #131d25db; padding: .2rem .55rem; border-radius: .22rem; font-size: .85rem; }
.eyebrow { color: #e2e8f0; font-size: .88rem; font-weight: 650; letter-spacing: .045em; }
h1, h2, h3 { line-height: 1.12; }
h1 { margin-block: .72rem 1.15rem; max-width: 13ch; font-size: clamp(2.35rem, 5vw, 4.65rem); font-weight: 750; letter-spacing: -.051em; text-wrap: balance; }
.hero-copy > p:not(.eyebrow) { color: #eff2f7; max-width: 46ch; font-size: clamp(1rem, 1.5vw, 1.14rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; margin-top: 1.6rem; }
.button { display: inline-flex; min-height: 2.85rem; align-items: center; padding: .6rem 1.05rem; border-radius: .32rem; font-weight: 750; text-decoration: none; }
.button-light { background: #f5f2ff; color: #2a214c; }
.button-light:hover { background: #e0d9fa; }
.text-link { padding-block: .55rem; font-weight: 650; }

.section { padding-block: clamp(3rem, 6vw, 5.6rem); scroll-margin-top: 1rem; }
.section-intro { margin-bottom: 1.8rem; }
h2 { font-size: clamp(1.95rem, 3.7vw, 3rem); letter-spacing: -.04em; }
.section p { margin-top: .55rem; color: var(--muted); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.9rem, 2.1vw, 1.6rem); }
.work-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .6rem; background: white; }
.work-preview { position: relative; display: grid; aspect-ratio: 16 / 9; overflow: hidden; place-items: center; isolation: isolate; background: #263644; }
.work-preview img { position: absolute; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.work-preview::after { position: absolute; inset: 0; background: #10192326; content: ""; z-index: -1; }
.work-preview:focus-visible { outline-offset: -5px; }
.play { display: grid; width: 3.25rem; height: 3.25rem; place-items: center; border: 1px solid #ffffffbf; border-radius: 50%; background: #162033bb; color: white; }
.play::before { content: ""; margin-left: .2rem; border-block: .43rem solid transparent; border-left: .68rem solid currentColor; }
.work-preview:hover .play { background: white; color: #2a214c; }
.work-copy { padding: .95rem 1.1rem 1.1rem; }
.work-copy h3 { font-size: 1.17rem; }
.work-copy p { margin-top: .35rem; }

.more-work {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr);
  gap: 1.5rem 2.5rem;
  margin-top: clamp(2.4rem, 5vw, 4rem);
  padding: clamp(1.25rem, 3.2vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: #f5f6fa;
}
.more-work-intro h3 { margin-bottom: .65rem; font-size: clamp(1.55rem, 2.6vw, 2.2rem); letter-spacing: -.035em; }
.instagram-link { display: inline-block; padding-block: .3rem; color: var(--brand); font-weight: 700; }
.assignment-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem 1.65rem; margin: 0; padding: 0; list-style: none; }
.assignment-list li { padding-top: .75rem; border-top: 1px solid #cdd4e0; }
.assignment-list h4 { margin: 0; font-size: 1rem; line-height: 1.35; }
.assignment-list p { margin-top: .25rem; font-size: .95rem; }

.visualization { background: #f0f3f7; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 1.4rem 3.5rem; }
.split p { max-width: 37ch; }
.example-links, .contact address { display: grid; justify-items: start; gap: .65rem; }
.example-links a { color: var(--brand); font-weight: 700; }
.example-links a, .contact address a { display: inline-block; padding-block: .3rem; }
.contact { color: white; background: #202b3d; }
.contact p, .contact address span { color: #e0e5ef; }
.contact address { font-style: normal; gap: .2rem; }
.contact address a { font-weight: 700; }
.footer { padding-block: 1.3rem; font-size: .88rem; font-weight: 650; color: var(--muted); }

.media-dialog { width: min(52rem, 100% - 1.5rem); max-height: calc(100dvh - 1.5rem); padding: 1rem; border: 0; border-radius: .65rem; box-shadow: 0 1rem 5rem #0005; color: var(--ink); }
.media-dialog::backdrop { background: #0c1521d9; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.dialog-header h2 { font-size: clamp(1.2rem, 3vw, 1.75rem); }
.close { cursor: pointer; border: 1px solid #c5cbda; border-radius: .3rem; background: #f0f3f7; color: var(--ink); padding: .4rem .8rem; }
.media-frame { aspect-ratio: 16 / 9; background: #13202c; }
.media-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.external-media { display: inline-block; margin-top: .7rem; color: var(--brand); }

@media (max-width: 50rem) {
  .hero-inner { column-gap: 2rem; }
  .work-copy { padding-inline: .75rem; }
}

@media (max-width: 40rem) {
  .wrap { width: calc(100% - 2.25rem); }
  .masthead-inner { min-height: 4rem; gap: .75rem; }
  .masthead nav { column-gap: .85rem; }
  .masthead nav a { font-size: .875rem; }
  .hero-inner, .work-grid, .split, .more-work { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { row-gap: 1.65rem; padding-block: 2.6rem 2.8rem; }
  .hero-copy { grid-row: 1; }
  h1 { max-width: 15ch; }
  .work-copy { padding-inline: 1rem; }
}

@media (max-width: 29rem) {
  .assignment-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 23rem) {
  .masthead-inner { flex-wrap: wrap; padding-block: .6rem; row-gap: .15rem; }
}
