*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(47, 98, 255, 0.14), transparent 55%),
    radial-gradient(700px 380px at -10% 0%, rgba(228, 196, 150, 0.45), transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-stuck {
  background: rgba(243, 239, 230, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; width: min(var(--max), calc(100% - 40px)); }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 18px;
}
.logo img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}
.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--ink); background: rgba(20, 24, 32, 0.05); }
.nav-cta {
  background: var(--ink) !important;
  color: var(--white) !important;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 0;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: absolute;
  left: 13px;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.hero { padding: 28px 0 20px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-deep);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(47, 98, 255, 0.6);
  animation: pulse 2.4s ease-out infinite;
}
h1, h2, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.03em; }
h1 { font-size: clamp(48px, 6vw, 84px); line-height: 0.94; }
h1 em, h2 em { font-style: italic; color: var(--blue-deep); }
.lede { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.hero-visual { position: relative; }
.hero-visual img {
  width: 100%;
  border-radius: 36px;
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}
.float-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(255, 252, 247, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 14px 16px;
  min-width: 140px;
  box-shadow: var(--shadow);
}
.float-card span { display: block; color: var(--muted); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.float-card strong { font-family: var(--serif); font-size: 32px; font-weight: 400; }

.marquee {
  margin: 34px 0 10px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: ticker 32s linear infinite;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.marquee b { color: var(--ink); font-weight: 600; }

.section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2, .page-hero h1 { font-size: clamp(40px, 5vw, 68px); line-height: 0.98; }
.section-head p, .page-hero p { margin-top: 14px; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.split img, .frame img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.kicker { color: var(--blue-deep); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }
.split h2 { font-size: clamp(36px, 4vw, 58px); line-height: 1; }
.split p + p { margin-top: 14px; }
.caption { margin-top: 12px; color: var(--muted); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step, .spec, .card, .faq-item, .legal-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.step, .spec, .card { padding: 24px; }
.step span, .index-no {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--blue);
}
.step h3, .spec h3, .card h3 { margin: 12px 0 8px; font-size: 22px; font-family: var(--serif); font-weight: 400; }
.step p, .spec p, .card p { color: var(--muted); }

.spec-grid, .card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.spec strong { display: block; margin-bottom: 8px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-deep); }

.band {
  background: var(--dark);
  color: var(--white);
  border-radius: 36px;
  padding: 28px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}
.band img { border-radius: 24px; }
.band p { color: rgba(255, 252, 247, 0.74); margin-top: 12px; }
.band h2 { font-size: clamp(36px, 4vw, 60px); line-height: 0.98; }

.timeline { display: grid; gap: 0; }
.time {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.time strong { font-family: var(--serif); font-size: 28px; font-weight: 400; }
.time p { color: var(--muted); }

.page-hero { padding: 36px 0 10px; }
.crumbs { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.crumbs a { color: var(--ink); }

.prose { max-width: 740px; }
.prose p, .prose li { color: #2b313b; }
.prose p + p, .prose ul, .prose h2, .prose h3 { margin-top: 18px; }
.prose h2 { font-size: 36px; line-height: 1.05; }
.prose h3 { font-size: 26px; font-family: var(--serif); font-weight: 400; }
.prose ul { padding-left: 18px; }
.prose a { color: var(--blue-deep); }

.journal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.journal-card {
  display: block;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  min-height: 240px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.journal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.journal-card span { color: var(--muted); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.journal-card h2 { margin: 16px 0; font-size: 36px; line-height: 1.02; }
.journal-card p { color: var(--muted); }

.faq-list { display: grid; gap: 12px; }
.faq-item { overflow: hidden; }
.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 20px;
  font-family: var(--serif);
}
.faq-item button span:last-child { color: var(--blue); }
.faq-item .answer { display: none; padding: 0 22px 20px; color: var(--muted); }
.faq-item.is-open .answer { display: block; }

.contact-grid, .legal-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; }
.showing-form {
  margin-top: 28px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
}
.showing-form h2 { font-size: 40px; line-height: 1; margin-bottom: 8px; }
.showing-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.legal-card, form { padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 28px; }
.legal-card a, .fine a { color: var(--blue-deep); }
label { display: block; font-size: 14px; margin: 14px 0 6px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 98, 255, 0.15); }
.form-note { margin-top: 12px; color: var(--blue-deep); }
.fine { color: var(--muted); font-size: 15px; }

.site-footer { padding: 28px 0 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.site-footer h2 { font-family: var(--sans); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer a, .site-footer p { color: var(--muted); text-decoration: none; }
.site-footer a { display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--ink); }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  border-radius: 22px;
  padding: 16px 16px 16px 20px;
  box-shadow: var(--shadow);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.cookie-bar.is-in { transform: none; opacity: 1; }
.cookie-bar p { margin: 0; color: rgba(255, 252, 247, 0.8); max-width: 68ch; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-bar .btn-ghost { color: var(--white); border-color: rgba(255, 252, 247, 0.25); }

.reveal { opacity: 0; transform: translateY(22px); animation: none; }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s ease; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(47, 98, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 98, 255, 0); }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 980px) {
  .hero-grid, .split, .band, .contact-grid, .legal-grid, .journal-grid, .footer-grid { grid-template-columns: 1fr; }
  .steps, .spec-grid, .card-grid, .card-grid.three { grid-template-columns: 1fr 1fr; }
  .time { grid-template-columns: 1fr; gap: 6px; }
  .nav-toggle { display: inline-block; }
  .main-nav {
    position: fixed;
    inset: var(--header) 16px auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 12px;
    box-shadow: var(--shadow);
    display: none;
  }
  body.nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .cookie-bar { flex-direction: column; align-items: stretch; }
}

@media (max-width: 640px) {
  .container, .header-inner { width: min(var(--max), calc(100% - 28px)); }
  .steps, .spec-grid, .card-grid, .card-grid.three, .showing-fields { grid-template-columns: 1fr; }
  h1 { font-size: 46px; }
  .footer-base { flex-direction: column; }
  .hero-visual img { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
