/* ==========================================================================
   Opaline — one-page site
   Design reference: 1440px desktop (Figma node 9:390)
   ========================================================================== */

:root {
  --black: #000;
  --white: #fff;
  --pink-err: #ffb3d9;     /* errors on dark glass */
  --err-dark: #c2417f;     /* errors on white */

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --gutter: 16px;
  --col: 24.79vw;          /* 357 / 1440 — hero text column */

  /* Big headings: 120px / 100px line-height at 1440 */
  --h-size: clamp(40px, 8.3333vw, 120px);
  --h-lh: 0.8333;
  --h-line: calc(var(--h-size) * var(--h-lh));
  --peek: calc(16px + var(--h-line) * .52);  /* visible part of a covered card: top half of its heading */
  --row: calc(var(--h-line) + 32px);         /* full one-line heading row of the next card */

  --ease: cubic-bezier(.7, 0, .2, 1);
  --vh: 100vh;
}
@supports (height: 100svh) { :root { --vh: 100svh; } }

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p, h1, h2, ul, fieldset, legend { margin: 0; padding: 0; border: 0; }
ul { list-style: none; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { padding: 0; border: 0; background: none; cursor: pointer; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Pills / buttons ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 2px 23px;
  border-radius: 40px;
  font-size: 12px;
  line-height: normal;
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease;
}
.pill--glass { height: 40px; font-size: 14px; line-height: 18px; color: var(--white); background-color: rgba(255, 255, 255, .03); }
.pill--light { color: var(--black); }


/* ---------- Glass: background blur + soft gradient hairline (as in Figma) ---------- */
.glass {
  position: relative;
  isolation: isolate;
  border: 0;
  background-color: rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: background-color .3s ease, color .3s ease;
}
/* 1px stroke that fades out towards the sides — no hard edge */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(165deg,
    rgba(255, 255, 255, .34) 0%,
    rgba(255, 255, 255, .12) 30%,
    rgba(255, 255, 255, .05) 50%,
    rgba(255, 255, 255, .10) 72%,
    rgba(255, 255, 255, .26) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  transition: opacity .3s ease;
}
.glass:hover { background-color: rgba(255, 255, 255, .1); }

/* dark variant for white backgrounds */
.glass--dark { background-color: rgba(0, 0, 0, .03); }
/* "Discuss a project" on white: text stays black, the glass just darkens a little */
.glass--dark:hover { background-color: rgba(0, 0, 0, .07); color: var(--black); }
.glass--dark::before {
  background: linear-gradient(165deg,
    rgba(0, 0, 0, .16) 0%,
    rgba(0, 0, 0, .07) 35%,
    rgba(0, 0, 0, .04) 55%,
    rgba(0, 0, 0, .12) 100%);
}

/* ==========================================================================
   HERO — pinned; the white content slides up over it
   ========================================================================== */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  height: var(--vh);
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
  background: #000;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__brush {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* fade out towards the card's top and bottom so the drop is never cut by an edge */
  -webkit-mask: linear-gradient(to bottom, transparent 0, #000 90px, #000 calc(100% - 160px), transparent 100%);
  mask: linear-gradient(to bottom, transparent 0, #000 90px, #000 calc(100% - 160px), transparent 100%);
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: multiply;
  transition: opacity .8s ease;
}
.card__brush.is-on { opacity: 1; }
.brush__drop {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .85;
}
.brush__drop--1 { opacity: .7; }
.brush__drop--2 { opacity: .6; }
.card { overflow: hidden; }
.card > :not(.card__brush) { position: relative; z-index: 1; }
/* each card: its own mix of the brand's pink / lilac / blue, and its own shape */
.card--1 .brush__drop { background: radial-gradient(closest-side, #f6a9d3, #f9d0e6 60%, transparent); }
.card--2 .brush__drop { background: radial-gradient(closest-side, #a7e9fa, #d3f3fb 60%, transparent); border-radius: 32%; }
.card--3 .brush__drop { background: linear-gradient(135deg, #f4a3cf, #dcd3f3 50%, #a9ebfa); border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%;
                        animation: brush-morph 12s ease-in-out infinite alternate; }
.card--4 .brush__drop { background: radial-gradient(closest-side, #d9cdf4, #b8eefa 60%, transparent); border-radius: 50% 50% 46% 54% / 38% 38% 62% 62%; }
@keyframes brush-morph {
  0%   { border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%; }
  100% { border-radius: 45% 55% 45% 55% / 55% 45% 55% 45%; }
}

/* hero: liquid-glass brush, drawn by script.js on a WebGL canvas */
.hero__lens {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__lens canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .25s ease;
}
.hero__lens canvas.is-on { opacity: 1; }

.logo {
  position: absolute;
  top: 16px;
  left: var(--gutter);
  z-index: 1;
}

.hero__tagline {
  position: absolute;
  top: 16px;
  left: var(--col);
  z-index: 1;
  width: 159px;
}

.hero__main {
  position: absolute;
  /* anchored to the bottom: 154px at 870px tall (as in Figma), and never closer
     than 64px, so the button can't slide onto the time line on short screens */
  bottom: max(64px, 17.7%);
  left: var(--col);
  z-index: 1;
}
.hero__title {
  width: 426px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 48px;
  letter-spacing: -0.96px;
  margin-bottom: 20px;
}

.hero__bottom {
  position: absolute;
  left: var(--col);
  right: var(--gutter);
  bottom: 16px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.hero__time { display: flex; align-items: center; gap: 4px; }

/* ---------- Sound: tiny equalizer, flat = muted ---------- */
.sound {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 19px;
  margin: -12px -12px -12px 0;   /* bigger hit area, same visual spot */
  padding: 12px;
  box-sizing: content-box;
}
.sound span {
  display: block;
  width: 1px;
  height: 8px;               /* muted: every bar at the shortest height */
  background: var(--white);
  transition: height .45s cubic-bezier(.3, .7, .3, 1);
}
.sound.is-on span { animation: eq 1s ease-in-out infinite alternate; }
.sound.is-on span:nth-child(1) { --a: 13px; --b: 5px;  animation-duration: .74s; }
.sound.is-on span:nth-child(2) { --a: 19px; --b: 7px;  animation-duration: .52s; animation-delay: -.2s; }
.sound.is-on span:nth-child(3) { --a: 8px;  --b: 16px; animation-duration: .63s; animation-delay: -.4s; }
.sound.is-on span:nth-child(4) { --a: 15px; --b: 4px;  animation-duration: .57s; animation-delay: -.1s; }
.sound.is-on span:nth-child(5) { --a: 8px;  --b: 14px; animation-duration: .81s; animation-delay: -.3s; }
@keyframes eq { from { height: var(--a); } to { height: var(--b); } }
@media (prefers-reduced-motion: reduce) {
  .sound.is-on span { animation: none; }
  .sound.is-on span:nth-child(1) { height: 13px; }
  .sound.is-on span:nth-child(2) { height: 19px; }
  .sound.is-on span:nth-child(4) { height: 15px; }
}

/* ==========================================================================
   Floating message widget: steps → "Let's talk"
   ========================================================================== */
.msg {
  position: fixed;
  top: 16px;
  right: var(--gutter);
  z-index: 50;
  width: 332px;
  height: 156px;
  margin: 0;
  border-radius: 40px;
  overflow: hidden;
  color: var(--white);
  transition:
    width .5s var(--ease),
    height .5s var(--ease),
    background-color .4s ease,
    box-shadow .4s ease,
    opacity .3s ease,
    transform .3s ease;
}
.msg[data-step="2"] { height: 380px; }
.msg[data-step="3"],
.msg[data-step="4"] { height: 180px; }
.msg[data-step="4"].has-error { height: 196px; }
.msg[data-step="5"] { height: 202px; }

.msg__steps { position: absolute; inset: 0; transition: opacity .3s ease .15s; }
.msg__step {
  position: absolute;
  inset: 0;
  min-width: 0;
  padding: 23px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .4s var(--ease), visibility 0s linear .4s;
}
.msg__step.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .4s ease .18s, transform .5s var(--ease) .12s, visibility 0s;
}
.msg__step.is-past { transform: translateY(-10px); }

.msg__input {
  display: block;
  width: 100%;
  height: calc(100% - 40px);
  padding: 0;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: var(--white);
  line-height: 16px;
}
.msg__input::placeholder { color: var(--white); opacity: 1; }

.msg__q {
  display: block;
  float: none;
  width: 100%;
  margin-bottom: 8px;
}
.msg__big {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 32px;
  caret-color: var(--white);
}
.msg__big::placeholder { color: var(--white); opacity: .3; }
.msg__error {
  margin-top: 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--pink-err);
}
.msg__error:empty { display: none; }

.msg__chips {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 20px;
}

.msg__done {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 60px;
}
.heart { display: block; margin: 0 auto; }
.msg__thanks {
  margin-top: 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 32px;
}
.msg__note { margin-top: 8px; max-width: 175px; opacity: .5; }

.msg__bar {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity .3s ease .15s;
}
.msg__dots {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 7px;
  margin: 0 auto 0 4px;
  transition: opacity .3s ease, transform .3s var(--ease);
}
.msg__dots i {
  display: block;
  flex: none;
  width: var(--s, 2px);
  height: var(--s, 2px);
  border-radius: 50%;
  background: var(--white);
  opacity: var(--o, .3);
  transition: width .45s var(--ease), height .45s var(--ease), opacity .45s ease;
}
.msg__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 32px;
  border-radius: 40px;
  background-color: rgba(255, 255, 255, .03);
  color: var(--white);
  transition: background-color .25s ease, color .25s ease, opacity .3s ease, transform .3s var(--ease);
}
.msg__btn:disabled { cursor: default; }
.msg__btn:disabled:hover { background-color: rgba(255, 255, 255, .03); }
.msg__next:not(:disabled) { background-color: var(--white); color: var(--black); }
.msg__next:not(:disabled)::before { opacity: 0; }
.msg__next:not(:disabled):hover { background-color: rgba(255, 255, 255, .85); }
.msg.is-sending .msg__next { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }

/* step 1: no counter and no arrow until something is typed */
.msg[data-step="1"]:not(.has-text) .msg__dots,
.msg[data-step="1"]:not(.has-text) .msg__next { opacity: 0; transform: scale(.8); pointer-events: none; }
.msg[data-step="1"] .msg__back { display: none; }
.msg[data-step="5"] .msg__bar { opacity: 0; visibility: hidden; }

.msg__talk {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.msg.is-collapsed { width: 104px !important; height: 40px !important; }
.msg.is-collapsed:hover { background-color: rgba(255, 255, 255, .12); }
/* over the white content the pill turns solid black */
.msg.is-dark {
  background-color: var(--black);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.msg.is-dark:hover { background-color: #222; }
.msg.is-dark::before { opacity: .35; }
.msg.is-collapsed .msg__steps,
.msg.is-collapsed .msg__bar { opacity: 0; visibility: hidden; transition: opacity .15s ease, visibility 0s .15s; }
.msg.is-collapsed .msg__talk { opacity: 1; pointer-events: auto; transition-delay: .2s; }
.msg.is-hidden { opacity: 0; transform: translateY(-8px); pointer-events: none; }

/* ---------- Chips (widget + form) ---------- */
.chip {
  height: 48px;
  padding: 0 24px;
  border-radius: 40px;
  background-color: rgba(255, 255, 255, .03);
  color: var(--white);
  letter-spacing: -0.28px;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.chip--sm { height: 40px; }
.chip[aria-pressed="true"] { background: var(--white); color: var(--black); }
.chip[aria-pressed="true"]::before { opacity: 0; }

/* ==========================================================================
   CONTENT
   ========================================================================== */
.content {
  position: relative;
  z-index: 1;
  background: var(--white);
}

/* ---------- Services: sticky stacking cards ---------- */
.services { position: relative; }

.card {
  --top: 0px;
  position: sticky;
  top: var(--top);
  display: flex;
  flex-direction: column;
  /* every card reaches the bottom of the screen, so once the last one locks in
     the whole stack scrolls away together */
  height: calc(var(--vh) - var(--top));
  min-height: 300px;
  /* bottom row stays free: the next card's heading overlaps it */
  padding: 16px var(--gutter) calc(48px + var(--row));
  background: var(--white);
}
.card + .card {
  margin-top: calc(-1 * var(--row));
  border-top: 1px solid var(--black);
}
.card--1 { --top: 0px; }
.card--2 { --top: var(--peek); }
.card--3 { --top: calc(var(--peek) * 2); }
.card--4 { --top: calc(var(--peek) * 3); padding-bottom: 48px; }

.card__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--h-size);
  line-height: var(--h-lh);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.card__title sup {
  display: inline-block;
  vertical-align: top;
  margin-left: .55em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0;
}

.card__body {
  margin-top: auto;
  margin-left: 50%;             /* starts on the centre line (721 / 1440) */
  max-width: 512px;
}
.card__body p {
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.48px;
  margin-bottom: 28px;
}

/* ---------- World clocks: pinned drum ---------- */
.world {
  --sp: clamp(120px, 19.69vw, 284px);    /* distance between neighbouring times (283.5 at 1440) */
  --big: clamp(64px, 8.3333vw, 120px);
  position: relative;
  height: calc(var(--vh) * 3.6);
}
.world__stage {
  position: sticky;
  top: 0;
  height: var(--vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--white);   /* Safari colours its top bar from pinned blocks: keep it white */
}
.world__lead {
  text-align: center;
  margin-bottom: clamp(120px, 34vh, 300px);
}

.drum {
  position: relative;
  width: 100%;
  height: 174px;        /* time row 100 + ruler */
}
.drum__track {
  position: absolute;
  inset: 0 0 auto;
  height: 100px;
  perspective: 1400px;
}
.drum__item {
  position: absolute;
  top: 0;
  left: 50%;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--big);
  line-height: 100px;
  letter-spacing: -0.04em;
  white-space: nowrap;
  transform-origin: 50% 72%;
  will-change: transform, opacity, filter;
}
.drum__time { display: block; }

.drum__status,
.drum__city {
  position: absolute;
  top: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 32px;
  white-space: nowrap;
}
.drum__status { left: var(--gutter); align-items: flex-start; }
.drum__status img { margin-top: 10px; }            /* dot centred on the first line */
.drum__roll > span { white-space: pre-line; }      /* "Dreaming up / ideas" on two lines */
.drum__city { right: var(--gutter); }
.drum__roll {
  display: inline-block;
  overflow: hidden;
  padding: 0 .06em 8px;
  margin: 0 -.06em -8px;
}
.drum__roll > span { display: block; }
.drum__roll > span.is-in { animation: roll-in .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes roll-in {
  from { transform: translateY(100%); opacity: 0; filter: blur(6px); }
  to   { transform: none; opacity: 1; filter: none; }
}

.drum__ruler {
  position: absolute;
  left: 50%;
  top: 116px;
  width: calc(var(--sp) * 2.85);
  height: 58px;
  transform: translateX(-50%);
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%);
  mask: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%);
}
.drum__ticks {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 29px;
}
.drum__ticks i {                     /* created by script.js */
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 100%;
  background: rgba(0, 0, 0, .14);
}
.drum__mark {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 42px;
  background: rgba(0, 0, 0, .35);
}
.drum__mark--c { height: 58px; background: var(--black); }
.drum__mark--l { margin-left: calc(var(--sp) * -1); }
.drum__mark--r { margin-left: var(--sp); }
.drum__mark--l, .drum__mark--r { transition: opacity .4s ease; }
.drum.at-start .drum__mark--l,
.drum.at-end .drum__mark--r { opacity: 0; }

/* ---------- Contact + footer: white, two big soft glows ---------- */
.finale {
  position: relative;          /* above the pinned clock screen */
  z-index: 1;
  overflow: hidden;
  color: var(--black);
  background: var(--white);
  isolation: isolate;
}
.finale__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease, transform 2.2s cubic-bezier(.2, .8, .2, 1);
}
.finale.is-shown .finale__bg { opacity: 1; transform: none; }
/* two big glows at the bottom (pink left, bigger blue right, running off the edge),
   in the card-brush colours. script.js nudges them toward the mouse on a spring;
   the inner layer breathes slowly on its own. */
.finale__blob {
  position: absolute;
  will-change: transform;
}
.finale__blob::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  filter: blur(50px);
}
.finale__blob--pink {
  width: 68vw; height: 68vw;
  left: calc(42vw - 34vw);
  top: calc(86% - 34vw);
}
.finale__blob--pink::before {
  background: radial-gradient(closest-side, rgba(246, 169, 211, .62), rgba(248, 196, 224, .5) 70%, rgba(249, 208, 230, 0));
  animation: breathe-a 9s ease-in-out infinite alternate;
}
.finale__blob--blue {
  width: 90vw; height: 90vw;
  left: calc(70vw - 45vw);
  top: calc(76% - 45vw);
}
.finale__blob--blue::before {
  background: radial-gradient(closest-side, rgba(167, 233, 250, .66), rgba(196, 239, 251, .52) 70%, rgba(211, 243, 251, 0));
  animation: breathe-b 11s ease-in-out infinite alternate;
}
@keyframes breathe-a { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.06) translate(2%, -2%); } }
@keyframes breathe-b { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(.97) translate(-2%, 1.5%); } }
@keyframes blob-a { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-12vw, -8vw, 0) scale(1.12); } }
@keyframes blob-b { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(14vw, 10vw, 0) scale(.92); } }
@media (prefers-reduced-motion: reduce) {
  .finale__blob::before { animation: none; }
  .finale__bg { transition: none; }
}

.contact {
  padding: 200px var(--gutter) 0;
}
.contact__title {
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--h-size);
  line-height: var(--h-lh);
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.contact__title > span { display: block; }

.form {
  position: relative;
  max-width: 720px;
  margin: 123px auto 0;
  color: var(--black);
}
/* chips on white: dark glass, selected = black */
.form .chip { color: var(--black); background-color: rgba(0, 0, 0, .03); }
.form .chip:hover { background-color: rgba(0, 0, 0, .07); }
.form .chip::before {
  background: linear-gradient(165deg, rgba(0, 0, 0, .16) 0%, rgba(0, 0, 0, .07) 35%, rgba(0, 0, 0, .04) 55%, rgba(0, 0, 0, .12) 100%);
}
.form .chip[aria-pressed="true"] { background: var(--black); color: var(--white); }
.form__inner { display: flex; flex-direction: column; }

/* underline fields */
.form__fields { display: grid; gap: 39px; }
.line { position: relative; display: block; cursor: text; }
.line__q { display: block; margin-bottom: 12px; }
.line__control {
  display: block;
  width: 100%;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .15);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--black);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 36px;
  caret-color: var(--black);
  transition: border-color .25s ease;
}
.line__control::placeholder { color: var(--black); opacity: .3; transition: opacity .25s ease; }
.line__control:hover { border-bottom-color: rgba(0, 0, 0, .35); }
.line__control:focus { border-bottom-color: rgba(0, 0, 0, .8); }
.line__control:focus::placeholder { opacity: .18; }
.line__error {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 6px;
  font-size: 12px;
  line-height: 16px;
  color: var(--err-dark);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.line.is-invalid .line__control { border-bottom-color: var(--err-dark); }
.line.is-invalid .line__error { opacity: 1; transform: none; }

.line--area { margin-top: 40px; }
.line--area .line__control {
  min-height: 60px;
  border-bottom: 0;
  padding: 0;
  resize: none;
}

.interests { margin-top: 39px; min-width: 0; }
.interests legend { float: left; width: 100%; margin-bottom: 16px; letter-spacing: -0.28px; }
.chips { clear: both; display: flex; flex-wrap: wrap; gap: 4px; }
.chips__break { flex-basis: 100%; height: 0; }
@media (max-width: 1100px) { .chips__break { display: none; } }

.form__send {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 40px;
  border-radius: 40px;
  background: var(--black);
  color: var(--white);
  letter-spacing: -0.28px;
  transition: opacity .2s ease;
}
.form__send:hover { opacity: .85; }
.form__send:disabled { opacity: .6; cursor: default; }

.form__status {
  margin-top: 12px;
  text-align: center;
  color: var(--err-dark);
}
.form__status:empty { display: none; }

.form__direct {
  max-width: 252px;
  margin: 40px auto 0;
  text-align: center;
  letter-spacing: -0.28px;
}
.form__direct span { color: rgba(255, 255, 255, .6); }

/* sent */
.form.is-sent .form__fields,
.form.is-sent .interests,
.form.is-sent .line--area,
.form.is-sent .form__send,
.form.is-sent .form__status { display: none; }
.form__done {
  margin: 60px 0;
  text-align: center;
  animation: roll-in .8s cubic-bezier(.2, .8, .2, 1) both;
}
.form__thanks {
  margin-top: 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 48px;
  letter-spacing: -0.96px;
}
.form__note { max-width: 240px; margin: 12px auto 0; opacity: .6; }

/* ---------- Footer ---------- */
.footer {
  display: grid;
  grid-template-columns: calc(var(--col) - var(--gutter)) 1fr auto;
  align-items: end;
  padding: 265px var(--gutter) 16px;
}
.footer__address { max-width: 339px; }
.footer__address a:hover,
.form__direct a:hover { text-decoration: underline; }
.footer__motto { text-align: right; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .drum__status, .drum__city { font-size: 26px; }
}

@media (max-width: 767px) {
  :root { --col: var(--gutter); }

  :root { --h-size: 48px; }          /* headings x1.2 on phones */
  body { font-size: 12px; line-height: 16px; }   /* captions: 12px on phones, 14px on desktop */
  .pill--glass, .card__title sup { font-size: 12px; line-height: 16px; }
  .card__title { white-space: normal; }
  .card__title sup { margin-left: .25em; }

  .logo { top: calc(16px + env(safe-area-inset-top, 0px)); }
  .logo img { width: 90px; height: auto; }
  .hero__tagline { top: calc(56px + env(safe-area-inset-top, 0px)); width: 200px; }
  .hero__main { top: auto; bottom: 64px; right: var(--gutter); }
  .hero__title { width: auto; max-width: 337px; font-size: 36px; line-height: 36px; letter-spacing: -0.72px; }

  /* phones: only the "Let's talk" button, so the showreel stays visible */
  .msg { width: 104px !important; height: 40px !important;
         top: calc(16px + env(safe-area-inset-top, 0px)); }
  .msg.is-onhero { opacity: 0; transform: translateY(-8px); pointer-events: none; }
  .msg .msg__steps, .msg .msg__bar { display: none; }
  .msg .msg__talk { opacity: 1; pointer-events: auto; }


  .card { padding-bottom: calc(24px + var(--row)); }
  .card--4 { padding-bottom: 24px; }
  .card__body { margin-left: 0; }
  .card__body p { font-size: 18px; line-height: 24px; letter-spacing: -0.36px; margin-bottom: 20px; }

  .world { --sp: 34vw; --big: 72px; height: calc(362px + var(--vh) * 2.2); }
  .world__lead { margin-bottom: 100px; }
  .drum { height: 230px; }
  .drum__status, .drum__city { top: auto; bottom: 0; font-size: 24px; line-height: 28px; }
  .drum__status { align-items: center; }
  .drum__status img { width: 10px; height: 10px; margin-top: 0; }
  .drum__roll > span { white-space: nowrap; }       /* phones: one line */
  .drum__ruler { top: 100px; width: 100%; height: 46px; }
  .drum__mark { height: 32px; }
  .drum__mark--c { height: 46px; }
  .drum__ticks { height: 22px; }
  .drum__item { line-height: 90px; }

  /* phones: the clock block is only as tall as its content and sticks in the middle
     of the screen, so whatever comes next simply follows it — nothing can overlap,
     whatever the browser's bars do to the screen height */
  .world__stage { height: auto; top: calc((var(--vh) - 362px) / 2); justify-content: flex-start; }
  .contact { padding-top: 120px; }
  .contact__title { font-size: 64px; }
  .form { margin-top: 64px; }
  .line__control { font-size: 28px; line-height: 32px; }
  .form__fields { gap: 32px; }
  .chip { height: 40px; padding: 0 18px; }
  /* phones keep the earlier glows: pink up left, blue down right, slow drift */
  .finale__blob--pink { width: 130vw; height: 110vw; left: -55vw; top: 8%; }
  .finale__blob--blue { width: 130vw; height: 110vw; left: auto; top: auto; right: -55vw; bottom: 6%; }
  .finale__blob::before { filter: blur(60px); }
  .finale__blob--pink::before {
    background: radial-gradient(closest-side, rgba(246, 169, 211, .55), rgba(249, 208, 230, .25) 60%, transparent);
    animation: blob-b 26s ease-in-out infinite alternate;
  }
  .finale__blob--blue::before {
    background: radial-gradient(closest-side, rgba(167, 233, 250, .6), rgba(211, 243, 251, .25) 60%, transparent);
    animation: blob-a 22s ease-in-out infinite alternate;
  }

  .footer { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 120px var(--gutter) 16px; }
  .footer__address, .footer__motto { width: 75%; max-width: none; text-align: left; }
  .footer__logo { width: 110px; height: auto; }
}

/* ==========================================================================
   Text reveal: letters rise out of a line mask, with a little blur
   ========================================================================== */
.split .w {
  display: inline-block;
  overflow: hidden;
  padding: .16em .06em .24em;
  margin: -.16em -.06em -.24em;
}
.split .ch {
  display: inline-block;
  /* room around each letter: while it animates Safari draws it in its own layer,
     clipped to this box — the serif's tails reach past the tight line height */
  padding: .28em .1em;
  margin: -.28em -.1em;
  opacity: 0;
  transform: translate3d(0, 105%, 0);
  filter: blur(10px);
}
.split.is-in .ch {
  animation: ch-in 1.1s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms) both;
}
@keyframes ch-in {
  0%   { opacity: 0; transform: translate3d(0, 105%, 0) skewY(6deg); filter: blur(10px); }
  45%  { opacity: 1; }
  100% { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .split .ch, .split.is-in .ch { opacity: 1; transform: none; filter: none; animation: none; }
}
/* phones: no mask at all — letters still rise and unblur, nothing gets cut */
@media (max-width: 767px) {
  .split .w { overflow: visible; padding: 0; margin: 0; }
  .split .ch { transform: translate3d(0, 40%, 0); }
  @keyframes ch-in-m {
    0%   { opacity: 0; transform: translate3d(0, 40%, 0); filter: blur(10px); }
    100% { opacity: 1; transform: none; filter: none; }
  }
  .split.is-in .ch { animation-name: ch-in-m; }
}
/* after the reveal: plain static letters (no layers, nothing clipped) */
.split.is-done .ch { animation: none; opacity: 1; transform: none; filter: none; }
