/* Grand Reve Realty — Rockefeller Tower US landing page */
:root {
  --navy: #1F2A44;
  --navy-deep: #131a2c;
  --navy-line: #2c3754;
  --gold: #C9A14A;      /* CTA background; navy text on it passes AA */
  --gold-light: #e2c47e;
  --gold-dark: #8a6a1c; /* gold used as text on light backgrounds */
  --ink: #1d2230;
  --muted: #545b6b;
  --line: #e6e1d7;
  --paper: #ffffff;
  --cream: #f7f4ee;
  --radius: 12px;
  --max: 1160px;
  --shadow: 0 10px 30px rgba(19,26,44,.08);
  --shadow-lg: 0 24px 60px rgba(19,26,44,.18);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* A2P 10DLC: blocks marked .a2p-only help carrier review (business identity, nav to legal pages).
   After the campaign is approved, uncomment the next line to hide them all. */
/* .a2p-only { display: none !important; } */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 var(--sans); color: var(--ink); background: var(--paper); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
button { font: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.18; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.6rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
section { padding: 64px 0; }
.alt { background: var(--cream); }
.dark { background: var(--navy); color: #e9ecf3; }
.dark h2, .dark h3 { color: #fff; }
.kicker { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 700; color: var(--gold-dark); margin-bottom: 14px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.dark .kicker, .hero .kicker { color: var(--gold); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 700px; }
.dark .lead { color: #c6ccd9; }
.small { font-size: .86rem; color: var(--muted); }
.dark .small { color: #aab2c4; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.center .kicker::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.head { margin-bottom: 36px; }

/* Buttons */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 30px;
  background: var(--gold); color: var(--navy-deep);
  font: 700 1.05rem/1.2 var(--sans); text-decoration: none;
  border: 0; border-radius: var(--radius); cursor: pointer;
  box-shadow: 0 8px 20px rgba(201,161,74,.28);
  transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.btn::after { content: "→"; transition: transform .2s var(--ease); }
.btn:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(201,161,74,.38); }
.btn:hover::after { transform: translateX(4px); }
.btn::before { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: shine 4.5s 2s infinite; }
.btn.plain::after { content: none; }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); box-shadow: none; }
.btn-ghost::before { content: none; }
.btn-ghost:hover { background: var(--cream); box-shadow: none; }
.cta-row { margin-top: 32px; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* Top bar */
.topbar { background: var(--navy-deep); position: relative; z-index: 5; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.topbar .logo img { width: 150px; }
.topnav { display: none; gap: 22px; font-size: .88rem; }
.topnav a { color: #c6ccd9; text-decoration: none; }
.topnav a:hover { color: #fff; }
.badge { color: #e9ecf3; font-size: .78rem; text-align: right; line-height: 1.3; }
.badge strong { color: var(--gold); display: block; font-size: .92rem; }

/* Hero */
.hero { position: relative; color: #fff; padding: 44px 0 56px; overflow: hidden; background: var(--navy-deep); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% center; animation: kenburns 22s var(--ease) both; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,21,36,.55), rgba(15,21,36,.92) 68%); }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 36px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 3.6rem); }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero .sub { font-size: 1.14rem; color: #dfe3ec; max-width: 580px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; padding: 0; list-style: none; }
.chips li { border: 1px solid rgba(226,196,126,.45); background: rgba(19,26,44,.45); backdrop-filter: blur(6px); border-radius: 999px; padding: 6px 14px; font-size: .86rem; }
.chips b { color: var(--gold-light); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 10px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23131a2c' stroke-width='2.4'/%3E%3C/svg%3E") center/14px no-repeat;
}
.hero .copy > * { animation: fadeUp .8s var(--ease) both; }
.hero .copy > :nth-child(2) { animation-delay: .08s; }
.hero .copy > :nth-child(3) { animation-delay: .16s; }
.hero .copy > :nth-child(4) { animation-delay: .24s; }
.hero .copy > :nth-child(5) { animation-delay: .32s; }
.hero .form-card { animation: fadeUp .9s .25s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }

/* Form card */
.form-card { background: #fff; color: var(--ink); border-radius: 16px; padding: 26px 22px; box-shadow: var(--shadow-lg); scroll-margin-top: 16px; border-top: 4px solid var(--gold); }
.form-card h2 { font-size: 1.55rem; margin-bottom: 4px; }
.form-card .small { margin: 0 0 14px; }
.form-card iframe { width: 100%; border: 0; display: block; }
.form-note { font-size: .86rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form-legal { font-size: .8rem; text-align: center; margin: 6px 0 0; color: var(--muted); }
.a2p-box { margin-top: 14px; padding: 12px 14px; background: var(--cream); border-radius: 8px; font-size: .74rem; line-height: 1.5; color: var(--muted); }
.a2p-box b { color: var(--ink); }

.form-preview label { display: block; font-size: .85rem; font-weight: 600; margin: 12px 0 4px; }
.form-preview input {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 16px;
  border: 1px solid #cfd3dc; border-radius: 8px; background: #fff; color: var(--muted);
}
.form-preview .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-preview .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .74rem; line-height: 1.45; color: var(--muted); font-weight: 400; margin-top: 14px; }
.form-preview .consent input { width: 18px; min-height: 18px; margin-top: 2px; flex: none; }
.form-preview .btn { width: 100%; margin-top: 18px; }
.preview-flag { font-size: .75rem; background: #fff3c4; color: #6b4e00; border-radius: 6px; padding: 6px 10px; margin-bottom: 8px; }

/* Trust bar */
.trust { background: var(--cream); border-bottom: 1px solid var(--line); padding: 22px 0; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.trust li { display: flex; gap: 12px; align-items: center; font-size: .9rem; line-height: 1.35; }
.trust svg { flex: none; width: 30px; height: 30px; color: var(--gold-dark); }
.trust b { display: block; color: var(--navy); }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .stagger.in > * { opacity: 1; transform: none; }
.js .stagger.in > :nth-child(2) { transition-delay: .1s; }
.js .stagger.in > :nth-child(3) { transition-delay: .2s; }
.js .stagger.in > :nth-child(4) { transition-delay: .3s; }
.js .stagger.in > :nth-child(5) { transition-delay: .4s; }
.js .stagger.in > :nth-child(6) { transition-delay: .5s; }
.js .stagger.in > :nth-child(n+7) { transition-delay: .6s; }

/* Cards */
.grid3 { display: grid; gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .media { overflow: hidden; aspect-ratio: 16/10; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .media img { transform: scale(1.06); }
.card .body { padding: 20px 22px 8px; }
.card .tag { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--gold-dark); margin-bottom: 4px; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 18px; margin: 8px 0 22px; }
.fact { border-top: 2px solid var(--gold); padding-top: 12px; }
.fact b { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 4.4vw, 2.6rem); color: #fff; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fact span { font-size: .86rem; color: #c6ccd9; }

/* Gallery */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.gallery button { scroll-snap-align: start; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery button:hover img { transform: scale(1.06); }
.gallery span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; color: #fff; font-size: .88rem; font-weight: 600; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.gallery-hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }

/* Office types (tabs) */
.types { display: grid; gap: 22px; }
.type-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.type-tabs button {
  flex: none; text-align: left; cursor: pointer; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; padding: 12px 16px; min-height: 44px; transition: all .25s var(--ease);
}
.type-tabs button b { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--navy); }
.type-tabs button span { font-size: .8rem; color: var(--muted); }
.type-tabs button:hover { border-color: var(--gold); }
.type-tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); box-shadow: var(--shadow); }
.type-tabs button[aria-selected="true"] b { color: #fff; }
.type-tabs button[aria-selected="true"] span { color: var(--gold-light); }
.type-panel { display: grid; gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.type-panel[hidden] { display: none; }
.type-panel.in { animation: fadeUp .5s var(--ease) both; }
.plan-btn { padding: 0; border: 0; background: var(--cream); border-radius: 10px; cursor: zoom-in; overflow: hidden; position: relative; }
.plan-btn img { width: 100%; transition: transform .6s var(--ease); }
.plan-btn:hover img { transform: scale(1.04); }
.plan-btn::after { content: "Tap to enlarge"; position: absolute; right: 10px; bottom: 10px; background: rgba(19,26,44,.85); color: #fff; font-size: .72rem; padding: 4px 10px; border-radius: 999px; }
.spec { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 0; }
.spec li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec li span { color: var(--muted); }
.spec li b { text-align: right; }

/* Amenities */
.levels { display: grid; gap: 18px; }
.level { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; }
.level:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.level .media { aspect-ratio: 16/9; overflow: hidden; }
.level .media img { width: 100%; height: 100%; object-fit: cover; }
.level .body { padding: 18px 20px 20px; }
.level .num { font-family: var(--serif); color: var(--gold-dark); font-size: .95rem; font-weight: 600; }
.level p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Location */
.dist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dist li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, transform .2s var(--ease); }
.dist li:hover { border-color: var(--gold); transform: translateX(4px); }
.dist .bar { grid-column: 1 / -1; height: 4px; background: var(--cream); border-radius: 4px; overflow: hidden; }
.dist .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 4px; transition: width 1.2s var(--ease); }
.dist .min { font-weight: 700; color: var(--navy); white-space: nowrap; }
.loc-img { border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; }

/* Payment plan */
.plan-bar { display: flex; height: 64px; border-radius: 12px; overflow: hidden; margin: 8px 0 12px; box-shadow: var(--shadow); }
.plan-bar div { display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; font-size: .95rem; line-height: 1.2; padding: 0 8px; }
.plan-bar .build { background: var(--navy); color: #fff; flex: 1; }
.plan-bar .hand { background: var(--gold); color: var(--navy-deep); flex: 1; }
.plan-bar small { display: block; font-weight: 400; font-size: .74rem; opacity: .85; }
.timeline { list-style: none; padding: 0; margin: 28px 0 0; position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 18px 48px; }
.timeline li::before { content: ""; position: absolute; left: 8px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); }
.timeline li.gold::before { border-color: var(--gold); background: var(--gold); }
.timeline .when { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.timeline .what { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.timeline .what b { color: var(--navy); }

.calc { background: var(--navy); color: #e9ecf3; border-radius: 16px; padding: 24px 20px; box-shadow: var(--shadow-lg); }
.calc h3 { color: #fff; }
.calc .presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.calc .presets button { cursor: pointer; border: 1px solid var(--navy-line); background: transparent; color: #e9ecf3; border-radius: 999px; padding: 8px 16px; min-height: 40px; transition: all .2s; }
.calc .presets button[aria-pressed="true"], .calc .presets button:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); font-weight: 700; }
.calc input[type=range] { width: 100%; accent-color: var(--gold); min-height: 30px; }
.calc .amount { font-family: var(--serif); font-size: 2.2rem; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .94rem; font-variant-numeric: tabular-nums; }
.calc td { padding: 9px 0; border-bottom: 1px solid var(--navy-line); }
.calc td:last-child { text-align: right; font-weight: 700; color: #fff; white-space: nowrap; }
.calc tr.sub td { color: #aab2c4; font-size: .86rem; }
.calc tr.sub td:last-child { color: #c6ccd9; font-weight: 600; }
.calc tr.total td { border-bottom: 0; border-top: 2px solid var(--gold); font-weight: 700; color: var(--gold-light); padding-top: 12px; }
.calc .small { margin: 14px 0 0; color: #b8c0d0; }

/* Plain English glossary */
.terms { display: grid; gap: 12px; margin-top: 8px; }
.term { display: grid; gap: 4px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; }
.term b { font-family: var(--serif); color: var(--navy); font-size: 1.05rem; }
.term span { color: var(--muted); font-size: .95rem; }
.term em { font-style: normal; color: var(--gold-dark); font-weight: 700; }

/* Tiles */
.tiles { display: grid; gap: 18px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--cream); color: var(--gold-dark); display: grid; place-items: center; margin-bottom: 14px; }
.tile .ico svg { width: 24px; height: 24px; }
.tile p { margin: 0; color: var(--muted); }

/* Lists and steps */
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(-45deg); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 22px; }
.steps li { counter-increment: s; position: relative; padding-left: 60px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold-light); font: 700 1.1rem/44px var(--serif); text-align: center; box-shadow: 0 0 0 6px var(--cream); }
.steps b { display: block; color: var(--navy); font-size: 1.05rem; }
.steps span { color: var(--muted); }
.rounded { border-radius: 16px; box-shadow: var(--shadow-lg); }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.person { text-align: center; }
.person img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: center 20%; margin: 0 auto 12px; border: 3px solid var(--gold); transition: transform .35s var(--ease); }
.person:hover img { transform: scale(1.06); }
.person b { display: block; color: var(--navy); }
.person span { font-size: .85rem; color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; color: var(--navy); position: relative; min-height: 44px; transition: color .2s; }
.faq summary:hover { color: var(--gold-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--gold-dark); border-bottom: 2px solid var(--gold-dark); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details p { margin: 0 0 20px; color: var(--muted); }
.faq details[open] p { animation: fadeUp .4s var(--ease) both; }

/* Contact block (A2P) */
.contact-grid { display: grid; gap: 16px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-card p { margin: 0; color: var(--muted); }

/* Final CTA */
.final { background: var(--navy) url("../img/sky-pool-1280.webp") center/cover; position: relative; }
.final::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,21,36,.75), rgba(15,21,36,.92)); }
.final .wrap { position: relative; }

/* Footer */
footer { background: var(--navy-deep); color: #aab2c4; font-size: .9rem; padding: 56px 0 120px; }
footer a { color: #e9ecf3; text-decoration: none; }
footer a:hover { color: var(--gold-light); text-decoration: underline; }
.foot-grid { display: grid; gap: 32px; }
.foot-grid h4 { margin: 0 0 14px; font: 700 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid p { margin: 0 0 8px; }
.foot-brand img { width: 150px; margin-bottom: 14px; }
.foot-bottom { border-top: 1px solid var(--navy-line); margin-top: 40px; padding-top: 22px; display: grid; gap: 12px; font-size: .78rem; line-height: 1.6; }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(19,26,44,.96); backdrop-filter: blur(8px); transform: translateY(110%); transition: transform .3s var(--ease); }
.sticky-cta.show { transform: none; }
.sticky-cta .btn { width: 100%; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(10,14,24,.9); }
.lightbox[open] { animation: zoomIn .3s var(--ease) both; }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: 10px; background: #fff; }
.lightbox p { color: #e9ecf3; text-align: center; margin: 10px 0 0; font-size: .9rem; }
.lightbox .close { position: fixed; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; }
@keyframes zoomIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* Legal + contact pages */
.legal { max-width: 780px; padding: 48px 16px 72px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal li { margin-bottom: .4em; }
.page-hero { background: var(--navy); color: #fff; padding: 48px 0; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 2.8rem); margin: 0; }

/* Thank-you page */
.ty-hero { background: var(--navy); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.ty-hero .wrap { position: relative; }
.ty-hero h1 { color: #fff; font-size: clamp(1.9rem, 5vw, 2.8rem); animation: fadeUp .8s var(--ease) both; }
.ty-hero p { color: #dfe3ec; font-size: 1.1rem; max-width: 640px; animation: fadeUp .8s .1s var(--ease) both; }
.ty-check { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; margin-bottom: 18px; animation: pop .6s var(--ease) both; }
.ty-check svg { width: 30px; height: 30px; }
.ty-check path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .4s var(--ease) forwards; }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ty-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; animation: fadeUp .8s .2s var(--ease) both; }
.ty-hero .btn-ghost { color: #fff; border-color: #fff; }
.ty-hero .btn-ghost:hover { background: rgba(255,255,255,.08); }
.calendar-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-top: 8px; min-height: 200px; box-shadow: var(--shadow); }
.calendar-box iframe { width: 100%; border: 0; min-height: 640px; }

@media (min-width: 720px) {
  section { padding: 92px 0; }
  .trust ul { grid-template-columns: repeat(4, 1fr); }
  .grid3 { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-auto-columns: 40%; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .terms { grid-template-columns: 1fr 1fr; }
  .levels { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .type-panel { grid-template-columns: 1.15fr 1fr; padding: 26px; align-items: center; }
  .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .foot-bottom { grid-template-columns: 1fr auto; align-items: start; }
  footer { padding-bottom: 48px; }
  .sticky-cta { display: none; }
}
@media (min-width: 980px) {
  .topnav { display: flex; }
  .hero { padding: 64px 0 84px; }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: start; gap: 56px; }
  .hero .copy { padding-top: 24px; }
  .hero::after { background: linear-gradient(90deg, rgba(15,21,36,.9) 0%, rgba(15,21,36,.68) 48%, rgba(15,21,36,.35) 100%); }
  .hero-bg { object-position: center 30%; }
  .facts { grid-template-columns: repeat(6, 1fr); }
  .gallery { grid-auto-columns: 30%; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .split.top { align-items: start; }
  .steps.row { grid-template-columns: repeat(4, 1fr); }
  .steps.row li { padding: 64px 0 0; }
  .terms { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .stagger > * { opacity: 1; transform: none; }
  .ty-check path { stroke-dashoffset: 0; }
}
