/* Brushed hard shell, dark rubber corners and a fitted foam tray. */
.case {
  --machined-edge: #899392;
  --shell-seam: #121819;
}
.case .lid, .case .base {
  border: 5px solid #566162;
  border-radius: 31px;
}
.case .base {
  background: linear-gradient(145deg, #9aa5a4, #4c5656 47%, #30393b);
  box-shadow: inset 0 0 0 2px #a7adab, inset 0 0 0 7px #252d2e,
              0 3px 0 #788181, 0 8px 0 #30393a, 0 10px 0 #66706e,
              0 18px 0 #202729, 0 21px 0 #121919, 0 30px 36px #0009;
}
.case .lid-skin {
  background:
    radial-gradient(ellipse at 24% 10%, #ffffff28, transparent 65%),
    repeating-linear-gradient(90deg, transparent 0 20px, #171f2366 21px 23px,
      #1a2023b3 24px, #aeb7b56b 26px, transparent 28px 30px),
    linear-gradient(135deg, #606c6d, #394448 53%, #3f4b4c);
  box-shadow: inset 0 0 0 2px #a1aaaa, inset 0 0 0 6px #3b4445,
              inset 0 0 25px 9px #141c1d75, 0 4px 0 #929b99,
              0 7px 0 var(--shell-seam), 0 12px 0 #4c5555, 0 15px 0 #222828;
}
.case .lid::before, .case .lid::after { display: none; }
.case .corner {
  width: 49px;
  height: 49px;
  border: 0;
  border-radius: 5px;
  background: radial-gradient(circle at 25% 25%, #9ca5a6 0 1px, #202627 2px 3px, transparent 4px),
              linear-gradient(145deg, #4a5355, #171e20 65%);
  clip-path: polygon(0 0,100% 0,100% 24%,25% 100%,0 100%);
  box-shadow: inset 1px 1px 2px #737b7c;
}
.case .corner.tl { left: 0; top: 0; border-top-left-radius: 25px; }
.case .corner.tr { right: 0; top: 0; transform: rotate(90deg); }
.case .corner.br { right: 0; bottom: 0; transform: rotate(180deg); }
.case .corner.bl { left: 0; bottom: 0; transform: rotate(270deg); }
.case .stamp {
  padding: 12px 25px 13px;
  transform: translateZ(2px);
  border: 1px solid #899494;
  border-radius: 5px;
  background: linear-gradient(145deg, #313c3c, #1d2527);
  box-shadow: inset 0 1px 0 #ffffff25, 0 2px 4px #101718b0;
  color: #edf2ec;
}
.stamp strong { font: 700 36px/1.1 system-ui, sans-serif; letter-spacing: -.06em; }
.stamp strong span { color: var(--lime); }
.stamp small { display: block; margin-top: 4px; font: 600 9px/1.2 system-ui, sans-serif; letter-spacing: .2em; }
.case .lid-interior {
  inset: 1px;
  border: 5px solid #293031;
  border-radius: 25px;
  background: linear-gradient(140deg, #ffffff10, transparent 46%, #00000030),
              url("assets/case-foam.webp") repeat center / 122px 122px;
  box-shadow: inset 0 0 0 2px #151a1b, inset 0 4px 19px 5px #050809ab, 0 0 0 1px #87908c;
}
.case .lining {
  inset: 14px;
  border: 2px solid #181f20;
  border-radius: 18px;
  background: radial-gradient(ellipse at 40% 30%, #ffffff0c, transparent 70%),
              repeating-linear-gradient(123deg, #242e30 0 1px, #273132 1px 3px);
  box-shadow: inset 0 0 0 2px #394344, inset 0 8px 22px #090f10aa;
}
.case .wall { border-color: #5b6665; background: linear-gradient(#697475, #303839); }
.case .wall.bottom { background: #252c2c; }
.case .handle {
  bottom: -57px;
  height: 42px;
  width: 24%;
  left: 38%;
  border: 9px solid #545e5d;
  border-top: 0;
  background: transparent;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 3px 1px #13191a;
}
.handle::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 8%;
  right: 8%;
  height: 16px;
  border-radius: 6px;
  background: repeating-linear-gradient(90deg, transparent 0 5px, #10171844 5px 7px),
              linear-gradient(#626b68, #303736 55%, #19201e);
}
.case .latch {
  width: 39px;
  height: 30px;
  border: 2px solid #343e3f;
  border-radius: 5px;
  background: linear-gradient(105deg, #9ca6a4, #cad1cf 30%, #747e7d 75%, #919c98);
  box-shadow: inset 0 1px 1px #e1e8df, 0 3px 3px #101617;
}
.case .latch::after {
  content: '';
  position: absolute;
  inset: 4px 5px 5px;
  border: 1px solid #505a58;
  border-radius: 2px;
  background: linear-gradient(#404c4a, #242e2d 40%, #3f4945);
  box-shadow: inset 0 -2px #aec384;
}
.case .base::before, .case .base::after {
  background: repeating-linear-gradient(to right, transparent 0 22%, #252c2d 23% 25%, transparent 26%),
              linear-gradient(#424b4c, #b2bbba 35%, #6d7776 65%, #394342);
}

.engineering {background:#0b1415;border-top:1px solid #ffffff19;padding:clamp(64px,7vw,110px) 6vw;color:#edf2ed;}
.range-intro {display:grid;grid-template-columns:1fr 2fr;gap:28px;align-items:start}
.range-intro .eyebrow {margin:0;}
.range-intro h2 {font:700 clamp(36px,4.2vw,70px)/1.05 system-ui,sans-serif;letter-spacing:-.055em;margin:0;max-width:24ch}
.range-intro h2+p {font-size:clamp(16px,1.35vw,21px);line-height:1.65;color:#aebcb8;max-width:72ch;margin:24px 0 0;}
.range-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:#2b3939;border:1px solid #2b3939;border-radius:24px;overflow:hidden;margin:clamp(32px,4vw,64px) 0 0;}
.range-grid>div {background:#0b1415;padding:clamp(20px,2.2vw,38px);}
.range-grid dt {font-weight:700;font-size:18px;}
.range-grid dd {margin:12px 0 0;color:#aebcb8;line-height:1.75;overflow-wrap:anywhere;}
@media (max-width:1000px) {.range-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.range-intro{grid-template-columns:1fr}}
@media (max-width:700px) {nav a[href="#engineering"]{display:none;}}
@media (max-width:540px) {.range-grid{grid-template-columns:1fr}.range-grid>div{padding:18px 20px}.range-grid dd{margin-top:4px}}

/* Deep flight-case construction, measured from the tray opening down to the underside. */
.case {
  --tray-depth: 84px;
  --cover-depth: 32px;
  transform: rotateX(calc(52deg - var(--open) * 19deg))
             rotateY(calc(18deg - var(--open) * 15deg))
             rotateZ(calc(-14deg + var(--open) * 9deg));
}
.case .base {
  --depth: var(--tray-depth);
  box-shadow: inset 0 0 0 2px #acb6b6, inset 0 0 0 7px #343e40;
}
.case .lid {
  --depth: var(--cover-depth);
  transform: translateZ(1px) rotateX(calc(112deg * var(--open))) translateZ(var(--cover-depth));
  box-shadow: inset 0 0 0 2px #a1aaaa, inset 0 0 0 6px #3b4445,
              inset 0 0 25px 9px #141c1d75;
}
.case .shell-band {
  position: absolute; inset: -5px;
  transform-style: preserve-3d;
  pointer-events: none;
}
.case .shell-face {
  position: absolute; top: 0; left: 0; height: var(--depth);
  transform-origin: 0 0;
  background:
    linear-gradient(rgb(7 15 18 / var(--shade)), rgb(7 15 18 / var(--shade))),
    linear-gradient(to bottom,
      #cbd4d4 0, #839093 3px, #404b4e 7px, #151b1d 9px,
      #657174 11px, #3c4649 14px, #344044 32%, #283236 74%,
      #191f22 calc(100% - 12px), #7e898c calc(100% - 11px),
      #aab5b6 calc(100% - 8px), #525f63 calc(100% - 4px), #263035 100%);
}
.case .lid .shell-face {
  background:
    linear-gradient(rgb(7 15 18 / var(--shade)), rgb(7 15 18 / var(--shade))),
    linear-gradient(#b1bdbd, #6c787a 4px, #354045 7px, #4a5659 40%,
                    #333d40 72%, #8a9797 78%, #4a5557 88%, #171e20 89%);
}
.case .shell-floor {
  position: absolute; inset: -4px; border-radius: 30px;
  transform: translateZ(calc(-1 * var(--tray-depth)));
  background: #252e30; box-shadow: 5px 28px 32px #0008;
  pointer-events: none;
}
.case .lid-interior {
  inset: -3px; border-radius: 29px;
  transform: translateZ(calc(-1 * var(--cover-depth))) rotateX(180deg);
  border: 7px solid #424d4f;
  box-shadow: inset 0 0 0 2px #131b1e, inset 0 10px 20px 4px #030809bd, 0 0 0 2px #849093;
}
.case .lining {
  box-shadow: inset 0 0 0 3px #394447, inset 4px 12px 22px #080d10b0;
}
.case .latch {
  height: 43px; bottom: -44px;
  transform-origin: top;
  transform: translateY(5px) rotateX(-84deg);
}
.case .handle { transform: translateZ(-42px); }
.case .latch::after {
  width: auto; height: auto; inset: 5px 6px 6px;
  border: 2px solid #8c999a;
  background: linear-gradient(110deg, #3b474a, #899597 45%, #505d5f 65%);
  box-shadow: inset 0 4px 2px #253035, inset 0 -4px 1px #b8c3c2;
}
.case .handle::before {
  content: ''; position: absolute; top: -6px; left: -12px; right: -12px; height: 13px;
  background:
    radial-gradient(circle at 8px 5px, #242e30 1px, transparent 2px),
    radial-gradient(circle at calc(100% - 8px) 5px, #242e30 1px, transparent 2px),
    linear-gradient(100deg, #9aa8a7, #485456) left / 16px 100% no-repeat,
    linear-gradient(100deg, #9aa8a7, #485456) right / 16px 100% no-repeat;
}

.case .lid {
  background: transparent; border-color: transparent; box-shadow: none;
}
.case .lid-skin {
  position:absolute; inset:-5px; display:grid; place-items:center;
  border:5px solid #566162; border-radius:31px;
  transform:translateZ(.2px); backface-visibility:hidden;
}
/* Keep the semantic tray controls in their original 3D plane above the painted base. */
.case-render {position:absolute;max-width:none;pointer-events:none;display:none;}
.painted-case .case-render {display:block;}
.painted-case .tray-surface {z-index:0;}
.painted-case .case {z-index:1;}
.painted-case .tray-front-surface {z-index:2;}
.painted-case .cover-surface {z-index:3;}
.scene.painted-case .base {
  background:transparent;border-color:transparent;box-shadow:none;
}
.painted-case .base > :not(.objects),
.painted-case .base::before,.painted-case .base::after,.painted-case .lid {visibility:hidden;}
