@font-face {
  font-family: "Archivo";
  src: url(fonts/archivo-latin.woff2) format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --red: #c80000;
  --red-dark: #9e0000;
  --ink: #161616;
  --muted: #555;
  --bg: #f6f6f6;
  --cream: #fcf6ea;
  --rule: #e2e2e2;
  --night: #222;
  --night-rule: #3a3a3a;
  --night-text: #ccc;
  --night-muted: #bbb;
  --night-hover: #2a2a2a;
  --status-ready: #17803a;
  --status-preparing: #a65e00;
  --red-wash: #fff5f5;
  --wa: #128c7e; /* WhatsApp teal: brand-recognisable, 4.1:1 with the white glyph */
  --wa-dark: #0e7266;
  --radius: 2px; /* sharp & technical: one small radius everywhere */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  accent-color: var(--red);
  scrollbar-color: #8a8a8a var(--bg);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
::selection { background: var(--red); color: #fff; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; font-stretch: 94%; letter-spacing: -.025em; max-width: 15ch; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; font-stretch: 94%; letter-spacing: -.02em; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.005em; }
p { text-wrap: pretty; }

.top { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: .5rem 5vw; background: var(--cream); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--rule); } /* seamless with the cream heroes at the top; a hairline once content scrolls under */
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6em 1em; border-radius: var(--radius); background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 1rem; }
.menu-btn { display: none; }
.brand img { display: block; height: 62px; width: auto; }
nav { display: flex; flex-wrap: wrap; gap: 1.75rem; align-items: center; }
nav a { text-decoration: none; font-weight: 600; }
nav a:not(.btn) { padding: .25em 0; background: linear-gradient(var(--red), var(--red)) no-repeat left bottom / 0 1px; transition: background-size .25s cubic-bezier(.2, .7, .2, 1), color .2s; }
nav a:not(.btn):hover { color: var(--red); background-size: 100% 1px; }

.btn { display: inline-block; padding: .75em 1.5em; border-radius: var(--radius); background: var(--red); color: #fff; text-decoration: none; font-weight: 600; letter-spacing: .01em; border: 1px solid var(--red); transition: background .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: var(--radius); }

section { padding: 5.5rem 5vw; scroll-margin-top: calc(var(--hh, 89px) + 1px); }
/* section title with a hairline running to the edge, like a drawing title block */
section:not(.hero, .cta) > h2 { display: flex; align-items: center; gap: 1.5rem; }
section:not(.hero, .cta) > h2::after { content: ""; flex: 1 1 2rem; height: 1px; background: var(--rule); }
.dark > h2::after { background: var(--night-rule) !important; }
.hero { padding-top: 6rem; padding-bottom: 6rem; background: var(--cream); display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; overflow: hidden; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

/* spec-sheet grid: cells share 1px hairlines (shadow spills into the 1px gap) */
.grid { display: grid; gap: 1px; padding: 1px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 2.5rem; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: #fff; padding: 2rem 1.75rem 2.25rem; box-shadow: 0 0 0 1px var(--rule); }
.card h3::before { content: ""; display: block; width: 2rem; height: 2px; margin-bottom: 1.1rem; background: var(--red); }
.card ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.card li { margin: .35em 0; padding-left: .15em; }
.card li::marker { content: "\2013  "; color: var(--red); }

#marketing { background: #fff; }
#marketing .card { background: var(--bg); }

.dark { background: var(--ink); color: #fff; }
.dark .lead { color: var(--night-muted); }
.dark .card { background: var(--night); box-shadow: 0 0 0 1px var(--night-rule); }
.dark .card ul { color: var(--night-text); }

.cta { text-align: center; background: var(--red); color: #fff; }
.cta h2 { margin-inline: auto; }
.cta .lead { color: #ffe0e0; margin: 0 auto 2rem; }
.cta .btn { background: #fff; color: var(--red); border-color: #fff; }
.cta .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta :focus-visible { outline-color: #fff; }

footer { display: flex; gap: 1rem; align-items: center; justify-content: center; padding: 2rem 5vw; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--rule); }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding-top: 3.5rem; padding-bottom: 4rem; }
  .hat { order: -1; }
  .brand img { height: 42px; }
  section { padding-top: 4rem; padding-bottom: 4rem; }
}
/* header: menu mode below 1024px (6 links + button no longer fit in one row) */
@media (max-width: 1024px) {
  /* no JS: links wrap under the logo as a plain row */
  #site-nav { gap: .5rem 1.25rem; }
  /* JS: one compact row (logo + Menu) and a drop-down panel */
  .js .top { flex-wrap: nowrap; }
  .js .menu-btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .5rem .85rem; border: 1px solid var(--ink); border-radius: var(--radius); background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
  .menu-icon, .menu-icon::before { display: block; width: 18px; height: 2px; background: currentColor; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
  .menu-icon { position: relative; background: none; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
  .menu-icon::before { top: -3px; }
  .menu-icon::after { top: 3px; }
  .open .menu-icon::before { transform: translateY(3px) rotate(45deg); }
  .open .menu-icon::after { transform: translateY(-3px) rotate(-45deg); }
  .js #site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; padding: .25rem 5vw 1.5rem; background: var(--cream); border-bottom: 1px solid var(--rule);
    visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .35s cubic-bezier(.16, 1, .3, 1), visibility 0s .35s; }
  .js .open #site-nav { visibility: visible; clip-path: inset(0 0 -1px 0); transition: clip-path .35s cubic-bezier(.16, 1, .3, 1); }
  .js #site-nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--rule); background: none; font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; }
  .js #site-nav .btn { margin-top: 1.25rem; padding: .85em; text-align: center; }
  .open { border-bottom-color: var(--rule); }
}
/* service grids: fixed column steps so rows never leave a lone orphan cell */
.grid-services { grid-template-columns: repeat(4, 1fr); }
.grid-marketing { grid-template-columns: repeat(3, 1fr); }
.grid-marketing > :first-child { grid-row: span 2; } /* SEO is the longest list: spanning 2 rows packs 5 cells into a full 3x2 (and 2x3) block */
@media (max-width: 1100px) { .grid-services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid-marketing { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-services, .grid-marketing { grid-template-columns: 1fr; } .grid-marketing > :first-child { grid-row: auto; } }

.card li { text-wrap: pretty; }

/* hero: static final state; entrance + scroll motion live in anim.js (Motion) */
.hl { color: var(--red); background: linear-gradient(var(--red), var(--red)) no-repeat left bottom / 100% .12em; padding-bottom: .05em; }
.hero h1 .w { display: inline-block; }

.hat { position: relative; justify-self: center; width: 100%; max-width: 460px; }
.hat::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(rgb(200 0 0 / .25), transparent 70%); animation: glow 4s ease-in-out infinite; }
.hat img { position: relative; display: block; width: 100%; height: auto; }
@keyframes glow { 0%, 100% { transform: scale(.9); opacity: .6; } 50% { transform: scale(1.08); opacity: 1; } }

/* drawn lines: anim.js animates these registered properties from 0 to 1 */
@property --draw { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --tick { syntax: "<number>"; inherits: true; initial-value: 1; }
section:not(.hero, .cta) > h2::after { transform: scaleX(var(--draw)); transform-origin: left; }
.card h3::before { transform: scaleX(var(--tick)); transform-origin: left; }

/* pre-animation states: only when the head script set .motion (JS on, motion allowed) */
.motion .hero h1, .motion .hero .lead, .motion .hero .actions > *, .motion .hero .hat img, .motion .grid .card { opacity: 0; }
.motion .hl { background-size: 0 .12em; }
.motion section:not(.hero, .cta) > h2 { --draw: 0; }
.motion .card { --tick: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; }
}
@media (max-width: 800px) { .hat { max-width: 240px; } }

/* hero network background (net.js) */
.hero { position: relative; }
.hero > :not(.net) { position: relative; z-index: 1; }
.net { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask: linear-gradient(90deg, rgb(0 0 0 / .35), #000 65%); mask: linear-gradient(90deg, rgb(0 0 0 / .35), #000 65%); }

@media (max-width: 800px) { .net { -webkit-mask: none; mask: none; opacity: .25; } } /* text spans full width on mobile: dim the whole field */

/* ---------- icons (Lucide, inline sprite) ---------- */
.ico, .arrow { flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.arrow { width: 1.15rem; height: 1.15rem; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }

/* ---------- inner page header (services.html, products.html) ---------- */
.page-hero { grid-template-columns: 1fr; padding-top: 5rem; padding-bottom: 4.5rem; }
.page-hero h1 { max-width: 20ch; }
nav a[aria-current="page"]:not(.btn) { color: var(--red); background-size: 100% 1px; }

/* ---------- home: services index ---------- */
.svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 4rem; margin-top: 2.75rem; }
.group-title { margin: 0 0 1rem; font-size: 1.15rem; }
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index li { border-bottom: 1px solid var(--rule); }
.index a { display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem; align-items: center; padding: 1.1rem .5rem 1.1rem 0; text-decoration: none; transition: background .2s; }
.index .ico, .index .txt { transition: transform .25s cubic-bezier(.16, 1, .3, 1), color .2s, border-color .2s; }
.index .ico { width: 2.9rem; height: 2.9rem; padding: .7rem; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; color: var(--ink); }
.index .txt { display: grid; gap: .15rem; }
.index .t { font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.index .d { color: var(--muted); line-height: 1.45; text-wrap: pretty; }
.index .arrow { color: var(--muted); }
.index a:hover { background: #fff; }
.index a:hover .ico, .index a:hover .txt { transform: translateX(.5rem); }
.index a:hover .t, .index a:hover .arrow { color: var(--red); }
.index a:hover .ico { color: var(--red); border-color: var(--red); }
.index a:hover .arrow { transform: translateX(4px); }
#services > .actions { margin-top: 2.5rem; }

/* ---------- home: product panels ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1px; padding: 1px; margin-top: 2.5rem; }
.prod { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 2.25rem 2rem; background: var(--night); box-shadow: 0 0 0 1px var(--night-rule); color: #fff; text-decoration: none; transition: background .2s; }
.prod .ico { width: 3.25rem; height: 3.25rem; padding: .8rem; border: 1px solid var(--night-rule); border-radius: var(--radius); }
.prod h3 { margin: .25rem 0 0; }
.prod p { margin: 0; color: var(--night-text); max-width: 46ch; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: .25rem 0 0; padding: 0; list-style: none; }
.tags li { padding: .3em .7em; border: 1px solid var(--night-rule); border-radius: var(--radius); color: var(--night-text); font-size: .9rem; }
.go { display: inline-flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: .75rem; font-weight: 600; }
.prod:hover { background: var(--night-hover); }
.prod:hover .ico { border-color: var(--red); }
.prod:hover .arrow { transform: translateX(4px); }

@media (max-width: 900px) { .svc-cols { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .index .d { font-size: .9rem; } .prod { padding: 2rem 1.5rem; } }

/* reveal targets for anim.js */
.motion .index > li, .motion .prod-grid > * { opacity: 0; }

/* ---------- full-screen hero: fills the viewport under the header (--hh is measured right after the header renders) ---------- */
.hero:not(.page-hero) { min-height: calc(100svh - var(--hh, 89px)); }

/* ---------- product demo hero (products.html): phone order -> kitchen display, looped by product-demo.js ---------- */
.dots { background-image: radial-gradient(rgb(200 0 0 / .14) 1.5px, transparent 1.5px); background-size: 26px 26px; }
.demo { position: relative; height: 470px; max-width: 560px; width: 100%; justify-self: center; font-size: 14px; }
/* device frames keep hardware curves; the app UI inside follows the sharp system */
.phone { position: absolute; left: 0; top: 0; z-index: 2; width: 230px; height: 460px; padding: 1rem .8rem; border: 9px solid var(--ink); border-radius: 34px; background: #fff; box-shadow: 0 20px 50px rgb(0 0 0 / .18); display: flex; flex-direction: column; }
.ph-head { margin: 0 0 .8rem; font-weight: 800; }
.phone ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.phone li { display: flex; align-items: center; gap: .6rem; padding: .5rem; border-radius: var(--radius); background: var(--bg); }
.phone li i { width: 40px; height: 40px; border-radius: var(--radius); flex: none; }
.phone li span { flex: 1; font-weight: 600; line-height: 1.2; }
.phone small { display: block; color: var(--muted); font-weight: 400; }
.add { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius); background: var(--red); color: #fff; }
.add.tap { animation: tap .45s; }
@keyframes tap { 50% { transform: scale(1.3); background: var(--red-dark); box-shadow: 0 0 0 8px rgb(200 0 0 / .15); } }
.cart { margin: auto 0 0; padding: .8rem; border-radius: var(--radius); background: var(--red); color: #fff; text-align: center; font-weight: 700; transition: background .3s; }
.cart.busy { background: var(--red-dark); }
.cart.ok { background: var(--status-ready); }
.kds { position: absolute; left: 185px; top: 110px; width: 320px; height: 250px; padding: .8rem .8rem .8rem 3.2rem; border: 10px solid var(--ink); border-radius: 14px; background: var(--night); color: #fff; box-shadow: 0 20px 50px rgb(0 0 0 / .18); }
.kds-head { margin: 0 0 .6rem; font-size: .8em; letter-spacing: .1em; text-transform: uppercase; color: var(--night-muted); }
.tickets { display: grid; gap: .5rem; }
.ticket { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: .6rem .7rem; border-radius: var(--radius); background: #fff; color: var(--ink); font-weight: 600; opacity: 0; transform: translateX(20px); transition: opacity .4s, transform .4s cubic-bezier(.16, 1, .3, 1); }
.ticket.show { opacity: 1; transform: none; }
.ticket.old { opacity: .45; }
.ticket b { padding: .15em .6em; border-radius: var(--radius); background: var(--red); color: #fff; font-size: .8em; }
.ticket.prep b { background: var(--status-preparing); }
.ticket.ready b { background: var(--status-ready); }
.packet { position: absolute; z-index: 3; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px rgb(200 0 0 / .2); opacity: 0; left: 35%; top: 85%; }
.demo.fly .packet { animation: fly .9s ease-in-out; }
@keyframes fly { 10% { opacity: 1; } 50% { top: 5%; } 90% { opacity: 1; } to { left: 70%; top: 50%; opacity: 0; } }
@media (max-width: 800px) { .demo { order: -1; zoom: .68; } }
.motion .hero .demo { opacity: 0; }

/* ---------- services hero: hat with floating service chips, tilting toward the pointer ---------- */
.hero-services { perspective: 1200px; --mx: 0; --my: 0; }
.stage { position: relative; padding: 14% 12%; transform: rotateY(calc(var(--mx) * .5deg)) rotateX(calc(var(--my) * -.5deg)); transition: transform .3s ease-out; }
.chip { position: absolute; left: clamp(0px, var(--x), 100% - 11em); top: var(--y); display: inline-flex; align-items: center; gap: .45em; padding: .5em .85em; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; font-weight: 600; font-size: .9rem; white-space: nowrap;
  translate: calc(var(--mx) * var(--z) * 1.5px) calc(var(--my) * var(--z) * 1.5px); transition: translate .3s ease-out;
  animation: bob calc(4s + var(--z) * 1s) ease-in-out infinite; }
.chip .ico { width: 1.05em; height: 1.05em; color: var(--red); }
@keyframes bob { 50% { transform: translateY(-10px); } }
.motion .hero .chip { opacity: 0; }


/* spec cells: discipline icon in the title; deep-link landing clears the sticky header and is marked in red */
.card h3 .ico { width: 1.2em; height: 1.2em; margin-right: .45em; vertical-align: -.22em; }
.card[id] { scroll-margin-top: calc(var(--hh, 89px) + 1.5rem); }
.card:target { position: relative; z-index: 1; box-shadow: 0 0 0 1px var(--red), inset 0 0 0 1px var(--red); }

@media (max-width: 800px) {
  .stage { order: -1; }
  .chip { font-size: .7rem; }
}

/* ---------- products page: one section per product, sticky intro + feature tiles ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 3rem 5rem; align-items: start; }
.product:not(.dark) { background: var(--bg); }
.product + .product { border-top: 0; }
.product-intro { position: sticky; top: calc(var(--hh, 89px) + 2.5rem); }
.product-intro .ico { width: 3.25rem; height: 3.25rem; padding: .8rem; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; }
.product-intro h2 { margin: 1.5rem 0 .75rem; }
.product-intro .lead { margin: 0; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 1px; list-style: none; }
.features li { padding: 1.4rem 1.4rem 1.5rem; background: #fff; box-shadow: 0 0 0 1px var(--rule); font-weight: 600; line-height: 1.4; text-wrap: pretty; }
.features li::before { content: ""; display: block; width: 1.5rem; height: 2px; margin-bottom: .9rem; background: var(--red); transform: scaleX(var(--tick)); transform-origin: left; }
.product.dark .product-intro .ico { background: transparent; border-color: var(--night-rule); }
.product.dark .features li { background: var(--night); box-shadow: 0 0 0 1px var(--night-rule); color: #fff; }
.motion .features > li { opacity: 0; --tick: 0; }
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .product-intro { position: static; }
}
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ---------- contact hero: circuit traces (circuit.js) ---------- */
.circuit path { fill: none; stroke: rgb(200 0 0 / .4); stroke-width: 1.5; stroke-linejoin: round; stroke-dasharray: var(--l); stroke-dashoffset: var(--l); animation: draw 1.8s cubic-bezier(.16, 1, .3, 1) forwards; }
.circuit .pad { fill: var(--cream); stroke: rgb(200 0 0 / .6); stroke-width: 1.5; opacity: 0; animation: pop .4s forwards; }
.circuit .pulse { fill: var(--red); }
.circuit .halo { fill: rgb(200 0 0 / .18); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .circuit path { stroke-dashoffset: 0; } .circuit .pad { opacity: 1; } }

/* ---------- contact brief form (opens the visitor's email app; no backend) ---------- */
.brief { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 3rem 5rem; align-items: start; }
.brief-intro { position: sticky; top: calc(var(--hh, 89px) + 2.5rem); }
.brief-intro h2 { margin-bottom: .75rem; }
.brief-intro .lead { margin: 0 0 1.5rem; }
.brief-intro .alt { color: var(--muted); }
.brief-intro .alt a { color: var(--ink); font-weight: 600; }
.form { display: grid; gap: 1.5rem; padding: 2.25rem; background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { display: grid; gap: .45rem; }
.field > span, .form legend { font-weight: 600; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field textarea { width: 100%; padding: .75em .85em; border: 1px solid #b9b9b9; border-radius: var(--radius); background: #fff; color: var(--ink); font: inherit; transition: border-color .2s; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--ink); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.form fieldset { margin: 0; padding: 0; border: 0; }
.form legend { margin-bottom: .65rem; padding: 0; }
.picks { display: flex; flex-wrap: wrap; gap: .5rem; }
.picks label { display: inline-flex; align-items: center; gap: .5em; padding: .45em .75em; border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer; font-size: .9rem; font-weight: 600; transition: border-color .2s, color .2s, background .2s; }
.picks label:hover { border-color: var(--ink); }
.picks label:has(:checked) { border-color: var(--red); color: var(--red); background: var(--red-wash); }
.picks input { margin: 0; }
.form .btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }
.form .note { margin: -.5rem 0 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .brief { grid-template-columns: 1fr; } .brief-intro { position: static; } }
@media (max-width: 600px) { .form { padding: 1.5rem; } .form .row { grid-template-columns: 1fr; } }

/* ---------- contact: details + map ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 3rem 5rem; align-items: stretch; background: #fff; }
.visit-info .lead { margin: 0 0 2rem; }
.contact-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.contact-list li { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.contact-list .ico { width: 2.9rem; height: 2.9rem; padding: .7rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg); }
.contact-list .k { display: block; color: var(--muted); font-size: .9rem; }
.contact-list .v { display: block; font-weight: 700; font-size: 1.15rem; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a.v:hover { color: var(--red); text-decoration: underline; }
.map { position: relative; min-height: 440px; background: var(--bg); box-shadow: 0 0 0 1px var(--rule); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); transition: filter .4s; }
.map:hover iframe, .map:focus-within iframe { filter: none; }
.motion .contact-list > li { opacity: 0; }
@media (max-width: 900px) { .visit { grid-template-columns: 1fr; } .map { min-height: 340px; } }

/* ---------- WhatsApp chat button (every page) ---------- */
.wa { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 30; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: var(--radius); background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgb(0 0 0 / .22); transition: transform .25s cubic-bezier(.16, 1, .3, 1), background .2s; }
.wa svg { width: 1.75rem; height: 1.75rem; fill: currentColor; }
.wa:hover { transform: translateY(-3px); background: var(--wa-dark); }
.wa:focus-visible { outline-offset: 4px; }


/* ---------- work page ---------- */
.work-hero { padding-top: 5rem; padding-bottom: 4.5rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0; }
.filters button { padding: .45em .85em; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 1px; }
.work { position: relative; display: flex; flex-direction: column; background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.work[hidden] { display: none; }
.work figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream); border-bottom: 1px solid var(--rule); }
.work img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.work:hover img { transform: scale(1.03); }
.work-body { display: grid; gap: .5rem; padding: 1.5rem 1.5rem 1.75rem; }
.work-body > p { margin: 0; }
.work-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.work-tags li { padding: .1em .5em; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--muted); font-size: .9rem; }
.work h3 { margin: .35rem 0 0; }
.work h3 a { text-decoration: none; }
.work h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card is the link target */
.work:hover h3 a { color: var(--red); }
.work h3 a:focus-visible { outline: none; }
.work:has(h3 a:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; z-index: 1; }
.work-meta { color: var(--muted); font-size: .9rem; }
.ph-card figure { display: grid; place-items: center; align-content: center; gap: .5rem; color: var(--muted); font-size: .9rem; font-weight: 600;
  background-image: linear-gradient(rgb(200 0 0 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(200 0 0 / .07) 1px, transparent 1px); background-size: 24px 24px; }
.ph-card figure .ico { width: 2rem; height: 2rem; }
.ph-card h3 { color: var(--muted); }
.filter-empty { margin: 2rem 0 0; color: var(--muted); }
.motion .work-grid > * { opacity: 0; }
@media (max-width: 1100px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- about page ---------- */
.type { color: var(--red); }
.caret { display: inline-block; width: .07em; height: .85em; margin-left: .06em; vertical-align: -.05em; background: var(--red); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 2.5rem 0 0; padding: 1px; list-style: none; counter-reset: step; }
.steps li { display: grid; align-content: start; gap: .6rem; padding: 2rem 1.75rem 2.25rem; background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.steps .ico { width: 2.9rem; height: 2.9rem; padding: .7rem; border: 1px solid var(--rule); border-radius: var(--radius); }
.steps h3 { margin: .6rem 0 0; font-size: 1.6rem; }
.steps p { margin: 0; color: var(--muted); }
.steps a { justify-self: start; margin-top: .4rem; font-weight: 600; color: var(--red); text-decoration-thickness: 1px; }
.how { background: #fff; }
.how .card { background: var(--bg); }
.principles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.principles p { margin: 0; color: var(--muted); }
.where { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 2rem; align-items: center; }
.where > .ico { width: 3.25rem; height: 3.25rem; padding: .8rem; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; color: var(--red); }
.where h2 { margin: 0 0 .25rem; }
.where .lead { margin: 0; }
.motion .steps > li { opacity: 0; }
@media (max-width: 1100px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .steps, .principles { grid-template-columns: 1fr; } .where { grid-template-columns: 1fr; } }

/* ---------- team page ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 2.5rem; padding: 1px; }
.member { display: flex; flex-direction: column; background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.member figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); border-bottom: 1px solid var(--rule); }
.member img { display: block; width: 100%; height: 100%; object-fit: cover; }
.member-body { display: grid; gap: .35rem; padding: 1.4rem 1.5rem 1.6rem; }
.member-body h3, .member-body p { margin: 0; }
.member-role { color: var(--red); font-weight: 600; }
.member-body p:last-child { color: var(--muted); }
.ph-card.member figure { display: grid; place-items: center; align-content: center; gap: .5rem; color: var(--muted); font-size: .9rem; font-weight: 600; }
.motion .team-grid > * { opacity: 0; }
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

/* home services section: white ground between the cream hero and the dark products band */
#services { background: #fff; }
#services .index .ico { background: var(--bg); }
#services .index a:hover { background: var(--bg); }
/* about: "Find us" button keeps its natural width when the row stacks */
.where > .btn { justify-self: start; }

/* grid-line hero ground (About, Services, Team): faint red lines drifting one cell diagonally every 12s */
.gridbg { background-image: linear-gradient(rgb(200 0 0 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(200 0 0 / .07) 1px, transparent 1px); background-size: 44px 44px; animation: pan 12s linear infinite; }
@keyframes pan { to { background-position: 44px 44px; } }
/* travelling lights (grid.js): the canvas draws grid + lights, so the CSS grid steps aside when it's present */
.js .gridbg:has(.gridlights) { background-image: none; animation: none; }
.gridlights { -webkit-mask: none; mask: none; opacity: 1; } /* full-strength field, unlike the faded hero networks */

/* ---------- 404 page ---------- */
.lost .code { margin: 0 0 .5rem; color: var(--red); font-size: clamp(4rem, 12vw, 8rem); font-weight: 900; font-stretch: 80%; line-height: .85; letter-spacing: -.04em; font-variant-numeric: tabular-nums; opacity: .9; }
.lost-links { max-width: 34rem; margin-top: 2.5rem; }
.lost-links a { padding-block: .8rem; }
.lost-links .ico { width: 2.5rem; height: 2.5rem; padding: .6rem; }
.lost-links .t { font-size: 1.05rem; }
.motion .hero .code, .motion .lost-links > li { opacity: 0; }
