/* ==========================================================================
   ELENI MAGAFAS: portfolio
   One stylesheet for every page. Sections follow the page order:
   base, header + mobile menu, home, portfolio, about, services, contact.
   ========================================================================== */

/* --- Tokens -------------------------------------------------------------- */
:root {
  --bg: #f6f3ee;
  --ink: #111111;
  --muted: #a8a39b;
  --line: #c9c3b8;
  --arrow: #7c7b70;
  --brown-1: #b2977d;
  --brown-2: #987960;
  --brown-3: #7d5d43;
  --blush: #e3b3ad;
  --blush-ink: #c98c86;
  --blush-soft: #eccbc6;
  --cream: #f8f4ea;

  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --grotesk: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --script: 'Nice Memory', 'Snell Roundhand', cursive;
  --sand: #e8e2d6;
  --rule: rgba(17, 17, 17, 0.16);

  --gutter: clamp(16px, 5vw, 96px);
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --pop: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Paper grain: fractal noise, alpha only, tiled. Used on the page and on
     anything that needs to sit on the paper without showing a seam. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25  0 0 0 0 .2  0 0 0 0 .15  0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
  --paper: var(--grain) fixed, radial-gradient(120% 80% at 20% 0%, #f9f7f3 0%, transparent 60%) fixed, var(--bg);

  /* A small ink circle with a light edge; links and buttons get the usual finger */
  --cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.5' fill='%23111' stroke='%23f6f3ee' stroke-width='1.3'/%3E%3C/svg%3E") 8 8, auto;
  --cursor-link: pointer;
}

/* Nice Memory, the script. Self-hosted from ../Nice-Memory-Nostalgic-Script */
@font-face {
  font-family: 'Nice Memory';
  src: url('../assets/fonts/nice-memory.otf') format('opentype'),
       url('../assets/fonts/nice-memory.ttf') format('truetype');
  font-display: swap;
}

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

html {
  background: var(--paper);
  color: var(--ink);
  cursor: var(--cursor);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a, button, [role='button'], label, summary { cursor: var(--cursor-link); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 1.5px dashed var(--ink); outline-offset: 4px; }

::selection { background: var(--ink); color: var(--bg); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 14px; background: var(--ink); color: var(--bg);
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em;
}
.skip-link:focus { top: 16px; }

.label {
  font-family: var(--mono);
  font-size: clamp(18px, 1.9vw, 28px);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.placeholder { color: #6f6a62; max-width: 46ch; }

.cutout { pointer-events: none; user-select: none; -webkit-user-drag: none; }

/* Scroll reveals */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* --- Header (inner pages) ----------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header.is-stuck { background: var(--paper); box-shadow: 0 1px 0 rgba(17, 17, 17, 0.06); }

.mark { display: block; width: 78px; line-height: 0; }
.mark img { width: 100%; height: auto; }

.header__nav { display: flex; gap: clamp(24px, 3vw, 52px); }
.header__nav a {
  position: relative;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.header__nav a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.header__nav a:hover::after,
.header__nav a[aria-current='page']::after { transform: scaleX(1); }

/* The burger and the overlay's close X are the same size and sit in the same
   spot, so opening the menu turns one into the other in place. */
.header__burger, .mnav__close {
  width: 28px; height: 28px;
  display: grid; place-items: center;
}
.header__burger { display: none; }
.header__burger svg, .mnav__close svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round;
}

/* Mobile menu: the "Menu (mobile)" artboard */
.mnav {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper);
  padding: 28px 24px 40px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.mnav[hidden] { display: none; }
.mnav__close { position: absolute; top: calc((var(--header-h) - 28px) / 2); right: var(--gutter); }
.mnav__mark { position: absolute; left: var(--gutter); top: calc(var(--header-h) / 2); transform: translateY(-50%); }
.mnav__list { margin-top: calc(var(--header-h) + 6vh); }
.mnav__list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 12px 18px 32px;
  border-bottom: 1px solid #9a968e;
  font-size: 26px; letter-spacing: 0.02em; text-transform: uppercase;
}
.mnav__list svg { width: 30px; height: 30px; stroke: var(--ink); stroke-width: 1.2; fill: none; }
.mnav__star { position: absolute; width: 46vw; max-width: 240px; right: 14%; bottom: 7%; transform: rotate(8deg); }

.mnav.is-open .mnav__list li { animation: rise 0.5s var(--ease) both; animation-delay: calc(60ms * var(--i) + 80ms); }
.mnav.is-open .mnav__star { animation: star-in 0.9s var(--pop) 0.25s both; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes star-in { from { opacity: 0; transform: rotate(-40deg) scale(0.4); } }

@media (max-width: 767px) {
  :root { --header-h: 68px; }
  .header__nav { display: none; }
  .header__burger { display: grid; }
  .mark { width: 64px; }
}

/* --- Footer --------------------------------------------------------------- */
/* Copyright left, email and LinkedIn icons centre, location right, on the
   page's own paper under a full-width hairline */
.footer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px 24px;
  padding: 26px var(--gutter) 30px;
  background: var(--paper);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #6f6a62;
}
.footer::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px; background: var(--rule);
}
.footer a:hover { color: var(--ink); }
.footer__place { justify-self: end; }

.footer__social { display: flex; gap: 18px; }
.footer__social a { display: block; width: 22px; height: 22px; color: #6f6a62; transition: transform 0.35s var(--pop), color 0.25s var(--ease); }
.footer__social a:hover { transform: translateY(-2px) rotate(-6deg); }
.footer__social svg { width: 100%; height: 100%; fill: currentColor; }

@media (max-width: 600px) {
  .footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer__social { order: -1; }
  .footer__place { justify-self: center; }
}

/* ==========================================================================
   HOME
   ========================================================================== */

/* Header and hero fill the first screen; the footer sits below the fold */
.page--home .header { position: relative; }
.page--home main { display: flex; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }

.hero {
  position: relative;
  flex: 1;
  min-height: 520px;
  overflow: hidden;
  /* The photo's height. The objects are placed and sized from it, so the
     whole arrangement keeps its proportions on any screen. */
  --ph: max(240px, min(50vh, 40vw));
}

.hero__center {
  position: absolute; left: 50%; top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
}

.hero__name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 2.4vw, 46px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  white-space: nowrap;
}

/* The photo frame never changes size; the five photos stack inside it and
   the active one fades in. All of them are 3:4 with the film border. */
.hero__photo {
  position: relative;
  height: var(--ph);
  aspect-ratio: 3 / 4;
  margin-top: clamp(18px, 3.4vh, 40px);
}
.hero__pic {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.hero__pic.is-active { opacity: 1; }

.hero__role {
  margin-top: clamp(28px, 7vh, 80px);
  font-size: clamp(13px, 1.35vw, 22px);
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Object sets around the hero. One is active at a time; the nav picks it.
   Every set uses the same four spots, and every object is fitted into the
   same square (--box), so swapping sets keeps things the same size and place.
   --ox/--oy place the centre of each spot from the centre of the photo, in
   photo heights. The JS adds mouse drift through --dx/--dy. */
.hero__set { position: absolute; inset: 0; z-index: 1; pointer-events: none; --box: calc(var(--ph) * 0.42); }

.float--tl { --ox: -0.88; --oy: -0.3; }
.float--tr { --ox: 0.88; --oy: -0.3; }
.float--bl { --ox: -0.8; --oy: 0.28; }
.float--br { --ox: 0.8; --oy: 0.28; }

.float {
  --size: calc(var(--box) * var(--s, 1));
  position: absolute;
  left: calc(50% + var(--ox) * var(--ph) - var(--size) / 2);
  top: calc(50% + var(--oy) * var(--ph) - var(--size) / 2);
  width: var(--size); height: var(--size);
  display: flex; align-items: center; justify-content: center;
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r, 0deg));
  opacity: 0;
  scale: 0.6;
  transition: transform 0.9s var(--ease), opacity 0.25s var(--ease), scale 0.3s var(--ease);
}
.hero__set.is-active .float {
  opacity: 1;
  scale: 1;
  transition:
    transform 0.9s var(--ease),
    opacity 0.45s var(--ease) calc(var(--i, 0) * 70ms),
    scale 0.65s var(--pop) calc(var(--i, 0) * 70ms);
}
.float img {
  width: 100%; height: 100%;
  object-fit: contain;
  animation: bob 6s ease-in-out infinite; animation-delay: var(--delay, 0s);
}
@keyframes bob { 50% { transform: translateY(-10px) rotate(1.5deg); } }

/* Phones: no hover, so only the default set shows, tucked into the corners */
@media (max-width: 767px) {
  .hero { --ph: 76vw; min-height: calc(var(--ph) * 2.25); }
  .hero__name { font-size: 8vw; }
  .hero__role { white-space: normal; max-width: 34ch; font-size: 13px; margin-top: 28px; }
  .hero__set { --box: calc(var(--ph) * 0.26); }
  .hero__set:not([data-set='default']) { display: none; }
  .float--tl { --ox: -0.44; --oy: -0.88; }
  .float--tr { --ox: 0.44; --oy: -0.88; }
  .float--bl { --ox: -0.44; --oy: 0.92; }
  .float--br { --ox: 0.44; --oy: 0.92; }
}

/* ==========================================================================
   PORTFOLIO
   ========================================================================== */
.work { padding: calc(var(--header-h) + 5vh) var(--gutter) 12vh; }

/* The title, then the filters on their own line under it */
.work__head {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: clamp(20px, 3vh, 32px);
  margin-bottom: clamp(32px, 6vh, 64px);
}

.typed {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(44px, 7.4vw, 124px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  min-height: 1em;
}
.typed__caret {
  display: inline-block;
  width: 0.05em; min-width: 2px; height: 0.9em;
  margin-left: 0.08em;
  vertical-align: -0.08em;
  background: var(--ink);
  animation: blink 1s steps(1) infinite;
}
/* Three more blinks once the word is typed, then it fades away */
.typed.is-done .typed__caret { animation: blink 1s steps(1) 3, caret-out 0.6s var(--ease) 3s forwards; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes caret-out { to { opacity: 0; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px;
  border: 1px solid var(--ink); border-radius: 999px;
  font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.chip:hover { background: rgba(17, 17, 17, 0.06); }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--bg); }
.chip__star { width: 15px; height: 15px; margin-right: -2px; fill: currentColor; }
.chip__x { display: none; width: 9px; height: 9px; stroke: currentColor; stroke-width: 1.6; }
.chip[aria-pressed='true'] .chip__x { display: block; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 24px;
}

.card { transition: opacity 0.26s var(--ease), filter 0.26s var(--ease), transform 0.26s var(--ease); }
.card[hidden] { display: none; }
.card.is-out { opacity: 0; filter: blur(4px); transform: scale(0.97); }

.card__link { display: block; }

.card__img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e6e0d6;
}
.card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.45s var(--ease);
}
/* A cream veil over the image, under the title */
.card__img::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(246, 243, 238, 0.42);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

/* The title only shows on hover, centred over the blurred image */
.card__title {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  padding: 0 8%;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(16px, 1.6vw, 24px);
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

/* Featured projects: a small star in the top corner */
.card__star {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg); color: var(--ink);
  box-shadow: 0 2px 6px rgba(17, 17, 17, 0.15);
}
.card__star svg { width: 17px; height: 17px; fill: currentColor; }

.card__link:hover .card__img img,
.card__link:focus-visible .card__img img { transform: scale(1.04); filter: blur(6px); }
.card__link:hover .card__img::after,
.card__link:focus-visible .card__img::after { opacity: 1; }
.card__link:hover .card__title,
.card__link:focus-visible .card__title { opacity: 1; transform: none; }

/* Touch screens can't hover, so the title is always there, over a lighter blur */
@media (hover: none) {
  .card__img img { transform: scale(1.04); filter: blur(3px); }
  .card__img::after { opacity: 0.8; }
  .card__title { opacity: 1; transform: none; }
}

@media (max-width: 1023px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   PROJECT (projects/*.html)
   Head, cover, then one row per section: label left, text and images right.
   ========================================================================== */
.project { padding: calc(var(--header-h) + 5vh) var(--gutter) 10vh; }

.project__back {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: #6f6a62;
  transition: color 0.25s var(--ease);
}
.project__back:hover { color: var(--ink); }
.project__back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform 0.35s var(--pop); }
.project__back:hover svg { transform: translateX(-4px); }

.project__head { margin: clamp(28px, 5vh, 48px) 0 clamp(32px, 6vh, 64px); }
.project__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 116px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.project__sub { margin-top: 18px; font-size: clamp(18px, 1.9vw, 28px); line-height: 1.3; }
.project__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px 32px;
  margin-top: 28px; padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.project__context { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #6f6a62; }
.project__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project__tags .chip { cursor: inherit; }
.project__tags .chip:hover { background: none; }

.project__cover { margin: 0 0 clamp(64px, 12vh, 140px); background: #e6e0d6; }
.project__cover img { width: 100%; height: auto; max-height: 86vh; object-fit: cover; }

/* One section: the label sticks beside the text on wide screens */
.psec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 24px 6vw;
  padding: clamp(36px, 7vh, 72px) 0;
  border-top: 1px solid var(--rule);
}
.psec__label { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
.psec__body { min-width: 0; }
.psec__body > * + * { margin-top: 18px; }
.psec__body p, .psec__body li { max-width: 68ch; }
.psec__body h3 {
  margin-top: 36px;
  font-size: 12px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase;
}
.psec__body h3 + * { margin-top: 10px; }
.psec__body strong { font-weight: 600; }
.psec__body em { font-style: italic; }
.psec__body ul li, .psec__body ol li { position: relative; padding-left: 1.6em; }
.psec__body ul li + li, .psec__body ol li + li { margin-top: 8px; }
.psec__body ul li::before { content: '✦'; position: absolute; left: 0; font-size: 0.8em; top: 0.15em; }
.psec__body ol { counter-reset: step; }
.psec__body ol li { counter-increment: step; }
.psec__body ol li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; font-size: 0.85em; color: #6f6a62; }
.psec__body blockquote {
  margin: 24px 0 0; padding-left: 20px;
  border-left: 1.5px solid var(--ink);
  font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55;
}

.ptable { width: 100%; max-width: 760px; border-collapse: collapse; font-size: 13px; }
.ptable th, .ptable td { padding: 10px 12px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.ptable th { font-weight: 400; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #6f6a62; }
.swatch { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 1px solid var(--rule); background: var(--c); }
.ptable-wrap { overflow-x: auto; }

/* Images inside a section, alone or side by side */
.pfig { margin: 32px 0 0; }
.pfig img { width: 100%; height: auto; background: #e6e0d6; }
.pfig figcaption { margin-top: 10px; font-size: 12px; letter-spacing: 0.04em; color: #6f6a62; }
.pfig-row { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 16px; align-items: start; }
.pfig-row .pfig { margin-top: 0; }
.psec__body > .pfig-row { margin-top: 32px; }

/* The final work, after the write-up */
.pgallery { padding-top: clamp(36px, 7vh, 72px); border-top: 1px solid var(--rule); }
.pgallery__grid {
  margin-top: 28px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.pgallery__grid .pfig { margin: 0; }
.pgallery__grid .pfig--wide { grid-column: 1 / -1; }

.project__next {
  margin-top: clamp(64px, 12vh, 140px);
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  text-align: right;
}
.project__next a { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.project__next-title {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(28px, 4.4vw, 72px); line-height: 1; text-transform: uppercase;
}
.project__next-title svg { width: 0.6em; height: 0.6em; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform 0.4s var(--pop); }
.project__next a:hover .project__next-title svg { transform: translate(4px, -4px); }

@media (max-width: 767px) {
  .psec { grid-template-columns: 1fr; }
  .psec__label { position: static; }
  .pfig-row { grid-template-columns: 1fr; }
  .pgallery__grid { grid-template-columns: 1fr; }
  .project__meta { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   ABOUT
   ========================================================================== */

/* The intro: About on load, About copy as you scroll. --p runs 0 to 1. */
.ahero { position: relative; height: 270vh; }
.ahero__stage {
  --p: 0;
  position: sticky; top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.ahero__word {
  position: absolute; left: 51.5%; top: 47%;
  z-index: 1;
  font-family: var(--sans);
  font-weight: 700;
  font-size: min(10.4vw, 19vh);
  line-height: 0.8;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  transform:
    translate(-50%, -50%)
    translate(calc(var(--p) * -25.8vw), calc(var(--p) * -18vh))
    scale(calc(1 - var(--p) * 0.45));
}

.ahero__script {
  position: absolute; left: 34%; top: 58%;
  z-index: 1;
  font-family: var(--script);
  font-size: min(6.2vw, 11vh);
  line-height: 1;
  white-space: nowrap;
  transform:
    translate(-50%, -50%)
    translate(calc(var(--p) * -2vw), calc(var(--p) * -16vh))
    rotate(-12deg)
    scale(calc(1 + var(--p) * 0.85));
}

.ahero__photo {
  /* Sits on the bottom edge and grows upward from there. On load the head
     (43% across the photo) lines up under ABOUT; scrolling slides the photo
     back so it ends centred at 51vw. */
  position: absolute; left: 51.5%; bottom: 0;
  z-index: 2;
  height: 52vh;
  width: auto;
  max-width: none;
  transform-origin: 50% 100%;
  transform:
    translateX(-43%)
    translateX(calc(var(--p) * (-7% - 0.5vw)))
    scale(calc(1 + var(--p) * 0.3));
}

.arrow {
  position: absolute; z-index: 3;
  left: var(--x); top: var(--y); width: var(--w);
  overflow: visible;
}
.arrow path {
  fill: none;
  stroke: var(--arrow);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--a, 0));
}

.trait {
  position: absolute; z-index: 3;
  left: var(--x); top: var(--y);
  max-width: 22vw;
  font-size: clamp(13px, 1.1vw, 17px);
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: var(--a, 0);
  transform: translateY(calc((1 - var(--a, 0)) * 10px));
}

.ahero__traits { display: none; }

/* The flashcard and notebook: in place on load, pushed off the sides and
   faded out as --p runs (--ex/--ey), so they're gone before ABOUT settles.
   Like the homepage objects, they bob and drift from the mouse (--dx/--dy,
   set by js/site.js). */
.ahero__float {
  position: absolute; z-index: 0;
  left: var(--x); top: var(--y); width: var(--w);
  opacity: calc(1 - var(--p) * 1.6);
  transform:
    translate(-50%, -50%)
    translate(calc(var(--p) * var(--ex)), calc(var(--p) * var(--ey)))
    rotate(var(--r));
  translate: var(--dx, 0px) var(--dy, 0px);
  transition: translate 0.9s var(--ease);
}
.ahero__float img { display: block; width: 100%; animation: bob 6s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.ahero__float--card { --x: 15%; --y: 37%; --w: min(15vw, 28vh); --r: -4deg; --ex: -45vw; --ey: -30vh; --delay: -2s; }
.ahero__float--book { --x: 83.5%; --y: 58%; --w: min(17vw, 31vh); --r: 12deg; --ex: 45vw; --ey: 25vh; --delay: -4s; }

@media (max-width: 767px) {
  .ahero { height: auto; }
  .ahero__stage {
    --p: 1;
    position: relative; height: auto;
    display: flex; flex-direction: column; align-items: center;
    padding: calc(var(--header-h) + 6vh) 24px 0;
  }
  .ahero__word, .ahero__script, .ahero__photo { position: relative; left: auto; top: auto; bottom: auto; transform: none; }
  .ahero__word { font-size: 24vw; align-self: flex-start; }
  .ahero__script { font-size: 18vw; align-self: flex-end; margin-top: -4vw; transform: rotate(-10deg); }
  .ahero__photo { order: 2; width: 86vw; height: auto; margin-top: 4vh; }
  .arrow, .trait { display: none; }
  .ahero__traits { order: 1; display: flex; flex-direction: column; gap: 8px; margin-top: 4vh; }
  .ahero__traits li { padding: 10px 14px; border: 1px solid var(--ink); border-radius: 16px; font-size: 12px; line-height: 1.4; text-align: center; text-transform: uppercase; letter-spacing: 0.06em; }
  .ahero__float { display: none; }
}

/* The "08" artboard */
.story { overflow: hidden; }
.story p { font-size: clamp(14px, 1.05vw, 16px); line-height: 1.65; }

.about-h {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(26px, 3.1vw, 46px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.about-h + p { margin-top: clamp(22px, 3vh, 34px); }

/* Hey + Toolkit sit on a sand panel, so they part clearly from the photo above */
.aresume {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(70px, 12vh, 130px);
  background: var(--grain), var(--sand);
  border-top: 1px solid var(--rule);
}

/* Hey: text left, the photobooth strip leaning in from the top right */
.ahey { position: relative; padding: clamp(110px, 18vh, 200px) var(--gutter) clamp(60px, 9vh, 100px); }
.ahey__text { max-width: 58ch; margin-left: 4vw; }
.ahey__text p + p { margin-top: 1.2em; }
.ahey__lead { font-weight: 700; }
.ahey__strip {
  position: absolute; z-index: 0;
  top: -7vw; right: 8vw;
  width: clamp(140px, 14vw, 250px);
  rotate: -24deg;
  transform-origin: 50% 0;
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.45);
}

/* Toolkit: a pink card with a clip at the top, logos on white tiles */
.askills {
  position: relative;
  width: min(820px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  translate: 4vw 0;
  padding: clamp(40px, 6vh, 60px) clamp(24px, 5%, 56px) clamp(44px, 7vh, 68px);
  background: var(--grain), var(--blush-soft);
  text-align: center;
}
/* Raised by a share of its own width, so the card edge always meets the
   lower part of the jaw and the handles stand clear above */
.askills__clip {
  --cw: clamp(70px, 8vw, 116px);
  position: absolute;
  top: calc(var(--cw) * -0.8); right: 9%;
  width: var(--cw);
  rotate: 5deg;
}
.logos { margin-top: clamp(26px, 4vh, 40px); display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.logos li {
  display: flex; align-items: center; gap: 9px;
  height: 58px;
  padding: 0 20px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 10px 24px -16px rgba(0, 0, 0, 0.45);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  transform: rotate(var(--r, 0deg));
  transition: transform 0.4s var(--pop);
}
.logos li:hover { transform: rotate(0deg) scale(1.06); }
.logos img { height: var(--h, 24px); width: auto; }

/* Where it all began: story left, framed photo right */
.abegan {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 6vw;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(110px, 18vh, 200px) var(--gutter) clamp(100px, 16vh, 180px);
}
.abegan__text p { max-width: 66ch; }
.abegan__text p + p { margin-top: 1.2em; }
.abegan__photo {
  justify-self: center;
  width: min(100%, 440px);
  margin: 0;
  border: 6px solid var(--ink);
  rotate: 1.5deg;
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.5);
}
.abegan__photo img { display: block; width: 100%; }

.cta svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.abegan .cta { margin-top: 36px; gap: 10px; padding: 12px 22px; font-size: 13px; }

/* Why work with me: a full-width brown band */
.awhy { background: var(--grain), var(--brown-2); padding: clamp(60px, 10vh, 110px) var(--gutter); }
.awhy__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 6vw;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.awhy__obj { justify-self: center; width: min(210px, 55%); rotate: -5deg; }
.awhy__text p { max-width: 54ch; }

/* What people say: a filmstrip of reviews, with arrows when they don't all fit */
.asay { padding-top: clamp(100px, 16vh, 180px); }
.asay__head { position: relative; z-index: 2; display: flex; justify-content: center; padding: 0 var(--gutter); }
.asay__bubble {
  position: absolute;
  right: 9vw; top: -2vw;
  width: clamp(150px, 17vw, 270px);
  rotate: -4deg;
}

.film {
  --gap: clamp(16px, 2vw, 28px);
  position: relative;
  margin-top: clamp(40px, 7vh, 70px);
  padding: 46px 0 40px;
  background: var(--grain), var(--brown-3);
}
/* Sprocket holes along both edges */
.film::before, .film::after {
  content: '';
  position: absolute; left: 0; right: 0;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='12'%3E%3Crect x='10' width='14' height='12' rx='3' fill='%23f6f3ee'/%3E%3C/svg%3E") repeat-x;
  opacity: 0.9;
}
.film::before { top: 16px; }
.film::after { bottom: 16px; }

.film__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--gap)) / 2.3);
  gap: var(--gap);
  padding: 0 var(--gutter);
  scroll-padding: 0 var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.film__track::-webkit-scrollbar { display: none; }
.review {
  scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(28px, 3vw, 42px) clamp(24px, 2.6vw, 36px);
  background: var(--bg);
  border-radius: 22px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}
.review blockquote { margin: 0; }
.review__who { margin-top: 28px; font-size: 14px; font-weight: 600; }
.review__who span { display: block; font-weight: 400; color: #6f6a62; }

.film__nav { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.film.is-static .film__nav { display: none; }
.film__btn {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border: 1.5px solid var(--bg); border-radius: 50%;
  color: var(--bg);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), opacity 0.25s var(--ease);
}
.film__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.film__btn:hover:not(:disabled) { background: var(--bg); color: var(--brown-3); }
.film__btn:disabled { opacity: 0.35; cursor: default; }

/* The closing pair of buttons */
.aend { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: clamp(90px, 15vh, 160px) var(--gutter); }
.aend .cta { margin-top: 0; padding: 13px 24px; font-size: 14px; }

@media (max-width: 1024px) {
  .ahey__text { max-width: 50ch; margin-left: 0; }
  .film__track { grid-auto-columns: calc((100% - var(--gap)) / 1.5); }
}

@media (max-width: 767px) {
  .ahey { padding-top: 22vw; }
  .ahey__strip { width: 20vw; top: -3vw; right: 10vw; }
  .ahey__text { max-width: none; }
  .ahey__text .about-h, .ahey__lead { max-width: 66vw; }
  .askills { translate: none; margin-top: 4vh; }
  .logos { gap: 10px; }
  .logos li { height: 48px; padding: 0 14px; font-size: 13px; }
  .logos img { height: calc(var(--h, 24px) * 0.8); }
  .abegan, .awhy__inner { grid-template-columns: 1fr; gap: 48px; }
  .awhy__obj { width: 46%; }
  .asay__head { justify-content: flex-start; }
  .asay__bubble { right: 2vw; top: -17vw; width: 25vw; }
  .film__track { grid-auto-columns: 84%; }
}

.cta {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 28px;
  padding: 16px 26px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.cta:hover { background: var(--ink); color: var(--bg); }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services-intro { position: relative; padding: calc(var(--header-h) + 10vh) var(--gutter) clamp(120px, 15vh, 180px); }
.services-intro h1 { font-family: var(--sans); font-size: clamp(44px, 7.4vw, 124px); font-weight: 500; line-height: 1; text-transform: uppercase; }
.services-intro p { margin-top: 22px; }

/* Top right: a stamp of the three services, slowly turning */
.services-deco {
  position: absolute;
  right: calc(var(--gutter) + 4vw);
  top: calc(var(--header-h) + 5vh);
  width: clamp(120px, 14vw, 200px);
  animation: star-in 0.9s var(--pop) 0.3s both;
}
.services-deco svg { display: block; width: 100%; overflow: visible; }
.services-deco text { font-family: var(--mono); font-size: 8px; fill: var(--ink); }
.services-deco circle { fill: none; stroke: var(--ink); stroke-width: 0.6; }
.services-deco__star { fill: var(--ink); }
.services-deco__ring { transform-box: view-box; transform-origin: 50% 50%; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.folder { position: relative; color: var(--ink); }
/* --tab-x is each tab's centre; folders 2 and 3 are a shade lighter than --brown-2/3 */
.folder:nth-child(1) { --tone: var(--brown-1); --tab-x: 23%; }
.folder:nth-child(2) { --tone: #a08067; --tab-x: 50%; }
.folder:nth-child(3) { --tone: #90684f; --tab-x: 73%; }

.folder__tab {
  position: absolute; z-index: 2;
  left: var(--tab-x);
  translate: -50% 0;
  bottom: calc(100% - 1px);
  height: clamp(52px, 3.9vw, 68px);
  padding: 0 72px 0 40px;
  display: flex; align-items: center;
  background: var(--tone);
  border-radius: 30px 30px 0 0;
  clip-path: polygon(0 100%, 3% 18%, 6% 0, 94% 0, 97% 18%, 100% 100%);
  font-size: clamp(14px, 1.3vw, 22px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.folder__tab .plus {
  position: absolute; right: 32px; top: 50%;
  width: 18px; height: 18px; margin-top: -9px;
  stroke: currentColor; stroke-width: 1.5; transition: transform 0.4s var(--ease);
}
.folder__tab[aria-expanded='true'] .plus { transform: rotate(45deg); }

.folder__body { position: relative; background: var(--tone); }
.folder__inner {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease);
}
.folder__tab[aria-expanded='true'] + .folder__body .folder__inner { grid-template-rows: 1fr; }
.folder__content { overflow: hidden; }

/* Open: a hairline under the tab band, then the text and its object side by side */
.folder__grid {
  display: grid;
  grid-template-columns: minmax(0, 52ch) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 160px);
  align-items: center;
  margin-top: clamp(40px, 3.4vw, 64px);
  padding: clamp(40px, 3.6vw, 64px) clamp(var(--gutter), 28vw - 160px, 320px) clamp(48px, 4.4vw, 80px);
  border-top: 1px solid rgba(17, 17, 17, 0.35);
}
.folder--flip .folder__grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 52ch);
  padding-right: clamp(var(--gutter), 36vw - 200px, 420px);
}
.folder--flip .folder__obj { order: -1; }

.folder__text p + p { margin-top: 1.65em; }
.folder__text ul { display: grid; gap: 2px; margin-top: 0.8em; }
.folder__text li { display: flex; gap: 12px; }
.folder__text li::before { content: '✦'; }

.folder__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.folder__ctas .cta { margin-top: 0; gap: 10px; padding: 12px 20px; font-size: 13px; }
.folder__ctas .cta svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.cta--fill { background: var(--ink); color: var(--bg); }
.cta--fill:hover { background: transparent; color: var(--ink); }

.folder__spacer { height: clamp(80px, 6.6vw, 120px); }
.folder:last-child .folder__spacer { height: 18vh; }

/* At least a screen tall, with the last folder filling the rest, so the
   footer starts below the fold while every folder is closed */
.page--services main { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.folders { flex: 1; display: flex; flex-direction: column; }
.folder:last-child { flex: 1; display: flex; flex-direction: column; }
.folder:last-child .folder__body { flex: 1; }

/* Each folder's object only shows while that folder is open */
.folder__obj {
  justify-self: center;
  width: var(--w);
  transform: rotate(calc(var(--r, 0deg) - 16deg));
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.25s var(--ease), scale 0.3s var(--ease), transform 0.3s var(--ease);
}
.folder__tab[aria-expanded='true'] + .folder__body .folder__obj {
  transform: rotate(var(--r, 0deg));
  opacity: 1;
  scale: 1;
  transition: opacity 0.4s var(--ease) 0.15s, scale 0.7s var(--pop) 0.15s, transform 0.7s var(--pop) 0.15s;
}

.page--services .footer { background: #90684f; color: rgba(17, 17, 17, 0.7); }
.page--services .footer::before { background: rgba(17, 17, 17, 0.18); }
.page--services .footer__social a { color: rgba(17, 17, 17, 0.7); }
.page--services .footer__social a:hover { color: var(--ink); }

@media (max-width: 767px) {
  .services-deco { width: 24vw; right: 16px; top: calc(var(--header-h) + 3vh); }
  .services-intro .br-wide { display: none; }

  .folder:nth-child(1) { --tab-x: 16px; }
  .folder:nth-child(2) { --tab-x: calc(16px + 8vw); }
  .folder:nth-child(3) { --tab-x: calc(16px + 16vw); }
  .folder__tab { translate: none; height: 54px; padding: 0 52px 0 24px; font-size: 13px; }
  .folder__tab .plus { right: 24px; width: 14px; height: 14px; margin-top: -7px; }
  .folder__grid,
  .folder--flip .folder__grid { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; padding: 36px 24px 48px; }
  .folder__obj { order: -1; --w: 40vw !important; max-width: 180px; }
  .folder__ctas { flex-direction: column; }
  .folder__ctas .cta { justify-content: center; }
  .folder__spacer { height: 64px; }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 4vw;
  padding: calc(var(--header-h) + 6vh) var(--gutter) 8vh;
}

.contact h1 { font-family: var(--sans); font-size: clamp(44px, 6.4vw, 108px); font-weight: 500; line-height: 0.95; text-transform: uppercase; }
.contact .placeholder { margin-top: 24px; }

/* Email and LinkedIn as two equal rows: number and kind above, the link
   below, with the Copy pill at the end of the email row */
.channels { margin-top: 40px; max-width: 560px; border-top: 1px solid var(--line); }
.channel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 18px;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--line);
}
.channel__num, .channel__kind { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #6f6a62; }
.channel__kind { grid-column: 2 / -1; }
.channel__link {
  grid-column: 2;
  justify-self: start;
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.3;
}
.channel__link svg { flex: none; width: 0.6em; height: 0.6em; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 0.4s var(--pop); }
.channel__link:hover svg { transform: translate(4px, -4px); }
.channel .copy { grid-column: 3; }

.copy {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 14px; border: 1px solid var(--ink); border-radius: 999px;
}
.copy:hover { background: var(--ink); color: var(--bg); }

@media (max-width: 600px) {
  .channel .copy { grid-column: 2; justify-self: start; margin-top: 8px; }
}

/* The envelope. Back panel, letter, front pocket, then the flap on top. */
.env-wrap { display: flex; justify-content: center; padding-top: 40px; }

.env {
  position: relative;
  display: block;
  width: min(540px, 100%);
  aspect-ratio: 1.5;
  transform: rotate(3deg);
  perspective: 1400px;
  filter: drop-shadow(0 22px 30px rgba(60, 45, 30, 0.16)) drop-shadow(0 2px 3px rgba(60, 45, 30, 0.12));
  transition: transform 0.6s var(--ease);
}
.env:hover, .env:focus-visible, .env.is-open { transform: rotate(1deg) translateY(-6px); }

.env__back { position: absolute; inset: 0; background: #ece5d4; }

.env__letter {
  position: absolute; left: 6%; right: 6%; top: 6%; height: 86%; z-index: 1;
  background: #fffdf8;
  background-image: repeating-linear-gradient(transparent 0 27px, #ece6da 27px 28px);
  padding: 7% 8%;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform 0.7s var(--ease) 0s;
}
.env__letter .hello { font-family: var(--script); font-size: clamp(36px, 4vw, 56px); line-height: 1; }
.env__letter .addr { font-size: clamp(12px, 1.1vw, 15px); }

.env__pocket {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(170deg, #fbf8f0, var(--cream) 60%, #f1ebdc);
  clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%);
}
.env__pocket svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.env__pocket line { stroke: rgba(150, 130, 100, 0.22); stroke-width: 1; vector-effect: non-scaling-stroke; }

.env__flap {
  position: absolute; inset: 0 0 auto 0; height: 100%; z-index: 4;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease) 0.15s, z-index 0s linear 0.45s;
}
/* The shadow sits on a wrapper because clip-path would cut it off the shape */
.env__flap-shadow {
  position: absolute; inset: 0;
  filter: drop-shadow(0 5px 6px rgba(60, 45, 30, 0.24)) drop-shadow(0 1px 1px rgba(60, 45, 30, 0.18));
}
.env__flap-shape {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #f7f2e6, #ebe2cf);
  clip-path: polygon(0 0, 100% 0, 50% 58%);
}

.seal {
  position: absolute; left: 50%; top: 58%;
  width: 15%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  backface-visibility: hidden;
  border-radius: 48% 52% 50% 50% / 52% 47% 53% 48%;
  background: radial-gradient(circle at 38% 34%, #f4d3ce 0%, var(--blush) 45%, #d29c96 100%);
  box-shadow: inset 0 -3px 6px rgba(150, 80, 75, 0.35), inset 0 3px 5px rgba(255, 255, 255, 0.5), 0 3px 6px rgba(120, 60, 55, 0.25);
  display: grid; place-items: center;
}
.seal::before {
  content: '';
  position: absolute; inset: 15%;
  border-radius: 50%;
  border: 1.5px solid rgba(170, 100, 95, 0.45);
  box-shadow: inset 0 1px 2px rgba(150, 80, 75, 0.3);
}
/* The logo, inlined in contact.html, pressed into the wax: a darker blush
   with a light edge below and a dark one above */
.seal__logo {
  position: relative;
  width: 58%; height: auto;
  fill: #a8645e;
  filter: drop-shadow(0 1px 0 rgba(255, 235, 230, 0.6)) drop-shadow(0 -0.5px 0 rgba(110, 50, 45, 0.45));
}

.env:hover .env__flap, .env:focus-visible .env__flap, .env.is-open .env__flap {
  transform: rotateX(180deg);
  z-index: 0;
  transition: transform 0.6s var(--ease), z-index 0s linear 0.3s;
}
.env:hover .env__letter, .env:focus-visible .env__letter, .env.is-open .env__letter {
  transform: translateY(-52%);
  transition: transform 0.7s var(--ease) 0.35s;
}

.env-hint { margin-top: 26px; text-align: center; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #6f6a62; }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; gap: 12vh; }
  .env-wrap { padding-top: 20px; }
}

/* --- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .ahero { height: auto; }
  .ahero__stage { --p: 1; }
  .ahero__stage .arrow { --a: 1; }
  .ahero__stage .trait { --a: 1; }
  .film__track { scroll-behavior: auto; }
}
