/* Root */
:root {
  --bg: #EEF4F9;
  --surface: #FFFFFF;
  --text: #0B1B2B;
  --muted: #3F5468;
  --accent: #005E9C;
  --accent-text: #FFFFFF;
  --plate-bg: #0B1B2B;
  --plate-text: #EEF4F9;
  --line: #C7D6E3;
  --card-radius: 18px;
  --btn-radius: 999px;
  --shadow: 0 1px 2px rgb(11 27 43 / .06), 0 12px 32px rgb(11 27 43 / .08);
  --font-head: Optima, Candara, 'Segoe UI', 'Noto Sans', sans-serif;
  --font-body: Georgia, Cambria, 'Times New Roman', serif;
  --pad-side: clamp(16px, 4vw, 40px);
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(160deg, var(--bg) 0%, #FDF6EC 55%, var(--surface) 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image:
    radial-gradient(circle at 15% 25%, rgb(0 94 156 / .08), transparent 40%),
    radial-gradient(circle at 85% 10%, rgb(191 116 60 / .10), transparent 36%);
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 680; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem); line-height: 1.06; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); line-height: 1.15; }
h3 { font-size: 1.25rem; font-weight: 650; }
p { max-width: 60ch; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Layout */
.dk_wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad-side); position: relative; z-index: 1; }
.dk_narrow { max-width: 760px; }
.dk_block { padding: 48px 0; position: relative; z-index: 1; }
.dk_block + .dk_block { margin-top: var(--section-gap, 96px); }
.dk_block_head { margin: 0 0 16px; }
.dk_block_intro { color: var(--muted); margin: 0 0 24px; max-width: 60ch; font-size: 1.0625rem; line-height: 1.6; }
.dk_mark { color: var(--accent); }

/* Skip link */
.dk_skip_lane {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 80;
  background: var(--plate-bg);
  color: var(--plate-text);
  padding: 12px 20px;
  border-radius: var(--btn-radius);
  font-family: var(--font-head);
  transition: top .2s ease;
}
.dk_skip_lane:focus { top: 12px; }

/* Header */
.dk_topline {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.dk_topline_in {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1080px;
  background: rgb(255 255 255 / .92);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 10px clamp(14px, 2.5vw, 26px);
}
.dk_sign {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(0.875rem, 0.6vw + 0.75rem, 1.1rem);
  color: var(--text);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dk_sign_small { font-size: 1rem; white-space: normal; }
.dk_topline_act { justify-self: end; }

/* Menu knob */
.dk_menu_knob {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 0.95rem;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  cursor: pointer;
}
.dk_menu_knob_bar, .dk_menu_knob_bar::before, .dk_menu_knob_bar::after {
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  content: "";
  display: block;
  position: relative;
}
.dk_menu_knob_bar::before { position: absolute; top: -6px; }
.dk_menu_knob_bar::after { position: absolute; top: 6px; }

/* Buttons */
.dk_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 2px solid var(--accent);
  border-radius: var(--btn-radius);
  background: transparent;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, transform .15s ease;
}
.dk_btn:hover { background: var(--accent); color: var(--accent-text); }
.dk_btn:focus-visible { outline: 4px solid var(--accent); outline-offset: 3px; }
.dk_btn:active { transform: scale(.96); }
.dk_btn_solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 2px solid var(--accent);
  border-radius: var(--btn-radius);
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .15s ease;
}
.dk_btn_solid:hover { background: var(--plate-bg); border-color: var(--plate-bg); color: var(--plate-text); }
.dk_btn_solid:focus-visible { outline: 4px solid var(--accent); outline-offset: 3px; }
.dk_btn_solid:active { transform: scale(.96); }

/* Nav overlay */
.dk_menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  overflow-y: auto;
  background: var(--plate-bg);
  color: var(--plate-text);
  display: flex;
  align-items: center;
  padding: 96px var(--pad-side) 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.dk_menu.dk_menu_is_shown { opacity: 1; visibility: visible; }
.dk_menu_in { display: grid; gap: 40px; width: 100%; }
.dk_menu_list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dk_menu_point {
  display: inline-block;
  color: var(--plate-text);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 650;
  padding: 6px 0;
  transform: translateY(14px);
  opacity: 0;
  transition: color .25s ease, transform .4s ease, opacity .4s ease;
}
.dk_menu_point:hover { color: #9CC8E8; text-decoration: underline; }
.dk_menu.dk_menu_is_shown .dk_menu_point { transform: translateY(0); opacity: 1; }
.dk_menu.dk_menu_is_shown li:nth-child(1) .dk_menu_point { transition-delay: .05s; }
.dk_menu.dk_menu_is_shown li:nth-child(2) .dk_menu_point { transition-delay: .12s; }
.dk_menu.dk_menu_is_shown li:nth-child(3) .dk_menu_point { transition-delay: .19s; }
.dk_menu.dk_menu_is_shown li:nth-child(4) .dk_menu_point { transition-delay: .26s; }
.dk_menu.dk_menu_is_shown li:nth-child(5) .dk_menu_point { transition-delay: .33s; }
.dk_menu.dk_menu_is_shown li:nth-child(6) .dk_menu_point { transition-delay: .40s; }
.dk_menu_side { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: #C7D6E3; font-size: 1rem; }
.dk_menu_side a { color: #9CC8E8; }
body.dk_menu_lock { overflow: hidden; }

/* Hero */
.dk_hero {
  display: grid;
  grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-top: clamp(120px, 16vh, 160px);
  --section-gap: 96px;
}
.dk_hero_copy h1 { margin: 0 0 20px; max-width: 16ch; line-height: 1.08; }
.dk_hero_lead { color: var(--muted); font-size: clamp(1.05rem, 1vw + 0.8rem, 1.25rem); margin: 0 0 28px; max-width: 46ch; line-height: 1.6; }
.dk_hero_shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.dk_hero_img {
  width: 100%;
  height: clamp(220px, 34vw, 420px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgb(11 27 43 / .06);
}
.dk_hero_shots { animation: dk_hero_in .8s ease both; will-change: auto; }
.dk_hero_img_tall { aspect-ratio: 3 / 4; border-top-left-radius: 50% 90px; border-top-right-radius: 50% 90px; }
@keyframes dk_hero_in { from { transform: scale(1.04); } to { transform: scale(1); } }

/* Notice plate */
.dk_slate { background: var(--plate-bg); color: var(--plate-text); }
.dk_slate a { color: #9CC8E8; }
.dk_notice { padding: clamp(28px, 4vw, 48px) 0; }
.dk_notice_text { margin: 0 auto; max-width: 640px; text-align: center; font-size: clamp(1.05rem, 1vw + 0.8rem, 1.3rem); font-family: var(--font-head); font-weight: 600; }
.dk_notice .dk_wrap { display: flex; justify-content: center; }
.dk_slate_note { position: relative; z-index: 2; padding: 18px 0; margin-top: 12px; }
.dk_slate_note .dk_mark { color: #9CC8E8; }

/* Steps */
.dk_steps { display: grid; gap: 16px; max-width: 720px; }
.dk_tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.dk_tile:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgb(11 27 43 / .07), 0 18px 40px rgb(11 27 43 / .12); }
.dk_step_knob {
  display: flex;
  align-items: baseline;
  gap: 16px;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-head);
  color: var(--text);
}
.dk_step_no { color: var(--accent); font-weight: 700; font-size: 1rem; margin-right: 16px; align-self: baseline; }
.dk_step_name { font-size: 1.15rem; font-weight: 650; }
.dk_step_body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.dk_step_body p { color: var(--muted); padding-top: 12px; margin: 0; max-width: 60ch; }
.dk_step_knob[aria-expanded="true"] + .dk_step_body { max-height: 320px; }

/* Accordion desks */
.dk_acc { display: grid; gap: 12px; max-width: 860px; }
.dk_acc_row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.dk_acc_row:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dk_acc_knob {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: 0;
  padding: 20px 24px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 650;
  color: var(--text);
  cursor: pointer;
}
.dk_acc_knob::after { content: "+"; color: var(--accent); font-size: 1.4rem; font-weight: 700; }
.dk_acc_knob[aria-expanded="true"]::after { content: "–"; }
.dk_acc_body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.dk_acc_body p { color: var(--muted); margin: 0; padding: 0 24px 20px; max-width: 60ch; }

/* Gallery */
.dk_frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; margin-top: 32px; }
.dk_frame { margin: 0; }
.dk_frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.dk_frame_wide { grid-column: span 2; }
.dk_frame_wide img { aspect-ratio: 4 / 3; }
.dk_frame_arch img { aspect-ratio: 3 / 4; border-top-left-radius: 50% 110px; border-top-right-radius: 50% 110px; }

/* FAQ */
.dk_qa { display: grid; gap: 12px; }
.dk_qa_one {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 0 20px;
  transition: transform .3s ease;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dk_qa_one:hover { transform: translateY(-2px); }
.dk_qa_one summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 650;
  font-size: 1.1rem;
  padding: 16px 0;
  list-style-position: inside;
  color: var(--text);
  min-height: 32px;
}
.dk_qa_one:only-child { display: none; }
.dk_qa_one p { color: var(--muted); margin: 0 0 16px; }

/* Form */
.dk_letter { display: grid; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 40px); }
.dk_slot { display: grid; gap: 6px; }
.dk_slot_tag { font-family: var(--font-head); font-weight: 650; font-size: 0.95rem; }
.dk_slot_box, .dk_slot_area {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  width: 100%;
}
.dk_slot_box::placeholder, .dk_slot_area::placeholder { color: var(--muted); opacity: 1; }
.dk_slot_box:focus, .dk_slot_area:focus { border-color: var(--accent); outline: none; }
.dk_slot_wrong .dk_slot_box, .dk_slot_wrong .dk_slot_area { border-color: #9B2C2C; }
.dk_slot_area { resize: vertical; }
.dk_tick { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: var(--muted); }
.dk_tick input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.dk_note { color: var(--muted); font-size: 0.9rem; margin: 0; }
.dk_send { justify-self: start; }
.dk_letter.dk_is_busy .dk_send { opacity: .6; pointer-events: none; }

/* Contact plate */
.dk_plate { display: grid; gap: 32px; }
.dk_plate_head { color: var(--plate-text); }
.dk_plate_cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.dk_plate_col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dk_plate_col ul span { color: #C7D6E3; font-family: var(--font-head); font-size: 0.9rem; display: inline-block; min-width: 84px; }
.dk_owner, .dk_base_owner { font-style: normal; }
.dk_owner p, .dk_base_owner p { color: #C7D6E3; margin: 0 0 10px; }
.dk_owner p:first-child, .dk_base_owner p:first-child { color: var(--plate-text); }

/* Floating panel */
.dk_float {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 45;
  display: none;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.dk_float .dk_btn_solid { width: 100%; max-width: 480px; box-shadow: var(--shadow); }

/* Footer */
.dk_base { background: var(--plate-bg); color: var(--plate-text); padding: clamp(48px, 7vw, 88px) 0 24px; position: relative; z-index: 1; }
.dk_base_in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.dk_base_head { font-size: 1.05rem; margin: 0 0 16px; color: var(--plate-text); }
.dk_base_contacts, .dk_base_list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dk_base_contacts span { color: #C7D6E3; font-family: var(--font-head); font-size: 0.9rem; display: inline-block; min-width: 84px; }
.dk_base a { color: #9CC8E8; }
.dk_base_foot { border-top: 1px solid rgb(199 214 227 / .25); margin-top: 40px; padding-top: 20px; }
.dk_base_copy { color: #C7D6E3; margin: 0; font-size: 0.9rem; }

/* Prose (policies, inner pages) */
.dk_reading { color: var(--text); }
.dk_reading h2 { font-size: clamp(1.5rem, 2vw + 0.9rem, 2.2rem); margin: 40px 0 12px; }
.dk_reading h3 { margin: 28px 0 10px; }
.dk_reading p { color: var(--muted); }
.dk_reading ol, .dk_reading ul { color: var(--muted); padding-left: 24px; max-width: 68ch; }
.dk_reading li { margin-bottom: 8px; }
.dk_reading table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--card-radius); overflow: hidden; font-size: 0.95rem; }
.dk_reading th, .dk_reading td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text); }
.dk_reading th { font-family: var(--font-head); background: var(--bg); }

/* Inner page head */
.dk_page_head { padding: clamp(120px, 16vh, 168px) 0 8px; }
.dk_page_lead { color: var(--muted); font-size: clamp(1.05rem, 1vw + 0.8rem, 1.25rem); margin: 16px 0 0; }

/* Reveal */
html.dk_js_live section.dk_fade { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
html.dk_js_live .dk_fade.dk_fade_done { opacity: 1; transform: none; }
html.dk_js_live .dk_fade_done .dk_fade { opacity: 1; transform: none; }

/* Breakpoints */
@media (max-width: 1280px) {
  .dk_hero { grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr); }
}
@media (max-width: 1024px) {
  .dk_hero { grid-template-columns: 1fr; padding-top: 120px; }
  .dk_hero_shots { max-width: 640px; }
  .dk_frames { grid-template-columns: 1fr 1fr; }
  .dk_frame_wide { grid-column: span 2; }
  .dk_base_in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .dk_plate_cols { grid-template-columns: 1fr; }
  .dk_base_in { grid-template-columns: 1fr; gap: 32px; }
  .dk_float { display: flex; }
  .dk_topline_act { padding: 8px 12px; font-size: 0.8125rem; min-height: 40px; white-space: nowrap; }
  .dk_hero_copy { order: 2; }
  .dk_hero_shots { order: 1; }
  .dk_hero .dk_hero_cta { display: inline-flex; margin-top: 16px; }
}
@media (max-width: 640px) {
  .dk_frames { grid-template-columns: 1fr; }
  .dk_frame_wide { grid-column: auto; }
  .dk_hero_shots { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dk_topline { top: 8px; }
  .dk_menu_knob_text { display: none; }
}
@media (max-width: 480px) {
  .dk_hero_shots { grid-template-columns: 1fr; }
  .dk_hero_img_tall { aspect-ratio: 1 / 1; border-radius: var(--card-radius); }
  .dk_tile, .dk_acc_knob { padding-left: 18px; padding-right: 18px; }
  .dk_letter { padding: 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.dk_js_live .dk_fade { opacity: 1; transform: none; }
}

/* Fine-tuning */
.dk_base_owner p, .dk_owner p { max-width: 60ch; }
.dk_reading p { max-width: 60ch; }
@media (max-width: 1024px) {
  .dk_block + .dk_block { margin-top: 64px; }
}
@media (max-width: 480px) {
  .dk_sign { font-size: 0.875rem; }
  .dk_hero_cta { margin-top: 16px; }
}

/* Contrast fix on dark plates */
.dk_slate .dk_block_intro { color: #C7D6E3; }

/* Open menu state */
body.dk_menu_lock .dk_menu_knob {
  background: var(--plate-bg);
  border-color: rgb(199 214 227 / .45);
  color: var(--plate-text);
}
body.dk_menu_lock .dk_menu_knob_bar,
body.dk_menu_lock .dk_menu_knob_bar::before,
body.dk_menu_lock .dk_menu_knob_bar::after {
  background: currentColor;
}

/* Reveal safety net */
html.dk_js_live section.dk_fade:has(.dk_fade_done) { opacity: 1; transform: none; }

@supports (animation-timeline: view()) {
  html.dk_js_live section.dk_fade:not(.dk_fade_done) {
    animation: dk_fade_rise linear both;
    animation-timeline: view(block);
    animation-range: entry 0% entry 85%;
  }
  @keyframes dk_fade_rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
  }
}

@supports not (animation-timeline: view()) {
  html.dk_js_live section.dk_fade:not(.dk_fade_done) { animation: dk_fade_time .7s ease .15s both; }
  @keyframes dk_fade_time {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
  }
}

/* Card hover after reveal */
html.dk_js_live .dk_tile.dk_fade:hover { transform: translateY(-4px); }
html.dk_js_live .dk_acc_row.dk_fade:hover { transform: translateY(-3px); }
