/* ==========================================================================
   Moises Carmona — Portfolio
   ========================================================================== */

:root {
  --bg: #f4f4f1;
  --bg-2: #eaeae6;
  --ink: #0d0d0d;
  --ink-2: #3a3a38;
  --mute: #8b8b86;
  --line: rgba(13, 13, 13, 0.12);
  --dark: #0b0b0b;
  --dark-2: #161616;
  --on-dark: #f4f4f1;
  --on-dark-mute: #7d7d79;

  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;

  --gutter: clamp(16px, 2.4vw, 40px);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

  --fs-mega: clamp(3.2rem, 11vw, 12rem);
  --fs-xl: clamp(2.6rem, 6.6vw, 7rem);
  --fs-l: clamp(2rem, 4.2vw, 4.4rem);
  --fs-m: clamp(1.4rem, 2.2vw, 2.2rem);
  --fs-body: clamp(1rem, 1.05vw, 1.125rem);
  --fs-s: 0.8125rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--ink); color: var(--bg); }
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.wrap { padding-inline: var(--gutter); }
.label {
  font-size: var(--fs-s);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mute);
  display: inline-flex;
  gap: 0.6em;
  align-items: center;
}
.hero__status .label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.dark .label { color: var(--on-dark-mute); }

/* line-mask reveal helpers */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: inline-block; will-change: transform; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--dark); color: var(--on-dark);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: var(--gutter);
}
.loader__name { font-size: var(--fs-m); font-weight: 500; letter-spacing: -0.03em; }
.loader__count { font-size: var(--fs-mega); font-weight: 500; line-height: 0.8; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.no-loader .loader { display: none; }

/* ---------- Page transition ---------- */
.transition {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: var(--dark);
  transform: translateY(100%);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter);
  mix-blend-mode: difference; color: #fff;
}
.nav__logo { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.03em; }
.nav__links { display: flex; gap: 28px; font-size: 0.9rem; }
.nav__right { justify-self: end; display: flex; gap: 20px; align-items: center; font-size: 0.9rem; }
.nav__time { color: rgba(255,255,255,0.6); font-variant-numeric: tabular-nums; }
.link-roll { position: relative; display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.link-roll span { display: block; transition: transform 0.5s var(--ease); }
.link-roll span + span { position: absolute; top: 100%; left: 0; }
.link-roll:hover span { transform: translateY(-100%); }
.nav__menu-btn { display: none; }

@media (max-width: 820px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav__time { display: none; }
  .nav__menu-btn { display: inline-block; }
}

/* mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--dark); color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 90px var(--gutter) var(--gutter);
  clip-path: inset(0 0 100% 0); transition: clip-path 0.8s var(--ease-in-out);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu a { font-size: clamp(2.4rem, 12vw, 4rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 0.95rem; font-weight: 500;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: #fff; transform: translateY(101%); transition: transform 0.5s var(--ease);
}
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--bg); }
.dark .btn { background: var(--on-dark); color: var(--dark); }
.dark .btn::before { background: #fff; }
.btn .arrow { transition: transform 0.5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; position: relative;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding-top: clamp(110px, 16vh, 170px);
  overflow: hidden;
}
.hero__status { margin-bottom: clamp(20px, 3vh, 36px); }
.hero__status .label::before { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,0.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34,197,94,0.0); } }
.hero__title {
  font-size: var(--fs-xl); line-height: 0.95; font-weight: 500; letter-spacing: -0.05em;
  margin: 0; max-width: 14ch;
}
.hero__title em { letter-spacing: -0.03em; }
.hero__foot {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end;
  margin-top: clamp(24px, 4vh, 44px);
}
.hero__intro { max-width: 46ch; color: var(--ink-2); margin: 0; }
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 820px) { .hero__foot { grid-template-columns: 1fr; } }

/* fan of project cards */
.fan {
  position: relative; height: clamp(300px, 46vh, 520px);
  margin-top: clamp(20px, 5vh, 60px);
  perspective: 1600px;
}
.fan__card {
  position: absolute; left: 50%; top: 0;
  width: clamp(170px, 19vw, 300px); aspect-ratio: 3 / 4;
  margin-left: calc(clamp(170px, 19vw, 300px) / -2);
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.04);
  transform-origin: 50% 260%;
  will-change: transform;
}
.fan__card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.fan__card img { transition: transform 0.9s var(--ease), filter 0.6s var(--ease); }
.fan.is-hovering .fan__card:not(.is-active) img { filter: brightness(0.72) saturate(0.85); }
.fan__card.is-active { box-shadow: 0 50px 90px -30px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,0,0,0.04); }
.fan__card.is-active img { transform: scale(1.04); }
.opener { position: fixed; z-index: 95; overflow: hidden; pointer-events: none; will-change: transform, width, height; background: var(--dark); }
.opener img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fan__card span {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  color: #fff; font-size: 0.8rem; font-weight: 500;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(6px); transition: 0.5s var(--ease);
}
.fan__card.is-active span, .fan__card:focus-visible span { opacity: 1; transform: none; }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden; white-space: nowrap; padding-block: 22px;
}
.marquee__track { display: inline-flex; gap: 48px; animation: marquee 32s linear infinite; }
.marquee__track span { font-size: var(--fs-m); font-weight: 500; letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 48px; }
.marquee__track span::after { content: "✦"; font-size: 0.6em; color: var(--mute); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Statement ---------- */
.statement { padding-block: clamp(100px, 18vh, 220px); }
.statement__text {
  font-size: var(--fs-l); line-height: 1.08; font-weight: 500; letter-spacing: -0.04em;
  margin: 24px 0 0; max-width: 22ch; text-indent: 2.6em;
}
.statement__text .w { color: rgba(13,13,13,0.14); transition: color 0.2s; }
.statement__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter);
  margin-top: clamp(60px, 10vh, 120px); border-top: 1px solid var(--line); padding-top: 28px;
}
.stat__num { font-size: var(--fs-l); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.stat__label { color: var(--mute); font-size: 0.9rem; margin-top: 10px; max-width: 18ch; }
@media (max-width: 820px) { .statement__grid { grid-template-columns: 1fr 1fr; row-gap: 40px; } }

/* ---------- Work ---------- */
.dark { background: var(--dark); color: var(--on-dark); }
.work { padding-block: clamp(90px, 14vh, 160px); border-radius: 28px 28px 0 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(40px, 7vh, 80px);
}
.section-title { font-size: var(--fs-xl); line-height: 0.95; font-weight: 500; letter-spacing: -0.05em; margin: 14px 0 0; }
.work__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(40px, 6vw, 90px) var(--gutter); }
.project { display: block; grid-column: span 6; }
.project:nth-child(4n+1) { grid-column: 1 / span 7; }
.project:nth-child(4n+2) { grid-column: 9 / span 4; margin-top: 22vh; }
.project:nth-child(4n+3) { grid-column: 2 / span 5; }
.project:nth-child(4n+4) { grid-column: 7 / span 6; margin-top: 12vh; }
.project__media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; background: var(--dark-2);
  clip-path: inset(0 round var(--radius));
}
.project:nth-child(4n+2) .project__media { aspect-ratio: 3 / 4; }
.project__media img {
  position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.8s var(--ease);
}
.project:hover .project__media img { transform: scale(1.04); }
.project__meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; align-items: baseline; }
.project__title { font-size: var(--fs-m); font-weight: 500; letter-spacing: -0.03em; margin: 0; }
.project__kicker { color: var(--on-dark-mute); font-size: var(--fs-s); text-transform: uppercase; letter-spacing: 0.05em; text-align: right; }
.project__summary { color: var(--on-dark-mute); margin: 6px 0 0; max-width: 46ch; }
@media (max-width: 820px) {
  .project, .project:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .project:nth-child(n) .project__media { aspect-ratio: 4 / 3; }
  .project__meta { flex-direction: column; gap: 4px; }
  .project__kicker { text-align: left; }
}

/* custom cursor */
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 2147483000; pointer-events: none;
  border-radius: 999px; opacity: 0; transition: opacity 0.3s;
}
.cursor-on .cursor, .cursor-on .cursor-dot { opacity: 1; }
.cursor-dot {
  z-index: 2147483001; width: 6px; height: 6px; margin: -3px 0 0 -3px;
  background: #fff; mix-blend-mode: difference;
}
.cursor-on .cursor-dot.is-hidden { opacity: 0; }
.cursor {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid #fff; mix-blend-mode: difference;
  display: grid; place-items: center; white-space: nowrap;
  font-size: 0.8rem; font-weight: 500; letter-spacing: -0.01em; color: transparent;
  transition: opacity 0.3s, width 0.5s var(--ease), height 0.5s var(--ease), margin 0.5s var(--ease),
    background-color 0.4s, border-color 0.4s, color 0.3s;
}
.cursor.is-link { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: #fff; }
.cursor.is-down { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
.cursor.is-label {
  width: 112px; height: 40px; margin: -20px 0 0 -56px;
  background: var(--on-dark); border-color: transparent; mix-blend-mode: normal; color: var(--dark);
}
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ---------- Expertise ---------- */
.expertise { padding-block: clamp(90px, 14vh, 160px); }
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 80px 1fr 1.2fr; gap: var(--gutter); align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.row__n { color: var(--mute); font-size: var(--fs-s); font-variant-numeric: tabular-nums; }
.row__title { font-size: var(--fs-m); font-weight: 500; letter-spacing: -0.03em; margin: 0; transition: transform 0.6s var(--ease); }
.row__desc { color: var(--ink-2); margin: 0; max-width: 48ch; }
.row::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease);
}
.row:hover::after { transform: scaleX(1); }
.row:hover .row__title { transform: translateX(12px); }
@media (max-width: 820px) { .row { grid-template-columns: 40px 1fr; } .row__desc { grid-column: 2; } }

/* ---------- About ---------- */
.about { padding-block: clamp(90px, 14vh, 160px); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.about__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; position: sticky; top: 100px; }
.about__img img { width: 100%; height: 115%; object-fit: cover; }
.about__body p { font-size: var(--fs-m); line-height: 1.2; letter-spacing: -0.025em; margin: 0 0 1em; font-weight: 400; }
.about__body p.small { font-size: var(--fs-body); color: var(--ink-2); line-height: 1.55; letter-spacing: -0.01em; max-width: 52ch; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); border-top: 1px solid var(--line); padding-top: 22px; margin: 40px 0; }
.roles strong { display: block; font-weight: 500; font-size: 1.1rem; margin-top: 8px; }
.roles span { color: var(--mute); font-size: 0.95rem; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .about__img { position: relative; top: 0; } }

/* ---------- Experience ---------- */
.experience { padding-block: clamp(90px, 14vh, 160px); }
.xp { border-top: 1px solid rgba(255,255,255,0.12); }
.xp__row {
  display: grid; grid-template-columns: 180px 1.1fr 1.4fr; gap: var(--gutter);
  padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: padding 0.6s var(--ease), color 0.4s;
}
.xp__row:hover { padding-left: 14px; }
.xp__year { color: var(--on-dark-mute); font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.xp__co { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; }
.xp__role { color: var(--on-dark-mute); }
.xp__role b { color: var(--on-dark); font-weight: 500; display: block; }
@media (max-width: 820px) { .xp__row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Process ---------- */
.process__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; margin-top: 10px; }
.step { background: var(--bg-2); padding: 28px 22px 32px; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 4px; transition: background 0.5s var(--ease), color 0.5s; }
.step:first-child { border-radius: var(--radius) 4px 4px var(--radius); }
.step:last-child { border-radius: 4px var(--radius) var(--radius) 4px; }
.step:hover { background: var(--ink); color: var(--bg); }
.step:hover p { color: rgba(244,244,241,0.65); }
.step__n { font-size: var(--fs-s); color: var(--mute); }
.step h3 { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.03em; margin: 0 0 10px; }
.step p { margin: 0; color: var(--ink-2); font-size: 0.95rem; transition: color 0.5s; }
@media (max-width: 980px) { .process__grid { grid-template-columns: 1fr 1fr; } .step, .step:first-child, .step:last-child { border-radius: var(--radius); min-height: 200px; } }
@media (max-width: 560px) { .process__grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quotes { padding-block: clamp(90px, 14vh, 160px); }
.quotes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.quote { border-top: 1px solid var(--line); padding-top: 24px; }
.quote p { font-size: 1.35rem; line-height: 1.3; letter-spacing: -0.02em; margin: 0 0 28px; }
.quote cite { font-style: normal; font-weight: 500; display: block; }
.quote small { color: var(--mute); }
@media (max-width: 900px) { .quotes__grid { grid-template-columns: 1fr; row-gap: 48px; } }

/* ---------- Contact ---------- */
.contact { padding-block: clamp(110px, 18vh, 200px) 0; border-radius: 28px 28px 0 0; overflow: hidden; }
.contact__big {
  font-size: var(--fs-mega); line-height: 0.85; letter-spacing: -0.065em; font-weight: 500; margin: 20px 0 0;
}
.contact__big em { letter-spacing: -0.04em; }
.contact__row { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; margin-top: clamp(40px, 7vh, 80px); }
.contact__row p { color: var(--on-dark-mute); max-width: 52ch; margin: 0; }
.contact__mail {
  display: inline-block; font-size: var(--fs-l); letter-spacing: -0.04em; font-weight: 500;
  margin-top: clamp(50px, 9vh, 110px); position: relative;
}
.contact__mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.05em; height: 2px; background: currentColor; transform: scaleX(0.0); transform-origin: right; transition: transform 0.8s var(--ease); }
.contact__mail:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 820px) { .contact__row { grid-template-columns: 1fr; } }

.footer {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gutter);
  margin-top: clamp(80px, 14vh, 160px); padding-block: 36px; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.92rem;
}
.footer h4 { font-size: var(--fs-s); text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-dark-mute); margin: 0 0 12px; font-weight: 400; }
.footer a { display: block; width: fit-content; margin-bottom: 6px; }
.footer a:hover { color: #fff; opacity: 0.6; }
.footer__copy { color: var(--on-dark-mute); }
@media (max-width: 820px) { .footer { grid-template-columns: 1fr 1fr; row-gap: 32px; } }

/* ==========================================================================
   Case study
   ========================================================================== */
.case-hero { padding-top: clamp(120px, 20vh, 200px); padding-bottom: clamp(40px, 6vh, 70px); }
.case-hero__back { font-size: 0.9rem; color: var(--mute); display: inline-flex; gap: 8px; margin-bottom: 30px; transition: color 0.3s; }
.case-hero__back:hover { color: var(--ink); }
.case-hero__title { font-size: var(--fs-mega); line-height: 0.88; letter-spacing: -0.06em; font-weight: 500; margin: 18px 0 0; }
.case-hero__summary { font-size: var(--fs-m); line-height: 1.2; letter-spacing: -0.025em; max-width: 30ch; margin: clamp(26px, 4vh, 50px) 0 0; color: var(--ink-2); }
.case-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px var(--gutter);
  border-top: 1px solid var(--line); padding-top: 22px; margin-top: clamp(40px, 7vh, 80px);
}
.case-meta dt { font-size: var(--fs-s); color: var(--mute); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.case-meta dd { margin: 0; font-weight: 500; }
@media (max-width: 820px) { .case-meta { grid-template-columns: 1fr 1fr; row-gap: 24px; } }

.case-cover { padding-inline: var(--gutter); }
.case-cover__inner { border-radius: var(--radius); overflow: hidden; height: clamp(320px, 88vh, 980px); position: relative; }
.case-cover__inner img { position: absolute; inset: 0; width: 100%; height: 120%; object-fit: cover; top: -10%; }

.case-body { padding-block: clamp(60px, 10vh, 120px); }
.c-text, .c-list { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gutter); padding-block: clamp(50px, 9vh, 110px); }
.c-text h2, .c-list h2 { font-size: var(--fs-l); line-height: 1.02; letter-spacing: -0.045em; font-weight: 500; margin: 0 0 30px; max-width: 18ch; }
.c-text p { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; margin: 0 0 1em; }
.c-list ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.c-list li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; display: grid; grid-template-columns: 50px 1fr; }
.c-list li::before { content: counter(li, decimal-leading-zero); counter-increment: li; color: var(--mute); font-size: var(--fs-s); padding-top: 4px; }
.c-list ul { counter-reset: li; }
.c-image { padding-block: 20px; }
.c-image.is-full { margin-inline: calc(var(--gutter) * -1); }
.c-image figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.c-image.is-full figure { border-radius: 0; }
.c-image img { width: 100%; }
.c-image figcaption { color: var(--mute); font-size: 0.9rem; padding-top: 12px; }
.c-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); padding-block: 20px; align-items: start; }
.c-pair.is-3 { grid-template-columns: repeat(3, 1fr); }
.c-pair figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.c-pair img { border-radius: var(--radius); width: 100%; height: auto; display: block; }
.c-pair figcaption { color: var(--mute); font-size: 0.9rem; padding-top: 12px; }
.c-image img, .c-pair img { box-shadow: 0 0 0 1px var(--line); }
.c-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--gutter); padding-block: clamp(50px, 9vh, 110px); }
.c-stats div { border-top: 1px solid var(--line); padding-top: 20px; }
.c-stats strong { display: block; font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.06em; line-height: 1; }
.c-stats span { color: var(--mute); }
.c-quote { padding-block: clamp(60px, 11vh, 130px); }
.c-quote blockquote { margin: 0; font-size: var(--fs-l); line-height: 1.1; letter-spacing: -0.04em; max-width: 24ch; }
.c-quote cite { display: block; margin-top: 24px; color: var(--mute); font-style: normal; }
@media (max-width: 820px) { .c-text, .c-list, .c-pair, .c-pair.is-3 { grid-template-columns: 1fr; } }

.next {
  display: block; padding: clamp(80px, 14vh, 160px) var(--gutter); position: relative; overflow: hidden;
}
.next__label { color: var(--on-dark-mute); }
.next__title { font-size: var(--fs-mega); line-height: 0.88; letter-spacing: -0.06em; font-weight: 500; margin: 16px 0 0; transition: transform 0.9s var(--ease); }
.next:hover .next__title { transform: translateX(2vw); }
.next__img {
  position: absolute; right: var(--gutter); top: 50%; width: clamp(200px, 26vw, 420px); aspect-ratio: 4/3;
  border-radius: var(--radius); overflow: hidden; transform: translateY(-50%) rotate(4deg) scale(0.9); opacity: 0;
  transition: 0.8s var(--ease);
}
.next__img img { width: 100%; height: 100%; object-fit: cover; }
.next:hover .next__img { opacity: 1; transform: translateY(-50%) rotate(-2deg) scale(1); }
@media (hover: none) { .next__img { display: none; } }

/* draft marker shown wherever copy still contains ✎ */
.draft-note {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 40;
  background: #fef3c7; color: #78350f; font-size: 0.8rem; padding: 8px 14px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
.c-image.is-full figcaption { padding-inline: var(--gutter); }

.c-image video, .c-pair video { width: 100%; display: block; border-radius: var(--radius); background: #000; }
.c-pair video { aspect-ratio: 16 / 9; object-fit: cover; }

/* ==========================================================================
   Floating widgets: accessibility (left) + WhatsApp lead chat (right)
   ========================================================================== */
.fab {
  position: fixed; bottom: 20px; z-index: 70;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06);
  transition: transform 0.5s var(--ease), background-color 0.3s;
}
.fab:hover { transform: translateY(-3px) scale(1.04); }
.fab:focus-visible, .fpanel button:focus-visible, .fpanel input:focus-visible, .fpanel textarea:focus-visible, .fpanel a:focus-visible {
  outline: 2px solid #4f8cff; outline-offset: 3px;
}
.fab--a11y { left: 20px; }
.fab--wa { right: 20px; background: #25d366; color: #fff; }
.fab--wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366;
  animation: wa-ping 2.6s var(--ease) infinite;
}
.fab--wa.is-active::after { animation: none; opacity: 0; }
@keyframes wa-ping { 0% { transform: scale(1); opacity: 0.6; } 70%, 100% { transform: scale(1.55); opacity: 0; } }

.fpanel {
  position: fixed; bottom: 86px; z-index: 71;
  background: #fff; color: var(--ink);
  border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.06);
  opacity: 0; transform: translateY(12px) scale(0.98); transform-origin: bottom center;
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease);
  font-size: 15px; letter-spacing: -0.005em;
}
.fpanel.is-open { opacity: 1; transform: none; }
.fpanel[hidden] { display: none; }
.fpanel__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 10px; }
.fpanel__head strong { font-size: 17px; font-weight: 600; }
.fpanel__x { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: inherit; opacity: 0.6; }
.fpanel__x:hover { opacity: 1; background: rgba(0,0,0,0.06); }

/* accessibility panel */
.fpanel--a11y { left: 20px; width: min(340px, calc(100vw - 32px)); padding-bottom: 14px; transform-origin: bottom left; }
.a11y-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px 14px; border-bottom: 1px solid var(--line); }
.a11y-size { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 3px; }
.a11y-size button { min-width: 44px; height: 34px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.a11y-size button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.a11y-toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px; cursor: pointer; }
.a11y-toggle:hover { background: var(--bg); }
.a11y-toggle span { display: grid; gap: 2px; }
.a11y-toggle b { font-weight: 500; }
.a11y-toggle small { color: var(--mute); font-size: 13px; }
.a11y-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.a11y-toggle i { flex: none; width: 42px; height: 24px; border-radius: 999px; background: #c9c9c5; position: relative; transition: background 0.25s; }
.a11y-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 0.3s var(--ease); }
.a11y-toggle input:checked + i { background: var(--ink); }
.a11y-toggle input:checked + i::after { transform: translateX(18px); }
.a11y-toggle input:focus-visible + i { outline: 2px solid #4f8cff; outline-offset: 2px; }
.a11y-reset { margin: 8px 18px 0; font-size: 14px; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }

/* applied preferences */
html.a11y-bigtext { font-size: calc(100% * var(--a11y-scale, 1)); }
html.a11y-bigtext body { font-size: calc(var(--fs-body) * var(--a11y-scale, 1)); }
html.a11y-contrast { --mute: #4a4a47; --ink-2: #1a1a19; --line: rgba(13,13,13,0.35); --on-dark-mute: #c9c9c4; }
html.a11y-contrast .statement__text .w { color: #0d0d0d !important; }
html.a11y-links main a:not(.btn):not(.project):not(.fan__card), html.a11y-links footer a:not(.btn) { text-decoration: underline; text-underline-offset: 0.18em; }
html.a11y-font body, html.a11y-font .fpanel { font-family: Verdana, "Atkinson Hyperlegible", ui-sans-serif, system-ui, sans-serif; letter-spacing: 0.01em; word-spacing: 0.06em; }
html.a11y-font em, html.a11y-font .serif { font-family: inherit; font-style: italic; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
html.a11y-cursor .cursor, html.a11y-cursor .cursor-dot { display: none !important; }
html.a11y-cursor.has-cursor, html.a11y-cursor.has-cursor * { cursor: auto !important; }
html.a11y-cursor a, html.a11y-cursor button { cursor: pointer !important; }

/* WhatsApp chat */
.fpanel--wa { right: 20px; width: min(380px, calc(100vw - 32px)); height: min(600px, calc(100svh - 120px)); display: flex; flex-direction: column; overflow: hidden; transform-origin: bottom right; }
.fpanel--wa[hidden] { display: none; }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--ink); color: #fff; }
.wa-head > div:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.wa-head strong { font-weight: 600; font-size: 15px; }
.wa-head small { font-size: 12.5px; color: rgba(255,255,255,0.65); display: inline-flex; align-items: center; gap: 6px; }
.wa-dot { width: 7px; height: 7px; border-radius: 50%; background: #25d366; }
.wa-avatar { width: 40px; height: 40px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-weight: 700; letter-spacing: -0.04em; }
.wa-head .fpanel__x { color: #fff; }
.wa-head .fpanel__x:hover { background: rgba(255,255,255,0.12); }
.wa-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #f2efe9; overscroll-behavior: contain; }
.wa-msg { max-width: 85%; padding: 10px 13px; border-radius: 16px; line-height: 1.4; font-size: 14.5px; animation: wa-in 0.35s var(--ease); word-wrap: break-word; }
.wa-msg--bot { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 1px 1px rgba(0,0,0,0.05); }
.wa-msg--user { background: #d9fdd3; align-self: flex-end; border-bottom-right-radius: 4px; }
@keyframes wa-in { from { opacity: 0; transform: translateY(6px); } }
.wa-typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.wa-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9a9a96; animation: wa-dot 1s infinite; }
.wa-typing i:nth-child(2) { animation-delay: 0.15s; } .wa-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes wa-dot { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }
.wa-input { padding: 10px 12px 12px; border-top: 1px solid var(--line); background: #fff; }
.wa-field { display: flex; align-items: flex-end; gap: 8px; }
.wa-field[hidden], .wa-chips[hidden] { display: none; }
.wa-field textarea {
  flex: 1; resize: none; border: 1px solid var(--line); border-radius: 18px; padding: 10px 14px;
  font: inherit; font-size: 15px; line-height: 1.35; color: var(--ink); background: var(--bg); max-height: 140px;
}
.wa-field textarea:focus { outline: none; border-color: #25d366; background: #fff; }
.wa-send { flex: none; width: 42px; height: 42px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; }
.wa-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wa-chip { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; background: #fff; transition: background 0.2s, border-color 0.2s; }
.wa-chip:hover, .wa-chip:focus-visible { background: var(--ink); color: #fff; border-color: var(--ink); }
.wa-error { margin: 8px 4px 0; color: #b3202a; font-size: 13px; }
.wa-error[hidden] { display: none; }
.wa-summary { background: #fff; border-radius: 16px; padding: 14px; margin-top: 4px; box-shadow: 0 1px 1px rgba(0,0,0,0.05); animation: wa-in 0.35s var(--ease); }
.wa-summary dl { margin: 0 0 12px; display: grid; gap: 8px; }
.wa-summary dl div { display: grid; grid-template-columns: 72px 1fr; gap: 8px; font-size: 14px; }
.wa-summary dt { color: var(--mute); }
.wa-summary dd { margin: 0; word-break: break-word; }
.wa-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border-radius: 999px; background: #25d366; color: #fff; font-weight: 600; }
.wa-cta svg { width: 20px; height: 20px; }
.wa-restart { display: block; margin: 10px auto 0; font-size: 13px; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 560px) {
  .fab { bottom: 16px; width: 50px; height: 50px; }
  .fab--a11y { left: 16px; } .fab--wa { right: 16px; }
  .fpanel { bottom: 78px; }
  .fpanel--a11y { left: 16px; } .fpanel--wa { right: 16px; height: min(560px, calc(100svh - 100px)); }
}
/* keep the draft note clear of the buttons */
.draft-note { bottom: 84px; }

/* ---------- Language switch ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; letter-spacing: 0.04em; }
.lang-switch a { opacity: 0.5; transition: opacity 0.3s; padding: 4px 2px; }
.lang-switch a:hover, .lang-switch a[aria-current="true"] { opacity: 1; }
.lang-switch a[aria-current="true"] { font-weight: 600; }
.lang-switch span { opacity: 0.35; }
.lang-switch--menu { margin-top: 28px; font-size: 1.1rem; }
.menu .lang-switch--menu a { font-size: 1.1rem; letter-spacing: 0.04em; }
.menu .menu__small { font-size: 1.2rem; letter-spacing: -0.01em; margin-top: 24px; opacity: 0.75; }
@media (max-width: 820px) { .nav__right .lang-switch, .nav__right .nav__book { display: none; } }

/* ---------- Skip link ---------- */
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; transform: translateY(-160%); transition: transform 0.3s var(--ease); }
.skip-link:focus { transform: none; }

/* ---------- Booking modal ---------- */
.bmodal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.bmodal[hidden] { display: none; }
.bmodal__scrim { position: absolute; inset: 0; background: rgba(10,10,10,0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.3s var(--ease); }
.bmodal__card {
  position: relative; width: min(460px, 100%); background: #fff; color: var(--ink); border-radius: 24px;
  padding: 32px 28px 26px; box-shadow: 0 40px 100px -30px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(16px) scale(0.98); transition: opacity 0.3s var(--ease), transform 0.45s var(--ease);
}
.bmodal.is-open .bmodal__scrim { opacity: 1; }
.bmodal.is-open .bmodal__card { opacity: 1; transform: none; }
.bmodal__x { position: absolute; top: 14px; right: 14px; }
.bmodal__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--bg); display: grid; place-items: center; margin-bottom: 18px; }
.bmodal__title { font-size: 1.6rem; line-height: 1.1; letter-spacing: -0.03em; font-weight: 500; margin: 0 0 10px; }
.bmodal__text { color: var(--ink-2); margin: 0 0 18px; font-size: 15px; }
.bmodal__facts { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.bmodal__facts li { display: flex; gap: 10px; align-items: flex-start; }
.bmodal__facts li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin-top: 7px; }
.bmodal__cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; transition: transform 0.4s var(--ease); }
.bmodal__cta:hover { transform: translateY(-2px); }
.bmodal__note { text-align: center; font-size: 12.5px; color: var(--mute); margin: 10px 0 18px; }
.bmodal__alt { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.bmodal__alt > span { width: 100%; color: var(--mute); margin-bottom: 2px; }
.bmodal__alt button, .bmodal__alt a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }
.bmodal__alt button svg { width: 18px; height: 18px; color: #25d366; }
.bmodal__alt button:hover, .bmodal__alt a:hover { border-color: var(--ink); }
.bmodal :focus-visible { outline: 2px solid #4f8cff; outline-offset: 3px; }
html.modal-open { overflow: hidden; }
