.light-page {
  --paper: #fff;
  --ink: #17232e;
  --dim: #425361;
  --line: #d5e3eb;
  --green: #205f8a;
  --rust: #186aa5;
  --serif: system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --partition-gutter: clamp(20px, 5.5vw, 88px);
}

.light-page main.wrap { width: 100%; }
.light-page .article { padding: 0 0 48px; }
.light-inner { width: min(1240px, calc(100% - 2 * var(--partition-gutter))); margin-inline: auto; }
.light-page .mast { position: relative; border: 0; }
.light-page .mast::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: var(--line); transform-origin: left; }
.light-page .wordmark { font-size: 20px; letter-spacing: -.035em; }
.light-page .mast nav, .light-page .crumb, .light-page .footer {
  font: 600 13px/1.5 system-ui, sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

.light-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: clamp(490px, 43vw, 650px);
  background: #f1f8fc;
}
.light-hero-image { position: absolute; inset: 0 0 0 30%; z-index: -1; overflow: hidden; }
.light-hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 63% 53%; display: block; }
.light-hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #f1f8fc, rgb(241 248 252 / 94%) 13%, rgb(241 248 252 / 48%) 37%, transparent 58%); }
.light-hero-copy { padding-block: clamp(34px, 4.1vw, 62px); }
.light-page .crumb { margin: 0 0 22px; color: #3e627b; }
.light-page .article h1 {
  max-width: 14ch;
  font-size: clamp(42px, 5.15vw, 80px);
  font-weight: 740;
  line-height: 1.02;
  letter-spacing: -.058em;
  text-wrap: balance;
}
.light-page .light-guide-hero h1 { max-width: 15ch; font-size: clamp(38px, 4.55vw, 72px); }
.light-home-hero h1 {
  font-size: clamp(54px, 7vw, 106px);
  font-weight: 740;
  line-height: .99;
  letter-spacing: -.065em;
}
.light-home-hero h1 em { color: #205f8a; font-style: normal; }
.home-kicker { color: #20577d; font-weight: 650; font-size: 14px; margin: 0 0 17px; }
.light-page .lead { color: #314857; font-size: clamp(16px, 1.24vw, 18px); line-height: 1.52; max-width: 49ch; margin-top: 20px; }
.light-page .article-date { margin: 22px 0 0; color: var(--dim); font-size: 13px; }
.light-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.light-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid #b8d3e5;
  border-radius: 999px;
  padding: 8px 17px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 680;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.light-actions .light-primary { background: #1c639c; border-color: #1c639c; color: #fff; }
.light-actions .light-secondary { background: #fff; color: #20577d; }
.light-actions .light-primary:hover { background: #154d7a; }
.light-actions .light-secondary:hover { background: #e4f0f8; }
.light-actions a:active { transform: translateY(1px); }
.light-actions a span { margin-left: 8px; }

.light-topics { padding: 28px 0; background: linear-gradient(110deg, #e2f0f8, #f1f8fc 70%, #e8f2f8); border-block: 1px solid #e0edf4; }
.light-topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.light-topic {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: 12px;
  align-content: center;
  padding: clamp(12px, 2vw, 22px);
  background: rgb(255 255 255 / 73%);
  border: 1px solid #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgb(40 82 110 / 5%);
  text-decoration: none;
  line-height: 1.4;
  transition: background-color .2s var(--ease);
}
.light-topic:hover { background-color: #fff; }
.light-topic svg { grid-row: span 2; width: 36px; height: 36px; padding: 7px; border-radius: 10px; color: #266c9e; background: #e6f1f9; }
.light-topic strong { font-size: 16px; }
.light-topic strong:last-child { grid-row: span 2; align-self: center; }
.light-topic span { margin-top: 3px; color: var(--dim); font-size: 13px; }

.light-page .catalog { padding-block: clamp(32px, 5vw, 66px); }
.light-page .catalog .section-head { border: 0; padding: 0 0 23px; }
.light-page .section-head h2, .light-page .method h2 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 680;
  letter-spacing: -.045em;
}
.light-page .guide-grid { border: 0; gap: clamp(12px, 1.4vw, 22px); }
.light-page .guide-grid .card {
  gap: 0;
  padding: 0;
  border: 1px solid #dcebf4;
  border-radius: 12px;
  overflow: hidden;
  background: #f9fcfd;
  transition: background-color .2s var(--ease);
}
.light-page .guide-grid .card:hover { background: #edf6fb; }
.catalog-image { overflow: hidden; aspect-ratio: 3 / 2; background: #e7eff3; }
.catalog-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .38s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover .catalog-image img { transform: scale(1.045); }
}
.catalog-card-copy { padding: clamp(13px, 1.7vw, 22px); }
.light-page .card h3 { font-size: clamp(19px, 2vw, 25px); font-weight: 680; line-height: 1.15; letter-spacing: -.032em; }
.light-page .card p { margin-top: 8px; }
.light-page .method { border: 1px solid #dcebf4; border-radius: 14px; background: #f3f9fd; align-items: start; padding: clamp(20px, 4vw, 48px); margin-bottom: 38px; }

.light-page .article .partition-comparison {
  max-width: 1240px;
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(22px, 5vw, 72px);
  margin-block: clamp(40px, 6vw, 84px) 0;
  padding: clamp(18px, 3.4vw, 48px);
  border: 1px solid #dcebf4;
  border-radius: 18px;
  background: #f3f9fd;
}
.light-page .article h2 { font-weight: 680; }
.light-page .article .partition-comparison p { margin-bottom: 0; max-width: 35ch; }
.light-page .finish-demo { border: 0; background: transparent; }
.finish-controls { margin: 0 0 11px; border: 0; min-inline-size: 0; padding: 0; }
.finish-controls legend { padding: 0; margin-bottom: 6px; color: var(--dim); font-size: 13px; }
.finish-switch {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid #c8dfed;
  border-radius: 999px;
  background: #e7f2f9;
}
.finish-switch::before {
  content: '';
  position: absolute;
  inset: 4px auto 4px 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: #1c639c;
  z-index: -1;
  transition: transform .26s var(--ease);
}
.finish-switch:has([value="frosted"]:checked)::before { transform: translateX(100%); }
.finish-switch label { position: relative; cursor: pointer; }
.finish-switch input { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; }
.finish-switch span {
  display: block;
  padding: 8px clamp(10px, 1.45vw, 19px);
  border-radius: 999px;
  color: #1c4b68;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
  transition: color .18s var(--ease);
}
.finish-switch input:checked + span { color: #fff; }
.finish-switch input:focus-visible + span { outline: 2px solid #145587; outline-offset: 2px; }
.finish-visual { position: relative; overflow: hidden; border-radius: 10px; background: #d6e2e8; }
.finish-visual img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; }
.finish-frost {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgb(218 233 232 / 62%);
  backdrop-filter: blur(13px) saturate(.65);
  opacity: 0;
  transition: opacity .43s ease-in-out;
}
.frost-partition { clip-path: polygon(6.6% 12.8%, 73.45% 12.8%, 73.55% 82.3%, 12.35% 82.6%, 12.35% 72.2%, 6.6% 72.2%); }
.frost-door { clip-path: polygon(75.08% 13.75%, 92.22% 13.55%, 92.15% 82%, 75.1% 82%, 75.1% 53.9%, 78.6% 53.9%, 78.6% 51.55%, 75.1% 51.55%); }
.finish-demo:has([value="frosted"]:checked) .finish-frost { opacity: 1; }
.light-page .finish-demo figcaption { display: block; border: 0; padding: 9px 0 0; color: var(--dim); font-size: 13px; line-height: 1.5; }
.light-page .article-grid { padding: clamp(40px, 6vw, 76px) 0 10px; }
.light-page .article-grid section { margin-bottom: 34px; }
.light-page .article section p { color: #334653; }
.guide-aside { min-width: 0; }
.light-page .guide-sketch { margin-top: 18px; border: 1px solid #dcebf4; border-radius: 12px; background: #f3f9fd; overflow: hidden; }
.light-page .guide-sketch .sketch { background-color: #ecf4f9; }
.light-page .guide-sketch figcaption { font-size: 13px; }
.light-page .checklist { border: 1px solid #dcebf4; border-radius: 12px; background: #f3f9fd; }
.light-page .footer { border-color: var(--line); }
.light-page [id] { scroll-margin-top: 24px; }

@media (prefers-reduced-motion: no-preference) {
  .light-page .mast::after { animation: light-rule .7s var(--ease) both; }
  .light-hero h1 { animation: light-rise .62s var(--ease) both; }
  .light-hero .lead { animation: light-rise .68s .10s var(--ease) both; }
  .light-actions { animation: light-rise .65s .18s var(--ease) both; }
  .light-hero-image::before {
    content: '';
    position: absolute;
    z-index: 1;
    inset: -25% auto -25% -45%;
    width: 38%;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 34%), transparent);
    pointer-events: none;
    animation: light-sheen 1.8s .3s var(--ease) both;
  }
  @keyframes light-rise { from { opacity: .68; transform: translateY(12px); } }
  @keyframes light-rule { from { transform: scaleX(0); } }
  @keyframes light-sheen {
    from { opacity: 0; transform: translateX(0) skewX(-17deg); }
    28% { opacity: 1; }
    to { opacity: 0; transform: translateX(390%) skewX(-17deg); }
  }
}
@media (max-width: 850px) {
  .light-hero { min-height: 0; grid-template-rows: auto auto; align-items: start; }
  .light-hero-image { position: relative; inset: auto; grid-row: 2; aspect-ratio: 2/1; }
  .light-hero-image::after { background: linear-gradient(180deg, #f1f8fc, transparent 32%); }
  .light-hero-copy { grid-row: 1; padding-block: 34px 18px; }
  .light-page .article .partition-comparison { grid-template-columns: minmax(0, 1fr); }
  .light-page .article .partition-comparison p { max-width: 52ch; }
}
@media (max-width: 580px) {
  .light-page .wordmark { font-size: 18px; }
  .light-page .article h1 { font-size: clamp(32px, 8.2vw, 47px); }
  .light-page .light-guide-hero h1 { font-size: clamp(30px, 7.9vw, 42px); }
  .light-home-hero h1 { font-size: clamp(48px, 12vw, 66px); }
  .light-page .crumb { margin-bottom: 15px; }
  .light-hero-image { aspect-ratio: 3/2; }
  .light-topic-grid { grid-template-columns: 1fr; gap: 8px; }
  .light-topics { padding: 16px 0; }
  .light-topic { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .light-actions a, .light-topic, .light-page .guide-grid .card, .catalog-image img, .finish-switch::before, .finish-switch span, .finish-frost { transition: none; }
  .light-page .card:hover .catalog-image img { transform: none; }
}

.partition-selection { margin-block: clamp(35px, 5vw, 70px) 0; }
.light-page .article .partition-selection { max-width: 1240px; }
.partition-choice-table {
  width: 100%;
  margin-top: 19px;
  border: 1px solid #dcebf4;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 13px;
  table-layout: fixed;
  line-height: 1.52;
  font-size: 16px;
}
.partition-choice-table th, .partition-choice-table td { padding: 14px clamp(10px, 2.3vw, 25px); text-align: left; vertical-align: top; }
.partition-choice-table thead th { background: #e8f4fa; color: #20577d; }
.partition-choice-table thead th:first-child { width: 30%; border-top-left-radius: 12px; }
.partition-choice-table thead th:last-child { border-top-right-radius: 12px; }
.partition-choice-table tbody th { background: #f5fafd; }
.partition-choice-table tbody th, .partition-choice-table td { border-top: 1px solid #dcebf4; overflow-wrap: anywhere; }
.partition-choice-table tbody tr:last-child th { border-bottom-left-radius: 12px; }
.light-page .article .partition-choice-table p { margin: 0; }
.light-page .article .partition-choice-table p + p { margin-top: 6px; }
.light-page .article-grid h3 { margin-top: 25px; font-size: clamp(20px, 2.4vw, 28px); font-weight: 660; }
.guide-references ul { padding-left: 1.25em; color: var(--green); font-size: 15px; }
.guide-references li + li { margin-top: 7px; }
@media (max-width: 580px) {
  .partition-choice-table { font-size: 14px; }
  .partition-choice-table thead th:first-child { width: 36%; }
}

.light-page .article .slide-gallery { max-width: none; padding-block: clamp(32px, 5vw, 66px) 0; }
.slide-gallery > p { max-width: 68ch; margin: 12px 0 22px; color: #334653; }
.slide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.light-page .article .slide-example {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: clamp(14px, 2vw, 23px);
  border: 1px solid #dceaf3;
  border-radius: 16px;
  background: #f4f9fc;
}
.slide-example figcaption { display: block; padding: 0; border: 0; }
.slide-example h3 { margin: 0; font-size: clamp(17px, 2.1vw, 23px); line-height: 1.16; }
.slide-example p { margin: 8px 0 0; font-size: 15px; color: #334653; }
.slide-controls { min-width: 0; margin: auto 0 0; padding: 12px 0 0; border: 0; }
.slide-controls legend { padding: 0; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.slide-switch { display: flex; gap: 6px; }
.slide-switch label { position: relative; min-width: 0; }
.slide-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.slide-switch span {
  display: block;
  padding: 8px 12px;
  border: 1px solid #bdd6e8;
  border-radius: 8px;
  background: white;
  color: #163b57;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
}
.slide-switch input:checked + span { border-color: #255d88; background: #255d88; color: white; }
.slide-switch input:focus-visible + span { outline: 2px solid #163b57; outline-offset: 2px; }
.slide-plan { margin-top: 10px; padding: 8px 10px 12px; border-radius: 10px; background: white; }
.slide-plan svg { display: block; width: 100%; height: auto; }
.slide-track { stroke: #b8cfdf; stroke-width: 1; stroke-dasharray: 3 3; }
.slide-wall { fill: #798894; }
.slide-glass { fill: #a8cce4; stroke: #648da9; }
.slide-leaf { fill: #28669a; }
.slide-clear { fill: none; stroke: #236d64; stroke-width: 1.5; }
.slide-plan .slide-state { margin: 0; font-weight: 650; }
.slide-controls:has([value="open"]:checked) .slide-leaf { transform: translateX(var(--shift)); }
.slide-controls:has([value="closed"]:checked) :is(.slide-clear, .slide-state-open),
.slide-controls:has([value="open"]:checked) .slide-state-closed { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .slide-leaf { transition: transform 480ms ease-in-out; }
}
@media (min-width: 951px) {
  .light-page .guide-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .slide-grid { grid-template-columns: 1fr; }
  .slide-plan svg { max-width: 430px; }
}
