/* Concept 3c · "One Page" — calm editorial canvas, native scroll, one 3D O */
:root {
  --red: #EF4553; --red-deep: #C9303E; --cyan: #00ADBF; --teal: #0E6973; --ink: #261E15; --paper: #FBF7F2; --navy: #0B1B33; --sun: #FFC83D; --mint: #7FE7F2;
  --display: "Inter Tight", "Inter", system-ui, sans-serif; --sans: "Inter", system-ui, sans-serif; --serif: "Instrument Serif", Georgia, serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(18px, 5vw, 80px);
  --bg: var(--paper); --fg: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html { background: #FBF7F2; }
body { margin: 0; background: transparent; color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

#bgfill { position: fixed; inset: 0; z-index: -1; background: #FBF7F2; contain: strict; will-change: transform; }
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; }
/* after the hero the O rides in the page margin, bottom-right, clear of all content (content is max 1240px wide) */
#gl.corner { inset: auto; bottom: 22px; right: max(8px, calc((100vw - 1240px) / 2 - 104px)); width: 92px; height: 92px; }
@media (max-width: 1460px) { #gl.corner { right: 8px; width: 76px; height: 76px; } }
@media (max-width: 760px) { #gl.corner { display: none; } }
main, .top { position: relative; z-index: 1; }

/* Top bar */
.top { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px var(--pad); color: var(--fg); background: rgba(251,247,242,.92); will-change: transform; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; transition: opacity .45s, transform .45s; }
body.at-hero .logo { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.logo .o { width: 22px; height: 22px; fill: var(--logo-o, var(--red)); }
.logo .w { width: 92px; height: 17px; fill: currentColor; }
.top nav { margin-left: auto; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 80%, transparent); }
.top nav a { text-decoration: none; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; opacity: .75; }
.top nav a:hover, .top nav a[aria-current] { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }
.progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; }
.progress i { display: block; height: 100%; background: var(--cyan); transform-origin: 0; transform: scaleX(0); }

/* Sections flow into each other: the page colour changes as you move */
.sec { min-height: 100vh; padding: 18vh var(--pad) 14vh; color: var(--sec-fg); }
.spread { max-width: 1240px; margin: 0 auto; }
.head { display: grid; grid-template-columns: auto 1fr; column-gap: 28px; align-items: end; margin-bottom: 6vh; }
.num { grid-row: span 2; font-family: var(--display); font-weight: 900; font-size: clamp(90px, 13vw, 210px); line-height: .8; margin: 0; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--sec-fg) 45%, transparent); }
.place { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; margin: 0 0 14px; opacity: .85; }
.place i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); transform: rotate(-17.7deg); }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -.04em; line-height: .92; margin: 0; font-size: clamp(44px, 7vw, 120px); }
.display em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
#ship .display em { color: #fff; } #print .display em { color: #C4B5FD; } #drive .display em { color: var(--sun); }
#lab .display em { color: #fff; } .me .display em, .hero em { color: var(--red); }
.hero .kicker em { color: var(--red-deep); } /* small text: AA contrast on paper */
.cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 6vw; align-items: start; }
.body { font-size: clamp(17px, 1.45vw, 22px); line-height: 1.55; margin: 0; max-width: 40ch; }
.note { display: grid; gap: 10px; justify-items: start; padding-top: 6px; border-top: 2px solid color-mix(in srgb, currentColor 25%, transparent); }
.note .mono { font-size: 12px; opacity: .85; }
.note a { font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; }
.note .big { margin: 0; font-size: 14px; } .note .big b { font-family: var(--display); font-size: 44px; letter-spacing: -.04em; display: block; line-height: 1; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 40px; }
.spark i { width: 8px; min-height: 2px; border-radius: 2px; background: currentColor; opacity: .3; }
.spark i:last-child { opacity: 1; }
.wide img { width: 100%; }
.wide { margin: 8vh 0 0; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 10px var(--ink), 0 60px 100px -50px rgba(38,30,21,.6); transform: rotate(-1.5deg); }

/* Reveal on scroll (no scroll-jacking: just appears as it enters) */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* Hero */
.hero { display: grid; align-items: center; padding-top: 12vh; }
.hero-in { max-width: 640px; }
.kicker { font-size: clamp(17px, 1.5vw, 22px); margin: 0 0 26px; }
.kicker em { font-family: var(--serif); font-size: 1.3em; margin-right: 4px; }
.lockup { display: flex; align-items: center; gap: 14px; margin: 0; width: min(500px, 82vw); }
.lockup .o { width: 17%; aspect-ratio: 1; fill: var(--red); flex: none; }
.lockup .w { flex: 1; aspect-ratio: 1375.59 / 264.13; fill: currentColor; }
.lede { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.2vw, 34px); letter-spacing: -.025em; line-height: 1.1; margin: 28px 0 0; max-width: 22ch; }
.status { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 6px; font-family: var(--mono); font-size: 12.5px; }
.status li { display: flex; align-items: center; gap: 10px; }
.status li i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); transform: rotate(-17.7deg); }
.status li b { min-width: 62px; } .status li span { opacity: .7; }

/* Print */
.sheet-row { margin-top: 8vh; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 6vw; align-items: center; }
.sheet { aspect-ratio: 18/10; background: #FBF7F2; border-radius: 6px; padding: 4%; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 4%; transform: perspective(1200px) rotateX(24deg) rotateZ(-5deg); box-shadow: 0 50px 80px -40px rgba(0,0,0,.8); }
.card { border-radius: 4px; background: var(--ink); position: relative; }
.rv.in .card { animation: stamp 6s cubic-bezier(.2,.9,.3,1.2) infinite; animation-delay: calc(var(--n) * 160ms); }
.card::before { content: ""; position: absolute; left: 12%; top: 16%; width: 24%; aspect-ratio: 1; border: 3px solid var(--red); border-radius: 30%; transform: rotate(-17.7deg); }
.card:nth-child(3n) { background: var(--red); } .card:nth-child(3n)::before { border-color: #fff; }
.card:nth-child(4n+2) { background: var(--cyan); } .card:nth-child(4n+2)::before { border-color: var(--ink); }
@keyframes stamp { 0% { opacity: 0; transform: translateY(-24px) scale(1.12); } 10%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { padding: 12px 0; border-bottom: 1px solid rgba(246,239,230,.15); font-size: 15px; counter-increment: s; display: flex; gap: 14px; }
.steps li::before { content: "0" counter(s); color: var(--red); }

/* Drive */
.tv { margin-top: 8vh; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.player { position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; background: #07111F; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poster { position: absolute; inset: 0; width: 100%; text-align: left; color: #fff; padding: 24px; display: grid; align-content: end; gap: 6px;
  background: radial-gradient(70% 90% at 75% 30%, rgba(239,69,83,.35), transparent 60%), radial-gradient(60% 80% at 10% 100%, rgba(0,173,191,.25), transparent 60%), linear-gradient(160deg, #13284A, #07111F); }
.poster-o { position: absolute; right: 9%; top: 44%; width: 30%; aspect-ratio: 1; transform: translateY(-50%); transition: transform .4s; }
.poster-o svg:first-child { width: 100%; height: 100%; fill: var(--red); }
.poster-o .pl { position: absolute; left: 50%; top: 50%; width: 34%; height: 34%; transform: translate(-42%, -50%); fill: #fff; }
.poster:hover .poster-o { transform: translateY(-50%) rotate(17.7deg) scale(1.05); }
.poster-k { color: var(--sun); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.poster-t { font-family: var(--display); font-weight: 800; font-size: clamp(18px, 1.9vw, 28px); line-height: 1.08; max-width: 58%; }
.vlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.vlist button { width: 100%; text-align: left; display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.07); }
.vlist button:hover, .vlist button[aria-current="true"] { background: rgba(239,69,83,.85); }
.vlist .d { font-family: var(--mono); font-size: 11px; color: var(--sun); }
.vlist button[aria-current="true"] .d { color: #fff; }
.vlist b { font-size: 14px; font-weight: 600; line-height: 1.3; }

/* Lab */
.gh-grid { margin-top: 8vh; display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; }
.gh-grid i { aspect-ratio: 1; border-radius: 3px; background: rgba(38,30,21,.14); }
.gh-grid i[data-l="1"] { background: rgba(38,30,21,.3); } .gh-grid i[data-l="2"] { background: rgba(38,30,21,.52); } .gh-grid i[data-l="3"] { background: rgba(38,30,21,.78); } .gh-grid i[data-l="4"] { background: #fff; }

/* Me */
.links { list-style: none; padding: 0; margin: 0; border-top: 2px solid rgba(38,30,21,.15); }
.links li { border-bottom: 2px solid rgba(38,30,21,.15); }
.links a { display: grid; grid-template-columns: 100px 1fr; padding: 14px 2px; text-decoration: none; align-items: center; transition: padding .25s, color .25s; }
.links a:hover { padding-left: 12px; color: var(--red-deep); }
.links span { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; opacity: .6; }
.links b { font-family: var(--display); font-size: clamp(20px, 2vw, 28px); }
.foot { display: flex; justify-content: space-between; margin-top: 12vh; font-size: 12px; opacity: .8; }
.foot a { text-decoration: none; font-weight: 600; }

/* Phone */
@media (max-width: 760px) {
  .top { gap: 12px; padding: 12px 16px; }
  .top nav { display: none; }
  .sec { padding: 14vh 18px 10vh; min-height: auto; }
  .hero { min-height: 100svh; align-items: end; padding-bottom: 12vh; }
  .head { grid-template-columns: 1fr; }
  .num { font-size: 80px; grid-row: auto; margin-bottom: 8px; }
  .display { font-size: 44px; }
  .cols, .sheet-row, .tv { grid-template-columns: 1fr; gap: 24px; }
  .body { font-size: 17px; }
  .wide { box-shadow: 0 0 0 6px var(--ink); }
  .status li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }

.wide-shots { margin: 8vh 0 0; padding-top: 6%; }
.wide-shots .front { width: 86%; }
.wide-shots .back { width: 66%; }
#print .shots figcaption, #ship .shots figcaption { color: inherit; }
#drive .poster { background: linear-gradient(180deg, rgba(7,17,31,.15), rgba(7,17,31,.85)), url("assets/hero-costa-1280.webp") center / cover; }

/* EVoricua play control: O centred on the poster, triangle optically centred in the O's hole */
.poster-o { left: 50%; right: auto; top: 42%; width: clamp(84px, 24%, 190px); transform: translate(-50%, -50%); transition: transform .35s cubic-bezier(.2,.9,.3,1.3), filter .35s; filter: drop-shadow(0 10px 24px rgba(0,0,0,.35)); }
.poster-o svg:first-child { display: block; }
.poster-o .pl { left: 50%; top: 50%; width: 36%; height: 36%; transform: translate(-50%, -50%) rotate(17.7deg); fill: #fff; color: #fff; } /* tilted with the O, as one unit */
.poster:hover .poster-o, .poster:focus-visible .poster-o { transform: translate(-50%, -50%) scale(1.07); filter: drop-shadow(0 14px 30px rgba(239,69,83,.45)); }
.poster:active .poster-o { transform: translate(-50%, -50%) scale(.94); transition-duration: .1s; }
.poster:focus-visible { outline: 3px solid var(--cyan); outline-offset: -3px; }
@media (max-width: 760px) { .poster-o { top: 31%; width: 22%; } .poster { padding: 14px 16px; } .poster-t { font-size: 16px; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }

/* Stack */
#stack .display em { color: #7FE7F2; }
.ico { display: inline-block; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.chips-ico { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-ico li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(242,251,249,.09); font-size: 14px; font-weight: 600; }
.chips-ico.big li { padding: 10px 14px; font-size: 15px; background: rgba(242,251,249,.14); }
.chips-ico.big .ico { width: 20px; height: 20px; color: #7FE7F2; }
.fav { position: relative; padding: 28px 30px; border-radius: 24px; background: #0A535B; margin-bottom: 28px; overflow: hidden; }
.fav::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border: 22px solid rgba(127,231,242,.18); border-radius: 28%; transform: rotate(17.7deg); pointer-events: none; }
.fav-k { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: #7FE7F2; }
.fav-t { margin: 8px 0 0; font-family: var(--display); font-weight: 800; letter-spacing: -.03em; font-size: clamp(30px, 3.6vw, 52px); line-height: 1; }
.fav-why { margin: 10px 0 0; font-size: 16px; opacity: .85; max-width: 52ch; }
.stack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stack-card { padding: 22px; border-radius: 20px; border: 1.5px solid rgba(242,251,249,.16); }
.stack-card h3 { margin: 0; font-family: var(--display); font-size: 22px; letter-spacing: -.02em; }
.stack-card p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.45; opacity: .8; }
@media (max-width: 1000px) { .stack-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .stack-grid { grid-template-columns: 1fr; } .fav { padding: 22px; } .chips-ico li { font-size: 13px; padding: 7px 10px; } }
