:root {
  --ink: #071016;
  --ink-soft: #0c171d;
  --ink-light: #142129;
  --ivory: #f1eee6;
  --paper: #dfddd4;
  --muted: #aab0ae;
  --gold: #c6a56b;
  --gold-bright: #e1c68f;
  --line: rgba(240, 236, 225, .18);
  --dark-line: rgba(7, 16, 22, .18);
  --max: 1540px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; background: var(--ink); }
body { margin: 0; color: var(--ivory); background: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
.top-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }
img { max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
[data-lang] { display: none; }
html[data-language="it"] [data-lang="it"], html[data-language="en"] [data-lang="en"] { display: inline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 12px 16px; color: var(--ink); background: var(--ivory); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 90; height: 86px; display: grid; grid-template-columns: 230px 1fr auto; align-items: center; gap: 30px; padding: 0 clamp(22px, 4vw, 70px); background: linear-gradient(180deg, rgba(3, 9, 12, .86), rgba(3, 9, 12, .42), transparent); transition: background .25s, border-color .25s; }
.site-header.is-scrolled { background: rgba(5, 13, 18, .95); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.brand { display: inline-flex; flex-direction: column; width: max-content; text-decoration: none; line-height: 1; }
.brand-name { font-size: 22px; font-weight: 500; letter-spacing: .39em; }
.brand-division { margin-top: 7px; color: var(--gold-bright); font-size: 9px; letter-spacing: .78em; padding-left: 28px; }
.main-nav { justify-self: center; display: flex; gap: clamp(18px, 2.4vw, 44px); }
.main-nav a { text-decoration: none; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: #e8e6df; }
.main-nav a:hover { color: var(--gold-bright); }
.header-actions { display: flex; align-items: center; gap: 23px; }
.language-switch { display: flex; align-items: center; gap: 7px; font-size: 12px; letter-spacing: .1em; color: #b7bbb8; }
.language-switch button { border: 0; padding: 5px 2px; color: inherit; background: transparent; cursor: pointer; }
.language-switch button[aria-pressed="true"] { color: var(--gold-bright); }
.header-cta { padding-bottom: 7px; border-bottom: 1px solid var(--gold); text-decoration: none; font-size: 12px; letter-spacing: .13em; }
.menu-button { display: none; }

.hero { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: center; isolation: isolate; }
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media { z-index: -3; background: #111b20 url('assets/yachts/buraghi-yachts-hero.webp') 57% center / cover no-repeat; transform: scale(1.01); }
.hero-overlay { z-index: -2; background: linear-gradient(90deg, rgba(3, 8, 11, .82) 0%, rgba(3, 8, 11, .49) 44%, rgba(3, 8, 11, .11) 75%), linear-gradient(0deg, rgba(3, 8, 11, .78), transparent 40%); }
.hero-content { width: min(1080px, 90vw); margin-left: clamp(24px, 7vw, 124px); padding: 120px 0 130px; }
.eyebrow, .section-index { margin: 0; color: var(--gold-bright); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { margin: 28px 0 24px; font: 400 clamp(52px, 7.2vw, 124px)/.91 Georgia, 'Times New Roman', serif; letter-spacing: -.055em; text-shadow: 0 5px 30px rgba(0,0,0,.35); }
.hero h1 em { color: #f4dbaa; font-weight: 400; }
.hero h1 .hero-design-line { display: inline-block; font-size: .67em; letter-spacing: -.025em; white-space: nowrap; }
.mobile-break { display: none; }
.hero-lead { max-width: 635px; margin: 0; color: #e6e3db; font: 400 clamp(16px, 1.45vw, 22px)/1.65 Georgia, 'Times New Roman', serif; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 35px; margin-top: 42px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 24px; text-decoration: none; font-size: 12px; letter-spacing: .12em; }
.button-primary { color: var(--ink); background: var(--ivory); }
.button-primary:hover { background: var(--gold-bright); }
.text-link { display: inline-flex; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--gold); text-decoration: none; font-size: 12px; letter-spacing: .12em; }
.hero-footer { position: absolute; left: clamp(24px, 7vw, 124px); right: clamp(24px, 5vw, 88px); bottom: 28px; display: flex; justify-content: space-between; color: #c5c6c1; font-size: 11px; letter-spacing: .15em; }

.intro { max-width: var(--max); margin: 0 auto; padding: 115px clamp(22px, 5vw, 80px) 95px; }
.intro-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(45px, 8vw, 140px); margin-top: 45px; }
.intro h2, .section-heading h2, .bespoke h2, .path h2, .contact h2 { margin: 0; font: 400 clamp(45px, 5.5vw, 91px)/1.03 Georgia, 'Times New Roman', serif; letter-spacing: -.045em; }
.intro h2 em, .section-heading h2 em, .bespoke h2 em, .path h2 em, .contact h2 em { color: var(--gold); font-weight: 400; }
.intro-copy { padding-top: 10px; }
.intro-copy p { margin: 0 0 25px; color: #bec3c1; font-size: 16px; line-height: 1.85; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 85px; border-top: 1px solid var(--line); }
.principles article { min-height: 250px; padding: 28px 34px 28px 0; }
.principles article + article { padding-left: 34px; border-left: 1px solid var(--line); }
.principles h3 { margin: 36px 0 12px; font: 400 24px/1.2 Georgia, 'Times New Roman', serif; }
.principles p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.collection { padding: 105px clamp(22px, 5vw, 80px) 115px; background: var(--paper); color: var(--ink); }
.collection > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.collection .section-index { color: #806a45; }
.section-heading { display: grid; grid-template-columns: 1.35fr .65fr; gap: 60px; align-items: end; margin-bottom: 42px; padding-bottom: 30px; border-bottom: 1px solid var(--dark-line); }
.section-heading h2 { margin-top: 20px; font-size: clamp(45px, 5vw, 82px); }
.section-note { margin: 0 0 5px; color: #4b5355; font-size: 14px; line-height: 1.75; }
.model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.model-card { overflow: hidden; border: 1px solid rgba(7, 16, 22, .17); background: #ebe9e1; }
.model-image-link { display: block; overflow: hidden; aspect-ratio: 16/9; background: #0d1519; cursor: zoom-in; }
.model-image-link img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.model-image-link:hover img { transform: scale(1.025); }
.model-meta { min-height: 175px; display: flex; justify-content: space-between; gap: 25px; padding: 24px 26px 25px; }
.model-meta small { color: #806a45; font-size: 12px; letter-spacing: .11em; }
.model-meta h3 { margin: 8px 0 8px; font-size: clamp(19px, 1.55vw, 28px); font-weight: 500; letter-spacing: .07em; }
.model-meta p { max-width: 530px; margin: 0; color: #596164; font-size: 13px; line-height: 1.65; }
.model-enquire { flex: 0 0 auto; align-self: flex-end; padding-bottom: 7px; border-bottom: 1px solid #90764d; text-decoration: none; font-size: 12px; letter-spacing: .1em; }
.development-note { margin-top: 28px; color: #5a6162; font-size: 12px; line-height: 1.75; }
.rights-note { margin-top: 10px; color: #5a6162; font-size: 11px; line-height: 1.75; }

.bespoke { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr); min-height: 760px; background: var(--ink-soft); }
.bespoke-image { min-height: 650px; overflow: hidden; }
.bespoke-image img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; display: block; }
.bespoke-copy { display: flex; flex-direction: column; justify-content: center; padding: 85px clamp(32px, 5vw, 95px); }
.bespoke h2 { margin: 30px 0 28px; font-size: clamp(47px, 5vw, 82px); }
.bespoke-copy > p:not(.section-index) { color: #b7bdbb; font-size: 15px; line-height: 1.85; }
.bespoke ul { list-style: none; margin: 30px 0 35px; padding: 0; border-top: 1px solid var(--line); }
.bespoke li { padding: 15px 0; border-bottom: 1px solid var(--line); color: #d7d8d3; font-size: 12px; letter-spacing: .04em; }
.bespoke .text-link { align-self: flex-start; }

.path { max-width: var(--max); margin: 0 auto; padding: 115px clamp(22px, 5vw, 80px); }
.path-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 8vw, 130px); align-items: end; margin-top: 40px; }
.path-heading > p { margin: 0 0 8px; color: #b7bdbb; font-size: 15px; line-height: 1.85; }
.path-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 75px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.path-steps li { min-height: 245px; padding: 27px 25px 25px 0; }
.path-steps li + li { padding-left: 25px; border-left: 1px solid var(--line); }
.step-number { color: var(--gold); font-size: 10px; letter-spacing: .14em; }
.path-steps h3 { margin: 70px 0 13px; font: 400 21px/1.2 Georgia, 'Times New Roman', serif; }
.path-steps p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.contact { position: relative; isolation: isolate; overflow: hidden; min-height: 850px; padding: 120px clamp(22px, 7vw, 125px); }
.contact-backdrop { position: absolute; inset: 0; z-index: -2; background: url('assets/yachts/buraghi-yacht-profile.webp') 55% center / cover no-repeat; }
.contact::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4,10,14,.93), rgba(4,10,14,.82) 50%, rgba(4,10,14,.35)); }
.contact-content { max-width: 890px; }
.contact h2 { margin: 35px 0 28px; font-size: clamp(54px, 6.4vw, 105px); }
.contact-lead { max-width: 780px; color: #d0d2ce; font: 400 clamp(16px, 1.55vw, 21px)/1.75 Georgia, 'Times New Roman', serif; }
.contact-routes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 30px; margin-top: 45px; border-top: 1px solid rgba(255,255,255,.28); }
.contact-routes a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.28); text-decoration: none; }
.contact-routes a > span { display: flex; align-items: center; gap: 13px; }
.contact-routes small { color: var(--gold-bright); font-size: 9px; }
.contact-routes strong { font-size: 12px; letter-spacing: .09em; font-weight: 400; }
.contact-email { display: inline-flex; gap: 16px; margin-top: 38px; padding-bottom: 8px; border-bottom: 1px solid var(--gold); text-decoration: none; font: 400 clamp(19px, 2vw, 30px)/1.2 Georgia, 'Times New Roman', serif; }
.contact-email span { color: var(--gold-bright); }
.contact-legal-note { max-width: 770px; margin: 25px 0 0; color: #aeb3b1; font-size: 11px; line-height: 1.7; }

.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 45px; padding: 60px clamp(22px, 5vw, 80px); border-top: 1px solid var(--line); background: #050b0f; }
.footer-brand { display: flex; flex-direction: column; line-height: 1; }
.footer-brand span { font-size: 21px; letter-spacing: .38em; }
.footer-brand small { margin-top: 9px; padding-left: 30px; color: var(--gold); font-size: 8px; letter-spacing: .4em; }
.footer-links { display: flex; align-items: flex-start; gap: 25px; }
.footer-links a, .footer-links button { border: 0; padding: 0 0 6px; border-bottom: 1px solid #6f6758; color: #d2d3ce; background: transparent; text-decoration: none; cursor: pointer; font-size: 11px; letter-spacing: .11em; }
.footer-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 25px; border-top: 1px solid var(--line); color: #919997; font-size: 11px; letter-spacing: .05em; line-height: 1.6; }

dialog { color: var(--ivory); }
dialog::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(5px); }
.privacy-dialog { width: min(920px, 94vw); max-height: 90dvh; padding: 0; border: 1px solid #535d5c; background: #0c151a; }
.dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 17px 22px; border-bottom: 1px solid var(--line); background: #0c151a; }
.dialog-head p { margin: 0; color: var(--gold); font-size: 11px; letter-spacing: .14em; }
.dialog-head button { border: 0; color: #fff; background: transparent; cursor: pointer; font-size: 28px; }
.dialog-content { padding: 40px clamp(22px, 5vw, 65px) 55px; }
.dialog-content h2 { margin: 0; font: 400 clamp(38px, 5vw, 64px)/1 Georgia, serif; }
.legal-update { color: #8f9997; font-size: 11px; }
.dialog-content section { margin-top: 32px; }
.dialog-content h3 { margin: 0 0 8px; color: var(--gold-bright); font: 400 20px/1.3 Georgia, serif; }
.dialog-content p { color: #bdc3c0; font-size: 13px; line-height: 1.8; }
.lightbox { width: min(1500px, 97vw); max-width: 97vw; max-height: 95dvh; padding: 12px; border: 1px solid #6e695e; background: #050a0d; }
.lightbox-stage { height: min(82dvh, 950px); display: grid; place-items: center; overflow: auto; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox p { margin: 12px 5px 3px; color: #d8d4ca; font-size: 11px; letter-spacing: .14em; }
.lightbox-close { position: absolute; top: 19px; right: 20px; z-index: 2; width: 42px; height: 42px; border: 1px solid #81745f; color: #fff; background: rgba(4, 9, 12, .9); cursor: pointer; font-size: 25px; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 190px 1fr auto; gap: 18px; }
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 9px; }
  .intro-grid, .path-heading { gap: 50px; }
  .bespoke { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 72px; }
  .site-header { height: 72px; grid-template-columns: 1fr auto auto; padding-inline: 20px; background: rgba(5,13,18,.86); }
  .brand-name { font-size: 18px; }
  .brand-division { font-size: 7px; }
  .menu-button { order: 3; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.2); cursor: pointer; }
  .menu-button-lines, .menu-button-lines::before, .menu-button-lines::after { display: block; width: 17px; height: 1px; background: #fff; content: ''; }
  .menu-button-lines { position: relative; }
  .menu-button-lines::before { position: absolute; top: -5px; }
  .menu-button-lines::after { position: absolute; top: 5px; }
  .main-nav { position: fixed; inset: 72px 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 22px; background: rgba(5,13,18,.98); border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
  .header-actions { gap: 15px; }
  .header-cta { display: none; }
  .hero-content { margin-left: 6vw; }
  .intro-grid, .section-heading, .path-heading { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .principles article { min-height: 0; padding: 25px 0; }
  .principles article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .principles h3 { margin-top: 25px; }
  .model-grid { grid-template-columns: 1fr; }
  .bespoke { grid-template-columns: 1fr; }
  .bespoke-image { min-height: 470px; }
  .path-steps { grid-template-columns: repeat(2, 1fr); }
  .path-steps li:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .path-steps li:nth-child(4) { border-top: 1px solid var(--line); }
  .contact-routes { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { grid-template-columns: 1fr auto auto; gap: 12px; }
  .brand-name { font-size: 15px; letter-spacing: .3em; }
  .brand-division { padding-left: 18px; letter-spacing: .55em; }
  .language-switch { gap: 4px; }
  .hero { min-height: 790px; }
  .hero-media { background-position: 61% center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(3,8,11,.86), rgba(3,8,11,.32)), linear-gradient(0deg, rgba(3,8,11,.9), transparent 55%); }
  .hero-content { width: auto; margin: 0; padding: 105px 20px 130px; }
  .hero h1 { font-size: clamp(44px, 13.2vw, 66px); }
  .hero h1 .hero-design-line { font-size: .78em; white-space: normal; }
  .mobile-break { display: inline; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-footer { left: 20px; right: 20px; font-size: 8px; }
  .hero-footer > span:last-child { display: none; }
  .intro, .path { padding-inline: 20px; }
  .intro h2, .section-heading h2, .bespoke h2, .path h2 { font-size: clamp(41px, 12vw, 58px); }
  .intro-grid { margin-top: 33px; }
  .principles { margin-top: 50px; }
  .collection { padding: 75px 20px; }
  .section-heading { gap: 25px; }
  .model-meta { min-height: 0; flex-direction: column; padding: 19px; }
  .model-enquire { align-self: flex-start; margin-top: 10px; }
  .bespoke-image { min-height: 350px; }
  .bespoke-copy { padding: 65px 20px 75px; }
  .path-steps { grid-template-columns: 1fr; }
  .path-steps li, .path-steps li + li, .path-steps li:nth-child(3) { min-height: 0; padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .path-steps h3 { margin-top: 25px; }
  .contact { min-height: 900px; padding: 90px 20px; }
  .contact h2 { font-size: clamp(48px, 14vw, 67px); }
  .contact::after { background: rgba(4,10,14,.78); }
  .contact-routes a > span { align-items: flex-start; }
  .site-footer { grid-template-columns: 1fr; padding: 48px 20px; }
  .footer-links { flex-wrap: wrap; }
  .footer-legal { grid-column: 1; flex-direction: column; }
  .lightbox-stage { height: min(72dvh, 720px); }
}

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