/* Alessandro Errani — portfolio
   Palette: ivory, deep navy, sea-glass. Type: Newsreader (display/serif), Hanken Grotesk (text/UI). */

@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-wght-italic.woff2") format("woff2-variations"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ivory: #f2eee4;
  --paper: #faf8f3;
  --navy: #0f2436;
  --harbour: #234159;
  --glass: #a3c9be;
  --glass-ink: #2f6158;
  --rule: #d8d1c2;
  --muted: #55606a;
  --focus: #e0b04a;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale, ratio 1.25 on a 1.0625rem body */
  --s-1: .85rem;
  --s0: 1.0625rem;
  --s1: 1.33rem;
  --s2: 1.66rem;
  --s3: clamp(1.8rem, 1.2rem + 2vw, 2.6rem);
  --s4: clamp(2.3rem, 1.3rem + 3.6vw, 4rem);
  --s5: clamp(2.8rem, 1.2rem + 6vw, 6.4rem);

  --gutter: clamp(1.25rem, .6rem + 3vw, 3.5rem);
  --wide: 84rem;
  --measure: 38rem;
  --space: clamp(4rem, 2.5rem + 6vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font: 400 var(--s0)/1.6 var(--sans);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--glass-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
button { font: inherit; color: inherit; }
::selection { background: var(--glass); color: var(--navy); }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--navy); color: var(--paper); padding: .6rem 1rem; z-index: 50; }
.skip:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ivory) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { font: 500 1.2rem/1 var(--serif); text-decoration: none; letter-spacing: -.01em; margin-right: auto; }
.brand small { display: block; font: 400 .78rem/1.3 var(--sans); color: var(--muted); letter-spacing: 0; margin-top: .25rem; }
.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; font-size: .98rem; padding-block: .4rem; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--glass-ink); }
.nav a:hover { border-bottom-color: var(--glass); }
.lang { display: inline-flex; border: 1px solid var(--navy); border-radius: 999px; overflow: hidden; font-size: .85rem; font-weight: 600; }
.lang a, .lang span { padding: .3rem .7rem; text-decoration: none; }
.lang [aria-current="true"] { background: var(--navy); color: var(--paper); }
.menu-btn { display: none; background: none; border: 1px solid var(--navy); border-radius: 999px; padding: .35rem .9rem; font-weight: 600; cursor: pointer; }
@media (max-width: 54rem) {
  .menu-btn { display: inline-block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: .5rem var(--gutter) 1.25rem; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--rule); font-size: 1.1rem; }
}

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 420; line-height: 1.04; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--s5); font-weight: 380; }
h2 { font-size: var(--s4); }
h3 { font-size: var(--s2); line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
.lede { font: 400 var(--s1)/1.5 var(--serif); max-width: 34rem; color: var(--harbour); }
.small { font-size: var(--s-1); color: var(--muted); }
.kicker { font-size: .95rem; color: var(--glass-ink); font-weight: 600; margin-bottom: 1.2rem; display: block; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.35rem; border-radius: 999px; background: var(--navy); color: var(--paper); text-decoration: none; font-weight: 600; border: 1px solid var(--navy); cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--harbour); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--paper); }
.btn.light { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.btn.light:hover { background: var(--glass); border-color: var(--glass); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* ---------- Sections ---------- */
main > section, .section { padding-block: var(--space) 0; }
main > section:last-child { padding-bottom: var(--space); }
.section-head { display: grid; gap: 1.2rem; margin-bottom: clamp(2rem, 1rem + 3vw, 4rem); }
@media (min-width: 62rem) { .section-head { grid-template-columns: 5fr 7fr; align-items: end; } .section-head p { margin: 0; } }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(3rem, 2rem + 4vw, 6rem) 0; }
.hero-grid { display: grid; gap: 2.5rem; }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 1.8rem; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: 7fr 5fr; align-items: end; } }
.hero-plate { position: relative; margin: 0; }
.hero-plate img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.hero-plate figcaption { margin-top: .7rem; font-size: var(--s-1); color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; }
.coords { font-variant-numeric: tabular-nums; color: var(--glass-ink); white-space: nowrap; }

/* ---------- Work list ---------- */
.work-list { display: grid; gap: clamp(3.5rem, 2rem + 4vw, 6rem); }
.work-item { display: grid; gap: 1.5rem; text-decoration: none; }
.work-item .plate { overflow: hidden; background: var(--navy); }
.work-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.work-item:hover img { transform: scale(1.02); }
.work-item h3 { font-size: var(--s3); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .15em; text-decoration-thickness: 1px; transition: text-decoration-color .2s; }
.work-item:hover h3 { text-decoration-color: currentColor; }
.work-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; color: var(--muted); }
.tag { display: inline-block; font-size: .8rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; border: 1px solid currentColor; }
.tag.concept { color: var(--glass-ink); }
.tag.real { color: var(--navy); }
@media (min-width: 62rem) {
  .work-item { grid-template-columns: 7fr 5fr; align-items: end; gap: 3rem; }
  .work-item:nth-child(even) { grid-template-columns: 5fr 7fr; }
  .work-item:nth-child(even) .plate { order: 2; }
}

/* ---------- Services ---------- */
.services { display: grid; border-top: 1px solid var(--navy); }
.service { display: grid; gap: 1rem; padding-block: 2rem; border-bottom: 1px solid var(--rule); }
.service h3 { font-size: var(--s3); }
.service ul { margin: 0; padding-left: 1.1rem; color: var(--harbour); }
.service li { margin-bottom: .35rem; }
@media (min-width: 62rem) { .service { grid-template-columns: 4fr 5fr 3fr; gap: 3rem; } }

/* ---------- Process (a real sequence) ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.process li { counter-increment: step; display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding-block: 1.6rem; border-top: 1px solid var(--rule); }
.process li::before { content: counter(step); font: 400 var(--s2)/1 var(--serif); color: var(--glass-ink); }
.process h3 { font-size: var(--s1); margin-bottom: .4rem; }
.process p { margin: 0; }
@media (min-width: 62rem) { .process { grid-template-columns: repeat(4, 1fr); gap: 2rem; } .process li { grid-template-columns: 1fr; } }

/* ---------- Dark band / CTA ---------- */
.band { background: var(--navy); color: var(--paper); padding-block: var(--space); margin-top: var(--space); }
.band h2 { max-width: 18ch; }
.band p { color: #c9d6dc; }
.band a:not(.btn) { color: var(--glass); }
main > section.band:last-child { padding-bottom: var(--space); }

/* ---------- Case study ---------- */
.case-head { padding-block: clamp(3rem, 2rem + 4vw, 6rem) 2.5rem; }
.case-head h1 { max-width: 18ch; font-size: var(--s4); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem 2rem; margin: 2.5rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--navy); }
.facts dt { font-size: .85rem; color: var(--muted); }
.facts dd { margin: .2rem 0 0; font-weight: 500; }
.prose { display: grid; gap: 2rem; }
.prose h2 { font-size: var(--s3); margin-top: 1.5rem; }
.prose ul { padding-left: 1.2rem; max-width: var(--measure); }
.prose li { margin-bottom: .4rem; }
@media (min-width: 62rem) { .prose { grid-template-columns: 4fr 8fr; } .prose > aside { position: sticky; top: 6rem; align-self: start; } }
.note { border-left: 3px solid var(--glass-ink); padding: .9rem 1.2rem; background: var(--paper); max-width: var(--measure); font-size: .95rem; }
.note strong { display: block; margin-bottom: .2rem; }
.placeholder { outline: 2px dashed #b9862c; outline-offset: 4px; background: #fbf0d9; padding: .1rem .3rem; }
figure { margin: 0; }
figure figcaption { font-size: var(--s-1); color: var(--muted); margin-top: .6rem; max-width: var(--measure); }

/* ---------- 3D stage (shared) ---------- */
.stage { position: relative; background: #0c1c2a; color: var(--paper); overflow: hidden; }
.stage canvas { width: 100% !important; height: 100% !important; touch-action: pan-y; }
.stage-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage.is-3d .stage-fallback { opacity: 0; transition: opacity .8s; pointer-events: none; }
.stage-status { position: absolute; left: 1rem; bottom: 1rem; max-width: 28rem; background: rgba(12,28,42,.86); padding: .7rem 1rem; font-size: .9rem; border-radius: 4px; }
.stage-status:empty { display: none; }
.loader { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.loader span { background: rgba(12,28,42,.82); padding: .7rem 1.1rem; border-radius: 999px; font-size: .92rem; }
.loader[hidden] { display: none; }

/* ---------- Yacht page ---------- */
.yacht-page { background: var(--navy); color: var(--paper); }
.yacht-page .site-head { background: color-mix(in srgb, var(--navy) 88%, transparent); }
.yacht-page .site-head.scrolled { border-bottom-color: #2a4257; }
.yacht-page .brand small { color: #9fb2bf; }
.yacht-page .lang { border-color: var(--paper); }
.yacht-page .lang [aria-current="true"] { background: var(--paper); color: var(--navy); }
.yacht-page .menu-btn { border-color: var(--paper); }
@media (max-width: 54rem) { .yacht-page .nav { background: var(--navy); } .yacht-page .nav a { border-bottom-color: #2a4257; } }
.yacht-page .lede { color: #d3dee3; }
.yacht-page .kicker { color: var(--glass); }
.yacht-page .small { color: #9fb2bf; }

.y-hero { position: relative; height: min(100svh - 4.25rem, 62rem); min-height: 34rem; }
.y-hero .stage { position: absolute; inset: 0; }
.y-title { position: absolute; left: var(--gutter); top: clamp(1.5rem, 4vw, 3.5rem); max-width: 34rem; pointer-events: none; text-shadow: 0 1px 18px rgba(8,20,32,.45); }
.y-title h1 { font-size: clamp(2.4rem, 1.2rem + 4.5vw, 5.2rem); }
.y-title p { margin-top: 1rem; font: 400 1.15rem/1.45 var(--serif); }
.concept-badge { display: inline-flex; gap: .5rem; align-items: center; background: var(--glass); color: var(--navy); padding: .3rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 700; margin-bottom: 1rem; pointer-events: auto; }

.y-controls { position: absolute; right: var(--gutter); bottom: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; max-width: 40rem; }
.chip { background: rgba(10,26,40,.72); color: var(--paper); border: 1px solid rgba(250,248,243,.35); border-radius: 999px; padding: .45rem .9rem; font-size: .88rem; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); }
.chip:hover { border-color: var(--paper); }
.chip[aria-pressed="true"] { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.chip-group { display: inline-flex; gap: .35rem; flex-wrap: wrap; }

.hotspots { position: absolute; inset: 0; pointer-events: none; }
.hotspot { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; gap: .55rem; background: none; border: 0; padding: 0; cursor: pointer; transform: translate(-9999px, -9999px); transition: opacity .25s; }
.hotspot .dot { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgba(250,248,243,.95); box-shadow: 0 0 0 6px rgba(163,201,190,.35); display: grid; place-items: center; font: 600 .78rem/1 var(--sans); color: var(--navy); }
.hotspot .lbl { background: rgba(10,26,40,.78); color: var(--paper); padding: .28rem .6rem; border-radius: 4px; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.hotspot[aria-expanded="true"] .dot { background: var(--glass); box-shadow: 0 0 0 8px rgba(163,201,190,.5); }
.hotspot.behind { opacity: .0; pointer-events: none; }
.stage.labels-off .hotspot:not(:hover):not(:focus-visible):not([aria-expanded="true"]) .lbl { display: none; }
@media (max-width: 40rem) { .hotspot .lbl { display: none; } .hotspot .dot { width: 2rem; height: 2rem; } }

.y-panel { position: absolute; top: 1rem; right: 1rem; bottom: 5rem; width: min(25rem, calc(100% - 2rem)); background: rgba(250,248,243,.97); color: var(--navy); border-radius: 6px; padding: 1.5rem 1.5rem 1.25rem; overflow: auto; box-shadow: 0 18px 50px rgba(5,15,25,.35); transform: translateX(110%); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.y-panel.open { transform: none; }
.y-panel h2 { font-size: var(--s2); margin-bottom: .8rem; }
.y-panel .close { position: absolute; top: .6rem; right: .6rem; background: none; border: 1px solid var(--rule); border-radius: 999px; width: 2.2rem; height: 2.2rem; cursor: pointer; font-size: 1.1rem; }
.y-panel dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; font-size: .93rem; margin: 1rem 0; }
.y-panel dt { color: var(--muted); }
.y-panel dd { margin: 0; }
.y-panel .nav-row { display: flex; justify-content: space-between; gap: .5rem; margin-top: 1rem; }
@media (max-width: 40rem) { .y-panel { top: auto; left: .5rem; right: .5rem; bottom: .5rem; width: auto; max-height: 62%; transform: translateY(110%); } }

.y-section { padding-block: var(--space) 0; }
.y-section h2 { color: var(--paper); }
.spec-wrap { display: grid; gap: 2.5rem; }
@media (min-width: 62rem) { .spec-wrap { grid-template-columns: 5fr 7fr; } }
.spec { width: 100%; border-collapse: collapse; font-size: .98rem; }
.spec caption { text-align: left; font-size: .88rem; color: #9fb2bf; padding-bottom: .8rem; }
.spec th, .spec td { text-align: left; padding: .75rem 0; border-bottom: 1px solid #2a4257; vertical-align: top; }
.spec th { font-weight: 500; color: #b8c7cf; width: 45%; }

.areas { display: grid; gap: 0; border-top: 1px solid #2a4257; }
.area { border-bottom: 1px solid #2a4257; }
.area summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.3rem 0; font: 400 var(--s2)/1.2 var(--serif); }
.area summary::-webkit-details-marker { display: none; }
.area summary::after { content: "+"; font-family: var(--sans); font-size: 1.4rem; color: var(--glass); transition: transform .3s; }
.area[open] summary::after { transform: rotate(45deg); }
.area .area-body { padding-bottom: 1.5rem; display: grid; gap: 1rem; }
.area .area-body p { color: #d3dee3; }
.area button.chip { justify-self: start; }

.voyage { list-style: none; margin: 0; padding: 0; position: relative; }
.voyage::before { content: ""; position: absolute; left: 4.6rem; top: .6rem; bottom: .6rem; width: 1px; background: repeating-linear-gradient(to bottom, var(--glass) 0 6px, transparent 6px 12px); }
.voyage li { display: grid; grid-template-columns: 4rem 1fr; gap: 1.5rem; padding-block: 1.2rem; position: relative; }
.voyage li::after { content: ""; position: absolute; left: 4.35rem; top: 1.75rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--glass); }
.voyage time { font: 400 1.25rem/1.4 var(--serif); color: var(--glass); font-variant-numeric: tabular-nums; }
.voyage h3 { font-size: var(--s1); color: var(--paper); margin-bottom: .35rem; }
.voyage p { color: #c7d4da; margin: 0; }
.chart-wrap { display: grid; gap: 3rem; }
@media (min-width: 62rem) { .chart-wrap { grid-template-columns: 6fr 6fr; align-items: start; } .chart-wrap svg { position: sticky; top: 6rem; } }
.route-svg { width: 100%; height: auto; background: #12293d; border-radius: 4px; }

.y-pitch { display: grid; gap: 2rem; }
@media (min-width: 62rem) { .y-pitch { grid-template-columns: repeat(3, 1fr); } }
.y-pitch div { border-top: 2px solid var(--glass); padding-top: 1.2rem; }
.y-pitch h3 { color: var(--paper); font-size: var(--s1); margin-bottom: .6rem; }
.y-pitch p { color: #c7d4da; }

.y-cta { margin-top: var(--space); padding-block: var(--space); background: var(--paper); color: var(--navy); }
.y-cta h2 { color: var(--navy); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; max-width: 36rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--muted); }
.field input, .field textarea, .field select { font: inherit; padding: .75rem .9rem; border: 1px solid #9aa3a8; border-radius: 4px; background: var(--paper); color: var(--navy); }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: #a3341f; }
.error { color: #a3341f; font-size: .88rem; font-weight: 600; }
.form-status { padding: .9rem 1rem; background: #e3efe9; border-left: 3px solid var(--glass-ink); }
.form-status:empty { display: none; }
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 62rem) { .contact-grid { grid-template-columns: 5fr 6fr; } }
.direct { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.direct a { font: 400 var(--s1)/1.3 var(--serif); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 3rem; }
@media (min-width: 62rem) { .about-grid { grid-template-columns: 4fr 7fr; } }
.portrait { aspect-ratio: 4/5; background: repeating-linear-gradient(135deg, #e7e1d3 0 14px, #ede8dc 14px 28px); display: grid; place-items: center; text-align: center; padding: 2rem; color: var(--muted); border: 2px dashed #b9862c; }

/* ---------- Agent demo ---------- */
.agent { display: grid; gap: 1.5rem; }
@media (min-width: 62rem) { .agent { grid-template-columns: 7fr 5fr; } }
.chat { background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; display: flex; flex-direction: column; min-height: 32rem; }
.chat-head { padding: .9rem 1.1rem; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.chat-head strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }
.ai-flag { font-size: .8rem; font-weight: 700; background: var(--navy); color: var(--paper); border-radius: 999px; padding: .2rem .65rem; }
.chat-log { flex: 1; padding: 1.1rem; display: flex; flex-direction: column; gap: .7rem; overflow-y: auto; max-height: 28rem; }
.msg { max-width: 85%; padding: .7rem .95rem; border-radius: 14px; font-size: .96rem; line-height: 1.45; }
.msg.guest { align-self: flex-end; background: var(--navy); color: var(--paper); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: #e6eeeb; border-bottom-left-radius: 4px; }
.msg.sys { align-self: center; background: none; color: var(--muted); font-size: .85rem; text-align: center; }
.msg .who { display: block; font-size: .75rem; font-weight: 700; opacity: .7; margin-bottom: .15rem; }
.chat-choices { padding: .9rem 1.1rem 1.1rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { background: none; border: 1px solid var(--navy); border-radius: 999px; padding: .45rem .9rem; font-size: .9rem; cursor: pointer; text-align: left; }
.choice:hover { background: var(--navy); color: var(--paper); }
.handoff { background: var(--navy); color: var(--paper); border-radius: 8px; padding: 1.3rem; }
.handoff h3 { font-size: var(--s1); margin-bottom: .8rem; }
.handoff dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem .9rem; font-size: .92rem; margin: 0; }
.handoff dt { color: #9fb2bf; }
.handoff dd { margin: 0; }
.handoff .empty { color: #9fb2bf; font-size: .95rem; margin: 0; }
.lang-pick { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--rule); padding-block: 2.5rem 3rem; font-size: .92rem; color: var(--muted); }
.yacht-page .site-foot { border-top-color: #2a4257; color: #9fb2bf; background: var(--navy); }
.site-foot .wrap { display: grid; gap: 1rem; }
@media (min-width: 62rem) { .site-foot .wrap { grid-template-columns: 1fr auto; } }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Single orchestrated load moment on the home hero */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lede, .hero .actions, .hero-plate { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero .lede { animation-delay: .12s; }
  .hero .actions { animation-delay: .22s; }
  .hero-plate { animation-delay: .1s; animation-name: settle; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  @keyframes settle { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } }
}

.area-dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0; color: #d3dee3; font-size: .95rem; }
.area-dl dt { color: #9fb2bf; }
.area-dl dd { margin: 0; }
.dark-note { background: #12293d; color: #d3dee3; margin-top: 2rem; }
.dark-note strong { color: var(--paper); }
.dark-note a { color: var(--glass); }
.panel-step { color: var(--navy); background: none; border-color: var(--navy); }
.panel-step:hover { border-color: var(--glass-ink); }
.yacht-page main > section:last-child { padding-bottom: var(--space); }
@media (max-width: 40rem) { .y-hero { height: 76svh; min-height: 30rem; } .y-title h1 { font-size: 2.6rem; } .y-title p { font-size: 1rem; } .y-controls { left: .75rem; right: .75rem; justify-content: flex-start; bottom: .75rem; } .chip { font-size: .8rem; padding: .4rem .7rem; } }

.y-panel .area-dl { color: var(--navy); }
.y-panel .area-dl dt { color: var(--muted); }
.y-panel .small { color: var(--muted); }
.hotspot.behind:focus-visible { opacity: 1; pointer-events: auto; }
[hidden] { display: none !important; }
.y-hero .stage::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 55%; background: linear-gradient(to bottom, rgba(12,28,42,.62), rgba(12,28,42,0)); pointer-events: none; }
.y-title { z-index: 2; }
.y-title .small { color: #e3ebee !important; }
.hotspots, .y-controls, .y-panel, .stage-status, .loader { z-index: 3; }

/* Yacht stage: interaction states (Dec 2026 pass) */
.stage-hint { position: absolute; left: 50%; bottom: 4.6rem; transform: translate(-50%, .4rem); max-width: min(34rem, calc(100% - 2rem)); background: rgba(10,26,40,.86); color: var(--paper); padding: .55rem .95rem; border-radius: 6px; font-size: .88rem; line-height: 1.4; text-align: center; pointer-events: none; opacity: 0; transition: opacity .3s, transform .3s; z-index: 3; }
.stage-hint.show { opacity: 1; transform: translate(-50%, 0); }
.loader .spin { display: inline-block; width: .9rem; height: .9rem; margin-right: .6rem; vertical-align: -.12rem; border: 2px solid rgba(250,248,243,.35); border-top-color: var(--paper); border-radius: 50%; animation: yspin .9s linear infinite; }
@keyframes yspin { to { transform: rotate(360deg); } }
.chip { transition: background-color .15s, border-color .15s, color .15s; }
.chip:focus-visible, .hotspot:focus-visible .dot, .stage-canvas:focus-visible { outline: 3px solid var(--glass); outline-offset: 2px; }
.stage-canvas:focus-visible { outline-offset: -4px; }
.chip:active { transform: translateY(1px); }
.chip-icon { min-width: 2.3rem; padding-inline: .6rem; font-size: 1.05rem; line-height: 1; }
.hotspot .dot { transition: background-color .15s, box-shadow .2s, transform .15s; }
.hotspot:hover .dot { box-shadow: 0 0 0 9px rgba(163,201,190,.5); transform: scale(1.08); }
.hotspot[aria-expanded="true"] .dot { color: var(--navy); transform: scale(1.12); }
.hotspot[aria-expanded="true"] .lbl { background: var(--paper); color: var(--navy); }
.stage-canvas { cursor: grab; }
.stage-canvas:active { cursor: grabbing; }
@media (max-width: 40rem) { .stage-hint { bottom: auto; top: 42%; } .chip-icon { min-width: 2.6rem; min-height: 2.3rem; } .hotspot .dot { width: 2.2rem; height: 2.2rem; } }
@media (prefers-reduced-motion: reduce) { .loader .spin { animation: none; } .stage-hint, .hotspot .dot, .chip, .y-panel { transition: none !important; } }
/* hotspots are positioned on their anchor point; the dot is centred on it */
.hotspot { margin: -.8rem 0 0 -.8rem; will-change: transform; }
@media (max-width: 40rem) { .hotspot { margin: -1.1rem 0 0 -1.1rem; } }
/* the button is exactly the dot's height, so the dot stays centred on its anchor even when the label shows */
.hotspot { height: 1.6rem; }
@media (max-width: 40rem) { .hotspot { height: 2.2rem; } }
.stage-hint { left: var(--gutter); bottom: 1.4rem; transform: translateY(.4rem); max-width: min(30rem, calc(100% - 2 * var(--gutter))); text-align: left; }
.stage-hint.show { transform: none; }
@media (max-width: 64rem) { .stage-hint { bottom: auto; top: 62%; left: 50%; transform: translate(-50%, .4rem); text-align: center; width: max-content; } .stage-hint.show { transform: translate(-50%, 0); } }
.y-panel { z-index: 4; }
.y-title { transition: opacity .3s; }
@media (max-width: 40rem) { .y-panel { background: var(--paper); } .stage.panel-open .y-title, .stage.panel-open .y-controls { opacity: 0; visibility: hidden; } }
.hotspot { touch-action: pan-y; }
/* hidden labels stay in the accessibility tree, so each hotspot keeps its name for screen readers */
.stage.labels-off .hotspot:not(:hover):not(:focus-visible):not([aria-expanded="true"]) .lbl { display: block; position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 40rem) { .hotspot .lbl { display: block; position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); } }

/* Walk-through (inside the yacht) */
.chip-strong { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.chip-strong:hover { background: var(--glass); border-color: var(--glass); }
.stage.inside .y-title, .stage.inside .y-controls { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.stage.inside .stage-canvas { cursor: grab; }
.inside-bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 1.1rem; z-index: 3; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .9rem 1.5rem; pointer-events: none; }
.inside-bar > * { pointer-events: auto; }
.room-now { max-width: 30rem; background: rgba(10,26,40,.8); backdrop-filter: blur(8px); color: var(--paper); padding: .85rem 1.1rem 1rem; border-radius: 6px; }
.room-kicker { font-size: .8rem; color: #b9cdd3; margin: 0 0 .2rem; }
.room-title { font-size: clamp(1.35rem, 1rem + 1vw, 1.8rem); margin: 0; }
.room-desc { margin: .45rem 0 0; font-size: .95rem; line-height: 1.45; color: #e2eaec; }
.room-desc:empty { display: none; }
.room-nav { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; max-width: 38rem; }
.stage.walking .room-nav .chip[data-room] { opacity: .6; }
.room-marker { position: absolute; left: 0; top: 0; margin: -1.1rem 0 0 -1.1rem; height: 2.2rem; display: flex; align-items: center; gap: .5rem; background: none; border: 0; padding: 0; cursor: pointer; pointer-events: auto; transition: opacity .25s; touch-action: pan-y; will-change: transform; }
.room-marker .ring { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 3px solid rgba(250,248,243,.95); background: rgba(163,201,190,.35); box-shadow: 0 2px 14px rgba(5,15,25,.45); transform: scaleY(.55); transition: background-color .15s, transform .15s; }
.room-marker .lbl { background: rgba(10,26,40,.82); color: var(--paper); padding: .25rem .55rem; border-radius: 4px; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.room-marker:hover .ring, .room-marker:focus-visible .ring { background: var(--glass); transform: scaleY(.6) scale(1.12); }
.room-marker:focus-visible { outline: none; }
.room-marker:focus-visible .lbl { outline: 3px solid var(--glass); outline-offset: 2px; }
.room-marker.behind { opacity: 0; pointer-events: none; }
.rooms-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; counter-reset: none; }
.rooms-list h3 { margin: 0 0 .35rem; font-size: 1.15rem; }
.rooms-list p { margin: 0 0 .6rem; }
@media (max-width: 40rem) {
  .inside-bar { left: .6rem; right: .6rem; bottom: .6rem; gap: .5rem; }
  .room-now { max-width: none; width: 100%; padding: .7rem .9rem .8rem; }
  /* on phones the scene needs the room: the description is repeated in the list under the stage */
  .room-now { padding: .5rem .8rem .55rem; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
  .room-kicker { order: 2; margin: 0; font-size: .75rem; }
  .room-title { font-size: 1.2rem; }
  .room-desc { display: none; }
  .room-nav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 2px; scrollbar-width: none; }
  .room-nav .chip { flex: none; }
  .room-marker .lbl { display: block; font-size: .78rem; }
}

/* ---------- Hospitality, prices, FAQ, about monogram ---------- */
.hosp-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 62rem) { .hosp-grid { grid-template-columns: 6fr 6fr; gap: 4rem; } }
.prose-col h2 { font-size: var(--s2); margin: 0 0 1rem; }
.prose-col h2 + ul { margin-bottom: 2.5rem; }
.plain { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.plain li { padding: .85rem 0; border-bottom: 1px solid var(--rule); max-width: var(--measure); }
.prices { overflow-x: auto; }
.prices table { width: 100%; border-collapse: collapse; min-width: 34rem; }
.prices caption { text-align: left; color: var(--muted); font-size: var(--s-1); padding-bottom: .8rem; }
.prices th, .prices td { text-align: left; padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prices thead th { font-size: var(--s-1); font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--navy); }
.prices tbody th { font: 400 var(--s1)/1.25 var(--serif); }
.prices .price { font-weight: 600; white-space: nowrap; color: var(--navy); }
.faq { border-top: 1px solid var(--navy); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; font: 400 var(--s1)/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--glass-ink); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.3rem; max-width: var(--measure); color: var(--harbour); }
.monogram { aspect-ratio: 4/5; background: var(--navy); color: var(--glass); display: grid; place-items: center; font: 300 clamp(5rem, 3rem + 8vw, 10rem)/1 var(--serif); letter-spacing: -.02em; }
.portrait-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
@media (max-width: 30rem) { .brand small { display: none; } }

/* ---------- Home: founder + see it working ---------- */
.founder, .working { display: grid; gap: 2.5rem; align-items: start; }
.founder .portrait, .founder .portrait-img { max-width: 22rem; }
@media (min-width: 62rem) { .founder { grid-template-columns: 4fr 8fr; gap: 4rem; } .working { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: center; } }
.founder h2, .working h2 { font-size: var(--s3); }
.founder p, .working p { max-width: var(--measure); }
.video-slot { aspect-ratio: 16/9; display: grid; place-items: center; text-align: center; padding: 2rem; color: var(--muted); background: repeating-linear-gradient(135deg, #e7e1d3 0 14px, #ede8dc 14px 28px); border: 2px dashed #b9862c; }
.demo-video { width: 100%; aspect-ratio: 16/9; background: var(--navy); }

/* ---------- Home: type-anything guest assistant ---------- */
.working { align-items: start; }
.how { margin: 1.6rem 0; padding-left: 1.2rem; max-width: var(--measure); }
.how li { margin-bottom: .8rem; }
.ga { display: grid; gap: 1rem; }
@media (min-width: 62rem) { .ga { grid-template-columns: 7fr 5fr; } }
.ga .chat { min-height: 30rem; }
.ga .chat-log { max-height: 24rem; min-height: 14rem; }
.ga-form { display: flex; gap: .5rem; padding: .8rem 1.1rem 1.1rem; }
.ga-input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: .7rem .9rem; border: 1px solid var(--navy); border-radius: 999px; background: #fff; color: var(--navy); }
.ga-input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ga-form .btn { padding-inline: 1.2rem; }
.ga-side { background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 1.2rem; display: flex; flex-direction: column; gap: 1rem; }
.ga-side h3 { font-size: var(--s1); margin: 0; }
.ga-steps { margin: 0; padding-left: 1.2rem; font-size: .92rem; min-height: 6rem; }
.ga-steps li { margin-bottom: .45rem; animation: ga-in .3s ease both; }
@keyframes ga-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ga-card { margin-top: auto; }
.ga-card .empty { color: #9fb2bf; font-size: .9rem; margin: 0; }
@media (prefers-reduced-motion: reduce) { .ga-steps li { animation: none; } }
