:root {
  --red: #ef3829;
  --red-dark: #c92b1e;
  --ink: #161616;
  --muted: #5d5d5d;
  --paper: #fffaf8;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  display: flex; flex-direction: column;
  font-family: Lato, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 86% 4%, rgba(239, 56, 41, .13), transparent 60%),
    radial-gradient(700px 400px at -5% 100%, rgba(239, 56, 41, .08), transparent 60%),
    var(--paper);
  overflow-x: hidden;
}
a { color: var(--red-dark); }
:focus-visible { outline: 3px solid rgba(239, 56, 41, .5); outline-offset: 3px; border-radius: 6px; }

/* ---------- top bar ---------- */
.top { padding: 28px clamp(20px, 5vw, 64px); }
.brand { display: inline-block; }
.brand img { height: 54px; width: auto; display: block; }

/* ---------- hero ---------- */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(12px, 4vw, 48px) clamp(20px, 5vw, 64px) clamp(40px, 7vw, 96px);
  max-width: 1320px; width: 100%; margin: 0 auto;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px;
  font-weight: 900; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red-dark);
}
.eyebrow::before { content: ''; width: 34px; height: 3px; background: var(--red); border-radius: 3px; }
h1 {
  margin: 0 0 26px;
  font-weight: 900; line-height: 1.02; letter-spacing: -.03em;
  font-size: clamp(2.7rem, 7.4vw, 5.9rem);
}
.hl { position: relative; color: var(--red); white-space: nowrap; }
.underline { position: absolute; left: 0; right: 0; bottom: -.16em; width: 100%; height: .22em; overflow: visible; }
.underline path { fill: none; stroke: var(--red); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw .9s .5s ease-out forwards; }
.lede { margin: 0 0 38px; max-width: 34em; font-size: clamp(1.1rem, 2.1vw, 1.4rem); line-height: 1.5; color: var(--muted); }

.actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--red); color: #fff; text-decoration: none;
  font-weight: 900; font-size: 1.15rem; letter-spacing: .01em;
  padding: 18px 30px; border-radius: 14px;
  box-shadow: 0 14px 30px -10px rgba(239, 56, 41, .65), 0 2px 0 rgba(0, 0, 0, .08) inset;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn svg { transition: transform .18s ease; }
.btn:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(239, 56, 41, .7); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(0); }
.alt { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- animated stage: the arrow "moves" ---------- */
.stage { position: relative; aspect-ratio: 1; width: min(100%, 460px); justify-self: center; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(239, 56, 41, .28); animation: spin 60s linear infinite; }
.ring.r2 { inset: 13%; border-style: solid; border-color: rgba(239, 56, 41, .14); animation-direction: reverse; animation-duration: 90s; }
.tile, .ghost {
  position: absolute; display: grid; place-items: center; color: #fff;
  border-radius: 26%; background: var(--red);
}
.tile svg, .ghost svg { width: 64%; height: 64%; }
.tile {
  width: 52%; height: 52%; left: 24%; top: 24%;
  box-shadow: 0 40px 70px -24px rgba(239, 56, 41, .7), 0 0 0 10px rgba(255, 255, 255, .6);
  animation: drift 4.2s ease-in-out infinite;
}
.ghost { width: 30%; height: 30%; opacity: 0; }
.g1 { left: 6%; top: 62%; animation: trail 4.2s ease-in-out infinite; }
.g2 { left: 64%; top: 6%; animation: trail 4.2s 1.4s ease-in-out infinite; }

/* ---------- footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px;
  padding: 22px 20px; background: var(--ink); color: #e9e9e9; font-size: .92rem;
}
.foot a { color: #fff; }
.foot .dot { width: 4px; height: 4px; background: var(--red); border-radius: 50%; }

/* ---------- motion ---------- */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift {
  0%, 100% { transform: translate(-3%, 3%) rotate(-2deg); }
  50% { transform: translate(3%, -3%) rotate(2deg); }
}
@keyframes trail {
  0% { opacity: 0; transform: translate(-18%, 18%) scale(.9); }
  35% { opacity: .55; }
  100% { opacity: 0; transform: translate(18%, -18%) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .ring, .tile, .ghost { animation: none; }
  .ghost { opacity: .35; }
  .underline path { animation: none; stroke-dashoffset: 0; }
  .btn, .btn svg { transition: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .stage { order: -1; width: min(70%, 300px); justify-self: start; margin-bottom: 4px; }
  .brand img { height: 44px; }
}
@media (max-width: 520px) {
  .btn { width: 100%; justify-content: center; }
  .actions { align-items: stretch; }
  .alt { text-align: center; overflow-wrap: anywhere; }
}

/* ---------- contact form dialog ---------- */
dialog#contact {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto;
  border: 0; border-radius: 20px; padding: 34px clamp(22px, 5vw, 40px) 36px;
  background: #fff; color: var(--ink);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .45);
}
dialog#contact::backdrop { background: rgba(22, 22, 22, .55); backdrop-filter: blur(3px); }
dialog#contact[open] { animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.close-row { position: absolute; top: 12px; right: 14px; margin: 0; }
.x { background: none; border: 0; font-size: 2rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 10px; border-radius: 8px; }
.x:hover { background: #f1f1f1; color: var(--ink); }
dialog h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 4vw, 1.9rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.15; padding-right: 28px; }
dialog .sub { margin: 0 0 22px; color: var(--muted); }
dialog label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 14px; }
dialog .opt { font-weight: 400; color: var(--muted); }
dialog input, dialog textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid #d6d6d6; border-radius: 10px; background: #fff;
}
dialog textarea { resize: vertical; min-height: 120px; }
dialog input:focus, dialog textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(239, 56, 41, .16); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #fdecea; color: #a52318; font-size: .95rem; }
.btn.send { width: 100%; justify-content: center; border: 0; cursor: pointer; font-family: inherit; }
button.btn { border: 0; cursor: pointer; font-family: inherit; }
button.btn:disabled { opacity: .65; cursor: default; transform: none; }
#done-view { text-align: center; padding: 8px 0 4px; }
#done-view .btn { margin-top: 6px; }
.check { width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(239, 56, 41, .65); }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { dialog#contact[open] { animation: none; } }
