/* Full-width sections (hero, portfolio) and the header share one side margin. --header-space is the header's height
   plus its top margin, so the hero can sit underneath it. */
:root { --edge: clamp(16px, 4vw, 80px); --header-space: 78px; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: hidden;
  background: var(--white); color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font-body);
}
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); text-wrap: balance; letter-spacing: -0.035em; }
h2 { font-size: var(--step-3); font-weight: 600; line-height: 1.02; }
h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
p { margin: 0; max-width: 62ch; }
a { color: inherit; }
a[href^="tel:"] { white-space: nowrap; } /* a phone number never splits across lines */
.mono { font-family: var(--font-mono); font-size: var(--step--1); }
.label { color: var(--teal); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; }
.note { font-size: var(--step--1); color: var(--ink-2); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--white); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.site-header {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: calc(100% - 2 * var(--edge)); margin: 12px auto 0;
  padding: 10px 12px 10px 18px; border-radius: 999px;
  background: #ffffffe6; border: 1px solid #ffffffcc; /* near-opaque, so page text never shows through the logo */
  box-shadow: 0 10px 30px -12px #10161a26, inset 0 1px 0 #fff;
  backdrop-filter: blur(18px) saturate(1.4);
}
.nav { display: flex; align-items: center; gap: 26px; font-weight: 500; font-size: 0.95rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }
/* Very small phones: tighten the header so the lockup's tagline still fits. */
@media (max-width: 350px) { .site-header { gap: 8px; padding-inline: 10px 8px; } .site-header .lockup { --lockup-h: 28px; } .site-header .btn--small { padding: 0 12px; } }

.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--ink); color: var(--white);
  font: 500 0.98rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transform: translate(var(--mx), var(--my));
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), background 0.2s, box-shadow 0.2s;
}
.btn:hover { background: var(--teal); box-shadow: 0 10px 24px -10px #087e96aa; }
.btn--glass { background: var(--glass); color: var(--ink); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.btn--glass:hover { background: #fff; }
.btn--small { min-height: 44px; padding: 0 18px; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }

section { padding: clamp(72px, 10vw, 136px) var(--gutter); }
section > * { max-width: var(--max); margin-inline: auto; }
.section-head { display: grid; gap: 16px; margin-bottom: 44px; }
.section-head > p:last-child { color: var(--ink-2); font-size: var(--step-1); }

/* Closing sign-off: the kit's "mark as the O" lockup, centred, the copyright line under it. The bottom padding clears
   the fixed Stella launcher (16px offset + 58px pill + 16px), so the last line is never covered. */
.site-footer {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: 56px var(--gutter) calc(96px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); color: var(--ink-2);
}
.site-footer__brand { display: block; width: clamp(240px, 22vw, 300px); height: auto; }
.narrow-only { display: none; }
@media (max-width: 480px) { .wide-only { display: none; } .narrow-only { display: inline; } }

.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 44ch; }
.chip {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(8px);
  font-size: 0.85rem; color: var(--ink-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px #087e9622; }
.hint-touch { display: none; }
@media (hover: none) { .hint-fine { display: none; } .hint-touch { display: inline; } }
