/* Ainsley by Odyssey Works: an editorial page in the studio page's language. Warm paper and night bands, Cormorant for
   the voice, Inter for the facts, brass for the accents. One deliberate look (no dark-mode flip): the renders set it. */
:root {
  --paper: #f4efe7; --paper-2: #ebe4d8; --card: #fbf8f3;
  --ink: #1b1915; --ink-2: #474238; --ink-3: #6b6357;
  --night: #121110; --night-2: #1c1a17; --on-night: #f3eee6; --on-night-2: rgba(243, 238, 230, 0.74);
  --brass: #c9a36a; --brass-ink: #7a5726;
  --rule: rgba(27, 25, 21, 0.13); --rule-night: rgba(243, 238, 230, 0.15);
  --f-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --f-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--f-ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gut); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 820px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(44px, 7.2vw, 96px); line-height: 0.98; }
h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; margin-bottom: 22px; }
h3 { font-size: 27px; line-height: 1.15; }
p { margin: 0 0 16px; max-width: 64ch; }
ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
ul li { position: relative; padding-left: 22px; margin-bottom: 8px; max-width: 64ch; }
ul li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 1px; background: var(--brass); }
.eyebrow { font: 600 12.5px/1.4 var(--f-ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-ink); margin: 0 0 18px; }
.small { font-size: 14px; color: var(--ink-3); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(244, 239, 231, 0.9); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--rule); }
.top-row { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.mark { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); margin: 0; }
.mark b { font: 500 27px/1 var(--f-display); letter-spacing: 0.005em; }
.mark span { font: 500 11.5px/1 var(--f-ui); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brass); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; padding: 9px 16px; border: 1px solid var(--rule); border-radius: 999px; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + 10px); display: grid; min-width: 220px; padding: 10px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 18px 40px rgba(27, 25, 21, 0.16); }
.menu nav a { padding: 11px 12px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.menu nav a:hover { background: var(--paper-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font: 600 15px/1.2 var(--f-ui); text-decoration: none; border: 1px solid transparent; transition: background 0.2s, border-color 0.2s, color 0.2s; white-space: nowrap; cursor: pointer; }
.btn.small { padding: 10px 18px; font-size: 14px; }
.btn.primary { background: var(--brass); color: var(--ink); }
.btn.primary:hover { background: #d8b47e; }
.btn.light { color: inherit; border-color: currentColor; background: transparent; }
.btn.light:hover { background: rgba(255, 255, 255, 0.08); }
.btn.ghost { color: var(--ink); border-color: var(--rule); background: transparent; }
.btn.ghost:hover { border-color: var(--ink); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* hero */
.hero { position: relative; display: grid; align-items: end; min-height: clamp(540px, 80vh, 820px); color: var(--on-night); background: var(--night); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 9, 8, 0.82) 0%, rgba(10, 9, 8, 0.5) 42%, rgba(10, 9, 8, 0.06) 78%), linear-gradient(0deg, rgba(10, 9, 8, 0.6) 0%, rgba(10, 9, 8, 0) 45%); }
.hero-copy { position: relative; width: 100%; padding-top: 120px; padding-bottom: clamp(56px, 9vh, 96px); }
.hero-copy > * { max-width: 700px; }
.hero .eyebrow { color: var(--brass); }
.hero-copy .eyebrow, .hero-copy h1, .hero-copy .lead, .duo-copy .eyebrow, .duo-title { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55); }
.hero .lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--on-night-2); margin-top: 24px; max-width: 58ch; }
.hero-note { margin-top: 22px; font-size: 14.5px; color: var(--on-night-2); }
.hero-note a, .night a { color: var(--brass); }

/* the hub's split hero: the home and the yacht with equal weight, each with its own Walk button */
.hero.duo { display: block; min-height: 0; }
.duo-head { position: absolute; top: 0; left: 0; right: 0; z-index: 2; text-align: center; padding-top: clamp(44px, 7vh, 84px); pointer-events: none; }
.duo-head > * { margin-left: auto; margin-right: auto; pointer-events: auto; }
.duo-head h1 { font-size: clamp(44px, 6.4vw, 92px); text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35); }
.duo-head .lead { max-width: 56ch; margin-top: 20px; }
.duo-head .ctas { justify-content: center; margin-top: 24px; }
.duo-sides { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(640px, calc(100svh - 67px), 920px); }
.duo-side { position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.duo-side + .duo-side::before { content: ""; position: absolute; left: 0; top: 54%; bottom: 0; width: 1px; background: rgba(201, 163, 106, 0.55); z-index: 1; }
.duo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); transition: transform 0.9s ease; }
.duo-side:hover .duo-img { transform: scale(1.02); }
.duo-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 9, 8, 0.8) 0%, rgba(10, 9, 8, 0.42) 34%, rgba(10, 9, 8, 0.04) 56%, rgba(10, 9, 8, 0.74) 100%); }
.duo-copy { position: relative; z-index: 1; width: 100%; padding: 0 clamp(20px, 4vw, 56px) clamp(32px, 6vh, 60px); }
.duo-copy .eyebrow { margin-bottom: 10px; }
.duo-title { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.08; margin: 0 0 20px; max-width: 18ch; }
.duo-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.duo .btn { padding: 15px 28px; font-size: 15.5px; }
.duo .film-btn { color: var(--on-night); background: rgba(10, 9, 8, 0.25); }

/* films: posters that turn into YouTube players, the film pages, and the hero's lightbox */
.films.sec { padding: clamp(48px, 6vw, 88px) 0; }
.films h2 { margin-bottom: 14px; }
.film-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; }
.film-item { margin: 0; }
.film-item figcaption { margin-top: 12px; font-size: 14.5px; color: var(--on-night-2); }
.film-item figcaption b { color: var(--on-night); font-weight: 600; }
.yt, .watch-player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; }
.yt iframe, .watch-player iframe, .yt-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-poster { position: absolute; inset: 0; display: block; }
.yt-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, filter 0.3s; }
.yt-poster:hover .yt-img { transform: scale(1.02); filter: brightness(1.08); }
/* the play button sits bottom-left, clear of any title in the poster */
.yt-play { position: absolute; left: 20px; bottom: 20px; width: 68px; height: 68px; border-radius: 50%; background: rgba(201, 163, 106, 0.95); box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45); transition: transform 0.2s; }
.yt-play::after { content: ""; position: absolute; left: 27px; top: 21px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--ink); }
.yt-poster:hover .yt-play { transform: scale(1.08); }
.watch h1 { font-size: clamp(38px, 5vw, 66px); }
.watch-player { margin: 30px 0 14px; }
.watch .ctas { margin-top: 18px; }
.watch-about { margin-top: 48px; }
.yt-modal { padding: 0; border: 0; background: transparent; width: min(94vw, calc((100vh - 140px) * 16 / 9), 1400px); max-width: none; max-height: none; overflow: visible; }
.yt-modal::backdrop { background: rgba(10, 9, 8, 0.9); }
.yt-box { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; }
.yt-close { position: absolute; right: 0; top: -54px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(243, 238, 230, 0.45); background: transparent; color: var(--on-night); font: 300 28px/1 var(--f-ui); cursor: pointer; }
.yt-close:hover { border-color: var(--brass); color: var(--brass); }
.duo-note { margin: 14px 0 0; font-size: 14px; }
.duo-note a { color: var(--on-night-2); text-decoration: none; }
.duo-note a:hover { color: var(--brass); }

/* facts strip */
.facts { padding: 44px 0; border-bottom: 1px solid var(--rule); }
.facts dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; }
.facts dt { font: 500 clamp(30px, 3.4vw, 42px)/1 var(--f-display); }
.facts dd { margin: 8px 0 0; font-size: 14px; color: var(--ink-3); max-width: 26ch; }
.facts.night { border-color: var(--rule-night); }
.facts.night dd { color: var(--on-night-2); }

/* sections */
.sec { padding: clamp(68px, 9vw, 124px) 0; }
.paper { background: var(--paper); }
.paper-2 { background: var(--paper-2); }
.night { background: var(--night); color: var(--on-night); }
.night .eyebrow { color: var(--brass); }
.night .small, .night p { color: var(--on-night-2); }
.night strong { color: var(--on-night); }
.sec-grid { display: grid; gap: 64px; align-items: center; }
.split .sec-grid { grid-template-columns: 1fr 1fr; }
.media-left .sec-media { order: -1; }
.sec-media { margin: 0; }
.sec-media img { width: 100%; border-radius: 4px; aspect-ratio: 4 / 3; object-fit: cover; }
.sec-text > p:last-child { margin-bottom: 0; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 36px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; color: var(--ink); text-decoration: none; transition: transform 0.25s, box-shadow 0.25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(27, 25, 21, 0.12); }
.card figure { margin: 0; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { color: var(--ink-2); }
.card .more { margin-top: auto; font-weight: 600; font-size: 14.5px; color: var(--brass-ink); }

/* tables */
.table-wrap { overflow-x: auto; margin: 32px 0 8px; border-top: 1px solid var(--rule); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
table.compare { min-width: 680px; }
th, td { text-align: left; vertical-align: top; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--rule); }
thead th { font: 600 12.5px/1.4 var(--f-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
tbody th { font-weight: 600; width: 22%; }
table.compare td:last-child, table.compare th:last-child { background: rgba(201, 163, 106, 0.13); padding-left: 16px; }
table.compare thead th:last-child { color: var(--brass-ink); }

/* tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; align-items: stretch; }
.tier { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 30px 28px; }
.tier.featured { background: var(--night); color: var(--on-night); border-color: var(--brass); box-shadow: 0 22px 50px rgba(18, 17, 16, 0.24); }
.tier .badge { font: 600 12px/1 var(--f-ui); letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); margin: 0 0 14px; }
.tier h3 { font-size: 32px; }
.tier .pitch { color: var(--ink-3); margin: 8px 0 18px; font-size: 15.5px; }
.tier.featured .pitch, .tier.featured li { color: var(--on-night-2); }
.price { font: 500 46px/1 var(--f-display); margin: 0 0 22px; }
.price > span:first-child { font: 500 14px/1 var(--f-ui); color: var(--ink-3); margin-right: 4px; }
.tier.featured .price > span:first-child { color: var(--on-night-2); }
.price .sub { display: block; font: 400 14px/1.4 var(--f-ui); color: var(--ink-3); margin-top: 8px; }
.tier ul { margin-bottom: 26px; font-size: 15px; }
.tier li::before { background: var(--brass); }
.tier .btn { margin-top: auto; }
.tier.featured .btn.primary { background: var(--brass); }
.scope { margin-top: 20px; font-size: 14.5px; color: var(--ink-3); max-width: none; }

/* steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px 24px; counter-reset: s; }
.steps li { counter-increment: s; padding: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 500 15px/1 var(--f-ui); letter-spacing: 0.12em; color: var(--brass-ink); margin-bottom: 14px; position: static; width: auto; height: auto; background: none; }
.steps figure { margin: 0 0 18px; }
.steps img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }
.steps h3 { font-size: 24px; margin-bottom: 8px; }
.steps p { font-size: 15.5px; color: var(--ink-2); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.gallery figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.night .gallery figcaption { color: var(--on-night-2); }

/* questions */
.faq { margin-top: 28px; border-top: 1px solid var(--rule); }
.qa { padding: 26px 0 12px; border-bottom: 1px solid var(--rule); }
.qa h3 { margin-bottom: 10px; }
.qa p { color: var(--ink-2); }

/* call to action */
.cta-band { text-align: center; }
.cta-band .narrow { margin: 0 auto; }
.cta-band p { margin-left: auto; margin-right: auto; }
.cta-band .ctas { justify-content: center; }

/* film */
.video { margin: 0 0 40px; }
.video video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; }
.video figcaption { margin-top: 12px; font-size: 14px; color: var(--on-night-2); }
.transcript p { font: 500 22px/1.45 var(--f-display); color: var(--on-night); margin-bottom: 12px; }

/* estimator and quote form */
.estimator, .quote { display: grid; gap: 10px; margin-top: 24px; }
fieldset { border: 0; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
legend { font: 600 12.5px/1.4 var(--f-ui); letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-ink); margin-bottom: 8px; padding: 0; }
label { font-size: 14.5px; font-weight: 500; color: var(--ink-2); margin-top: 6px; }
input, select, textarea { font: 400 16px/1.4 var(--f-ui); color: var(--ink); background: #fffdf9; border: 1px solid rgba(27, 25, 21, 0.22); border-radius: 10px; padding: 13px 14px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
label.check input { width: 18px; height: 18px; }
.quote .btn { justify-self: start; margin-top: 6px; }
output { font: 500 clamp(34px, 4vw, 46px)/1.1 var(--f-display); color: var(--brass-ink); margin-top: 14px; }

/* sources, crumbs, footer */
.sources { padding: 48px 0 56px; border-top: 1px solid var(--rule); }
.sources h2 { font-size: 26px; margin-bottom: 12px; }
.sources ol { margin: 0; padding-left: 20px; font-size: 14px; color: var(--ink-3); }
.sources li { margin-bottom: 6px; }
.crumbs { padding-top: 22px; padding-bottom: 22px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rule); }
.foot { background: var(--night); color: var(--on-night-2); padding: 64px 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot .mark { color: var(--on-night); margin-bottom: 16px; }
.foot .mark span { color: var(--on-night-2); }
.foot ul li { padding-left: 0; }
.foot ul li::before { display: none; }
.foot a { color: var(--on-night); text-decoration: none; }
.foot a:hover { color: var(--brass); }
.foot-note { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--rule-night); font-size: 13px; }

/* phones and tablets */
@media (max-width: 960px) {
  .nav, .top-row > .btn { display: none; }
  .menu { display: block; margin-left: auto; }
  .split .sec-grid { grid-template-columns: 1fr; gap: 36px; }
  .media-left .sec-media { order: 0; }
  .tiers { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .film-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .facts dl { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 700px) {
  /* phones: the headline on its own, then the home and the yacht side by side, both buttons above the fold */
  .duo-head { position: relative; text-align: left; padding-top: 34px; padding-bottom: 24px; background: var(--night); }
  .duo-head > * { margin-left: 0; }
  .duo-head h1 { font-size: clamp(42px, 12vw, 56px); text-shadow: none; }
  .duo-head .lead { font-size: 16.5px; margin-top: 14px; }
  .duo-head .ctas { justify-content: flex-start; margin-top: 20px; }
  .duo-sides { min-height: 0; }
  .duo-img { object-position: var(--focus-m, var(--focus)); }
  .duo-side { aspect-ratio: 3 / 4.7; }
  .duo-side + .duo-side::before { top: 0; }
  .duo-shade { background: linear-gradient(180deg, rgba(10, 9, 8, 0) 0%, rgba(10, 9, 8, 0.12) 26%, rgba(10, 9, 8, 0.8) 56%, rgba(10, 9, 8, 0.9) 100%); }
  .duo-copy { padding: 0 12px 16px; }
  .duo-copy .eyebrow { margin-bottom: 6px; }
  .duo-title { font-size: 20px; margin-bottom: 12px; }
  .duo-btns { flex-direction: column; gap: 8px; }
  .duo .btn { width: 100%; padding: 12px 8px; font-size: 14.5px; }
  .duo .film-btn { padding: 9px 8px; font-size: 13.5px; }
  .duo-side { aspect-ratio: 3 / 5.1; }
  .film-grid { gap: 30px; }
  .yt-play { left: 14px; bottom: 14px; width: 56px; height: 56px; }
  .yt-play::after { left: 22px; top: 17px; border-width: 11px 0 11px 18px; }
  .duo-note { font-size: 12.5px; margin-top: 10px; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .hero { min-height: clamp(560px, 88vh, 760px); }
  .hero-shade { background: linear-gradient(0deg, rgba(10, 9, 8, 0.92) 0%, rgba(10, 9, 8, 0.74) 50%, rgba(10, 9, 8, 0.5) 100%); }
  .gallery { grid-template-columns: 1fr; }
  .ctas .btn { flex: 1 1 auto; }
  .mark span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
