/* alumyarka-hub: Stagetimer method (research/knowledge/16).
   Every service image has a perfectly flat background; --bg of its section = the sampled edge pixel
   (img/colors.json). Never change an image without re-running tools/flatten-bg.py. */

:root {
  --ink: #181816;
  --ink-soft: #3d3f3c;
  --paper: #f6f3ee;
  --stone: #e9e1d4;
  --ral7016: #2f3539;
  --ral7016-2: #3a4146;
  --copper: #c26a3a;
  --copper-deep: #9c4f25;
  --line: #d9d1c4;
  --radius: 10px;
  --shadow: 0 18px 40px -18px rgb(24 24 22 / .45);
  --font: "IBM Plex Sans Hebrew", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --hand: "Amatic SC", "Segoe Print", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-weight: 300; font-size: 1.0625rem; line-height: 1.65;
  color: var(--ink); background: var(--paper);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .02em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 4px; }

/* ---------- header (takes the colour of the section under it) ---------- */
.site-header { background: var(--bg, transparent); color: var(--fg, var(--ink)); position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.15rem; }
.logo svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 6px; font-weight: 400; font-size: .98rem; }
.nav a:hover { background: rgb(0 0 0 / .08); }
.nav a[aria-current] { font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500;
  padding: 13px 22px; border-radius: 8px; background: var(--ral7016); color: #fff; border: 0; cursor: pointer;
  box-shadow: 0 10px 22px -12px rgb(0 0 0 / .6); transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #1d2124; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: rgb(0 0 0 / .07); }
.btn--small { padding: 9px 16px; font-size: .95rem; }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }

/* ---------- hub hero: mesh made of the six service colours ---------- */
.hub-hero {
  position: relative; overflow: hidden; padding: 72px 0 120px;
  background:
    radial-gradient(60% 80% at 100% 0%, #788a8e66, transparent 70%),
    radial-gradient(50% 70% at 0% 10%, #cea97866, transparent 70%),
    radial-gradient(55% 75% at 20% 100%, #be7b6255, transparent 70%),
    radial-gradient(50% 60% at 85% 100%, #8c947d55, transparent 70%),
    var(--stone);
  box-shadow: 0 -1rem 3rem -3rem black inset;
}
.hub-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hub-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.hub-hero h1 mark {
  color: inherit; white-space: nowrap; padding-inline: .06em;
  background: linear-gradient(transparent 72%, color-mix(in oklab, var(--copper) 55%, transparent) 72% 94%, transparent 94%);
}
.hub-hero .lead { margin-top: 22px; font-size: 1.2rem; max-width: 34em; color: var(--ink-soft); }
.hub-hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.proof { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .95rem; color: var(--ink-soft); }
.proof span { display: inline-flex; align-items: center; gap: 8px; }
.proof b { font-weight: 600; color: var(--ink); }

/* permit card: the factory's real advantage */
.permit {
  background: #fffdf9; border-radius: 14px; box-shadow: var(--shadow); padding: 26px 26px 22px; position: relative;
  transform: rotate(-1.2deg);
}
.permit__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 14px; }
.permit__big { font-family: var(--mono); font-size: 2.6rem; font-weight: 600; line-height: 1; }
.permit ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: .95rem; }
.permit li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid #f0ebe3; padding-block: 4px; }
.permit li .mono { color: var(--copper-deep); }
.permit__note { font-family: var(--hand); font-size: 1.55rem; font-weight: 700; line-height: 1; position: absolute; inset-inline-start: -18px; bottom: -46px; color: var(--ink); }
.permit__note svg { width: 54px; height: 40px; vertical-align: -6px; }
@media (max-width: 900px) {
  .hub-hero__grid { grid-template-columns: 1fr; }
  .permit { transform: none; margin-bottom: 40px; }
}

/* ---------- section scaffolding ---------- */
.section { padding: 110px 0; }
.section h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.section__intro { margin-top: 18px; max-width: 46em; color: var(--ink-soft); columns: 2; column-gap: 32px; }
.section__intro p + p { margin-top: 12px; }
@media (max-width: 760px) { .section { padding: 72px 0; } .section__intro { columns: 1; } }

/* ---------- service cards (Stagetimer "use cases" pattern) ---------- */
.cards { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  display: flex; height: 168px; border-radius: var(--radius); overflow: hidden; text-decoration: none;
  box-shadow: var(--shadow); background: var(--ral7016); color: #fff; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: scale(1.03); box-shadow: 0 26px 50px -20px rgb(24 24 22 / .55); }
.card__img { flex: none; width: 168px; height: 168px; background: var(--bg); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 22px 26px; }
.card__body h3 { font-size: 1.2rem; font-weight: 500; }
.card__body p { margin-top: 6px; font-size: .95rem; line-height: 1.5; color: #b8c0c4; }
.card__series { margin-top: 10px; font-family: var(--mono); font-size: .78rem; color: #e3a37f; letter-spacing: .04em; }
.card__arrow { position: absolute; top: 16px; inset-inline-end: 16px; width: 22px; height: 22px; color: #7d878c; transition: color .2s ease, transform .2s ease; }
.card:hover .card__arrow { color: #fff; transform: translate(-2px, -2px); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .card, .card__img { height: 150px; } .card__img { width: 124px; } .card__body { padding: 16px 18px; } }

/* ---------- colour band (image bleeds into a flat section) ---------- */
.band { background: var(--bg); color: var(--fg); }
.band__grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 40px; }
.band__img { max-width: 460px; justify-self: start; }
.band__text { padding-block: 56px; }
.band__text h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.band__text p { margin-top: 16px; max-width: 36em; opacity: .92; }
.promises { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; }
.promises li { display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: baseline; }
.promises .mono { font-size: 1.35rem; color: #f0b48f; }
@media (max-width: 820px) { .band__grid { grid-template-columns: 1fr; } .band__img { justify-self: center; max-width: 320px; margin-top: 24px; } .band__text { padding-top: 0; } }

/* ---------- service hero: header + hero = one flat colour, image floats in it ---------- */
.svc-hero { background: var(--bg); color: var(--fg); padding: 24px 0 56px; }
.svc-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.crumbs { font-size: .9rem; opacity: .8; margin-bottom: 18px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.svc-hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.7rem); }
.svc-hero .lead { margin-top: 20px; font-size: 1.15rem; max-width: 33em; }
.svc-hero .lead + .lead { margin-top: 12px; font-size: 1.05rem; }
.svc-hero .actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.svc-hero__img { justify-self: end; width: 100%; max-width: 520px; }
.chips { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: .82rem; padding: 5px 10px; border-radius: 999px; background: rgb(255 255 255 / .28); }
@media (max-width: 860px) {
  .svc-hero__grid { grid-template-columns: 1fr; }
  .svc-hero__img { order: -1; justify-self: center; max-width: 340px; margin-top: -8px; }
}

/* ---------- layer 2: annotated drawing (not AI) ---------- */
.explain { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.explain__art { position: relative; }
.explain__art .blob { position: absolute; inset: 8% 6% 4% 14%; background: var(--blob, #788a8e); opacity: .35; border-radius: 42% 58% 52% 48% / 46% 40% 60% 54%; }
.explain__art svg { position: relative; width: 100%; height: auto; }
.hand { font-family: var(--hand); font-weight: 700; font-size: 30px; fill: var(--ink); }
.explain h2 + p { margin-top: 18px; }
.explain ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.explain li { padding-inline-start: 22px; position: relative; }
.explain li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 10px; height: 2px; background: var(--copper); }
@media (max-width: 860px) { .explain { grid-template-columns: 1fr; gap: 28px; } }

/* series table */
.series { margin-top: 44px; width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line); }
.series th, .series td { text-align: start; padding: 16px 20px; border-bottom: 1px solid #eee7dc; vertical-align: top; }
.series th { font-weight: 500; font-size: .9rem; background: #f1ece4; }
.series td:first-child { font-family: var(--mono); font-weight: 600; font-size: 1.1rem; white-space: nowrap; }
.tag { display: inline-block; font-size: .8rem; padding: 2px 8px; border-radius: 4px; background: #f6e5d9; color: var(--copper-deep); font-weight: 500; }

/* steps */
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 0 var(--line); counter-increment: s; }
.steps li::before { content: "0" counter(s); font-family: var(--mono); color: var(--copper); font-weight: 600; display: block; margin-bottom: 10px; }
.steps h3 { font-size: 1.15rem; margin-bottom: 8px; }
.steps p { font-size: .97rem; color: var(--ink-soft); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* faq */
.faq { margin-top: 36px; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--copper); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--ink-soft); }

/* cta + footer */
.cta { background: var(--ral7016); color: #fff; border-radius: 16px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.cta p { margin-top: 8px; color: #c4cbcf; }
.cta .btn { background: var(--copper); }
.cta .btn:hover { background: var(--copper-deep); }
.cta .btn--ghost { background: transparent; }
.site-footer { padding: 56px 0 40px; font-size: .92rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--line); padding-top: 28px; }
.demo-note { font-size: .82rem; opacity: .75; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* <picture> wrappers must not become grid items: let the <img> carry order/justify rules */
.svc-hero__grid > picture, .band__grid > picture { display: contents; }
