/* ==========================================================================
   Base — reset, typography, shared components, reveal animations
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-sans);
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: clip; letter-spacing: -0.02em; }

a { color: var(--c-ink); text-decoration: none; }
a:hover { color: var(--c-orange); }

h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; }

/* --- Typography ---------------------------------------------------------- */

.display {
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.display--l { font-size: clamp(40px, 4.9vw, 80px); }
.display--m { font-size: clamp(40px, 4.6vw, 76px); }
.display--s { font-size: clamp(32px, 3.3vw, 54px); line-height: 1.06; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-muted);
}

.lead {
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-body);
}

.text-brick  { color: var(--c-brick); }
.text-blue   { color: var(--c-blue); }
.text-violet { color: var(--c-violet); }
.text-orange { color: var(--c-orange); }
.text-faint  { color: #A8A8A6; }

/* Italic serif accent word inside headlines */
.serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.14em;          /* optical match with the sans */
  line-height: 0;
  letter-spacing: -0.035em;
  padding-right: 0.06em;      /* keep the italic overhang inside the reveal mask */
}
.serif--accent { color: var(--c-orange); }

/* --- Buttons & chips ------------------------------------------------------ */

/* One size for every CTA on the site (matches the hero buttons) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
@media (max-width: 1100px) and (min-width: 760px) { .btn { height: 46px; } }
@media (max-width: 759px) { .btn { min-width: 150px; height: 48px; padding: 0 22px; font-size: 14px; } }
.btn--dark   { background: var(--c-ink); color: #fff; --fill: var(--c-orange); }
.btn--light  { background: #fff; color: var(--c-ink); --fill: var(--c-ink); }
.btn--ghost  { background: transparent; color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-ink); --fill: var(--c-ink); }
.btn--violet { background: var(--c-violet); color: #fff; --fill: var(--c-ink); }

.link-muted { font-size: 14px; color: var(--c-muted); }

.cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--c-ink);
  color: #fff;
}
.chip--blue   { background: var(--c-blue); }
.chip--brick  { background: var(--c-brick); }
.chip--orange { background: var(--c-orange); }
.chip--mint   { background: var(--c-mint); color: var(--c-mint-ink); }
.chip--yellow { background: var(--c-yellow); color: var(--c-ink); }
.chip--indigo { background: #4B3CF0; }
.chip--ink    { background: var(--c-ink); }

.tag {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.circle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex: none;
}
.circle-btn--solid { border: 0; background: #fff; color: var(--c-ink); }
.circle-row { display: flex; gap: 8px; }

/* --- Premium button hover --------------------------------------------------
   1. A soft curved fill rises from the bottom (--fill colour)
   2. The label rolls up and a copy rolls in from below
   Per-button colours: set --fill (background on hover) and --fill-ink (text). */

:where(.btn, .pill-btn) {
  --fill: var(--c-ink);
  --fill-ink: #fff;
  --btn-ease: cubic-bezier(.19, 1, .22, 1);   /* expo-out: fast start, long soft landing */
}
.btn,
.pill-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .6s var(--btn-ease), box-shadow .6s var(--btn-ease);
  -webkit-tap-highlight-color: transparent;
}
.btn::before,
.pill-btn::before {
  content: "";
  position: absolute;
  left: -25%;
  top: 100%;
  z-index: -1;
  width: 150%;
  height: 200%;
  border-radius: 50%;
  background: var(--fill);
  transform: translate3d(0, 0, 0);
  transition: transform .9s var(--btn-ease), border-radius .9s var(--btn-ease);
  will-change: transform;
  pointer-events: none;
}
.btn:hover,
.pill-btn:hover { color: var(--fill-ink); }
.btn:hover::before,
.pill-btn:hover::before {
  transform: translate3d(0, -75%, 0);
  border-radius: 30%;
}
.btn:focus-visible,
.pill-btn:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 3px; }

.btn__roll {
  position: relative;
  display: inline-block;
  overflow: hidden;
  line-height: 1.25;
  vertical-align: top;
}
.btn__roll > span,
.btn__roll::after {
  display: block;
  transition: transform .8s var(--btn-ease);
}
.btn__roll::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  text-align: center;
}
.btn:hover .btn__roll > span,
.btn:hover .btn__roll::after,
.pill-btn:hover .btn__roll > span,
.pill-btn:hover .btn__roll::after { transform: translate3d(0, -100%, 0); }

/* --- Artwork / image placeholder -----------------------------------------
   Every image area is a `.art` box with a colour class.
   To use a real image, put <img src="..." alt=""> inside it.            */

.art {
  position: relative;
  overflow: hidden;
  background: var(--art-bg, var(--c-grey));
}
.art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-orange  { --art-bg: var(--c-orange); }
.bg-green   { --art-bg: var(--c-green); }
.bg-yellow  { --art-bg: var(--c-yellow); }
.bg-blue    { --art-bg: var(--c-blue); }
.bg-cobalt  { --art-bg: var(--c-cobalt); }
.bg-magenta { --art-bg: var(--c-magenta); }
.bg-ink     { --art-bg: #1E1E1E; }
.bg-sky     { --art-bg: var(--c-sky); }
.bg-violet  { --art-bg: var(--c-violet); }
.bg-pink    { --art-bg: var(--c-pink); }
.bg-teal    { --art-bg: var(--c-teal); }
.bg-amber   { --art-bg: var(--c-amber); }
.bg-indigo  { --art-bg: var(--c-indigo); }
.bg-brick   { --art-bg: var(--c-brick); }
.bg-grey    { --art-bg: var(--c-grey); }
.bg-white   { --art-bg: #FFFFFF; }

/* --- Reveal animations ----------------------------------------------------
   [data-in] elements get --t animated 0 → 1 by JS when they enter the
   viewport (data-delay / data-dur in ms). Default is 1 so content is
   visible without JS.                                                     */

[data-in] { --t: 1; }

.r-line {
  display: block;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--t) * 150% - 50%), transparent calc(var(--t) * 150%));
          mask-image: linear-gradient(90deg, #000 calc(var(--t) * 150% - 50%), transparent calc(var(--t) * 150%));
  filter: blur(calc((1 - var(--t)) * 10px));
}
.r-fade    { opacity: var(--t); filter: blur(calc((1 - var(--t)) * 6px)); }
.r-opacity { opacity: var(--t); }
.r-up      { opacity: var(--t); transform: translateY(calc((1 - var(--t)) * var(--r-dist, 24px))); }
.r-pop     { opacity: var(--t); transform: scale(calc(0.5 + var(--t) * 0.5)) rotate(var(--rot, 0deg)); }
.r-blur-in { opacity: var(--t); filter: blur(calc((1 - var(--t)) * 16px)); transform: scale(calc(0.94 + var(--t) * 0.06)); }

/* Extend the reveal mask below the line box so descenders (g, y, p and
   the italic serif) are never clipped; negative margin keeps layout the same */
.r-line,
.s-line {
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}

/* Scroll-scrubbed heading line: set --l (0 → 1) on the element */
.s-line {
  display: block;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--l) * 150% - 50%), transparent calc(var(--l) * 150%));
          mask-image: linear-gradient(90deg, #000 calc(var(--l) * 150% - 50%), transparent calc(var(--l) * 150%));
}

/* Pinned scroll stage (inside a tall [data-p="sticky"] section) */
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  contain: layout paint;
}

.marquee { display: flex; width: max-content; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .btn, .pill-btn, .btn::before, .pill-btn::before,
  .btn__roll > span, .btn__roll::after { transition: none; }
}
