/* Layout keys
   default ........ landscape laptop / desktop
   .is-portrait ... phones & tall screens  (max-aspect-ratio: 4/5)
   .is-ultra ...... 21:9 → 32:9            (min-aspect-ratio: 2/1)  */

/* ═════════════ Cover ═════════════ */
.cover .stage { background: var(--orange); color: var(--ink); }

.cover-art {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 97%;
  aspect-ratio: 820 / 1200;
}
.cover-window {
  position: absolute;
  left: 11%; top: 28%;
  width: 100%; height: 54%;
  border: max(3px, .5 * var(--u)) solid #fffaf0;
  transform-origin: 50% 50%;
}
.cover-rain {
  position: absolute; inset: 0;
  --tile: calc(22 * var(--u));
  background: url("../assets/cover-rain.webp") 0 0 / var(--tile) var(--tile) repeat;
  opacity: .9;
  animation: rain 1.3s linear infinite;
}
.cover-fill { position: absolute; inset: -2px; background: var(--ivory); opacity: 0; }
/* Move exactly one tile across and one down (the rain runs at about 45°), so the last frame matches the first. */
@keyframes rain { from { background-position: 0 0; } to { background-position: calc(-1 * var(--tile)) var(--tile); } }

.cover-sky { position: absolute; left: 1%; top: 0; width: 90%; }
.cover-sky img, .cloud-a { display: block; width: 100%; }
.cover-sky img { animation: float 9s ease-in-out infinite alternate; }
/* Cut the printed scribble out of the cloud; the canvas draws a live one in its place. */
.clouds {
  -webkit-mask-image: radial-gradient(ellipse 9.5% 17% at 44.6% 38.5%, transparent 92%, #000 100%);
  mask-image: radial-gradient(ellipse 9.5% 17% at 44.6% 38.5%, transparent 92%, #000 100%);
}
.cloud-a { position: relative; }
.yarn { position: absolute; left: 33.6%; top: 14%; width: 22%; height: 46%; pointer-events: none; }
.cover-sky .yarn { animation: float 9s ease-in-out infinite alternate; }
@keyframes float { from { transform: translate3d(-1.5%, 0, 0); } to { transform: translate3d(1.5%, -3%, 0); } }

.cover-figure { position: absolute; left: 37%; top: 22.4%; width: 63%; }
.cover-figure-in { position: relative; }
.cover-figure-in .ink { position: absolute; inset: 0; width: 100%; }

.cover-copy {
  position: absolute;
  inset: calc(var(--bar) + 3svh) var(--gutter) 6svh;
  display: grid;
  grid-template-columns: minmax(0, 62%);
  grid-template-rows: auto 1fr auto auto auto;
  grid-template-areas: "meta" "." "name" "role" "caption";
  pointer-events: none;
}
.cover-meta { grid-area: meta; display: flex; gap: 1.5em; font-size: var(--fs-small); font-weight: 600; }
.cover-name {
  grid-area: name;
  font-size: var(--fs-display);
  font-weight: 800;
  font-variation-settings: "wdth" 78;
  line-height: .86;
  letter-spacing: -.045em;
  margin-block-end: .25em;
}
.cover-name .line { display: block; overflow: clip; padding-block-end: .06em; }
.cover-name .line > span { display: inline-block; }
.cover-role { grid-area: role; font-size: var(--fs-h3); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; }
.cover-caption { grid-area: caption; font-size: var(--fs-body); max-width: 30ch; margin-block-start: 1.2em; opacity: .8; }
.cover-hint {
  position: absolute; left: 50%; bottom: 3svh; z-index: 2;
  display: grid; justify-items: center; gap: .55rem;
  font-size: var(--fs-small); font-weight: 650; letter-spacing: .01em; translate: -50% 0;
}
/* A ring with an arrow that keeps dropping, and a soft pulse around it every few seconds. */
.cover-hint i {
  position: relative; display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--ink); color: var(--cream); overflow: hidden;
}
.cover-hint i::before {
  content: ""; width: .6rem; height: .6rem; margin-block-start: -.3rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  rotate: 45deg; animation: hint-drop 1.8s cubic-bezier(.5, 0, .3, 1) infinite;
}
.cover-hint b {
  position: absolute; inset: 0 auto auto 50%; width: 3rem; height: 3rem; translate: -50% 0;
  border-radius: 50%; border: 1.5px solid currentColor; pointer-events: none;
  animation: hint-pulse 2.4s ease-out infinite;
}
@keyframes hint-drop {
  0% { translate: 0 -1.6rem; opacity: 0; }
  30%, 60% { translate: 0 0; opacity: 1; }
  100% { translate: 0 1.6rem; opacity: 0; }
}
@keyframes hint-pulse { 0% { scale: 1; opacity: .55; } 70%, 100% { scale: 1.7; opacity: 0; } }

/* Page-load sequence: the one orchestrated intro */
.js .cover-name .line > span,
.js .cover-meta, .js .cover-role, .js .cover-caption,
.js .cover-window, .js .cover-sky, .js .cover-figure-in, .js .cover-figure-in .ink, .js .cover-hint {
  animation-play-state: paused;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(.2, .8, .2, 1);
}
.js .cover-name .line > span { animation-name: rise; animation-duration: 1.2s; }
.js .cover-name .line:nth-child(2) > span { animation-delay: .12s; }
.js .cover-meta { animation: fade 1s .5s both paused; }
.js .cover-role { animation: up 1s .45s both paused; }
.js .cover-caption { animation: up 1s .6s both paused; }
.js .cover-window { animation: draw 1.4s .15s both paused cubic-bezier(.65, 0, .25, 1); }
.js .cover-sky { animation: drift-in 1.6s .55s both paused; }
.js .cover-figure-in { animation: up-big 1.4s .25s both paused cubic-bezier(.2, .8, .2, 1); }
.js .cover-figure-in .ink-1 { animation: ink 1.1s 1.05s both paused cubic-bezier(.6, 0, .3, 1); }
.js .cover-figure-in .ink-2 { animation: ink 1.1s 1.3s both paused cubic-bezier(.6, 0, .3, 1); }
.js .cover-hint { animation: fade 1s 1.6s both paused; }
.js .cover-sky img { animation-play-state: running; }
.is-in .cover *, .is-in .contact *, .is-in .cover-window, .is-in .cover-meta { animation-play-state: running !important; }

@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(1.2rem); } }
@keyframes up-big { from { opacity: 0; transform: translateY(14%); } }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes drift-in { from { opacity: 0; transform: translate3d(-6%, 10%, 0) scale(.94); } }
@keyframes ink { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* ═════════════ Profile ═════════════ */
.profile { background: var(--ivory); }
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas: "side main" "side facts";
  gap: clamp(2.5rem, 7svh, 6rem) clamp(2rem, 6vw, 8rem);
  max-width: 120rem;
  margin-inline: auto;
}
.profile-side { grid-area: side; align-self: start; position: sticky; top: calc(var(--bar) + 4svh); }
.profile-photo { width: min(100%, 40rem, 50svh); }
.profile-photo img { mix-blend-mode: multiply; }
.profile-hello { margin-block-start: 1.2rem; font-size: var(--fs-h2); }
.profile-main { grid-area: main; display: grid; gap: 1.2em; }
.profile-facts { grid-area: facts; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem clamp(2rem, 4vw, 5rem); align-items: start; }

.timeline { position: relative; padding-inline-start: 1.6rem; }
.timeline-line { position: absolute; left: 0; top: .4rem; bottom: .4rem; width: 2px; background: var(--orange); transform-origin: top; transform: scaleY(var(--draw, 1)); }
.timeline h3 { font-size: var(--fs-body); margin-block: 0 .9rem; }
.timeline h3 ~ h3 { margin-block-start: 2rem; }
.entry { position: relative; margin-block-end: 1.1rem; }
.entry::before { content: ""; position: absolute; left: calc(-1.6rem - 5px); top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--ivory); border: 2px solid var(--orange); }
.when { font-size: var(--fs-small); opacity: .62; font-variant-numeric: tabular-nums; }
.facts { display: grid; gap: 1.6rem; }
.facts dt { font-weight: 700; margin-block-end: .3rem; }
.facts dd { opacity: .82; }
.facts li + li { margin-block-start: .2rem; }

/* ═════════════ Chapter openers ═════════════ */
.chapter .stage { background: var(--from); }
.tehrani-open { --from: var(--ivory); --to: var(--navy); }
.aroma-open { --from: #fff; --to: var(--teal); }
.wipe, .wipe-2 { position: absolute; inset: 0; background: var(--to); clip-path: circle(0 at 50% 50%); }
.wipe-2 { background: var(--beige); clip-path: inset(100% 0 0 0); }
.chapter-head { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 2; }
.chapter-title { transform-origin: 0 0; color: #fff8ea; text-align: start; }
.chapter-title h2 { font-size: var(--fs-display); font-weight: 800; font-variation-settings: "wdth" 80; line-height: .9; letter-spacing: -.045em; white-space: nowrap; }
.chapter-num { display: block; font-size: calc(var(--fs-display) * .2); font-weight: 600; margin-block-end: .3em; opacity: .75; font-variant-numeric: tabular-nums; }

.chapter-grid {
  position: absolute;
  inset: calc(var(--bar) + 3svh) var(--gutter) 6svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  grid-template-areas: "dock hero" "copy hero";
  column-gap: clamp(2rem, 6vw, 8rem);
  color: #fff8ea;
}
.chapter-dock { grid-area: dock; height: calc(var(--fs-h2) * 1.35); width: 100%; }
.chapter-hero { grid-area: hero; align-self: center; width: min(46vw, calc(74svh * var(--ar))); aspect-ratio: var(--ar); }
.chapter-hero-in { width: 100%; height: 100%; overflow: hidden; border-radius: var(--radius); }
.chapter-hero-in img { width: 100%; height: 100%; object-fit: cover; }
.chapter-copy { grid-area: copy; align-self: end; max-width: 34rem; }
.chapter-line { font-size: var(--fs-lede); line-height: 1.1; letter-spacing: -.02em; margin-block-end: .6em; }
.chapter-copy p:last-child { opacity: .82; }
.chapter-wordmark { width: min(100%, 26rem); margin-block: .4rem 1.4rem; }
.aroma-open .chapter-grid { color: var(--teal); }
.aroma-open .chapter-hero-in { box-shadow: 0 2.5rem 5rem -2rem #00416155; }

/* ═════════════ Story blocks ═════════════ */
.story { padding-block: clamp(5rem, 18svh, 14rem); }
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1.5rem clamp(2rem, 6vw, 8rem);
  max-width: 110rem;
  margin-inline: auto;
}
.story-grid > h3 { font-size: var(--fs-body); font-weight: 700; padding-block-start: .5em; }
.story-grid > .lede { grid-column: 2; max-width: 34ch; }
.story-grid > .recap, .story-grid > .brief { grid-column: 2; margin-block-start: 2rem; }
.tehrani-story { background: var(--navy); color: #fff8ea; }
.aroma-story { background: var(--beige); color: var(--teal); }
.poses-story, .aroma-end { background: var(--cream); color: var(--teal); }
.aroma-end { background: var(--kraft); }
.brief { max-width: 40rem; padding-block-start: 1.4rem; border-block-start: 2px solid currentColor; }
.brief h3 { font-size: var(--fs-body); margin-block-end: .5rem; }

/* ═════════════ Tehrani mark + palette ═════════════ */
.mark-scene .stage { background: var(--cool); color: var(--navy); }
.mark-titles { position: absolute; left: var(--gutter); top: calc(var(--bar) + 3svh); display: grid; }
.mark-titles h2 { grid-area: 1 / 1; }
.mark {
  --mw: min(62vw, 54svh);
  position: absolute; inset: 0; margin: auto;
  width: var(--mw); height: calc(var(--mw) * 913 / 848);
  transform-origin: 0 0;
}
.mark img { position: absolute; inset: 0; width: 100%; }
.mark-layout {
  position: absolute;
  inset: calc(var(--bar) + 3svh + var(--fs-h2) * 1.6) var(--gutter) 7svh;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 7rem);
}
.mark-dock { width: min(22vw, 26svh); aspect-ratio: 848 / 913; align-self: start; }

.swatches { display: flex; gap: clamp(.6rem, 1.4vw, 1.6rem); align-items: end; height: 100%; }
.swatch { flex: 1 1 0; min-width: 0; display: grid; grid-template-rows: 1fr auto auto; gap: .6rem; height: 100%; }
.chip { display: block; background: var(--c); border-radius: var(--radius); min-height: 3rem; }
.swatch.is-white .chip, .apal-scene .swatch:nth-child(2) .chip { box-shadow: inset 0 0 0 1px #0f3f8726; }
.hex { font-size: var(--fs-small); font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.name { font-weight: 700; font-size: var(--fs-body); line-height: 1.2; }

/* ═════════════ Pattern ═════════════ */
.pattern-scene .stage { background: var(--cool); color: var(--navy); }
.pattern-scene h2 { position: absolute; left: var(--gutter); top: calc(var(--bar) + 3svh); }
.pattern-grid {
  position: absolute; inset: 0; margin: auto;
  width: min(100vw - 2 * var(--gutter), 60svh * 4529 / 1843);
  height: fit-content;
  aspect-ratio: 4529 / 1843;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: repeat(4, 1fr);
}
.tile { background: url("../assets/tehrani-pattern-hd.webp") 0 0 / 900% 400% no-repeat; }
.pattern-note { position: absolute; left: var(--gutter); bottom: 6svh; max-width: 40ch; }

/* ═════════════ Applications ═════════════ */
.apps-scene .stage { background: var(--navy-deep); color: #fff8ea; --h: 52svh; }
.apps-head { position: absolute; left: var(--gutter); top: calc(var(--bar) + 3svh); }
.apps-track {
  position: absolute;
  left: var(--gutter);
  top: calc(50% - var(--h) / 2 + 3svh);
  display: flex;
  gap: clamp(1rem, 3vw, 3rem);
  width: max-content;
}
.app-in { height: var(--h); width: calc(var(--h) * var(--ar)); overflow: hidden; border-radius: var(--radius); background: #ffffff14; }
.app-in img { width: 100%; height: 100%; object-fit: cover; }
.app figcaption { margin-block-start: .8rem; font-size: var(--fs-small); font-weight: 600; opacity: .8; }
.apps-note { position: absolute; left: var(--gutter); bottom: 5svh; max-width: 44ch; opacity: .85; }

/* ═════════════ Typeface ═════════════ */
.type-scene .stage {
  background: #fff; color: var(--navy);
  display: grid; align-content: center; gap: 4svh;
  padding: calc(var(--bar) + 3svh) var(--gutter) 6svh;
}
.type-label { position: absolute; left: var(--gutter); top: calc(var(--bar) + 3svh); font-size: var(--fs-h3); }
.type-latin { font-size: clamp(2.6rem, 1rem + 8 * var(--u), 13rem); font-weight: 700; line-height: .95; letter-spacing: -.035em; max-width: 14ch; }
.type-farsi { font-family: var(--font-fa); font-size: clamp(1.5rem, .8rem + 3.4 * var(--u), 6rem); font-weight: 700; line-height: 1.4; color: var(--green); }
.type-scene .brief { position: absolute; right: var(--gutter); bottom: 6svh; width: min(28rem, 40vw); }

/* ═════════════ Aroma logo ═════════════ */
.alogo-scene .stage {
  background: var(--teal); color: var(--beige);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  grid-template-rows: auto 1fr;
  gap: 4svh clamp(2rem, 5vw, 6rem);
  padding: calc(var(--bar) + 3svh) var(--gutter) 7svh;
  align-items: center;
}
.alogo-scene h2 { grid-column: 1 / -1; }
.alogo-lockups img { width: 100%; }
.alogo-mockup { justify-self: end; width: min(100%, calc(60svh * 1120 / 747)); }
.alogo-mockup-in { overflow: hidden; border-radius: var(--radius); }

/* ═════════════ Billboard ═════════════ */
.board-scene .stage { background: var(--teal-deep); color: var(--beige); display: grid; place-items: center; }
.board { width: min(100vw - 2 * var(--gutter), calc(78svh * 893 / 610)); }
.board-in { position: relative; overflow: hidden; border-radius: var(--radius); }
.board-zoom { position: relative; transform-origin: 30% 38%; }
.board-zoom > img { width: 100%; }
.board figcaption { margin-block-start: 1rem; font-size: var(--fs-small); font-weight: 600; opacity: .8; }
.traffic { position: absolute; inset: 0; pointer-events: none; }
.traffic > img { position: absolute; right: 0; bottom: 0; width: 100%; }
.car { position: absolute; left: 0; transform-origin: 0 100%; }
.car img { width: 100%; }
.car-far {
  width: 15.23%; bottom: 2.4%;
  transform: translate3d(calc((-1.15 + var(--t, 0) * 7.9) * 100%), calc((.11 - var(--t, 0) * .23) * 100%), 0) scale(calc(1.12 - var(--t, 0) * .18));
}
.car-near {
  width: 36.5%; bottom: -7.56%; margin-left: .56%;
  /* Follows the near lane toward the vanishing point: rises and shrinks as it pulls away. */
  transform: translate3d(calc((-1.15 + var(--t, 0) * 3.95) * 100%), calc(var(--t, 0) * -50%), 0) scale(calc(1.05 - var(--t, 0) * .45));
}

/* ═════════════ Aroma palette ═════════════ */
.apal-scene .stage {
  background: var(--cream); color: var(--teal);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 3svh;
  padding: calc(var(--bar) + 3svh) var(--gutter) 6svh;
}
.apal-emitter { justify-self: center; width: min(52vw, 30svh * 1120 / 372); grid-row: 1; }
.apal-scene h2 { grid-row: 2; }
.apal-scene .swatches { grid-row: 3; }
.apal-note { grid-row: 4; max-width: 46ch; }

/* ═════════════ Illustration ═════════════ */
.illus { background: var(--cream); color: var(--teal); }
.illus > h2 { max-width: 12ch; margin-block-end: clamp(3rem, 8svh, 7rem); }
.illus-grid {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(1.5rem, 4vw, 5rem);
  align-items: start;
  max-width: 120rem;
}
.illus-seated { margin-block-start: 30%; }
.illus-drawing img { max-height: 80svh; width: auto; }
.illus-text { display: grid; gap: 1.2rem; align-content: start; }
.illus-text h3 { margin-block-start: 2rem; font-size: var(--fs-body); }
.illus-line { border-radius: calc(var(--radius) * .6); overflow: hidden; }

/* ═════════════ Poses ═════════════ */
.poses-scene .stage { background: var(--cream); color: var(--teal); }
.poses-scene h2 { position: absolute; left: var(--gutter); top: calc(var(--bar) + 3svh); }
.pose-focus { position: absolute; inset: calc(var(--bar) + 6svh) var(--gutter) 5svh; display: grid; grid-template-rows: 1fr auto; justify-items: center; }
.pose-stack { position: relative; align-self: center; width: min(100%, 38rem, calc((100svh - var(--bar) - 18svh) * 440 / 480)); aspect-ratio: 440 / 480; }
.pose-stack canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pose-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.pose-caption { display: flex; gap: 1rem; align-items: baseline; font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.015em; }
.pose-count { font-size: var(--fs-small); font-variant-numeric: tabular-nums; opacity: .6; }
.pose-sheet {
  position: absolute;
  inset: calc(var(--bar) + 3svh + var(--fs-h2) * 1.5) var(--gutter) 5svh;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 2svh 2vw;
}
.pose { display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; min-height: 0; }
.pose img { height: 100%; width: auto; max-width: 100%; object-fit: contain; min-height: 0; }
.pose figcaption { font-size: var(--fs-small); font-weight: 600; }

/* ═════════════ Packaging ═════════════ */
.pack-scene .stage, .system, .fold-scene .stage { background: var(--kraft); color: var(--teal); }
.pack-scene .stage { display: grid; grid-template-rows: auto minmax(0, 1fr); padding: calc(var(--bar) + 3svh) var(--gutter) 5svh; gap: 3svh; }
.pack-copy p:last-child { font-size: var(--fs-body); margin-block-start: .8rem; max-width: 36ch; }
.pack-hero { align-self: center; justify-self: center; width: min(100%, calc(62svh * 1120 / 559)); }
.pack-hero-in { overflow: hidden; border-radius: var(--radius); }
.pack-hero-in img { width: 100%; transform-origin: 52% 40%; }

.system { padding-block-start: clamp(4rem, 12svh, 10rem); }
.system-grid { max-width: 120rem; margin-inline: auto; }
.system-elements { width: min(100%, 34rem, 62svh); }
.system h3 { font-size: var(--fs-body); margin-block-end: 1.2rem; }
.system figure { border-radius: var(--radius); overflow: hidden; }

.fold-scene .stage { padding: calc(var(--bar) + 3svh) var(--gutter) 5svh; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 2svh; }
.package-fold-heading h3 { font-size: var(--fs-h2); font-variation-settings: "wdth" 85; letter-spacing: -.035em; }
.package-fold-heading p { margin-block-start: .6rem; font-weight: 600; opacity: .7; }
.package-fold-visual { position: relative; min-height: 0; }
.package-fold-visual canvas, .package-fold-complete { position: absolute; inset: 0; width: 100%; height: 100%; }
.package-fold-complete {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 3vw;
  opacity: 0;
  visibility: hidden;
}
.package-fold-complete figure { display: grid; justify-items: center; gap: 1rem; }
.package-fold-complete img { max-height: 46svh; width: auto; max-width: 100%; }
.package-fold-complete figcaption { font-size: var(--fs-small); font-weight: 700; }

/* ═════════════ Contact: the cover again, with ways to get in touch ═════════════ */
.contact { position: relative; height: 100vh; height: 100svh; overflow: clip; background: var(--orange); color: var(--ink); }
.contact-copy {
  position: absolute;
  inset: calc(var(--bar) + 3svh) var(--gutter) 6svh;
  display: grid;
  grid-template-columns: minmax(0, 58%);
  grid-template-rows: auto 1fr auto auto auto;
  grid-template-areas: "meta" "." "title" "list" "foot";
}
.contact-copy .cover-meta { grid-area: meta; }
.contact-title { grid-area: title; font-size: calc(var(--fs-display) * .56); font-weight: 800; font-variation-settings: "wdth" 78; letter-spacing: -.045em; line-height: .9; max-width: 13ch; margin-block-end: clamp(1.5rem, 5svh, 4rem); }
.contact-list { grid-area: list; display: flex; flex-wrap: wrap; gap: .6rem clamp(1.5rem, 3vw, 3.5rem); font-size: var(--fs-h3); font-weight: 650; letter-spacing: -.015em; }
.contact-list a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .45s cubic-bezier(.2,.8,.2,1); padding-block-end: .1em; }
.contact-list a:hover, .contact-list a:focus-visible { background-size: 100% 2px; }
.foot { grid-area: foot; margin-block-start: clamp(1.5rem, 5svh, 4rem); font-size: var(--fs-small); opacity: .7; }

/* ═════════════ Portrait: phones & tall screens ═════════════ */
@media (max-aspect-ratio: 4/5) {
  /* Height is whatever is left under the text, so the art never slides behind the copy on short phones. */
  .cover-art { width: auto; height: min(140vw, calc(100svh - 25.5rem)); right: -6%; }
  .cover-name { font-size: min(21vw, 10.5svh); }
  .cover-copy { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto 1fr; grid-template-areas: "meta" "name" "role" "caption" "."; }
  .cover-meta { margin-block-end: 2svh; }
  .cover-caption { max-width: 24ch; font-size: var(--fs-small); }
  .cover-hint { left: var(--gutter); bottom: calc(env(safe-area-inset-bottom, 0px) + 1.25rem); translate: none; justify-items: start; }
  .cover-hint b { left: 1.5rem; }

  .profile-grid, .profile-facts { grid-template-columns: 1fr; grid-template-areas: "side" "main" "facts"; }
  /* Phone: photo + greeting stay pinned at the top (photo at 3:4) while the text scrolls underneath. */
  .profile-side {
    position: sticky; top: 0; z-index: 2;
    display: flex; align-items: end; gap: 1rem;
    margin-inline: calc(-1 * var(--gutter)); padding: calc(var(--bar) + .75rem) var(--gutter) 1rem;
    background: var(--ivory);
    box-shadow: 0 1.25rem 1.25rem -.25rem var(--ivory);
  }
  .profile-photo { flex: none; width: auto; height: min(34svh, 62vw); aspect-ratio: 3 / 4; }
  .profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
  .profile-hello { margin: 0; font-size: clamp(2rem, 9.5vw, 3rem); }
  .profile { padding-block-start: 0; }

  .chapter-grid { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "dock" "hero" "copy"; row-gap: 2.5svh; }
  .chapter-hero { justify-self: center; width: min(100%, calc(40svh * var(--ar))); }
  .chapter-dock { height: calc(var(--fs-h2) * 1.25); }
  .chapter-wordmark { width: min(70%, 16rem); margin-block: .2rem .8rem; }
  .chapter-copy .kicker { margin-block-end: .5em; }

  .story-grid { grid-template-columns: 1fr; }
  .story-grid > .lede, .story-grid > .recap, .story-grid > .brief { grid-column: 1; }

  .mark { --mw: min(72vw, 46svh); }
  .mark-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); justify-items: center; gap: 3svh; }
  .mark-dock { width: min(34vw, 20svh); }
  .mark-layout .swatches { width: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .swatch { height: auto; }

  .apps-scene .stage { --h: 38svh; }

  .type-scene .brief { position: static; width: auto; }
  .type-latin { max-width: 10ch; }

  .alogo-scene .stage { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; }
  .alogo-mockup { justify-self: center; }

  .board { width: calc(100vw - 2 * var(--gutter)); }

  .apal-scene .swatches { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; }
  .apal-scene .swatch:last-child { grid-column: span 2; }
  .apal-emitter { width: min(70vw, 40rem); }

  .illus-grid { grid-template-columns: 1fr 1fr; }
  .illus-text { grid-column: 1 / -1; }
  .illus-seated { margin-block-start: 40%; }
  .illus-drawing img { max-height: 60svh; }

  .pose-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); }

  .pack-hero { width: 100%; }
  .system-grid { grid-template-columns: 1fr; }
  .system-elements figure { max-width: 70%; }

  .package-fold-complete { grid-template-columns: 1fr; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 2svh; }
  .package-fold-complete figure { min-height: 0; grid-template-rows: minmax(0, 1fr) auto; height: 100%; }
  .package-fold-complete img { max-height: 100%; }

  .contact-mail { font-size: .8em; overflow-wrap: anywhere; }
  .contact-copy { grid-template-columns: 1fr; grid-template-rows: auto auto auto 1fr auto; grid-template-areas: "meta" "title" "list" "." "foot"; inset-block-end: 2.5svh; }
  .contact-copy .cover-meta { margin-block-end: 2svh; }
  .contact-title { font-size: min(13vw, 6.5svh); }
  .contact-list { flex-direction: column; font-size: var(--fs-body); }
  .contact .cover-art { width: auto; height: min(118vw, calc(100svh - 23.5rem)); right: -6%; }
  .contact .foot { margin-block-start: 0; max-width: 9.5rem; line-height: 1.35; }
}

/* Squarish landscape (tablets, small laptop windows) */
@media (min-aspect-ratio: 4/5) and (max-aspect-ratio: 5/4) {
  .cover-art { height: 78%; }
  .cover-copy { grid-template-columns: minmax(0, 70%); }
  .chapter-hero { width: min(42vw, calc(60svh * var(--ar))); }
}

/* ═════════════ Ultrawide: 21:9 → 32:9 ═════════════ */
@media (min-aspect-ratio: 2/1) {
  .cover-hint { left: 30%; }
  :root { --gutter: clamp(2rem, 3vw, 9rem); }

  .cover-art { right: auto; left: 50%; translate: -42% 0; }
  .cover-figure-in { -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent 99%); mask-image: linear-gradient(90deg, #000 80%, transparent 99%); }
  .cover-copy { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "meta ." ". ." "name ." "role caption"; column-gap: 50svh; }
  .cover-name { max-width: 50%; }
  .cover-caption { justify-self: end; align-self: end; text-align: end; max-width: 26ch; }
  .contact-copy { grid-template-columns: minmax(0, 40%); }

  .profile-grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.1fr) minmax(0, 1.2fr); grid-template-areas: "side main facts"; max-width: 220svh; }
  .profile-facts { grid-template-columns: 1fr; }

  .chapter-grid { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: 1fr; grid-template-areas: "dock hero copy"; }
  .chapter-dock { align-self: start; }
  .chapter-copy { justify-self: end; }
  .chapter-hero { width: calc(80svh * var(--ar)); }

  .story-grid { max-width: 200svh; }

  .mark-layout { grid-template-columns: auto minmax(0, 1fr); padding-inline: 6vw; }
  .mark-dock { width: 34svh; }

  .alogo-scene .stage { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 8vw; }
  .alogo-mockup { width: calc(66svh * 1120 / 747); }

  .board { width: calc(80svh * 893 / 610); }

  .apal-scene .stage { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; column-gap: 6vw; padding-inline: 6vw; }
  .apal-emitter { grid-row: 2; grid-column: 1; width: 34vw; max-width: 90svh; align-self: center; }
  .apal-scene h2 { grid-row: 1; grid-column: 1 / -1; }
  .apal-scene .swatches { grid-row: 2; grid-column: 2; }
  .apal-note { grid-row: 3; grid-column: 1 / -1; }

  .illus-grid { max-width: 220svh; margin-inline: auto; grid-template-columns: .7fr .9fr 1.4fr; }

  .pose-sheet { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); align-items: center; inset-block: calc(var(--bar) + 18svh) 14svh; }

  .system-grid { max-width: 220svh; }
  .pack-hero { width: calc(64svh * 1120 / 559); }
}

/* Reduced motion: the horizontal track becomes a wrapped gallery. */
@media (prefers-reduced-motion: reduce) {
  .apps-scene .stage { height: auto; display: grid; gap: 2rem; padding: calc(var(--bar) + 3svh) var(--gutter) 6svh; --h: 40svh; }
  .apps-head, .apps-note, .apps-track { position: static; }
  .apps-track { flex-wrap: wrap; width: auto; }
  .app-in { max-width: 100%; height: auto; aspect-ratio: var(--ar); }
}
