/* Michele Mattotti. Digital business card.
   Dark, cinematic, image-led. Each chapter behaves like a keynote slide. */

@font-face { font-family:"Inter"; src:url("/assets/fonts/inter-400.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Inter"; src:url("/assets/fonts/inter-500.woff2") format("woff2"); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:"Inter"; src:url("/assets/fonts/inter-600.woff2") format("woff2"); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:"Inter"; src:url("/assets/fonts/inter-700.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Instrument Serif"; src:url("/assets/fonts/instrument-serif-400.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }

:root {
  --ink: #0b0b0b;
  --ink-2: #111111;
  --cream: #f3efe6;
  --muted: #9a948a;
  /* Accent taken from the violet brushwork in Lihua's Olympic Sports series.
     --accent is the filled-button ground (AA against white label text);
     --accent-lite is for large display text on the ink field. */
  --accent: #6d3fc4;
  --accent-lite: #b99cff;
  --blue: #2e6fd9;
  --hair: rgba(243, 239, 230, 0.16);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --gutter: 22px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --bar-h: calc(60px + var(--safe-b));
}
@media (min-width: 768px)  { :root { --gutter: 48px; --bar-h: 0px; } }
@media (min-width: 1200px) { :root { --gutter: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ink); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--cream); color: var(--ink); padding: 12px 20px; z-index: 300; }
.skip-link:focus { left: var(--gutter); top: 12px; }
:focus-visible { outline: 2px solid var(--accent-lite); outline-offset: 3px; }

/* ============================ slide primitives ============================ */

.slide {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: flex-end;
  overflow: clip;
  isolation: isolate;
}
.slide--tall { min-height: 100svh; }
.slide--short { min-height: 66svh; }

.slide__media { position: absolute; inset: 0; z-index: 0; overflow: clip; }
.slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
/* clip + scale reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .slide__media img { transform: scale(1.1); transition: transform 1.5s var(--ease); }
  .js .slide.is-in .slide__media img { transform: scale(1); }
}

/* legibility scrims. Art on white paper needs a heavier foot. */
.slide__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
/* The body plinth carries text contrast, so these stay light and let the
   artwork read. They only seat the slide into the ink page. */
.slide__scrim--art {
  background: linear-gradient(180deg,
    rgba(11,11,11,0.52) 0%,
    rgba(11,11,11,0.06) 20%,
    rgba(11,11,11,0.08) 52%,
    rgba(11,11,11,0.30) 82%,
    var(--ink) 100%);
}
.slide__scrim--photo {
  background: linear-gradient(180deg,
    rgba(11,11,11,0.46) 0%,
    rgba(11,11,11,0.08) 24%,
    rgba(11,11,11,0.16) 54%,
    rgba(11,11,11,0.34) 84%,
    var(--ink) 100%);
}
.slide__scrim--field {
  background: linear-gradient(180deg,
    rgba(11,11,11,0.64) 0%,
    rgba(11,11,11,0.30) 28%,
    rgba(11,11,11,0.34) 56%,
    rgba(11,11,11,0.52) 84%,
    var(--ink) 100%);
}

.slide__body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(70px, 14vh, 150px) var(--gutter) clamp(56px, 12vh, 120px);
}
/* Contrast plinth anchored to the text block, not to slide height, so the
   headline is legible at every viewport aspect ratio. */
.slide__body::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background: linear-gradient(180deg,
    rgba(11,11,11,0) 0%,
    rgba(11,11,11,0.58) 30%,
    rgba(11,11,11,0.88) 62%,
    rgba(11,11,11,0.97) 100%);
}

/* Title at the top: the copy sits above the subject rather than over it.
   The plinth flips with it so contrast always follows the text. */
.slide--top { align-items: flex-start; }
.slide--top .slide__body {
  padding-top: clamp(48px, 9vh, 96px);
  padding-bottom: clamp(80px, 16vh, 170px);
}
.slide--top .slide__body::before {
  background: linear-gradient(180deg,
    rgba(11,11,11,0.95) 0%,
    rgba(11,11,11,0.86) 34%,
    rgba(11,11,11,0.52) 66%,
    rgba(11,11,11,0) 100%);
}

.slide--top .credit { text-shadow: 0 1px 4px rgba(11,11,11,0.95); }
.credit {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 14px;
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgba(243, 239, 230, 0.42);
}

/* ============================ typography ============================ */

.statement {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2.5rem, 12.5vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
}
.statement span { display: block; }
.statement .accent { color: var(--accent-lite); }

.support {
  margin-top: 18px;
  font-size: clamp(1rem, 4.2vw, 1.25rem);
  line-height: 1.45;
  color: rgba(243, 239, 230, 0.82);
  max-width: 30ch;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

/* Reveal. Gated on .js so the page is fully legible if JavaScript never runs. */
.js .rv { opacity: 0; transform: translateY(26px); }
.js .is-in .rv, .js .rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .rv { transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
  .js .is-in .rv:nth-child(2) { transition-delay: 0.08s; }
  .js .is-in .rv:nth-child(3) { transition-delay: 0.16s; }
  .js .is-in .rv:nth-child(4) { transition-delay: 0.24s; }
}
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; } }

/* ============================ hero ============================ */

.hero .slide__body { padding-bottom: calc(24px + var(--bar-h)); }
/* Deliberately smaller and tighter than the chapter statements: the hero has
   three lines to carry and must not climb over the portrait's face. */
.hero .statement {
  font-size: clamp(1.65rem, 7.4vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
  max-width: 17ch;
}
.hero__name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.88);
  margin-bottom: 18px;
}
.hero__role {
  margin-top: 20px;
  font-size: clamp(0.9rem, 3.6vw, 1.05rem);
  color: rgba(243, 239, 230, 0.72);
  max-width: 32ch;
}
.hero__actions { margin-top: 26px; }
.hero__explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.6);
  min-height: 44px;
}
.hero__explore::after { content: ""; width: 22px; height: 1px; background: currentColor; }

/* ============================ actions ============================ */

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  appearance: none;
  border: 1px solid rgba(243, 239, 230, 0.30);
  background: transparent;
  color: var(--cream);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 13px 18px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}
.btn:hover { background: rgba(243, 239, 230, 0.12); border-color: rgba(243, 239, 230, 0.55); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: #5c33a8; border-color: #5c33a8; }

/* ============================ proof chapters ============================ */

.proof .slide__body { padding-bottom: clamp(56px, 11vh, 110px); }
.proof__label {
  font-size: clamp(1.1rem, 4.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.proof__context { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.proof__title {
  margin-top: 22px;
  font-weight: 700;
  font-size: clamp(2rem, 9.5vw, 4.4rem);
  line-height: 1.0;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.proof__title span { display: block; }
.proof__metric { margin-top: 30px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.proof__value {
  font-size: clamp(3.2rem, 16vw, 7rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
}
.proof__metric-label { font-size: 13px; color: rgba(243, 239, 230, 0.78); max-width: 20ch; }

.proof__value { color: var(--accent-lite); }

/* ============================ art in motion (sticky) ============================ */

.art-seq { position: relative; }
.art-seq__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: clip;
  display: flex;
  align-items: flex-end;
}
.art-seq__scene { position: absolute; inset: 0; z-index: 0; opacity: 0; }
.art-seq__scene:first-child { opacity: 1; }
.art-seq__scene img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .art-seq__scene { transition: opacity 700ms var(--ease); }
}
.art-seq__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(11,11,11,0.86) 0%,
    rgba(11,11,11,0.46) 18%,
    rgba(11,11,11,0.10) 40%,
    rgba(11,11,11,0.14) 62%,
    rgba(11,11,11,0.34) 88%,
    var(--ink) 100%);
}
.art-seq__lead {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
  top: 0;
  padding: clamp(56px, 11vh, 120px) 0 clamp(40px, 7vh, 80px);
}
.art-seq__lead::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 calc(var(--gutter) * -1);
  background: linear-gradient(180deg,
    rgba(11,11,11,0.94) 0%,
    rgba(11,11,11,0.82) 46%,
    rgba(11,11,11,0) 100%);
}
.art-seq__lead p span { display: block; text-wrap: balance; }
.art-seq__lead p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 8.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
  max-width: 19ch;
}
.art-seq__foot {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(60px, 12vh, 130px) var(--gutter) clamp(50px, 10vh, 100px);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.art-seq__foot::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11,11,11,0) 0%,
    rgba(11,11,11,0.58) 32%,
    rgba(11,11,11,0.90) 66%,
    rgba(11,11,11,0.97) 100%);
}
.art-seq__value { font-size: clamp(2.8rem, 13vw, 5rem); font-weight: 700; line-height: 0.85; letter-spacing: -0.04em; color: var(--accent-lite); }
.art-seq__unit { font-size: 13px; color: rgba(243, 239, 230, 0.78); }
.art-seq__unit span { display: block; color: var(--muted); }
.art-seq__credit {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 14px;
  font-size: 10.5px; color: rgba(243, 239, 230, 0.42); line-height: 1.4;
}

/* ============================ how i work (sticky) ============================ */

.how { position: relative; }
.how__stage {
  position: sticky; top: 0; height: 100svh; overflow: clip;
  display: flex; align-items: center;
}
.how__media, .how__scenes { position: absolute; inset: 0; z-index: 0; }
.how__scene { position: absolute; inset: 0; opacity: 0; }
.how__scene:first-child { opacity: 1; }
.how__scene img,
.how__media img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .how__scene { transition: opacity 620ms var(--ease); }
}
.how__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11,11,11,0.88) 0%, rgba(11,11,11,0.52) 40%, rgba(11,11,11,0.44) 68%, rgba(11,11,11,0.88) 100%);
}
.how__credit {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 14px;
  font-size: 10.5px; line-height: 1.4; color: rgba(243, 239, 230, 0.42);
}
.how__body { position: relative; z-index: 2; width: 100%; padding: 0 var(--gutter); }
.how__body::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -7vh calc(var(--gutter) * -1) -7vh calc(var(--gutter) * -1);
  background: linear-gradient(180deg,
    rgba(11,11,11,0) 0%,
    rgba(11,11,11,0.74) 16%,
    rgba(11,11,11,0.84) 50%,
    rgba(11,11,11,0.74) 84%,
    rgba(11,11,11,0) 100%);
}
.how__verbs li {
  font-weight: 700;
  font-size: clamp(2.3rem, 13vw, 6rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.js .how__verbs li { opacity: 0.16; transform: translateY(10px); }
.js .how__verbs li.is-lit { opacity: 1; transform: none; }
.how__verbs li.is-lit:nth-child(4) { color: var(--accent-lite); }
@media (prefers-reduced-motion: no-preference) {
  .how__verbs li { transition: opacity 500ms var(--ease), transform 500ms var(--ease), color 500ms var(--ease); }
}
@media (prefers-reduced-motion: reduce) { .js .how__verbs li { opacity: 1; transform: none; } }
.how__line { margin-top: 26px; font-size: clamp(0.95rem, 3.8vw, 1.15rem); color: rgba(243, 239, 230, 0.78); max-width: 34ch; }

/* ============================ selected places ============================ */

/* The artwork carries this section. The names sit small and dark on the clean
   paper in the lower right, like a gallery label, so nothing covers the rider.
   object-position lives here (not inline) so the crop can differ per breakpoint. */
.places {
  position: relative;
  min-height: 92svh;
  overflow: clip;
  isolation: isolate;
}
.places__media { position: absolute; inset: 0; z-index: 0; }
.places__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  object-position: 92% 50%;
}
.places__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    var(--ink) 0%,
    rgba(11,11,11,0.34) 13%,
    rgba(11,11,11,0) 32%,
    rgba(11,11,11,0) 86%,
    rgba(11,11,11,0.30) 96%,
    var(--ink) 100%);
}
.places__body {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: clamp(74px, 15vh, 150px);
  left: auto;
  width: min(62%, 320px);
  text-align: right;
  padding: 0;
  /* light halo so the names survive if the crop shifts onto brushwork */
  text-shadow: 0 0 12px rgba(243,239,230,0.85), 0 0 4px rgba(243,239,230,0.95);
}
.places__label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(11,11,11,0.62);
  margin-bottom: 12px;
}
.places__list li {
  font-weight: 700;
  font-size: clamp(0.95rem, 4.2vw, 1.15rem);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.places .credit {
  color: rgba(11,11,11,0.5);
  text-shadow: 0 0 10px rgba(243,239,230,0.9);
  text-align: right;
}

/* ============================ final ============================ */

.final .slide__body { padding-bottom: calc(clamp(56px, 12vh, 120px) + var(--bar-h)); }
.final__title {
  font-weight: 700;
  font-size: clamp(2.2rem, 11vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 13ch;
}
.final__title--accent { color: var(--accent-lite); }
.final__name { margin-top: 26px; font-size: 16px; font-weight: 600; }
.final__geo { margin-top: 4px; font-size: 14px; color: var(--muted); }
.final__actions { margin-top: 26px; }

/* ============================ sticky contact bar (mobile) ============================ */

.bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  display: flex;
  gap: 8px;
  padding: 8px var(--gutter) calc(8px + var(--safe-b));
  background: rgba(11, 11, 11, 0.88);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--hair);
  transform: translateY(110%);
}
@media (prefers-reduced-motion: no-preference) { .bar { transition: transform 340ms var(--ease); } }
.bar[data-show="true"] { transform: translateY(0); }
.bar .btn { flex: 1; font-size: 13px; padding: 12px 10px; min-height: 44px; }
@media (min-width: 768px) { .bar { display: none; } }

.toast {
  position: fixed; left: 50%; bottom: calc(76px + var(--safe-b));
  transform: translate(-50%, 8px);
  z-index: 120;
  background: var(--cream); color: var(--ink);
  font-size: 13px; font-weight: 500;
  padding: 10px 16px; border-radius: 3px;
  opacity: 0; pointer-events: none;
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: no-preference) { .toast { transition: opacity 220ms var(--ease), transform 220ms var(--ease); } }
@media (min-width: 768px) { .toast { bottom: 28px; } }

/* ============================ desktop composition ============================ */

@media (min-width: 900px) {
  .slide__body { padding-bottom: clamp(64px, 11vh, 128px); }

  .hero__actions .btn { font-size: 14px; }
  .hero .slide__body,
  .final .slide__body { max-width: 1400px; margin: 0 auto; }

  /* proof: metric sits opposite the title */
  .proof .slide__body {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
    align-items: end;
    max-width: 1400px;
    margin: 0 auto;
  }
  .proof__head { grid-column: 1; }
  .proof__metric { grid-column: 2; margin-top: 0; display: block; }
  .proof__metric-label { margin-top: 10px; max-width: 26ch; }

  .art-seq__lead p { max-width: 18ch; }
  .art-seq__foot { max-width: 1400px; margin: 0 auto; }

  .how__body { max-width: 1400px; margin: 0 auto; }
  .how__verbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .how__verbs li { font-size: clamp(2rem, 5vw, 3.6rem); }
  .how__line { margin-top: 40px; }

  .places__media img { object-position: 50% 62%; }
  .places__body { width: min(34%, 340px); bottom: clamp(90px, 16vh, 170px); }
  .places__list li { font-size: 1.05rem; line-height: 1.6; }

  .credit, .art-seq__credit { font-size: 11px; }
}
