/* Kartik Reddy portfolio, v2.
   Darkroom black, fiber paper, silver, one safelight red used as light, not as an accent.
   Anton for the giant caps (filled and outlined), Instrument Serif for the pencil notes and the body. */

:root {
  --black: #151210;
  --black-2: #1d1916;
  --paper: #ece4d4;
  --paper-2: #e2d8c4;
  --silver: #a29a8d;
  --silver-dark: #6f685e;
  --ink: #1b1714;
  --safelight: #c0392b;
  --line: rgba(236, 228, 212, .09);
  --line-strong: rgba(236, 228, 212, .22);

  --display: "Anton", "Impact", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  --gut: clamp(20px, 4vw, 64px);
  --max: 1440px;
  --nav-h: 76px;

  --t-giant: clamp(84px, 17vw, 300px);
  --t-huge: clamp(64px, 11vw, 200px);
  --t-big: clamp(44px, 6.4vw, 112px);
  --t-h3: clamp(30px, 3.2vw, 48px);
  --t-lead: clamp(24px, 2.4vw, 38px);
  --t-body: clamp(19px, 1.35vw, 22px);
  --t-small: 17px;
  --t-note: clamp(30px, 3.6vw, 58px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--black); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { background-color: var(--black); background-image: url('/assets/clay-tile.webp'); background-repeat: repeat; background-size: 1024px 1024px; color: var(--paper); font-family: var(--serif); font-size: var(--t-body); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--safelight); color: var(--paper); }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; border-radius: 2px; }
.on-paper :focus-visible { outline-color: var(--ink); }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }

/* the column lines behind everything, like the edges of a contact sheet */
.grid-lines { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: grid; grid-template-columns: repeat(6, 1fr); padding: 0 var(--gut); }
.grid-lines span { border-left: 1px solid var(--line); }
.grid-lines span:last-child { border-right: 1px solid var(--line); }
@media (max-width: 720px) { .grid-lines { grid-template-columns: repeat(3, 1fr); } }

.wrap { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
main, footer { position: relative; z-index: 1; }

.skip { position: fixed; left: 16px; top: -100px; z-index: 200; background: var(--paper); color: var(--ink); padding: 12px 18px; font-size: 18px; text-decoration: none; border-radius: 4px; }
.skip:focus { top: 12px; }

/* ---------------- nav ---------------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); mix-blend-mode: difference; color: #fff; }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__name { font-family: var(--display); font-size: 22px; letter-spacing: .01em; text-decoration: none; text-transform: uppercase; display: inline-flex; align-items: center; gap: 12px; }
.nav__dot { width: 12px; height: 12px; border-radius: 50%; background: #fff; flex: none; }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.nav__links a, .nav__mail { font-family: var(--display); font-size: 18px; text-transform: uppercase; text-decoration: none; letter-spacing: .02em; padding: 10px 0; position: relative; }
.nav__links a::after, .nav__mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after, .nav__mail:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links a[aria-current="page"] { text-decoration: line-through; text-decoration-thickness: 2px; }
.nav__links a[aria-current="page"]::after { display: none; }
.nav__mail { border: 2px solid currentColor; border-radius: 999px; padding: 8px 20px; }
.nav__mail::after { display: none; }
.nav__mail:hover { background: #fff; color: #000; }
@media (max-width: 720px) { .nav__mail { display: none; } .nav__links { gap: 18px; min-width: 0; } .nav__links a { font-size: 17px; } .nav__name { font-size: 18px; min-width: 0; } .nav .wrap { gap: 12px; } }

/* ---------------- type helpers ---------------- */
.caps { font-family: var(--display); text-transform: uppercase; line-height: .86; letter-spacing: -.005em; }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.on-paper .outline { -webkit-text-stroke-color: var(--ink); }
.note { font-family: var(--serif); font-style: italic; font-size: var(--t-note); line-height: 1; color: var(--paper); }
.muted { color: var(--silver); }
.small { font-size: var(--t-small); }

/* a section title: the pencil note laid over two lines of caps, the outlined line drifting with the scroll */
.title { position: relative; padding-top: clamp(40px, 5vw, 92px); }
.title__note { position: absolute; z-index: 2; top: 0; left: 0; font-family: var(--serif); font-style: italic; font-size: clamp(44px, 5.6vw, 104px); line-height: 1; color: var(--paper); transform: rotate(-6deg); transform-origin: left bottom; pointer-events: none; -webkit-text-stroke: 10px var(--black); paint-order: stroke fill; }
.on-paper .title__note { color: var(--ink); -webkit-text-stroke-color: var(--paper); }
.title__caps { display: block; font-family: var(--display); text-transform: uppercase; font-size: var(--t-huge); line-height: .86; white-space: nowrap; }
.title__caps + .title__caps { margin-top: .02em; }
.title--right .title__note { left: auto; right: 4%; }

/* ---------------- hero (home) ---------------- */
.hero { position: relative; min-height: 100svh; padding-top: calc(var(--nav-h) + 24px); padding-bottom: 40px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.hero__type { position: relative; z-index: 3; pointer-events: none; }
.hero__line { display: block; font-family: var(--display); text-transform: uppercase; font-size: clamp(64px, 13.4vw, 250px); line-height: .84; white-space: nowrap; text-shadow: 0 12px 32px rgba(0,0,0,.65); }
.hero__line--2 { text-align: right; margin-top: .05em; }
.hero__prints { position: absolute; inset: 0; z-index: auto; pointer-events: none; }
.hero__prints .print { will-change: transform; }
.print--treble { will-change: transform; }
@media (max-width: 900px) { .print--treble { display: none; } }
.print { position: absolute; background: var(--paper); padding: 10px 10px 34px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); pointer-events: auto; cursor: zoom-in; user-select: none; -webkit-user-select: none; opacity: .92; touch-action: pan-y; }
.print img { width: 100%; height: 100%; object-fit: cover; background: #2a2521; -webkit-user-drag: none; }
/* Layering: each print carries its own base z-index (0 below the headline,
   2 above it, set from real overlap by the physics init) and the most
   recently touched print is raised by an incrementing counter in JS.
   The prints wrapper creates no stacking context (z-index: auto, no
   opacity/filter), so prints and the headline share one context and only
   the touched print ever moves in the stack. */
.print.is-dragging { cursor: grabbing; }
.print figcaption { position: absolute; left: 12px; right: 12px; bottom: 7px; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--silver-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__foot { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.hero__who { grid-column: 1 / span 5; }
.hero__who p { font-size: var(--t-lead); line-height: 1.2; }
.hero__facts { grid-column: 8 / span 5; display: grid; gap: 4px; color: var(--silver); font-size: var(--t-small); }
@media (max-width: 900px) {
  html { overflow-x: clip; }
  .hero__line { font-size: 18.5vw; }
  .hero__foot { grid-template-columns: 1fr; gap: 16px; }
  .hero__who, .hero__facts { grid-column: 1 / -1; }
}

/* ---------------- intro: lines that brighten as they arrive ---------------- */
.intro { padding: 22vh 0 18vh; }
.intro__text { font-size: clamp(30px, 3.6vw, 60px); line-height: 1.12; max-width: 22em; }
.reveal-word { color: var(--silver-dark); transition: color .2s linear; }
.reveal-word.is-lit { color: var(--paper); }

/* ---------------- work ---------------- */
.work { padding: 12vh 0 10vh; }
.work__lead { margin: 40px 0 72px; max-width: 26em; font-size: var(--t-lead); line-height: 1.2; }
.projects { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px 24px; }
.project { grid-column: span 6; position: relative; display: block; text-decoration: none; border: 1px solid var(--line-strong); padding: clamp(20px, 2.4vw, 36px); transition: border-color .4s ease; }
.project:hover { border-color: var(--paper); }
.project--wide { grid-column: 3 / span 8; }
.project--wide .project__print { aspect-ratio: 3 / 2; }
.project__name { font-family: var(--display); text-transform: uppercase; font-size: var(--t-big); line-height: .86; }
.project__print { margin: 28px 0 24px; background: var(--paper); padding: 12px 12px 12px; aspect-ratio: 3 / 2; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.project__print img { width: 100%; height: 100%; object-fit: cover; }
.project__print a { display: block; width: 100%; height: 100%; }
.project:hover .project__print { transform: rotate(-1.2deg) scale(1.01); }
.project__line { font-size: var(--t-body); max-width: 34em; }
.project__proof { margin-top: 12px; color: var(--silver); font-style: italic; }
.project__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { display: inline-flex; align-items: center; padding: 4px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 16px; font-style: italic; color: var(--silver); }
@media (max-width: 900px) { .project, .project--wide { grid-column: 1 / -1; } .project--wide .project__print { aspect-ratio: 4 / 3; } }

/* ---------------- journey: pinned horizontal steps ---------------- */
.journey { position: relative; }
.journey__head { padding: 14vh 0 6vh; }
.journey__pin { position: relative; height: 100svh; overflow: hidden; }
.journey__track { position: absolute; top: 0; left: 0; height: 100%; display: flex; align-items: center; gap: 0; padding-left: var(--gut); will-change: transform; }
.step { flex: none; width: min(86vw, 1060px); height: calc(100svh - var(--nav-h) - 60px); margin-top: calc(var(--nav-h) / 2); display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 3vw, 56px); padding: clamp(24px, 3vw, 48px); border-left: 1px solid var(--line-strong); align-items: start; }
.step__n { font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--silver); }
.step__word { font-family: var(--display); text-transform: uppercase; font-size: clamp(72px, 9vw, 168px); line-height: .84; margin: 8px 0 24px; }
.step__text { display: grid; gap: 14px; max-width: 30em; }
.step__text p { font-size: var(--t-body); }
.step__text b { font-weight: 400; color: var(--paper); font-style: italic; }
.step__media { position: relative; height: 100%; max-height: 640px; display: grid; place-items: center; }
.design-phones { margin: 0; max-height: 100%; }
.design-phones img { display: block; max-width: 100%; max-height: 640px; width: auto; height: auto; }
img.bare-phone { display: block; width: min(280px, 100%); height: auto; border-radius: 40px; }
.step__media .print-flat { max-height: 100%; }
.print-flat { background: var(--paper); padding: 12px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); }
.print-flat img { max-height: calc(100svh - 300px); width: auto; object-fit: contain; }
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .journey__pin { height: auto; overflow: visible; }
  .journey__track { position: static; flex-direction: column; padding: 0 var(--gut); transform: none !important; }
  .step { width: 100%; height: auto; margin: 0; grid-template-columns: 1fr; border-left: 0; border-top: 1px solid var(--line-strong); padding: 48px 0; }
  .print-flat img { max-height: 70vh; }
}

/* ---------------- paper band (art) ---------------- */
.on-paper { background: var(--paper); color: var(--ink); }
.on-paper .muted { color: var(--silver-dark); }
.art-band { padding: 16vh 0 14vh; position: relative; z-index: 2; }
.art-band__lead { margin: 36px 0 64px; font-size: var(--t-lead); line-height: 1.2; max-width: 24em; }
.contact-sheet { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.contact-sheet a { display: block; background: var(--black); padding: 8px; text-decoration: none; position: relative; }
.contact-sheet img { width: 100%; height: 100%; object-fit: cover; }
.cs-a { grid-column: span 5; aspect-ratio: 3 / 2; }
.cs-b { grid-column: span 4; aspect-ratio: 1 / 1; }
.cs-c { grid-column: span 3; aspect-ratio: 3 / 4; }
.cs-d { grid-column: span 3; aspect-ratio: 1 / 1; }
.cs-e { grid-column: span 4; aspect-ratio: 16 / 9; }
.cs-f { grid-column: span 5; aspect-ratio: 16 / 9; }
.art-band__more { margin-top: 56px; display: flex; justify-content: flex-end; }
@media (max-width: 900px) { .contact-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); } .contact-sheet a { grid-column: span 1 !important; aspect-ratio: 1 / 1 !important; } }

/* the develop: a print comes up out of the tray, dark tones first */
.js .develop img { filter: grayscale(1) contrast(.2) brightness(1.7); transition: filter 1.8s cubic-bezier(.3,.6,.2,1); }
.js .develop.is-developed img { filter: none; }
@media (prefers-reduced-motion: reduce) { .develop img { filter: none; transition: none; } }

/* ---------------- buttons and links ---------------- */
.pill { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 26px; border: 2px solid currentColor; border-radius: 999px; font-family: var(--display); font-size: 20px; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; transition: background-color .25s ease, color .25s ease; }
.pill:hover { background: var(--paper); color: var(--ink); }
.on-paper .pill:hover { background: var(--ink); color: var(--paper); }
.textlink { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.textlink:hover { text-decoration-thickness: 2px; }

/* ---------------- about strip ---------------- */
.about { padding: 18vh 0 10vh; }
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: 64px; align-items: start; }
.about__photo { grid-column: 1 / span 4; }
.about__text { grid-column: 6 / span 7; display: grid; gap: 20px; }
.about__text .lead { font-size: var(--t-lead); line-height: 1.2; }
@media (max-width: 900px) { .about__photo, .about__text { grid-column: 1 / -1; } .about__photo { max-width: 360px; } }

/* ---------------- closing: the email as the type moment ---------------- */
.closing { padding: 16vh 0 0; overflow: hidden; }
.closing__note { font-family: var(--serif); font-style: italic; font-size: var(--t-note); }
.marquee { display: block; margin: 24px 0 48px; text-decoration: none; white-space: nowrap; overflow: hidden; }
.marquee__run { display: inline-flex; gap: .4em; font-family: var(--display); text-transform: uppercase; font-size: clamp(64px, 12vw, 220px); line-height: .9; animation: marquee 38s linear infinite; }
.marquee__run span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.marquee:hover .marquee__run, .marquee:focus-visible .marquee__run { animation-play-state: paused; }
.marquee:hover .marquee__run span:nth-child(even) { color: var(--paper); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__run { animation: none; } }
.closing__row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding-bottom: 40px; }
.closing__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.foot { border-top: 1px solid var(--line-strong); padding: 28px 0 40px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; color: var(--silver); font-size: var(--t-small); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------------- case study ---------------- */
.cs-hero { min-height: 100svh; padding: calc(var(--nav-h) + 6vh) 0 48px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.cs-hero__note { font-family: var(--serif); font-style: italic; font-size: var(--t-note); line-height: 1; margin-bottom: 8px; }
.cs-hero__name { font-family: var(--display); text-transform: uppercase; font-size: var(--t-giant); line-height: .8; white-space: nowrap; }
.cs-hero__media { position: relative; margin: 32px 0 0; }
.cs-meta { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.cs-meta > div { grid-column: span 4; }
.cs-meta h2 { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--silver); margin-bottom: 6px; }
.cs-meta p { font-size: var(--t-body); }
@media (max-width: 900px) { .cs-meta > div { grid-column: 1 / -1; } }

.chapter { padding: 16vh 0 8vh; position: relative; }
.chapter__lead { margin: 40px 0 0; max-width: 24em; font-size: var(--t-lead); line-height: 1.2; }
.block { margin-top: 12vh; }
.block__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-bottom: 40px; align-items: end; }
.block__head h3 { grid-column: 1 / span 6; font-family: var(--display); text-transform: uppercase; font-size: var(--t-h3); line-height: .95; }
.block__head p { grid-column: 8 / span 5; }
@media (max-width: 900px) { .block__head h3, .block__head p { grid-column: 1 / -1; } }

.points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.points > div { padding: 28px 24px 28px 0; border-right: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.points > div + div { padding-left: 24px; }
.points > div:last-child { border-right: 0; }
.points h3, .points h4 { margin: 0; font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: 26px; line-height: 1; }
@media (max-width: 900px) { .points { grid-template-columns: 1fr; } .points > div, .points > div + div { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); } }

.counts { display: flex; flex-wrap: wrap; gap: 24px 72px; margin-top: 64px; }
.count b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(80px, 9vw, 150px); line-height: .9; }
.count span { display: block; max-width: 18em; color: var(--silver); margin-top: 8px; }

.quotes { display: grid; gap: 48px; margin-top: 64px; }
.quote { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 28px; }
.quote blockquote { grid-column: 1 / span 9; margin: 0; font-style: italic; font-size: clamp(32px, 3.8vw, 62px); line-height: 1.06; }
.quote cite { grid-column: 10 / span 3; font-style: normal; color: var(--silver); font-size: var(--t-small); }
@media (max-width: 900px) { .quote blockquote, .quote cite { grid-column: 1 / -1; } }

/* a horizontal rail of prints you can drag or scroll sideways */
.rail { display: flex; gap: 24px; overflow-x: auto; padding: 8px var(--gut) 28px; margin: 0 calc(-1 * var(--gut)); scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--silver-dark) transparent; cursor: grab; }
.rail:active { cursor: grabbing; }
.rail > * { flex: none; scroll-snap-align: start; }
.rail figure { margin: 0; }
.rail figcaption { margin-top: 14px; max-width: 30em; }
.rail figcaption b { font-weight: 400; font-style: italic; color: var(--paper); display: block; }
.on-paper .rail figcaption b { color: var(--ink); }
.rail__map { width: min(78vw, 860px); }
.rail__map .print-flat img { width: 100%; max-height: none; }
/* Research boards (empathy + journey maps) stay small in the page; clicking enlarges them. */
#panel-journey .rail__map, #panel-empathy .rail__map { width: min(78vw, 320px); }
.rail-hint { color: var(--silver); font-style: italic; margin-top: 8px; }

/* phone mockups around real screens */
.phone { position: relative; width: var(--pw, 300px); aspect-ratio: 390 / 844; border-radius: calc(var(--pw, 300px) * .15); padding: calc(var(--pw, 300px) * .035); background: #0a0908; box-shadow: inset 0 0 0 1.5px #4a443e, inset 0 0 0 4px #0a0908, inset 0 0 0 5px #2c2824, 0 40px 80px -30px rgba(0,0,0,.85); flex: none; }
.phone__screen { width: 100%; height: 100%; border-radius: calc(var(--pw, 300px) * .118); overflow: hidden; background: #000; position: relative; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone__island { position: absolute; z-index: 2; top: calc(var(--pw, 300px) * .055); left: 50%; width: 30%; height: calc(var(--pw, 300px) * .085); transform: translateX(-50%); background: #000; border-radius: 999px; }
.phone--scroll .phone__screen img { height: auto; object-fit: initial; transition: transform 6s cubic-bezier(.45,0,.55,1); }
.phone--scroll:hover .phone__screen img { transform: translateY(var(--scroll-to, -50%)); }
.phone-row { display: flex; gap: clamp(16px, 2.4vw, 40px); align-items: flex-end; justify-content: center; flex-wrap: wrap; }
.phone-row .phone:nth-child(2) { transform: translateY(-40px); }
@media (max-width: 720px) { .phone-row .phone { --pw: 44vw !important; } .phone-row .phone:nth-child(3) { display: none; } .phone-row .phone:nth-child(2) { transform: none; } }

/* before and after */
.ba { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.ba__before { grid-column: 1 / span 5; }
.ba__after { grid-column: 7 / span 6; }
.ba figure { margin: 0; }
.ba figcaption { margin-top: 14px; }
.ba figcaption b { font-weight: 400; font-style: italic; display: block; font-size: 24px; }
.ba__pair { display: flex; gap: 24px; align-items: flex-end; }
@media (max-width: 900px) { .ba__before, .ba__after { grid-column: 1 / -1; } }

.kept { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); margin-top: 64px; }
.kept > div { padding: 32px 28px 32px 0; display: grid; gap: 12px; align-content: start; }
.kept > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.kept--two > div:nth-child(odd) { padding-left: 0; border-left: 0; }
.kept h4 { margin: 0; font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: clamp(40px, 4vw, 64px); line-height: .9; }
.kept .why { color: var(--silver); }
@media (max-width: 900px) { .kept { grid-template-columns: 1fr; } .kept > div, .kept > div + div { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); } }

.wide-shot { margin: 0; }
.wide-shot .print-flat img { width: 100%; max-height: none; }

.next { padding: 18vh 0 8vh; }
.next a { text-decoration: none; display: inline-block; }
.next__name { font-family: var(--display); text-transform: uppercase; font-size: var(--t-giant); line-height: .82; transition: color .3s ease; }
.next a:hover .next__name { color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.status { border: 1px solid var(--line-strong); padding: 28px 32px; display: grid; gap: 8px; max-width: 46em; margin-top: 56px; }

/* safelight: the dim red glow the darkroom works under, once, behind the develop moment */
.safelight { position: absolute; inset: auto 0 0 0; height: 70%; pointer-events: none; background: radial-gradient(60% 60% at 50% 100%, rgba(192, 57, 43, .22), rgba(192, 57, 43, 0) 70%); }

/* the suggestion chatbox keeps its own styles; lift it above the column lines */
#suggest-fab, #suggest-panel { z-index: 1000; }
@media (max-width: 720px) {
  .print { width: 36vw !important; padding: 6px 6px 22px; }
  .print figcaption { font-size: 12px; bottom: 4px; }
  .print:nth-child(n+3) { display: none; }
  .print:nth-child(4) { display: block; }
  .print:nth-child(1) { left: 4% !important; top: 27% !important; }
  .print:nth-child(2) { left: 60% !important; top: 25% !important; width: 30vw !important; }
  .print:nth-child(4) { left: 30% !important; top: 41% !important; width: 40vw !important; }
}

/* Beside's system colours, as chips */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches span { display: inline-flex; align-items: flex-end; min-width: 150px; height: 96px; padding: 10px 12px; background: var(--c); color: var(--t, #fff); font-size: 15px; border: 1px solid var(--line); }
.rail figcaption .muted { display: block; }
.cs-hero .phone-row .phone:nth-child(2) { transform: translateY(-48px); }
@media (max-width: 720px) { .cs-hero__name { font-size: 26vw; } .rail .phone { --pw: 220px !important; } }

/* ---------------- art page ---------------- */
.page-hero { min-height: 82svh; padding: calc(var(--nav-h) + 10vh) 0 64px; display: flex; flex-direction: column; justify-content: flex-end; }
.page-hero__lead { margin-top: 32px; font-size: var(--t-lead); line-height: 1.2; max-width: 24em; }
.art-index { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.art-sec { padding: 14vh 0 6vh; }
.art-sec__lead { margin: 28px 0 56px; max-width: 30em; font-size: var(--t-lead); line-height: 1.2; }
.art-grid { display: grid; gap: 40px 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.art-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.art-tile { margin: 0; display: grid; gap: 12px; align-content: start; }
.art-tile__open { display: block; width: 100%; padding: 10px; border: 0; background: var(--paper); cursor: zoom-in; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.on-paper .art-tile__open { background: var(--black); }
.art-tile__open img { width: 100%; height: 100%; object-fit: cover; }
.art-tile__open:hover { transform: rotate(-1deg); }
.art-tile[data-ratio="square"] .art-tile__open { aspect-ratio: 1 / 1; }
.art-tile[data-ratio="film"] .art-tile__open { aspect-ratio: 3 / 2; }
.art-tile[data-ratio="wide"] .art-tile__open { aspect-ratio: 16 / 9; }
.art-tile[data-ratio="tall"] .art-tile__open { aspect-ratio: 4 / 5; }
.art-tile[data-ratio="tall"] .art-tile__open img { object-fit: contain; background: #000; }
.art-tile figcaption { font-style: italic; color: var(--silver); font-size: 18px; }
.on-paper .art-tile figcaption { color: var(--silver-dark); }
@media (max-width: 900px) { .art-grid, .art-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; } }
.lightbox { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; align-content: center; gap: 14px; padding: 76px 24px 32px; background: rgba(12, 10, 9, .95); }
.lightbox[hidden] { display: none; }
.lb-fig { margin: 0; background: var(--paper); padding: 12px 12px 8px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); width: fit-content; max-width: min(74vw, 720px); }
.lb-fig img { display: block; width: auto; max-width: 100%; max-height: 60vh; object-fit: contain; }
.lb-fig figcaption { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.25; color: var(--silver-dark); padding: 10px 4px 4px; width: 0; min-width: 100%; }
.lb-count { margin: 0; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--silver); }
.lb-close { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 2px solid var(--paper); border-radius: 999px; background: var(--black); color: var(--paper); font-family: var(--display); text-transform: uppercase; font-size: 15px; letter-spacing: .05em; cursor: pointer; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--paper); color: var(--ink); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; display: grid; place-items: center; padding: 0; border: 2px solid var(--paper); border-radius: 50%; background: var(--black); color: var(--paper); cursor: pointer; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-prev[hidden], .lb-next[hidden], .lb-count[hidden] { display: none; }
@media (max-width: 700px) {
  .lightbox { padding: 64px 12px 96px; }
  .lb-fig { max-width: 94vw; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 62px); }
  .lb-next { left: calc(50% + 10px); right: auto; }
}
html.lb-open { overflow: hidden; }

/* ---------------- about page ---------------- */
.about-page { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding: 8vh 0 12vh; align-items: start; }
.about-page__text { grid-column: 1 / -1; display: grid; gap: 24px; max-width: 900px; margin: 0 auto; }
.about-page__text .lead { font-size: var(--t-lead); line-height: 1.2; }
@media (max-width: 900px) { .about-page__text { grid-column: 1 / -1; } }

/* =====================================================================
   Fix pass (readability and clipping). Numbers match the fix list.
   ===================================================================== */

/* Fix 1: section titles wrap instead of clipping. Each caps line is its own inline box, so the drift
   (v2.js) can only move it inside the space left on its row. */
:root { --t-huge: clamp(40px, 8.6vw, 150px); }
.title__caps { white-space: normal; text-wrap: balance; overflow-wrap: anywhere; display: block; overflow-x: clip; }
.title__caps > span { display: inline-block; max-width: 100%; will-change: transform; }
.cs-hero__name, .next__name { white-space: normal; overflow-wrap: anywhere; }

/* Fix 2: the header is a real bar, not a blend mode */
.nav { mix-blend-mode: normal; color: var(--paper); background: rgba(21, 18, 16, .94); border-bottom: 1px solid var(--line-strong); }
@supports (backdrop-filter: blur(1px)) { .nav { background: rgba(21, 18, 16, .86); backdrop-filter: blur(10px); } }
.nav__dot { background: var(--paper); }
.nav__mail:hover { background: var(--paper); color: var(--ink); }
html { scroll-padding-top: calc(var(--nav-h) + 16px); }

/* Fix 3: phone and tablet hero stacks: the two lines, then the collage under them, then the name */
.print { padding: 10px 10px 8px; }
.print figcaption { position: static; margin-top: 6px; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.2; color: var(--ink); }
@media (max-width: 900px) {
  .hero { justify-content: flex-start; gap: 20px; }
  .hero__type { order: 1; }
  .hero__prints { order: 2; position: relative; inset: auto; height: 74vw; margin: 0 var(--gut); }
  .hero__foot { order: 3; margin-top: auto; }
  .print { padding: 6px 6px 8px !important; }
  .print figcaption { position: static; margin-top: 5px; white-space: normal; overflow: visible; text-overflow: clip; font-size: 13px; line-height: 1.2; color: var(--ink); }
  .print:nth-child(n+3) { display: none; }
  .print:nth-child(4) { display: block; }
  .print:nth-child(1) { left: 0 !important; top: 6% !important; width: 48% !important; transform: rotate(-4deg) !important; }
  .print:nth-child(2) { left: auto !important; right: 2% !important; top: 0 !important; width: 32% !important; transform: rotate(4deg) !important; }
  .print:nth-child(4) { left: 30% !important; top: 46% !important; width: 46% !important; transform: rotate(-2deg) !important; }
  .hero__prints { height: min(74vw, 560px); }
}
/* the Book Me 2026 pair fits a phone row */
@media (max-width: 720px) { .ba__pair .phone { --pw: calc((100vw - 2 * var(--gut) - 16px) / 2) !important; } .ba__pair { gap: 16px; } .ba .phone { --pw: calc((100vw - 2 * var(--gut) - 16px) / 2) !important; } }

/* Fix 4: the email is a static line that fits its row */
.closing__email { display: block; margin: 20px 0 48px; font-family: var(--display); text-transform: uppercase; line-height: 1; white-space: nowrap; text-decoration: none;
  font-size: min(calc((min(100vw, var(--max)) - 2 * var(--gut)) / 12.6), 132px); }
.closing__email:hover, .closing__email:focus-visible { color: transparent; -webkit-text-stroke: 1.5px var(--paper); }

/* Fix 5: How I work, one step per screen, a progress cue, and the pictures large enough to read */
.journey__progress { display: none; }
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .journey__track { padding-left: 0; }
  .step { width: 100vw; padding: 0 var(--gut); margin-top: calc(var(--nav-h) / 2); border-left: 0; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr); max-width: none; }
  .step > * { min-width: 0; }
  .step__media { max-height: calc(100svh - var(--nav-h) - 120px); }
  .step__media .print-flat img { max-height: calc(100svh - var(--nav-h) - 160px); }
  .journey__progress { display: flex; position: absolute; z-index: 3; left: var(--gut); bottom: 28px; align-items: center; gap: 16px; font-size: 18px; color: var(--silver); }
  .journey__dots { display: flex; gap: 8px; }
  .journey__dots i { width: 40px; height: 3px; background: var(--line-strong); transition: background-color .3s ease; }
  .journey__dots i.is-on { background: var(--paper); }
}

/* Fix 6: rails say they scroll, and have buttons for it */
.rail-nav { display: flex; align-items: center; gap: 12px; margin: -12px 0 16px; }
@media (min-width: 721px) { .rail-nav { display: none; } }
.rail-nav button { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 2px solid var(--paper); border-radius: 50%; background: transparent; color: var(--paper); cursor: pointer; transition: background-color .2s ease, color .2s ease, opacity .2s ease; }
.rail-nav button:hover { background: var(--paper); color: var(--ink); }
.rail-nav button:disabled { opacity: .3; cursor: default; background: transparent; color: var(--paper); }
.rail-nav__count { font-size: 18px; color: var(--paper); min-width: 5.5em; }
.rail-nav__bar { flex: 1; max-width: 240px; height: 2px; background: var(--line-strong); position: relative; }
.rail-nav__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--paper); }
.rail { scrollbar-width: auto; mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent); }
.rail.is-end { mask-image: none; -webkit-mask-image: none; }
/* before and after pairs: a ruled box per pair, each phone labelled with its year */
.pair { width: min(88vw, 600px); padding: 20px; border: 1px solid var(--line-strong); }
.pair__title { font-family: var(--display); text-transform: uppercase; font-size: 28px; line-height: 1; margin-bottom: 16px; }
.pair .ba__pair { gap: 16px; }
.pair__item { margin: 0; display: grid; gap: 10px; justify-items: center; }
.pair__year { font-family: var(--display); font-size: 22px; padding: 2px 12px; border: 1px solid var(--line-strong); border-radius: 999px; }
.pair__item--after .pair__year { background: var(--paper); color: var(--ink); border-color: var(--paper); }
/* phones that scroll their screen: tap or the button does it too */
.phone--scroll { cursor: pointer; }
.phone--scroll.is-scrolled .phone__screen img { transform: translateY(var(--scroll-to, -50%)); }
.phone-scroll-btn { margin-top: 12px; min-height: 44px; padding: 6px 18px; border: 1px solid var(--paper); border-radius: 999px; background: transparent; color: var(--paper); font-family: var(--serif); font-size: 18px; cursor: pointer; }
.phone-scroll-btn:hover { background: var(--paper); color: var(--ink); }

/* Fix 7: tighter gaps; the case hero starts at the top and shows its media at once */
.intro { padding: 14vh 0 10vh; }
.work { padding: 8vh 0 6vh; }
.journey__head { padding: 8vh 0 4vh; }
.art-band { padding: 10vh 0 8vh; }
.art-band__more { margin-top: 32px; }
.about { padding: 10vh 0 6vh; }
.closing { padding-top: 8vh; }
.chapter { padding: 10vh 0 4vh; }
.block { margin-top: 8vh; }
.next { padding: 8vh 0 4vh; }
.cs-hero { min-height: 0; justify-content: flex-start; padding: calc(var(--nav-h) + 5vh) 0 40px; }
.page-hero { min-height: 0; padding: calc(var(--nav-h) + 8vh) 0 48px; }
@media (max-width: 720px) {
  .intro { padding: 8vh 0 6vh; } .work, .about, .art-band { padding: 6vh 0 4vh; } .chapter { padding: 7vh 0 2vh; } .block { margin-top: 6vh; } .next { padding: 6vh 0 2vh; }
}

/* Fix 8: the italic serif stays only on the case-study hero notes and the pull quotes */
.title { padding-top: 0; }
.title__note { position: static; display: block; transform: none; -webkit-text-stroke: 0; font-style: normal; font-size: clamp(22px, 2vw, 32px); line-height: 1.2; margin-bottom: 14px; color: var(--silver); }
.on-paper .title__note { color: var(--silver-dark); }
.title--right .title__note { text-align: left; }
.note, .closing__note, .step__n, .step__text b, .project__proof, .tag, .print figcaption, .art-tile figcaption, .cs-meta h2, .rail figcaption b, .ba figcaption b, .rail-hint, .page-hero__note { font-style: normal; }
.page-hero__note { font-family: var(--serif); font-size: var(--t-note); line-height: 1.1; margin-bottom: 8px; color: var(--silver); }
.cs-hero__note { transform: rotate(-2deg); transform-origin: left bottom; margin-bottom: 18px; }

/* Fix 9: readable small text and captions */
:root { --silver: #b9b1a4; --t-small: 18px; }
.cs-meta h2 { font-size: 18px; color: var(--silver); text-transform: none; }
.rail figcaption, .ba figcaption { font-size: 18px; }
.rail figcaption b { font-size: 20px; }
.quote cite { grid-column: 1 / span 9; font-size: 18px; margin-top: -8px; }
.tag { font-size: 17px; }
.contact-sheet figure { margin: 0; }
.contact-sheet .cs-cap { display: block; padding: 10px 2px 0; color: var(--ink); font-size: 18px; line-height: 1.25; }
.contact-sheet .cs-cap span { display: block; color: var(--silver-dark); font-size: 17px; }
.contact-sheet a { background: transparent; padding: 0; aspect-ratio: auto !important; }
.contact-sheet .cs-img { display: block; background: var(--black); padding: 8px; }
.cs-a .cs-img { aspect-ratio: 3 / 2; } .cs-b .cs-img { aspect-ratio: 1 / 1; } .cs-c .cs-img { aspect-ratio: 3 / 4; }
.cs-d .cs-img { aspect-ratio: 1 / 1; } .cs-e .cs-img { aspect-ratio: 16 / 9; } .cs-f .cs-img { aspect-ratio: 16 / 9; }
@media (max-width: 900px) { .contact-sheet .cs-img { aspect-ratio: 1 / 1 !important; } }
/* any research picture opens large */
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.zoom::after { content: "Enlarge"; position: absolute; right: 10px; bottom: 10px; padding: 4px 12px; border-radius: 999px; background: var(--black); color: var(--paper); font-family: var(--serif); font-size: 16px; }
.zoom img { width: 100%; }
.lightbox { overflow: auto; }
.lightbox img { max-height: 60vh; width: auto; max-width: 100%; }

/* Fix 10: role and date on the work cards */
.project__meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin-top: 18px; font-size: 18px; }
.project__meta dt { color: var(--silver); }
.project__meta dd { margin: 0; }
/* project names in the How I work steps: a label on their own line, now that they are not italic */
.step__text b { display: block; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 20px; letter-spacing: .02em; color: var(--silver); margin-bottom: 2px; }
/* wide windows: the type stops at the 1440 wrap but the prints span the window, so move the top print clear of WITH */
@media (min-width: 1600px) { .print:nth-child(6) { left: 81% !important; top: 9% !important; } }
/* Fix 7, second pass: no dead band over about 150px */
.intro { padding: 9vh 0 5vh; }
.art-sec { padding: 8vh 0 2vh; }
.art-sec__lead { margin: 20px 0 36px; }
.page-hero { padding-bottom: 24px; }
.about-page { padding: 4vh 0 6vh; }
.closing { padding-top: 6vh; }
.work { padding-bottom: 3vh; }
.status { margin-top: 40px; }
@media (max-width: 720px) { .art-sec { padding: 5vh 0 1vh; } }
.chapter { padding-top: 7vh; }
.about { padding-top: 6vh; }
.rail { padding-bottom: 16px; }
/* case heroes on a phone: two phones side by side inside the row, no lift */
@media (max-width: 720px) {
  .cs-hero .phone-row { flex-wrap: nowrap; gap: 16px; }
  .cs-hero .phone-row .phone { --pw: calc((100vw - 2 * var(--gut) - 16px) / 2) !important; transform: none !important; }
}
/* the How I work heading keeps the page gutters (its padding shorthand was zeroing them) */
.journey__head { padding-left: var(--gut); padding-right: var(--gut); }
/* phone: grids that set two columns inline still drop to one; the How I work stack stays inside the gutters */
@media (max-width: 900px) {
  .kept { grid-template-columns: 1fr !important; }
  .journey__track { width: auto !important; }
  .journey__track .step { width: auto !important; max-width: 100%; }
}
@media (max-width: 900px) { .journey__track .step { grid-template-columns: minmax(0, 1fr) !important; } .journey__track .step > * { min-width: 0; } }
/* while the fallback font shows (slow connection), giant lines wrap instead of spilling sideways */
.hero__line, .step__word, .closing__email { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 900px) { .hero { gap: 36px; } }
.next .note { margin-bottom: 14px; line-height: 1.2; }

/* Audit fixes, Nov 24: hero CTAs, stretched-link cards, journey controls, copy email */
.hero__cta { grid-column: 6 / span 2; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
@media (max-width: 900px) { .hero__cta { grid-column: 1 / -1; flex-direction: row; } }
.project__link { color: inherit; text-decoration: none; }
.project__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.project__link:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.project:has(.project__link:focus-visible) { border-color: var(--paper); }
.project__impact { margin-top: 12px; }
.project__more { margin-top: 20px; font-family: var(--display); font-size: 18px; text-transform: uppercase; letter-spacing: .02em; }
.project:hover .project__more { text-decoration: underline; }
button.pill { background: transparent; color: inherit; cursor: pointer; }
.journey__progress button { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 2px solid var(--paper); border-radius: 50%; background: transparent; color: var(--paper); cursor: pointer; transition: background-color .2s ease, color .2s ease, opacity .2s ease; }
.journey__progress button:hover { background: var(--paper); color: var(--ink); }
.journey__progress button:disabled { opacity: .3; cursor: default; background: transparent; color: var(--paper); }

/* Changes, Nov 25: research tiles in step 1. (Hero print layering now lives
   in the per-print base z-index + touch counter in the physics init.) */
.research { display: grid; gap: 16px; width: 100%; align-content: center; }
.research__toggle { display: flex; gap: 8px; flex-wrap: wrap; }
.research__btn { min-height: 44px; padding: 6px 20px; font-size: 18px; }
.research__btn[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.research__btn[aria-pressed="false"] { opacity: .6; }
.research__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.research__grid[hidden] { display: none; }
.research__grid .zoom img { display: block; width: 100%; height: auto; }

/* Reading progress + back-to-home, carried over from the live case studies. */
.scroll-progress { position: fixed; top: 0; left: 0; z-index: 200; height: 3px; width: 0; background: var(--paper); pointer-events: none; }
.back-home { position: fixed; left: 16px; bottom: 16px; z-index: 900; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 2px solid var(--paper); border-radius: 999px; background: var(--black); color: var(--paper); font-family: var(--display); text-transform: uppercase; font-size: 15px; letter-spacing: .05em; text-decoration: none; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.back-home.is-shown { opacity: 1; visibility: visible; }
.back-home:hover { background: var(--paper); color: var(--ink); }
.back-home svg { flex: none; }

/* A brushstroke that snakes down the whole page in the background as you
   scroll. Absolute full-page layer, behind all content (z-index -1), never
   intercepts clicks. JS builds one continuous snake path from Kartik's
   open brush segment, repeated down the page, and sets the SVG height to
   the document height. The path is hidden by stroke-dashoffset in JS
   and revealed by a scrubbed ScrollTrigger tied to the whole page scroll. */
.brush-draw { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.brush-baked { position: absolute; top: 0; left: 0; width: 100%; z-index: -1; pointer-events: none; display: none; }
body.brush-baked--on .brush-baked { display: block; }
body.brush-baked--on .brush-draw { display: none; }
body.brush-hidden .brush-draw, body.brush-hidden .brush-baked { display: none !important; }

/* The brush layer is z-index -1. It only shows above the body's
   background if the body itself is a stacking context, otherwise the body's
   opaque background paints over it. isolation: isolate makes the body one,
   so the -1 layer sits above the black and below all content. position:
   relative makes the body the containing block for the absolute SVG, so
   height 100% is the full page height. */
body { isolation: isolate; position: relative; }

/* ---------- 3D coverflow carousel ---------- */
.coverflow { --cf-w: 200px; position: relative; }
.coverflow--grove { --cf-w: 200px; }
.cf-stage { position: relative; height: calc(var(--cf-w) * 2.1641 + 16px); perspective: 1200px; cursor: grab; user-select: none; -webkit-user-select: none; outline: none; touch-action: pan-y; }
.cf-stage.is-dragging { cursor: grabbing; }
.cf-stage.is-dragging .cf-card { transition: none !important; }
.cf-card { position: absolute; left: 50%; top: 8px; width: var(--cf-w); margin: 0; transform-origin: center center; transition: transform .55s cubic-bezier(.22, 1.35, .36, 1), opacity .55s ease, filter .55s ease; will-change: transform, opacity, filter; }
.cf-card img { pointer-events: none; user-select: none; -webkit-user-drag: none; transition: opacity .18s ease; }
.cf-card .phone { width: 100%; --pw: 200px; }
.coverflow--grove .cf-card .phone { --pw: 200px; }
.cf-card img.cf-swapping { opacity: 0; }
.cf-backdrop { position: fixed; inset: 0; z-index: 99998; background: rgba(0, 0, 0, 0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.coverflow.is-focus .cf-backdrop { opacity: 1; pointer-events: auto; }
.coverflow.is-focus .cf-stage { z-index: 99999; pointer-events: none; }
body.cf-focus main { z-index: 2000; }
.coverflow.is-focus .cf-arrow, .coverflow.is-focus .cf-caption, .coverflow.is-focus .cf-hint { opacity: 0; pointer-events: none; }
.cf-arrow { position: absolute; top: 50%; z-index: 5; width: 52px; height: 52px; margin-top: -26px; display: grid; place-items: center; padding: 0; border: 2px solid var(--paper); border-radius: 50%; background: transparent; color: var(--paper); font-size: 22px; line-height: 1; cursor: pointer; transition: background-color .2s ease, color .2s ease, opacity .2s ease; }
.cf-arrow:hover { background: var(--paper); color: var(--ink); }
.cf-arrow:disabled { opacity: .3; cursor: default; background: transparent; color: var(--paper); }
.cf-arrow--prev { left: 0; }
.cf-arrow--next { right: 0; }
.cf-caption { display: flex; justify-content: center; gap: 12px; align-items: baseline; margin: 18px 0 0; font-size: 18px; transition: opacity .3s ease; }
.cf-caption__name { font-style: italic; }
.cf-caption__count { color: var(--silver); font-size: 16px; }
.cf-hint { text-align: center; margin: 6px 0 0; transition: opacity .3s ease; }
.cf-close { position: fixed; top: 24px; right: 24px; z-index: 100000; width: 52px; height: 52px; padding: 0; border: 2px solid var(--paper); border-radius: 50%; background: transparent; color: var(--paper); font-size: 26px; line-height: 1; cursor: pointer; }
.cf-close:hover { background: var(--paper); color: var(--ink); }
@media (max-width: 720px) {
  .coverflow { --cf-w: 170px; }
  .coverflow--grove { --cf-w: 170px; }
  .cf-card .phone { --pw: 170px; }
  .coverflow--grove .cf-card .phone { --pw: 170px; }
  .cf-arrow { width: 44px; height: 44px; margin-top: -22px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-card { transition: none !important; }
  .cf-backdrop { transition: none; }
}
