/* AMACO — Concept E, part 1 of the stylesheet (fonts, tokens, base, header, hero, services). Built into /e.css by scripts/build.mjs.
   Navy frames the page (header, hero, feature bands, footer); white and light grey carry the reading.
   Brand orange and yellow are kept for the main actions only.
   Sharp corners everywhere: no rounded buttons, cards or inputs. */

@font-face { font-family: "Vazirmatn"; src: url("/assets/fonts/Vazirmatn-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Naskh"; src: url("/assets/fonts/NotoNaskhArabic-wght.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/assets/fonts/Cormorant-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/assets/fonts/Cormorant-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* Light set: white and cool light grey, for reading, drawings and forms. Navy doubles as the ink. */
  --paper: #F4F5F7;
  --paper-2: #E8EBF0;
  --card: #FFFFFF;
  --stone: #D3D8E0;
  --ink: #0E1B33;
  --ink-2: #33405A;
  --muted: #66708A;
  --line: rgba(14, 27, 51, .12);
  --line-2: rgba(14, 27, 51, .22);
  --navy: #0E1B33;
  --navy-2: #13233F;
  --navy-3: #1A2D4F;
  --fire: #E5531A;
  --fire-2: #F06A1A;
  --sun: #F6A623;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1280px;
  --gut: clamp(16px, 4vw, 48px);
  --top-h: 76px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Vazirmatn", Tahoma, sans-serif; font-size: 16.5px; line-height: 1.95; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--fire); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0 0 1.1em; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; }
.latin { font-family: "Cormorant", Georgia, serif; direction: ltr; unicode-bidi: isolate; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Cross-page transition: a quick wash, no waiting. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 260ms var(--ease) both vt-out; }
::view-transition-new(root) { animation: 420ms var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* ---------- type ---------- */
.display { font-family: "Naskh", "Vazirmatn", serif; font-weight: 500; line-height: 1.45; letter-spacing: 0; }
.h1 { font-size: clamp(38px, 5.6vw, 76px); line-height: 1.32; }
.h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.4; }
.h3 { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.6; }
.lead { font-size: clamp(17px, 1.35vw, 19.5px); color: var(--ink-2); max-width: 36em; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px; font-size: 13.5px; font-weight: 600; color: var(--fire); letter-spacing: .02em; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.num { font-family: "Cormorant", Georgia, serif; direction: ltr; unicode-bidi: isolate; font-weight: 500; }

/* ---------- buttons: square, sharp; the other colour washes across on hover ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 54px; padding: 0 28px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: #fff; font: inherit; font-size: 15.5px; font-weight: 600; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; transition: color .45s var(--ease), border-color .45s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fire); transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:hover, .btn:focus-visible { border-color: var(--fire); }
.btn.fire::before { background: var(--ink); }
.btn.fire:hover, .btn.fire:focus-visible { border-color: var(--ink); }
.btn.fire { background: var(--fire); border-color: var(--fire); }
.btn.line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.line:hover { color: #fff; }
.btn.line::before { background: var(--ink); }
.btn.line:hover, .btn.line:focus-visible { border-color: var(--ink); }
.btn.sm { min-height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn .arr { width: 18px; height: 10px; transition: transform .55s var(--ease); }
.btn:hover .arr { transform: translateX(-5px); }
.tlink { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); background: linear-gradient(var(--fire), var(--fire)) 100% 100% / 100% 1.5px no-repeat; padding-bottom: 4px; transition: background-size .5s var(--ease), color .3s; }
.tlink:hover { color: var(--fire); }
.tlink .arr { width: 16px; height: 9px; transition: transform .5s var(--ease); }
.tlink:hover .arr { transform: translateX(-4px); }

/* ---------- top bar + header ---------- */
.util { background: var(--ink); color: rgba(255,255,255,.72); font-size: 13px; }
.util .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 38px; }
.util a { text-decoration: none; color: inherit; transition: color .3s; }
.util a:hover { color: #fff; }
.util .tag { display: inline-flex; align-items: center; gap: 10px; }
.util .tag::before { content: ""; width: 6px; height: 6px; background: var(--fire); }
.util .links { display: flex; gap: 26px; }
@media (max-width: 760px) { .util .tag { display: none; } .util .wrap { justify-content: center; } .util .links { gap: 18px; } .util .hide-s { display: none; } }

.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.top.solid { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 36px; height: var(--top-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { height: 40px; width: auto; }
.brand .bt { display: grid; line-height: 1.15; }
.brand b { font-family: "Naskh", serif; font-weight: 700; font-size: 21px; }
.brand small { font-size: 11.5px; color: var(--muted); letter-spacing: .01em; }
.nav { display: flex; gap: 30px; margin-inline-start: auto; font-size: 15px; }
.nav a { position: relative; text-decoration: none; color: var(--ink-2); padding: 6px 0; transition: color .3s; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--fire); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: none; margin-inline-start: auto; width: 46px; height: 46px; border: 1px solid var(--line-2); background: transparent; border-radius: 0; cursor: pointer; position: relative; }
.menu-btn i { position: absolute; inset-inline: 13px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s; }
.menu-btn i:nth-child(1) { top: 17px; } .menu-btn i:nth-child(2) { top: 22.5px; } .menu-btn i:nth-child(3) { top: 28px; }
.menu-open .menu-btn i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .menu-btn i:nth-child(2) { opacity: 0; }
.menu-open .menu-btn i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (max-width: 1080px) {
  .top { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .brand, .menu-btn { position: relative; z-index: 2; }
  .nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; gap: 0; padding: calc(var(--top-h) + 54px) var(--gut) 24px; overflow-y: auto; background: var(--paper); font-size: 22px; font-family: "Naskh", serif; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; transition: opacity .3s, transform .4s var(--ease); }
  .menu-btn { display: block; }
  .menu-open { overflow: hidden; }
  .top .cta { display: none; }
}

/* ---------- sections ---------- */
.sec { padding: clamp(80px, 10vw, 140px) 0; }
.sec.tint { background: var(--paper-2); }
.sec.white { background: var(--card); }
.sec-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 60px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .lead { margin: 18px 0 0; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Reveal: quick and short, only once, never hides content without JS. */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- hero (D: the building, layer by layer) ---------- */
.hero { padding: clamp(36px, 5vw, 72px) 0 0; }
.hero .grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero h1 em { font-style: normal; color: var(--fire); }
.hero .lead { margin-bottom: 36px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin-top: 22px; font-size: 14px; color: var(--muted); }
.hero .note a { color: var(--ink); text-decoration: none; font-weight: 600; }
@media (max-width: 900px) { .hero .grid { grid-template-columns: 1fr; } }

.layers { position: relative; background: var(--stone); aspect-ratio: 1200 / 896; overflow: hidden; }
.layers > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .8s var(--ease); }
.layers:not([data-active="4"]) > img { filter: saturate(.5) brightness(1.05) contrast(.94); }
/* Measured overlays: each safety layer draws itself onto the photograph in the brand orange. */
.ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ov g { opacity: 0; transition: opacity .5s; filter: drop-shadow(0 0 3px rgba(229, 83, 26, .55)); }
.ov path, .ov rect { fill: none; stroke: var(--fire); stroke-width: 2.6; stroke-linecap: square; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease) calc(var(--i, 0) * 70ms); }
.ov rect.sq { fill: var(--fire); stroke: none; }
.ov circle { fill: var(--fire); stroke: #fff; stroke-width: 2.5; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .5s var(--ease) calc(var(--i, 0) * 60ms); }
.layers[data-active="0"] g[data-l="0"], .layers[data-active="1"] g[data-l="1"], .layers[data-active="2"] g[data-l="2"], .layers[data-active="3"] g[data-l="3"], .layers[data-active="4"] .ov g { opacity: 1; }
.layers[data-active="0"] g[data-l="0"] :is(path, rect), .layers[data-active="2"] g[data-l="2"] :is(path, rect), .layers[data-active="3"] g[data-l="3"] :is(path, rect), .layers[data-active="4"] .ov :is(path, rect) { stroke-dashoffset: 0; }
.layers[data-active="1"] g[data-l="1"] circle, .layers[data-active="4"] .ov circle { transform: scale(1); }
.layers[data-active="4"] .ov g { opacity: .85; }
@media (prefers-reduced-motion: no-preference) { .layers[data-active="1"] .ov circle { animation: det 2.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .18s); } }
@keyframes det { 50% { fill: #fff; stroke: var(--fire); } }
.layer-note { position: absolute; bottom: 72px; inset-inline-start: 18px; max-width: min(320px, 70%); margin: 0; padding: 12px 16px 13px; background: rgba(245,243,239,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-inline-start: 2px solid var(--fire); font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }
.layer-note b { display: block; font-size: 14.5px; color: var(--ink); }
.layers .meter { position: absolute; top: 16px; inset-inline-start: 16px; display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 0 14px; padding: 10px 14px 10px; background: rgba(245,243,239,.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.layers .meter > span { font-size: 12px; color: var(--muted); }
.layers .meter b { font-size: 30px; line-height: 1; font-weight: 500; }
.layers .meter b small { font-size: 16px; color: var(--muted); }
.layers .meter .track { grid-column: 1 / -1; height: 2px; background: var(--line); margin-top: 8px; }
.layers .meter .track i { display: block; height: 100%; width: 100%; background: var(--fire); transform-origin: right; transition: transform .6s var(--ease); }
.layers .stamp { position: absolute; top: 16px; inset-inline-end: 16px; padding: 8px 14px; border: 1.5px solid var(--ink); color: var(--ink); font-size: 13px; font-weight: 700; background: rgba(245,243,239,.8); opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s var(--ease); }
.layers .stamp.on { opacity: 1; transform: none; }
.chips { position: absolute; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(245,243,239,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.chips button { font: inherit; font-size: 13.5px; color: var(--muted); background: transparent; border: 0; border-inline-end: 1px solid var(--line); border-radius: 0; padding: 14px 6px 16px; cursor: pointer; position: relative; transition: color .3s, background .3s; }
.chips button:last-child { border-inline-end: 0; }
.chips button::before { content: ""; position: absolute; top: -1px; inset-inline: 0; height: 2px; background: var(--fire); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.chips button[aria-pressed="true"] { color: var(--ink); background: rgba(255,255,255,.6); }
.chips button[aria-pressed="true"]::before { transform: scaleX(1); }
.chips button .n { display: block; font-size: 14px; color: var(--fire); line-height: 1; margin-bottom: 4px; }
@media (max-width: 520px) { .chips button { font-size: 12px; padding: 12px 2px 13px; } .layers { aspect-ratio: 1 / 1; } .layers .meter, .layers .stamp { display: none; } .layer-note { bottom: 80px; inset-inline: 10px; max-width: none; font-size: 12.5px; line-height: 1.7; padding: 8px 12px; } .layer-note b { font-size: 13px; } }

/* Credentials strip */
.creds { padding: 0; margin-bottom: 0; margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.creds li { list-style: none; padding: 26px 24px 28px 0; border-inline-end: 1px solid var(--line); padding-inline: 0 24px; }
.creds li + li { padding-inline-start: 24px; }
.creds li:last-child { border-inline-end: 0; }
.creds b { display: block; font-family: "Naskh", serif; font-weight: 600; font-size: 18px; line-height: 1.6; margin-bottom: 4px; }
.creds span { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .creds { grid-template-columns: 1fr 1fr; } .creds li:nth-child(2) { border-inline-end: 0; } .creds li:nth-child(n+3) { border-top: 1px solid var(--line); } .creds li:nth-child(3) { padding-inline-start: 0; } }
@media (max-width: 520px) { .creds { grid-template-columns: 1fr; } .creds li { border-inline-end: 0 !important; padding-inline: 0 !important; } .creds li + li { border-top: 1px solid var(--line); } }

/* ---------- services ---------- */
.svc { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); padding: 0; margin: 0; }
.svc a { display: grid; grid-template-columns: 56px 1fr 24px; gap: 4px 18px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative; transition: background .4s var(--ease); }
.svc li { list-style: none; display: flex; }
.svc li > a { flex: 1; }
.svc li:nth-child(odd) a { padding-inline-end: 32px; border-inline-end: 1px solid var(--line); }
.svc li:nth-child(even) a { padding-inline-start: 32px; }
.svc .n { font-size: 20px; color: var(--muted); line-height: 1.6; transition: color .3s; }
.svc b { font-family: "Naskh", serif; font-weight: 600; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.6; }
.svc small { grid-column: 2; font-size: 14.5px; color: var(--muted); line-height: 1.8; }
.svc .arr { grid-row: 1; grid-column: 3; width: 18px; height: 10px; margin-top: 12px; color: var(--muted); transition: transform .5s var(--ease), color .3s; }
.svc a:hover .n, .svc a:hover .arr { color: var(--fire); }
.svc a:hover .arr { transform: translateX(-6px); }
.svc a::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--fire); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.svc a:hover::after { transform: scaleX(1); }
@media (max-width: 800px) { .svc { grid-template-columns: 1fr; } .svc li a { padding-inline: 0 !important; border-inline-end: 0 !important; } }

/* ---------- 68 °C (C: the sprinkler, in a frame you can drive) ---------- */
.heat { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .heat { grid-template-columns: 1fr; } }
.film { position: relative; background: #0B0B0B; aspect-ratio: 16 / 10; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.film canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.film .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film .read { position: absolute; top: 20px; inset-inline-start: 22px; color: #fff; }
.film .read b { display: block; font-size: clamp(44px, 5vw, 64px); line-height: 1; font-weight: 500; }
.film .read b small { font-size: .4em; color: var(--fire-2); margin-inline-start: 2px; transition: color .4s; }
.film.cool .read b small { color: #fff; }
.film .read > span { font-size: 13px; color: rgba(255,255,255,.66); }
.film .msg { position: absolute; top: 24px; inset-inline-end: 22px; max-width: 46%; padding: 8px 14px; font-size: 13.5px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .5s var(--ease); }
.film .msg.on { opacity: 1; transform: none; }
.film .drag { position: absolute; bottom: 18px; inset-inline: 22px; display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.7); font-size: 13px; }
.film .drag input { flex: 1; -webkit-appearance: none; appearance: none; height: 22px; background: transparent; cursor: inherit; margin: 0; }
.film .drag input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(270deg, var(--fire-2), var(--fire) 45%, rgba(255,255,255,.55) 46%, rgba(255,255,255,.55)); }
.film .drag input::-moz-range-track { height: 2px; background: linear-gradient(270deg, var(--fire-2), var(--fire) 45%, rgba(255,255,255,.55) 46%, rgba(255,255,255,.55)); }
.film .drag input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6px; background: #fff; border: 0; border-radius: 0; transform: rotate(45deg); }
.film .drag input::-moz-range-thumb { width: 12px; height: 12px; background: #fff; border: 0; border-radius: 0; transform: rotate(45deg); }
@media (max-width: 520px) { .film { aspect-ratio: 4 / 3.4; } .film .msg { top: auto; bottom: 56px; inset-inline-end: 16px; max-width: 72%; font-size: 12.5px; } .film .read { top: 16px; inset-inline-start: 16px; } .film .drag { inset-inline: 16px; } }
.steps-mini { list-style: none; padding: 0; margin: 30px 0 0; border-top: 1px solid var(--line); }
.steps-mini li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
.steps-mini .num { color: var(--fire); font-size: 19px; line-height: 1.7; }


/* AMACO — Concept E, part 2 of the stylesheet: page sections from the process strip to the inner pages. Built into /e.css by scripts/build.mjs in file-name order. */
/* ---------- process ---------- */
.proc { display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: s; border-top: 2px solid var(--ink); padding: 0; margin: 0; }
.proc li { list-style: none; padding: 26px 22px 6px 0; padding-inline: 0 22px; position: relative; }
.proc li + li { border-inline-start: 1px solid var(--line); padding-inline-start: 22px; }
.proc .num { font-size: 34px; color: var(--fire); line-height: 1; display: block; margin-bottom: 18px; }
.proc b { display: block; font-family: "Naskh", serif; font-size: 19px; font-weight: 600; line-height: 1.6; margin-bottom: 8px; }
.proc p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.85; }
@media (max-width: 1000px) { .proc { grid-template-columns: 1fr 1fr; } .proc li { border-inline-start: 0 !important; padding-inline: 0 22px !important; border-bottom: 1px solid var(--line); padding-bottom: 24px; } }
@media (max-width: 560px) { .proc { grid-template-columns: 1fr; } }

/* ---------- founder / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.top-align { align-items: start; }
.split .ph { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--stone); }
.split .ph img { width: 100%; height: 100%; object-fit: cover; }
.split .ph figcaption { position: absolute; bottom: 0; inset-inline-start: 0; padding: 10px 16px; background: var(--paper); font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.quote { margin: 0 0 26px; font-family: "Naskh", serif; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.85; }
.quote::before { content: "«"; color: var(--fire); }
.quote::after { content: "»"; color: var(--fire); }
.sig { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; font-size: 14.5px; color: var(--muted); }
.sig b { color: var(--ink); font-size: 16px; display: block; }
.sig::before { content: ""; width: 44px; height: 2px; background: var(--fire); }
.ticks { list-style: none; padding: 0; margin: 0 0 32px; }
.ticks li { position: relative; padding: 12px 0; padding-inline-start: 30px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 23px; width: 10px; height: 10px; border: 2px solid var(--fire); transform: rotate(45deg); }
.ticks li b { font-weight: 600; }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillars > div { background: var(--paper); padding: 34px 28px 30px; transition: background .4s; }
.sec.tint .pillars > div { background: var(--paper-2); }
.pillars > div:hover { background: var(--card); }
.pillars .ico { width: 44px; height: 44px; margin-bottom: 26px; color: var(--fire); }
.pillars b { display: block; font-family: "Naskh", serif; font-weight: 600; font-size: 20px; line-height: 1.6; margin-bottom: 10px; }
.pillars p { font-size: 15px; color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- sectors (project types) ---------- */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sector { text-decoration: none; display: block; }
.sector .ph { aspect-ratio: 3 / 4; overflow: hidden; background: var(--stone); position: relative; }
.sector .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sector:hover .ph img { transform: scale(1.04); }
.sector .ph .tag { position: absolute; top: 0; inset-inline-start: 0; background: var(--paper); padding: 6px 12px; font-size: 12.5px; color: var(--muted); }
.sector b { display: block; margin-top: 18px; font-family: "Naskh", serif; font-size: 20px; font-weight: 600; }
.sector span { font-size: 14.5px; color: var(--muted); }
@media (max-width: 1000px) { .sectors { grid-template-columns: 1fr 1fr; } }

/* ---------- products ---------- */
.prod { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.prod a { display: block; padding: 30px 26px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); text-decoration: none; transition: background .4s; }
.prod a:hover { background: var(--card); }
.prod .ico { width: 40px; height: 40px; color: var(--ink); margin-bottom: 24px; transition: color .3s; }
.prod a:hover .ico { color: var(--fire); }
.prod b { display: block; font-family: "Naskh", serif; font-weight: 600; font-size: 19px; line-height: 1.6; margin-bottom: 6px; }
.prod span { font-size: 14.5px; color: var(--muted); }
.partner { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 18px 22px; background: var(--card); border-inline-start: 3px solid var(--fire); font-size: 15px; }
.partner b { font-weight: 700; }
@media (max-width: 1000px) { .prod { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .prod { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 24px 0; font-family: "Naskh", serif; font-weight: 600; font-size: clamp(17.5px, 1.5vw, 20px); line-height: 1.7; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; margin-top: 9px; background: linear-gradient(var(--fire), var(--fire)) center / 100% 1.5px no-repeat, linear-gradient(var(--fire), var(--fire)) center / 1.5px 100% no-repeat; transition: transform .45s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 24px; color: var(--ink-2); max-width: 44em; font-size: 15.5px; }
.faq .a p:last-child { margin: 0; }

/* ---------- articles ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post { text-decoration: none; display: flex; flex-direction: column; }
.post .ph { aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone); margin-bottom: 20px; }
.post .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post:hover .ph img { transform: scale(1.04); }
.post .meta { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.post .meta .cat { color: var(--fire); font-weight: 600; }
.post h3 { font-family: "Naskh", serif; font-weight: 600; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.65; margin-bottom: 10px; transition: color .3s; }
.post:hover h3 { color: var(--fire); }
.post p { font-size: 15px; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }

/* ---------- contact + form ---------- */
.contact { display: grid; grid-template-columns: 1.25fr .75fr; gap: 0; border: 1px solid var(--line); background: var(--card); }
.contact .form-side { padding: clamp(28px, 4.5vw, 64px); }
.contact .info { padding: clamp(28px, 4vw, 56px); background: var(--ink); color: #fff; display: flex; flex-direction: column; gap: 26px; }
.contact .info h3 { font-family: "Naskh", serif; font-size: 24px; font-weight: 600; }
.contact .info .eyebrow { color: var(--fire-2); }
.contact .info dl { margin: 0; display: grid; gap: 22px; }
.contact .info dt { font-size: 12.5px; color: rgba(255,255,255,.55); margin-bottom: 2px; }
.contact .info dd { margin: 0; font-size: 16px; line-height: 1.8; }
.contact .info dd a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); transition: border-color .3s, color .3s; }
.contact .info dd a:hover { color: var(--fire-2); border-color: var(--fire-2); }
.contact .info .big { font-size: 26px; font-weight: 500; letter-spacing: .02em; }
.contact .info .btn { background: #fff; border-color: #fff; color: var(--ink); margin-top: auto; }
.contact .info .btn:hover { color: #fff; border-color: var(--fire); }
.contact .info .btn svg.wa { width: 20px; height: 20px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.form { display: grid; gap: 22px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .form legend { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field label .opt { font-weight: 400; color: var(--muted); }
/* Dropdowns: where the browser allows it (Chrome, Edge), the open list is styled too, so the
   highlighted option is brand orange instead of the system blue. Other browsers keep their native list. */
@supports (appearance: base-select) {
  .form select, .form select::picker(select) { appearance: base-select; }
  .form select { display: flex; align-items: center; justify-content: space-between; gap: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .form select::picker-icon { content: ""; flex: none; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease); }
  .form select:open::picker-icon { transform: translateY(2px) rotate(225deg); }
  .form select::picker(select) { border: 1px solid var(--ink); border-radius: 0; background: #fff; padding: 4px 0; margin-top: 4px; box-shadow: 0 18px 40px -18px rgba(23,24,26,.35); }
  .form select option { padding: 10px 14px; font-size: 15px; color: var(--ink); background: #fff; transition: background .15s, color .15s; }
  .form select option::checkmark { display: none; }
  .form select option:hover, .form select option:focus-visible { background: var(--fire); color: #fff; outline: none; }
  .form select option:checked { font-weight: 700; }
  .form select option:checked:not(:hover):not(:focus-visible) { background: var(--paper-2); }
}
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 0; padding: 13px 14px; transition: border-color .3s, background .3s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.form textarea { min-height: 110px; resize: vertical; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.opts label { position: relative; }
.opts input { position: absolute; inset: 0; opacity: 0; margin: 0; }
.opts span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line-2); font-size: 14.5px; transition: background .3s, color .3s, border-color .3s; }
.opts input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.opts input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.form .hp { position: absolute; inset-inline-start: -9999px; }
.form .submit { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 6px; }
.form .fine { font-size: 13px; color: var(--muted); margin: 0; }
.done { padding: 20px 0; }
.done:focus { outline: none; }
.done .drop { width: 46px; height: 46px; color: var(--fire); margin-bottom: 20px; }
.done h3 { font-family: "Naskh", serif; font-size: 28px; font-weight: 600; margin-bottom: 10px; }

/* ---------- CTA band ---------- */
.band { background: var(--fire); color: #fff; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(44px, 5vw, 64px) 0; }
.band h2 { font-family: "Naskh", serif; font-weight: 600; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.5; }
.band p { margin: 6px 0 0; color: rgba(255,255,255,.85); }
.band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.band .btn:hover { color: #fff; }
.band .btn::before { background: var(--ink); }
.band .btn.line { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }

/* ---------- footer ---------- */
.foot { background: var(--paper-2); padding: clamp(60px, 7vw, 96px) 0 28px; font-size: 14.5px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.foot h4 { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 16px; letter-spacing: .02em; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--ink-2); transition: color .3s; }
.foot a:hover { color: var(--fire); }
.foot .about img { height: 52px; width: auto; margin-bottom: 18px; }
.foot .about p { color: var(--muted); max-width: 26em; }
.foot .slogan { font-family: "Naskh", serif; font-weight: 600; font-size: 20px; color: var(--ink); margin-bottom: 10px; }
.foot .base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot .cols { grid-template-columns: 1fr; } }

/* Mobile: one fixed square action bar */
.dock { position: fixed; inset-inline: 0; bottom: 0; z-index: 45; display: none; grid-template-columns: 1fr 1fr 1.4fr; background: var(--ink); transform: translateY(100%); transition: transform .45s var(--ease); }
.dock.on { transform: none; }
.dock a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; color: #fff; text-decoration: none; font-size: 14.5px; font-weight: 600; border-inline-end: 1px solid rgba(255,255,255,.12); }
.dock a:last-child { background: var(--fire); border: 0; }
.dock svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .dock { display: grid; } .foot { padding-bottom: 90px; } }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(48px, 7vw, 100px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 26px; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: var(--line-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fire); }
.page-head .lead { margin-top: 22px; }

/* About: timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-inline-start: 1px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 44px; padding-inline-start: 36px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -6px; top: 10px; width: 11px; height: 11px; background: var(--paper); border: 2px solid var(--fire); transform: rotate(45deg); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { background: var(--fire); }
.timeline .when { font-size: 13px; font-weight: 700; color: var(--fire); margin-bottom: 6px; display: block; }
.timeline b { display: block; font-family: "Naskh", serif; font-size: 21px; font-weight: 600; line-height: 1.6; margin-bottom: 8px; }
.timeline p { color: var(--ink-2); margin: 0; }

.cred-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.cred-table th, .cred-table td { text-align: start; padding: 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cred-table th { width: 34%; font-weight: 600; color: var(--muted); font-size: 14px; padding-inline-end: 24px; }
.cred-table tr:first-child th, .cred-table tr:first-child td { border-top: 2px solid var(--ink); }

.org { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 56px; position: relative; }
.org .hub { grid-column: 1 / -1; background: var(--ink); color: #fff; padding: 26px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; align-items: center; }
.org .hub b { font-family: "Naskh", serif; font-size: 21px; font-weight: 600; }
.org .hub span { color: rgba(255,255,255,.66); font-size: 14.5px; }
.org .unit { background: var(--paper); padding: 26px 22px; }
.org .unit .num { color: var(--fire); font-size: 17px; }
.org .unit b { display: block; font-family: "Naskh", serif; font-size: 18px; font-weight: 600; margin: 6px 0; }
.org .unit p { font-size: 14px; color: var(--muted); margin: 0; }
.org .unit .who { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 13px; color: var(--muted); }
@media (max-width: 1000px) { .org { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .org { grid-template-columns: 1fr; } }

.no-box { background: var(--card); border: 1px solid var(--line); padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; }
.no-box .no { font-family: "Naskh", serif; font-size: clamp(80px, 10vw, 140px); line-height: 1; color: var(--fire); font-weight: 700; }
@media (max-width: 700px) { .no-box { grid-template-columns: 1fr; } }

/* Blog index */
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; padding: 0; list-style: none; }
.cats a { display: inline-block; padding: 9px 16px; border: 1px solid var(--line-2); text-decoration: none; font-size: 14px; transition: background .3s, color .3s, border-color .3s; }
.cats a:hover, .cats a[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; background: var(--card); border: 1px solid var(--line); text-decoration: none; margin-bottom: 56px; }
.feature .ph { min-height: 320px; overflow: hidden; background: var(--stone); }
.feature .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .ph img { transform: scale(1.03); }
.feature .tx { padding: clamp(26px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.feature h2 { font-family: "Naskh", serif; font-weight: 600; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.55; margin: 8px 0 14px; transition: color .3s; }
.feature:hover h2 { color: var(--fire); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature .ph { min-height: 220px; } }
.post .ph.ph-blank { display: grid; place-items: center; background: var(--paper-2); }
.post .ph.ph-blank svg { width: 56px; height: 56px; color: var(--line-2); }

/* Article */
.article-grid { display: grid; grid-template-columns: 1fr 280px; gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 1000px) { .article-grid { grid-template-columns: 1fr; } .toc { display: none; } }
.prose { font-size: 17.5px; line-height: 2.05; max-width: 42em; }
.prose h2 { font-family: "Naskh", serif; font-weight: 600; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.6; margin: 2em 0 .6em; }
.prose h3 { font-family: "Naskh", serif; font-weight: 600; font-size: 21px; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose ol { list-style-type: persian; }
.prose li::marker { color: var(--fire); }
.prose .callout { margin: 2em 0; padding: 22px 26px; background: var(--card); border-inline-start: 3px solid var(--ink); font-size: 16px; }
.prose .callout b { display: block; margin-bottom: 4px; }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; }
.prose figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.tldr { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--fire); padding: 24px 28px; margin: 0 0 2em; font-size: 16px; }
.tldr b { display: block; font-size: 13.5px; color: var(--fire); margin-bottom: 8px; }
.tldr ul { margin: 0; }
.toc { position: sticky; top: calc(var(--top-h) + 32px); font-size: 14.5px; }
.toc b { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0 0 32px; border-inline-start: 1px solid var(--line); }
.toc ol a { display: block; padding: 7px 16px; text-decoration: none; color: var(--ink-2); border-inline-start: 2px solid transparent; margin-inline-start: -1px; transition: color .3s, border-color .3s; }
.toc ol a:hover, .toc ol a.on { color: var(--fire); border-color: var(--fire); }
.author { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 28px 0; border-block: 1px solid var(--line); margin: 3em 0 0; max-width: 42em; }
.author .av { width: 72px; height: 72px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: "Naskh", serif; font-size: 26px; }
.author b { display: block; font-size: 17px; }
.author span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.author p { font-size: 15px; color: var(--ink-2); margin: 0; }
.art-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.art-meta .cat { color: var(--fire); font-weight: 600; }
.draft { display: inline-block; margin-bottom: 18px; padding: 4px 10px; font-size: 12.5px; font-weight: 700; color: var(--ink); border: 1px solid var(--ink); }


/* AMACO — Concept E, part 3: the cursor, the navy colour scope and the client-feedback adjustments. Loaded after parts 1 and 2 so these rules win. */
/* Custom cursor (see cursor.js): hide the system arrow only while ours is live. */
html.flame-on, html.flame-on a, html.flame-on button, html.flame-on summary, html.flame-on label, html.flame-on [role="button"], html.flame-on .film { cursor: none; }
html.flame-on input, html.flame-on textarea, html.flame-on select { cursor: auto; }
html.flame-on input[type="range"] { cursor: none; }
.flame-cursor { position: fixed; top: 0; left: 0; z-index: 9999; width: 40px; height: 40px; pointer-events: none; will-change: transform, opacity; contain: layout style; opacity: 0; }
.flame-cursor svg { width: 40px; height: 40px; overflow: visible; }
.flame-ripple { position: fixed; top: 0; left: 0; z-index: 9998; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 1.5px solid rgba(43,155,244,.7); border-radius: 50%; pointer-events: none; animation: ripple .7s var(--ease) forwards; }
@keyframes ripple { from { transform: scale(.4); opacity: .9; } to { transform: scale(6); opacity: 0; } }

/* Article lead image */
.art-hero { margin-block: clamp(28px, 4vw, 48px) 0; }
.art-hero img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }

/* ---------- navy scope ---------- */
/* The same components, re-coloured by swapping the neutral tokens. */
.top, .hero, .page-head, .foot, .sec.navy {
  --paper: var(--navy);
  --paper-2: var(--navy-2);
  --card: var(--navy-3);
  --stone: #22365A;
  --ink: #F4F6FA;
  --ink-2: #C9D1DE;
  --muted: #94A1B8;
  --line: rgba(244, 246, 250, .12);
  --line-2: rgba(244, 246, 250, .26);
  background-color: var(--paper);
  color: var(--ink);
}
.top { background: color-mix(in srgb, var(--navy) 92%, transparent); }
.page-head { border-bottom: 0; }
.foot { background: var(--navy-2); }
/* The hero drawing is a light render: its overlays keep the light set. */
.hero .layers {
  --paper: #F4F5F7; --paper-2: #E8EBF0; --card: #FFFFFF; --stone: #D3D8E0;
  --ink: #0E1B33; --ink-2: #33405A; --muted: #66708A;
  --line: rgba(14, 27, 51, .12); --line-2: rgba(14, 27, 51, .22);
  color: var(--ink);
}
/* On navy, solid fills wash to white, so their text turns navy. */
:is(.top, .hero, .page-head, .foot, .sec.navy) :is(.btn.fire, .btn.line):is(:hover, :focus-visible) { color: var(--navy); border-color: #fff; }
:is(.top, .hero, .page-head, .foot, .sec.navy) .btn.fire::before { background: #fff; }
/* Main action: orange, with the brand yellow at its edge. */
.btn.fire { background: linear-gradient(90deg, var(--fire), var(--fire-2) 70%, var(--sun)); }
.no-box { border-color: var(--line); }

/* Form: building size, three short fields */
.form .row.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { .form .row.three { grid-template-columns: 1fr; } }
#bsize-hint { margin-top: -10px; }

/* Project management: photo slots for the stages of a project */
.slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
.slots figure { margin: 0; }
.slots img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--stone); }
.slots figcaption { display: flex; gap: 10px; align-items: baseline; padding-top: 12px; font-size: 14.5px; color: var(--ink-2); }
.slots figcaption .num { color: var(--fire); }
@media (max-width: 1000px) { .slots { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .slots { grid-template-columns: 1fr 1fr; } }

/* Products: the dealership sits under passive protection */
.prod .rep { display: block; margin-top: 12px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--fire); }
.partner .tlink { margin-inline-start: auto; }

/* Team units link to their service */
a.unit { text-decoration: none; color: inherit; transition: background .4s; }
a.unit:hover { background: var(--card); }
a.unit .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--fire); }
a.unit .go .arr { width: 16px; height: 9px; transition: transform .5s var(--ease); }
a.unit:hover .go .arr { transform: translateX(-4px); }

/* About: credibility pillars, five columns */
.pillars.five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .pillars.five { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pillars.five { grid-template-columns: 1fr; } }
.pillars .ext { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--fire); text-decoration: none; border-bottom: 1px solid currentColor; }

/* CTA band: a navy panel, so orange stays on the button only */
.band { background: var(--navy-3); }
.band p { color: rgba(255, 255, 255, .72); }
.band .btn:not(.line) { background: linear-gradient(90deg, var(--fire), var(--fire-2) 70%, var(--sun)); border-color: var(--fire); color: #fff; }
.band .btn::before { background: #fff; }
.band .btn:hover, .band .btn:focus-visible { color: var(--navy); border-color: #fff; }

/* AMACO — Concept E, part 4: states the live site adds to the static design. Form errors and the
   sending state (e/forms.js), the article list's empty state and pager, and helpers for the
   server-rendered pages. Same tokens, same square corners as parts 1–3. */

/* Screen-reader-only text (a heading the layout does not show but the outline needs). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- form errors: beside the field, and summarised at the top (NN/g) ---------- */
.form-errors { border: 1px solid var(--fire); border-inline-start-width: 4px; background: #fff; padding: 16px 20px; }
.form-errors:focus { outline: 2px solid var(--fire); outline-offset: 2px; }
.form-errors b { display: block; color: var(--ink); margin-bottom: 6px; }
.form-errors ul { margin: 0; padding-inline-start: 1.2em; }
.form-errors a { color: #B23A0C; }
.form .err { margin: 2px 0 0; font-size: 14px; line-height: 1.7; color: #B23A0C; font-weight: 600; }
.form [aria-invalid="true"] { border-color: #B23A0C; background: #fff; }
.form .field .fine { font-size: 13px; color: var(--muted); margin: 0; }
.form-status { margin: 0; font-size: 15px; min-height: 1.5em; }
.form-status .bad { color: #B23A0C; font-weight: 600; }
.form button[aria-busy="true"] { opacity: .7; cursor: progress; }
.ts-slot { min-height: 0; }

/* ---------- article cards rendered as h2 on the list page look like the home page's h3 ---------- */
.post .post-title { font-family: "Naskh", serif; font-weight: 600; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.65; margin-bottom: 10px; transition: color .3s; }
.post:hover .post-title { color: var(--fire); }
.posts .post time { white-space: nowrap; }

/* ---------- article list: empty state and pages ---------- */
.empty-state { max-width: 40em; padding: clamp(28px, 4vw, 48px); background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--fire); }
.empty-state h2 { font-family: "Naskh", serif; font-weight: 600; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.6; margin: 0 0 10px; }
.empty-state p { color: var(--ink-2); margin: 0 0 24px; }
.empty-state .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; }
.pager a { display: inline-block; padding: 10px 18px; border: 1px solid var(--line-2); text-decoration: none; }
.pager a:hover, .pager a:focus-visible { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager span { color: var(--muted); }

/* ---------- article body: quotes and rules the editor can produce ---------- */
.prose blockquote { margin: 2em 0; padding: 4px 22px; border-inline-start: 3px solid var(--fire); color: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--line-2); margin: 2.4em 0; }
.prose a { color: var(--ink); text-decoration-color: var(--fire); text-underline-offset: 3px; }
.prose a:hover { color: var(--fire); }
.tldr p { margin: 0; }

/* ---------- contrast fixes found by axe (WCAG 2.1 AA, 4.5:1 for small text) ----------
   Brand orange (#E5531A) is only 3.3:1 on the light greys, so small orange text on light
   backgrounds uses a deeper step of the same orange; the navy frame keeps the bright one. */
:root { --fire-ink: #B23A0C; }
.eyebrow, .post .meta .cat, .art-meta .cat, .tldr b, .proc .num, .slots figcaption .num, .org .unit .num, .timeline .when, .prod .rep, a.unit .go, .pillars .ext { color: var(--fire-ink); }
:is(.top, .hero, .page-head, .foot, .sec.navy, .band) :is(.eyebrow, .art-meta .cat) { color: var(--fire); }
.contact .info .eyebrow { color: var(--fire-2); }
/* Muted text on the grey (tint) sections: a darker step keeps 4.5:1. */
.sec.tint { --muted: #4E5770; }

/* Column counts that used to be inline styles: an inline style beats the media queries, so the
   About and Contact grids stayed 3–4 columns wide on phones and the page scrolled sideways. */
.org.cols-4 { grid-template-columns: repeat(4, 1fr); }
:is(.pillars, .proc).cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .org.cols-4, :is(.pillars, .proc).cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .org.cols-4, :is(.pillars, .proc).cols-3 { grid-template-columns: 1fr; } }
/* Fields in one row keep their inputs level when one of them has a hint or an error below. */
.form .field { align-content: start; }
