:root {
  --ink: #111111;
  --paper: #f8f8f6;
  --gutter: clamp(24px, 3.2vw, 66px);
  --panel-rail: clamp(240px, 27vw, 430px);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
}

body.has-active-panel {
  overflow: hidden;
}

button,
a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.landing {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(520px, 1.22fr);
  gap: clamp(42px, 6vw, 124px);
  min-height: 100svh;
  padding: 20px var(--gutter) 36px;
  overflow: hidden;
}

.brand {
  position: relative;
  z-index: 7;
  align-self: start;
  padding-top: clamp(26px, 3.5vw, 62px);
}

.brand__home {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

.brand__home:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 8px;
}

.brand__mark {
  width: clamp(64px, 6.4vw, 112px);
  height: clamp(64px, 6.4vw, 112px);
  margin-bottom: clamp(18px, 2vw, 32px);
  object-fit: cover;
  mix-blend-mode: multiply;
}

.brand h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(46px, 4.2vw, 88px);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.84;
}

.brand h1 span {
  display: block;
}

.primary-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(7px, 0.9vw, 14px);
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  transition:
    max-height 500ms cubic-bezier(0.2, 0.75, 0.25, 1),
    margin-top 500ms cubic-bezier(0.2, 0.75, 0.25, 1),
    opacity 280ms ease,
    transform 500ms cubic-bezier(0.2, 0.75, 0.25, 1),
    visibility 500ms;
}

.primary-nav.is-open {
  max-height: 220px;
  margin-top: clamp(26px, 3vw, 44px);
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.primary-nav a {
  font-size: clamp(22px, 2vw, 36px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.12;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.feature {
  width: min(100%, calc(100svh - 100px), 950px);
  margin: 0;
  justify-self: start;
}

.feature__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e4e2dc;
}

.feature__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 31%;
  filter: saturate(0.72) contrast(0.96);
  transition: transform 1.1s cubic-bezier(0.2, 0.75, 0.25, 1), filter 0.8s ease;
}

.feature__frame:hover img {
  transform: scale(1.012);
  filter: saturate(0.9) contrast(0.98);
}

.feature figcaption {
  padding-top: 7px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
}

.page-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 4;
  width: calc(100vw - var(--panel-rail));
  height: 100svh;
  padding: clamp(42px, 5vw, 86px) var(--gutter) clamp(56px, 7vw, 112px);
  overflow-y: auto;
  border-top: 1px solid rgba(17, 17, 17, 0.2);
  border-left: 1px solid rgba(17, 17, 17, 0.18);
  background: var(--paper);
  box-shadow: -24px 0 80px rgba(17, 17, 17, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  visibility: hidden;
  transition:
    transform 650ms cubic-bezier(0.2, 0.75, 0.25, 1),
    opacity 300ms ease,
    visibility 650ms;
}

.page-panel.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  visibility: visible;
}

.content-page,
.work-page {
  padding: clamp(42px, 5vw, 86px) var(--gutter) clamp(56px, 7vw, 112px);
  border-top: 1px solid rgba(17, 17, 17, 0.2);
}

.content-page {
  min-height: 100svh;
}

.content-page--contact {
  min-height: 100svh;
}

.content-page__header,
.work-page__header {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(320px, 1fr);
  column-gap: clamp(34px, 6vw, 110px);
  row-gap: 18px;
  margin-bottom: clamp(34px, 5vw, 72px);
}

.eyebrow {
  margin: 0;
  font-size: clamp(14px, 1.1vw, 18px);
  line-height: 1;
  text-transform: uppercase;
}

.content-page h2,
.work-page h2 {
  grid-column: 2;
  margin: 0;
  font-size: clamp(76px, 13vw, 220px);
  font-weight: 600;
  letter-spacing: -0.085em;
  line-height: 0.8;
}

.content-page__header > p:last-child,
.work-page__header > p:last-child {
  grid-column: 2;
  max-width: 620px;
  margin: 0;
  font-size: clamp(18px, 1.65vw, 30px);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(320px, 1fr);
  column-gap: clamp(34px, 6vw, 110px);
  max-width: 1180px;
}

.about-panel p {
  grid-column: 2;
  max-width: 52ch;
  margin: 0;
  padding-top: 16px;
  border-top: 2px solid currentColor;
  font-size: clamp(20px, 2vw, 38px);
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.about-panel p + p {
  margin-top: 34px;
}

.contact-list {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(320px, 1fr);
  column-gap: clamp(34px, 6vw, 110px);
}

.contact-list a {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0 16px;
  border-top: 2px solid currentColor;
  font-size: clamp(20px, 2vw, 38px);
  letter-spacing: -0.06em;
  line-height: 0.92;
  text-decoration: none;
}

.contact-list a:last-child {
  border-bottom: 2px solid currentColor;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline: 0;
}

.contact-list span:first-child {
  font-size: clamp(13px, 1vw, 16px);
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 34px);
}

.work-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border-top: 2px solid currentColor;
}

.work-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin-top: 12px;
  overflow: hidden;
  background:
    linear-gradient(rgba(17, 17, 17, 0.06), rgba(17, 17, 17, 0.06)),
    url("assets/college-place-exterior.png") center / cover;
  color: var(--paper);
  filter: grayscale(0.95) contrast(1.1);
}

.work-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 35% 28%, transparent 0 1px, rgba(248, 248, 246, 0.12) 1px 2px),
    rgba(17, 17, 17, 0.28);
  background-size: 5px 5px, auto;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.work-card__media span {
  position: relative;
  z-index: 1;
  padding: 8px 10px;
  border: 1px solid currentColor;
  font-size: clamp(13px, 1vw, 16px);
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.work-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 18px;
}

.work-card__type {
  margin: 0 0 24px;
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
}

.work-card h3 {
  margin: 0;
  font-size: clamp(30px, 3vw, 58px);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.84;
}

.work-card__body > p:not(.work-card__type) {
  max-width: 28ch;
  margin: 18px 0 28px;
  font-size: clamp(15px, 1.1vw, 19px);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.audio-placeholder {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding: 12px 0 10px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
}

.portal-page {
  z-index: 6;
}

.portal-login {
  display: grid;
  min-height: calc(100svh - clamp(84px, 10vw, 172px));
  align-content: center;
  gap: 0;
}

.portal-login .eyebrow {
  margin-bottom: clamp(14px, 1.6vw, 28px);
}

.portal-login h2,
.portal-app h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.085em;
  line-height: 0.78;
}

.portal-login h2 {
  max-width: 5ch;
  font-size: clamp(92px, 15vw, 240px);
}

.portal-app h2 {
  max-width: 8ch;
  font-size: clamp(76px, 12vw, 190px);
}

.portal-login > p:not(.eyebrow) {
  max-width: 640px;
  margin: clamp(26px, 3vw, 48px) 0 0;
  font-size: clamp(18px, 1.45vw, 28px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.portal-login__form {
  display: grid;
  gap: 12px;
  max-width: 640px;
  margin-top: clamp(38px, 4.4vw, 74px);
  padding-top: clamp(24px, 3vw, 44px);
  border-top: 2px solid currentColor;
}

.portal-login__form label {
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
}

.portal-login__form div {
  display: flex;
  gap: 10px;
}

.portal-login__form input,
.portal-login__form button,
.portal-app button {
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
}

.portal-login__form input {
  min-width: 0;
  flex: 1;
  padding: 13px 14px 11px;
}

.portal-login__form button,
.portal-app button {
  padding: 13px 16px 11px;
  cursor: pointer;
}

.portal-login__form button:hover,
.portal-login__form button:focus-visible,
.portal-app button:hover,
.portal-app button:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline: 0;
}

.portal-login__error {
  min-height: 1.1em;
  margin: 0;
  font-size: 13px;
  line-height: 1;
}

.portal-app__topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(34px, 5vw, 72px);
  padding-bottom: 18px;
  border-bottom: 2px solid currentColor;
}

.portal-app__topbar .eyebrow {
  margin-bottom: clamp(20px, 2.2vw, 38px);
}

.portal-layout {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 72px);
}

.portal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portal-sidebar button {
  width: 100%;
  padding: 12px 0 10px;
  border-width: 0 0 1px;
  text-align: left;
}

.portal-sidebar button.is-active {
  background: var(--ink);
  color: var(--paper);
  padding-left: 10px;
}

.portal-board {
  min-width: 0;
}

.portal-search {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(24px, 3vw, 44px);
}

.portal-search span {
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
}

.portal-search input {
  width: 100%;
  padding: 13px 0 11px;
  border: 0;
  border-bottom: 2px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: clamp(24px, 2.5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.portal-search input:focus-visible {
  outline: 0;
  border-bottom-style: dashed;
}

.portal-section {
  display: none;
}

.portal-section.is-active {
  display: block;
}

.portal-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.portal-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.portal-section h3 {
  margin: 0;
  font-size: clamp(34px, 4vw, 72px);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.portal-list {
  display: grid;
  gap: 12px;
}

.portal-item {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid currentColor;
}

.portal-item:last-child {
  border-bottom: 1px solid currentColor;
}

.portal-item input,
.portal-item textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.portal-item input {
  font-size: clamp(22px, 2.4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.portal-item textarea {
  min-height: 94px;
  resize: vertical;
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.portal-file {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 10px;
  border-top: 1px solid rgba(17, 17, 17, 0.35);
  border-bottom: 1px solid rgba(17, 17, 17, 0.35);
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.portal-file:hover,
.portal-file:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline: 0;
}

.portal-item__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
}

.portal-item__meta button {
  padding: 0;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.portal-empty {
  padding: 20px 0;
  border-top: 1px solid currentColor;
  font-size: clamp(18px, 1.5vw, 28px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.menu-toggle {
  position: fixed;
  z-index: 8;
  left: calc(var(--gutter) - 12px);
  bottom: clamp(42px, 7vh, 84px);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 31px;
  height: 2px;
  background: currentColor;
  transition: transform 300ms ease;
}

.menu-toggle span:last-child {
  transform: rotate(90deg);
}

.menu-toggle:hover span:first-child {
  transform: rotate(90deg);
}

.menu-toggle:hover span:last-child {
  transform: rotate(180deg);
}

.menu-toggle[aria-expanded='true'] span:first-child {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:last-child {
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  :root {
    --panel-rail: clamp(170px, 42vw, 260px);
  }

  .landing {
    display: block;
    min-height: 100svh;
    padding-top: 24px;
    overflow: visible;
  }

  .brand {
    padding: 0 0 34px;
  }

  .brand h1 {
    max-width: 10ch;
    font-size: clamp(50px, 12vw, 88px);
    line-height: 0.88;
  }

  .brand__mark {
    width: clamp(58px, 15vw, 88px);
    height: clamp(58px, 15vw, 88px);
    margin-bottom: 18px;
  }

  .feature {
    width: 100%;
    padding-bottom: 116px;
  }

  .feature__frame {
    aspect-ratio: auto;
    height: 67svh;
    min-height: 430px;
  }

  .menu-toggle {
    z-index: 8;
    bottom: 38px;
  }

  .page-panel {
    padding-top: 52px;
  }

  .content-page__header,
  .work-page__header {
    display: block;
  }

  .content-page h2,
  .work-page h2 {
    margin-top: 16px;
    font-size: clamp(78px, 21vw, 148px);
  }

  .content-page__header > p:last-child,
  .work-page__header > p:last-child {
    max-width: 26ch;
    margin-top: 22px;
  }

  .about-panel,
  .contact-list {
    display: block;
  }

  .about-panel p {
    max-width: 28ch;
  }

  .contact-list a {
    display: block;
  }

  .contact-list span {
    display: block;
  }

  .contact-list span + span {
    margin-top: 12px;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .portal-login h2,
  .portal-app h2 {
    font-size: clamp(72px, 20vw, 138px);
  }

  .portal-app__topbar,
  .portal-layout,
  .portal-section__header {
    display: block;
  }

  .portal-app__topbar button,
  .portal-section__header button {
    margin-top: 18px;
  }

  .portal-sidebar {
    margin-bottom: 34px;
  }
}

@media (max-width: 540px) {
  :root {
    --gutter: 18px;
  }

  .landing {
    padding-top: 18px;
  }

  .brand {
    padding-bottom: 24px;
  }

  .brand h1 {
    font-size: clamp(46px, 15.5vw, 72px);
  }

  .brand__mark {
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
  }

  .feature__frame {
    height: 60svh;
    min-height: 390px;
  }

  .feature figcaption {
    max-width: 32ch;
    font-size: 10px;
  }

  .primary-nav.is-open {
    margin-top: 20px;
  }

  .primary-nav a {
    font-size: 24px;
  }

  .portal-login__form div {
    display: block;
  }

  .portal-login__form button {
    width: 100%;
    margin-top: 10px;
  }
}

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