:root {
  color-scheme: light;
  --paper: #f4f3f0;
  --white: #fff;
  --ink: #191919;
  --muted: #55534e;
  --line: #ccc7bf;
  --red: #ee3215;
  --red-text: #a82615;
  --red-dark: #982b1b;
  --mineral: #9c9994;
  --display: Georgia, "Times New Roman", serif;
  --body: "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.22,.75,.22,1);
  --gutter: clamp(1.25rem, 5.2vw, 7rem);
  --header: 5rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.55 var(--body); }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul { list-style: none; padding: 0; margin: 0; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid #ad3019; outline-offset: 5px; }
.lab :focus-visible, .visit :focus-visible, dialog :focus-visible { outline-color: currentColor; }
.skip { position: fixed; z-index: 40; left: 1rem; top: .8rem; padding: .7rem 1rem; background: var(--white); transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }
.wrap { width: min(100%, 106rem); padding-inline: var(--gutter); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 9vw, 9rem); scroll-margin-top: var(--header); }
.eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red-text); }
.display, .hero h1 { font-family: var(--display); font-weight: 400; letter-spacing: -.07em; line-height: .93; text-wrap: balance; }
.display { font-size: clamp(2.9rem, 6.9vw, 8.25rem); }
.display em, .hero h1 em { font-weight: 400; color: var(--red-text); }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.button {
  display: inline-flex; min-height: 3.25rem; align-items: center; gap: .85rem; justify-content: space-between;
  border: 1px solid transparent; padding: .7rem 1rem; font-size: .84rem; font-weight: 650;
  transition: background .24s, color .24s, transform .24s var(--ease);
}
.button:hover { transform: translateY(-3px); }
.button span, .text-button span { font-size: 1.12rem; line-height: 1; }
.primary { background: var(--ink); color: var(--white); }
.primary:hover { background: var(--red-text); }
.outline { border-color: #969086; }
.outline:hover { background: var(--white); }
.light { color: var(--ink); background: var(--paper); }
.light:hover { background: var(--white); }
.inverse { border-color: #ffffffb0; }
.inverse:hover { background: #0003; }
.text-button { display: inline-flex; align-items: center; min-height: 2.75rem; gap: .75rem; border: 0; border-bottom: 1px solid; padding: 0; background: none; color: var(--red-text); font-size: .84rem; font-weight: 700; }
.text-button:hover span { transform: translate(.1rem, -.1rem); }
.text-button span { transition: transform .2s var(--ease); }

.header { position: sticky; top: 0; z-index: 10; background: var(--paper); transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 1px 0 #19191929, 0 8px 24px #1919190b; }
.header-inner { width: min(100%, 106rem); min-height: var(--header); margin: auto; padding: .7rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { flex: none; }
.brand img { width: 4.15rem; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 3.3rem); font-size: .84rem; font-weight: 650; }
.nav a { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .5rem; }
.nav a:hover { color: var(--red-text); }
.nav .nav-contact { border-left: 1px solid var(--line); padding-left: 1.25rem; color: var(--red-text); }
.progress { position: absolute; inset: auto 0 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.menu-toggle { align-items: center; gap: .55rem; min-height: 2.75rem; padding: .4rem .65rem; background: transparent; border: 1px solid var(--line); }
.menu-toggle span { font-size: 1.15rem; transition: rotate .25s; }
.menu-toggle[aria-expanded="true"] span { rotate: 45deg; }

.hero { position: relative; min-height: min(48rem, 82svh); display: grid; align-items: center; isolation: isolate; scroll-margin-top: var(--header); }
.hero-copy { z-index: 1; padding-block: 4rem; pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.hero h1 { font-size: clamp(3.55rem, 8.4vw, 10.5rem); margin: 1.6rem 0 1.4rem; text-wrap: initial; }
.hero h1 span, .hero h1 em { display: block; width: fit-content; animation: title-in .8s var(--ease) both; }
.hero h1 em { animation-delay: .1s; }
.hero-description { max-width: 21rem; margin-bottom: 1.8rem; color: var(--muted); }
.hero-visual { position: absolute; inset: 0 0 0 49%; overflow: clip; isolation: isolate; background: #be3521; color: #fff; }
.hero-art { position: absolute; inset: -8%; display: grid; place-items: center; background: radial-gradient(ellipse at 68% 30%, #e77548 0%, #bc301e 48%, #652319 100%); }
.hero-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(112deg, #fff0 0 4px, #fff1 5px, #fff0 6px 11px); opacity: .18; mix-blend-mode: soft-light; }
.hero-caption { position: absolute; inset: auto 1.4rem 1.4rem; display: flex; justify-content: space-between; gap: .5rem; border-top: 1px solid #ffffff75; padding-top: .7rem; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.aperture { position: absolute; height: 78%; aspect-ratio: 1; border-radius: 50%; border: 1px solid #fff5; box-shadow: 0 0 0 1.2rem #fff1, 0 0 0 3rem #fff1, inset 0 0 6rem #391a2b69; rotate: -20deg; scale: .86 1; }
.frame { --rim: #312421; position: relative; display: flex; align-items: center; justify-content: center; width: 69%; rotate: -12deg; filter: drop-shadow(.15rem .8rem .75rem #32140d70); transition: transform .65s var(--ease); }
.frame i { flex: 1; aspect-ratio: 1.2; border: clamp(.35rem, 1vw, .9rem) solid var(--rim); border-radius: 40% 33% 45% 49%; box-shadow: inset 0 0 1.05rem #2a101073, 0 1px 1px #f2c9ae70; background: linear-gradient(134deg, #fff1 10%, #fff5 28%, #fff0 35%, #ffeca412 80%); }
.frame i:last-child { border-radius: 33% 40% 49% 45%; }
.frame b { width: 10%; height: .7rem; border-top: .3rem solid var(--rim); border-radius: 60%; }
.hero-art .frame { --rim: #331b17; width: min(72%, 41rem); rotate: -26deg; transform: perspective(50rem) rotateY(-20deg) rotateX(12deg); }
.hero-art .frame i { aspect-ratio: 1.14; border-width: clamp(.75rem, 2.1vw, 2rem); border-top-color: #291512; box-shadow: inset .2rem .7rem .8rem #461a1d82, 0 .14rem .18rem #ffad747a; }
.hero-art .frame b { border-top-width: clamp(.45rem, 1vw, .9rem); }
@keyframes title-in { from { clip-path: inset(0 0 100%); transform: translateY(.28em); opacity: .15; } to { clip-path: inset(-20% -10% -35%); transform: none; opacity: 1; } }

.story { border-bottom: 1px solid var(--line); }
.story-content { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 2rem; margin: 1.7rem 0 3.5rem; }
.story-detail { max-width: 27rem; color: var(--muted); }
.experience { display: flex; align-items: baseline; gap: .7rem; color: var(--ink); margin-bottom: .75rem; }
.experience span { font: 4.8rem/.85 var(--display); letter-spacing: -.1em; color: var(--red-text); }
.pillars { display: grid; grid-template-columns: repeat(3,1fr); border-block: 1px solid var(--line); }
.pillars li { padding: 1.2rem 1rem 1.2rem 0; }
.pillars li + li { border-left: 1px solid var(--line); padding-left: 1.3rem; }
.pillars strong { display: block; font: 1.55rem/1.2 var(--display); margin-bottom: .2rem; }
.pillars span { color: var(--muted); font-size: .85rem; }

.showcase { background: #ebe8e2; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.section-head h2, .lab h2, .repair h2, .store h2, .visit h2 { margin-top: 1.05rem; }
.section-head > p { max-width: 19rem; color: var(--muted); }
.gallery-note { font-size: .76rem; color: var(--muted); margin: 2rem 0 .65rem; }
.product-gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(.75rem, 2vw, 1.8rem); }
.product h3 { font: clamp(1.3rem, 2.5vw, 2.25rem)/1.12 var(--display); margin-top: 1.05rem; letter-spacing: -.04em; }
.product p { color: var(--muted); font-size: .9rem; margin: .5rem 0 .6rem; max-width: 27ch; }
.product-art { aspect-ratio: 1.19; position: relative; display: grid; place-items: center; overflow: hidden; }
.product-art:is(:hover, :focus-within) .frame { transform: scale(1.08); }
.product-art .product-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-position: center 43%; transition: transform .65s var(--ease); }
.product:focus-within .product-photo, .product-art:hover .product-photo { transform: scale(1.045); }
.optical { background: radial-gradient(ellipse at 28% 18%, #fbebdc, #bc8870); }
.solar { background: radial-gradient(ellipse at 28% 18%, #aaa292, #474447); }
.solar .frame { --rim: #1a171a; rotate: 11deg; }
.solar .frame i { background: linear-gradient(145deg, #524945 0%, #262326 62%, #181618 100%); border-radius: 48% 44% 47% 45%; }
.lens { background: radial-gradient(ellipse at 24% 10%, #eeefec, #a2aeaa); }
.lens i, .lens b { position: absolute; width: 36%; aspect-ratio: 1; border-radius: 50%; border: 1px solid #fff9; background: linear-gradient(135deg, #fff6, #cbdfe45e 32%, #fff0 54%, #feefc855); transform: rotateX(22deg); box-shadow: .7rem 1rem 1.5rem #20272c33, inset .35rem .2rem 1rem #eff4e9aa; }
.lens i { translate: -28% -21%; }
.lens b { translate: 31% 24%; }
.gallery-controls { display: none; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; min-height: 2.75rem; font-variant-numeric: tabular-nums; font-size: .86rem; }
.gallery-controls > div { display: flex; gap: .4rem; }
.gallery-controls button, .viewer-close { min-width: 2.75rem; min-height: 2.75rem; border: 1px solid #a9a198; background: var(--paper); }
.gallery-controls button:disabled { opacity: .45; cursor: default; }

.lab { background: #1d1a19; color: #f8f4ed; }
.lab-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: clamp(2rem, 6vw, 8rem); }
.lab-copy { position: sticky; top: calc(var(--header) + 2.25rem); }
.lab .eyebrow, .lab .display em { color: #ff9a82; }
.lab-copy > p:last-child { max-width: 23rem; margin-top: 1.6rem; color: #d2cbc3; }
.lab-visual { height: clamp(16rem, 34vw, 36rem); display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 46%, #674c46, #2b2220 53%, #23201d 75%); }
.calibration { position: relative; width: min(72%, 25rem); aspect-ratio: 1; display: grid; place-items: center; rotate: -18deg; }
.calibration i, .calibration b { grid-area: 1/1; width: 94%; aspect-ratio: 1; border: 1px solid #cfa28e66; border-radius: 50%; }
.calibration i:nth-child(2) { scale: .83; border-style: dashed; }
.calibration i:nth-child(3) { scale: .68; box-shadow: 0 0 2.5rem #f283622c, inset 0 0 2.2rem #0005; }
.calibration b { scale: .49; background: radial-gradient(ellipse at 35% 22%, #e2b7a3a1, #8c553c2e 35%, #241b25 78%); }
.lab-step { padding-block: 1.25rem; border-bottom: 1px solid #76645b; }
.lab-step h3 { font: 1.55rem/1.2 var(--display); }
.lab-step p { margin-top: .35rem; color: #d2cbc3; font-size: .9rem; }

.repair { display: grid; grid-template-columns: .95fr 1.05fr; align-items: start; gap: clamp(2rem, 7vw, 8rem); }
.repair .display, .store .display { font-size: clamp(2.6rem, 5.3vw, 6.05rem); }
.repair-intro > p:not(.eyebrow), .store-layout > div > p:not(.eyebrow) { color: var(--muted); max-width: 32rem; margin-top: 1.25rem; }
.repair-intro a, .store a.text-button { margin-top: 1.15rem; }
.service-list { border-top: 1px solid var(--line); }
.service-list details { border-bottom: 1px solid var(--line); }
.service-list summary { list-style: none; cursor: pointer; min-height: 4.25rem; display: flex; align-items: center; justify-content: space-between; gap: .7rem; font: clamp(1.25rem, 2.2vw, 1.9rem)/1.12 var(--display); }
.service-list summary::-webkit-details-marker { display: none; }
.service-list summary span::before { content: "+"; color: var(--red-text); }
.service-list [open] summary span::before { content: "−"; }
.service-list details p { padding: 0 1.7rem 1.25rem 0; color: var(--muted); font-size: .91rem; }
.service-list details[open] p { animation: detail-in .25s var(--ease); }
@keyframes detail-in { from { transform: translateY(-.25rem); opacity: .45; } to { transform: none; opacity: 1; } }

.store { background: #e7e0d7; }
.store-layout { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(2rem, 7vw, 8rem); }
.store-photo { padding: clamp(1.6rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem) 1rem; background: #d4c5b8; }
.store-photo a { display: block; width: min(100%, 33rem); margin: auto; box-shadow: 0 1rem 2rem #25170f35; }
.store-photo img { width: 100%; height: auto; transition: filter .3s; }
.store-photo a:hover img { filter: brightness(1.08); }
.store-photo figcaption { text-align: center; font-size: .73rem; color: #504139; margin-top: .85rem; }
.visit { background: var(--red-dark); color: #fff7ee; }
.visit-layout { display: grid; grid-template-columns: 1fr .8fr; align-items: end; gap: clamp(2rem, 7vw, 8rem); }
.visit .eyebrow, .visit .display em { color: #ffe4d1; }
.visit .actions { margin-top: 2rem; }
.contact { border-top: 1px solid #ffffff71; }
.contact > div { display: grid; grid-template-columns: minmax(5.2rem,.6fr) 1.4fr; gap: .8rem; border-bottom: 1px solid #ffffff71; padding-block: 1rem; }
.contact dt { font-size: .78rem; font-weight: 700; padding-top: .13rem; }
.contact dd { font-size: .95rem; overflow-wrap: anywhere; }
.contact a:hover { text-decoration: underline; }
.footer { background: #1e1b1a; color: var(--paper); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; align-items: start; padding-block: 2.7rem 1.15rem; gap: 1.25rem; }
.footer strong { font: 1.45rem/1.2 var(--display); }
.footer p { font-size: .83rem; color: #d6c9c0; margin-top: .45rem; }
.footer .text-button { color: var(--paper); }
.footer .credit { grid-column: 1/-1; padding-top: 1rem; border-top: 1px solid #6a5b53; }

dialog { width: min(38rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); border: 0; padding: 0; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #160f0de0; }
.viewer-inner { position: relative; }
.viewer-close { position: absolute; right: .85rem; top: .85rem; z-index: 1; font-size: 1.45rem; border-radius: 50%; }
.viewer-visual .product-art { aspect-ratio: 1.75; }
.viewer-visual .product-photo { object-fit: contain; object-position: center; }
.viewer-visual > img { height: min(55vh, 33rem); width: 100%; object-fit: contain; background: #221e1b; }
.viewer-copy { padding: 1.3rem clamp(1.15rem, 4vw, 2.1rem) 1.75rem; }
.viewer-copy h2 { font: clamp(1.7rem, 5vw, 2.9rem)/1.1 var(--display); letter-spacing: -.04em; }
.viewer-description { margin-top: .55rem; color: var(--muted); }
.viewer-contact { margin-top: .6rem; }

.is-revealed { animation: reveal-in .68s var(--ease) both; }
@keyframes reveal-in { from { translate: 0 1.3rem; opacity: .45; } to { translate: 0 0; opacity: 1; } }
@supports (animation-timeline: scroll()) {
  .progress { animation: read-progress linear both; animation-timeline: scroll(root); }
  @keyframes read-progress { to { transform: scaleX(1); } }
  @media (min-width: 55rem) and (prefers-reduced-motion: no-preference) {
    .hero-art { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 55rem; }
    .calibration { animation: calibrate linear both; animation-timeline: view(); animation-range: entry 0% exit 80%; }
    @keyframes drift { to { transform: translateY(11%) scale(1.08); } }
    @keyframes calibrate { from { rotate: -27deg; translate: 0 4%; } to { rotate: 12deg; translate: 0 -4%; } }
  }
}

@media (max-width: 62rem) {
  .hero { min-height: 39rem; }
  .hero-visual { left: 52%; }
}
@media (max-width: 50rem) {
  :root { --header: 4.15rem; }
  .header-inner { flex-wrap: wrap; gap: .3rem 1rem; }
  .brand img { width: 3.5rem; }
  .nav { gap: .1rem .8rem; flex-wrap: wrap; }
  .nav .nav-contact { border: 0; padding-left: 0; }
  .menu-toggle:not([hidden]) { display: inline-flex; }
  .header.enhanced .nav { position: absolute; inset: 100% 0 auto; display: grid; visibility: hidden; gap: 0; padding: .6rem var(--gutter) 1rem; background: var(--paper); box-shadow: 0 1rem 2rem #22140d1f; opacity: 0; transform: translateY(-.5rem); transition: opacity .23s, transform .23s, visibility .23s; }
  .header.enhanced .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .header.enhanced .nav a { border-bottom: 1px solid var(--line); }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: auto; }
  .hero-copy { padding-block: 2.75rem 1.9rem; }
  .hero h1 { font-size: clamp(3.55rem, 10vw, 7rem); margin-block: 1rem; }
  .hero-visual { position: relative; inset: auto; min-height: 13.8rem; height: min(56vw, 23rem); }
  .hero-art .frame { width: min(60%,24rem); }
  .hero-caption { bottom: .7rem; }
  .aperture { height: 100%; }
  .lab-copy { position: static; }
  .lab-layout { grid-template-columns: .85fr 1.15fr; }
}
@media (max-width: 42rem) {
  .story-content, .lab-layout, .repair, .store-layout, .visit-layout { grid-template-columns: minmax(0,1fr); }
  .story-content { gap: 1.7rem; margin-bottom: 2rem; }
  .pillars { grid-template-columns: minmax(0,1fr); }
  .pillars li + li { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .section-head { display: block; }
  .section-head > p { margin-top: .95rem; }
  .gallery-note { margin-top: 1.05rem; }
  .gallery-controls:not([hidden]) { display: flex; }
  .product-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: .35rem; padding: .35rem; margin: -.35rem; scrollbar-width: thin; }
  .product { flex: 0 0 min(83%, 23rem); scroll-snap-align: start; padding-bottom: .6rem; }
  .product-art { aspect-ratio: 1.26; }
  .lab-visual { height: min(72vw,23rem); }
  .visit .actions { margin-top: 1.4rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer .text-button { justify-self: start; }
}
@media (max-width: 23rem) {
  .hero .button { padding-inline: .58rem; gap: .35rem; font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001s !important; transition-duration: .001s !important; }
  .progress { display: none; }
}
