/* =========================================================
   Sanjana Sharavan — Portfolio
   Recreated from the Framer site. Plain CSS, no build step.
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter&family=Italianno&family=Bricolage+Grotesque:wght@500;600&display=swap");
@font-face { font-family: "Satoshi"; src: url("images/fonts/Satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("images/fonts/Satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("images/fonts/Satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Surfaces */
  --bg: #f5f4eb;          /* page */
  --card: #edece1;        /* bento cards, dock */
  --card-soft: #f2f1e6;   /* case-study cards */
  --line: rgba(17, 16, 17, 0.12);

  /* Text */
  --ink: #303030;
  --ink-strong: #111011;
  --ink-muted: rgba(17, 16, 17, 0.8);

  /* Accents */
  --red: #961818;         /* signature name, section script titles */
  --red-warm: #a81b16;    /* "Hey, I'm Sanjana" */
  --green: #5b8275;       /* "Gallery" */
  --blue: #0a0794;        /* "Let's Talk!" */
  --available: #308525;   /* status dot */
  --tag-green: #6cab80;
  --tag-gold: #d9b871;
  --tag-teal: #84b2b7;

  /* Type */
  --font-sans: "Satoshi", system-ui, -apple-system, sans-serif;
  --font-script: "Italianno", cursive;
  --font-display: "Bricolage Grotesque", var(--font-sans);

  /* Layout */
  --page-x: 100px;
  --radius-card: 16px;
  --radius-pill: 32px;
  --gap: 10px;
  --dock-bottom: clamp(16px, 3vh, 40px);
  --dock-h: 70px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.2;
  min-height: 100vh;
  padding-bottom: 140px; /* room for the dock */
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
b, strong { font-weight: 700; }

.page { /* content is centred and capped at the bento width (1241px) */
  padding: 80px var(--page-x) 0;
  max-width: calc(1241px + 2 * var(--page-x)); margin: 0 auto;
}
.page.contact { position: relative; }
.script { font-family: var(--font-script); font-weight: 400; line-height: 1; }

/* ---------- Pill button ---------- */
/* Hover: the gap between label and arrow opens up (10px -> 16px), as on Framer */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px 8px 16px;
  border: 1px solid #c7c7c7;
  border-radius: var(--radius-pill);
  font-size: 18px; font-weight: 500; line-height: 1.5;
  color: var(--ink-muted);
  background: transparent;
  transition: gap .35s cubic-bezier(.2,.8,.2,1);
  white-space: nowrap;
  width: fit-content;
}
.case .btn { align-self: flex-start; }
.btn:hover, .btn:focus-visible { gap: 16px; }
.btn svg { width: 24px; height: 24px; flex: none; }
.btn--sm { padding: 6px 10px 6px 12px; }
.btn--sm svg { width: 28px; height: 28px; }

/* Home bento cards: the whole card is the link. The arrow (.btn-icon) carries the
   link and stretches an invisible hit area over its card; on hover the arrow nudges right. */
.btn-icon {
  align-self: flex-end; z-index: 2; flex: none;
  display: grid; place-items: center; width: 28px; height: 28px;
  color: rgba(17, 16, 17, 0.75);
}
.btn-icon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 3; }
.btn-icon svg { width: 24px; height: 24px; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.card:has(.btn-icon) { cursor: pointer; }
.card:hover .btn-icon svg, .btn-icon:focus-visible svg { transform: translateX(4px); }
.card:has(.btn-icon:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn-icon:focus-visible { outline: none; }

/* ---------- Dock nav (shared) ---------- */
.dock {
  position: fixed; left: 50%; bottom: var(--dock-bottom); transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: var(--card); border-radius: 60px;
  z-index: 50;
}
.dock a {
  position: relative; width: 50px; height: 50px; border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: grid; place-items: center;
  transition: width .3s cubic-bezier(.2,.8,.2,1), height .3s cubic-bezier(.2,.8,.2,1);
}
.dock a:hover, .dock a:focus-visible { width: 60px; height: 60px; }
.dock svg { width: 22px; height: 22px; fill: var(--ink); }
.dock svg .stroke { fill: none; stroke: var(--ink); stroke-width: 12; stroke-linejoin: round; stroke-linecap: round; }
.dock a::before { /* label: soft pill that rises on hover */
  content: attr(data-label);
  position: absolute; bottom: calc(100% + 26px); left: 50%;
  transform: translate(-50%, 40px);
  padding: 3px 8px 2px; border-radius: 999px;
  background: #f5f4ec; color: var(--ink);
  font-family: "Inter", var(--font-sans); font-size: 16px; line-height: 19px; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(17, 16, 17, 0.06);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.dock a:hover::before, .dock a:focus-visible::before { opacity: 1; transform: translate(-50%, 0); }
.dock a::after { /* dot under the hovered icon only */
  content: ""; position: absolute; top: calc(100% + 4px); left: 50%;
  width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: rgba(48, 48, 48, 0.3);
  opacity: 0; transition: opacity .25s ease;
}
.dock a:hover::after, .dock a:focus-visible::after { opacity: 1; }

/* =========================================================
   HOME
   ========================================================= */
.home-deco {
  position: absolute; top: 6px; right: 0; width: 415px; height: auto;
  pointer-events: none; z-index: 0;
}
.home-hero { /* one row above the bento: name left, intro right (ends at the bento's right edge) */
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  align-items: last baseline; /* intro's last line sits on the name's baseline */
}
.home-hero h1 {
  display: flex; align-items: center; gap: 18px;
  font-size: 126px; color: var(--red); line-height: 1; /* line box includes the descenders */
  white-space: nowrap;
}
/* The cat walks along the bottom of the home page (site.js). Click it → "ouch". */
.walk-cat {
  position: fixed; left: 0; bottom: -3px; z-index: 40; /* feet on the bottom edge (drawing has ~3px of space under the paws); walks behind the dock (z 50) */
  width: 85px; height: 56px; padding: 0; border: 0; background: none; cursor: pointer;
  transform: translateX(-140px); /* waits off-screen left until it starts walking */
}
.walk-cat .flip { display: block; width: 100%; height: 100%; }
.walk-cat.to-right .flip { transform: scaleX(-1); } /* the drawing faces left; flip it to walk right */
/* The cat is inline SVG: one body + four legs (clipped copies of the same doodle) that swing
   from the hip in a 4-beat walk while .walking. --step is set in site.js to match the walk speed. */
.walk-cat .cat-art { display: block; width: 100%; height: 100%; overflow: visible; }
.walk-cat .leg, .walk-cat .cat-body { transform-box: view-box; }
.walk-cat .leg { animation: catleg var(--step, .5s) linear infinite paused; }
.walk-cat .l3 { animation-delay: 0s; }
.walk-cat .l1 { animation-delay: calc(var(--step, .5s) * -.25); }
.walk-cat .l4 { animation-delay: calc(var(--step, .5s) * -.5); }
.walk-cat .l2 { animation-delay: calc(var(--step, .5s) * -.75); }
.walk-cat .cat-body { animation: catbody calc(var(--step, .5s) / 2) ease-in-out infinite alternate paused; }
.walk-cat.walking .leg, .walk-cat.walking .cat-body { animation-play-state: running; }
.walk-cat:not(.walking) .leg { animation: none; } /* stand square when stopped */
/* stance: foot planted, sweeps back at a constant rate (no sliding); swing: lifts and steps forward */
@keyframes catleg {
  0%   { transform: rotate(16deg); }
  62%  { transform: rotate(-16deg); }
  80%  { transform: translateY(-6px) rotate(0deg); }
  100% { transform: rotate(16deg); }
}
@keyframes catbody { from { transform: translateY(0); } to { transform: translateY(-1.6px); } }
.ouch {
  position: absolute; left: 50%; top: 0; pointer-events: none; white-space: nowrap;
  font-family: var(--font-sans); font-size: 13px; font-weight: 400; line-height: 1;
  color: #111011; letter-spacing: -0.01em;
  animation: ouch 1s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes ouch {
  0% { opacity: 0; transform: translate(-50%, 0) translate(var(--ox), var(--oy)) rotate(var(--or)) scale(.6); }
  20% { opacity: 1; transform: translate(-50%, -14px) translate(var(--ox), var(--oy)) rotate(var(--or)) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -34px) translate(var(--ox), var(--oy)) rotate(var(--or)) scale(1); }
}
.home-hero p { flex: none; margin: 0; line-height: 22px; white-space: nowrap; } /* line breaks are set in the HTML; longest line ends at the bento's right edge */
.home-hero h1 { flex: none; }

/* Bento hierarchy (desktop), on a 6-row grid:
   col 1  Work (largest, full height, under the status pills)
   col 2  Playground (full height, but visually quiet: small flat thumbnails)
   col 3  Contact / About / Resume (equal small cards, 2 rows each)  */
.bento {
  position: relative; z-index: 1;
  display: grid; margin-top: 48px;
  grid-template-columns: 553fr 328fr 328fr;
  grid-template-rows: repeat(6, 82px);
  gap: var(--gap);
}
.card {
  background: var(--card); border-radius: var(--radius-card);
  padding: 24px; position: relative; overflow: hidden;
}
.card h2 { font-size: 24px; font-weight: 700; color: var(--ink); }
.card p { margin-top: 12px; line-height: 1.2; }

.col-1 { grid-column: 1; grid-row: 1 / 7; display: flex; flex-direction: column; gap: var(--gap); }
.status-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.status {
  background: var(--card); border-radius: var(--radius-card);
  height: 60px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 500;
}
.status .dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--available); }
.status img { width: 20px; height: 20px; }

.card--work { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card--work .text { max-width: 280px; }
/* Work + Playground illustrations: dotted, dithered drawings in the style of the
   floral pattern (rendered by site.js into <canvas class="dot-art">). */
.card--work .text, .card--play .text { position: relative; z-index: 2; }
.card--work .btn-icon, .card--play .btn-icon { align-self: flex-start; } /* arrow bottom-left; art sits bottom-right */
.dot-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

.card--play {
  grid-column: 2; grid-row: 1 / 7;
  display: flex; flex-direction: column; justify-content: space-between;
}

/* Smaller cards */
.card--about { grid-column: 3; grid-row: 3 / 5; display: flex; flex-direction: column; justify-content: space-between; }
.card--contact { grid-column: 3; grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: space-between; }
.card--contact .text, .card--contact .btn { position: relative; z-index: 1; }
.card p { font-weight: 400; }
.card--about p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* keep to one line */
.card--contact p, .card--about p, .card--resume p, .card--play p { margin-top: 8px; }

.card--resume {
  grid-column: 3; grid-row: 5 / 7;
  display: flex; flex-direction: column; justify-content: space-between;
}
.card--resume .btn { position: relative; z-index: 1; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-top {
  display: grid; grid-template-columns: 213px minmax(0, 474px) 1fr;
  gap: 56px; align-items: start; padding-top: 20px;
}
.about-photo { width: 213px; height: 251px; border-radius: 28px; object-fit: cover; }
.about-copy h1 { font-size: 37px; color: var(--red-warm); line-height: .65; margin-top: 19px; }
.about-copy p { margin-top: 20px; }
.about-copy p + p { margin-top: 12px; }

/* Music player: playing by default (record spins, lower half visible).
   Click toggles: stop = record spins back to rest, text blurs, record drops
   down to fill the card. Click again = record pops up and spins. Hover = record grows 5%. */
.player {
  justify-self: end; margin-right: -1px; margin-top: 72px;
  width: 179px; height: 179px; border-radius: 20px; background: var(--card);
  position: relative; overflow: hidden; text-align: center; cursor: pointer;
  display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 14px;
  -webkit-tap-highlight-color: transparent; isolation: isolate;
}
.player:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.player .cd {
  position: absolute; left: 50%; top: -107px; width: 206px; height: 206px; margin-left: -103px;
  z-index: 2; transition: transform .55s cubic-bezier(.34, 1.56, .64, 1);
}
.player.is-stopped .cd { transform: translateY(81px); transition-delay: .55s; }
.player .cd-scale { width: 100%; height: 100%; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.player:hover .cd-scale { transform: scale(1.05); }
.player .cd-spin { width: 100%; height: 100%; position: relative; will-change: transform; }
.player .disc { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.player .label {
  position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px;
  border-radius: 50%; object-fit: cover;
}
.player .content {
  position: relative; z-index: 1;
  transition: filter 2.5s cubic-bezier(.2,.8,.2,1), transform 2.5s cubic-bezier(.2,.8,.2,1);
}
.player.is-stopped .content { filter: blur(2px); transform: scale(.9); transition-duration: .45s; }
.bars { display: flex; gap: 1px; justify-content: center; align-items: center; height: 14px; margin-bottom: 8px; }
.bars i { width: 2px; background: #a3a3a3; border-radius: 2px; animation: bar .9s ease-in-out infinite alternate; }
.bars i:nth-child(1) { height: 4px; animation-delay: -.2s; }
.bars i:nth-child(2) { height: 8px; animation-delay: -.5s; }
.bars i:nth-child(3) { height: 12px; animation-delay: -.1s; }
.bars i:nth-child(4) { height: 5px; animation-delay: -.7s; }
@keyframes bar { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.player .artist { font-size: 12px; font-weight: 500; color: #828282; letter-spacing: -0.02em; }
.player .song { font-family: var(--font-display); font-size: 12px; font-weight: 500; color: #3d3d3d; margin-top: 3px; letter-spacing: -0.02em; }

.gallery-head { display: flex; align-items: center; gap: 16px; margin-top: 50px; }
.gallery-head h2 { font-size: 54px; color: var(--green); line-height: 1.2; }
.gallery-head p { max-width: 178px; }

.marquee {
  margin: 20px calc(50% - 50vw) 0; overflow: hidden; /* full-bleed */
}
.marquee-track {
  display: flex; gap: 40px; width: max-content;
  animation: marquee 120s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { width: 136px; height: 240px; object-fit: cover; border-radius: 2px; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   WORK
   ========================================================= */
.section-head { display: flex; align-items: center; gap: 32px; }
.section-head h1, .section-head h2 { font-size: 70px; color: var(--red); line-height: 1.2; white-space: nowrap; }
/* Italianno has a single weight, so at 70px its strokes look thinner than the 126px name on Home.
   A thin outline in the same colour thickens them to match the name's visual weight. */
.section-head h1, .section-head h2 { -webkit-text-stroke: 0.013em currentColor; paint-order: stroke fill; }
.section-head p { color: var(--ink-strong); line-height: 24px; max-width: 244px; }

/* Case studies stack on scroll: each card sticks 20px lower than the one before,
   and cards underneath shrink slightly (site.js sets --stack-scale). */
.cases { margin-top: 80px; }
.case {
  position: sticky; top: calc(100px + var(--i, 0) * 20px);
  background: var(--card-soft); border-radius: 26px; padding: 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 37px 88px; min-height: 466px; /* wide column gap: titles ↔ images */
  transform-origin: 50% 0;
  transform: scale(var(--stack-scale, 1));
}
/* each stacked card a touch darker than the one before */
.case:nth-child(1) { background: #efeee3; } .case:nth-child(2) { background: #ecebdf; } .case:nth-child(3) { background: #e9e8dc; }
.case:nth-child(1) { --i: 0; } .case:nth-child(2) { --i: 1; } .case:nth-child(3) { --i: 2; }
.case:nth-child(4) { --i: 3; } .case:nth-child(5) { --i: 4; }
.case + .case { margin-top: 32px; }
.case-text { display: flex; flex-direction: column; align-items: flex-start; }
.tag { display: inline-block; padding: 10px 12px; border-radius: 8px; color: #fff; }
.tag--green { background: var(--tag-green); }
.tag--gold { background: var(--tag-gold); }
.tag--teal { background: var(--tag-teal); }
.case h3 { font-size: 24px; font-weight: 400; color: var(--ink-strong); line-height: 1.2; margin-top: 24px; max-width: 558px; }
.case .btn { margin-top: auto; }
.case img { width: 100%; height: 338px; object-fit: contain; }

.older { margin-top: 160px; }
.older-list { margin-top: 64px; }
.older-row {
  display: flex; align-items: center; gap: 8px;
  padding: 0 0 22px; margin-bottom: 72px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}
.older-row:last-child { border-bottom: 0; margin-bottom: 0; }
.older-row h3 { font-size: 32px; font-weight: 400; color: var(--ink-strong); letter-spacing: -0.02em; line-height: 1.2; }
.older-row p { color: var(--ink-strong); padding-top: 12px; font-style: italic; letter-spacing: -0.02em; }
.older-row .btn { margin-left: auto; }

/* =========================================================
   PLAYGROUND PAGE
   ========================================================= */
/* Masonry-style grid: items keep their natural proportions.
   Add an item by copying a <figure class="play-item"> block in playground.html. */
/* Playground projects: two side by side above the Gallery */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; }
.project { display: block; color: inherit; text-decoration: none; margin: 0; }
.project img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; background: var(--card); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
a.project:hover img { transform: translateY(-4px); }
.project .project-title { display: flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 24px; color: var(--ink-strong); letter-spacing: -0.02em; line-height: 1.2; }
.project .t { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1.5px; text-underline-offset: 5px; transition: text-decoration-color .25s; }
.project:hover .t, .project:focus-visible .t { text-decoration-color: currentColor; }
.project-arrow { width: 22px; height: 22px; flex: none; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.project:hover .project-arrow { transform: translate(2px, -2px); }
.gallery { margin-top: 120px; }
.play-grid { display: flex; gap: 24px; align-items: flex-start; margin-top: 64px; }
.play-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.play-item { margin: 0; }
.play-item img, .play-item video {
  width: 100%; height: auto; border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(17, 16, 17, 0.06);
}
.play-item figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-muted); letter-spacing: -0.01em; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact h1 { font-size: 301px; color: var(--blue); line-height: .8; margin-top: 26px; white-space: nowrap; }
.contact .email { margin-top: 0; }
.contact-socials { margin-top: 213px; }
.contact-socials p { font-size: 20px; font-weight: 500; }
.contact-socials .row { display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.contact-art { position: absolute; right: 71px; top: 564px; width: 363px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
  :root { --page-x: 48px; }
  .home-hero { flex-direction: column; align-items: flex-start; gap: 20px; }
  .home-hero p { max-width: 660px; white-space: normal; }
  .home-hero p br { display: none; }
  .bento { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; }
  .col-1 { grid-row: auto; grid-column: 1 / -1; }
  .card--work { min-height: 440px; }
  .card--play, .card--about, .card--contact, .card--resume { grid-row: auto; grid-column: auto; min-height: 180px; }
  .card--play { grid-column: 1 / -1; min-height: 0; gap: 24px; }
  .card--play { min-height: 300px; }
  .about-top { grid-template-columns: 213px 1fr; }
  .player { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
  .case { grid-template-columns: 1fr; padding: 40px; }
  .case .btn { margin-top: 32px; }
  .case { top: calc(80px + var(--i, 0) * 16px); }
  .contact h1 { font-size: 200px; }
  .contact-art { position: static; margin-top: 48px; }
}

@media (max-width: 720px) {
  :root { --page-x: 20px; }
  .page { padding-top: 48px; }
  .home-hero h1 { font-size: 72px; white-space: normal; }
  .bento { grid-template-columns: 1fr; }
  .status-row { grid-template-columns: 1fr; }
  .card--work .text { max-width: 55%; }
  .card--contact, .card--resume, .card--about { min-height: 180px; }
  .about-top { grid-template-columns: 1fr; gap: 24px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .section-head h1, .section-head h2 { font-size: 56px; }
  .case h3 { font-size: 20px; }
  .case img { height: 220px; }
  .older-row { flex-wrap: wrap; margin-bottom: 40px; }
  .older-row h3 { font-size: 26px; }
  .projects { grid-template-columns: 1fr; }
  .gallery { margin-top: 80px; }
  .project .project-title { font-size: 20px; }
  .older-row p { padding-top: 0; flex-basis: 100%; order: 3; }
  .case { padding: 24px; min-height: 0; }
  .contact h1 { font-size: 110px; white-space: normal; }
  .contact-socials { margin-top: 120px; }
  .dock { bottom: 20px; gap: 8px; }
  .dock a { width: 44px; height: 44px; }
}

/* =========================================================
   HOME: FIT TO SCREEN (desktop)
   The home page fills exactly one screen: the hero and bento shrink with the
   window height, and the dock sits below the bento with a clear gap.
   Below ~640px tall the page simply scrolls instead of squashing further.
   ========================================================= */
@media (min-width: 1201px) {
  body.home { padding-bottom: 0; }
  .page--home {
    height: max(100dvh, 640px);
    display: flex; flex-direction: column; justify-content: center;
    padding-top: clamp(24px, 5vh, 80px);
    padding-bottom: calc(var(--dock-bottom) + var(--dock-h) + clamp(20px, 3.5vh, 32px));
  }
  .page--home .home-hero h1 { font-size: clamp(84px, 13.5vh, 136px); }
  .page--home .bento {
    flex: 1; min-height: 0; max-height: 420px; /* keep the bento compact; extra space goes around the page */
    margin-top: clamp(16px, 3vh, 48px);
    grid-template-rows: repeat(6, minmax(0, 1fr));
  }
  .page--home .status { height: 52px; }
  .page--home .card { padding: 18px 20px; }
}
/* Shorter laptop screens: tighten the small cards so their content still fits */
@media (min-width: 1201px) and (max-height: 880px) {
  .page--home .card { padding: 18px 20px; }
  .page--home .card .btn { font-size: 16px; padding: 6px 10px 6px 14px; }
  .page--home .card .btn svg { width: 20px; height: 20px; }
  .page--home .status { height: 52px; }
}
/* Very short screens (small laptops): compact the cards further */
@media (min-width: 1201px) and (max-height: 760px) {
  .page--home .card { padding: 14px 18px; }
  .page--home .card h2 { font-size: 20px; }
  .page--home .card p { font-size: 14px; margin-top: 4px; }
  .page--home .card .btn { font-size: 14px; padding: 4px 8px 4px 12px; gap: 8px; }
  .page--home .card .btn:hover { gap: 12px; }
  .page--home .card .btn svg { width: 18px; height: 18px; }
  .page--home .status { height: 44px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .bars i, .walk-cat .leg, .walk-cat .cat-body { animation: none; }
  .player .cd, .player .content, .dock a, .dock a::before, .btn { transition: none; }
}
