/* Root */
:root {
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --text: #111827;
  --muted: #4B5563;
  --accent: #2F5BEA;
  --accent-ink: #FFFFFF;
  --plate-bg: #111827;
  --plate-ink: #FFFFFF;
  --line: #DDE3EE;
  --font-head: Optima, Candara, 'Segoe UI', 'Noto Sans', sans-serif;
  --font-body: Georgia, Cambria, 'Times New Roman', serif;
  --radius: 20px;
  --radius-btn: 12px;
  --pad-side: clamp(16px, 4vw, 40px);
  --sec-gap: clamp(64px, 9vw, 128px);
  --shadow-soft: 0 1px 2px rgb(0 0 0 / .06), 0 12px 32px rgb(0 0 0 / .08);
  --f-head-weight: 600;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 46% at 12% 14%, rgb(47 91 234 / .18), transparent 70%),
    radial-gradient(34% 40% at 88% 30%, rgb(47 91 234 / .15), transparent 70%),
    radial-gradient(42% 48% at 70% 86%, rgb(47 91 234 / .13), transparent 72%),
    radial-gradient(30% 36% at 20% 80%, rgb(17 24 39 / .12), transparent 70%);
  filter: blur(4px);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: var(--f-head-weight);
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); }
h3 { font-size: clamp(1.2rem, 1vw + 0.9rem, 1.5rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #1d3fbd; }

ul { padding-left: 1.2em; }

address { font-style: normal; }

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

/* Layout */
.l-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--pad-side);
}

.l-block {
  padding-block: calc(var(--sec-gap) / 2);
}

.l-narrow { max-width: 760px; }

.u-copy { max-width: 68ch; color: var(--muted); }

.u-ink {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 3.2vw + 1rem, 3.4rem);
  color: var(--plate-ink);
}

.u-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--plate-bg);
  color: var(--plate-ink);
  padding: 12px 20px;
  z-index: 100;
}

.u-skip:focus { left: 12px; top: 12px; color: var(--plate-ink); }

.u-vhide {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.u-mat {
  background: var(--surface);
  padding: clamp(14px, 2.4vw, 26px);
  box-shadow: var(--shadow-soft);
}

.is-hidden { display: none !important; }

/* Header */
.c-topbar {
  background: rgb(255 255 255 / .92);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}

.c-topbar-strip {
  border-bottom: 1px solid var(--line);
  padding-block: 6px;
}

.c-topbar-line {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.c-topbar-line ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.c-topbar-line span { color: var(--muted); }

.c-topbar-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

.c-brand {
  font-family: var(--font-head);
  font-weight: 650;
  font-size: clamp(0.95rem, 1vw + 0.55rem, 1.15rem);
  color: var(--text);
  text-decoration: none;
  text-align: center;
  letter-spacing: -0.01em;
}

/* Nav */
.c-menu .l-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(12px, 1.8vw, 26px);
}

.c-menu-b .l-menu-list { justify-content: flex-end; }

.l-menu-item a {
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  position: relative;
  padding-block: 6px;
  transition: color .25s ease;
}

.l-menu-item a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transition: right .3s ease;
}

.l-menu-item a:hover,
.l-menu-item a:focus-visible { color: var(--accent); }

.l-menu-item a:hover::after,
.l-menu-item a:focus-visible::after,
.l-menu-item a[aria-current="page"]::after { right: 0; }

.l-menu-item a[aria-current="page"] { color: var(--accent); }

.l-menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  width: 48px; height: 48px;
  cursor: pointer;
  padding: 12px 10px;
}

.l-menu-toggle-bar {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: transform .3s ease, opacity .3s ease;
}

.c-menu-fold[hidden] { display: none !important; }

.c-menu-fold {
  position: fixed;
  inset: 0;
  background: var(--surface);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad-side);
}

.c-menu-fold-nav .l-menu-list {
  flex-direction: column;
  gap: 20px;
  text-align: center;
  max-width: 420px;
}

.c-menu-fold-nav .l-menu-item {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease;
}

.c-menu-fold.is-open .l-menu-item { opacity: 1; transform: none; }

.c-menu-fold.is-open .l-menu-item:nth-child(1) { transition-delay: .05s; }
.c-menu-fold.is-open .l-menu-item:nth-child(2) { transition-delay: .1s; }
.c-menu-fold.is-open .l-menu-item:nth-child(3) { transition-delay: .15s; }
.c-menu-fold.is-open .l-menu-item:nth-child(4) { transition-delay: .2s; }
.c-menu-fold.is-open .l-menu-item:nth-child(5) { transition-delay: .25s; }
.c-menu-fold.is-open .l-menu-item:nth-child(6) { transition-delay: .3s; }
.c-menu-fold.is-open .l-menu-item:nth-child(7) { transition-delay: .35s; }
.c-menu-fold.is-open .l-menu-item:nth-child(8) { transition-delay: .4s; }

/* Hero */
.l-hero {
  padding-top: clamp(40px, 6vw, 80px);
}

.l-hero-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.l-hero-title {
  max-width: 14ch;
  text-wrap: balance;
  font-size: clamp(40px, 5vw, 64px);
}

.l-hero-title .l-hero-line {
  display: inline-block;
}

html.has-js .l-hero-title .l-hero-line {
  opacity: 0;
  transform: translateY(8px);
  animation: hero-rise .6s ease forwards;
}

html.has-js .l-hero-title .l-hero-line:nth-child(1) { animation-delay: .1s; }
html.has-js .l-hero-title .l-hero-line:nth-child(2) { animation-delay: .25s; }
html.has-js .l-hero-title .l-hero-line:nth-child(3) { animation-delay: .4s; }

@keyframes hero-rise {
  to { opacity: 1; transform: none; }
}

.l-hero-sub { color: var(--muted); max-width: 42ch; line-height: 1.6; }

.l-hero-visual img {
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

/* Buttons */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--radius-btn);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, transform .1s ease;
}

.l-btn-solid, .l-inquiry-send {
  background: var(--accent);
  color: var(--accent-ink);
}

.l-btn-solid:hover, .l-inquiry-send:hover {
  background: #1d3fbd;
  color: var(--accent-ink);
}

.l-btn-solid:active, .l-inquiry-send:active,
.l-btn-ghost:active {
  transform: translateY(1px);
}

.l-btn-ghost {
  background: transparent;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding-inline: 8px;
}

.l-btn-ghost:hover { color: #1d3fbd; background: rgb(47 91 234 / .06); }

.c-btn:focus-visible, .l-btn-ghost:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Zigzag */
.l-zigzag {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  margin-bottom: 96px;
}

.l-zigzag:last-child { margin-bottom: 0; }

.l-zigzag-alt .l-zigzag-media { order: 2; }

.l-zigzag-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.l-zigzag-media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.l-zigzag-media.u-mat { padding: clamp(14px, 2vw, 24px); }

/* Tabs */
.c-tabs { margin-top: 24px; }

.l-tabs-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.l-tab {
  font-family: var(--font-head);
  font-size: 15px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, transform .1s ease;
}

.l-tab:hover { color: var(--accent); border-color: var(--accent); }

.l-tab:active { transform: translateY(1px); }

.l-tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.l-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.l-tab-panel { margin-top: 8px; }

.l-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.c-panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}

.c-panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 2px 4px rgb(0 0 0 / .07), 0 18px 44px rgb(0 0 0 / .12);
}

/* Frames */
.l-frames {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.l-frame {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.l-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.l-frame-wide img { aspect-ratio: 16 / 9; }
.l-frame-wide { grid-column: 1 / -1; }
.l-frame.u-mat { padding: clamp(14px, 2vw, 24px); }

/* FAQ */
.c-folds { margin-top: 24px; }

.l-fold {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 4px 20px;
  margin-bottom: 12px;
}

.l-fold summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 16px 0;
  list-style-position: outside;
}

.l-fold[open] summary { color: var(--accent); }

.l-fold p { color: var(--muted); padding-bottom: 16px; }

/* Form */
.c-inquiry {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 3.5vw, 40px);
}

.c-inquiry form { display: grid; gap: 18px; }

.l-inquiry-row { display: grid; gap: 6px; }

.l-inquiry-tag {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.l-inquiry-box {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 12px 14px;
  min-height: 48px;
}

.l-inquiry-box:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
}

.l-inquiry-area { min-height: 120px; resize: vertical; }

.l-inquiry-box.is-invalid { border-color: #b42318; }

.l-inquiry-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--muted);
}

.l-inquiry-consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }

.l-inquiry-hint { font-size: 14px; color: var(--muted); margin: 0; }

.l-inquiry-send { justify-self: start; }

.c-inquiry.is-busy .l-inquiry-send {
  opacity: .7;
  pointer-events: none;
}

/* Contact plate */
.c-slab {
  background: var(--plate-bg);
  color: var(--plate-ink);
  padding-block: clamp(48px, 6vw, 72px);
}

.c-slab a { color: #a8c0ff; }

.l-slab-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.l-slab-grid h2 { margin-top: 0; }

.l-slab-contacts ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 10px;
}

.l-slab-contacts span { color: rgb(255 255 255 / .72); margin-right: 8px; }

/* Floating */
.c-call {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 30;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 10px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: background-color .25s ease, transform .1s ease;
}

.c-call:hover { background: #1d3fbd; color: var(--accent-ink); }

.c-call:active { transform: translateY(1px); }

.c-call:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Owner note */
.c-note {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 35;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 16px 52px 16px 20px;
  max-width: min(680px, calc(100vw - 32px));
  font-size: 15px;
  color: var(--text);
}

.c-note p { margin: 0; }

.c-note-x {
  position: absolute;
  top: 10px; right: 10px;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  padding: 6px;
}

.c-note-x:hover { color: var(--accent); }

.c-note-x:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }

/* Footer */
.c-bottom {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 5vw, 64px) 24px;
  margin-top: var(--sec-gap);
}

.l-bottom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.c-bottom-head {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 12px;
}

.l-bottom-links {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 8px;
  font-size: 15px;
}

.l-bottom-links a { color: var(--muted); text-decoration: none; }
.l-bottom-links a:hover { color: var(--accent); text-decoration: underline; }

.l-bottom-col address,
.l-bottom-col ul { font-size: 15px; color: var(--muted); }
.l-bottom-col address p { margin: 0 0 8px; }

.c-bottom-copy {
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 32px;
  margin-bottom: 0;
}

/* Inner pages */
.l-page-head {
  padding-top: clamp(40px, 6vw, 80px);
}

.l-page-head h1 { margin-bottom: 20px; }

.u-copy p, .u-copy li { max-width: 68ch; }

/* Prose (policies) */
.u-copy h2 { font-size: clamp(1.5rem, 1.6vw + 0.9rem, 2.2rem); margin-top: 2.2em; }
.u-copy h3 { margin-top: 1.8em; }
.u-copy ol, .u-copy ul { color: var(--muted); }
.u-copy table {
  border-collapse: collapse;
  width: 100%;
  max-width: 68ch;
  font-size: 15px;
}

.u-copy th, .u-copy td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.u-copy th { font-family: var(--font-head); background: var(--surface); }

/* Reveal */
html.has-js .c-fade:not(article) {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}

html.has-js .c-fade.is-shown {
  opacity: 1;
  transform: none;
}

/* Breakpoints */
@media (max-width: 1280px) {
  .l-cards { gap: 20px; }
  .c-brand { max-width: 240px; }
}

@media (max-width: 1024px) {
  .l-cards { grid-template-columns: repeat(2, 1fr); }
  .l-bottom-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .c-menu-a, .c-menu-b, .l-menu-toggle { display: none; }
  .l-menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; }
  .c-topbar-main { grid-template-columns: auto 1fr auto; }
  .c-topbar-line { text-align: left; }
  .c-topbar-line ul { justify-content: flex-start; }
  .c-brand { grid-column: 2; text-align: center; }
}

@media (min-width: 901px) {
  .c-menu-fold { display: none !important; }
}

@media (max-width: 768px) {
  .l-hero-grid { grid-template-columns: 1fr; }
  .l-hero-visual { max-width: 480px; }
  .l-zigzag, .l-zigzag-alt { grid-template-columns: 1fr; }
  .l-zigzag-alt .l-zigzag-media { order: 0; }
  .l-slab-grid { grid-template-columns: 1fr; }
  .l-frames { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .l-cards { grid-template-columns: 1fr; }
  .l-bottom-grid { grid-template-columns: 1fr; gap: 24px; }
  .l-hero-visual { max-width: 100%; }
  .l-frames { gap: 16px; }
}

@media (max-width: 480px) {
  .l-hero-title { font-size: clamp(2rem, 8vw, 2.6rem); }
  .c-call { bottom: 76px; right: 12px; padding: 12px 16px; }
  .c-btn { width: 100%; }
  .l-inquiry-send { width: 100%; }
}

@media (max-height: 600px) {
  .l-hero { padding-top: 24px; }
  .l-hero-grid { align-items: start; }
  .l-hero-visual img { aspect-ratio: 4 / 3; }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html.has-js .c-fade,
  html.has-js .l-hero-title .l-hero-line {
    opacity: 1;
    transform: none;
  }
}

/* Intro alignment */
.l-block > .l-wrap > h2 + .u-copy {
  max-width: 56ch;
  margin-top: 16px;
}

/* Section air */
main > .l-block:last-child {
  padding-bottom: 120px;
}

@media (max-width: 768px) {
  .l-zigzag { margin-bottom: 64px; }
  .l-zigzag-media img { height: auto; aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  .c-call { bottom: 16px; right: 16px; padding: 12px 20px; }
  main > .l-block:last-child { padding-bottom: 96px; }
}

/* Button states */
.c-btn:hover { color: var(--accent-ink); background: #1d3fbd; }
.c-btn:active { transform: translateY(1px); }

.c-note[hidden] { display: none !important; }

[hidden] { display: none !important; }

html.has-js article.c-fade {
  opacity: 1;
  transform: none;
}
