/* Abigail Chylek — site styles
   White paper, huge wide grotesque, handwriting accents, few images. No framework, no build step. */

@font-face { font-family: "Syne"; font-weight: 400 800; font-display: swap;
  src: url("../fonts/syne-latin-wght-normal.woff2") format("woff2-variations");
  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: "Syne"; font-weight: 400 800; font-display: swap;
  src: url("../fonts/syne-latin-ext-wght-normal.woff2") format("woff2-variations");
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Caveat"; font-weight: 400; font-display: swap;
  src: url("../fonts/caveat-latin-400-normal.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: "Caveat"; font-weight: 400; font-display: swap;
  src: url("../fonts/caveat-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  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: "Inter"; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Caveat and Cormorant: fixed weights cut from the variable fonts (smaller files, only these weights are used) */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }

:root {
  --display: "Syne", "Arial Black", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1.25rem, 6vw, 7.5rem);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .13 0 0 0 0 .12 0 0 0 0 .1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* hand-drawn underline, used as a mask so it takes the colour of the text */
  --scribble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 30 4, 60 9, 95 6 S 160 3, 198 7 M6 10 C 50 7, 120 10, 190 8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 14px 34px -14px rgba(0, 0, 0, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* the active colour world; main.js blends these from section to section while scrolling */
  --bg: #b4b4b5; --ink: #141414; --muted: #38383a; --accent: #1b4a4f; --accent-2: #861c21; --line: rgba(20, 20, 20, .22);
}

/* ---------- Colour worlds, taken from the photos (never blue together with yellow) ---------- */
.t-concrete   { --t-bg: #b4b4b5; --t-ink: #141414; --t-muted: #38383a; --t-accent: #1b4a4f; --t-accent-2: #861c21; --t-line: rgba(20, 20, 20, .22); }
.t-terracotta { --t-bg: #8a3e21; --t-ink: #fbf0e6; --t-muted: #f0d3c1; --t-accent: #fff3ea; --t-accent-2: #ffd3bd; --t-line: rgba(255, 240, 230, .3); }
.t-gallery    { --t-bg: #e8e6e2; --t-ink: #1b1b1b; --t-muted: #55534e; --t-accent: #1f5a60; --t-accent-2: #a3242a; --t-line: #cfcbc4; }
.t-olive      { --t-bg: #2d2f21; --t-ink: #f1eee2; --t-muted: #c9c6b3; --t-accent: #f1eee2; --t-accent-2: #e9a98e; --t-line: rgba(241, 238, 226, .2); }
.t-studio     { --t-bg: #eeece8; --t-ink: #1b1b1b; --t-muted: #55534e; --t-accent: #1f5a60; --t-accent-2: #a2401f; --t-line: #d6d2cb; }
.t-emerald    { --t-bg: #0f3b31; --t-ink: #eef2ec; --t-muted: #b4c8be; --t-accent: #eef2ec; --t-accent-2: #f2a48d; --t-line: rgba(238, 242, 236, .2); }
.t-burgundy   { --t-bg: #4a121b; --t-ink: #f9edea; --t-muted: #e3c6c3; --t-accent: #f9edea; --t-accent-2: #f5a6a1; --t-line: rgba(249, 237, 234, .3); }
.t-blush      { --t-bg: #ead8ce; --t-ink: #1b1b1b; --t-muted: #574a44; --t-accent: #8e3423; --t-accent-2: #b0392a; --t-line: #d4bfb3; }
.t-walnut     { --t-bg: #4a3223; --t-ink: #f6ece2; --t-muted: #dccab8; --t-accent: #f6ece2; --t-accent-2: #f0a58f; --t-line: rgba(246, 236, 226, .25); }
.t-forest     { --t-bg: #1b2e27; --t-ink: #eef0ea; --t-muted: #bccac1; --t-accent: #eef0ea; --t-accent-2: #e9a98e; --t-line: rgba(238, 240, 234, .2); }
.t-clay       { --t-bg: #c49c84; --t-ink: #1b1b1b; --t-muted: #4a3a32; --t-accent: #5a2a1c; --t-accent-2: #7d1f22; --t-line: rgba(27, 27, 27, .2); }
.t-sand       { --t-bg: #f1efe9; --t-ink: #1b1b1b; --t-muted: #5c5a56; --t-accent: #1f5a60; --t-accent-2: #a3242a; --t-line: #d9d6cf; }

[data-theme] {
  --bg: var(--t-bg); --ink: var(--t-ink); --muted: var(--t-muted); --accent: var(--t-accent); --accent-2: var(--t-accent-2); --line: var(--t-line);
  background: var(--bg) var(--grain); color: var(--ink);
}
/* with JS: sections are transparent and the page colour flows from one world into the next */
.morph [data-theme] { --bg: inherit; --ink: inherit; --muted: inherit; --accent: inherit; --accent-2: inherit; --line: inherit; background: transparent; }
.morph body { transition: background-color 1.1s ease, color 1.1s ease; }
/* the footer keeps its own colour, so the last section stays in its world */
.morph .foot[data-theme] { --bg: var(--t-bg); --ink: var(--t-ink); --muted: var(--t-muted); --accent: var(--t-accent); --accent-2: var(--t-accent-2); --line: var(--t-line); background: var(--t-bg) var(--grain); color: var(--t-ink); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg) var(--grain); color: var(--ink);
  font: 400 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
/* make saving images a little harder: no dragging, no selection, no iOS long-press menu */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 700; }
figure { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: #141414; color: #fff; padding: .6rem 1rem; }
.skip:focus { top: 1rem; }
.wrap { padding-inline: var(--gutter); max-width: 100rem; margin-inline: auto; }

/* ---------- small type helpers ---------- */
.caps { font-family: var(--display); font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.num { font-family: var(--hand); font-size: 1.6rem; line-height: 1; color: var(--accent-2); margin: 0 0 .6rem; transition: color 1.1s ease; }
.hand { font-family: var(--hand); }
.scribble, .scribble-hover, .btn { position: relative; text-decoration: none; padding-bottom: .35em; }
.scribble::after, .scribble-hover::after, .btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: .5em; background: currentColor;
  -webkit-mask: var(--scribble) center / 100% 100% no-repeat; mask: var(--scribble) center / 100% 100% no-repeat;
}
.scribble-hover::after { transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.scribble-hover:hover::after, .scribble-hover:focus-visible::after, .scribble-hover[aria-current]::after { transform: none; }

/* ---------- Header ---------- */
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 1rem; padding: clamp(1.25rem, 3.5vw, 3rem) var(--gutter) 0; position: relative; z-index: 5; }
.top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.top a { display: inline-block; padding: .6rem 0; transition: color .3s; }
.top a:hover, .top a:focus-visible { color: var(--accent-2); }
.top__right { justify-self: end; text-align: left; }
.top__logo img { width: clamp(4.4rem, 9vw, 6.4rem); height: auto; transform: rotate(-6deg); }

/* ---------- Hero: wall, name, Abigail (cut-out on top of the name) ---------- */
.hero { position: relative; }
.hero__stage { position: relative; display: grid; justify-items: center; overflow: clip; margin-top: clamp(-6rem, -6vw, -1rem); }
.hero__frame { --p: 0; position: relative; width: 100%; aspect-ratio: 1400 / 2087; }
@media (min-width: 760px) { .hero__frame { width: auto; height: clamp(34rem, 92svh, 72rem); } }
.hero__img, .hero__cut { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 50% 85%; transform: scale(calc(1 + var(--p) * .07)); }
.hero__img { -webkit-mask: linear-gradient(transparent, #000 10%, #000 82%, transparent); mask: linear-gradient(transparent, #000 10%, #000 82%, transparent); }
@media (min-width: 760px) {
  .hero__img {
    -webkit-mask: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent), linear-gradient(transparent, #000 8%, #000 86%, transparent); -webkit-mask-composite: source-in;
    mask: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent), linear-gradient(transparent, #000 8%, #000 86%, transparent); mask-composite: intersect;
  }
}
.hero__cut { z-index: 2; pointer-events: none; }
.hero__name {
  position: absolute; left: 50%; top: 40%; width: 100vw; margin: 0 0 0 -50vw;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; text-align: center; color: #141414;
  font-size: clamp(2.9rem, 13.8vw, 17rem); line-height: .86; letter-spacing: -.035em; pointer-events: none;
}
/* first line behind Abigail, second line in front of her */
.hero__name span { display: block; position: relative; z-index: 1; transform: translateX(calc(var(--p) * -22vw)); }
.hero__name span + span { z-index: 3; transform: translateX(calc(var(--p) * 22vw)); }
.js .hero__img, .js .hero__cut { animation: hero-in 1.8s var(--ease) both; }
.js .hero__name span { animation: name-in 1.4s var(--ease) .25s both; }
.js .hero__name span + span { animation-delay: .4s; }
/* no fade: the photo must be visible as soon as it arrives (it is the largest element, LCP) */
@keyframes hero-in { from { scale: 1.08; } }
@keyframes name-in { from { opacity: 0; translate: 0 .5em; } }
.hero__foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: clamp(1.5rem, 3vw, 2.5rem) var(--gutter) clamp(3rem, 7vw, 6rem); }
.hero__claim { justify-self: start; max-width: 13ch; margin: 0; font-family: var(--hand); font-size: clamp(1.6rem, 3.2vw, 2.8rem); line-height: 1.05; color: var(--accent); transform: rotate(-5deg); }
.hero__sig { width: clamp(5.5rem, 10vw, 9rem); transform: rotate(-8deg); }
.hero__meta { justify-self: end; text-align: right; color: var(--muted); margin: 0; }
@media (max-width: 759px) {
  .hero__foot { grid-template-columns: 1fr; justify-items: center; gap: 1.2rem; padding-top: 0; }
  .hero__claim { justify-self: center; text-align: center; max-width: none; transform: rotate(-3deg); }
  .hero__meta, .hero__sig { display: none; }
}

/* ---------- Exhibition (terracotta; the portrait melts into the colour) ---------- */
.band { position: relative; overflow: clip; }
.band__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.band__photo { aspect-ratio: 3 / 2; -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent); }
.band__grid { position: relative; z-index: 1; display: grid; gap: 3rem; padding-block: 0 clamp(4rem, 10vw, 8rem); margin-top: -3rem; }
@media (min-width: 900px) {
  .band__photo { position: absolute; inset: 0 0 0 auto; width: 70%; aspect-ratio: auto; -webkit-mask: linear-gradient(90deg, transparent, #000 45%), linear-gradient(#000 78%, transparent); -webkit-mask-composite: source-in; mask: linear-gradient(90deg, transparent, #000 45%), linear-gradient(#000 78%, transparent); mask-composite: intersect; }
  .band__grid { min-height: clamp(36rem, 52vw, 50rem); align-content: center; padding-block: clamp(5rem, 9vw, 8rem); margin-top: 0; max-width: 100rem; }
  .band__grid > * { max-width: 34rem; }
}
.h-display { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.2rem, 6vw, 5.2rem); line-height: .95; letter-spacing: -.02em; }
.band .lead { max-width: 36ch; margin-top: 1.5rem; font-size: 1.05rem; }
.facts { margin: 0; display: grid; gap: 1.4rem; }
.facts div { border-top: 1px solid var(--line); padding-top: .9rem; }
.facts dt { margin-bottom: .2rem; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.55rem; line-height: 1.2; }
.circled { position: relative; display: inline-block; }
.circled svg { position: absolute; inset: -.55em -.9em; width: calc(100% + 1.8em); height: calc(100% + 1.1em); overflow: visible; pointer-events: none; }
.circled path { fill: none; stroke: var(--accent-2); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .circled.reveal path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.55, .1, .25, 1) .4s; }
.js .circled.reveal.is-visible path { stroke-dashoffset: 0; }

/* ---------- Works (white gallery) ---------- */
.works-sec { padding-block: clamp(5rem, 12vw, 10rem); }
.works { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(4rem, 10vw, 7rem); }
@media (min-width: 900px) {
  .works { grid-template-columns: repeat(12, 1fr); gap: 0 clamp(1.5rem, 3vw, 3rem); align-items: start; }
  .works > li:nth-child(1) { grid-column: 1 / span 4; margin-top: clamp(10rem, 18vw, 18rem); }
  .works > li:nth-child(2) { grid-column: 8 / span 4; }
}
.work { position: relative; }
.work__row { display: flex; align-items: flex-end; gap: 1rem; }
.work__vtitle { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.5rem); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; margin: 0; }
@media (max-width: 759px) { .work__vtitle { display: none; } }
.work__open { flex: 1; display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.sheet { position: relative; background: #fff; box-shadow: var(--shadow); }
.sheet--photo { overflow: hidden; }
.sheet img { width: 100%; }
.work__meta { margin-top: 1.4rem; display: grid; gap: .25rem; max-width: 32rem; }
.work__title { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.9rem; line-height: 1.1; }
.work__details { color: var(--muted); font-size: .85rem; margin: 0; }
.work__note { font-size: .95rem; margin: .5rem 0 0; }
.work__footer { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin-top: .8rem; }
.status { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 600; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--sold, .status--nfs { color: var(--muted); }
.status .price { color: var(--ink); }
.btn { display: inline-block; font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding: .75rem 0 .8rem; background: none; border: 0; cursor: pointer; transition: color .3s, opacity .3s; }
.btn::after { height: .45em; }
.btn:hover { opacity: .7; }
.btn--buy { color: var(--accent-2); }

/* the framed drawings in Abigail's hands */
.duo { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 clamp(1rem, 3vw, 3rem); margin-top: clamp(5rem, 12vw, 10rem); align-items: start; }
.duo__a { grid-column: 1 / span 9; }
.duo__b { grid-column: 5 / span 8; margin-top: clamp(7rem, 34vw, 10rem); }
@media (min-width: 900px) { .duo__a { grid-column: 2 / span 5; } .duo__b { grid-column: 8 / span 4; margin-top: clamp(8rem, 16vw, 16rem); } }
.duo img { width: 100%; box-shadow: var(--shadow); }
.duo figcaption { font-family: var(--hand); font-size: 1.45rem; color: var(--accent); margin-top: .7rem; transform: rotate(-2deg); }
.duo figcaption cite { font-style: normal; }
/* upcoming drawings: work in progress, below the framed photos */
.upcoming { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 clamp(1rem, 3vw, 3rem); margin-top: clamp(5rem, 12vw, 10rem); }
.upcoming__label { grid-column: 1 / -1; margin: 0 0 1.4rem; color: var(--muted); }
.upcoming__photo { grid-column: 1 / -1; margin: 0; }
@media (min-width: 900px) { .upcoming__label { grid-column: 3 / span 8; } .upcoming__photo { grid-column: 3 / span 8; } }
.upcoming__photo img { width: 100%; box-shadow: var(--shadow); }
.upcoming__photo figcaption { font-family: var(--hand); font-size: 1.45rem; color: var(--accent); margin-top: .7rem; transform: rotate(-2deg); }

/* tilt (enabled by main.js on mouse devices) */
.sheet.tilt { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .9s var(--ease), box-shadow .9s; }
.sheet.tilt.is-tilting { transition: transform .15s ease-out, box-shadow .5s; box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 30px 60px -20px rgba(0, 0, 0, .35); }
.tilt img { transition: transform 1.4s var(--ease); }
.tilt.is-tilting img { transform: scale(1.03); }
.tilt::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at calc(100% - var(--mx)) calc(100% - var(--my)), rgba(0, 0, 0, .14), rgba(0, 0, 0, 0) 60%);
  mix-blend-mode: overlay; opacity: 0; transition: opacity .6s;
}
.tilt.is-tilting::after { opacity: 1; }

/* ---------- Statement (olive grove) ---------- */
.statement { position: relative; display: grid; overflow: clip; }
.statement__photo { aspect-ratio: 4 / 5; -webkit-mask: linear-gradient(#000 65%, transparent); mask: linear-gradient(#000 65%, transparent); }
.statement__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.statement__text { padding: 0 var(--gutter) clamp(5rem, 12vw, 9rem); margin-top: -4rem; position: relative; }
@media (min-width: 900px) {
  .statement { grid-template-columns: 1fr 1fr; align-items: center; min-height: 100vh; }
  .statement__photo { aspect-ratio: auto; height: 100%; min-height: 100vh; -webkit-mask: linear-gradient(90deg, #000 55%, transparent); mask: linear-gradient(90deg, #000 55%, transparent); }
  .statement__text { padding: clamp(4rem, 8vw, 8rem) var(--gutter) clamp(4rem, 8vw, 8rem) 0; margin: 0; }
}
.statement .h-display { max-width: 16ch; font-size: clamp(2rem, 4.6vw, 4.4rem); }
.statement .more { margin-top: 2.2rem; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding-block: clamp(2rem, 6vw, 5rem); }
.marquee__track { display: flex; width: max-content; animation: run 48s linear infinite; }
.marquee__track span { font-family: var(--serif); font-weight: 400; text-transform: uppercase; font-size: clamp(3rem, 9vw, 8.5rem); line-height: 1; white-space: nowrap; padding-right: .5em; }
.marquee__track i { font-family: var(--hand); font-style: normal; color: var(--accent-2); text-transform: none; }
@keyframes run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- About (studio) ---------- */
.about { padding-block: 0 clamp(5rem, 12vw, 10rem); }
.about__wide { height: clamp(20rem, 58vw, 52rem); overflow: hidden; margin-bottom: clamp(3rem, 8vw, 6rem); }
.about__wide img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 35%; margin-top: -9%; }
.about__grid { display: grid; gap: clamp(2.5rem, 6vw, 6rem); }
@media (min-width: 900px) { .about__grid { grid-template-columns: .8fr 1.2fr; align-items: start; } }
.about__photo img { width: 100%; box-shadow: var(--shadow); }
.about__photo figcaption { font-family: var(--hand); font-size: 1.4rem; color: var(--accent); margin-top: .8rem; transform: rotate(-2deg); }
.about__text { max-width: 36rem; }
.about .h-display { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 1.4rem; }
.lists { display: grid; gap: 2rem; margin-top: 3rem; }
@media (min-width: 600px) { .lists { grid-template-columns: 1fr 1fr; } }
.lists h3 { font-family: var(--display); font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .9rem; }
.lists ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; color: var(--muted); }

/* ---------- Portraits strip (emerald): scrolls sideways while you scroll down ---------- */
.strip { position: relative; padding-block: clamp(4rem, 10vw, 7rem); }
.strip__head { display: grid; gap: .4rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.strip__head .btn { justify-self: start; margin-top: 1rem; }
.strip__track { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; gap: clamp(1rem, 2.5vw, 2.5rem); align-items: center; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.strip__track::-webkit-scrollbar { display: none; }
.strip__track li { flex: 0 0 auto; scroll-snap-align: center; }
.strip__track img { height: min(62vh, 30rem); width: auto; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.strip__track li:nth-child(even) { margin-top: 4rem; }
.strip__more a { display: grid; place-items: center; align-content: center; gap: .3rem; width: min(42vw, 15rem); aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; text-decoration: none; transition: background-color .4s, color .4s; }
.strip__more a:hover { background: var(--ink); color: var(--bg); }
.strip__more .hand { font-size: 1.7rem; color: var(--accent-2); }
@media (min-width: 760px) {
  .js-strip .strip { padding: 0; }
  .js-strip .strip__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
  .js-strip .strip__track { overflow: visible; transform: translate3d(calc(var(--x, 0) * -1px), 0, 0); will-change: transform; }
}

/* ---------- Contact (burgundy) ---------- */
.contact { padding-block: clamp(5rem, 12vw, 9rem); }
.contact__grid { display: grid; gap: clamp(3rem, 7vw, 6rem); }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1fr; } }
.contact .lead { margin-top: 1.5rem; }
.contact .num { margin-bottom: clamp(3.6rem, 7vw, 5.5rem); } /* room for Zoe on the heading */
.contact__mail { display: inline-block; margin-top: 1.6rem; font-family: var(--serif); font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
.contact__ig { display: flex; align-items: center; gap: .55rem; width: max-content; min-height: 44px; margin-top: 1rem; font-family: var(--display); font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-decoration: none; }
.contact__ig svg { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 1.8; }
.contact__ig svg .dot { fill: currentColor; stroke: none; }
.contact__ig:hover, .contact__ig:focus-visible { text-decoration: underline; text-underline-offset: .25em; }
.form { display: grid; gap: 1.6rem; }
.field { display: grid; gap: .35rem; }
.field label { font-family: var(--display); font-weight: 600; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field textarea { font: inherit; font-size: 1.05rem; color: inherit; background: transparent; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; padding: .5rem 0; width: 100%; opacity: .9; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; opacity: 1; box-shadow: 0 1px 0 currentColor; }
.hp { display: none !important; }
.form__status { min-height: 1.5em; margin: 0; font-weight: 600; }
.form__note { font-size: .8rem; color: var(--muted); margin: 0; }
.form button { justify-self: start; font-size: .85rem; }

/* ---------- Footer ---------- */
.foot { padding-block: clamp(4rem, 8vw, 6rem) 2.5rem; position: relative; overflow: hidden; }
.foot__grid { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot h3 { font-family: var(--display); font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; color: var(--muted); }
.foot a { text-decoration: none; display: inline-block; padding-block: .35rem; }
.foot a:hover { text-decoration: underline; }
.foot__sig { width: 7.5rem; transform: rotate(-6deg); margin-bottom: 1rem; }
.foot__claim { font-size: 1.6rem; line-height: 1.2; }
.foot__copy { margin-top: 3.5rem; font-size: .85rem; color: var(--muted); }
.foot .doodle { position: absolute; left: 34%; bottom: -3rem; width: 14rem; color: var(--accent-2); opacity: .9; }
.foot .doodle path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* to top */
.totop { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 20; width: 4.6rem; height: 4.6rem; border-radius: 50%; border: 1px solid #141414; background: rgba(252, 252, 250, .85); color: #141414; display: grid; place-items: center; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity .3s; }
.totop.is-shown { opacity: 1; pointer-events: auto; }

/* reveal + image wipe */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s ease, transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .clip img { clip-path: inset(10% 14% 10% 14%); scale: 1.12; transition: clip-path 1.5s var(--ease), scale 2s var(--ease); }
.js .clip.is-visible img { clip-path: inset(0); scale: 1; }
[data-speed] { transform: translate3d(0, var(--py, 0px), 0); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .clip img { opacity: 1; transform: none; clip-path: none; scale: 1; transition: none; }
  .js .circled.reveal path { stroke-dashoffset: 0; transition: none; }
  .js .hero__img, .js .hero__cut, .js .hero__name span { animation: none; }
}

/* lightbox */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(252, 252, 250, .97); color: #1b1b1b; }
.lightbox::backdrop { background: rgba(252, 252, 250, .97); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__bar { display: flex; justify-content: flex-end; padding: .75rem; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(.75rem, 6vw, 5rem); }
.lightbox__stage img { max-width: 100%; max-height: calc(100vh - 11rem); max-height: calc(100dvh - 11rem); width: auto; height: auto; object-fit: contain; box-shadow: var(--shadow); }
.lightbox__caption { text-align: center; padding: 1rem var(--gutter) 1.5rem; }
.lightbox__caption cite { font-family: var(--serif); font-size: 1.6rem; display: block; }
.lightbox__caption span { font-size: .8rem; color: #5c5a56; }
.lightbox button { appearance: none; border: 0; background: transparent; color: #1b1b1b; cursor: pointer; width: 3rem; height: 3rem; display: grid; place-items: center; font: 300 1.9rem/1 var(--sans); }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: .25rem; } .lightbox__next { right: .25rem; }

/* ---------- Portraits page ---------- */
.pt-intro { text-align: center; padding: clamp(2rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 6rem); overflow-x: clip; }
.pt-intro__title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(3.2rem, 14.5vw, 16rem); line-height: .82; letter-spacing: -.04em; margin: 0; }
.pt-intro__title > span { display: block; }
.pt-intro__title > span + span { padding-left: .55em; }
.js .pt-intro__title > span { animation: name-in 1.3s var(--ease) .15s both; }
.js .pt-intro__title > span + span { animation-delay: .3s; }
.pt-intro__hand { font-size: clamp(1.8rem, 3.4vw, 2.8rem); color: var(--accent-2); transform: rotate(-4deg); margin-top: 1.5rem; }

.chap { position: relative; overflow: clip; display: grid; gap: clamp(1.5rem, 4vw, 3rem); padding-block: clamp(4rem, 10vw, 9rem); }
.chap__num { position: absolute; z-index: 0; top: 2%; right: var(--gutter); margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(9rem, 34vw, 30rem); line-height: .8; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--line); pointer-events: none; }
.chap__photo { position: relative; z-index: 1; padding-inline: var(--gutter); }
.chap__photo img { width: 100%; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55); }
.chap__text { position: relative; z-index: 1; padding-inline: var(--gutter); max-width: 40rem; }
.chap__title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 5.4vw, 5rem); line-height: .92; letter-spacing: -.02em; }
.chap__title cite { font-family: var(--serif); font-style: italic; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 1.15em; }
.chap__line { margin: 1rem 0 0; font-size: 1.05rem; color: var(--muted); }
.chap__hand { font-size: 2rem; color: var(--accent-2); transform: rotate(-3deg); margin-top: .5rem; }
.chap__quote { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 3.3rem); line-height: 1.1; }
.chap__quote p { margin: 0; }
.chap__quote p::before { content: "“"; color: var(--accent-2); } .chap__quote p::after { content: "”"; color: var(--accent-2); }
.chap .btn { margin-top: 1.6rem; }
@media (min-width: 900px) {
  .chap--left, .chap--right { grid-template-columns: repeat(12, 1fr); align-items: center; min-height: 100vh; }
  .chap--left .chap__photo { grid-column: 1 / span 6; padding-right: 0; }
  .chap--left .chap__text { grid-column: 8 / span 5; padding: 0 var(--gutter) 0 0; }
  .chap--right .chap__photo { grid-column: 7 / span 6; padding-left: 0; grid-row: 1; }
  .chap--right .chap__text { grid-column: 1 / span 5; grid-row: 1; padding: 0 0 0 var(--gutter); justify-self: end; text-align: right; }
  .chap--right .chap__num { right: auto; left: var(--gutter); }
  .chap--right .btn { margin-left: auto; }
  .chap--wide .chap__photo { padding-inline: 7vw; }
  .chap--wide .chap__text { justify-self: center; text-align: center; max-width: 52rem; }
  .chap--left .chap__photo img, .chap--right .chap__photo img { max-height: 92vh; width: auto; margin-inline: auto; }
}
/* 01: the outline in the rust of Abigail's shirt in photo 01 */
.chap .chap__num--fill { -webkit-text-stroke: 2px #a8452f; }
/* wide chapters: the big number stands above the photo instead of hiding behind it */
.chap--wide { padding-top: calc(clamp(9rem, 34vw, 30rem) * .72); }
.chap--wide .chap__num { z-index: 2; top: clamp(1rem, 2vw, 2rem); -webkit-text-stroke-color: color-mix(in srgb, var(--ink) 45%, transparent); }
@media (max-width: 899px) { .chap { padding-top: calc(clamp(9rem, 34vw, 30rem) * .72); } .chap__num { z-index: 2; top: clamp(1rem, 3vw, 2rem); -webkit-text-stroke-color: color-mix(in srgb, var(--ink) 45%, transparent); } }
.pt-end { padding-block: clamp(5rem, 12vw, 10rem); }
.pt-end .h-display { max-width: 18ch; }
.pt-end__links { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 2.2rem; }

/* ---------- The small ones: Abigail's cats, cut out, standing in front of the title ---------- */
.cats { position: relative; overflow: clip; padding-block: clamp(4rem, 10vw, 8rem) clamp(4rem, 9vw, 7rem); text-align: center; }
.cats__title { position: relative; z-index: 0; margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(3.4rem, 15vw, 15rem); line-height: .84; letter-spacing: -.04em; color: #f6ece2; }
.cats__title span { display: block; transform: translate3d(calc(var(--dx, 0) * 1px), 0, 0); }
.cats__row { position: relative; z-index: 1; list-style: none; margin: clamp(-9rem, -11vw, -2.5rem) 0 0; padding: 0 var(--gutter); display: flex; justify-content: center; align-items: flex-end; }
.cats__cat { position: relative; margin: 0 clamp(.4rem, 2vw, 2.2rem); }
.cats__cat { perspective: 900px; }
.cats__cat .cat > img:first-child { width: auto; height: var(--h); }
.cats__cat .cat { filter: drop-shadow(0 16px 12px rgba(40, 20, 10, .22)); }
.cats__cat--miu { --h: clamp(8rem, 34vw, 34rem); }
.cats__cat--bella { --h: clamp(7.5rem, 31vw, 32rem); z-index: 1; }
.cats__cat--zoe { --h: clamp(8.5rem, 36vw, 36rem); }
.cats__cat .hand { margin: .3rem 0 0; font-size: clamp(1.4rem, 2.6vw, 2.3rem); color: var(--accent-2); transform: rotate(-4deg); }
.cats__note { max-width: 34ch; margin: clamp(2rem, 5vw, 3.5rem) auto 0; padding-inline: var(--gutter); font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.2; }
@media (min-width: 900px) {
  .cats__title { font-size: min(12.5vw, 15rem); }
  .cats__cat--miu { --h: min(30vw, 60vh); }
  .cats__cat--bella { --h: min(28vw, 56vh); }
  .cats__cat--zoe { --h: min(31vw, 62vh); }
}

/* cats walking in while you scroll (main.js sets --k from 0 to 1) */
.peek { --k: 1; pointer-events: none; perspective: 900px; }
.peek .cat { will-change: transform; }
.peek__name { position: absolute; margin: 0; font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--accent-2); transform: rotate(-6deg); opacity: var(--k); }
.peek--walk { position: relative; z-index: 2; }
/* Miu walks along the top edge of the second gallery photo */
.duo__b { position: relative; }
.duo .duo__cat { position: absolute; left: 30%; top: 0; width: 66%; transform: translateY(-97%); }
@media (min-width: 900px) { .duo .duo__cat { left: 6%; width: 72%; } }
.peek--walk .cat { opacity: min(1, calc(var(--k) * 2.5)); transform: translate3d(calc((var(--k) - 1) * 90%), calc(sin(var(--k) * 19rad) * (1 - var(--k)) * 1.6%), 0); }
.peek--walk .peek__name { left: 30%; top: 4%; font-size: clamp(1.2rem, 1.8vw, 1.6rem); }
.duo .duo__cat img { box-shadow: none; clip-path: none !important; scale: 1 !important; }
.duo .duo__cat .cat { filter: drop-shadow(0 6px 5px rgba(40, 30, 20, .3)); }

/* cats lying on the letters: the belly line in the image (--ledge) sits exactly on the cap line (--cap) */
.perch { position: relative; display: inline-block; }
.perch__cat { position: absolute; z-index: 2; pointer-events: none; perspective: 900px; top: var(--cap, .1em); transform: translateY(calc(var(--ledge) * -100%)); }
.perch__cat .cat { transform-origin: 50% var(--ledge); filter: drop-shadow(.04em .1em .07em rgba(0, 0, 0, .45)); }
.perch__cat--bella { --ledge: .5511; --cap: .093em; width: 1.2em; left: 2.28em; }
.perch__cat--bella .cat { scale: 1.05 1; } /* Bella is a little broader than the generated body */
.perch__cat--zoe { --ledge: .5566; --cap: .152em; --w: 2.3em; width: var(--w); left: calc(100% + .3em - var(--w) * .72); }
.perch-gap { margin-left: .42em; }
.perch__cat--zoe img { filter: drop-shadow(.06em .14em .08em rgba(30, 5, 10, .55)); }
/* contact shadow under the belly, painted only inside the letters (a transparent copy of the word clipped to the text) */
.perch__shade::before { content: attr(data-text); }
.perch__shade { position: absolute; inset: 0; z-index: 1; color: transparent; pointer-events: none; white-space: nowrap;
  background: radial-gradient(ellipse var(--sw, 0px) var(--sh, 0px) at var(--sx, 0px) var(--sy, 0px), rgba(25, 5, 10, .78), rgba(25, 5, 10, .38) 45%, transparent 75%) no-repeat;
  -webkit-background-clip: text; background-clip: text; }
.js .perch--load .cat { animation: hop 1.1s cubic-bezier(.3, 1.4, .5, 1) .6s both; }
.js .perch--view .cat { opacity: 0; }
.js .perch--view.is-landed .cat { animation: hop 1.1s cubic-bezier(.3, 1.4, .5, 1) .2s both; }
@keyframes hop { 0% { opacity: 0; translate: 0 -55%; } 55% { opacity: 1; } 78% { translate: 0 0; } 100% { opacity: 1; translate: 0 0; } }
.js .perch:has(.perch--load) .perch__shade { animation: shade-in .5s ease 1.45s both; }
.js .perch:has(.perch--view) .perch__shade { opacity: 0; }
.js .perch:has(.perch--view.is-landed) .perch__shade { animation: shade-in .5s ease 1.05s both; }
@keyframes shade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .js .perch__shade { animation: none !important; opacity: 1 !important; } .js .perch--load .cat, .js .perch--view.is-landed .cat { animation: none; opacity: 1; } .js .perch--view .cat { opacity: 1; } }

/* every cat: a second frame with the mouth open (meow) and a 3D tilt on hover (main.js) */
.cat { position: relative; display: block; pointer-events: auto; transition: rotate .7s var(--ease); }
.cat > img { display: block; width: 100%; height: auto; }
.cat .cat__meow { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .07s; pointer-events: none; }
.cat.is-meowing .cat__meow { opacity: 1; }
.cat.is-tilting { transition: rotate .12s ease-out; }
@media (hover: hover) { .cat { cursor: pointer; } }

/* the three small ones under the about text */
.about__cats { list-style: none; margin: 2.5rem 0 0; padding: 0; display: flex; align-items: flex-end; gap: .2rem; }
.about__cats img { width: auto; height: clamp(6rem, 18vw, 9.5rem); filter: drop-shadow(0 8px 6px rgba(40, 20, 10, .16)); }
.about__cats li:nth-child(2) img { height: clamp(7rem, 21vw, 11rem); }
.about__cats .hand { margin-left: .8rem; padding-bottom: .4rem; font-size: clamp(1.15rem, 3.6vw, 1.45rem); line-height: 1.1; white-space: nowrap; color: var(--accent-2); transform: rotate(-4deg); }
.about__cats .hand a { text-decoration: none; display: inline-block; padding: .4rem; margin: -.4rem; }
.about__cats .hand a:hover, .about__cats .hand a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

/* ---------- Simple pages (imprint, 404) ---------- */
.page { padding-block: clamp(3rem, 9vw, 7rem); }
.page h1 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 7vw, 5rem); line-height: .95; letter-spacing: -.02em; margin-bottom: 2.5rem; }
.page h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.3rem; letter-spacing: .02em; margin: 3rem 0 1rem; }
.page h3 { font-family: var(--display); font-weight: 700; font-size: 1rem; margin: 2rem 0 .6rem; }
.prose { max-width: 46rem; }
.page address { font-style: normal; }
.foot--small { padding-block: 2rem; }
.foot--small .foot__copy { margin: 0; }

[data-todo] { background: rgba(163, 36, 42, .06); }
.show-todo [data-todo] { outline: 2px dashed #c0392b; }
