/* ===== Tokens ===== */
:root {
  --c-bg: #FFF8F4;
  --c-surface: #FFFFFF;
  --c-text: #2B1D14;
  --c-muted: #6B5545;
  --c-accent: #B53A0B;
  --c-accent-text: #FFE8D6;
  --c-plate-bg: #2B1D14;
  --c-plate-text: #FFE8D6;
  --c-line: #E8D8CB;
  --c-accent-deep: #8E2C08;
  --c-btn-hover: #A03409;
  --f-body: 'Avenir Next', Avenir, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --f-head: 'Avenir Next', Avenir, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --r-card: 18px;
  --r-btn: 10px;
  --pad-edge: clamp(16px, 4vw, 40px);
  --sec-gap: clamp(64px, 9vw, 128px);
  --shadow-soft: 0 1px 2px rgb(43 29 20 / .06), 0 12px 32px rgb(43 29 20 / .08);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-image:
    radial-gradient(circle at 0% 12%, rgb(181 58 11 / .12), transparent 42%),
    radial-gradient(circle at 100% 60%, rgb(107 85 69 / .14), transparent 46%),
    radial-gradient(620px 310px at 88% 100%, rgb(181 58 11 / .09), transparent 70%);
  background-repeat: no-repeat;
  background-size: 100% 1400px, 100% 1600px, 100% 1200px;
  font-family: var(--f-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--c-text);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem); line-height: 1.1; max-width: 12ch; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); line-height: 1.15; }
h3 { font-size: clamp(1.2rem, 1vw + 0.9rem, 1.5rem); }

p { margin: 0 0 12px; max-width: 68ch; }

a { color: var(--c-accent); text-underline-offset: 3px; }
a:hover { color: var(--c-accent-deep); }

ul, ol { padding-left: 1.2em; }

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

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

.sp_skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--c-plate-bg);
  color: var(--c-plate-text);
  padding: 12px 20px;
  border-radius: 0 0 var(--r-btn) 0;
}
.sp_skip:focus { left: 0; }

/* ===== Layout ===== */
.sp_wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--pad-edge);
  padding-right: var(--pad-edge);
}

.sp_block {
  position: relative;
  padding-top: var(--sec-gap);
  padding-bottom: var(--sec-gap);
}
.sp_block:nth-of-type(even) { background-color: var(--c-surface); }

.sp_intro {
  color: var(--c-muted);
  font-size: 1.05em;
  margin-bottom: 32px;
}

.sp_lede {
  font-size: clamp(1.15rem, 1.4vw + 0.8rem, 1.5rem);
  line-height: 1.45;
  color: var(--c-text);
}

/* ===== Background shapes ===== */
#front-hero,
#front-steps,
#front-sections,
#front-materials,
#front-inquiry,
#front-contact { overflow: hidden; }

#front-steps::before,
#front-sections::before,
#front-materials::before,
#front-inquiry::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

#front-steps::before {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgb(181 58 11 / .10);
  top: 10%;
  left: -180px;
}

#front-sections::before {
  width: 520px;
  height: 260px;
  border-radius: 520px 520px 0 0;
  background: rgb(107 85 69 / .12);
  bottom: 0;
  right: -220px;
}

#front-materials::before {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgb(181 58 11 / .08);
  bottom: -160px;
  left: -140px;
}

#front-inquiry::before {
  width: 300px;
  height: 300px;
  border-radius: 0 0 150px 150px;
  background: rgb(107 85 69 / .14);
  top: -60px;
  right: -100px;
}

.sp_block > .sp_wrap { position: relative; z-index: 1; }

/* ===== Top line ===== */
.sp_topline {
  background: var(--c-plate-bg);
  color: var(--c-plate-text);
  font-size: 0.875rem;
}

.sp_topline_inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}

.sp_topline_note { margin: 0; color: var(--c-plate-text); }

.sp_topline_contacts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
}
.sp_topline_contacts a { color: var(--c-plate-text); text-decoration: none; }
.sp_topline_contacts a:hover { text-decoration: underline; }

/* ===== Masthead ===== */
.sp_masthead {
  position: relative;
  background: var(--c-surface);
  border-bottom: 2px solid var(--c-line);
}

.sp_masthead_inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 76px;
}

.sp_wordmark {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.4vw + 0.6rem, 1.45rem);
  color: var(--c-text);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.sp_menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}

.sp_menu_left { justify-content: flex-start; }
.sp_menu_right { justify-content: flex-end; }

.sp_menu_item {
  display: inline-block;
  position: relative;
  font-size: 1rem;
  color: var(--c-text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.sp_menu_item::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--c-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.sp_menu_item:hover,
.sp_menu_item:focus-visible {
  background-color: rgb(181 58 11 / .10);
  color: var(--c-accent-deep);
}

.sp_menu_item:hover::after,
.sp_menu_item:focus-visible::after,
.sp_menu_item[aria-current="page"]::after { transform: scaleX(1); }

.sp_menu_item[aria-current="page"] { color: var(--c-accent-deep); font-weight: 600; }

/* Mobile menu */
.sp_menu_btn {
  display: none;
  position: relative;
  z-index: 160;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--c-text);
  border-radius: var(--r-btn);
  background: transparent;
  color: var(--c-text);
  font: 600 1rem var(--f-body);
  cursor: pointer;
}

.sp_menu_overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--c-plate-bg);
  z-index: 150;
  padding: 132px var(--pad-edge) 40px;
  overflow-y: auto;
}

.sp_menu_overlay.is_open { display: block; }

.sp_menu_overlay .sp_menu {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.sp_menu_overlay .sp_menu_item {
  font-size: 1.4rem;
  color: var(--c-plate-text);
  padding: 10px 14px;
}

.sp_menu_overlay .sp_menu_item::after { background: var(--c-plate-text); }
.sp_menu_overlay .sp_menu_item:hover,
.sp_menu_overlay .sp_menu_item:focus-visible {
  background: rgb(255 232 214 / .14);
  color: var(--c-plate-text);
}

/* ===== Announcement ribbon ===== */
.sp_ribbon {
  background: var(--c-plate-bg);
  color: var(--c-plate-text);
  border-radius: var(--r-card);
  padding: 20px 28px;
  box-shadow: var(--shadow-soft);
}

.sp_ribbon p { margin: 0; color: var(--c-plate-text); max-width: none; }
.sp_ribbon a { color: var(--c-plate-text); }

body > .sp_wrap > .sp_ribbon { margin: 16px auto 0; }

.sp_notice { display: none; }

/* ===== Hero ===== */
.sp_hero_shot {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
}

.sp_hero_rise {
  animation: sp-rise-in 0.5s ease-out both;
}

.sp_hero_rise h1,
.sp_hero_rise .sp_lede,
.sp_hero_rise .sp_hero_side {
  animation: sp-lift 0.5s ease-out both;
}

.sp_hero_cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  margin-top: 32px;
  align-items: start;
}

.sp_hero_text h1 { margin-bottom: 16px; }
.sp_hero_text .sp_lede { margin-bottom: 24px; max-width: 32ch; }

.sp_hero_side {
  color: var(--c-muted);
  border-left: 3px solid var(--c-line);
  padding-left: 24px;
}

@keyframes sp-rise-in { from { opacity: 0; } }
@keyframes sp-lift {
  from { transform: translateY(12px); }
  to { transform: translateY(0); }
}

/* ===== Stats ===== */
.sp_stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
}
.sp_stats_item { min-height: 100%; }
.sp_stats_item:first-child { grid-column: span 2; }

.sp_stats_item {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
}

.sp_stats_num {
  display: block;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw + 1rem, 4.2rem);
  line-height: 1;
  color: var(--c-accent);
  margin-bottom: 12px;
}

.sp_stats_num_text { font-size: clamp(1.6rem, 2.4vw + 0.8rem, 2.4rem); }

.sp_stats_label {
  display: block;
  color: var(--c-muted);
  max-width: 32ch;
}

/* ===== Tiles ===== */
.sp_tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sp_tile {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.sp_tile h3 { margin: 0; }

.sp_tile:hover,
.sp_tile:focus-within { border-color: var(--c-accent); }

.sp_tile_lead { grid-column: span 2; }

.sp_tile_initial {
  display: block;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw + 1rem, 3.6rem);
  line-height: 1;
  color: var(--c-accent-text);
  background: var(--c-accent);
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 18px;
}

/* ===== Buttons ===== */
.sp_btn,
.sp_btn_dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--r-btn);
  border: 2px solid var(--c-accent);
  background: transparent;
  color: var(--c-accent-deep);
  font: 600 1rem var(--f-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.sp_btn:hover,
.sp_btn_dark:hover {
  background: var(--c-btn-hover);
  border-color: var(--c-btn-hover);
  color: var(--c-accent-text);
  transform: translateY(-1px);
}

.sp_btn:focus-visible,
.sp_btn_dark:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 4px;
}

.sp_btn:active,
.sp_btn_dark:active {
  background: var(--c-accent-deep);
  border-color: var(--c-accent-deep);
  color: var(--c-accent-text);
  transform: translateY(0);
}

.sp_btn_dark {
  border-color: var(--c-plate-bg);
  color: var(--c-plate-bg);
}
.sp_btn_dark:hover {
  background: var(--c-plate-bg);
  color: var(--c-plate-text);
  border-color: var(--c-plate-bg);
}

/* ===== FAQ ===== */
.sp_faq {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.sp_faq_item {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  padding: 4px 22px;
  transition: border-color 0.3s ease;
}

.sp_faq_item[open] { border-color: var(--c-accent); }

.sp_faq_item summary {
  font-weight: 600;
  font-size: 1.05em;
  padding: 16px 0;
  cursor: pointer;
  list-style-position: outside;
}

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

/* ===== Switch ===== */
.sp_switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-btn);
  background: var(--c-surface);
  margin-bottom: 24px;
}

.sp_switch_btn {
  min-height: 44px;
  padding: 0 22px;
  border: none;
  border-radius: calc(var(--r-btn) - 2px);
  background: transparent;
  color: var(--c-muted);
  font: 600 0.95rem var(--f-body);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.sp_switch_btn[aria-selected="true"] {
  background: var(--c-plate-bg);
  color: var(--c-plate-text);
}

.sp_switch_btn:hover { color: var(--c-accent-deep); }
.sp_switch_btn[aria-selected="true"]:hover { color: var(--c-plate-text); }

/* ===== Materials ===== */
.sp_material_pane {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.sp_material_shot {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
}

.sp_material_text p { color: var(--c-muted); }
.sp_material_text h3 { margin-bottom: 12px; }

/* ===== Form ===== */
.sp_inquiry {
  max-width: 760px;
  display: grid;
  gap: 18px;
}

.sp_field { display: grid; gap: 6px; }

.sp_label { font-weight: 600; font-size: 0.95rem; }

.sp_input {
  font: 400 1rem var(--f-body);
  color: var(--c-text);
  background: var(--c-surface);
  border: 2px solid var(--c-line);
  border-radius: var(--r-btn);
  padding: 12px 16px;
  min-height: 48px;
  transition: border-color 0.25s ease;
}

textarea.sp_area { min-height: 120px; resize: vertical; }

.sp_input:hover { border-color: var(--c-muted); }
.sp_input:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-color: var(--c-accent); }

.sp_input::placeholder { color: var(--c-muted); opacity: 1; }

.sp_field .sp_err {
  color: #8E2C08;
  font-size: 0.875rem;
  margin: 0;
}

.sp_check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 68ch;
}

.sp_check input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  accent-color: var(--c-accent);
  flex: none;
}

.sp_check label { font-size: 0.95rem; }

.sp_note {
  font-size: 0.875rem;
  color: var(--c-muted);
  margin: 0;
}

.sp_submit { justify-self: start; }

form.is_sent .sp_submit {
  opacity: 0.7;
  pointer-events: none;
}

/* ===== Contact plate ===== */
.sp_contact_plate { padding: 32px 36px; }

.sp_contact_plate h2 { color: var(--c-plate-text); }

.sp_contact_plate p { color: var(--c-plate-text); }

.sp_contact_plate ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: 16px 0 24px;
  padding: 0;
}

.sp_contact_plate ul li { color: var(--c-plate-text); }
.sp_contact_plate ul span { opacity: 0.85; margin-right: 6px; }
.sp_contact_plate ul a { color: var(--c-plate-text); }

/* ===== Footer ===== */
.sp_closing {
  background: var(--c-plate-bg);
  color: var(--c-plate-text);
  padding: clamp(48px, 6vw, 80px) 0 32px;
}

.sp_closing_inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.sp_closing .sp_wordmark {
  color: var(--c-plate-text);
  text-align: left;
  white-space: normal;
  font-size: 1.2rem;
}

.sp_closing_lead { color: var(--c-plate-text); font-size: 0.95rem; }

.sp_closing_title {
  color: var(--c-plate-text);
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.sp_closing_links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.sp_closing_links a {
  color: var(--c-plate-text);
  text-decoration: none;
  font-size: 0.95rem;
}
.sp_closing_links a:hover { text-decoration: underline; }

.sp_closing address { font-style: normal; }
.sp_closing address p { color: var(--c-plate-text); font-size: 0.9rem; margin-bottom: 8px; }

.sp_closing ul {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.sp_closing ul li { color: var(--c-plate-text); font-size: 0.95rem; }
.sp_closing ul span { opacity: 0.85; margin-right: 6px; }
.sp_closing ul a { color: var(--c-plate-text); }

.sp_closing_owner { grid-column: 1 / -1; border-top: 1px solid rgb(255 232 214 / .25); padding-top: 24px; }

.sp_closing_copy {
  color: var(--c-plate-text);
  font-size: 0.875rem;
  margin: 12px 0 0;
}

/* ===== Inner pages ===== */
.sp_page_head { padding-bottom: 24px; }

.sp_prose { max-width: 760px; }

.sp_prose h2 {
  font-size: clamp(1.4rem, 1.8vw + 0.9rem, 2rem);
  margin-top: 40px;
}

.sp_prose ol, .sp_prose ul { margin-bottom: 16px; }
.sp_prose li { margin-bottom: 6px; }
.sp_prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}
.sp_prose th, .sp_prose td {
  border: 1px solid var(--c-line);
  padding: 10px 14px;
  text-align: left;
}
.sp_prose th { background: var(--c-surface); }

.sp_toc {
  list-style: decimal;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  padding: 22px 22px 22px 40px;
  margin: 0 0 32px;
  box-shadow: var(--shadow-soft);
}

.sp_toc li { margin-bottom: 6px; }

/* Gallery with arched tops on vertical shots */
.sp_shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sp_shot {
  width: 100%;
  object-fit: cover;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
}

.sp_shot_portrait {
  aspect-ratio: 3 / 4;
  border-radius: 160px 160px var(--r-card) var(--r-card);
}

.sp_shot_landscape { aspect-ratio: 4 / 3; }
.sp_shot_wide { aspect-ratio: 16 / 9; }

/* Thanks and 404 */
.sp_confirm {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  padding: 36px;
  box-shadow: var(--shadow-soft);
  max-width: 760px;
}

.sp_confirm_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ===== Reveal ===== */
.sp_rise { transition: transform 0.6s ease; }

html.is_live .sp_rise { transform: translateY(24px); }
html.is_live .sp_rise.is_risen { transform: translateY(0); }

/* ===== Breakpoints ===== */
@media (max-width: 1280px) {
  .sp_menu_item { padding: 8px 10px; font-size: 0.95rem; }
}

@media (max-width: 1023px) {
  .sp_tiles { grid-template-columns: repeat(2, 1fr); }
  .sp_tile_lead { grid-column: span 2; }
  .sp_stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .sp_shots { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .sp_menu_left, .sp_menu_right { display: none; }
  .sp_menu_btn { display: inline-flex; justify-self: end; }
  .sp_masthead_inner { grid-template-columns: 1fr auto; }
  .sp_wordmark { grid-column: 1; text-align: left; }
}

@media (max-width: 767px) {
  .sp_hero_cols { grid-template-columns: 1fr; }
  .sp_hero_side { border-left: none; border-top: 3px solid var(--c-line); padding: 20px 0 0; }
  .sp_material_pane { grid-template-columns: 1fr; }
  .sp_stats { grid-template-columns: 1fr; }
  .sp_contact_plate { padding: 26px 22px; }
}

@media (max-width: 639px) {
  .sp_tiles { grid-template-columns: 1fr; }
  .sp_tile_lead { grid-column: span 1; }
  .sp_shots { grid-template-columns: 1fr; }
  .sp_topline_inner { flex-direction: column; align-items: flex-start; }
  .sp_switch { display: flex; width: 100%; }
  .sp_switch_btn { flex: 1; padding: 0 10px; }
}

@media (max-width: 479px) {
  body { font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem); }
  .sp_wordmark { font-size: 1.05rem; }
  .sp_tile { padding: 22px 18px; }
  .sp_confirm { padding: 24px 18px; }
  .sp_stats_item { padding: 22px 18px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.is_live .sp_rise { transform: none; }
  .sp_hero_rise, .sp_hero_rise h1, .sp_hero_rise .sp_lede, .sp_hero_rise .sp_hero_side { animation: none; }
}

/* ===== Art fixes ===== */
.sp_hero_text .sp_btn { margin-top: 32px; }

@media (max-width: 767px) {
  h1 { line-height: 1.15; }
  .sp_block {
    padding-top: clamp(48px, 8vw, 80px);
    padding-bottom: clamp(48px, 8vw, 80px);
  }
  .sp_ribbon {
    padding: 20px 24px;
    font-size: 15px;
    line-height: 1.6;
    border-radius: 12px;
  }
}

@media (max-width: 1023px) {
  .sp_stats { grid-template-columns: repeat(2, 1fr); }
  .sp_stats_item:first-child { grid-column: span 2; }
}

@media (max-width: 639px) {
  .sp_stats { grid-template-columns: 1fr; }
  .sp_stats_item:first-child { grid-column: span 1; }
}

/* ===== Base layer ===== */
.sp_closing, .sp_topline { background-image: none; }

/* ===== Overlay toggle state ===== */
.sp_menu_btn[aria-expanded="true"] {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-accent-text);
}

.sp_menu_btn[aria-expanded="true"]:hover {
  background: var(--c-btn-hover);
  border-color: var(--c-btn-hover);
  color: var(--c-accent-text);
}

.sp_menu_btn[aria-expanded="true"]:focus-visible {
  outline-color: var(--c-accent-text);
}

/* Perf */
#front-materials,
#front-inquiry,
#front-contact,
.sp_closing {
  content-visibility: auto;
  contain-intrinsic-size: auto 560px;
}

@media (max-width: 767px) {
  #front-materials,
  #front-inquiry,
  #front-contact,
  .sp_closing {
    contain-intrinsic-size: auto 720px;
  }
}

/* ===== Overflow guard ===== */
.sp_menu_overlay { max-width: 100vw; }
body { overflow-x: clip; }
