:root {
  --ink: #1b1b1b;
  --muted: #666b70;
  --white: #ffffff;
  --mist: #f1f8f9;
  --cyan: #45b8ca;
  --cyan-light: #b8e4e9;
  --cyan-pale: #e2f4f6;
  --blue: #2e6c97;
  --navy: #153b59;
  --line: #d9e1e3;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

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

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 56px));
  margin-inline: auto;
}

.site-header {
  display: grid;
  min-height: 100px;
  align-items: center;
  border-bottom: 2px solid var(--cyan);
  grid-template-columns: 1fr auto 1fr;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-right {
  justify-content: flex-end;
}

.header-nav a {
  position: relative;
  padding: 9px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.header-nav a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--cyan);
  content: "";
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.header-nav a:hover::after {
  transform: scaleX(1);
}

.header-nav .nav-contact {
  padding: 11px 18px;
  background: var(--cyan-light);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 38px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-transform: uppercase;
}

.wordmark svg {
  width: 50px;
  height: 50px;
}

.wordmark svg path {
  fill: var(--cyan-pale);
  stroke: var(--blue);
  stroke-width: 1.4;
}

.wordmark svg path + path {
  fill: none;
  stroke: var(--cyan);
}

.wordmark svg circle {
  fill: var(--navy);
}

.hero {
  position: relative;
  display: grid;
  min-height: 690px;
  align-items: center;
  grid-template-columns: 1fr 0.86fr;
  gap: 20px;
  padding: 80px 0 100px;
}

.hero::after {
  position: absolute;
  right: calc(50% - 50vw);
  bottom: 0;
  left: calc(50% - 50vw);
  height: 1px;
  background: var(--line);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.kicker {
  margin-bottom: 24px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(52px, 6vw, 82px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h1 span {
  display: block;
  color: var(--cyan);
}

.hero-intro {
  max-width: 625px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding: 13px 18px;
  border-bottom: 3px solid var(--cyan);
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.text-button:hover {
  background: var(--cyan);
  color: var(--ink);
}

.data-portrait {
  position: relative;
  width: min(100%, 530px);
  justify-self: end;
}

.data-portrait svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.mesh-shape {
  fill: url("#meshFill");
  opacity: 0.24;
}

.mesh-lines path {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.mesh-dots circle {
  fill: var(--white);
  stroke: var(--cyan);
  stroke-width: 5;
}

.portrait-label {
  position: absolute;
  padding: 5px 8px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--cyan);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.label-one {
  top: 12%;
  left: 16%;
}

.label-two {
  right: 2%;
  bottom: 40%;
}

.label-three {
  bottom: 10%;
  left: 27%;
}

.work,
.resources,
.about {
  padding: 110px 0;
}

.section-intro {
  display: grid;
  align-items: start;
  margin-bottom: 55px;
  grid-template-columns: 0.2fr 1.1fr 0.7fr;
  gap: 28px;
}

.section-number {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
}

.section-intro h2,
.teaching h2,
.about h2 {
  max-width: 700px;
  margin-bottom: 0;
  font-size: clamp(37px, 4.6vw, 62px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.section-summary {
  margin: 38px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 70px 24px;
}

.project {
  display: block;
}

.project-featured {
  grid-column: 1 / -1;
}

.project-visual {
  position: relative;
  overflow: hidden;
  height: 360px;
  margin-bottom: 22px;
  background: var(--mist);
}

.project-featured .project-visual {
  height: 500px;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project-meta p {
  margin: 0;
}

.project h3 {
  margin-bottom: 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.project-description {
  max-width: 670px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

a.project .project-visual::after {
  position: absolute;
  inset: 0;
  border: 0 solid var(--cyan);
  content: "";
  transition: border-width 0.2s ease;
}

a.project:hover .project-visual::after {
  border-width: 8px;
}

a.project:hover h3 {
  color: var(--blue);
}

.visual-code {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    var(--navy);
  background-size: 36px 36px;
}

.code-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--cyan-light);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-a {
  width: 390px;
  height: 390px;
  border-width: 2px;
}

.ring-b {
  width: 275px;
  height: 275px;
  border-style: dashed;
}

.ring-c {
  width: 165px;
  height: 165px;
  background: var(--cyan);
}

.code-core {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 70px;
  font-weight: 500;
  transform: translate(-50%, -50%);
}

.code-axis {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--white);
  opacity: 0.6;
  transform: translate(-50%, -50%) rotate(-24deg);
}

.axis-x {
  width: 720px;
  height: 1px;
}

.axis-y {
  width: 1px;
  height: 520px;
}

.visual-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  padding: 40px;
  background: var(--ink);
}

.map-cell {
  background: var(--cyan);
}

.cell-1 {
  opacity: 0.2;
  clip-path: polygon(0 18%, 100% 0, 81% 100%, 8% 83%);
}

.cell-2 {
  opacity: 0.75;
  clip-path: polygon(10% 0, 100% 12%, 84% 91%, 0 100%);
}

.cell-3 {
  opacity: 0.42;
  clip-path: polygon(0 9%, 91% 0, 100% 88%, 13% 100%);
}

.cell-4 {
  opacity: 0.84;
  clip-path: polygon(0 0, 92% 13%, 100% 86%, 18% 100%);
}

.cell-5 {
  background: var(--cyan-light);
  clip-path: polygon(8% 13%, 100% 0, 88% 100%, 0 86%);
}

.cell-6 {
  opacity: 0.28;
  clip-path: polygon(0 0, 100% 20%, 82% 100%, 12% 84%);
}

.cell-7 {
  opacity: 0.5;
  clip-path: polygon(12% 0, 100% 16%, 82% 100%, 0 91%);
}

.cell-8 {
  opacity: 0.3;
  clip-path: polygon(0 18%, 81% 0, 100% 88%, 12% 100%);
}

.cell-9 {
  opacity: 0.93;
  clip-path: polygon(13% 0, 100% 10%, 78% 100%, 0 82%);
}

.visual-report {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 22px;
  padding: 80px 55px 55px;
  background: var(--cyan-pale);
}

.bar {
  width: 9%;
  background: var(--blue);
}

.bar-1 {
  height: 28%;
}

.bar-2 {
  height: 48%;
}

.bar-3 {
  height: 40%;
}

.bar-4 {
  height: 72%;
  background: var(--cyan);
}

.bar-5 {
  height: 88%;
  background: var(--navy);
}

.report-line {
  position: absolute;
  right: 8%;
  left: 8%;
  height: 1px;
  background: var(--white);
}

.line-1 {
  top: 38%;
}

.line-2 {
  top: 62%;
}

.courses {
  padding: 110px max(28px, calc((100vw - 1180px) / 2));
  background: var(--ink);
  color: var(--white);
}

.courses-intro {
  margin-bottom: 68px;
}

.courses .kicker,
.courses .section-number {
  color: var(--cyan);
}

.courses .section-summary {
  color: #aeb6b9;
}

.semester {
  display: grid;
  border-top: 1px solid #454b4e;
  grid-template-columns: 0.42fr 1.58fr;
}

.semester:last-child {
  border-bottom: 1px solid #454b4e;
}

.semester-heading {
  padding: 34px 30px 34px 0;
}

.semester-heading p {
  margin-bottom: 4px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.semester-heading strong {
  font-size: 36px;
  letter-spacing: -0.04em;
}

.semester-upcoming .semester-heading::after {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 7px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  content: "UPCOMING";
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.semester-courses {
  border-left: 1px solid #454b4e;
}

.course-row {
  display: grid;
  min-height: 112px;
  align-items: center;
  padding: 22px 0 22px 30px;
  border-bottom: 1px solid #454b4e;
  grid-template-columns: 0.14fr 0.9fr 0.85fr auto;
  gap: 20px;
}

.course-row:last-child {
  border-bottom: 0;
}

a.course-row {
  transition:
    padding 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

a.course-row:hover {
  padding-right: 22px;
  padding-left: 42px;
  background: var(--cyan);
  color: var(--ink);
}

.course-index,
.course-type {
  color: #91999c;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

a.course-row:hover .course-index,
a.course-row:hover .course-type {
  color: var(--ink);
}

.course-name {
  margin: 0;
  font-size: clamp(21px, 2.5vw, 31px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.course-type {
  line-height: 1.6;
  text-transform: uppercase;
}

.course-arrow {
  padding-right: 4px;
  color: var(--cyan);
  font-size: 20px;
}

a.course-row:hover .course-arrow {
  color: var(--ink);
}

.teaching {
  display: grid;
  width: 100%;
  min-height: 580px;
  grid-template-columns: 1fr 1fr;
}

.teaching-art {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 580px;
  place-items: center;
  background: var(--cyan);
}

.dot-field {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--navy) 1.4px, transparent 1.4px);
  background-size: 24px 24px;
  opacity: 0.36;
  transform: rotate(-10deg) scale(1.2);
}

.teaching-art p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--white);
  font-size: clamp(52px, 7vw, 95px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.78;
  text-align: center;
}

.teaching-art strong {
  color: var(--navy);
  font-weight: 800;
}

.teaching-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: clamp(55px, 7vw, 105px);
  background: var(--ink);
  color: var(--white);
}

.teaching-copy .kicker {
  color: var(--cyan);
}

.teaching-copy h2 {
  margin-bottom: 26px;
}

.teaching-copy > p:not(.kicker) {
  max-width: 570px;
  margin-bottom: 34px;
  color: #b8bfc2;
  font-size: 16px;
  line-height: 1.8;
}

.text-button.dark {
  border: 1px solid #4d5255;
}

.resources-intro {
  align-items: end;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 2px solid var(--cyan);
  background: var(--mist);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.search-icon {
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.search-icon::after {
  display: block;
  width: 5px;
  height: 1px;
  margin: 10px 0 0 9px;
  background: var(--ink);
  content: "";
  transform: rotate(45deg);
}

kbd {
  padding: 2px 6px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--mono);
  font-size: 9px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-button {
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-button:hover,
.filter-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.resource-grid {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.resource-card {
  display: flex;
  min-height: 255px;
  align-items: flex-start;
  flex-direction: column;
  padding: 27px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.resource-card:hover {
  background: var(--cyan);
  color: var(--ink);
}

.resource-topline {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.resource-category,
.resource-domain {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.external-arrow {
  font-size: 18px;
}

.resource-card h3 {
  margin: 42px 0 11px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.resource-card p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.resource-card:hover p,
.resource-card:hover .resource-domain,
.resource-card:hover .resource-category {
  color: var(--ink);
}

.resource-domain {
  margin-top: auto;
  color: #8b9295;
  text-transform: none;
}

.empty-state {
  padding: 60px;
  color: var(--muted);
  text-align: center;
}

.about {
  display: grid;
  align-items: center;
  border-top: 1px solid var(--line);
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
}

.about-mark {
  position: relative;
  display: grid;
  overflow: hidden;
  width: 100%;
  max-width: 430px;
  aspect-ratio: 1;
  place-items: center;
  background: var(--cyan-pale);
}

.about-mark::before,
.about-mark::after {
  position: absolute;
  width: 70%;
  height: 70%;
  border: 2px solid var(--cyan);
  content: "";
  transform: rotate(45deg);
}

.about-mark::after {
  width: 45%;
  height: 45%;
  border-color: var(--blue);
  transform: rotate(15deg);
}

.about-mark span {
  position: absolute;
  z-index: 1;
  color: var(--navy);
  font-size: 100px;
  font-weight: 800;
  letter-spacing: -0.12em;
}

.about-mark span:first-child {
  margin-left: -75px;
}

.about-mark span:last-child {
  margin-left: 65px;
  color: var(--cyan);
}

.about-copy h2 {
  margin-bottom: 24px;
}

.about-lead {
  max-width: 630px;
  margin-bottom: 16px;
  color: var(--ink) !important;
  font-size: 20px !important;
  font-weight: 700;
  line-height: 1.5 !important;
}

.about-copy > p:not(.kicker) {
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.about-links {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.about-links a {
  padding: 11px 15px;
  border: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.about-links a:first-child {
  background: var(--ink);
  color: var(--white);
}

.about-links a:hover {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--ink);
}

.contact-band {
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 45px 60px;
  background: var(--cyan);
}

.contact-band p {
  max-width: 590px;
  margin: 0;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.contact-band a {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding: 15px 20px;
  border-bottom: 3px solid var(--white);
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

footer {
  display: flex;
  min-height: 125px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--blue);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: 1fr 1fr;
  }

  .wordmark {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    padding: 0;
  }

  .nav-left {
    display: none;
  }

  .nav-right {
    grid-column: 2;
    grid-row: 1;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 90px 0;
  }

  .hero-copy {
    max-width: 800px;
  }

  .data-portrait {
    width: min(75%, 470px);
    margin-top: 25px;
    justify-self: center;
  }

  .section-intro {
    grid-template-columns: 0.12fr 1fr;
  }

  .section-summary,
  .resources-intro .search {
    grid-column: 2;
    margin-top: 5px;
  }

  .teaching {
    grid-template-columns: 1fr;
  }

  .teaching-art {
    min-height: 440px;
  }

  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header,
  main,
  footer {
    width: min(100% - 30px, 1180px);
  }

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

  .wordmark span,
  .nav-right a:not(.nav-contact) {
    display: none;
  }

  .wordmark svg {
    width: 43px;
    height: 43px;
  }

  .nav-right {
    gap: 0;
  }

  .hero {
    padding: 70px 0 78px;
  }

  h1 {
    font-size: clamp(45px, 14vw, 64px);
  }

  .hero-intro {
    font-size: 16px;
  }

  .data-portrait {
    width: 94%;
    margin-top: 30px;
  }

  .work,
  .resources,
  .about {
    padding: 75px 0;
  }

  .section-intro {
    display: block;
  }

  .section-number {
    margin-bottom: 32px;
  }

  .section-summary {
    margin-top: 24px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .project-featured {
    grid-column: auto;
  }

  .project-visual,
  .project-featured .project-visual {
    height: 330px;
  }

  .ring-a {
    width: 280px;
    height: 280px;
  }

  .ring-b {
    width: 205px;
    height: 205px;
  }

  .courses {
    padding: 75px 15px;
  }

  .courses-intro {
    margin-bottom: 45px;
  }

  .semester {
    grid-template-columns: 1fr;
  }

  .semester-heading {
    display: flex;
    align-items: baseline;
    gap: 9px;
    padding: 26px 8px 18px;
  }

  .semester-heading p {
    margin: 0;
  }

  .semester-heading strong {
    font-size: 25px;
  }

  .semester-upcoming .semester-heading::after {
    margin: 0 0 0 auto;
  }

  .semester-courses {
    border-top: 1px solid #454b4e;
    border-left: 0;
  }

  .course-row {
    min-height: 105px;
    padding: 20px 8px;
    grid-template-columns: 28px 1fr auto;
    gap: 10px;
  }

  a.course-row:hover {
    padding: 20px 14px;
  }

  .course-type {
    display: none;
  }

  .course-name {
    font-size: 21px;
  }

  .teaching-art {
    min-height: 360px;
  }

  .teaching-copy {
    padding: 70px 25px;
  }

  .resources-intro .search {
    margin-top: 30px;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .resource-card {
    min-height: 225px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-mark {
    max-width: none;
    aspect-ratio: 1.3;
  }

  .contact-band {
    align-items: flex-start;
    flex-direction: column;
    padding: 45px 28px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  footer p:nth-child(2) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
