/* =================================================================
   Maryam AlKuwari — portfolio styles
   Colours below were sampled from the original Canva portfolio.
   ================================================================= */

/* ---------- Fonts (self-hosted, so the look never depends on another server) ---------- */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Surfaces */
  --cream: #FFF5EB;
  --ivory: #FFFDFA;
  --pink: #F9CDD8;
  --blush: #FFF0F4;
  --beige: #DDCAC0;
  --olive: #DAD499;
  --mint: #E3F6F5;

  /* Display inks (headings — unchanged from the PDF) */
  --ink-olive: #C3BC7E;
  --ink-pink: #F6A3C6;
  --ink-beige: #D6C3B1;
  --ink-brown: #A08A70;

  /* Reading inks (deepened one step for accessibility) */
  --text: #6E6840;
  --text-soft: #736B43;
  --rose: #A94E7F;

  /* Type */
  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.2, 1);

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: #E7B9C8 var(--cream); caret-color: var(--rose); }
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: var(--cream); }
html::-webkit-scrollbar-thumb { background: #E7B9C8; border-radius: 10px; border: 2px solid var(--cream); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(15px, 0.9rem + 0.2vw, 17px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
[id] { scroll-margin-top: calc(var(--nav-h, 76px) + 8px); }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--pink); color: #5c3a4a; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--ivory); padding: 10px 16px; border-radius: 999px;
  text-decoration: none; transition: top .3s var(--ease-out);
}
.skip:focus { top: 16px; }
.noscript { padding: 40px; text-align: center; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "SOFT" 30, "opsz" 144, "WONK" 0;
  letter-spacing: -0.015em;
  line-height: 0.98;
  margin: 0;
}
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Themes: background + heading ink per section */
.t-cream { --bg: var(--cream); --ink: var(--ink-beige); }
.t-pink  { --bg: var(--pink);  --ink: var(--cream); }
.t-blush { --bg: var(--blush); --ink: var(--ink-olive); }
.t-beige { --bg: var(--beige); --ink: var(--ivory); }
.t-olive { --bg: var(--olive); --ink: var(--cream); --text: #5E5A2E; --text-soft: #6A6535; }
.t-mint  { --bg: var(--mint);  --ink: var(--ink-brown); }
[class*="t-"] { background-color: var(--bg); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background-color .5s var(--ease-soft), box-shadow .5s var(--ease-soft), transform .5s var(--ease-out);
}
.nav.is-scrolled { background: rgb(255 245 235 / 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgb(160 138 112 / 0.12); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__mark {
  font-family: var(--serif); font-variation-settings: "SOFT" 30, "opsz" 144, "WONK" 0;
  font-size: 1.5rem; text-decoration: none; color: var(--ink-olive); line-height: 1;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav__petal { display: block; width: 22px; height: 22px; will-change: transform; transition: scale .6s var(--ease-out); }
.nav__petal svg { display: block; width: 100%; height: 100%; }
.nav__mark:hover .nav__petal { scale: 1.2; }
.nav__links { display: flex; gap: clamp(16px, 3vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 500; color: var(--text-soft); position: relative; padding: 6px 0;
}
.link-line { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); }
.link-line:hover, .link-line:focus-visible { background-size: 100% 1px; }
.nav__links a.is-active { color: var(--rose); background-size: 100% 1px; }
.footer a svg { vertical-align: -3px; margin-left: 4px; }

/* ---------- Waves ---------- */
.wave { display: block; width: 100%; height: clamp(60px, 9vw, 150px); position: relative; z-index: 2; margin-top: -1px; pointer-events: none; }
.wave--top { margin-bottom: -1px; }
.wave svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--cream); padding-top: calc(var(--nav-h, 76px) + clamp(20px, 7vh, 74px)); overflow: clip; }
.hero__title {
  position: relative; z-index: 3; text-align: center; color: var(--ink-olive);
  font-size: clamp(3.1rem, 10.5vw, 8.6rem);
}
.hero__title .ch { display: inline-block; opacity: 0; transform: translateY(0.45em) rotate(4deg); filter: blur(6px);
  animation: chIn 1.4s var(--ease-out) forwards; animation-delay: calc(var(--i) * 45ms + 200ms); }
.hero__title .sp { display: inline-block; width: 0.26em; }
@keyframes chIn { to { opacity: 1; transform: none; filter: none; } }
.hero__tag {
  position: relative; z-index: 3; text-align: center; margin: clamp(14px, 2.2vw, 26px) 0 0;
  color: var(--text-soft); font-size: clamp(0.68rem, 0.55rem + 0.5vw, 0.86rem); letter-spacing: 0.32em; text-transform: uppercase; font-weight: 500;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 .6em; padding: 0 var(--gutter);
}
.hero__tag-w { display: inline-block; opacity: 0; transform: translateY(.6em); filter: blur(4px);
  animation: wordIn 1.1s var(--ease-out) forwards; animation-delay: calc(1.05s + var(--k) * 90ms); }
.hero__tag-petal { display: inline-grid; width: .95em; height: .95em; margin: 0 .25em; opacity: 0; transform: rotate(-120deg) scale(.4);
  animation: petalIn 1.3s var(--ease-out) 1.5s forwards; }
.hero__tag-petal svg { display: block; width: 100%; height: 100%; }
@keyframes wordIn { to { opacity: 1; transform: none; filter: none; } }
@keyframes petalIn { to { opacity: 1; transform: none; } }
.hero__floral {
  position: relative; height: clamp(360px, 62vw, 760px); margin-top: clamp(-90px, -6vw, -40px);
  /* fades in under the name and dissolves into the cream before the wave, so nothing is cut */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 58%, rgb(0 0 0 / .35) 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 58%, rgb(0 0 0 / .35) 82%, transparent 100%);
}
.hero__floral img {
  position: absolute; inset: -6% -4%; width: 108%; height: 112%; max-width: none; object-fit: cover; object-position: center 40%;
  animation: floralIn 2.4s var(--ease-out) .2s both, floralDrift 22s var(--ease-soft) 2.6s infinite alternate;
  will-change: transform;
}
@keyframes floralIn { from { opacity: 0; transform: scale(1.08) translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes floralDrift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-1.5%, -2%, 0) scale(1.035); } }
.hero__floral-parallax { position: absolute; inset: 0; will-change: transform; }
.hero .wave { position: absolute; bottom: -1px; left: 0; }

.petal { position: absolute; z-index: 2; width: var(--s, 22px); aspect-ratio: 1; pointer-events: none;
  animation: petalFloat var(--d, 9s) var(--ease-soft) var(--delay, 0s) infinite alternate; opacity: .9; }
.petal svg { display: block; transition: transform 1.2s var(--ease-out);
  transform: translate(calc(var(--px, 0) * var(--depth, 14px)), calc(var(--py, 0) * var(--depth, 14px))); }
@keyframes petalFloat {
  0% { transform: translate3d(0,0,0) rotate(0deg); }
  100% { transform: translate3d(var(--dx, 14px), var(--dy, -22px), 0) rotate(var(--r, 40deg)); }
}

/* ---------- About ---------- */
.about { background: var(--cream); padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 110px); }
.about__grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.about__title { color: var(--ink-pink); font-size: clamp(3rem, 8vw, 6.4rem); margin-bottom: clamp(18px, 2.5vw, 30px); }
.about__cols { display: grid; gap: 1.1em 2.4em; }
.about__cols p { margin: 0; max-width: 46ch; }
.about__portrait {
  width: clamp(180px, 26vw, 250px); aspect-ratio: 1; border-radius: 50%; background: #AD9580;
  overflow: hidden; justify-self: center; position: relative;
  box-shadow: 0 30px 60px -30px rgb(160 120 100 / .45);
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.about__portrait:hover img { transform: scale(1.05); }
.about__portrait::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--ink-pink); opacity: .6;
  animation: spinSlow 30s linear infinite; border-style: dashed; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@media (min-width: 760px) {
  .about__grid { grid-template-columns: 1fr auto; }
  .about__cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- Projects ---------- */
.band { position: relative; text-align: center; padding: clamp(20px, 4vw, 40px) 0 clamp(30px, 5vw, 60px); }
.band__title { color: var(--cream); font-size: clamp(3rem, 9vw, 7rem); }
.band__arrow { display: inline-block; margin-top: 18px; color: var(--cream); animation: bob 2.6s var(--ease-soft) infinite; }
@keyframes bob { 50% { transform: translateY(10px); } }

.projects { background: var(--ivory); padding: clamp(40px, 6vw, 90px) 0 clamp(70px, 9vw, 130px); }
.cards { display: grid; gap: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 56px); grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:nth-child(even) { margin-top: clamp(60px, 9vw, 140px); }
}
.card { display: block; text-decoration: none; color: inherit; position: relative; }
.card__frame {
  position: relative; aspect-ratio: 5 / 4; border-radius: clamp(22px, 3vw, 36px); overflow: hidden;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: border-radius .8s var(--ease-out), transform .7s var(--ease-out);
}
.card__frame.t-cream { background: #F7ECE1; }
.card__frame::before { /* soft light that follows the pointer */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at var(--mx, 50%) var(--my, 55%), rgb(255 255 255 / .6), transparent 70%);
  opacity: .8; transition: opacity .6s;
}
.card__go, .gbtn { transition: translate .5s var(--ease-out), background .5s, color .5s, transform .6s var(--ease-out), opacity .4s; }
.card__frame img { position: absolute; inset: 9%; width: 82%; height: 82%; max-width: none; object-fit: contain;
  filter: drop-shadow(0 22px 26px rgb(110 90 70 / .18));
  transition: transform 1s var(--ease-out); }
.card:hover .card__frame img, .card:focus-visible .card__frame img { transform: translateY(-8px) scale(1.04) rotate(-0.6deg); }
.card:hover .card__frame { border-radius: clamp(40px, 6vw, 80px) clamp(22px, 3vw, 36px); }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 4px 0; }
.card__title { font-size: clamp(1.7rem, 3vw, 2.5rem); color: var(--ink-brown); line-height: 1.05; }
.card__cat { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-soft); margin-top: 8px; }
.card__sum { margin: 8px 4px 0; color: var(--text); max-width: 44ch; }
.card__go { display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgb(160 138 112 / .35); color: var(--ink-brown); transition: background .5s, color .5s, transform .6s var(--ease-out); }
.card:hover .card__go { background: var(--ink-pink); border-color: transparent; color: var(--ivory); transform: rotate(-45deg); }

/* ---------- Galleries ---------- */
.gallery { position: relative; padding: clamp(30px, 5vw, 60px) 0 clamp(50px, 7vw, 90px); }
.gallery__head { display: grid; gap: 18px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
@media (min-width: 860px) { .gallery__head { grid-template-columns: 1.3fr 1fr; } }
.gallery__title { color: var(--ink); font-size: clamp(2.8rem, 7.5vw, 6rem); }
.gallery__intro { margin: 0; max-width: 42ch; }
.gallery__controls { display: flex; gap: 10px; margin-top: 18px; }
.gbtn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid currentColor; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--text); transition: background .4s, color .4s, opacity .4s; }
.gbtn:hover { background: var(--text); color: var(--bg); }
.gbtn:disabled { opacity: .3; pointer-events: none; }
.strip {
  display: flex; gap: clamp(14px, 2vw, 26px); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 10px var(--gutter) 26px; scrollbar-width: none; cursor: grab;
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip.is-dragging * { pointer-events: none; }
.strip__item { flex: none; scroll-snap-align: start; margin: 0; border: 0; padding: 0; background: none; cursor: zoom-in; text-align: left; }
.strip__img { height: clamp(300px, 52vh, 520px); width: auto; border-radius: 18px; transition: transform .9s var(--ease-out), box-shadow .9s var(--ease-out); }
.gallery[data-kind="poster"] .strip__img { box-shadow: 0 18px 40px -22px rgb(80 70 30 / .5); }
.gallery[data-kind="figure"] .strip__item { background: rgb(255 255 255 / .55); border-radius: 22px; padding: clamp(14px, 2vw, 26px) clamp(10px, 2vw, 24px); }
.strip__drift { display: block; will-change: transform; }
.strip__item:hover .strip__img { transform: translateY(-6px) rotate(-.8deg); }
.strip__item:nth-child(even):hover .strip__img { transform: translateY(-6px) rotate(.8deg); }
.strip__cap { display: block; font-size: 0.72rem; letter-spacing: .16em; text-transform: uppercase; margin-top: 12px; color: var(--text-soft); }
.strip-progress { height: 2px; margin: 0 var(--gutter); background: rgb(0 0 0 / .08); border-radius: 2px; overflow: hidden; }
.strip-progress span { display: block; height: 100%; width: 100%; background: var(--text-soft); transform-origin: left; transform: scaleX(0); }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: transparent; color: var(--text); }
.lightbox::backdrop { background: rgb(255 245 235 / .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; animation: fadeIn .45s var(--ease-out); }
.lightbox__fig { margin: 0; display: grid; place-items: center; width: 100%; height: 100%; padding: 70px 70px 10px; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto; object-fit: contain; border-radius: 14px; animation: lbIn .6s var(--ease-out); }
.lightbox__bar { display: flex; gap: 14px; align-items: center; padding: 16px 20px 26px; }
.lightbox__cap { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; min-width: 10ch; text-align: center; }
.lightbox__close { position: absolute; top: 18px; right: 18px; }
@keyframes lbIn { from { opacity: 0; transform: scale(.96) translateY(10px); } }
@keyframes fadeIn { from { opacity: 0; } }
@media (max-width: 600px) { .lightbox__fig { padding: 70px 14px 10px; } }

/* ---------- Contact ---------- */
.contact { position: relative; background: var(--cream); overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(70px, 9vw, 120px); }
.contact__sketch { position: absolute; left: -2%; bottom: 0; width: min(62%, 720px); opacity: .9; pointer-events: none;
  clip-path: inset(0 100% 0 0); transition: clip-path 2.8s var(--ease-soft); }
.contact.is-in .contact__sketch { clip-path: inset(0 0 0 0); }
.contact__grid { position: relative; display: grid; gap: 40px; }
@media (min-width: 860px) { .contact__grid { grid-template-columns: 1.2fr 1fr; align-items: end; min-height: 420px; } }
.contact__title { color: var(--ink-pink); font-size: clamp(3.2rem, 9vw, 7rem); }
.contact__intro { max-width: 40ch; margin: 20px 0 0; font-size: 1.05em; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.contact__list dt, .contact__label { font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 600; color: var(--ink-brown); }
.contact__list a { font-size: clamp(1.05rem, 1.6vw, 1.3rem); text-decoration: none; color: var(--text); display: inline-block; padding: 8px 0; margin: -8px 0; }

.footer { background: var(--cream); padding: clamp(36px, 5vw, 60px) var(--gutter) clamp(34px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 24px 40px;
  justify-content: space-between; align-items: end; color: var(--text-soft); border-top: 1px solid rgb(160 138 112 / .14); }
.footer__sign { display: flex; gap: 16px; align-items: flex-start; }
.footer__petal { width: 26px; height: 26px; flex: none; margin-top: .35em; transform: rotate(-90deg) scale(.6); opacity: 0; transition: transform 1.4s var(--ease-out), opacity 1s; }
.footer__petal svg { display: block; width: 100%; height: 100%; }
.footer.is-in .footer__petal { transform: none; opacity: 1; }
.footer__line { margin: 0; color: var(--ink-brown); font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.1; }
.footer__line .squig { width: 70px; margin-top: .12em; color: var(--ink-pink); }
.footer__small { margin: 10px 0 0; font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 600; }
.footer__links { display: flex; gap: 28px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.footer a { text-decoration: none; display: inline-block; padding: 10px 0; margin: -10px 0; }

/* ---------- Project page ---------- */
.p-hero { position: relative; overflow: hidden; padding: calc(var(--nav-h, 76px) + clamp(44px, 10vh, 114px)) 0 clamp(30px, 5vw, 70px); }
.p-hero__texture { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .55; mix-blend-mode: multiply; }
.t-cream .p-hero__texture { opacity: .7; mix-blend-mode: normal; }
.p-hero__inner { position: relative; display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) { .p-hero__inner { grid-template-columns: 1.25fr 1fr; } }
.p-hero__title { color: var(--ink); font-size: clamp(3rem, 8.5vw, 7.6rem); }
.p-hero__art { justify-self: center; max-height: 60vh; width: auto; filter: drop-shadow(0 26px 30px rgb(110 90 70 / .2));
  animation: floatY 7s var(--ease-soft) 1.2s infinite alternate; }
@keyframes floatY { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-12px) rotate(-.6deg); } }
.back { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 16px; padding: 10px 0; }
.back svg { transition: transform .5s var(--ease-out); }
.back:hover svg { transform: translateX(-5px); }

.p-body { background: var(--ivory); padding: clamp(40px, 6vw, 90px) 0; }
.p-intro { display: grid; gap: 24px 64px; margin-bottom: clamp(50px, 7vw, 100px); }
@media (min-width: 860px) { .p-intro { grid-template-columns: 1fr 1.4fr; } }
.p-meta { margin: 0; align-self: start; padding-top: 6px; border-top: 1px solid rgb(160 138 112 / .25); }
.p-meta dt { font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 600; color: var(--ink-brown); margin-top: 16px; }
.p-meta dd { margin: 6px 0 0; font-family: var(--serif); font-variation-settings: "SOFT" 30, "opsz" 72; font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.25; color: var(--ink-brown); }
.p-intro__text p { margin: 0 0 1.1em; max-width: 60ch; }
.p-grid { display: grid; gap: clamp(18px, 3vw, 40px); grid-template-columns: 1fr; }
@media (min-width: 700px) { .p-grid { grid-template-columns: repeat(2, 1fr); } .p-grid .is-wide { grid-column: 1 / -1; } }
.p-fig { margin: 0; background: var(--cream); border-radius: clamp(18px, 2.5vw, 30px); padding: clamp(18px, 4vw, 56px); display: grid; place-items: center; }
.p-fig button { border: 0; background: none; padding: 0; cursor: zoom-in; }
.p-fig img { max-height: 78vh; width: auto; }
.p-fig figcaption { margin-top: 14px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-soft); }

.next { position: relative; display: block; text-decoration: none; padding: clamp(40px, 6vw, 80px) 0 clamp(70px, 9vw, 120px); text-align: center; }
.next__title { display: block; color: var(--ink); font-size: clamp(2.6rem, 8vw, 6.6rem); transition: letter-spacing .9s var(--ease-out); }
.next:hover .next__title { letter-spacing: 0.01em; }
.next__go { display: inline-flex; gap: 10px; align-items: center; margin-top: 18px; font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: var(--text); }
.next__go svg { transition: transform .6s var(--ease-out); }
.next:hover .next__go svg { transform: translateX(6px); }

.p-decor { position: absolute; right: -4%; top: 12%; width: min(46vw, 560px); opacity: .55; pointer-events: none; }

/* Engraved pattern: the same tile three times — a light rim, a shadow rim, and a paper-coloured fill on top,
   so only the pressed edges remain visible, like letters stitched or debossed into the page */
.p-pattern { position: absolute; inset: -60px 0 0; pointer-events: none;
  --tile: clamp(240px, 28vw, 400px);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 35%, #000 25%, transparent 95%);
          mask-image: radial-gradient(120% 100% at 50% 35%, #000 25%, transparent 95%); }
.p-pattern i { position: absolute; inset: 0; background-image: var(--pat); background-size: var(--tile) auto; background-repeat: repeat; background-position: 50% 0; }
.p-pattern .p-pattern__light { filter: brightness(0) invert(1); opacity: .9; transform: translate(1.5px, 1.5px); }
.p-pattern .p-pattern__dark { filter: brightness(0); opacity: .085; transform: translate(-1.5px, -1.5px); }
.p-pattern .p-pattern__paper { background-image: none; background-color: var(--bg);
  -webkit-mask-image: var(--pat); -webkit-mask-size: var(--tile) auto; -webkit-mask-repeat: repeat; -webkit-mask-position: 50% 0;
          mask-image: var(--pat); mask-size: var(--tile) auto; mask-repeat: repeat; mask-position: 50% 0; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--rd, 0ms); }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(18% 8% 0 8% round 40px); transition: clip-path 1.3s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round 0px); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Page transitions (Chrome, Edge, Safari 18+) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; animation-timing-function: var(--ease-out); }
::view-transition-group(*) { animation-duration: .75s; animation-timing-function: var(--ease-out); }

/* ---------- Custom cursor (mouse only) ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.cursor-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--rose); }
.cursor { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid var(--rose);
  display: grid; place-items: center; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--ivory);
  transition: opacity .3s, width .5s var(--ease-out), height .5s var(--ease-out), margin .5s var(--ease-out), background-color .5s, border-color .5s; }
.cursor span { opacity: 0; transition: opacity .3s; }
.has-cursor .cursor, .has-cursor .cursor-dot { opacity: 1; }
.has-cursor, .has-cursor * { cursor: none !important; }
/* The image viewer sits in the browser's top layer, above the custom cursor, so it keeps the normal one */
.has-cursor .lightbox, .has-cursor .lightbox * { cursor: auto !important; }
.has-cursor .lightbox button { cursor: pointer !important; }
.cursor.is-link { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgb(246 163 198 / .18); }
.cursor.is-view { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--ink-pink); border-color: transparent; }
.cursor.is-view span { opacity: 1; }
.cursor.is-view + .cursor-dot, .cursor.is-link + .cursor-dot { opacity: 0; }

/* ---------- Optional sections: Skills, Experience, Education, Awards, Kind Words ---------- */
.x { padding: clamp(30px, 5vw, 60px) 0 clamp(60px, 8vw, 110px); }
/* Reading inks per colour band, so headings and small text stay legible on the pastels
   (titles ≥3:1, text ≥4.5:1). Same hues as the brand, one shade deeper. */
.x.t-cream, .pg-hero.t-cream { --ink: #94877A; --ink-brown: #7E6D58; --text: #78704A; --text-soft: #78704A; }
.x.t-pink,  .pg-hero.t-pink  { --ink: #A94E7F; --ink-brown: #685A49; --text: #625C3D; --text-soft: #625C3D; }
.x.t-blush, .pg-hero.t-blush { --ink: #8E895C; --ink-brown: #7B6A56; --text: #756E48; --text-soft: #756E48; }
.x.t-beige, .pg-hero.t-beige { --ink: #7A6050; --ink-brown: #625444; --text: #5C5639; --text-soft: #5C5639; }
.x.t-olive, .pg-hero.t-olive { --ink: #6A6535; --ink-brown: #655747; --text: #5E593A; --text-soft: #5E593A; }
.x.t-mint,  .pg-hero.t-mint  { --ink: #98836A; --ink-brown: #7B6A56; --text: #746D47; --text-soft: #746D47; }
.x { color: var(--text); }
.x-head { display: grid; gap: 14px; align-items: end; margin-bottom: clamp(26px, 4vw, 44px); }
@media (min-width: 860px) { .x-head { grid-template-columns: 1.3fr 1fr; } }
.x-title { color: var(--ink); font-size: clamp(2.6rem, 7vw, 5.6rem); }
.x-intro { margin: 0; max-width: 42ch; }
.x-groups { display: grid; gap: clamp(22px, 3vw, 40px); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.x-group__title { margin: 0 0 12px; font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 600; color: var(--text-soft); }
.x-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.x-chips li { padding: 9px 16px; border-radius: 999px; background: rgb(255 255 255 / .55); border: 1px solid rgb(160 138 112 / .18); font-size: .92rem;
  transition: transform .5s var(--ease-out), background .4s; }
.x-chips li:hover { transform: translateY(-3px); background: rgb(255 255 255 / .85); }
.x-list { list-style: none; margin: 0; padding: 0; display: grid; }
.x-item { display: grid; grid-template-columns: 1fr; gap: 6px 36px; padding: 22px 0; border-top: 1px solid rgb(160 138 112 / .18); }
@media (min-width: 700px) { .x-item { grid-template-columns: 160px 1fr; } }
.x-item:last-child { border-bottom: 1px solid rgb(160 138 112 / .18); }
.x-item__years { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--text-soft); padding-top: 6px; }
.x-item__title { margin: 0; font-family: var(--serif); font-variation-settings: "SOFT" 30, "opsz" 72; font-weight: 400; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.2; color: var(--ink-brown); }
.x-item__place { color: var(--text-soft); margin-top: 2px; }
.x-item__note { margin: 8px 0 0; max-width: 60ch; }
.x-quotes { display: grid; gap: clamp(18px, 3vw, 32px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 440px)); }
.x-quote { margin: 0; padding: clamp(22px, 3vw, 36px); border-radius: 24px; background: rgb(255 255 255 / .5); }
.x-quote__text { font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.3; color: var(--ink-brown); margin: 0 0 18px; }
.x-quote__by { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--text-soft); }
.x-quote__by span { font-weight: 500; letter-spacing: .14em; }

/* ---------- Building blocks: text, text+image, grid, video, logos, links, steps ---------- */
.x-text p { max-width: 68ch; margin: 0 0 1.1em; font-size: 1.04em; }
.x-ti { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 820px) { .x-ti { grid-template-columns: 1.1fr 1fr; } .x-ti--left .x-ti__fig { order: -1; } .x-ti--solo { grid-template-columns: 1fr; } }
.x-ti__fig { margin: 0; border-radius: 24px; overflow: hidden; background: rgb(255 255 255 / .45); }
.x-ti__fig img { width: 100%; height: auto; }
.x-grid { display: grid; gap: clamp(12px, 2.5vw, 28px); grid-template-columns: repeat(2, 1fr); }
@media (max-width: 420px) { .x-grid--2 { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .x-grid--3 { grid-template-columns: repeat(3, 1fr); } .x-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.x-grid__item { margin: 0; }
.x-grid__item button { display: block; width: 100%; border: 0; padding: 0; background: rgb(255 255 255 / .5); border-radius: 20px; overflow: hidden; cursor: zoom-in; }
.x-grid__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1s var(--ease-out); }
.x-grid__item button:hover img { transform: scale(1.03); }
.x-grid__item figcaption { margin-top: 10px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); }
.x-video { margin: 0; }
.x-video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: rgb(0 0 0 / .06); }
.x-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.x-video figcaption { margin-top: 12px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); }
.p-video { margin-bottom: clamp(18px, 3vw, 40px); }
.x-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 40px); align-items: center; }
.x-logos li { padding: 14px 20px; border-radius: 18px; background: rgb(255 255 255 / .55); transition: transform .6s var(--ease-out), background .4s; }
.x-logos li:hover, .x-logos li:focus-within { transform: translateY(-3px); background: rgb(255 255 255 / .85); }
.x-logos img { height: clamp(34px, 5vw, 52px); width: auto; display: block; }
.x-links { list-style: none; margin: 0; padding: 0; }
.x-link { display: grid; grid-template-columns: 1fr; gap: 4px 36px; padding: 18px 0; border-top: 1px solid rgb(160 138 112 / .18); }
@media (min-width: 700px) { .x-link { grid-template-columns: 160px 1fr; } }
.x-link:last-child { border-bottom: 1px solid rgb(160 138 112 / .18); }
.x-link__title { display: inline-block; padding: 4px 0; font-family: var(--serif); font-variation-settings: "SOFT" 30, "opsz" 72; font-size: clamp(1.2rem, 1.8vw, 1.5rem); color: var(--ink-brown); text-decoration: none; }
.x-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(18px, 3vw, 32px); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.x-step { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.x-step__n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .6); color: var(--ink-brown); font-size: 1.3rem; }

/* ---------- Phone menu ---------- */
.nav__toggle { display: none; align-items: center; gap: 8px; background: none; border: 1px solid rgb(160 138 112 / .3); border-radius: 999px; padding: 8px 16px;
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--text-soft); cursor: pointer; position: relative; z-index: 61; }
.nav__toggle-x { display: none; }
.nav.is-open .nav__toggle-txt { display: none; }
.nav.is-open .nav__toggle-x { display: grid; }
/* Desktop links never wrap or stretch; a long label is shortened with "…" */
.nav__links { flex-wrap: nowrap; }
.nav__links li { min-width: 0; }
.nav__links a { display: inline-block; max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
/* .nav--compact is set by main.js on phones, and on any screen where the links don't fit on one line */
.nav--measuring .nav__links, .nav--measuring .nav__links * { transition: none !important; }
.nav--compact .nav__toggle { display: inline-flex; }
.nav--compact .nav__links { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; justify-content: safe center; align-items: flex-start; gap: 6px;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 120px var(--gutter) 60px; background: rgb(255 245 235 / .97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .45s var(--ease-out), transform .55s var(--ease-out), visibility 0s .45s; }
.nav--compact.is-open .nav__links { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease-out), transform .55s var(--ease-out), visibility 0s; }
.nav--compact .nav__links li { max-width: 100%; }
.nav--compact .nav__links a { max-width: 100%; white-space: normal; overflow-wrap: anywhere; font-family: var(--serif); font-variation-settings: "SOFT" 30, "opsz" 144; font-size: clamp(2rem, 9vw, 3.2rem); line-height: 1.1;
  letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--ink-brown); padding: 6px 0;
  opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
.nav--compact.is-open .nav__links a { opacity: 1; transform: none; }
.nav--compact.is-open .nav__links li:nth-child(2) a { transition-delay: 60ms; } .nav--compact.is-open .nav__links li:nth-child(3) a { transition-delay: 120ms; }
.nav--compact.is-open .nav__links li:nth-child(4) a { transition-delay: 180ms; } .nav--compact.is-open .nav__links li:nth-child(5) a { transition-delay: 240ms; } .nav--compact.is-open .nav__links li:nth-child(n+6) a { transition-delay: 300ms; }
.nav--compact .nav__links a.is-active { color: var(--rose); background: none; }
.nav--compact.is-open .nav__row { position: relative; z-index: 61; }
.nav--compact.is-open { transform: none !important; }

/* Long words and odd text never push the page sideways */
h1, h2, h3, p, li, dd, dt, figcaption, blockquote, .card__cat, .strip__cap, .announce__text, .footer__small, .x-item__years { overflow-wrap: anywhere; }
.card__meta > div, .about__grid > div, .contact__grid > div, .p-hero__inner > div, .x-head > *, .x-item > div, .x-link > div, .x-step > div, .footer__sign > div,
.cards > *, .gallery__head > *, .p-intro > *, .x-groups > *, .x-quotes > *, .x-steps > *, .x-grid > *, .p-grid > *, .x-ti > *, .cform__grid > * { min-width: 0; }
/* Missing pictures hide quietly; a gallery or grid tile with no picture disappears */
img.img-missing { visibility: hidden; }
.footer__links { flex-wrap: wrap; row-gap: 14px; justify-content: flex-start; }
.footer__links a { max-width: 100%; overflow-wrap: anywhere; }
.cform__btn { max-width: 100%; text-align: left; }
.cform__btn span { min-width: 0; overflow-wrap: anywhere; }
.strip__item:has(.img-missing), .x-grid__item:has(.img-missing), .p-fig:has(.img-missing), .x-logos li:has(.img-missing), .x-ti__fig:has(.img-missing) { display: none; }

/* ---------- Announcement bar ---------- */
.nav { flex-direction: column; align-items: stretch; padding: 0; }
.nav__row { display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gutter); }
.announce { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; padding: 9px var(--gutter);
  background: var(--pink); color: #6b3a4f; font-size: .78rem; letter-spacing: .03em; }
.announce__text { min-width: 0; }
@media (max-width: 760px) {
  /* one quiet line on phones: the text truncates, the button stays */
  .announce { flex-wrap: nowrap; gap: 10px; padding: 7px var(--gutter); font-size: .74rem; }
  .announce__petal { display: none; }
  .announce__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .announce a { flex: none; max-width: 45%; }
  .announce a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
}
.announce__petal { width: 16px; height: 16px; display: inline-block; }
.announce__petal svg { display: block; width: 100%; height: 100%; }
.announce a { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; font-weight: 600; padding: 6px 0; margin: -6px 0; }

/* ---------- Contact form ---------- */
.cform { margin-top: clamp(40px, 6vw, 70px); padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: rgb(255 255 255 / .55); border: 1px solid rgb(160 138 112 / .14); position: relative; }
.cform__trap { position: absolute; left: -9999px; }
.cform__title { margin: 0 0 20px; font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--ink-brown); }
.cform__grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cform__grid { grid-template-columns: 1fr 1fr; } .cform__field--wide { grid-column: 1 / -1; } }
.cform__field { display: grid; gap: 6px; }
.cform__field span { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--text-soft); }
.cform input, .cform textarea { font: inherit; color: var(--text); padding: 12px 14px; border-radius: 14px; border: 1px solid rgb(160 138 112 / .3); background: var(--ivory); width: 100%; }
.cform input:focus, .cform textarea:focus { outline: 2px solid var(--rose); outline-offset: 2px; }
.cform__row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.cform__btn { display: inline-flex; gap: 10px; align-items: center; padding: 12px 22px; border-radius: 999px; border: 0; background: var(--rose); color: var(--ivory); cursor: pointer;
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; transition: transform .5s var(--ease-out), background .4s; }
.cform__btn:hover, .cform__btn:focus-visible { transform: translateY(-2px); background: #8D3F69; }
.cform__note a { color: var(--rose); }
.cform__btn:disabled { opacity: .6; cursor: default; }
.cform__note { margin: 0; color: var(--text-soft); }

/* ---------- Project extras ---------- */
.p-link { display: inline-flex; gap: 10px; align-items: center; margin-top: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid rgb(160 138 112 / .35); text-decoration: none;
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--ink-brown); transition: background .4s, color .4s, transform .5s var(--ease-out); }
.p-link:hover { background: var(--ink-pink); border-color: transparent; color: var(--ivory); transform: translateY(-2px); }
.p-meta dt + dd + dt { margin-top: 16px; }

/* ---------- Extra pages ---------- */
.p-hero__inner--text { grid-template-columns: 1fr; }
.pg-hero .p-hero__title .squig { color: var(--ink-pink); }
.pg__intro { max-width: 52ch; margin: 18px 0 0; font-size: 1.08em; }
.pg { display: grid; gap: clamp(30px, 5vw, 60px); }
.pg__body { max-width: 68ch; font-size: 1.04em; }
.pg__body p { margin: 0 0 1.1em; }
.pg__h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); color: var(--ink-brown); margin: 1.4em 0 .5em; }
.pg__h3 { font-family: var(--serif); font-variation-settings: "SOFT" 30, "opsz" 72; font-weight: 400; font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: var(--ink-brown); margin: 1.3em 0 .4em; }
.pg__body ul, .pg__body ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.pg__body li { margin: .3em 0; }
.pg__quote { margin: 1.4em 0; padding-left: 1em; border-left: 2px solid var(--ink-pink); font-size: 1.3em; color: var(--ink-brown); }

/* ---------- Look switches from the settings page ---------- */
.no-grain body::after, .no-grain::after { display: none; }
.no-cursor .cursor, .no-cursor .cursor-dot { display: none; }
.no-cursor.has-cursor, .no-cursor.has-cursor * { cursor: auto !important; }

/* ---------- Ink squiggle under section headings ---------- */
.squig { display: block; width: clamp(80px, 9vw, 120px); height: auto; margin-top: .18em; overflow: visible; }
.squig path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; opacity: .7;
  stroke-dasharray: 150; stroke-dashoffset: 150; transition: stroke-dashoffset 1.3s var(--ease-out) .45s; }
.is-in .squig path { stroke-dashoffset: 0; }

/* ---------- Paper grain ---------- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Hero title ripple on hover ---------- */
.hero__title:hover .ch { animation: chIn 1.4s var(--ease-out) forwards, chRipple .9s var(--ease-out);
  animation-delay: calc(var(--i) * 45ms + 200ms), calc(var(--i) * 28ms); }
@keyframes chRipple { 35% { transform: translateY(-.07em); color: var(--ink-pink); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .contact__sketch { clip-path: none; }
  .petal { display: none; }
  .squig path { stroke-dashoffset: 0; }
  .card__frame { transform: none; }
}
