/* ============================================================
   WOODS & ASSOCIATES YACHT BROKERAGE & REALTY
   "Hodinkee × Robb Report" — premium nautical editorial
   v2 — real brand assets · premium motion · anti-template
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,300..900,0..100;1,9..144,300..900,0..100&family=Inter+Tight:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --navy: #0C1B2E;
  --navy-deep: #070F1B;
  --navy-mid: #142A45;
  --navy-line: rgba(245,240,230,0.10);
  --gold: #B58A3F;
  --gold-soft: #C9A35B;
  --gold-bright: #D9B978;
  --gold-line: rgba(181, 138, 63, 0.32);
  --ivory: #F5F0E6;
  --ivory-soft: #EDE6D7;
  --ivory-line: rgba(12, 27, 46, 0.12);
  --chrome: #C8CDD3;
  --chrome-dark: #9098A1;
  --ink: #0A0E13;
  --muted: #5E574B;
  --serif: 'Fraunces', 'Tiempos', Georgia, serif;
  --sans: 'Inter Tight', 'Söhne', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --maxw: 1440px;
  --pad: clamp(20px, 4vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px; line-height: 1.62;
  color: var(--ink); background: var(--ivory);
  font-feature-settings: 'ss01','cv11';
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease), opacity .3s var(--ease); }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* Film grain overlay — editorial texture, very subtle */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll progress (gold hairline, top) */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  z-index: 200; transition: width .1s linear;
}

/* Custom cursor (desktop, pointer devices only) */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9000; pointer-events: none; border-radius: 50%; mix-blend-mode: difference; }
.cursor-dot { width: 6px; height: 6px; background: var(--gold-bright); transform: translate(-50%,-50%); }
.cursor-ring { width: 38px; height: 38px; border: 1px solid rgba(217,185,120,0.8); transform: translate(-50%,-50%); transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease), opacity .3s; }
.cursor-ring.is-hover { width: 64px; height: 64px; background: rgba(217,185,120,0.10); }
.cursor-ring.is-view::after { content: 'VIEW'; font-family: var(--mono); font-size: 8px; letter-spacing: .18em; color: var(--gold-bright); mix-blend-mode: normal; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none !important; } }

/* ============================================================ TYPE */
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); font-size: .78em; letter-spacing: .12em; text-transform: uppercase; }

.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 30px; height: 1px; background: currentColor; transform-origin: left; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ''; width: 30px; height: 1px; background: currentColor; }

h1,h2,h3,h4 { font-family: var(--serif); font-weight: 350; line-height: 1.04; letter-spacing: -0.02em; font-variation-settings: 'SOFT' 60,'opsz' 144; }
h1 { font-size: clamp(44px, 7vw, 112px); }
h2 { font-size: clamp(33px, 5vw, 70px); }
h3 { font-size: clamp(22px, 2.4vw, 34px); }
h4 { font-size: clamp(18px, 1.8vw, 24px); }
.headline-accent { font-style: italic; font-variation-settings: 'SOFT' 100,'opsz' 144; color: var(--gold); }

p { margin: 0 0 1.1em; max-width: 66ch; }
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--muted); }

/* ============================================================ LAYOUT */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(64px, 9vw, 148px) 0; position: relative; }
.section--ivory { background: var(--ivory); }
.section--ivory-soft { background: var(--ivory-soft); }
.section--navy { background: var(--navy); color: var(--ivory); }
.section--navy-deep { background: var(--navy-deep); color: var(--ivory); }

/* Ghost volume number behind sections */
.ghost-num { position: absolute; top: clamp(20px,4vw,52px); right: var(--pad); font-family: var(--serif); font-size: clamp(120px, 20vw, 320px); line-height: .7; color: currentColor; opacity: 0.04; pointer-events: none; font-variation-settings: 'SOFT' 100; user-select: none; }

.divider-gold { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto; }
.divider-gold::before,.divider-gold::after { content: ''; flex: 1; max-width: 120px; height: 1px; background: var(--gold-line); }
.divider-gold .diamond { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

/* ============================================================ NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 120; padding: 16px var(--pad); display: flex; align-items: center; justify-content: space-between; background: linear-gradient(to bottom, rgba(7,15,27,0.72), rgba(7,15,27,0)); transition: transform .45s var(--ease), background .4s var(--ease), padding .4s var(--ease); }
.nav.is-scrolled { background: rgba(7,15,27,0.92); backdrop-filter: blur(14px); padding: 11px var(--pad); border-bottom: 1px solid rgba(181,138,63,0.20); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__logo-chip { background: var(--ivory); border-radius: 4px; padding: 9px 13px; display: grid; place-items: center; box-shadow: 0 6px 22px rgba(0,0,0,0.28); transition: transform .35s var(--ease); }
.nav__logo-chip img { height: 34px; width: auto; display: block; }
.nav__brand:hover .nav__logo-chip { transform: translateY(-1px); }
.nav__links { display: flex; gap: 34px; align-items: center; }
.nav__links a { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--ivory); text-transform: uppercase; opacity: .8; position: relative; padding: 4px 0; }
.nav__links a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--gold-soft); transition: width .35s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { opacity: 1; color: var(--gold-soft); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__cta { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: var(--navy); background: var(--gold); padding: 12px 22px; text-transform: uppercase; border: 1px solid var(--gold); transition: background .3s var(--ease), color .3s var(--ease); }
.nav__cta:hover { background: transparent; color: var(--gold-soft); }
.nav__burger { display: none; }
@media (max-width: 980px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: grid; gap: 5px; padding: 8px; z-index: 130; }
  .nav__burger span { width: 26px; height: 1.5px; background: var(--ivory); transition: transform .3s var(--ease), opacity .3s; }
  .nav.is-open { background: var(--navy-deep); }
  .nav.is-open .nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav.is-open .nav__links { display: flex; flex-direction: column; gap: 4px; position: fixed; inset: 0; background: var(--navy-deep); padding: 120px var(--pad) 40px; }
  .nav.is-open .nav__links a { font-family: var(--serif); font-size: 32px; text-transform: none; letter-spacing: 0; padding: 14px 0; border-bottom: 1px solid var(--navy-line); opacity: 1; }
  .nav.is-open .nav__links a::after { display: none; }
}

/* ============================================================ HERO */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--ivory); overflow: hidden; background: var(--navy-deep); }
.hero__img { position: absolute; inset: -8% 0 0; background-size: cover; background-position: center 40%; will-change: transform; }
.hero__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(7,15,27,0.55) 0%, rgba(7,15,27,0.12) 38%, rgba(7,15,27,0.55) 72%, rgba(7,15,27,0.96) 100%); }
.hero__inner { position: relative; z-index: 2; width: 100%; padding: 0 var(--pad) clamp(56px, 9vh, 110px); max-width: var(--maxw); margin: 0 auto; }
.hero__meta { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }
.hero__title { font-size: clamp(46px, 7.4vw, 118px); max-width: 15ch; }
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: block; }
.hero__right { display: flex; flex-direction: column; gap: 20px; min-width: 240px; max-width: 320px; }
.hero__listing { border-left: 1px solid var(--gold-line); padding-left: 18px; }
.hero__listing strong { display: block; font-family: var(--serif); font-size: 19px; font-weight: 400; margin: 4px 0 2px; }
.hero__listing span { font-family: var(--mono); font-size: 10px; color: var(--gold-soft); letter-spacing: .2em; text-transform: uppercase; }
.hero__cta-row { display: flex; gap: 14px; align-items: center; margin-top: 36px; flex-wrap: wrap; }
.cta-primary, .cta-ghost { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; padding: 18px 32px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 12px; transition: all .35s var(--ease); position: relative; }
.cta-primary { background: var(--gold); color: var(--navy); border: 1px solid var(--gold); }
.cta-primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(181,138,63,0.35); }
.cta-ghost { color: var(--ivory); border: 1px solid rgba(245,240,230,0.42); }
.cta-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.arrow { display: inline-block; transition: transform .35s var(--ease); }
.cta-primary:hover .arrow, .cta-ghost:hover .arrow { transform: translateX(5px); }
.hero__scroll { position: absolute; bottom: 30px; left: var(--pad); z-index: 3; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--ivory); opacity: .72; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.hero__scroll::after { content: ''; width: 1px; height: 38px; background: linear-gradient(var(--gold-bright), transparent); animation: scrollPulse 2.2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: .3; transform: scaleY(.5); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }
@media (max-width: 780px) {
  .hero__meta { flex-direction: column; align-items: flex-start; }
  .hero__right { border-top: 1px solid var(--gold-line); padding-top: 22px; max-width: none; width: 100%; }
  .hero__listing { border-left: none; padding-left: 0; }
}

/* ============================================================ STATS */
.stats { background: var(--navy-deep); color: var(--ivory); padding: clamp(40px,6vw,68px) var(--pad); border-top: 1px solid rgba(181,138,63,0.2); border-bottom: 1px solid rgba(181,138,63,0.2); }
.stats__row { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; }
.stat { position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: -16px; top: 6px; bottom: 6px; width: 1px; background: var(--navy-line); }
.stat__num { font-family: var(--serif); font-size: clamp(40px,4.6vw,66px); color: var(--gold); line-height: 1; margin-bottom: 12px; font-variation-settings: 'SOFT' 80; }
.stat__num .small { font-size: .5em; color: var(--ivory); opacity: .55; margin-left: 4px; }
.stat__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--chrome); line-height: 1.6; }
@media (max-width: 780px) { .stats__row { grid-template-columns: repeat(2,1fr); gap: 30px 24px; } .stat:nth-child(odd)::before { display: none; } }

/* ============================================================ SECTION HEADERS */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; margin-bottom: 64px; }
.section-head__left { max-width: 640px; }
.section-head__left h2 { margin-top: 18px; }
.section-head__right { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.section--navy .section-head__right, .section--navy-deep .section-head__right { color: var(--chrome); }

/* ============================================================ LISTING CARDS */
.listings-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 38px 28px; }
@media (max-width: 1100px) { .listings-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 680px) { .listings-grid { grid-template-columns: 1fr; gap: 40px; } }

.listing-card { display: block; position: relative; }
.listing-card__img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--navy-deep); }
.listing-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter 1s var(--ease); }
.listing-card:hover .listing-card__img img { transform: scale(1.06); }
/* gold sheen sweep on hover */
.listing-card__img::before { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(115deg, transparent 30%, rgba(217,185,120,0.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease); pointer-events: none; }
.listing-card:hover .listing-card__img::before { transform: translateX(120%); }
.listing-card__tag { position: absolute; top: 16px; left: 16px; z-index: 3; font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; background: var(--navy-deep); color: var(--gold); padding: 8px 13px; border: 1px solid var(--gold-line); text-transform: uppercase; }
.listing-card__status { position: absolute; top: 16px; right: 16px; z-index: 3; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; background: rgba(181,138,63,0.95); color: var(--navy-deep); padding: 8px 12px; text-transform: uppercase; }
.listing-card__len { position: absolute; bottom: 16px; right: 16px; z-index: 3; font-family: var(--serif); font-size: 22px; background: rgba(7,15,27,0.78); color: var(--ivory); padding: 8px 15px; border-bottom: 1px solid var(--gold); backdrop-filter: blur(6px); }
.listing-card__body { padding: 24px 0 0; }
.listing-card__meta { display: flex; gap: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; color: var(--gold); text-transform: uppercase; margin-bottom: 12px; }
.listing-card__meta span:not(:first-child)::before { content: '·'; margin-right: 12px; color: var(--ivory-line); }
.section--navy .listing-card__meta span:not(:first-child)::before { color: rgba(245,240,230,0.22); }
.listing-card__name { font-size: 26px; margin-bottom: 8px; }
.listing-card__loc { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.section--navy .listing-card__loc, .section--navy-deep .listing-card__loc { color: var(--chrome-dark); }

/* ============================================================ FOOTER */
.footer { background: var(--navy-deep); color: var(--ivory); padding: clamp(60px,8vw,104px) var(--pad) 40px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(181,138,63,0.2); }
@media (max-width: 900px) { .footer__top { grid-template-columns: repeat(2,1fr); gap: 40px; } }
@media (max-width: 540px) { .footer__top { grid-template-columns: 1fr; } }
.footer__logo-chip { background: var(--ivory); border-radius: 5px; padding: 16px 20px; display: inline-grid; place-items: center; margin-bottom: 22px; }
.footer__logo-chip img { height: 56px; width: auto; }
.footer p, .footer address { font-size: 14.5px; line-height: 1.66; color: var(--chrome); font-style: normal; }
.footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; font-weight: 500; }
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 10px; font-size: 14.5px; color: var(--chrome); }
.footer__col a:hover { color: var(--gold-soft); }
.footer__bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 32px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--chrome-dark); text-transform: uppercase; }
.footer__bot a:hover { color: var(--gold-soft); }
.footer__credit { color: var(--gold-soft); }

/* ============================================================ MOTION / REVEAL */
/* Fail-open: content visible by default; is-hidden only added by JS when offscreen */
.reveal { transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-hidden { opacity: 0; transform: translateY(34px); }
.reveal.is-hidden.r-left { transform: translateX(-40px); }
.reveal.is-hidden.r-right { transform: translateX(40px); }
.reveal.is-hidden.r-scale { transform: scale(0.96); }
/* staggered children */
.stagger > * { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.stagger.is-hidden > * { opacity: 0; transform: translateY(26px); }

/* split-line hero reveal — pure CSS animation (auto-plays, no JS dependency).
   Base state is VISIBLE, so if animations are disabled (reduced-motion) or
   never play, the headline is always shown. Fail-open by construction. */
.hero__line > span { transform: translateY(0); animation: heroLineUp 1.1s var(--ease) both; }
.hero__line:nth-child(2) > span { animation-delay: .08s; }
.hero__line:nth-child(3) > span { animation-delay: .16s; }
@keyframes heroLineUp { from { transform: translateY(110%); } to { transform: translateY(0); } }
.hero .eyebrow { animation: heroFade .9s var(--ease) .32s both; }
.hero__cta-row { animation: heroFade .9s var(--ease) .46s both; }
.hero__right { animation: heroFade .9s var(--ease) .56s both; }
.hero__scroll { animation: heroFade .9s var(--ease) .7s both; }
@keyframes heroFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.hero__scroll { opacity: .72; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal.is-hidden, .stagger.is-hidden > * { opacity: 1 !important; transform: none !important; }
  .hero__line > span { transform: none !important; }
  .hero .eyebrow, .hero__cta-row, .hero__right, .hero__scroll { opacity: 1 !important; transform: none !important; }
  .hero__img { transform: none !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ============================================================
   CONTRAST FIX — readable "ink gold" for gold text on cream.
   Bright --gold (#B58A3F) fails WCAG AA on ivory (2.8:1); on light
   sections we swap to --gold-ink (#785621 → ~5.4–5.9:1, AA pass).
   Dark (navy) sections keep the bright gold — already 5.5:1+.
   ============================================================ */
:root { --gold-ink: #785621; }
.section--ivory .eyebrow, .section--ivory-soft .eyebrow,
.section--ivory .mono, .section--ivory-soft .mono,
.section--ivory .headline-accent, .section--ivory-soft .headline-accent,
.section--ivory .ladder__num, .section--ivory-soft .ladder__num,
.section--ivory .listing-card__meta, .section--ivory-soft .listing-card__meta,
.section--ivory .timeline__year, .section--ivory-soft .timeline__year,
.section--ivory .promise__item .mono, .section--ivory-soft .promise__item .mono,
.section--ivory .contact-card .mono, .section--ivory-soft .contact-card .mono,
.section--ivory .spread__quote, .section--ivory-soft .spread__quote {
  color: var(--gold-ink);
}
/* eyebrow hairline + accents follow the ink colour via currentColor */
.cta-band .eyebrow--center { color: var(--gold-ink); }
