/* ---------- what every section shares ---------- */

/* The page has three forms.
   Still:  no class on <html>. Every section is in its finished state and the page simply scrolls.
           This is what a visitor who asked their device for less motion sees, and what shows
           without JavaScript.
   Moving: js/first.js has put .motion on <html>.
   Phone:  the window is under 1024 px wide, so .phone stands beside .motion.
   Each stylesheet keeps a section's three forms together, in that order. */

/* still */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; }

/* A section's small label, with the one gold mark. */
.label { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; }
.mark { flex: none; width: 12px; height: 12px; border-radius: 3px; background: var(--gold); }

.quiet { color: var(--quiet-lg); }
.ink { color: var(--ink); font-weight: 500; }
.fine { font-size: 14px; line-height: 1.45; color: var(--quiet-sm); }
/* A name that must not break across two lines. */
.keep { white-space: nowrap; }

h2 {
  font-family: var(--head);
  font-size: clamp(44px, 6.6vw, 96px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

/* A headline at the left with a quieter line at its right. */
.head { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between; }
.head__main { flex: 3 1 560px; display: flex; flex-direction: column; gap: 20px; }
.head__side { flex: 1 1 300px; font-size: 24px; line-height: 1.35; letter-spacing: -0.01em; color: var(--quiet-lg); }
.head__side--wide { flex-basis: 380px; font-size: 22px; }

/* Buttons are pills: solid or outlined, in four sizes. */
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--round-pill);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.2s ease;
}
.pill:hover { transform: translateY(-2px); }
.pill--solid { background: var(--ink); color: var(--page); }
.pill--line { min-height: 44px; padding: 0 22px; border: 1.5px solid var(--ink); font-size: 15px; }
.pill--lg { min-height: 56px; padding: 0 32px; font-size: 17px; }
.pill--xl { min-height: 72px; padding: 0 36px; gap: 16px; font-size: 20px; }
.pill--xl small { font-size: inherit; color: rgba(244, 238, 230, 0.8); }

/* An underlined link with a small arrow. */
.textlink { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 18px; font-weight: 500; border-bottom: 1.5px solid var(--ink); }
.textlink svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.6; }

/* A held section is a tall wrapper (.hold) with one screen inside it (.stage).
   Standing still they are ordinary blocks. */
.hold { position: relative; }
.stage { position: relative; }

/* The top bar: the logo, three links, the WhatsApp button. */
.topbar {
  position: relative;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 26px var(--gutter);
}
.topbar__side { flex: 1 1 160px; display: flex; align-items: center; }
.topbar__side--end { justify-content: flex-end; }
.topbar__logo { display: flex; align-items: center; min-height: 44px; }
.topbar__logo img { height: 22px; width: auto; }
.topbar__links { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 500; }
.topbar__links a { display: flex; align-items: center; min-height: 44px; }

/* The WhatsApp pill that floats at the lower right. js/extras.js shows it once the opening is
   passed; js/layouts.js asks it to step aside on a phone while a layout's own button is showing. */
.floatpill {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--round-pill);
  border: 1px solid rgba(244, 238, 230, 0.35);
  background: var(--ink);
  color: var(--page);
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 14px 30px -14px rgba(58, 16, 18, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.floatpill.show { opacity: 1; visibility: visible; transform: none; }
.pill-aside .floatpill.show { opacity: 0; visibility: hidden; transform: translateY(12px); }

@media (max-width: 1023px) {
  .topbar__links { gap: 20px; }
  .head__side, .head__side--wide { font-size: 20px; }
  .floatpill { right: 16px; bottom: 16px; }
}

/* A phone in the hand: a top bar of two things, buttons sized for the thumb. */
@media (max-width: 640px) {
  .topbar { padding: 14px var(--gutter); gap: 12px; flex-wrap: nowrap; }
  .topbar__links { display: none; }
  .topbar__side { flex: 0 1 auto; }
  .topbar__logo img { height: 17px; }
  .pill--line { min-height: 40px; padding: 0 16px; font-size: 14px; }
  .pill--xl { min-height: 60px; padding: 10px 24px; font-size: 17px; white-space: normal; flex-wrap: wrap; gap: 4px 12px; }
  .floatpill { min-height: 46px; padding: 0 18px; font-size: 14px; }
}

/* moving */

/* A held section's screen stays put while the page scrolls through the wrapper's height. */
.motion .hold { z-index: 0; }
.motion .hold > .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.motion .topbar { will-change: opacity; }

/* A block marked data-reveal waits a little low and unseen, and comes in once (js/extras.js). */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.motion [data-reveal].in { opacity: 1; transform: none; }

/* moving, on a phone */

/* A held screen fills the screen that is really there, as the phone's own bars come and go. */
.motion.phone .hold > .stage { height: 100vh; height: 100dvh; }
