/* ==========================================================================
   Dioptre — independent optician theme
   Light, precise, warm. Modern CSS throughout (nesting, @property, oklch,
   container queries, :has(), scroll-driven animations, @starting-style,
   popover, view transitions, details name= accordions), each with a calm
   static fallback.
   ========================================================================== */

@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-var.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

@property --p { syntax: "<number>"; inherits: false; initial-value: 0.5; }
@view-transition { navigation: auto; }

:root {
	--paper: #f4f1ea;
	--paper-2: #ebe5d9;
	--card: #fbfaf6;
	--ink: #15171c;
	--ink-2: #2a2d35;
	--muted: color-mix(in oklch, var(--ink) 60%, var(--paper));
	--line: color-mix(in oklch, var(--ink) 14%, transparent);
	--accent: #2f43c9;
	--accent-2: #e2552d;
	--accent-soft: color-mix(in oklch, var(--accent) 12%, var(--paper));
	--f-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
	--f-body: "Jost", "Futura", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
	--gutter: clamp(1rem, 4vw, 3rem);
	--wrap: 1280px;
	--r: 18px;
	--ease: cubic-bezier(.2, .7, .1, 1);
	--ease-out: cubic-bezier(.16, 1, .3, 1);
	interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 400; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in oklch, var(--accent) 25%, transparent); }
.screen-reader-text, .dpt-skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dpt-skip:focus { position: fixed; top: 1rem; left: 1rem; z-index: 999; padding: .7rem 1rem; background: var(--ink); color: var(--paper); border-radius: 10px; }

.dpt-wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.dpt-eyebrow { font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem; display: flex; align-items: center; gap: .5em; }
.dpt-h1 { font: 400 clamp(2.8rem, 6.4vw, 5.6rem)/.98 var(--f-display); letter-spacing: -.015em; }
.dpt-h2 { font: 400 clamp(2.1rem, 4.4vw, 3.6rem)/1.02 var(--f-display); letter-spacing: -.01em; }
.dpt-h3 { font: 400 1.6rem/1.15 var(--f-display); }
.dpt-mono { font: 500 .85em var(--f-mono); color: var(--muted); }
.dpt-lede { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }
.dpt-small { font-size: .88rem; color: var(--muted); }
.dpt-icon { width: 1.2em; height: 1.2em; flex: none; }

.dpt-btn {
	--bg: transparent; --fg: currentColor; --bd: currentColor;
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .85em 1.4em; border-radius: 999px; border: 1.5px solid var(--bd); background: var(--bg); color: var(--fg);
	font: 500 .98rem/1 var(--f-body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
	transition: background .3s var(--ease), color .3s, border-color .3s, transform .2s;
	& .dpt-icon { transition: translate .35s var(--ease-out); }
	&:hover .dpt-icon { translate: 4px 0; }
	&:active { transform: scale(.97); }
}
.dpt-btn--solid { --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); &:hover { --bg: var(--accent); --bd: var(--accent); } }
.dpt-btn--line { --bd: var(--line); &:hover { --bd: var(--ink); } }
.dpt-btn--light { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); &:hover { --bg: #fff; } }
.dpt-btn--small { padding: .6em 1.05em; font-size: .9rem; }
.dpt-btn--block { width: 100%; }
.dpt-link { display: inline-flex; align-items: center; gap: .45em; font-weight: 500; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: .15em; & .dpt-icon { transition: translate .35s var(--ease-out); } &:hover .dpt-icon { translate: 4px 0; } }
.dpt-chip { display: inline-flex; align-items: center; gap: .4em; padding: .5em 1em; border-radius: 999px; border: 1px solid var(--line); font-size: .92rem; font-weight: 500; cursor: pointer; text-decoration: none; transition: background .25s, color .25s, border-color .25s;
	& input { position: absolute; opacity: 0; pointer-events: none; }
	&:hover { border-color: var(--ink); }
	&:has(input:checked), &[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
	&:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
}
.dpt-tag { display: inline-block; padding: .25em .7em; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 500 .78rem var(--f-mono); letter-spacing: .04em; margin: 0 .2rem .2rem 0; }
.dpt-swatch { width: .9em; height: .9em; border-radius: 50%; background: var(--frame); box-shadow: 0 0 0 1px var(--line), inset 0 -2px 3px rgb(0 0 0 / .25); display: inline-block; }

/* ---------- Header ---------- */

.dpt-head { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s, box-shadow .35s, backdrop-filter .35s; view-transition-name: site-head;
	&.is-scrolled { background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
}
.dpt-head__inner { width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; min-height: 76px; display: flex; align-items: center; gap: 2rem; }
.dpt-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.dpt-brand__mark { width: 46px; height: 23px; fill: none; stroke: var(--ink); stroke-width: 2; }
.dpt-brand__name { font: 400 1.5rem/1 var(--f-display); letter-spacing: -.01em; & em { font-style: italic; color: var(--muted); margin-left: .25em; } }
.dpt-brand__logo { max-height: 44px; width: auto; }
.dpt-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.8rem; }
.dpt-nav__list a { text-decoration: none; font-weight: 500; font-size: .98rem; position: relative;
	&::after { content: ""; position: absolute; inset: auto 0 -5px; height: 1.5px; background: var(--accent); scale: 0 1; transform-origin: right; transition: scale .4s var(--ease-out); }
	&:hover::after { scale: 1 1; transform-origin: left; }
}
.dpt-nav__list .current-menu-item > a::after, .dpt-nav__list .current_page_item > a::after { scale: 1 1; }
.dpt-nav__meta, .dpt-nav__close { display: none; }
.dpt-head__actions { display: flex; align-items: center; gap: .9rem; }
.dpt-head__phone { display: inline-flex; align-items: center; gap: .4em; text-decoration: none; font: 500 .9rem var(--f-mono); }
.dpt-head__menu, .dpt-nav__close { background: none; border: 0; padding: .4rem; cursor: pointer; display: none; & .dpt-icon { width: 26px; height: 26px; } }
@media (min-width: 960px) {
	.dpt-nav[popover] { display: block; position: static; inset: auto; margin: 0; padding: 0; border: 0; background: none; color: inherit; overflow: visible; }
}
@media (max-width: 959px) {
	.dpt-head__phone span { display: none; }
	.dpt-head__menu { display: inline-flex; }
	.dpt-nav[popover] {
		position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0;
		padding: 6rem var(--gutter) 2rem; background: var(--paper); color: var(--ink);
		transition: opacity .3s, translate .45s var(--ease-out), display .45s allow-discrete, overlay .45s allow-discrete;
		@starting-style { opacity: 0; translate: 0 -10px; }
		&:not(:popover-open) { opacity: 0; translate: 0 -10px; }
	}
	.dpt-nav__close { display: inline-flex; position: absolute; top: 1.1rem; right: var(--gutter); }
	.dpt-nav__list { flex-direction: column; gap: .3rem; }
	.dpt-nav__list a { font: 400 2.8rem/1.15 var(--f-display); }
	.dpt-nav__meta { display: block; margin-top: 2rem; font: 500 1rem var(--f-mono); }
}

/* ---------- Lens stage ---------- */

.dpt-stage { position: relative; overflow: clip; background: #ece6da; }
.dpt-stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s var(--ease); touch-action: pan-y; cursor: crosshair; }
[data-dpt-stage].is-live .dpt-stage__canvas { opacity: 1; }
.dpt-stage__still { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .6s; }
[data-dpt-stage].is-live .dpt-stage__still { opacity: 0; pointer-events: none; }
.dpt-stage__still .dpt-frame { width: min(60%, 420px); filter: drop-shadow(0 18px 20px rgb(60 40 20 / .25)); }
.dpt-stage__chart { position: absolute; display: grid; justify-items: center; gap: .2em; padding: 2rem 2.4rem; background: #fbfaf6; border-radius: 6px; box-shadow: 0 20px 40px -20px rgb(60 40 20 / .35); font: 500 1rem/1 var(--f-body); filter: blur(2px); color: #111;
	& span:nth-child(1) { font-size: 5rem; } & span:nth-child(2) { font-size: 3.2rem; } & span:nth-child(3) { font-size: 2.3rem; } & span:nth-child(4) { font-size: 1.7rem; } & span:nth-child(5) { font-size: 1.3rem; }
}

.dpt-hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; isolation: isolate; }
.dpt-hero .dpt-stage { position: absolute; inset: 0; z-index: -1; }
.dpt-hero__copy { align-self: center; padding-block: 120px 2rem; pointer-events: none; }
.dpt-hero__copy > * { pointer-events: auto; max-width: min(36rem, 46vw); }
.dpt-hero__title { font: 400 clamp(3rem, 6.6vw, 6.4rem)/.95 var(--f-display); letter-spacing: -.02em; margin-bottom: 1.4rem; }
.dpt-word { display: inline-block; animation: dpt-in 1.1s var(--ease-out) both; animation-delay: calc(.2s + var(--i) * 60ms);
	&:nth-child(n+5) { font-style: italic; color: var(--accent); }
}
@keyframes dpt-in { from { opacity: 0; translate: 0 .3em; filter: blur(10px); } }
.dpt-hero__text { font-size: 1.12rem; color: var(--ink-2); animation: dpt-in 1.1s .6s var(--ease-out) both; }
.dpt-hero__ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.dpt-hero__copy .dpt-hero__ctas { animation: dpt-in 1.1s .8s var(--ease-out) both; }
.dpt-hero__hint { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; font-size: .92rem; color: var(--muted); }
.dpt-status { display: inline-flex; align-items: center; gap: .5em; font: 500 .7rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: .45em .8em; border-radius: 999px; background: color-mix(in srgb, var(--card) 80%, transparent); box-shadow: 0 0 0 1px var(--line); margin: 0;
	&::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
}
.is-live .dpt-status::before, .is-live ~ * .dpt-status::before { background: #22a35a; box-shadow: 0 0 0 3px color-mix(in srgb, #22a35a 25%, transparent); }
.dpt-hero__panel { justify-self: end; align-self: end; margin: 0 var(--gutter) 1.6rem; width: min(100% - 2 * var(--gutter), 440px); animation: dpt-in 1.1s 1s var(--ease-out) both; }

.dpt-controls { display: grid; gap: 1rem; padding: 1.3rem 1.4rem 1.1rem; border-radius: var(--r); background: color-mix(in srgb, var(--card) 82%, transparent); backdrop-filter: blur(18px) saturate(150%); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgb(40 30 20 / .35); }
.dpt-rx { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; }
.dpt-rx__label { font: 500 .72rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dpt-rx__out { font: 400 1.7rem/1 var(--f-display); min-width: 3.4ch; text-align: right; font-variant-numeric: tabular-nums; }
.dpt-rx input, .dpt-range input {
	appearance: none; -webkit-appearance: none; height: 6px; border-radius: 3px; margin: 0; cursor: pointer; width: 100%;
	background: linear-gradient(90deg, var(--accent) calc(var(--p) * 100%), var(--line) calc(var(--p) * 100%));
	&::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink); box-shadow: 0 2px 8px rgb(0 0 0 / .2); }
	&::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink); }
}
.dpt-seg { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .5rem .9rem;
	& legend { float: left; font: 500 .72rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); width: 6.5rem; padding: 0; }
	& { display: flex; flex-wrap: wrap; align-items: center; }
	& label { position: relative; cursor: pointer; }
	& input { position: absolute; opacity: 0; }
	& span { display: inline-block; padding: .38em .75em; border-radius: 999px; font-size: .86rem; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s; }
	& label:hover span { box-shadow: inset 0 0 0 1px var(--ink); }
	& input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
	& input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
}
.dpt-readout { margin: 0; font: 500 .74rem/1.5 var(--f-mono); color: var(--muted); border-top: 1px solid var(--line); padding-top: .8rem; }

/* ---------- Sections ---------- */

.dpt-section { padding-block: clamp(4rem, 8vw, 7rem); }
.dpt-section--tint { background: var(--paper-2); }
.dpt-section--flush { padding-top: 0; }
.dpt-head2 { display: grid; justify-items: start; gap: .2rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); & .dpt-h2 { max-width: 20ch; margin-bottom: .9rem; } & p:not(.dpt-eyebrow) { max-width: 52ch; color: var(--muted); } }

.dpt-strip { border-block: 1px solid var(--line); background: var(--card); }
.dpt-strip__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; padding-block: 1.2rem; & p { margin: 0; display: flex; align-items: center; gap: .6rem; font-weight: 500; } & .dpt-icon { color: var(--accent); width: 1.5em; height: 1.5em; } }

.dpt-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.dpt-scard { container-type: inline-size; }
.dpt-scard__link { display: grid; gap: .6rem; align-content: start; height: 100%; padding: 1.6rem; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow .3s, translate .4s var(--ease-out);
	&:hover { translate: 0 -4px; box-shadow: 0 0 0 1px var(--ink), 0 24px 40px -28px rgb(20 20 40 / .4); }
}
.dpt-scard__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: .4rem; & .dpt-icon { width: 26px; height: 26px; } }
.dpt-scard__icon--lg { width: 68px; height: 68px; margin-bottom: 1.2rem; & .dpt-icon { width: 32px; height: 32px; } }
.dpt-scard__title { font: 400 1.75rem/1.1 var(--f-display); }
.dpt-scard__text { color: var(--muted); margin: 0; }
.dpt-scard__meta { margin: auto 0 0; padding-top: 1rem; display: flex; align-items: center; gap: 1rem; font-size: .92rem; color: var(--muted); & strong { color: var(--ink); font-weight: 600; } }
.dpt-scard__go { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: background .25s, color .25s; }
.dpt-scard__link:hover .dpt-scard__go { background: var(--ink); color: var(--paper); }

/* Face finder */
.dpt-finder { background: var(--paper-2); }
.dpt-finder__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.dpt-faces { border: 0; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.dpt-face { position: relative; display: grid; justify-items: center; gap: .3rem; padding: .8rem .9rem .6rem; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .2s, translate .3s var(--ease-out);
	& input { position: absolute; opacity: 0; }
	& svg { width: 44px; height: 52px; fill: color-mix(in oklch, var(--accent) 10%, var(--card)); stroke: var(--ink); stroke-width: 1.6; }
	& span { font-size: .86rem; font-weight: 500; }
	&:hover { translate: 0 -2px; }
	&:has(input:checked) { box-shadow: 0 0 0 2px var(--accent); & svg { fill: color-mix(in oklch, var(--accent) 22%, var(--card)); } }
	&:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
}
.dpt-finder__advice { font: 400 1.5rem/1.3 var(--f-display); max-width: 30ch; min-height: 3.9em; }
.dpt-finder__results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: .8rem; }
.dpt-mini { display: grid; gap: .2rem; padding: 1rem; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow .25s; view-transition-class: mini;
	& .dpt-frame { width: 100%; height: auto; margin-bottom: .4rem; }
	&:hover { box-shadow: 0 0 0 1px var(--ink); }
	&[hidden] { display: none; }
}
.dpt-mini__name { font: 400 1.25rem/1.1 var(--f-display); }
.dpt-mini__meta { font-size: .82rem; color: var(--muted); }
::view-transition-group(.mini) { animation-duration: .45s; }

/* Frames */
.dpt-frame .dpt-frame__lens { opacity: .9; }
.dpt-fcard { container-type: inline-size; }
.dpt-fcard__link { display: grid; height: 100%; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); text-decoration: none; overflow: clip; transition: box-shadow .3s, translate .4s var(--ease-out);
	&:hover { translate: 0 -4px; box-shadow: 0 0 0 1px var(--ink), 0 26px 44px -30px rgb(20 20 40 / .45); }
}
.dpt-fcard__stage { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 1.4rem; background: radial-gradient(70% 60% at 50% 55%, #fff, #efe9de 80%); }
.dpt-fcard__stage .dpt-frame { width: 92%; transition: transform .6s var(--ease-out); filter: drop-shadow(0 10px 10px rgb(60 40 20 / .18)); }
.dpt-fcard__link:hover .dpt-frame { transform: rotate(-3deg) scale(1.04); }
.dpt-fcard__img { width: 100%; height: 100%; object-fit: cover; }
.dpt-fcard__body { padding: 1.1rem 1.25rem 1.3rem; display: grid; gap: .25rem; }
.dpt-fcard__meta { font: 500 .7rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.dpt-fcard__title { font: 400 1.7rem/1.1 var(--f-display); }
.dpt-fcard__foot { display: flex; align-items: center; gap: .5rem; margin: .3rem 0 0; font-size: .92rem; color: var(--muted); & strong { margin-left: auto; color: var(--ink); font-weight: 600; } }

.dpt-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 22vw); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .4rem var(--gutter) 1.4rem; scroll-padding-inline: var(--gutter); scrollbar-width: thin;
	& > * { scroll-snap-align: start; }
	@supports (animation-timeline: view(inline)) {
		& .dpt-fcard { animation: dpt-rail linear both; animation-timeline: view(inline); animation-range: entry 0% entry 60%; }
	}
}
@keyframes dpt-rail { from { opacity: .3; scale: .94; } }

.dpt-lensband { background: var(--ink); color: var(--paper); --muted: color-mix(in oklch, var(--paper) 62%, var(--ink)); --line: color-mix(in oklch, var(--paper) 18%, transparent); }
.dpt-lensband__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; & p:not(.dpt-eyebrow) { color: var(--muted); max-width: 46ch; } }
.dpt-lensband__art { width: 100%; height: auto; }
.dpt-lensband__lens { fill: color-mix(in oklch, #9ec1ff 40%, transparent); stroke: #cfe0ff; stroke-width: 1.5; }
.dpt-lensband__art text { fill: currentColor; font: 500 12px var(--f-mono); opacity: .7; }

.dpt-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1rem; }
.dpt-person { padding: 1.5rem; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.dpt-person__photo { width: 76px; height: 76px; border-radius: 50%; overflow: clip; display: grid; place-items: center; margin-bottom: 1.1rem; background: radial-gradient(circle at 30% 25%, color-mix(in oklch, var(--badge) 40%, white), var(--badge)); color: #fff; font: 400 1.9rem var(--f-display); & img { width: 100%; height: 100%; object-fit: cover; } }
.dpt-person__name { font: 400 1.5rem/1.15 var(--f-display); }
.dpt-person__role { font: 500 .7rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: .3rem 0 .8rem; }
.dpt-person__bio { color: var(--muted); font-size: .96rem; }
.dpt-person__focus { font-size: .86rem; margin: 0; padding-top: .8rem; border-top: 1px solid var(--line); }

.dpt-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.dpt-quote { margin: 0; padding: 1.8rem; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 1rem; align-content: start;
	& blockquote { margin: 0; font: 400 1.45rem/1.3 var(--f-display); }
	& figcaption { font-size: .9rem; color: var(--muted); }
}
.dpt-quote__stars { display: flex; gap: 2px; margin: 0; color: var(--accent-2); & .dpt-icon { width: 16px; height: 16px; fill: currentColor; } }
.dpt-quotes__note { margin-top: 1rem; font-size: .8rem; color: var(--muted); }

.dpt-visit__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: stretch; }
.dpt-visit__card { padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.dpt-hours { margin: 1rem 0; display: grid; gap: .1rem; & div { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid var(--line); } & dt { font-weight: 500; } & dd { margin: 0; font: 400 .92rem var(--f-mono); } & .is-today { color: var(--accent); } }
.dpt-open { font: 500 .78rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: .5em; &.is-open { color: #188a4a; } &::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; } &:empty { display: none; } }
.dpt-map { width: 100%; height: 100%; min-height: 320px; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); }
.dpt-map__bg { fill: #ede7da; }
.dpt-map__river { fill: none; stroke: #b9cfe6; stroke-width: 26; }
.dpt-map__road { fill: none; stroke: #fff; stroke-width: 12; }
.dpt-map__lane { fill: none; stroke: #fbf8f2; stroke-width: 5; }
.dpt-map__block { fill: #ddd4c4; }
.dpt-map__pin { fill: var(--accent); stroke: #fff; stroke-width: 3; animation: dpt-pin 2s ease-in-out infinite; transform-origin: 196px 139px; }
@keyframes dpt-pin { 50% { scale: 1.2; } }
.dpt-map__label { font: 500 12px var(--f-mono); fill: var(--ink); }

.dpt-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(1.2rem, 3vw, 2.2rem); }
.dpt-post__link { display: grid; gap: .5rem; text-decoration: none; }
.dpt-post__cover { aspect-ratio: 3 / 2; border-radius: var(--r); overflow: clip; display: grid; place-items: center; background: var(--card); box-shadow: 0 0 0 1px var(--line); margin-bottom: .5rem; transition: box-shadow .3s; }
.dpt-post__link:hover .dpt-post__cover { box-shadow: 0 0 0 1px var(--ink); }
.dpt-post__img { width: 100%; height: 100%; object-fit: cover; }
.dpt-post__chart { display: grid; justify-items: center; gap: .15em; font: 500 1rem/1 var(--f-body); letter-spacing: .25em;
	& span:nth-child(1) { font-size: 3.6rem; } & span:nth-child(2) { font-size: 2rem; } & span:nth-child(3) { font-size: 1.2rem; filter: blur(.6px); } & span:nth-child(4) { font-size: .8rem; filter: blur(1px); }
}
.dpt-post__meta { font: 500 .7rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.dpt-post__title { font: 400 1.65rem/1.12 var(--f-display); }
.dpt-post__excerpt { color: var(--muted); margin: 0; }

/* Reveal on scroll */
@supports (animation-timeline: view()) {
	.dpt-scard, .dpt-post, .dpt-person, .dpt-quote, .dpt-grid .dpt-fcard { animation: dpt-up linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
	@keyframes dpt-up { from { opacity: 0; translate: 0 36px; } }
}
.no-st :is(.dpt-scard, .dpt-post, .dpt-person, .dpt-quote, .dpt-fcard):not(.is-in) { opacity: 0; translate: 0 24px; }
.no-st :is(.dpt-scard, .dpt-post, .dpt-person, .dpt-quote, .dpt-fcard) { transition: opacity .7s, translate .7s var(--ease-out); }

/* ---------- Inner pages ---------- */

.dpt-pagehead { padding-block: calc(76px + clamp(2.6rem, 6vw, 5rem)) clamp(2rem, 4vw, 3.4rem); }
.dpt-pagehead__text { max-width: 58ch; font-size: 1.15rem; color: var(--muted); margin-top: 1.2rem; }
.dpt-crumbs { margin-bottom: 1.2rem; font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
	& ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
	& li + li::before { content: "/"; margin-right: .45rem; opacity: .4; }
	& a { color: var(--muted); text-decoration: none; &:hover { color: var(--ink); text-decoration: underline; } }
}

.dpt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 1rem; }
.dpt-frames { padding-bottom: clamp(4rem, 8vw, 7rem); }
.dpt-filters { display: grid; gap: .8rem; margin-bottom: 2rem; padding: 1.2rem 1.4rem; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line);
	& fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
	& legend { float: left; width: 11rem; font: 500 .7rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0; }
}
.dpt-empty { padding: 2rem; text-align: center; color: var(--muted); &[hidden] { display: none; } }

.dpt-frame-page__top { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 4vw, 4rem); padding-top: calc(76px + 2rem); align-items: start; }
.dpt-frame-page__stage { position: sticky; top: 96px; display: grid; gap: 1rem; }
.dpt-frame-page__stage .dpt-stage { aspect-ratio: 4 / 3; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); }
.dpt-frame-page__stage .dpt-stage__still .dpt-frame { width: 70%; }
.dpt-frame-page__controls { display: grid; gap: .7rem; justify-items: start; & .dpt-controls { width: 100%; } }
.dpt-frame-page__info { padding-top: 1rem; display: grid; gap: .6rem; justify-items: start; }
.dpt-frame-page__colour { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); margin: 0; }
.dpt-price { font: 400 2.4rem/1 var(--f-display); margin: .6rem 0 0; & small { font: 400 .92rem var(--f-body); color: var(--muted); } }
.dpt-size { width: 100%; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.dpt-size__art { width: 100%; max-width: 420px; margin: 1rem 0; overflow: visible; & text { font: 500 10px var(--f-mono); fill: var(--accent); text-anchor: middle; } }
.dpt-size__dim { stroke: var(--accent); stroke-width: 1.2; fill: none; }
.dpt-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); width: 100%;
	& div { padding: .8rem .8rem .8rem 0; border-bottom: 1px solid var(--line); }
	& dt { font: 500 .66rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
	& dd { margin: .3rem 0 0; font: 400 1.3rem/1.2 var(--f-display); }
}
.dpt-suits { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin-top: 1rem; }
.dpt-frame-page__body { padding-block: 3rem; }

.dpt-service__head { display: grid; grid-template-columns: 1.4fr .8fr; gap: 3rem; align-items: end; }
.dpt-service__card { padding: 1.6rem; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 1.2rem; }
.dpt-steps { padding-block: 2rem 3rem; }
.dpt-steps__list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; counter-reset: s;
	& li { position: relative; padding: 1.4rem; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
	& p { margin: .8rem 0 0; }
}
.dpt-steps__n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 500 .9rem var(--f-mono); }
@supports (animation-timeline: view()) { .dpt-steps__list li { animation: dpt-up linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; } }
.dpt-service__body { padding-bottom: 4rem; }
.dpt-compare { max-width: 860px; }
.dpt-table { width: 100%; border-collapse: collapse; margin-top: 1.6rem; & th, & td { padding: .9rem .6rem; border-bottom: 1px solid var(--line); text-align: left; } & thead th { font: 500 .72rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); } & td { text-align: center; color: var(--accent); width: 22%; } & tbody th { font-weight: 400; } }

.dpt-bookpage { display: grid; grid-template-columns: 1.5fr .7fr; gap: clamp(2rem, 4vw, 3.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); align-items: start; }
.dpt-bookpage__aside { position: sticky; top: 96px; display: grid; gap: 1.2rem; }
.dpt-card { padding: 1.5rem; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); & address { font-style: normal; margin-bottom: 1.2rem; } }
.dpt-bookpage__content { width: 100%; margin: 0; font-size: 1rem; }

.dpt-form { display: grid; gap: 1.6rem; }
.dpt-form__group { border: 0; margin: 0; padding: 1.6rem; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 1rem; }
.dpt-form__legend { display: flex; align-items: center; gap: .7rem; font: 400 1.5rem/1.2 var(--f-display); padding: 0; margin-bottom: .4rem; float: left; width: 100%; & span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 500 .85rem var(--f-mono); } }
.dpt-form__alert { margin: 0; padding: 1rem 1.2rem; border-radius: 12px; background: #fbe1d8; color: #7a2410; font-weight: 600; }
.dpt-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem; }
.dpt-pick { position: relative; display: grid; gap: .2rem; padding: 1rem 1.1rem; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .2s, background .2s;
	& input { position: absolute; opacity: 0; }
	&:has(input:checked) { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
	&:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
}
.dpt-pick__title { font-weight: 600; }
.dpt-pick__meta { font-size: .86rem; color: var(--muted); }
.dpt-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.dpt-field { display: grid; gap: .4rem; align-content: start; }
.dpt-field__label { font-weight: 600; font-size: .92rem; }
.dpt-field__hint { font-size: .82rem; color: var(--muted); }
.dpt-field__error { color: #a5320f; font-size: .85rem; font-weight: 600; }
.dpt-field :is(input:not([type=radio]):not([type=checkbox]), select, textarea) { width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1px solid color-mix(in oklch, var(--ink) 22%, transparent); background: #fff;
	&:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 22%, transparent); }
	&[aria-invalid="true"], &:user-invalid { border-color: #c2410c; }
}
.dpt-field--slots { grid-column: span 2; }
.dpt-slots { display: flex; flex-wrap: wrap; gap: .4rem; min-height: 2.6rem; }
.dpt-slot { position: relative; cursor: pointer; & input { position: absolute; opacity: 0; } & span { display: inline-block; padding: .5em .8em; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); font: 500 .88rem var(--f-mono); transition: background .2s, color .2s; } &:hover span { box-shadow: inset 0 0 0 1px var(--ink); } & input:checked + span { background: var(--ink); color: var(--paper); } & input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; } }
.dpt-inline { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; & legend { width: 100%; margin-bottom: .4rem; float: left; } & label { display: inline-flex; gap: .4rem; align-items: center; } & input { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; } }
.dpt-frame-note p { margin: 0; }
.dpt-check { display: flex; gap: .7rem; align-items: start; cursor: pointer; & input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; accent-color: var(--accent); } }
.dpt-form__hp { position: absolute; left: -9999px; }
.dpt-form__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.dpt-form__summary { margin: 0; font: 400 1.25rem/1.3 var(--f-display); }
.dpt-form__small { font-size: .84rem; color: var(--muted); margin: 0; }
.dpt-book__done { padding: 2.4rem; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 2px var(--accent); &:focus { outline: none; } }
.dpt-book__tick { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; margin-bottom: 1rem; & .dpt-icon { width: 28px; height: 28px; } }
.dpt-ref { font-family: var(--f-mono); color: var(--accent); }

.dpt-faq { padding-bottom: clamp(4rem, 8vw, 7rem); & > * { max-width: 860px; } & .dpt-h2 { margin-bottom: 1.6rem; } }
.dpt-faq__item { border-top: 1px solid var(--line);
	&:last-child { border-bottom: 1px solid var(--line); }
	& summary { cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; position: relative; font: 400 1.4rem/1.3 var(--f-display); }
	& summary::-webkit-details-marker { display: none; }
	& summary::after { content: "+"; position: absolute; right: 0; top: 1rem; font: 300 1.8rem var(--f-body); transition: rotate .35s var(--ease-out); }
	&[open] summary::after { rotate: 45deg; }
	& p { color: var(--muted); padding-bottom: 1.2rem; margin: 0; }
	&::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete; }
	&[open]::details-content { block-size: auto; }
}

.dpt-lenspage__stage { display: grid; grid-template-columns: 1.4fr .8fr; gap: 1.4rem; align-items: center; }
.dpt-lenspage__stage .dpt-stage { aspect-ratio: 16 / 10; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); }
.dpt-lenspage__stage .dpt-stage__still .dpt-frame { width: 60%; }
.dpt-lenspage__controls { display: grid; gap: .8rem; justify-items: start; & .dpt-controls { width: 100%; } }

.dpt-thick { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem 4rem; }
.dpt-thick__form { display: grid; gap: 1.1rem; align-content: center; padding: 1.6rem; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.dpt-range { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: center; & span { font-weight: 500; } & output { font: 500 .92rem var(--f-mono); } & input { grid-column: 1 / -1; } }
.dpt-thick__bars { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.dpt-bar { padding: 1.4rem 1rem; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); text-align: center; display: grid; justify-items: center; gap: .2rem; }
.dpt-bar__profile { width: 80px; height: 140px; margin-bottom: .6rem; }
.dpt-bar__lens { fill: color-mix(in oklch, #8fb3ff 35%, transparent); stroke: var(--accent); stroke-width: 1.5; transition: d .4s var(--ease-out); }
.dpt-bar__idx { font: 400 2rem/1 var(--f-display); margin: 0; }
.dpt-bar__name { font-size: .86rem; color: var(--muted); margin: 0; }
.dpt-bar__mm { font: 500 1rem var(--f-mono); margin: .4rem 0 0; }
.dpt-bar__save { font-size: .8rem; color: var(--accent); margin: 0; }
.dpt-thick__rec { grid-column: 1 / -1; font: 400 1.5rem/1.3 var(--f-display); max-width: 48ch; }
.dpt-coatings__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; margin-top: 2rem; }
.dpt-coat { padding: 1.5rem; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); & p { color: var(--muted); } & .dpt-tag { color: var(--accent); } }

.dpt-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; padding-bottom: 3rem; }
.dpt-figure { border-top: 1.5px solid var(--ink); padding-top: 1rem; & p { margin: 0; color: var(--muted); } }
.dpt-figure__n { font: 400 clamp(3rem, 6vw, 4.6rem)/1 var(--f-display) !important; color: var(--accent) !important; font-variant-numeric: tabular-nums; margin-bottom: .4rem !important; }
.dpt-promise__list { margin: 2rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; counter-reset: p;
	& li { counter-increment: p; padding: 1.5rem; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
	& li::before { content: counter(p, decimal-leading-zero); display: block; font: 500 .8rem var(--f-mono); color: var(--accent); margin-bottom: .8rem; }
	& strong { display: block; font: 400 1.4rem/1.2 var(--f-display); margin-bottom: .4rem; }
}

/* Journal */
.dpt-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.4rem; }
.dpt-lead { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.dpt-lead__link { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.4rem, 4vw, 3.5rem); align-items: center; text-decoration: none; }
.dpt-lead__cover { aspect-ratio: 4 / 3; margin: 0; & .dpt-post__chart span:nth-child(1) { font-size: 7rem; } & .dpt-post__chart span:nth-child(2) { font-size: 4rem; } & .dpt-post__chart span:nth-child(3) { font-size: 2.4rem; } & .dpt-post__chart span:nth-child(4) { font-size: 1.4rem; } }
.dpt-lead__title { font: 400 clamp(2.2rem, 4vw, 3.4rem)/1.04 var(--f-display); margin: .5rem 0 1rem; }
.dpt-lead__excerpt { color: var(--muted); font-size: 1.1rem; }
.dpt-article__head { max-width: 980px; }
.dpt-byline { font-size: .9rem; color: var(--muted); margin-top: 1rem; }
.dpt-article__fig { margin-block: 0 3rem; & img { border-radius: var(--r); width: 100%; } }
.dpt-prose { width: min(100% - 2 * var(--gutter), 720px); margin-inline: auto; font-size: 1.12rem;
	& > * + * { margin-top: 1.15em; }
	& h2 { font: 400 2.2rem/1.1 var(--f-display); margin-top: 1.8em; }
	& h3 { font: 400 1.6rem/1.2 var(--f-display); margin-top: 1.5em; }
	& a { color: var(--accent); }
	& blockquote { margin-inline: 0; padding-left: 1.4rem; border-left: 2px solid var(--accent); font: italic 400 1.6rem/1.3 var(--f-display); }
	& img { border-radius: var(--r); }
	& ul, & ol { padding-left: 1.2rem; }
}
.dpt-article__layout { display: grid; grid-template-columns: minmax(0, 1fr); padding-bottom: 2rem; }
@media (min-width: 1180px) {
	.dpt-article__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr); }
	.dpt-article__layout > .dpt-prose { grid-column: 2; width: 100%; }
	.dpt-toc { grid-column: 3; grid-row: 1; align-self: start; position: sticky; top: 110px; margin-left: 3rem; max-width: 240px; }
}
@media (max-width: 1179px) { .dpt-toc { width: min(100% - 2 * var(--gutter), 720px); margin: 0 auto 2rem; padding: 1.2rem 1.4rem; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); } }
.dpt-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .94rem;
	& a { display: block; padding-left: .9rem; border-left: 2px solid var(--line); text-decoration: none; color: var(--muted); transition: color .2s, border-color .2s; &:hover { color: var(--ink); } &[aria-current] { color: var(--ink); border-color: var(--accent); font-weight: 600; } }
}
.dpt-article__foot { padding-bottom: 4rem; display: grid; gap: 1.6rem; }
.dpt-share { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; & .dpt-eyebrow { margin: 0 .4rem 0 0; } }
.dpt-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 1.6rem; border-radius: var(--r); background: var(--accent-soft); & p { margin: 0; } & strong { font: 400 1.35rem var(--f-display); } }
.dpt-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; background: var(--accent); transform-origin: left; scale: 0 1; animation: dpt-grow linear both; animation-timeline: scroll(root); }
@keyframes dpt-grow { to { scale: 1 1; } }
@supports not (animation-timeline: scroll()) { .dpt-progress { display: none; } }
.nav-links { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 3rem; }
.page-numbers { padding: .5em .9em; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; &.current { background: var(--ink); color: var(--paper); } }
.dpt-tags a { display: inline-block; padding: .3em .8em; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-size: .85rem; margin: 0 .3rem .3rem 0; }
.dpt-comments__list { list-style: none; padding: 0; }
.comment-form :is(input[type=text], input[type=email], input[type=url], textarea) { width: 100%; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.search-form { display: flex; gap: .5rem; max-width: 520px; margin-top: 2rem; & label { flex: 1; } }
.search-field { width: 100%; padding: .8rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.search-submit { padding: .8rem 1.3rem; border-radius: 999px; border: 0; background: var(--ink); color: var(--paper); cursor: pointer; }
.dpt-404__chart { display: flex; gap: 1.5rem; font: 500 clamp(5rem, 14vw, 10rem)/1 var(--f-body); margin: 0 0 1rem;
	& span:nth-child(2) { filter: blur(3px); } & span:nth-child(3) { filter: blur(7px); }
}
.wp-caption-text, figcaption { font-size: .88rem; color: var(--muted); }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; } .alignright { float: right; margin: 0 0 1rem 1.5rem; } .aligncenter { margin-inline: auto; }

/* ---------- Footer ---------- */

.dpt-foot { background: var(--ink); color: var(--paper); padding-top: clamp(4rem, 8vw, 6rem); --muted: color-mix(in oklch, var(--paper) 60%, var(--ink)); --line: color-mix(in oklch, var(--paper) 16%, transparent); }
.dpt-foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 2.5rem; padding-bottom: 3.5rem; }
.dpt-foot__name { font: 400 2.4rem/1 var(--f-display); & em { color: var(--muted); } }
.dpt-foot__tag { color: var(--muted); max-width: 32ch; }
.dpt-foot .dpt-btn--solid { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); &:hover { --bg: var(--accent); --fg: #fff; --bd: var(--accent); } }
.dpt-foot address { font-style: normal; }
.dpt-foot a { text-decoration: none; &:hover { text-decoration: underline; } }
.dpt-foot .dpt-hours .is-today { color: #9fb0ff; }
.dpt-foot__menu { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .3rem; }
.dpt-foot__widgets { grid-column: 1 / -1; }
.dpt-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem 2.2rem; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); & p { margin: 0; } }

/* ---------- View transitions ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .4s; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: var(--ease-out); }
::view-transition-group(site-head) { animation: none; }

/* ---------- Responsive ---------- */

body:has(> .kln-store-tag) .dpt-hero__panel { margin-bottom: 4.6rem; }
@media (max-width: 1100px) {
	.dpt-hero__copy > * { max-width: min(34rem, 52vw); }
}
@media (max-width: 860px) {
	.dpt-hero { min-height: 0; grid-template-rows: auto; }
	.dpt-hero .dpt-stage { position: relative; inset: auto; z-index: 0; height: 74svh; order: 2; }
	.dpt-hero__copy { order: 1; padding-block: 100px 1.6rem; }
	.dpt-hero__copy > * { max-width: none; }
	.dpt-hero__panel { order: 3; justify-self: stretch; margin: -5.5rem var(--gutter) 2rem; width: auto; position: relative; }
	body:has(> .kln-store-tag) .dpt-hero__panel { margin-bottom: 2rem; }
	.dpt-finder__grid, .dpt-lensband__grid, .dpt-visit__grid, .dpt-frame-page__top, .dpt-service__head, .dpt-bookpage, .dpt-lenspage__stage, .dpt-thick, .dpt-lead__link { grid-template-columns: 1fr; }
	.dpt-frame-page__stage, .dpt-bookpage__aside { position: static; }
	.dpt-thick__bars { grid-template-columns: repeat(2, 1fr); }
	.dpt-foot__grid { grid-template-columns: 1fr 1fr; }
	.dpt-field--slots { grid-column: auto; }
	.dpt-filters legend { width: 100%; }
}
@media (max-width: 560px) {
	.dpt-foot__grid { grid-template-columns: 1fr; }
	.dpt-seg legend { width: 100%; }
	.dpt-rail { grid-auto-columns: 78vw; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.dpt-scard, .dpt-post, .dpt-person, .dpt-quote, .dpt-fcard, .dpt-steps__list li { animation: none !important; }
	@view-transition { navigation: none; }
}
@media (forced-colors: active) { .dpt-stage__canvas { display: none; } .dpt-stage__still { opacity: 1 !important; } }

.dpt-lensband__fig { margin: 0; & figcaption { font: 500 .72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; margin-top: .6rem; } }
.dpt-lensband__art .dpt-lensband__mm { font-size: 10px; opacity: .55; }


@media (max-width: 420px) { .dpt-brand__name em { display: none; } .dpt-brand__mark { width: 38px; } }
