/* Shared finish for the two existing visual systems. Local, offline assets only. */
:root {
  --site-width: 1160px;
  --site-gutter: clamp(18px, 3.125vw, 40px);
  --ui-radius: 12px;
  --ui-speed: 160ms;
}
html[data-config-theme="dark"] {
  --soft: #102934;
  --field: #17313c;
  --field-line: #69888b;
  --button-ink: var(--on-accent);
}
html[data-config-theme="light"] {
  --paper: #fbfcf8;
  --soft: #eef4ee;
  --field-line: #6b897d;
}
html { scrollbar-gutter: stable; }
body { scrollbar-color: var(--button-line, var(--field-line)) var(--paper); }
body .wrap, body.inner-page .mp-wrap {
  width: min(var(--site-width), calc(100% - (var(--site-gutter) * 2)));
}
body h1, body h2, body h3 { text-wrap: balance; }
body p { overflow-wrap: break-word; }
body input, body textarea, body select { accent-color: var(--accent); caret-color: var(--ink); }
body a { text-underline-offset: .22em; }
body button, body .button { min-height: 44px; }
body :is(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 0;
  box-shadow: none;
  scroll-margin-block: 100px;
}
body :is(button, .button):disabled { cursor: not-allowed; }
body .header-row { min-height: 76px; }
body .section { padding-block: clamp(56px, 6.25vw, 80px); }
body .section-head, body .section-intro { margin-bottom: 32px; }
body[data-layout="home"] .hero-layout { gap: 36px; }
body[data-layout="home"] .hero-copy > p { max-width: 48ch; }
body[data-layout="home"] .hero-copy h1 { letter-spacing: -.025em; }
html[data-config-theme="dark"] body[data-layout="home"] .hero { padding-block: 32px 48px; }
html[data-config-theme="dark"] .viewer-panel { border-radius: var(--ui-radius); }
html[data-config-theme="dark"] .viewer-top { padding: 18px 20px 12px; }
html[data-config-theme="dark"] .viewer-top h2 { font-size: 18px; }
html[data-config-theme="dark"] .scene-controls { padding: 16px 20px 20px; }
html[data-config-theme="dark"] .canvas-wrap,
html[data-config-theme="dark"] .canvas-wrap canvas { min-height: 0; height: 390px; }
html[data-config-theme="dark"] .scene-fallback { min-height: 390px; }
html[data-config-theme="dark"] .scene-angles { gap: 8px; padding-bottom: 14px; }
html[data-config-theme="dark"] .scene-button { border-radius: 6px; }
html[data-config-theme="light"] .viewer-hero { padding-top: 28px; }
html[data-config-theme="light"] .hero-top { margin-bottom: 28px; gap: 40px; }
html[data-config-theme="light"] .hero-copy h1 { letter-spacing: -.035em; }
html[data-config-theme="light"] .hero-copy > p { max-width: 65ch; }
html[data-config-theme="light"] .studio { background: var(--soft); }
html[data-config-theme="light"] .studio-panel { padding: 24px 20px; gap: 20px; }
html[data-config-theme="light"] .scene-stage,
html[data-config-theme="light"] .scene-stage canvas { min-height: 0; height: 420px; }
html[data-config-theme="light"] .model-label {
  max-width: min(310px, calc(100% - 32px));
  padding: 7px 10px;
  background: #f7fbf7;
}
/* The picker follows the rendered boat in the document and keyboard order. */
body[data-layout="home"] .boat-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, .46fr);
  align-items: end;
  gap: 8px 14px;
  padding: 16px 20px;
  margin: 0;
  border-block: 1px solid var(--line);
  background: transparent;
}
body[data-layout="home"] .boat-picker .bc-field { grid-column: 1; grid-row: 1; font-size: 13px; }
body[data-layout="home"] .boat-picker .bc-field select { min-height: 46px; margin-top: 6px; padding: 10px 12px; font-weight: 400; }
body[data-layout="home"] .boat-picker .bc-configurator-link {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 0;
  min-height: 46px;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid var(--button-line, var(--line));
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}
body[data-layout="home"] .boat-picker .bc-help { grid-column: 1 / -1; grid-row: 2; margin: 0; font-size: 12px; line-height: 1.5; }
body[data-layout="home"] .boat-picker .bc-preview-status { grid-column: 1 / -1; margin: 0; }
body[data-layout="home"] .scene-parts > a[data-configurator-link] { background: transparent; }
body .scene-note, body .scene-help, body .note { line-height: 1.6; }
body .mobile-bar { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
/* Service detail, request, engine and storage forms share the same rhythm. */
body.inner-page .mp-hero { padding-block: 24px 32px; }
body.inner-page .mp-hero h1 { max-width: 22ch; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.1; }
body.inner-page .mp-hero p { max-width: 65ch; margin-top: 20px; }
body.inner-page .configurator-page .mp-hero h1 { font-size: clamp(34px, 4vw, 52px); }
body.inner-page .mp-layout { gap: clamp(32px, 5vw, 64px); padding-block: 40px 72px; }
body.inner-page .mp-group { margin-bottom: 36px; }
body.inner-page .mp-group p, body.inner-page .mp-group li { max-width: 68ch; line-height: 1.7; }
body.inner-page .mp-content h2 { margin-bottom: 18px; }
body.inner-page .mp-sidebar { top: 100px; padding: 24px; }
body.inner-page .mp-sidebar .button { min-height: 48px; }
body.inner-page .mp-form { padding: 28px; }
body.inner-page .mp-form label { line-height: 1.5; }
body.inner-page .mp-form :is(input, textarea, select) { min-height: 48px; }
body.inner-page .mp-form :is(input, textarea, select):disabled { opacity: .6; }
body.inner-page .mp-form textarea { min-height: 150px; }
body.inner-page .mp-contact-list dd { max-width: 54ch; }
body.inner-page .mp-service-link { align-content: start; gap: 12px 20px; }
body.inner-page .mp-service-link .mp-arrow { margin-top: 6px; }
body.inner-page .mp-case dl > div:last-child { border-bottom: 0; }
@media (hover: hover) and (pointer: fine) {
  body[data-layout="home"] .boat-picker .bc-configurator-link:hover { background: var(--secondary-hover, var(--soft)); }
}
@media (max-width: 1050px) {
  body[data-layout="home"] .hero-layout { gap: 28px; }
  body[data-layout="home"] .boat-picker { padding-inline: 16px; grid-template-columns: minmax(0, 1fr) 150px; }
  body.inner-page .mp-layout { gap: 32px; }
}
@media (max-width: 800px) {
  body .header-row { min-height: 68px; }
  body[data-layout="home"] .hero-layout { gap: 18px; }
  body[data-layout="home"] .hero-copy h1 { font-size: clamp(31px, 4.8vw, 40px); line-height: 1.13; }
  body[data-layout="home"] .hero-copy > p { margin-top: 14px; font-size: 15px; }
  html[data-config-theme="dark"] body[data-layout="home"] .hero-copy > p:not(.fine) { margin-top: 0; }
  html[data-config-theme="dark"] body[data-layout="home"] .hero { padding-top: 24px; }
  html[data-config-theme="dark"] .viewer-top { padding: 14px 16px 10px; }
  html[data-config-theme="dark"] .viewer-top h2 { font-size: 17px; }
  html[data-config-theme="dark"] .canvas-wrap,
  html[data-config-theme="dark"] .canvas-wrap canvas { height: 320px; }
  html[data-config-theme="dark"] .scene-fallback { min-height: 320px; }
  html[data-config-theme="dark"] .scene-controls { padding: 14px 16px 18px; }
  html[data-config-theme="light"] .viewer-hero { padding-top: 24px; }
  html[data-config-theme="light"] .scene-stage,
  html[data-config-theme="light"] .scene-stage canvas { height: 340px; }
  html[data-config-theme="light"] .scene-fallback { min-height: 340px; }
  body[data-layout="home"] .boat-picker { grid-template-columns: minmax(0, 1fr) 150px; }
  body.inner-page .mp-hero { padding-block: 18px 26px; }
  body.inner-page .mp-hero h1 { font-size: clamp(34px, 4.9vw, 42px); }
  body.inner-page .mp-hero p { font-size: 16px; margin-top: 16px; }
  body.inner-page .mp-layout { padding-block: 32px 52px; }
}
@media (max-width: 700px) {
  body[data-layout="home"] .hero-copy h1 { font-size: 31px; }
  html[data-config-theme="light"] .hero-copy { margin-bottom: 20px; }
  html[data-config-theme="light"] .studio-panel { padding: 20px 16px; gap: 16px; }
  html[data-config-theme="light"] .scene-parts { gap: 8px; }
  html[data-config-theme="light"] .scene-camera { gap: 8px; padding: 12px; }
  body[data-layout="home"] .boat-picker { padding: 14px 12px; grid-template-columns: minmax(0, 1fr); gap: 9px; }
  body[data-layout="home"] .boat-picker .bc-field { grid-column: 1; grid-row: 1; }
  body[data-layout="home"] .boat-picker .bc-help { grid-column: 1; grid-row: 2; }
  body[data-layout="home"] .boat-picker .bc-configurator-link { grid-column: 1; grid-row: 3; min-height: 44px; }
  body.inner-page .mp-wrap { width: calc(100% - 36px); }
  body.inner-page .mp-hero h1 { font-size: 35px; }
  body.inner-page .configurator-page .mp-hero h1 { font-size: 33px; }
  body.inner-page .mp-form, body.inner-page .mp-sidebar { padding: 22px 20px; }
  body.inner-page .mp-group { margin-bottom: 32px; }
  body.inner-page .mp-group p, body.inner-page .mp-group li { line-height: 1.65; }
  body.inner-page .mp-sidebar { position: static; }
  body.inner-page .mp-hero p { line-height: 1.6; }
  body .mobile-bar .button { min-height: 46px; }
}
@media (max-width: 359px) {
  body[data-layout="home"] .hero-copy h1 { font-size: 29px; }
  body.inner-page .mp-hero h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body .boat-picker * { transition: none; }
}

.tent-product-group{border-top:1px solid var(--line);padding-block:8px}.tent-product-group:last-child{border-bottom:1px solid var(--line)}.tent-product-group summary{min-height:48px;padding:12px 4px;cursor:pointer;font-weight:600;line-height:1.5}.tent-product-group ul{list-style:none;padding:0!important;margin:8px 0 16px!important}.tent-product-group li{padding:0!important}.tent-product-group a{display:flex;align-items:center;min-height:44px;padding:8px 12px;text-decoration:underline;text-underline-offset:4px;line-height:1.5}.tent-product-group a:focus-visible{outline:0;box-shadow:none;background:var(--soft);text-decoration-thickness:3px}@media(hover:hover){.tent-product-group a:hover{background:var(--soft)}}


/* Review 11: clear mobile forms, keyboard space, and compact page endings. */
body :is(input, select, textarea) { scroll-margin-block: 112px; }
@media (max-width: 780px) {
  html { scroll-padding-block-end: calc(104px + env(safe-area-inset-bottom)); }
  body:has(:is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), textarea, select):focus) .mobile-bar {
    visibility: hidden;
    pointer-events: none;
  }
  body[data-page="request"] .mp-form {
    border: 0;
    padding: 0;
    background: transparent;
  }
  body[data-page="request"] .mp-form select {
    padding-inline: 10px 28px;
    font-weight: 400;
    text-overflow: ellipsis;
  }
  body.inner-page .footer-inner, body.inner-page .footer-row { padding-bottom: 28px; }
}


/* An occasional marketing entrance; interactive fields and the boat never move. */
:root { --ease-out: cubic-bezier(.23, 1, .32, 1); --reveal-time: 560ms; }
@media (prefers-reduced-motion: no-preference) {
  [data-scroll-reveal] {
    transition: opacity var(--reveal-time) var(--ease-out), transform var(--reveal-time) var(--ease-out);
  }
  [data-scroll-reveal="pending"] { opacity: 0; transform: translateY(18px); }
  [data-scroll-reveal="visible"] { opacity: 1; transform: translateY(0); }
}
@media print, (prefers-reduced-motion: reduce) {
  [data-scroll-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}


/* Version 12: a shorter first screen and phone browser insets. */
html { -webkit-text-size-adjust: 100%; }
body[data-layout="home"] .hero-copy h1 { max-width: 23ch; }
body[data-layout="home"] .hero-copy > p { max-width: 52ch; }
body[data-layout="home"] .scene-help { max-width: 58ch; }
body[data-layout="home"] .scene-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (pointer: coarse) {
  body :is(input, textarea, select) { font-size: 16px; }
}
@media (max-width: 780px) {
  body header.header { padding-top: env(safe-area-inset-top, 0px); }
  body .mobile-bar {
    padding-left: max(10px, env(safe-area-inset-left, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
  }
}


/* Use the wider landscape inset on both edges, while preserving desktop gutters. */
body .wrap, body.inner-page .mp-wrap {
  width: min(var(--site-width), calc(100% - (max(var(--site-gutter), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)) * 2)));
}


/* Selection uses fill and text; focus never draws an extra frame. */
body :is(a, button, input, select, textarea, canvas, summary, [role=button], [tabindex]):is(:focus, :focus-visible) {
  outline: 0 !important;
  box-shadow: none !important;
}
body :is(a, button, summary, [role=button]):focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: .24em;
}
body :is(button:not(.primary):not([aria-pressed="true"]):not([aria-selected="true"]), a.button:not(.primary):not([aria-pressed="true"]), summary):focus-visible {
  background: var(--soft, var(--paper));
}
body :is(input:not([type=checkbox]):not([type=radio]), select, textarea):focus-visible {
  background: var(--soft, var(--paper));
}
body canvas:focus-visible { filter: brightness(.9); }
body :is(.bc-choice, .bc-visibility, .sf-check, .sf-engine-type):has(input:focus-visible) {
  background: var(--soft, var(--paper));
}
body :is(.bc-choice, .bc-visibility, .sf-check, .sf-engine-type):has(input:focus-visible) span {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: .24em;
}
body input:is([type=checkbox], [type=radio]):not(.bc-color input) {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 18px;
}
body :is(.scene-button, .scene-camera button, .scene-parts button, .task-choices button, .configurator-views button)[aria-pressed="true"] {
  outline: 0 !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* A service action focuses the existing form without hiding it under the header. */
:is(form[data-engine-form], form[data-storage-form]) { scroll-margin-block-start: 108px; }

/* The homepage offers one working request path instead of a disconnected demo. */
.home-request-panel { display:flex; flex-direction:column; gap:18px; padding:clamp(22px,3vw,36px); border:1px solid var(--line); background:var(--soft,var(--paper)); min-width:0; }
.home-request-panel p { margin:0; max-width:58ch; font-size:16px; line-height:1.6; }
.home-request-panel .button { display:flex; align-items:center; justify-content:center; width:100%; min-height:48px; }

/* Footer v19: only the confirmed navigation and the temporary signature. */
body footer.mp-footer {padding-block:28px;border-top:1px solid var(--line);}
body footer.mp-footer .mp-footer-signature {margin-block:0;padding:0;color:var(--muted);font-size:13px;line-height:1.6;}
body footer.mp-footer .mp-site-links {display:flex;flex-wrap:wrap;align-items:center;gap:4px 28px;margin-top:12px;padding-block:0;border:0;}
body footer.mp-footer .mp-site-links a {display:inline-flex;align-items:center;min-height:44px;font-size:13px;line-height:1.5;text-decoration:underline;text-underline-offset:4px;}
/* Keep model authorship available beside the actual viewer, outside the site footer. */
body .model-attribution {margin:0;padding:8px 16px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;line-height:1.6;}
body .model-attribution summary {min-height:44px;display:list-item;align-content:center;cursor:pointer;font-weight:500;}
body .model-attribution-copy {padding:0 0 8px;max-width:65ch;}
body .model-attribution-copy p {margin:0 0 10px;font-size:12px;line-height:1.65;}
body .model-attribution-copy p:last-child {margin-bottom:0;}
body .model-attribution a {display:inline-block;min-height:44px;align-content:center;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;}
body .model-attribution :is(summary,a):focus-visible {outline:0;box-shadow:none;text-decoration:underline;text-decoration-thickness:2px;}
@media (max-width:780px) {
  body footer.mp-footer {padding-block:24px calc(86px + env(safe-area-inset-bottom,0px));}
  body footer.mp-footer .mp-site-links {gap:2px 20px;margin-top:10px;}
  body .model-attribution {padding-inline:14px;}
}

/* Home part controls: four choices, with the full boat below; keep variant 6's top angle. */
body[data-layout="home"] .scene-parts {grid-template-columns:repeat(2,minmax(0,1fr));}
body[data-layout="home"] .scene-parts > [data-home-all] {grid-column:1/-1;}
body[data-layout="home"] .scene-angles > [data-home-all] {flex:0 0 100%;width:100%;}
