/* بداية أفناد: V2 حرف بيتصنع قدامك */

@font-face { font-family: "Lalezar"; src: url("fonts/lalezar-ar.woff2") format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Lalezar"; src: url("fonts/lalezar-lat.woff2") format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Readex Pro"; src: url("fonts/readex-ar.woff2") format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Readex Pro"; src: url("fonts/readex-lat.woff2") format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --wall: #141416;
  --wall-2: #1A1B1E;
  --tie: rgb(0 0 0 / .42);
  --seam: rgb(255 255 255 / .035);
  --ink: #F2F1EE;
  --ink-2: #A9ACB2;
  --rule: #2D2F34;
  --plate: #222428;
  --plate-2: #2D3035;
  --plate-edge: rgb(255 255 255 / .07);
  --halo: #FFD9A0;
  --cta: #FFD9A0;
  --cta-ink: #141416;
  --steel-txt: #858B92;
  --name-rim: rgb(255 217 160 / .5);
  --name-ret: 0 2px 0 #2A2D31, 0 3px 0 #222428;
  --name-glow: 0 0 6px rgb(255 226 184 / .55), 0 0 30px rgb(255 190 110 / .45), 0 0 90px rgb(255 166 80 / .25);
  --lift: 0 24px 44px -24px rgb(0 0 0 / .85);

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);

  --font-d: "Lalezar", "Readex Pro", "Segoe UI", Tahoma, sans-serif;
  --font-b: "Readex Pro", "Segoe UI", Tahoma, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --header: 74px;
  --r: 6px;

  color-scheme: dark;
}
html[data-theme="day"] {
  --wall: #D9D6CF;
  --wall-2: #CFCBC3;
  --tie: rgb(0 0 0 / .13);
  --seam: rgb(0 0 0 / .05);
  --ink: #17181B;
  --ink-2: #4C4F55;
  --rule: #BCB7AE;
  --plate: #EFEDE8;
  --plate-2: #E1DED8;
  --plate-edge: rgb(255 255 255 / .8);
  --cta: #17181B;
  --cta-ink: #FFD9A0;
  --steel-txt: #2F3136;
  --name-rim: transparent;
  --name-ret: 0 2px 0 #8D9298;
  --name-glow: 6px 12px 14px rgb(40 30 20 / .28);
  --lift: 0 24px 40px -26px rgb(40 30 20 / .5);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 1.0625rem;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 600ms ease, color 600ms ease;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-d); font-weight: 400; letter-spacing: normal; line-height: 1.45; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

::selection { background: var(--halo); color: #141416; }
:focus-visible { outline: 3px solid var(--halo); outline-offset: 3px; border-radius: 4px; }
html[data-theme="day"] :focus-visible { outline-color: #17181B; }
html { scrollbar-color: var(--plate-2) var(--wall); }
input { caret-color: var(--halo); }
html[data-theme="day"] input { caret-color: #17181B; }

.ic { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--cta); color: var(--cta-ink); padding: 10px 16px; border-radius: var(--r); }
.skip:focus { top: 12px; }

/* The wall: concrete with formwork seams and tie holes */
.wall {
  background-color: var(--wall);
  background-image:
    radial-gradient(circle, var(--tie) 0 2.5px, transparent 3.5px),
    linear-gradient(to bottom, var(--seam) 0 1px, transparent 1px);
  background-size: 180px 120px, 100% 120px;
  background-position: 90px 60px, 0 0;
  transition: background-color 600ms ease;
}
.wall-light {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(56% 42% at 50% 44%, rgb(255 196 122 / .16), transparent 72%);
  opacity: 0; transition: opacity 900ms ease;
}
.hero[data-light="halo"] .wall-light, .hero[data-light="front"] .wall-light { opacity: 1; }
.close .wall-light { opacity: 1; background: radial-gradient(50% 50% at 50% 58%, rgb(255 196 122 / .14), transparent 72%); }
html[data-theme="day"] .wall-light { opacity: 0 !important; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r);
  font-family: var(--font-b); font-weight: 600; font-size: 1rem; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 300ms ease, color 300ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(.97); }
.btn-cta { background: var(--cta); color: var(--cta-ink); box-shadow: 0 1px 0 rgb(255 255 255 / .25) inset, 0 12px 24px -14px rgb(0 0 0 / .8); }
.btn-line { box-shadow: inset 0 0 0 1.5px var(--rule); }
.btn-big { min-height: 60px; padding: 0 30px; font-size: 1.15rem; }
.btn-big .ic { width: 1.4em; height: 1.4em; }
@media (hover: hover) and (pointer: fine) {
  .btn-cta:hover { background: #FFE6BF; }
  html[data-theme="day"] .btn-cta:hover { background: #000; }
  .btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
}

/* ── Header ── */
.top { position: sticky; top: 0; z-index: 40; height: var(--header); transition: background-color 300ms ease, box-shadow 300ms ease; }
.top.is-stuck { background: color-mix(in srgb, var(--wall) 92%, transparent); box-shadow: 0 1px 0 var(--rule); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@supports (animation-timeline: scroll()) {
  .top { animation: stuck linear both; animation-timeline: scroll(root); animation-range: 0 90px; }
  @keyframes stuck { to { background-color: color-mix(in srgb, var(--wall) 92%, transparent); box-shadow: 0 1px 0 var(--rule); } }
}
.top-in { height: 100%; width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: grid; line-height: 1.15; flex: none; }
.brand-word {
  font-family: var(--font-d); font-weight: 400; font-size: 1.6rem; color: var(--ink);
}
.brand small { font-size: .76rem; color: var(--ink-2); }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 14px; border-radius: var(--r); font-weight: 500; font-size: .97rem; transition: background-color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: var(--plate); } }
.top-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: var(--r); align-items: center; justify-content: center; }
.menu-btn .ic { width: 26px; height: 26px; }

.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding-inline: 4px 8px; border-radius: 999px; }
.switch-track { position: relative; width: 58px; height: 32px; border-radius: 999px; background: var(--plate-2); box-shadow: inset 0 1px 3px rgb(0 0 0 / .45); transition: background-color 400ms ease; }
.switch-knob {
  position: absolute; top: 3px; inset-inline-start: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--halo); color: #141416; display: grid; place-items: center;
  box-shadow: 0 2px 6px rgb(0 0 0 / .45);
  transition: inset-inline-start 420ms var(--ease-out), background-color 400ms ease;
}
.switch-knob .ic { width: 16px; height: 16px; grid-area: 1 / 1; transition: opacity 300ms ease, rotate 420ms var(--ease-out); }
.ic-sun { opacity: 0; rotate: -90deg; }
html[data-theme="day"] .switch-knob { inset-inline-start: 29px; background: #FFFFFF; }
html[data-theme="day"] .ic-sun { opacity: 1; rotate: 0deg; }
html[data-theme="day"] .ic-moon { opacity: 0; rotate: 90deg; }
.switch-text { font-size: .9rem; font-weight: 500; display: grid; }
.switch-text > span { grid-area: 1 / 1; transition: opacity 300ms ease; }
.t-day { opacity: 0; }
html[data-theme="day"] .t-day { opacity: 1; }
html[data-theme="day"] .t-night { opacity: 0; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: max(620px, 100svh);
  margin-top: calc(var(--header) * -1);
  padding-top: var(--header);
  display: grid;
  grid-template-rows: auto minmax(200px, 1fr) auto auto;
  overflow: clip;
}
.hero-copy { position: relative; width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; padding-top: clamp(16px, 3vh, 40px); }
.hero h1 { font-size: clamp(1.9rem, 3.1vw, 2.9rem); max-width: 24ch; }
.lede { margin-top: 6px; color: var(--ink-2); font-size: clamp(1rem, 1.2vw, 1.15rem); max-width: 60ch; }
.sign-area { position: relative; display: grid; place-items: center; padding: 8px var(--gutter); min-height: 0; }
.sign { display: block; overflow: visible; }
.sign-area .sign { width: min(100%, 70vw, 1040px); height: 100%; max-height: min(400px, 40svh, calc(100svh - 480px)); min-height: 150px; }

/* rail of fabrication stages */
.rail { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; padding-inline: var(--gutter); font-size: .9rem; color: var(--ink-2); }
.rail li { display: inline-flex; align-items: center; gap: 8px; transition: color 400ms ease; }
.lamp { width: 10px; height: 10px; border-radius: 50%; background: var(--plate-2); box-shadow: inset 0 1px 2px rgb(0 0 0 / .5); transition: background-color 300ms ease, box-shadow 300ms ease; }
.rail li.on { color: var(--ink); }
.rail li.on .lamp { background: var(--halo); box-shadow: 0 0 0 3px rgb(255 217 160 / .18); }
html[data-theme="day"] .rail li.on .lamp { background: #E39B2D; box-shadow: 0 0 0 3px rgb(227 155 45 / .2); }
.rail-replay button { font-size: .88rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rule); min-height: 32px; }
@media (hover: hover) and (pointer: fine) { .rail-replay button:hover { color: var(--ink); } }

/* the workbench: a steel plate on standoff bolts */
.bench {
  position: relative;
  width: min(100% - 2 * var(--gutter), 1200px);
  margin: clamp(10px, 2vh, 18px) auto clamp(16px, 3vh, 36px);
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) auto auto auto;
  align-items: end;
  gap: 12px 18px;
  padding: 18px 26px 14px;
  background: var(--plate);
  border-radius: var(--r);
  box-shadow: inset 0 1px 0 var(--plate-edge), var(--lift);
  transition: background-color 600ms ease;
}
.bolt { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F3F4F5, #8D9399 60%, #4D5257); box-shadow: 0 1px 2px rgb(0 0 0 / .5); }
.bolt:nth-of-type(1) { top: 8px; right: 8px; } .bolt:nth-of-type(2) { top: 8px; left: 8px; }
.bolt:nth-of-type(3) { bottom: 8px; right: 8px; } .bolt:nth-of-type(4) { bottom: 8px; left: 8px; }
.field { display: grid; gap: 6px; }
.field > label, .field legend { font-size: .82rem; color: var(--ink-2); padding: 0; margin-bottom: 6px; }
.field legend { float: right; width: 100%; }
.field input[type="text"] {
  width: 100%; height: 50px; padding: 0 14px; border-radius: var(--r);
  background: var(--wall); color: var(--ink); border: 1px solid var(--rule);
  font: 500 1.05rem/1 var(--font-b);
  transition: border-color 200ms ease, box-shadow 200ms ease, background-color 600ms ease;
}
.field input[type="text"]::placeholder { color: var(--ink-2); opacity: .85; }
.field input[type="text"]:focus { outline: none; border-color: var(--halo); box-shadow: 0 0 0 3px rgb(255 217 160 / .22); }
html[data-theme="day"] .field input[type="text"]:focus { border-color: #17181B; box-shadow: 0 0 0 3px rgb(23 24 27 / .14); }
.seg { display: flex; gap: 2px; padding: 4px; border-radius: var(--r); background: var(--wall); border: 1px solid var(--rule); transition: background-color 600ms ease; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 4px; font-size: .95rem; font-weight: 500; white-space: nowrap; transition: background-color 200ms ease, color 200ms ease; }
.seg input:checked + span { background: var(--ink); color: var(--wall); }
.seg input:focus-visible + span { outline: 3px solid var(--halo); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .seg input:not(:checked):hover + span { background: var(--plate-2); } }
.btn-send { min-height: 50px; }
.bench-note { grid-column: 1 / -1; font-size: .82rem; color: var(--ink-2); line-height: 1.6; }

/* ── The sign (SVG) ── */
.sign text { font-family: "Lalezar", "Readex Pro", sans-serif; }
/* face: satin steel, unlit; the light sits behind it */
.sign .t-face { fill: url(#gFaceNight); transition: fill-opacity 500ms ease; }
.sign[data-light="none"] .t-face { fill: url(#gFaceDim); }
.sign[data-mat="zinc"] .t-face { fill: #26282C; }
.sign[data-mat="zinc"][data-light="none"] .t-face { fill: #44474C; }
.sign[data-mat="acrylic"] .t-face { fill: #CFC9BF; }
.sign[data-light="front"][data-mat="acrylic"] .t-face { fill: url(#gAcrylic); }
html[data-theme="day"] .sign .t-face { fill: url(#gFaceDay); }
html[data-theme="day"] .sign[data-mat="zinc"] .t-face { fill: #3A3D42; }
html[data-theme="day"] .sign[data-mat="acrylic"] .t-face { fill: #F4F1EA; }
/* return: a thin darker edge directly under the face */
.sign .g-ret text { fill: #1F2124; transition: opacity 260ms ease; transition-delay: calc(var(--i) * 60ms); }
html[data-theme="day"] .sign .g-ret text { fill: #8D9298; }
/* warm rim where the halo catches the face edge */
.sign .t-rim { fill: none; stroke: #FFD6A0; stroke-width: 2.8; stroke-opacity: .6; opacity: 0; transition: opacity 600ms ease; }
.sign[data-light="halo"] .t-rim { opacity: 1; }
html[data-theme="day"] .sign .t-rim { opacity: 0; }
.sign .t-stroke { fill: none; stroke: #E8EBEE; stroke-width: 1.6; stroke-dasharray: 1700; stroke-dashoffset: 1700; opacity: 0; transition: stroke-dashoffset 1150ms cubic-bezier(.45, .05, .3, 1), opacity 400ms ease; }
html[data-theme="day"] .sign .t-stroke { stroke: #3A3D42; }
/* halo: a wall wash, hot at the contour, falling off with distance */
.sign .g-halo { opacity: 0; transition: opacity 700ms ease; }
.sign .halo-wide { fill: #FFA94D; opacity: .42; }
.sign .halo-mid { fill: #FFC27A; opacity: .72; }
.sign .halo-tight { fill: #FFE7C2; }
.sign[data-light="halo"] .g-halo { opacity: 1; }
html[data-theme="day"] .sign[data-light="halo"] .g-halo { opacity: .1; }
.sign .g-front { opacity: 0; transition: opacity 600ms ease; }
.sign .g-front text { fill: #FFF3DE; }
.sign[data-light="front"] .g-front { opacity: .85; }
html[data-theme="day"] .sign[data-light="front"] .g-front { opacity: .22; }
.sign .g-cast { opacity: 0; transition: opacity 600ms ease; }
.sign .g-cast text { fill: rgb(40 30 20 / .42); }
html[data-theme="day"] .sign .g-cast { opacity: 1; }
.sign .pin-body { fill: url(#gPin); }
.sign .pin-cap { fill: #DADDE0; }
.sign .g-all { transition: transform 700ms var(--ease-out); }

/* staged fabrication */
.sign[data-stage="0"] .t-face, .sign[data-stage="1"] .t-face, .sign[data-stage="2"] .t-face { fill-opacity: 0; }
.sign[data-stage="3"] .t-face { fill: url(#pLed) !important; }
.sign[data-stage="0"] .t-stroke { opacity: 1; }
.sign[data-stage="1"] .t-stroke, .sign[data-stage="2"] .t-stroke { opacity: 1; stroke-dashoffset: 0; }
.sign[data-stage="3"] .t-stroke { opacity: .7; stroke-dashoffset: 0; }
.sign[data-stage="4"] .t-stroke { stroke-dashoffset: 0; opacity: 0; }
.sign[data-stage="0"] .g-ret text, .sign[data-stage="1"] .g-ret text { opacity: 0; }
.sign[data-stage="2"] .g-ret text { fill: #6B7076; }
.sign[data-stage="0"] .g-halo, .sign[data-stage="1"] .g-halo, .sign[data-stage="2"] .g-halo,
.sign[data-stage="0"] .g-front, .sign[data-stage="1"] .g-front, .sign[data-stage="2"] .g-front,
.sign[data-stage="0"] .t-rim, .sign[data-stage="1"] .t-rim, .sign[data-stage="2"] .t-rim, .sign[data-stage="3"] .t-rim { opacity: 0 !important; }
.sign[data-stage="3"] .g-halo { animation: flick 820ms steps(1, end) both; }
.sign[data-stage="0"] .g-all, .sign[data-stage="1"] .g-all, .sign[data-stage="2"] .g-all, .sign[data-stage="3"] .g-all { transform: translateY(-8px); }
@keyframes flick { 0% { opacity: 0; } 12% { opacity: .85; } 20% { opacity: .1; } 34% { opacity: 1; } 42% { opacity: .35; } 56%, 100% { opacity: 1; } }

/* ── Sections ── */
section { position: relative; }
.sec-title { font-size: clamp(2rem, 3.8vw, 3.4rem); max-width: 20ch; }

/* Services: rows that switch on */
.services { padding-block: clamp(80px, 11vw, 140px) clamp(48px, 7vw, 96px); background: var(--wall-2); transition: background-color 600ms ease; }
.svc-list { margin-top: clamp(28px, 4vw, 48px); }
.svc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "name photo" "body photo";
  column-gap: clamp(28px, 4vw, 64px); row-gap: 6px; align-items: center;
  padding-block: clamp(32px, 3.8vw, 52px);
  border-top: 1px solid var(--rule);
}
.svc-name { grid-area: name; align-self: end; }
.svc-body { grid-area: body; align-self: start; }
.svc-photo { grid-area: photo; }
.svc-name {
  font-size: clamp(2.7rem, 6.2vw, 5.8rem); line-height: 1.3; color: var(--steel-txt);
  -webkit-text-stroke: 1px var(--name-rim);
  text-shadow: var(--name-ret);
  transition: text-shadow 1100ms ease, color 600ms ease;
}
.svc.is-in .svc-name { text-shadow: var(--name-ret), var(--name-glow); }
.svc-body p { color: var(--ink-2); font-size: 1.06rem; max-width: 38ch; }
/* the block's entrance: three steel plates naming what is inside; the lamp lights for the row in view */
.svc-index { margin-top: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.svc-index a {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: center;
  min-height: 104px; padding: 22px 24px; border-radius: var(--r); background: var(--plate);
  box-shadow: inset 0 1px 0 var(--plate-edge), var(--lift);
  transition: translate 300ms var(--ease-out), box-shadow 300ms ease;
}
.svc-index .lamp { grid-row: 1 / 3; align-self: center; }
.svc-index b { font-weight: 700; font-size: 1.12rem; line-height: 1.5; }
.svc-index small { grid-column: 2; font-size: .86rem; line-height: 1.6; color: var(--ink-2); }
.svc-index .bolt { position: absolute; top: 8px; width: 7px; height: 7px; }
.svc-index .bolt:nth-of-type(1) { right: 8px; }
.svc-index .bolt:nth-of-type(2) { left: 8px; }
.svc-index a[aria-current="true"] .lamp, .svc-index a:hover .lamp { background: var(--halo); box-shadow: 0 0 0 3px rgb(255 217 160 / .18); }
html[data-theme="day"] .svc-index a[aria-current="true"] .lamp, html[data-theme="day"] .svc-index a:hover .lamp { background: #E39B2D; box-shadow: 0 0 0 3px rgb(227 155 45 / .2); }
@media (hover: hover) and (pointer: fine) { .svc-index a:hover { translate: 0 -3px; } }
.plates { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pick {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: var(--r);
  background: var(--plate); box-shadow: inset 0 1px 0 var(--plate-edge), 0 6px 12px -8px rgb(0 0 0 / .6);
  font-weight: 500; font-size: .96rem;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.pick { position: relative; }
.pick[aria-pressed="true"] { background: var(--plate-2); color: var(--ink); font-weight: 600; padding-inline-start: 30px; box-shadow: inset 0 0 0 1.5px rgb(255 217 160 / .75), 0 6px 12px -8px rgb(0 0 0 / .6); }
.pick[aria-pressed="true"]::before { content: ""; position: absolute; inset-inline-start: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--halo); box-shadow: 0 0 0 3px rgb(255 217 160 / .18); }
html[data-theme="day"] .pick[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px #17181B; }
html[data-theme="day"] .pick[aria-pressed="true"]::before { background: #E39B2D; }
.pick:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .pick[aria-pressed="false"]:hover { background: var(--plate-2); } }
.svc-cta { margin-top: 18px; }
.svc-photo { display: grid; gap: 10px; }
.svc-window { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--plate); box-shadow: var(--lift); }
.svc-window img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.9);
  transition: filter 1100ms ease, opacity 280ms ease, transform 520ms var(--ease-out);
}
.svc.is-in .svc-window img { filter: none; }
.svc-window img.is-swapping { opacity: 0; transform: scale(1.04); filter: blur(8px); transition: opacity 280ms ease, filter 280ms ease, transform 520ms var(--ease-out); }
.svc-ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; padding: 20px; text-align: center; color: var(--ink-2); outline: 1.5px dashed var(--rule); outline-offset: -10px; }
.svc-ph[hidden] { display: none; }
.svc-ph svg { height: 44%; fill: none; stroke: currentColor; stroke-width: 2.2; }
.svc-ph span { font-size: .9rem; max-width: 24ch; }
.svc-photo figcaption { font-size: .86rem; color: var(--ink-2); }

/* Print & projects shelf */
.print { padding-block: clamp(64px, 9vw, 120px); }
.print-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.shelf-nav { display: flex; gap: 8px; flex: none; }
.round { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--rule); transition: background-color 180ms ease, transform 160ms var(--ease-out); }
.round:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .round:hover { background: var(--plate); } }
.shelf {
  margin-top: clamp(24px, 3vw, 40px);
  display: flex; align-items: flex-end; gap: clamp(14px, 2vw, 28px);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 8px max(var(--gutter), calc((100vw - var(--max)) / 2)) 16px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
  scrollbar-width: none;
}
.shelf::-webkit-scrollbar { display: none; }
.item { flex: none; scroll-snap-align: start; display: grid; gap: 12px; }
.item-frame { height: clamp(240px, 28vw, 380px); aspect-ratio: var(--ar); border-radius: var(--r); overflow: hidden; background: var(--plate); box-shadow: var(--lift); }
.item-frame img { width: 100%; height: 100%; object-fit: cover; }
.item-ph { display: grid; place-items: center; align-content: center; gap: 12px; padding: 16px; box-shadow: none; background: transparent; outline: 1.5px dashed var(--rule); outline-offset: -1.5px; }
.item-ph svg { width: 70%; max-height: 62%; fill: none; stroke: var(--ink-2); stroke-width: 2; }
.item-ph span { font-size: .8rem; color: var(--ink-2); text-align: center; line-height: 1.6; }
.item figcaption { display: grid; line-height: 1.5; }
.item figcaption b { font-family: var(--font-d); font-weight: 400; font-size: 1.45rem; }
.item figcaption span { font-size: .9rem; color: var(--ink-2); }

/* Craft */
.craft { padding-block: clamp(72px, 10vw, 130px); }
.stages { margin-top: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); counter-reset: none; }
.stages li { display: grid; gap: 4px; align-content: start; }
.sign-mini { width: 100%; aspect-ratio: 1.1; margin-bottom: 8px; }
.stages b { font-family: var(--font-d); font-weight: 400; font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 1.4; }
.stages span { color: var(--ink-2); font-size: 1rem; max-width: 30ch; }

/* Work wall */
.work { padding-block: clamp(64px, 9vw, 120px); background: var(--wall-2); transition: background-color 600ms ease; }
.work-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 44px; padding: 0 16px; border-radius: var(--r); font-weight: 500; font-size: .95rem; box-shadow: inset 0 0 0 1.5px var(--rule); transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--wall); box-shadow: none; }
.filter:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .filter[aria-pressed="false"]:hover { box-shadow: inset 0 0 0 1.5px var(--ink); } }
.masonry { margin-top: clamp(24px, 3vw, 40px); columns: 3 280px; column-gap: clamp(10px, 1.2vw, 16px); }
.masonry li { break-inside: avoid; margin-bottom: clamp(10px, 1.2vw, 16px); }
.masonry li[hidden] { display: none; }
.masonry button { display: block; width: 100%; border-radius: var(--r); overflow: hidden; background: var(--plate); }
.masonry img { width: 100%; height: auto; filter: brightness(.86); transition: filter 400ms ease, transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .masonry button:hover img { filter: brightness(1.04); transform: scale(1.02); } }
html[data-theme="day"] .masonry img { filter: none; }
.work-more { margin-top: 28px; display: flex; justify-content: center; }

/* Close */
.close { padding-block: clamp(80px, 11vw, 150px); overflow: clip; }
.close-in { position: relative; display: grid; justify-items: center; text-align: center; gap: clamp(20px, 3vw, 36px); }
.close-in h2 { font-size: clamp(1.8rem, 3.3vw, 3rem); max-width: 24ch; }
.close-sign { display: block; width: min(100%, 980px); border-radius: var(--r); }
.close-sign .sign { width: 100%; height: clamp(110px, 17vw, 230px); }

/* Footer */
.foot { padding-block: 40px calc(40px + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--rule); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.foot-brand { display: grid; line-height: 1.3; }
.foot-brand .brand-word { font-size: 1.4rem; }
.foot-brand span { color: var(--ink-2); font-size: .85rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .95rem; }
@media (hover: hover) and (pointer: fine) { .foot-nav a:hover { text-decoration: underline; text-underline-offset: 5px; } }
.foot-legal { color: var(--ink-2); font-size: .88rem; }
.foot-legal a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rule); }

/* Mobile dock */
.dock {
  position: fixed; z-index: 50; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: none; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; border-radius: 10px;
  background: var(--cta); color: var(--cta-ink);
  font-weight: 700; font-size: 1.06rem;
  box-shadow: 0 14px 30px -12px rgb(0 0 0 / .7);
  transform: translateY(140%); transition: transform 360ms var(--ease-out);
}
.dock .ic { width: 1.5em; height: 1.5em; }
.dock.is-on { transform: none; }

/* Lightbox */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(8 8 10 / .95); color: #F2F1EE; }
.lb[open] { display: grid; place-items: center; animation: lbIn 260ms var(--ease-out); }
.lb::backdrop { background: transparent; }
@keyframes lbIn { from { opacity: 0; } }
.lb-frame { display: grid; gap: 12px; justify-items: center; padding: 72px 72px 24px; max-width: 100%; }
.lb-frame img { max-height: calc(100dvh - 160px); width: auto; max-width: min(1280px, 100%); object-fit: contain; border-radius: var(--r); animation: lbImg 320ms var(--ease-out); }
@keyframes lbImg { from { opacity: 0; transform: scale(.97); } }
.lb-cap { text-align: center; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .1); color: #fff; transition: background-color 180ms ease, transform 160ms var(--ease-out); }
.lb-btn:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .lb-btn:hover { background: rgb(255 255 255 / .22); } }
.lb-btn .ic { width: 24px; height: 24px; }
.lb-close { top: 16px; inset-inline-end: 16px; }
.lb-prev { top: 50%; margin-top: -26px; inset-inline-start: 16px; }
.lb-next { top: 50%; margin-top: -26px; inset-inline-end: 16px; }

/* ── Responsive ── */
@media (max-width: 1180px) {
  .bench { grid-template-columns: 1fr 1fr; }
  .field-name { grid-column: 1 / -1; }
  .btn-send { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .nav {
    position: absolute; top: calc(var(--header) - 6px); inset-inline: var(--gutter);
    display: grid; gap: 2px; padding: 8px;
    background: var(--plate); border-radius: var(--r); box-shadow: var(--lift);
    opacity: 0; translate: 0 -8px; pointer-events: none; visibility: hidden;
    transition: opacity 200ms ease, translate 260ms var(--ease-out), visibility 0s 260ms;
  }
  .nav.is-open { opacity: 1; translate: 0 0; pointer-events: auto; visibility: visible; transition: opacity 200ms ease, translate 260ms var(--ease-out); }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
  .menu-btn { display: inline-flex; }
  .top-actions { margin-inline-start: auto; }
  .svc { grid-template-columns: 1fr; grid-template-areas: "name" "photo" "body"; gap: 14px; }
  .svc-photo { max-width: 620px; }
  .svc-cta { width: 100%; }
  .stages { grid-template-columns: 1fr 1fr; }
  .dock { display: flex; }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .switch-text { display: none; }
  .top-actions .btn-cta .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .top-actions .btn-cta { width: 48px; padding: 0; }
  .top-actions .btn-cta .ic { width: 24px; height: 24px; }
  .brand-word { font-size: 1.35rem; }
  .hero { min-height: 0; grid-template-rows: auto auto auto auto; }
  .sign-area { padding-inline: 26px; }
  .sign-area .sign { width: 100%; height: clamp(130px, 38vw, 220px); max-height: none; min-height: 0; }
  .rail { gap: 4px 16px; font-size: .82rem; }
  .rail .rail-replay { flex-basis: 100%; justify-content: center; }
  .bench { grid-template-columns: 1fr; padding: 18px 16px 14px; }
  .field-name { order: 1; }
  .btn-send { order: 2; }
  .bench fieldset { order: 3; }
  .bench-note { order: 4; }
  .hero-copy { padding-top: 8px; }
  .seg { width: 100%; }
  .seg label { flex: 1; }
  .seg span { justify-content: center; padding: 0 8px; }
  .shelf-nav { display: none; }
  .svc-index { grid-template-columns: 1fr; gap: 10px; }
  .svc-index a { min-height: 0; padding: 16px 20px; }
  .item-frame { height: 260px; }
  .masonry { columns: 2; }
  .lb-frame { padding: 64px 12px 16px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; transition-delay: 0ms !important; }
}
