/* Find the Next Antonio, web. Same visual system as the video (style C "bright"):
   warm paper page + dot pattern, navy ink, brand-colour shapes, cards with solid colour offset shadows,
   hand-drawn highlighter / circle / underline marks, springy motion. Deliberately one light look (it's the brand). */
:root {
  --paper: #FBF8F2; --paper-dot: #E4DCCC; --ink: #1F1F47; --ink-soft: #4B4B70; --muted: #7A7894;
  --yellow: #FFD000; --cyan: #00C0D8; --orange: #F08020; --card: #FFFFFF; --line: #E7E0D2; --night: #1F1F47;
  --display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --r-card: 28px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body);
  background-image: radial-gradient(circle, var(--paper-dot) 1.3px, transparent 1.6px); background-size: 34px 34px;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
section { padding-block: clamp(64px, 9vw, 120px); position: relative; }

/* ---------- type */
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.04; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(46px, 7.4vw, 104px); font-weight: 800; }
h2 { font-size: clamp(34px, 4.8vw, 64px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); max-width: 36em; }
.small { font-size: 14px; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font: 600 13px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
.eyebrow::before { content: ""; width: 40px; height: 6px; border-radius: 3px; background: var(--orange); transform-origin: left; transition: transform .6s var(--spring); }
.eyebrow.c-cyan::before { background: var(--cyan); } .eyebrow.c-yellow::before { background: var(--yellow); }
.pre .eyebrow::before { transform: scaleX(0); }
.stack { display: grid; gap: 22px; align-content: start; }

/* hand-drawn marks: highlighter (draws left to right), circle and underline (stroke draws on) */
.hl { background: no-repeat left 72% / 100% 56%; padding: 0 .08em; margin: 0 -.08em; transition: background-size .7s cubic-bezier(.22,1,.36,1) .25s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C40 4 90 7 130 5 S190 6 197 8 L196 33 C150 36 100 31 60 35 S10 34 4 31 Z' fill='%23FFD000'/%3E%3C/svg%3E"); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl.cy { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C40 4 90 7 130 5 S190 6 197 8 L196 33 C150 36 100 31 60 35 S10 34 4 31 Z' fill='%2300C0D8' fill-opacity='.55'/%3E%3C/svg%3E"); }
.pre .hl { background-size: 0% 56%; }
.mark { position: relative; display: inline-block; white-space: nowrap; }
.mark svg { position: absolute; pointer-events: none; overflow: visible; }
.mark .ring { left: -9%; top: -16%; width: 118%; height: 136%; }
.mark .uline { left: -2%; bottom: -.22em; width: 104%; height: .32em; }
.mark path { fill: none; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1s cubic-bezier(.65,0,.35,1) .35s; vector-effect: non-scaling-stroke; }
.pre .mark path { stroke-dashoffset: 1; }

/* hero words rise out of a baseline mask on load */
.rise .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.rise .w > span { display: inline-block; animation: rise .9s var(--spring) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }

/* ---------- surfaces */
.card { background: var(--card); border-radius: var(--r-card); box-shadow: 14px 14px 0 var(--sh, var(--cyan)); }
.sh-y { --sh: var(--yellow); } .sh-c { --sh: var(--cyan); } .sh-o { --sh: var(--orange); } .sh-n { --sh: var(--ink); }
.frame { border-radius: var(--r-card); overflow: hidden; background: var(--card); padding: 10px; box-shadow: 14px 14px 0 var(--sh, var(--cyan)); }
.frame > img, .frame > video { border-radius: calc(var(--r-card) - 9px); width: 100%; height: 100%; object-fit: cover; }
.tilt-l { transform: rotate(-2.5deg); } .tilt-r { transform: rotate(2deg); }
.blob { position: absolute; z-index: -1; border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; animation: morph 14s ease-in-out infinite alternate; }
@keyframes morph { 50% { border-radius: 44% 56% 42% 58% / 58% 42% 58% 42%; } 100% { border-radius: 52% 48% 60% 40% / 42% 60% 40% 58%; } }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 700 17px/1 var(--display); text-decoration: none; padding: 18px 26px; border-radius: 16px; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; box-shadow: 6px 6px 0 var(--yellow); transition: transform .25s var(--spring), box-shadow .25s var(--spring); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--yellow); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--yellow); }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: 6px 6px 0 var(--cyan); }
.btn.ghost:hover { box-shadow: 9px 9px 0 var(--cyan); }
.btn .arr { transition: transform .25s var(--spring); } .btn:hover .arr { transform: translateX(4px); }
.row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }

/* ---------- top bar */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; font: 700 16px/1 var(--display); text-decoration: none; }
.brand .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px var(--ink); }
.top nav { display: flex; gap: 22px; align-items: center; font-weight: 600; font-size: 15px; }
.top nav a { text-decoration: none; } .top nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.top .btn { padding: 12px 18px; font-size: 15px; box-shadow: 4px 4px 0 var(--yellow); }
@media (max-width: 760px) { .top nav a:not(.btn) { display: none; } }

/* ---------- footage tiles */
.tile { position: relative; }
.tile figcaption { margin-top: 14px; font: 600 12px/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); display: flex; gap: 10px; align-items: center; }
.tile figcaption::before { content: ""; width: 22px; height: 5px; border-radius: 3px; background: var(--sh, var(--cyan)); flex: none; }
figure { margin: 0; }

/* ---------- details / faq */
details { border-top: 2px solid var(--ink); padding-block: 20px; }
details:last-of-type { border-bottom: 2px solid var(--ink); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; font: 700 clamp(18px, 1.8vw, 22px)/1.3 var(--display); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 30px; line-height: .8; color: var(--orange); transition: transform .3s var(--spring); flex: none; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 12px; color: var(--ink-soft); max-width: 44em; }

/* ---------- forms */
label { font: 600 14px/1.3 var(--body); display: grid; gap: 8px; }
input, select, textarea { font: 500 17px/1.4 var(--body); color: var(--ink); background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 14px 16px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 5px 5px 0 var(--cyan); }
.copybox { background: var(--card); border: 2px dashed var(--line); border-radius: 18px; padding: 18px 20px; white-space: pre-wrap; font-size: 16px; }

footer { padding-block: 56px; border-top: 2px solid var(--ink); font-size: 14px; color: var(--ink-soft); }
footer .wrap { display: grid; gap: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pre .hl { background-size: 100% 56%; } .pre .mark path { stroke-dashoffset: 0; } .pre .eyebrow::before { transform: none; }
}

/* ---------- odometer + dot map */
.odo { display: inline-flex; font-variant-numeric: tabular-nums; line-height: 1; }
.odo .col { display: inline-block; height: 1em; overflow: hidden; }
.odo .reel { display: flex; flex-direction: column; transition: transform 1.5s cubic-bezier(.22,1,.36,1); }
.odo .reel span { height: 1em; line-height: 1; }
.hrmap svg { width: 100%; height: auto; overflow: visible; }
.hrmap circle { transition: transform .7s var(--spring); transform-box: fill-box; transform-origin: center; }
.hrmap .pin { transition: opacity .4s ease; }
.hrmap.wait:not(.pop) circle { transform: scale(0); }
.hrmap.wait:not(.pop) .pin, .hrmap.wait:not(.pop) .lbl { opacity: 0; }
.hrmap .arc { fill: none; stroke: var(--orange); stroke-width: 2.6; stroke-dasharray: 5 6; stroke-linecap: round; }
.hrmap .lbl { font: 700 16px var(--display); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 5px; }
