@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/comfortaa-latin.woff2') format('woff2');
}
:root {
  --pink: #f08a7e;
  --pink-soft: #fbd0c6;
  --cream: #fdf1e3;
  --ink: #151515;
  --muted: #5f5856;
  --line: #eee7e4;
  --bg: #ffffff;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; z-index: 10; }
.skip:focus { top: 12px; }

/* ---- logo (final glide, B2): engine styles carried over unchanged ---- */
/* ---- the logo stage ---- */
[data-logo] { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; }
.stage { font-family: 'Comfortaa', ui-rounded, system-ui, sans-serif; position: relative; width: 100%; height: 5.4em; font-weight: 500; -webkit-user-select: none; user-select: none; }
.stage .icon {
  position: absolute; left: 50%; top: 0.6em; width: 0; height: 1.8em;
}
.icon .g { position: absolute; top: 0; width: 0.9em; left: -0.45em; height: 100%; will-change: transform, opacity; --tile: 0; z-index: 1; }
.icon .g::before {
  content: ''; position: absolute; left: -0.06em; right: -0.06em; top: -0.04em; bottom: -0.04em;
  background: var(--cream); border: 0.04em solid var(--pink); border-radius: 0.16em;
  box-shadow: 0 0.06em 0.16em rgba(120, 50, 40, 0.18); opacity: var(--tile); z-index: -1;
}
.icon .g { isolation: isolate; }
.g-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.word { position: absolute; left: 50%; top: 2.85em; height: 1.25em; }
.ltr {
  position: absolute; left: 0; top: 0; height: 1.25em; line-height: 1.25em;
  text-align: center; will-change: transform, opacity; letter-spacing: 0;
  font-kerning: none; --tile: 0;
}
.ltr::before {
  content: ''; position: absolute; left: -0.07em; right: -0.07em; top: 0.12em; bottom: 0.08em;
  background: var(--cream); border: 0.045em solid var(--pink); border-radius: 0.2em;
  box-shadow: 0 0.08em 0.18em rgba(120, 50, 40, 0.18);
  opacity: var(--tile); z-index: -1;
}
.stage .word { z-index: 2; }
.stage .icon { z-index: 1; }



/* ---- hero ---- */
.hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 16px; max-width: 1120px; margin: 0 auto; width: 100%;
}
/* the whole group (logo, label, pill) sits vertically centered in the viewport at any size */
main { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; }
.logo { max-width: 760px; }
.logo .stage { margin-bottom: -0.45em; }
/* label under the logo: driven by the logo's own frames (page.js); same type as the earlier tagline fragments */
.state {
  display: grid; justify-items: center; max-width: 100%; width: 100%; margin: 10px 0 0;
  font-size: 14px; color: var(--muted); letter-spacing: 0.02em; line-height: 1.55;
}
.state-label { grid-area: 1 / 1; white-space: nowrap; font-size: calc(1em * var(--fit, 1)); opacity: 0; will-change: opacity; }
.state-label[data-label="a"] { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  /* no animation: both lines, static */
  .state-label { grid-area: auto; opacity: 1 !important; will-change: auto; }
}

/* ---- call to action ---- */
.cta {
  margin: clamp(64px, 6.1vw, 88px) 0 0; min-height: 46px; padding: 0 28px; font: inherit; font-size: 15px; letter-spacing: 0.01em;
  color: var(--ink); background: transparent; border: 1.75px solid var(--ink); border-radius: 999px; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.cta:hover, .cta:focus-visible { background: var(--ink); color: #fff; }
.cta:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 4px; border-radius: 999px; }
.cta:active { transform: translateY(1px); }

/* ---- contact dialog ---- */
html.has-modal { overflow: hidden; }
.sheet {
  width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 20px;
  background: #fff; color: var(--ink); box-shadow: 0 24px 70px rgba(21, 21, 21, 0.18), 0 2px 8px rgba(21, 21, 21, 0.06);
  overflow: auto; overscroll-behavior: contain;
}
.sheet::backdrop { background: rgba(21, 21, 21, 0.38); }
.sheet[open] { animation: sheet-in .22s ease-out; }
.sheet[open]::backdrop { animation: fade-in .22s ease-out; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes fade-in { from { opacity: 0; } }
.sheet-in { position: relative; padding: 26px 24px 24px; }
.sheet-title { margin: 0 0 18px; padding-right: 40px; font-size: 17px; font-weight: 600; letter-spacing: 0.01em; text-align: left; }
.x {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; padding: 0;
}
.x:hover { background: #f3efed; }
.x:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 1px; border-radius: 999px; }
@media (max-width: 560px) {
  .sheet {
    width: calc(100% - 16px); max-width: none; margin: auto auto 8px; max-height: calc(100dvh - 24px);
    border-radius: 20px;
  }
  .sheet[open] { animation-name: sheet-up; }
  @keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
  .sheet-in { padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
}

.form[hidden], .thanks[hidden] { display: none; }
.form { display: grid; gap: 14px; margin: 0; }
.field { display: grid; gap: 6px; text-align: left; }
.field span { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid #ddd5d2; border-radius: 10px; padding: 11px 13px; line-height: 1.4;
  -webkit-appearance: none; appearance: none; transition: border-color .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { box-shadow: 0 0 0 3px rgba(21,21,21,.08); }
.field [aria-invalid="true"] { border-color: var(--pink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- the check ---- */
.human {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border: 1px solid #ddd5d2; border-radius: 10px; padding: 10px 13px; min-height: 52px; text-align: left;
}
.human[aria-invalid="true"] { border-color: var(--pink); }
.human-box { position: relative; display: inline-flex; align-items: center; gap: 11px; cursor: pointer; font-size: 15px; min-height: 32px; }
.human-box input { position: absolute; opacity: 0; width: 26px; height: 26px; margin: 0; cursor: pointer; }
.tick {
  flex: none; width: 24px; height: 24px; border: 1.5px solid var(--ink); border-radius: 7px; background: #fff;
  display: grid; place-items: center; transition: background .15s ease;
}
.tick::after {
  content: ''; width: 11px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0;
  transform: translate(0, -1px) rotate(-45deg) scale(0); transition: transform .15s ease;
}
.human-box input:checked + .tick { background: var(--ink); }
.human-box input:checked + .tick::after { transform: translate(0, -1px) rotate(-45deg) scale(1); }
.human-box input:focus-visible + .tick { outline: 2.5px solid var(--ink); outline-offset: 3px; }
.human[data-state="working"] .tick { border-color: var(--muted); background: #fff; }
.human[data-state="working"] .tick::after {
  width: 12px; height: 12px; border: 2px solid var(--pink); border-right-color: transparent; border-radius: 50%;
  transform: none; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.human-status { font-size: 13px; color: var(--muted); }
.human[data-state="done"] .human-status { color: var(--ink); }

.err { margin: -2px 0 0; font-size: 13px; color: #b4473a; text-align: left; }
.send {
  justify-self: center; min-height: 44px; padding: 0 34px; margin-top: 4px; font: inherit; font-size: 15px;
  color: var(--ink); background: transparent; border: 1.75px solid var(--ink); border-radius: 999px; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.send:hover, .send:focus-visible { background: var(--ink); color: #fff; }
.send:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 4px; }
.send:disabled { opacity: .5; cursor: default; }
.thanks { margin: 0; text-align: center; font-size: 17px; outline: none; padding: 36px 0 28px; }

/* ---- footer: floats at the bottom of the viewport, hidden until the first scroll or scroll gesture ---- */
main { padding-bottom: 0; }
.foot {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; margin: 0;
  text-align: center; color: var(--muted); font-size: 13px; line-height: 1.4;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  opacity: 0; pointer-events: none; transition: opacity .5s ease;
}
html.foot-on .foot { opacity: 1; }
html.has-modal .foot { opacity: 0; transition: none; }

@media (prefers-reduced-motion: reduce) {
  .field input, .field textarea, .cta, .send, .tick, .tick::after, .foot { transition: none; }
  .sheet[open], .sheet[open]::backdrop { animation: none; }
  .human[data-state="working"] .tick::after { animation-duration: 2.4s; }
}
