* {
  box-sizing:border-box;
}

:root {
  font-family:Inter,system-ui,sans-serif;
  color:#20251f;
  background:#f6f5ef;
}

body {
  margin:0;
  min-height:100svh;
  display:flex;
  flex-direction:column;
}

.wrap {
  width:min(1180px,calc(100% - 88px));
  margin-inline:auto;
}

button:focus-visible {
  outline:3px solid #3048ba;
  outline-offset:4px;
}

.bar {
  display:flex;
  justify-content:space-between;
  align-items:center;
}

header {
  min-height:80px;
  border-bottom:1px solid #c4c6b9;
}

.brand {
  font-size:2rem;
  line-height:1;
  font-weight:850;
  letter-spacing:-.095em;
}

.brand span,h1 span {
  color:#445adc;
}

main {
  flex:1;
  display:grid;
  align-items:center;
}

.intro {
  display:grid;
  grid-template-columns:minmax(0,.79fr) minmax(0,1.21fr);
  align-items:center;
  gap:clamp(32px,6vw,96px);
  padding:60px 0;
}

h1 {
  font-size:clamp(3.7rem,7.7vw,7rem);
  font-weight:640;
  letter-spacing:-.08em;
  line-height:.95;
  margin:0;
}

p {
  max-width:32em;
  font-size:clamp(1rem,1.4vw,1.16rem);
  line-height:1.6;
  color:#4d544d;
  margin:24px 0;
}

.viewer {
  overflow:hidden;
  border:1px solid #c8caba;
  border-radius:16px;
  background:#e6e8da;
  --front:#465ed6;
  --side:#2d429d;
  --top:#8194ff;
  --angle:-32deg;
}

.caption,.panel {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 23px;
  gap:14px;
}

.caption>span:first-child {
  font-weight:650;
}

.caption>span:last-child {
  font:.72rem ui-monospace,monospace;
  letter-spacing:.11em;
  color:#525c4e;
}

.stage {
  height:clamp(225px,27vw,340px);
  position:relative;
  display:grid;
  place-items:center;
  background-image:radial-gradient(#8e998250 .8px,transparent .9px);
  background-size:16px 16px;
}

.shadow {
  position:absolute;
  left:30%;
  right:24%;
  top:76%;
  height:17px;
  background:#525c56;
  filter:blur(13px);
  opacity:.38;
  transform:rotate(-6deg);
}

.model {
  position:relative;
  width:0;
  height:0;
  transform-style:preserve-3d;
  transform:rotateX(-19deg) rotateY(var(--angle));
  transition:transform .6s;
}

.part,.face {
  position:absolute;
  transform-style:preserve-3d;
}

.face {
  backface-visibility:hidden;
}

.panel {
  background:#f2f3e9;
  border-top:1px solid #c8caba;
}

fieldset {
  padding:0;
  border:0;
  margin:0;
}

legend {
  padding:0;
  font-size:.8rem;
  font-weight:700;
  margin-bottom:8px;
}

legend span {
  font-weight:400;
  color:#50594e;
}

label {
  display:inline-flex;
  position:relative;
  margin-right:4px;
  padding:4px;
  cursor:pointer;
}

label input {
  position:absolute;
  opacity:0;
}

label i {
  height:22px;
  width:22px;
  background:var(--swatch);
  border-radius:50%;
  display:block;
}

input:checked+i {
  outline:1px solid #273227;
  outline-offset:2px;
}

input:focus-visible+i {
  outline:3px solid #20251f;
  outline-offset:2px;
}

button {
  display:flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  background:transparent;
  border:1px solid #a4ab9b;
  border-radius:6px;
  padding:9px 12px;
  color:inherit;
  font:inherit;
  font-size:.88rem;
}

button:hover {
  background:#e0e4d5;
}

button b {
  font-size:1.15rem;
}

@media(max-width:760px) {
  .wrap {
    width:calc(100% - 36px);
  }
  header {
    min-height:64px;
  }
  .intro {
    grid-template-columns:1fr;
    gap:30px;
    padding:35px 0;
  }
  .stage {
    height:245px;
  }
  .caption,.panel {
    padding:14px 16px;
  }
  .brand {
    font-size:1.7rem;
  }
  h1 {
    font-size:clamp(3rem,10vw,4.6rem);
  }
  p {
    margin:15px 0 18px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .model {
    transition:none;
  }
}

.section-name {
  font-size:.88rem;
  color:#596054;
}
