/* ==========================================================================
   styles.css — Ethan Song's home page.
   Depends on base.css for tokens, reset, and typographic defaults.
   ========================================================================== */

/* Wayfinding, not stationery. The ground is the cool stock a network map is
   printed on; the three section colours behave like line colours, each one
   owning its stop on the navigator and its panel below. */
:root {
  --paper: #e8ecf1;
  --paper-deep: #d4dae3;
  --white: #ffffff;
  --ink: #101a24;
  --muted: #4b5561;
  --line: rgba(16, 26, 36, 0.15);
  --line-strong: rgba(16, 26, 36, 0.28);
  --track: #b7c0cc;      /* the rail — supporting graphic */
  --stop-ring: #8792a2;  /* station markers — an affordance, so 3:1 on white */

  /* Line colours. */
  --orange: #b8431f;
  --blue: #2a56d6;
  --bili: #c22a66;

  --forest: #163b35;
  --forest-ink: #eef4e8;
  --forest-muted: #b0cdc2;

  --accent: var(--orange);
  --focus-ring: var(--ink);
  --skip-bg: var(--ink);
  --skip-fg: var(--paper);
  --skip-accent: var(--orange);
}

body {
  color: var(--ink);
  background: var(--paper);
}

/* Map grid, fading out before it reaches the reading content. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(16, 26, 36, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 26, 36, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

::selection {
  color: var(--paper);
  background: var(--orange);
}

/* ---- Header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  width: min(var(--container), 100% - (var(--gutter) * 2));
  min-height: 5rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
}

.brand,
.header-right,
.status {
  display: flex;
  align-items: center;
}

.brand {
  gap: var(--s-3);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 1.8125rem;
  height: 1.8125rem;
  flex: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  transform: skewY(-12deg);
}

.brand-mark i {
  display: block;
  border-radius: 2px;
}

.brand-mark i:nth-child(1) { background: var(--orange); }
.brand-mark i:nth-child(2) { background: var(--blue); }
.brand-mark i:nth-child(3) { background: var(--ink); }

.header-right {
  gap: var(--s-4);
}

.status {
  gap: var(--s-2);
  color: var(--muted);
  font: 500 var(--text-2xs) / 1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status i {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #2a8f60;
  box-shadow: 0 0 0 4px rgba(42, 143, 96, 0.14);
}

.icon-link {
  width: var(--control-h);
  height: var(--control-h);
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.icon-link:hover {
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-2px);
}

.icon-link svg {
  width: 1.125rem;
  fill: currentColor;
}

main {
  position: relative;
  z-index: 1;
}

/* ---- Hero --------------------------------------------------------------- */

.hero {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
  padding: var(--s-8) 0 var(--s-9);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22.5rem);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 var(--s-5);
  color: var(--orange);
  font: 500 var(--text-sm) var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  max-width: 15ch;
  margin-bottom: var(--s-5);
  font-size: var(--display-xl);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

h1 em {
  color: var(--orange);
  font-style: normal;
}

.hero-intro {
  max-width: 46ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
}

.hero-card {
  padding: var(--s-4);
  color: var(--paper);
  background: var(--ink);
  box-shadow: 18px 20px 0 rgba(16, 26, 36, 0.09);
  transform: rotate(1.5deg);
  transition: transform var(--dur-slow) var(--ease);
}

.hero-card:hover {
  transform: rotate(0deg) translateY(-5px);
}

.portrait-wrap {
  height: 20.625rem;
  position: relative;
  overflow: hidden;
  background: #d6d2c9;
}

.portrait-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42, 86, 214, 0.07), rgba(184, 67, 31, 0.1));
  mix-blend-mode: color;
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.04);
}

.portrait-stamp {
  position: absolute;
  z-index: 1;
  right: var(--s-3);
  bottom: var(--s-3);
  padding: var(--s-2);
  color: var(--paper);
  background: var(--orange);
  font-size: var(--text-3xs);
  line-height: 1.4;
  letter-spacing: 0.1em;
}

.mini-route {
  display: flex;
  align-items: center;
  margin: var(--s-5) 2px var(--s-4);
}

.station {
  width: 10px;
  height: 10px;
  border: 2px solid var(--paper);
  border-radius: 50%;
}

.station.start { background: var(--orange); border-color: var(--orange); }
.station.end { background: #6f96ff; border-color: #6f96ff; }
.track { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.28); }

.card-caption {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-5);
  padding: 0 2px 3px;
}

.card-caption span {
  color: #a7b3b2;
  font: 400 var(--text-3xs) var(--font-mono);
  text-transform: uppercase;
}

.card-caption strong {
  font-size: var(--text-xs);
  font-weight: 600;
  text-align: right;
}

/* ---- Section navigator ---------------------------------------------------
   The three sections are stops on a line. A track runs the width of the strip,
   each section is a station, and the segment behind the reader is drawn in that
   section's line colour — so the navigator states both where you are and how
   far along you are, which a row of tabs cannot. The track and the travelled
   segment are background layers on each button, so no extra element is needed
   and the colour follows :has() rather than script.
   ------------------------------------------------------------------------- */

.terminal {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tab-list,
.panels {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.tab-list {
  --track-y: 3.25rem;
  --track-w: 5px;
  --stop: 1.3125rem;
  display: flex;
  align-items: stretch;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.tab-list:has([data-tab="intro"].active) { --active-line: var(--orange); }
.tab-list:has([data-tab="projects"].active) { --active-line: var(--blue); }
.tab-list:has([data-tab="videos"].active) { --active-line: var(--bili); }

.tab {
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
  padding: calc(var(--track-y) + 2.5rem) clamp(2.5rem, 8vw, 7rem) var(--s-6) 0;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: var(--text-md);
  font-weight: 600;
  text-align: left;

  /* the grey track this station sits on */
  background-color: transparent;
  background-image: linear-gradient(var(--track), var(--track));
  background-size: 100% var(--track-w);
  background-position: 0 var(--track-y);
  background-repeat: no-repeat;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

/* Stations already passed: the whole segment is drawn in the live line colour. */
.tab:has(~ .tab.active) {
  background-image: linear-gradient(var(--active-line), var(--active-line));
}

/* The current station: colour stops dead at the marker. */
.tab.active {
  color: var(--ink);
  background-image:
    linear-gradient(var(--active-line), var(--active-line)),
    linear-gradient(var(--track), var(--track));
  background-size: calc(var(--stop) / 2) var(--track-w), 100% var(--track-w);
  background-position: 0 var(--track-y), 0 var(--track-y);
}

.tab:hover {
  color: var(--ink);
  background-color: rgba(16, 26, 36, 0.03);
}

/* The line runs on past the last stop, the way a diagram shows a route
   continuing beyond the edge of the map. */
.tab-list::after {
  content: "";
  flex: 1 1 auto;
  min-width: var(--s-6);
  background-image: linear-gradient(var(--track), var(--track));
  background-size: 100% var(--track-w);
  background-position: 0 var(--track-y);
  background-repeat: no-repeat;
}

/* The station marker itself. */
.tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--track-y) + (var(--track-w) / 2) - (var(--stop) / 2));
  width: var(--stop);
  height: var(--stop);
  border: 3px solid var(--stop-ring);
  border-radius: 50%;
  background: var(--white);
  transition: border-color var(--dur) var(--ease), border-width var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

/* Stops already on the line take its colour; stops still ahead stay grey. */
.tab.active::before,
.tab:has(~ .tab.active)::before {
  border-color: var(--active-line);
}

/* Interchange marker: heavier ring plus a halo, the way a map marks the stop
   you are standing in. */
.tab.active::before {
  border-width: 5px;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--active-line) 16%, transparent);
}

/* Hovering a stop ahead previews the colour that section will switch to. */
.tab:not(.active):hover::before {
  border-color: var(--line-color);
}

.tab[data-tab="intro"] { --line-color: var(--orange); }
.tab[data-tab="projects"] { --line-color: var(--blue); }
.tab[data-tab="videos"] { --line-color: var(--bili); }

/* Station code above station name, as on a platform sign. */
.tab span {
  display: block;
  margin-bottom: var(--s-2);
  color: var(--muted);
  font: 500 var(--text-3xs) var(--font-mono);
  letter-spacing: 0.16em;
  transition: color var(--dur) var(--ease);
}

.tab.active span,
.tab:has(~ .tab.active) span {
  color: var(--active-line);
}

.panels {
  min-height: 38rem;
}

/* Each panel inherits its line colour, so the section reads as one route. */
#intro-panel { --accent: var(--orange); }
#projects-panel { --accent: var(--blue); }
#videos-panel { --accent: var(--bili); }

.panel {
  padding: var(--s-9) 0 var(--s-10);
  animation: panel-in var(--dur-slow) var(--ease) both;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Introduction panel ------------------------------------------------- */

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}

.label {
  margin-bottom: var(--s-5);
  color: var(--accent);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-label);
}

h2 {
  font-size: var(--display-md);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  margin-bottom: 0;
}

.about-copy {
  max-width: var(--measure);
}

.about-copy > p {
  color: var(--muted);
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
}

.about-copy .large-copy {
  color: var(--ink);
  font-size: var(--text-2xl);
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.large-copy strong {
  color: var(--orange);
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: var(--s-8) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.interest-grid > div {
  display: flex;
  flex-direction: column;
  padding: var(--s-5) var(--s-5) var(--s-6) 0;
  border-right: 1px solid var(--line);
}

.interest-grid > div:not(:first-child) {
  padding-left: var(--s-5);
}

.interest-grid > div:last-child {
  border-right: 0;
}

.interest-no {
  display: block;
  margin-bottom: var(--s-7);
  color: var(--accent);
  font: 400 var(--text-3xs) var(--font-mono);
  letter-spacing: 0.1em;
}

.interest-grid strong {
  font-size: var(--text-base);
}

.interest-grid p {
  margin: var(--s-2) 0 0;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
}

.intro-actions,
.panel-topline,
.project-title {
  display: flex;
}

.intro-actions,
.project-title {
  align-items: center;
}

.intro-actions {
  flex-wrap: wrap;
  gap: var(--s-5) var(--s-7);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: var(--s-6);
  min-height: 3rem;
  padding: var(--s-3) var(--s-5);
  border: 1px solid var(--ink);
  font-size: var(--text-sm);
  font-weight: 700;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.button.primary {
  color: var(--paper);
  background: var(--ink);
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--lift) var(--accent);
}

.text-link {
  padding-bottom: var(--s-1);
  border-bottom: 1px solid currentColor;
  font-size: var(--text-sm);
  font-weight: 700;
  transition: color var(--dur-fast) var(--ease);
}

.text-link:hover {
  color: var(--accent);
}

.text-link span {
  margin-left: var(--s-3);
  color: var(--accent);
}

/* ---- Projects panel ----------------------------------------------------- */

.panel-topline {
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-6);
  margin-bottom: var(--s-8);
}

.panel-topline h2 {
  margin-bottom: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5);
}

.project-card {
  min-height: 21rem;
  padding: var(--s-5);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--paper);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.project-card:hover {
  border-color: var(--ink);
  transform: translate(-3px, -3px);
  box-shadow: var(--lift-lg) var(--ink);
}

.project-card.featured {
  grid-row: span 2;
  min-height: 43rem;
  color: var(--forest-ink);
  background: var(--forest);
}

.project-index {
  color: var(--muted);
  font-size: var(--text-3xs);
  letter-spacing: var(--tracking-label);
}

.featured .project-index {
  color: var(--forest-muted);
}

/* The featured card is sized by the two cards it spans, so the artwork is
   centred in whatever height is left rather than pinned under the index. */
.project-visual {
  height: 18.75rem;
  position: relative;
  margin: auto calc(var(--s-5) * -1);
}

.just-go-visual {
  overflow: hidden;
  background:
    linear-gradient(30deg, transparent 45%, rgba(255, 255, 255, .035) 46%, rgba(255, 255, 255, .035) 48%, transparent 49%),
    linear-gradient(-20deg, transparent 43%, rgba(255, 255, 255, .04) 44%, rgba(255, 255, 255, .04) 47%, transparent 48%);
  background-size: 100px 90px, 125px 100px;
}

.map-line {
  position: absolute;
  height: 8px;
  border-radius: 9px;
  transform-origin: left center;
}

.line-one {
  width: 420px;
  left: 25px;
  top: 190px;
  background: #f9d04a;
  transform: rotate(-24deg);
}

.line-two {
  width: 350px;
  left: 160px;
  top: 28px;
  background: #4c9aff;
  transform: rotate(66deg);
}

.map-stop {
  position: absolute;
  z-index: 2;
  width: 19px;
  height: 19px;
  border: 5px solid var(--forest-ink);
  border-radius: 50%;
  background: var(--forest);
}

/* All three stops sit on the drawn lines; a floating one reads as a mistake. */
.stop-a { left: 68px; top: 162px; }
.stop-b { left: 192px; top: 105px; }
.stop-c { left: 335px; top: 34px; }

.route-pill {
  position: absolute;
  z-index: 3;
  right: var(--s-5);
  top: var(--s-5);
  width: 6.875rem;
  height: 6.875rem;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--forest);
  background: var(--forest-ink);
  font-size: 2.375rem;
  font-weight: 800;
  line-height: 0.85;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .25);
}

.route-pill small {
  display: block;
  margin-top: var(--s-2);
  font: 500 var(--text-3xs) var(--font-mono);
  letter-spacing: 0.06em;
}

.project-copy {
  margin-top: auto;
}

.project-title {
  justify-content: space-between;
  gap: var(--s-5);
}

.project-title h3 {
  margin-bottom: var(--s-3);
  font-size: var(--display-xs);
  letter-spacing: -0.035em;
}

.project-title span {
  font-size: var(--text-2xl);
  transition: transform var(--dur-fast) var(--ease);
}

.project-card:hover .project-title span {
  transform: translate(3px, -3px);
}

.project-copy > p {
  max-width: 52ch;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.featured .project-copy > p {
  color: #b9d0c7;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

.tags span {
  padding: var(--s-1) var(--s-2);
  border: 1px solid var(--line);
  font: 500 var(--text-3xs) var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.featured .tags span {
  border-color: rgba(238, 244, 232, 0.26);
}

.project-symbol {
  width: 3.875rem;
  height: 3.875rem;
  margin: var(--s-7) 0 var(--s-6);
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  font-size: var(--text-2xl);
  font-weight: 800;
}

.ccmgr-symbol {
  border: 1px solid rgba(201, 242, 91, 0.5);
  color: #c9f25b;
  background: #0d2721;
  box-shadow: 5px 5px 0 rgba(18, 60, 51, 0.16);
  font: 500 var(--text-xl) var(--font-mono);
}

.rail-symbol {
  border-radius: 50%;
  background: var(--blue);
}

.chat-symbol {
  width: 4.6875rem;
  border-radius: 26px 26px 26px 4px;
  background: var(--orange);
  letter-spacing: 3px;
}

.music-symbol {
  border-radius: 4px;
  background: #5c46a3;
  font-size: 1.875rem;
}

/* ---- Videos panel ------------------------------------------------------- */

.button.bilibili {
  border-color: var(--bili);
  color: var(--bili);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6) var(--s-5);
}

.video-card {
  display: block;
}

.large-video {
  grid-column: span 2;
  grid-row: span 2;
}

.thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: var(--paper-deep);
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 20, 22, 0.45), transparent 48%);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease), filter var(--dur-slow) var(--ease);
}

.video-card:hover .thumb img {
  transform: scale(1.045);
  filter: saturate(1.1);
}

.duration {
  position: absolute;
  z-index: 2;
  right: var(--s-2);
  bottom: var(--s-2);
  padding: 3px var(--s-2);
  color: #fff;
  background: rgba(13, 22, 25, 0.82);
  font-size: var(--text-3xs);
}

.play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  font-size: var(--text-xs);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.video-card:hover .play,
.video-card:focus-visible .play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.video-copy {
  padding-top: var(--s-4);
}

.video-meta {
  display: block;
  margin-bottom: var(--s-2);
  color: var(--accent);
  font-size: var(--text-3xs);
  letter-spacing: var(--tracking-label);
}

.video-copy h3 {
  margin-bottom: var(--s-2);
  font-size: var(--text-xl);
  line-height: 1.4;
  letter-spacing: normal;
}

.large-video .video-copy h3 {
  font-size: var(--display-xs);
  letter-spacing: var(--tracking-tight);
}

.video-copy p {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: var(--text-md);
}

/* ---- Footer ------------------------------------------------------------- */

footer {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  min-height: 8rem;
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-5);
  color: var(--muted);
  font-size: var(--text-xs);
}

footer p {
  margin: 0;
}

/* ---- Responsive --------------------------------------------------------- */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    width: min(22.5rem, 85vw);
    justify-self: end;
  }

  .intro-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-7);
  }

  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-card.featured {
    grid-row: auto;
    min-height: 38rem;
  }

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

  .tab {
    padding-right: clamp(1.5rem, 5vw, 3rem);
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 4.5rem;
  }

  .status {
    display: none;
  }

  .hero {
    padding: var(--s-6) 0 var(--s-8);
  }

  .hero-card {
    justify-self: center;
  }

  .portrait-wrap {
    height: 18.75rem;
  }

  /* The whole line has to stay visible for the diagram to mean anything, so
     the stops compress rather than scroll out of view. */
  .tab-list {
    --track-y: 2.5rem;
    --stop: 1rem;
  }

  .tab {
    flex: 1;
    padding: calc(var(--track-y) + 1.75rem) var(--s-2) var(--s-5) 0;
    font-size: var(--text-2xs);
    line-height: 1.3;
  }

  .tab-list::after {
    display: none;
  }

  .tab span {
    margin-bottom: var(--s-1);
  }

  .panels {
    min-height: 0;
  }

  .panel {
    padding: var(--s-8) 0 var(--s-9);
  }

  .interest-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .interest-grid > div,
  .interest-grid > div:not(:first-child) {
    padding: var(--s-5) 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .interest-grid > div:last-child {
    border-bottom: 0;
  }

  .interest-no {
    margin-bottom: var(--s-4);
  }

  .intro-actions,
  .panel-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-visual {
    height: 15rem;
  }

  .project-card.featured {
    min-height: 34rem;
  }

  .video-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .large-video {
    grid-column: auto;
    grid-row: auto;
  }

  .large-video .video-copy h3 {
    font-size: var(--text-2xl);
  }

  footer {
    min-height: 9rem;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: var(--s-3);
  }

}
