/* Shape system: interactive elements are full pills, artwork frames are 28px,
   the hero portrait is an arch (pill top, 28px bottom).
   Layer scale: .sky 0, main content 1, nav 10, grain overlay 20. */

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --accent: #ffd23f;
  --accent-soft: #ffe58a;
  --on-accent: #2a1640;

  --font-display: "Outfit", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  --radius-art: 28px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1240px;
  --nav-h: 68px;
}

html[data-theme="night"] {
  color-scheme: dark;
  --bg-top: #1a0f2e;
  --bg-bottom: #2c1848;
  --ink: #f7f0ff;
  --ink-soft: #cdbde4;
  --surface: rgb(255 255 255 / 0.07);
  --surface-strong: rgb(40 22 66 / 0.72);
  --line: rgb(255 255 255 / 0.14);
  --shadow: 30 10 60;
  --aurora-opacity: 0.5;
  --title-glow: var(--accent);
}

html[data-theme="day"] {
  color-scheme: light;
  --bg-top: #f1e7fa;
  --bg-bottom: #dcc6f0;
  --ink: #2b1745;
  --ink-soft: #594374;
  --surface: rgb(255 255 255 / 0.45);
  --surface-strong: rgb(250 244 255 / 0.8);
  --line: rgb(60 30 100 / 0.14);
  --shadow: 92 52 140;
  --aurora-opacity: 0.62;
  --title-glow: var(--ink);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%) fixed;
  transition: color 0.6s var(--ease-out);
  overflow-x: hidden;
}

/* Crayon-like grain echoing the texture of the illustrations. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
p,
figure,
ul {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 999px;
}

/* ---------- Sky: aurora + fireflies ---------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  opacity: var(--aurora-opacity);
  transition: opacity 0.8s var(--ease-out);
  will-change: transform;
}

.aurora--a {
  top: -30vmax;
  left: -20vmax;
  background: radial-gradient(circle, rgb(190 120 235 / 0.9) 0%, transparent 62%);
  animation: drift-a 34s ease-in-out infinite alternate;
}
.aurora--b {
  top: 10vh;
  right: -30vmax;
  background: radial-gradient(circle, rgb(255 150 200 / 0.7) 0%, transparent 60%);
  animation: drift-b 42s ease-in-out infinite alternate;
}
.aurora--c {
  bottom: -35vmax;
  left: 10vw;
  background: radial-gradient(circle, rgb(150 175 250 / 0.7) 0%, transparent 60%);
  animation: drift-c 38s ease-in-out infinite alternate;
}
.aurora--d {
  top: 35vh;
  left: 30vw;
  width: 40vmax;
  height: 40vmax;
  background: radial-gradient(circle, rgb(255 215 100 / 0.45) 0%, transparent 62%);
  animation: drift-d 30s ease-in-out infinite alternate;
}

@keyframes drift-a {
  to {
    transform: translate3d(18vw, 14vh, 0) scale(1.15);
  }
}
@keyframes drift-b {
  to {
    transform: translate3d(-22vw, 20vh, 0) scale(0.9);
  }
}
@keyframes drift-c {
  to {
    transform: translate3d(14vw, -18vh, 0) scale(1.2);
  }
}
@keyframes drift-d {
  to {
    transform: translate3d(-20vw, -12vh, 0) scale(1.3);
  }
}

.fireflies {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0.75rem;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 1rem;
}

.nav__inner {
  max-width: var(--container);
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 0.75rem 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.12),
    0 12px 40px rgb(var(--shadow) / 0.25);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav__links {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.nav__links a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.975rem;
  text-decoration: none;
  color: var(--ink-soft);
  transition:
    color 0.25s,
    background-color 0.25s;
}

.nav__links a:hover {
  color: var(--ink);
  background: var(--surface);
}

.nav__tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang {
  display: flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.lang__btn {
  min-width: 2.75rem;
  padding: 0.4rem 0.6rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: 700 0.85rem/1 var(--font-body);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out);
}

.lang__btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
}

.theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform 0.2s var(--ease-out);
}

.theme-toggle:active {
  transform: scale(0.94);
}

.theme-toggle i {
  grid-area: 1 / 1;
  transition:
    transform 0.6s var(--ease-out),
    opacity 0.4s;
}

html[data-theme="night"] .theme-toggle__moon,
html[data-theme="day"] .theme-toggle__sun {
  opacity: 0;
  transform: translateY(140%) rotate(40deg);
}

/* ---------- Shared type + buttons ---------- */

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-body {
  margin-top: 1rem;
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: 1.125rem;
  text-wrap: pretty;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font: 700 1.02rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    background-color 0.3s;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.6),
    0 10px 30px rgb(255 190 40 / 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.6),
    0 16px 44px rgb(255 190 40 / 0.5);
}

.btn--primary i {
  font-size: 1.15rem;
  transition: transform 0.5s var(--ease-out);
}

.btn--primary:hover i {
  transform: rotate(90deg) scale(1.15);
}

.btn--ghost {
  color: var(--ink);
  border: 1.5px solid var(--line);
  background: var(--surface);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--ink-soft);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.pill i {
  font-size: 1rem;
}

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

.hero {
  min-height: 100dvh;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3rem) 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.7rem, 5.6vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__title > span {
  display: inline-block;
  animation: rise 1.1s var(--ease-out) both;
}
.hero__title > span:nth-child(2) {
  animation-delay: 0.12s;
}
.hero__title > span:nth-child(3) {
  animation-delay: 0.24s;
}

.glow-word {
  position: relative;
  color: var(--title-glow);
  isolation: isolate;
}

.glow-word::before {
  content: "";
  position: absolute;
  inset: -35% -25%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 214 80 / 0.55), transparent);
  animation: breathe 5s ease-in-out infinite;
}

.hero__sub {
  margin-top: 1.5rem;
  max-width: 40ch;
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  color: var(--ink-soft);
  animation: rise 1.1s 0.36s var(--ease-out) both;
}

.hero__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 1.1s 0.48s var(--ease-out) both;
}

.hero__art {
  position: relative;
  justify-self: center;
  --rx: 0deg;
  --ry: 0deg;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.6s var(--ease-out);
  animation: float-in 1.6s 0.2s var(--ease-out) both;
}

.hero__halo {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 210 90 / 0.55), rgb(255 150 210 / 0.25) 55%, transparent);
  animation: breathe 6s ease-in-out infinite;
}

.hero__frame {
  position: relative;
  display: block;
  height: min(68dvh, 620px);
  aspect-ratio: 2 / 3;
  border-radius: 999px 999px var(--radius-art) var(--radius-art);
  overflow: hidden;
  border: 6px solid rgb(255 255 255 / 0.35);
  box-shadow: 0 40px 80px -20px rgb(var(--shadow) / 0.55);
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: sleepy-breath 7s ease-in-out infinite;
  transform-origin: 50% 85%;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    translate: 0 40px;
    scale: 0.94;
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

/* Humulus is asleep in the artwork, so the portrait slowly breathes. */
@keyframes sleepy-breath {
  0%,
  100% {
    transform: scale(1.02);
  }
  50% {
    transform: scale(1.055);
  }
}

/* ---------- Book ---------- */

.book {
  padding: 8rem 1.5rem 6rem;
  max-width: var(--container);
  margin: 0 auto;
}

.book__head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book__head .section-body {
  margin-inline: auto;
}

.book__stage {
  margin-top: 3.5rem;
  perspective: 1800px;
}

.book__spread {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: var(--radius-art);
  overflow: hidden;
  box-shadow:
    0 50px 100px -30px rgb(var(--shadow) / 0.6),
    0 0 0 1px var(--line);
  transform-origin: 50% 100%;
  background: #f4ecfa;
}

.book__spread img {
  mix-blend-mode: multiply;
}

/* Soft centre fold so the spread reads as an open book. */
.book__spread::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 44%,
    rgb(60 30 90 / 0.08) 48.5%,
    rgb(60 30 90 / 0.22) 50%,
    rgb(255 255 255 / 0.1) 51%,
    transparent 56%
  );
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .book__spread {
      animation: open-book linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 42%;
    }
  }
}

@keyframes open-book {
  from {
    transform: rotateX(32deg) scale(0.88);
    opacity: 0.3;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.snore {
  margin-top: 2.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.snore span {
  display: inline-block;
  animation: snore 4.8s ease-in-out infinite;
}
.snore span:nth-child(2) {
  animation-delay: 0.5s;
}
.snore span:nth-child(3) {
  animation-delay: 1s;
}
.snore span:nth-child(4) {
  animation-delay: 1.5s;
}

@keyframes snore {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0) scale(0.96);
  }
  40% {
    opacity: 1;
    transform: translateY(-4px) scale(1.04);
  }
}

/* ---------- Glimpses (collage) ---------- */

.glimpses {
  padding: 6rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}

.glimpses__head {
  max-width: 560px;
}

.collage {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  align-items: start;
  gap: 2rem;
}

.collage__item {
  --rot: 0deg;
  --shift: 0;
}
.collage__item--a {
  --rot: -2deg;
  --shift: 3rem;
}
.collage__item--b {
  --rot: 2.5deg;
  --shift: 0rem;
}
.collage__item--c {
  --rot: -1.5deg;
  --shift: 5rem;
}

.collage__item picture {
  display: block;
  border-radius: var(--radius-art);
  overflow: hidden;
  border: 6px solid rgb(255 255 255 / 0.4);
  box-shadow: 0 30px 60px -24px rgb(var(--shadow) / 0.6);
  transition:
    transform 0.6s var(--ease-out),
    box-shadow 0.6s var(--ease-out);
}

.collage__item:hover picture {
  transform: rotate(calc(var(--rot) * -1)) scale(1.03);
  box-shadow: 0 40px 80px -24px rgb(255 190 60 / 0.45);
}

.collage__item img {
  width: 100%;
}

/* ---------- Figures (bento) ---------- */

.figures {
  padding: 6rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}

.bento {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  grid-template-rows: repeat(2, minmax(260px, 340px));
  grid-template-areas:
    "text hero a"
    "b hero c";
  gap: 1.25rem;
}

.bento__text {
  grid-area: text;
  align-self: center;
  padding: 1rem 0.5rem;
}

.bento__cell {
  position: relative;
  border-radius: var(--radius-art);
  overflow: hidden;
  box-shadow: 0 24px 50px -24px rgb(var(--shadow) / 0.55);
}

.bento__cell--hero {
  grid-area: hero;
}
.bento__cell:nth-of-type(2) {
  grid-area: a;
}
.bento__cell:nth-of-type(3) {
  grid-area: b;
}
.bento__cell:nth-of-type(4) {
  grid-area: c;
}

.bento__cell picture,
.bento__cell img {
  width: 100%;
  height: 100%;
}

.bento__cell img {
  object-fit: cover;
  object-position: 50% 45%;
  transition: transform 1.2s var(--ease-out);
}

.bento__cell:hover img {
  transform: scale(1.06) rotate(-1deg);
}

/* ---------- Hello ---------- */

.hello {
  position: relative;
  padding: 7rem 1.5rem 10rem;
  overflow: hidden;
  text-align: center;
}

.hello__sun {
  position: absolute;
  left: 50%;
  bottom: -28rem;
  width: 52rem;
  height: 52rem;
  margin-left: -26rem;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgb(255 222 110 / 0.95),
    rgb(255 200 80 / 0.55) 40%,
    rgb(255 150 200 / 0.2) 70%,
    transparent
  );
  /* The section clips at ~46% of the orb's height; fade out before that edge. */
  -webkit-mask-image: linear-gradient(180deg, #000 18%, transparent 44%);
  mask-image: linear-gradient(180deg, #000 18%, transparent 44%);
  animation: breathe 8s ease-in-out infinite;
}

.hello__inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hello__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hello__body {
  margin-inline: auto;
}

.socials {
  list-style: none;
  padding: 0;
  margin-top: 2.75rem;
  width: 100%;
  display: grid;
  gap: 0.75rem;
}

.social {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.5rem 0.7rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -20px rgb(var(--shadow) / 0.6);
  transition:
    transform 0.45s var(--ease-out),
    background-color 0.35s,
    color 0.35s,
    border-color 0.35s;
}

.social__icon {
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.5rem;
  transition: transform 0.5s var(--ease-out);
}

.social__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  text-align: left;
}

.social__handle {
  justify-self: end;
  color: var(--ink-soft);
  font-weight: 600;
  transition: color 0.35s;
}

.social__arrow {
  font-size: 1.25rem;
  transition: transform 0.45s var(--ease-out);
}

.social:hover {
  transform: translateY(-3px);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.social:hover .social__handle {
  color: var(--on-accent);
}

.social:hover .social__icon {
  background: var(--on-accent);
  color: var(--accent);
  transform: rotate(-10deg) scale(1.05);
}

.social:hover .social__arrow {
  transform: translate(3px, -3px);
}

.social:active {
  transform: translateY(0) scale(0.98);
}

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

.footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Scroll reveal ---------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px) rotate(0deg);
  transition:
    opacity 1s var(--ease-out),
    transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms);
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

html.js .collage__item[data-reveal].is-in {
  transform: translateY(var(--shift)) rotate(var(--rot));
}

.collage__item {
  transform: translateY(var(--shift)) rotate(var(--rot));
}

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

@media (max-width: 1023px) {
  .nav__links {
    display: none;
  }
  .nav__tools {
    margin-left: auto;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(var(--nav-h) + 2.5rem);
    gap: 2.5rem;
  }
  .hero__sub {
    margin-inline: auto;
  }
  .hero__actions {
    justify-content: center;
  }
  .hero__art {
    order: -1;
  }
  .hero__frame {
    height: min(46dvh, 420px);
  }

  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "text text"
      "hero hero"
      "a b"
      "c c";
  }
  .bento__cell--hero {
    aspect-ratio: 1;
  }
  .bento__cell:nth-of-type(2),
  .bento__cell:nth-of-type(3) {
    aspect-ratio: 3 / 4;
  }
  .bento__cell:nth-of-type(4) {
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 1rem;
  }
  .nav {
    top: 0.5rem;
    padding: 0 0.5rem;
  }
  .nav__inner {
    padding: 0 0.5rem 0 1.1rem;
    height: 60px;
  }

  .hero {
    padding: calc(var(--nav-h) + 1.5rem) 1rem 2.5rem;
    gap: 1.75rem;
  }
  .hero__frame {
    height: min(38dvh, 340px);
  }
  .hero__sub {
    margin-top: 1rem;
  }
  .hero__actions {
    margin-top: 1.5rem;
    gap: 0.5rem;
  }
  .btn {
    padding: 0.85rem 1.2rem;
    font-size: 0.95rem;
  }

  .book,
  .glimpses,
  .figures {
    padding: 4.5rem 1rem;
  }
  .book {
    padding-top: 5rem;
  }
  .book__stage {
    margin-top: 2.5rem;
  }

  .collage {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 74%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    margin-inline: -1rem;
    padding: 1rem 1rem 2.5rem;
    scrollbar-width: none;
  }
  .collage::-webkit-scrollbar {
    display: none;
  }
  .collage__item {
    scroll-snap-align: center;
    --shift: 0rem !important;
  }

  .hello {
    padding: 5rem 1rem 8rem;
  }
  .social {
    grid-template-columns: auto 1fr auto;
    padding-right: 1.1rem;
  }
  .social__handle {
    display: none;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  html.js .collage__item[data-reveal] {
    transform: translateY(var(--shift)) rotate(var(--rot));
  }
}

@media (prefers-reduced-transparency: reduce) {
  .nav__inner,
  .social {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg-top);
  }
}
