/* ==========================================================
   ITSASHLIU — EDITORIAL + PLAYFUL
   CSS is grouped by section so everything is easy to find.
   ========================================================== */

/* LOCAL FONTS (optional)
   ------------------------------------------------------------
   Drop your OWN licensed font files into the /fonts folder.
   Uncomment and adjust the following example to activate them.

@font-face {
  font-family: "Biro Script PMS";
  src: url("./fonts/biro_script/Biro_Script_reduced.otf")
       format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

   Repeat for Roca One, Georgia Pro and Avenir Next Arabic using
   the real file names you place in /fonts.
   No font files are included in the delivered project.
   ------------------------------------------------------------ */

/* 01. BRAND COLOURS + TYPOGRAPHY ---------------------------- */

/* REENIE BEANIE — HANDWRITING FONT */

@font-face {
  font-family: "Reenie Beanie";
  src: url("./fonts/Reenie_Beanie/ReenieBeanie-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ========================================
   GOTHIC A1 — COMPLETE FONT FAMILY
   ======================================== */

/* THIN — 100 */
@font-face {
  font-family: "Gothic A1";
  src: url("./fonts/Gothic_A1/GothicA1-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

/* EXTRA LIGHT — 200 */
@font-face {
  font-family: "Gothic A1";
  src: url("./fonts/Gothic_A1/GothicA1-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

/* LIGHT — 300 */
@font-face {
  font-family: "Gothic A1";
  src: url("./fonts/Gothic_A1/GothicA1-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* REGULAR — 400 */
@font-face {
  font-family: "Gothic A1";
  src: url("./fonts/Gothic_A1/GothicA1-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* MEDIUM — 500 */
@font-face {
  font-family: "Gothic A1";
  src: url("./fonts/Gothic_A1/GothicA1-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* SEMIBOLD — 600 */
@font-face {
  font-family: "Gothic A1";
  src: url("./fonts/Gothic_A1/GothicA1-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* BOLD — 700 */
@font-face {
  font-family: "Gothic A1";
  src: url("./fonts/Gothic_A1/GothicA1-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* EXTRA BOLD — 800 */
@font-face {
  font-family: "Gothic A1";
  src: url("./fonts/Gothic_A1/GothicA1-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* BLACK — 900 */
@font-face {
  font-family: "Gothic A1";
  src: url("./fonts/Gothic_A1/GothicA1-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* The six colours from your Canva brand palette */
  --wine: #762637;
  --butter: #f1c65d;
  --moss: #5d7148;
  --cream: #faf5eb;
  --blush: #e9b6ac;
  --espresso: #342b28;

  /* Named fonts first, followed by free/system alternatives. */
  --font-brand: "Roca One", "Fraunces", Georgia, serif;
  --font-tagline: "Georgia Pro", Georgia, serif;
  --font-hand: "Reenie Beanie", cursive;
  --font-body: "Gothic A1", Arial, sans-serif;

  --container: 1290px;
  --radius-pill: 999px;
  --motion: 350ms cubic-bezier(0.2, 0.65, 0.25, 1);
}

/* 02. RESET + SHARED STYLES -------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}

body {
  margin: 0;
  color: var(--espresso);
  background: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--blush);
  outline-offset: 5px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(calc(100% - 100px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -100px;
  left: 12px;
  padding: 12px 18px;
  background: var(--cream);
  color: var(--wine);
}

.skip-link:focus {
  top: 12px;
}

.paper-wine {
  background-color: var(--wine);
}

.paper-green {
  background-color: var(--moss);
}

.paper-butter {
  background-color: var(--butter);
}

.paper-cream {
  background-color: var(--cream);
}

.handwriting {
  font-family: var(--font-hand);
  font-weight: 400;
  letter-spacing: -0.055em;
}

/* 03. HEADER / LOGO ---------------------------------------- */

.site-header {
  position: absolute;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  color: var(--cream);
  transition: background-color var(--motion), box-shadow var(--motion);
}

.site-header.is-scrolled {
  position: fixed;
  background: rgba(118, 38, 55, 0.96);
  box-shadow: 0 4px 25px rgba(39, 16, 19, 0.12);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  min-height: 124px;
  padding-block: 25px 19px;
}

.site-header.is-scrolled .header-inner {
  min-height: 82px;
  padding-block: 12px;
  align-items: center;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 0 0 auto;
  text-decoration: none;
  line-height: 0.95;
}

.brand-name {
  font-family: var(--font-brand);
  font-weight: 800;
  letter-spacing: -0.075em;
  color: var(--butter);
  font-size: clamp(2.5rem, 4.1vw, 4.3rem);
  line-height: 0.98;
  transition: font-size 350ms ease;
}

.brand-dot {
  color: var(--blush);
}

.brand-tagline {
  margin-top: 5px;
  padding-right: 9px;
  font-family: var(--font-tagline);
  font-size: clamp(0.75rem, 1.15vw, 1.06rem);
  font-style: italic;
  letter-spacing: -0.035em;
  color: var(--cream);
}

.site-header.is-scrolled .brand-name {
  font-size: 3rem;
}

.site-header.is-scrolled .brand-tagline {
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(20px, 3.2vw, 49px);
  padding-top: 27px;
}

.site-header.is-scrolled .site-nav {
  padding-top: 0;
}

.site-nav a {
  position: relative;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--butter);
  transition: width var(--motion);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.menu-button {
  display: none;
}

/* 04. BUTTONS ---------------------------------------------- */

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 10px 29px 11px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.89rem;
  font-weight: 700;
  letter-spacing: 0.085em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform var(--motion), box-shadow var(--motion), background-color var(--motion);
}

/* Button hover: gentle zoom */

.pill-button {
  transition: transform 300ms ease-in-out;
}

/* Button hover effect */

.pill-button {
  transition: transform 300ms ease-in-out;
}

/* Hover: slightly enlarge */
.pill-button:hover,
.pill-button:focus-visible {
  transform: scale(1.04);
  box-shadow: none;
}

/* Click: slightly shrink */
.pill-button:active {
  transform: scale(0.98);
}
/* Slightly smaller when pressed */
.pill-button:active:not(.story-button--pending) {
  transform: scale(0.98);
}

.pill-button--butter {
  color: var(--wine);
  background: var(--butter);
}

.pill-button--green {
  color: white;
  background: var(--moss);
}

.pill-button--wine {
  color: white;
  background: var(--wine);
}

/* 05. HERO ------------------------------------------------- */

.hero {
  position: relative;
  min-height: 720px;
  padding-block: 195px 150px;
  color: var(--cream);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  align-items: center;
  gap: clamp(24px, 3vw, 50px);
}

.hero-image-side {
  position: relative;
  min-width: 0;
  padding-left: 80px;
}

.memory-photo {
  border: 0;
  padding: 0;
  background: transparent;
}

.memory-photo--hero {
  display: block;
  position: relative;
  width: min(95%, 540px);
  aspect-ratio: 1.36;
  transform: rotate(-5deg);
  box-shadow: 14px 20px 30px rgba(46, 13, 19, 0.27);
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 500ms;
}

.memory-photo--hero:hover {
  transform: rotate(-2deg) translateY(-8px);
  box-shadow: 16px 27px 38px rgba(46, 13, 19, 0.32);
}

.memory-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-photo--hero img {
  object-position: 50% 48%;
}

.doodle-arrow {
  position: absolute;
  z-index: 1;
  top: -50px;
  right: -50px;
  width: 120px;
  height: 62px;
  transform: rotate(-6deg);
}

.doodle-arrow path {
  fill: none;
  stroke: var(--butter);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-copy {
  text-align: center;
}

.hero-title {
  margin: 0 0 22px;
  color: var(--cream);
  font-size: clamp(3.5rem, 5.8vw, 6.5rem);
  line-height: 1.25;
  transform: rotate(-3deg);
}

.hero-subtitle {
  margin: 0 0 31px;
  font-size: clamp(0.92rem, 1.45vw, 1.19rem);
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.08em;
}

/* 06. STORIES / BITS & PIECES ------------------------------- */

.stories {
  padding-block: 69px 93px;
  color: var(--cream);
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0 0 18px;
  font-size: clamp(2.8rem, 4.2vw, 4.8rem);
  line-height: 1.3;
}

.heading-rule {
  height: 1px;
  background: rgba(250, 245, 235, 0.32);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.55vw, 24px);
}

.story-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0;
}

.story-photo {
  display: block;
  width: 100%;
  aspect-ratio: 0.94;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
  transition: transform var(--motion);
}

.story-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 500ms;
}

/* Match the Little Things Lately gallery zoom exactly. */
.story-photo:hover img,
.story-photo:focus-visible img {
  transform: scale(1.055);
  filter: brightness(1.035);
}

.story-card:nth-child(2) .story-photo img {
  object-position: 50% 48%;
}

.story-category {
  margin: 17px 0 11px;
  color: var(--cream);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

.story-title {
  margin: 0 0 11px;
  font-size: clamp(1.15rem, 1.55vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.13;
}

.story-description {
  flex: 1;
  margin: 0 0 20px;
  font-size: clamp(0.83rem, 1vw, 0.98rem);
  line-height: 1.65;
  opacity: 0.95;
}

.story-button {
  align-self: center;
  min-width: 152px;
  min-height: 34px;
  padding: 7px 16px;
  font-size: 0.73rem;
  letter-spacing: 0.15em;
}

.story-button--pending {
  cursor: default;
  opacity: 0.9;
}

.story-feedback {
  margin-top: 25px;
  text-align: center;
}

/* 07. ABOUT ------------------------------------------------ */

.about {
  padding-block: 93px 115px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(20px, 2.5vw, 45px);
}

.about-copy {
  max-width: 670px;
}

.eyebrow {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow--wine {
  color: var(--wine);
}

.about-title {
  margin: 6px 0 17px -8px;
  color: var(--wine);
  font-size: clamp(3.25rem, 5vw, 6.2rem);
  line-height: 1.5;
  transform: rotate(-2deg);
}

.about-copy p:not(.eyebrow) {
  margin: 0 0 24px;
  font-size: clamp(0.96rem, 1.22vw, 1.16rem);
  line-height: 1.87;
}

.about-copy .pill-button {
  margin-top: 3px;
}

.about-image-side {
  position: relative;
  padding-inline: 12px;
}

.memory-photo--about {
  display: block;
  width: 100%;
  aspect-ratio: 1.35;
  margin: 0;
  transform: rotate(7deg);
  box-shadow: 14px 20px 27px rgba(78, 58, 14, 0.19);
  transition: transform 550ms ease, box-shadow 550ms ease;
}

.memory-photo--about:hover {
  transform: rotate(2.5deg) translateY(-10px);
  box-shadow: 18px 25px 30px rgba(78, 58, 14, 0.24);
}

.memory-photo--about img {
  object-position: center 49%;
}

/* 08. PHOTO DIARY ------------------------------------------ */

.diary {
  padding-block: 55px 83px;
  overflow: hidden;
}

.diary-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 35px;
}

.diary-top h2 {
  margin: 0;
  color: var(--espresso);
  font-size: clamp(2.4rem, 4.5vw, 5.1rem);
  line-height: 1.43;
}

.gallery-controls {
  display: flex;
  gap: 10px;
}

.gallery-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(52, 43, 40, 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--espresso);
  font-size: 1.3rem;
  cursor: pointer;
  transition: background-color var(--motion), transform var(--motion);
}

.gallery-controls button:hover {
  transform: translateY(-2px);
  background: var(--butter);
}

.gallery-track {
  display: flex;
  gap: 13px;
  overflow-x: auto;
  padding: 0 max(21px, calc((100% - var(--container)) / 2)) 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-photo {
  flex: 0 0 clamp(180px, 23vw, 330px);
  aspect-ratio: 1.07;
  overflow: hidden;
  scroll-snap-align: start;
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 550ms ease, filter 550ms;
}

.gallery-photo:hover img,
.gallery-photo:focus-visible img {
  transform: scale(1.055);
  filter: brightness(1.035);
}

/* 09. FOOTER ----------------------------------------------- */

.site-footer {
  padding-block: 43px 23px;
  color: var(--cream);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  padding-bottom: 25px;
}

.brand--footer .brand-name {
  font-size: clamp(2.5rem, 4vw, 4rem);
}

.footer-note {
  text-align: right;
}

.footer-note p {
  margin: 0 0 5px;
  font-size: 0.81rem;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(250, 245, 235, 0.23);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

/* 10. SUBTLE SCROLL ANIMATION ------------------------------ */

.js-ready [data-reveal] {
  opacity: 0;
  translate: 0 23px;
  transition: opacity 650ms ease, translate 650ms ease;
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
}

/* 11. TABLET ----------------------------------------------- */

@media (max-width: 1020px) {
  .container {
    width: min(calc(100% - 65px), var(--container));
  }

  .hero {
    min-height: 630px;
    padding-block: 165px 115px;
  }

  .hero-grid {
    gap: 35px;
  }

  .hero-title {
    font-size: clamp(2.55rem, 4.8vw, 4.5rem);
  }

  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 43px;
  }

  .story-photo {
    aspect-ratio: 1.18;
  }

  .story-title {
    font-size: 1.6rem;
  }

  .about-grid {
    gap: 35px;
  }
}

/* 12. MOBILE ----------------------------------------------- */

@media (max-width: 700px) {
  html {
    scroll-padding-top: 78px;
  }

  .container {
    width: calc(100% - 40px);
  }

  .header-inner {
    min-height: 90px;
    padding-block: 20px 12px;
    align-items: flex-start;
  }

  .brand-name {
    font-size: 2.45rem;
  }

  .brand-tagline {
    font-size: 0.78rem;
  }

  .menu-button {
    display: flex;
    position: relative;
    z-index: 31;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 42px;
    padding: 5px;
    margin-top: 2px;
    border: 1px solid rgba(250, 245, 235, 0.55);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 19px;
    height: 2px;
    background: var(--cream);
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 80px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 21px 18px;
    background: var(--wine);
    box-shadow: 0 16px 24px rgba(36, 14, 18, 0.19);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 15px 0;
    font-size: 0.82rem;
  }

  .site-header.is-scrolled .header-inner {
    min-height: 70px;
    padding-block: 12px;
  }

  .site-header.is-scrolled .site-nav {
    top: 70px;
  }

  .site-header.is-scrolled .brand-name {
    font-size: clamp(2.5rem, 4.1vw, 4.3rem);
  }

  .hero {
    min-height: 0;
    padding-block: 145px 88px;
  }

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

  .hero-image-side {
    padding: 0 15px 0 7px;
  }

  .memory-photo--hero {
    width: min(87%, 420px);
    margin-inline: auto;
    aspect-ratio: 1.34;
  }

  .doodle-arrow {
    top: -37px;
    right: 3%;
    width: 90px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 9vw, 4.2rem);
    margin-bottom: 15px;
  }

  .hero-subtitle {
    font-size: 0.87rem;
    margin-bottom: 24px;
  }

  .stories {
    padding-block: 49px 81px;
  }

  .section-heading h2 {
    font-size: 3.1rem;
  }

  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 15px;
  }

  .story-photo {
    aspect-ratio: 0.91;
  }

  .story-category {
    font-size: 0.57rem;
    margin-block: 12px 9px;
  }

  .story-title {
    font-size: clamp(1.1rem, 4vw, 1.35rem);
  }

  .story-description {
    font-size: 0.78rem;
    line-height: 1.58;
    margin-bottom: 15px;
  }

  .story-button {
    min-width: 115px;
    padding: 8px 10px;
    font-size: 0.65rem;
  }

  .about {
    padding-block: 65px 100px;
  }

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

  .about-title {
    font-size: clamp(3.5rem, 12vw, 5.6rem);
    margin-bottom: 5px;
  }

  .about-copy p:not(.eyebrow) {
    font-size: 0.97rem;
    line-height: 1.8;
    margin-bottom: 20px;
  }

  .about-image-side {
    width: min(100%, 480px);
    margin-inline: auto;
  }

  .diary {
    padding-block: 48px 58px;
  }

  .diary-top {
    margin-bottom: 23px;
  }

  .diary-top h2 {
    font-size: clamp(2.2rem, 7vw, 3.5rem);
  }

  .gallery-controls button {
    width: 37px;
    height: 37px;
  }

  .gallery-track {
    padding-inline: 20px;
  }

  .gallery-photo {
    flex-basis: clamp(195px, 62vw, 280px);
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-note {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* 13. VERY SMALL PHONES ------------------------------------ */

@media (max-width: 390px) {
  .story-grid {
    gap: 31px 12px;
  }

  .story-description {
    font-size: 0.75rem;
  }

  .hero-subtitle {
    letter-spacing: 0.01em;
  }
}

/* 14. ACCESSIBILITY ---------------------------------------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .js-ready [data-reveal] {
    opacity: 1;
    translate: none;
  }
}
.doodle-arrow {
  display: none;
}

/* ========================================
   ITSASHLIU SVG LOGO
   ======================================== */

/* Header Logo */
.site-header .brand-logo {
  display: block;
  width: 260px;
  height: auto;
}

/* Keep the same size when scrolling */
.site-header.is-scrolled .brand-logo {
  width: 260px;
}

/* Footer Logo */
.brand--footer .brand-logo {
  width: 220px;
  height: auto;
}

/* Mobile */
@media (max-width: 700px) {
  .site-header .brand-logo,
  .site-header.is-scrolled .brand-logo {
    width: 180px;
  }

  .brand--footer .brand-logo {
    width: 180px;
  }
}

/* =========================================
   SMOOTH MOBILE MENU ANIMATION
   ========================================= */

   @media (max-width: 700px) {

    /* 1. Smooth menu opening */
  
    .site-nav {
      display: flex;
      visibility: hidden;
      opacity: 0;
      pointer-events: none;
  
      clip-path: inset(0 0 100% 0);
      transform: translateY(-8px);
  
      transition:
        clip-path 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease,
        visibility 0s linear 0.55s;
    }
  
    .site-nav.is-open {
      visibility: visible;
      opacity: 1;
      pointer-events: auto;
  
      clip-path: inset(0 0 0 0);
      transform: translateY(0);
  
      transition:
        clip-path 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease,
        visibility 0s;
    }
  
    /* 2. Menu items only as wide as text */
  
    .site-nav a {
      width: fit-content;
      max-width: 100%;
      align-self: flex-start;
  
      opacity: 0;
      transform: translateY(10px);
  
      transition:
        opacity 0.4s ease,
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }
  
    .site-nav.is-open a {
      opacity: 1;
      transform: translateY(0);
    }
  
    /* 3. Staggered text entrance */
  
    .site-nav.is-open a:nth-child(1) {
      transition-delay: 0.08s;
    }
  
    .site-nav.is-open a:nth-child(2) {
      transition-delay: 0.14s;
    }
  
    .site-nav.is-open a:nth-child(3) {
      transition-delay: 0.20s;
    }
  
    .site-nav.is-open a:nth-child(4) {
      transition-delay: 0.26s;
    }
  
    /* 4. Underline matches text width */
  
    .site-nav a::after {
      width: 100%;
      height: 2px;
      transform: scaleX(0);
      transform-origin: left center;
  
      transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }
  
    .site-nav a:hover::after,
    .site-nav a:focus-visible::after {
      transform: scaleX(1);
    }
  
    /* 5. Smooth hamburger button */
  
    .menu-button {
      transition:
        transform 0.35s ease,
        border-color 0.35s ease;
    }
  
    .menu-button:active {
      transform: scale(0.94);
    }
  
    .menu-button span {
      border-radius: 999px;
      transform-origin: center;
  
      transition:
        transform 0.52s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.22s ease;
    }
  
    /* 6. Hamburger morphs into X */
  
    .menu-button[aria-expanded="true"] span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }
  
    .menu-button[aria-expanded="true"] span:nth-child(2) {
      opacity: 0;
      transform: scaleX(0);
    }
  
    .menu-button[aria-expanded="true"] span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }
  }
  
  /* Accessibility: reduced motion */
  
  @media (max-width: 700px) and (prefers-reduced-motion: reduce) {
    .site-nav,
    .site-nav a,
    .site-nav a::after,
    .menu-button,
    .menu-button span {
      transition-duration: 0.01ms !important;
      transition-delay: 0ms !important;
    }
  }

  @media (max-width: 700px) {
    .site-nav a::after {
      bottom: 10px;
    }
  }

  /* SECTION TEXTURE OVERLAYS */

.texture-section {
  position: relative;
  isolation: isolate;
}

.texture-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--texture-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: var(--texture-opacity, 0.08);
  filter: grayscale(1);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 2;
}

/* SECTION 1 */
.texture-one {
  --texture-image: url("./assets/Paper_texture_one.png");
  --texture-opacity: 1;
}

/* SECTION 2 */
.texture-two {
  --texture-image: url("./assets/Paper_texture_two.png");
  --texture-opacity: 1;
}

/* SECTION 3 */
.texture-three {
  --texture-image: url("./assets/Paper_texture_three.png");
  --texture-opacity: 1;
}

/* SECTION 4 */
.texture-four {
  --texture-image: url("./assets/Paper_texture_four.png");
  --texture-opacity: 1;
}