/* saltbox.ro - new site (7 Oct 2026, M5 - Saltbox site 1). Keeps the old feel: dark blue-grey engineering mood, one amber
   accent, full-bleed site photos under dark overlays, glass panels, big tight headings. Single dark theme on purpose. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/space-grotesk-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/space-grotesk-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Layout concept: one 72rem column, sections separated by tone (bg / bg-deep) and by full-bleed photo bands. */
:root {
  --bg: #1f252e; --bg-deep: #161b24; --ink: #0d1117; --raised: #2a323f; --line: #334155;
  --amber: #f59e0b; --amber-2: #fbbf24; --amber-3: #d97706;
  --text: #ffffff; --text-2: #cbd5e1; --muted: #94a3b8; --dim: #64748b; --ok: #22c55e;
  --display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 72rem; --gutter: clamp(1rem, 4vw, 1.5rem); --radius: 1rem; --header-h: 4.25rem;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--body); }
img, picture, svg, model-viewer { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--amber-2); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--amber); color: #000; padding: .6rem 1rem; border-radius: .5rem; font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; }
.label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-2); }
.sub { color: var(--text-2); font-size: clamp(1rem, 2vw, 1.15rem); max-width: 40rem; }

/* Header */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px);
  background: rgba(31, 37, 46, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.logo { position: relative; display: flex; align-items: center; color: var(--text); text-decoration: none; min-height: 44px; }
.logo svg { height: 2.42rem; width: auto; transition: color .2s; }   /* +9 % then +5 % (Adrian 7 Oct) */
.logo:hover svg, .logo:focus-visible svg { color: var(--amber-2); }
.logo-hint { position: absolute; left: 100%; top: 50%; margin-left: .6rem; transform: translate(-.4rem, -50%); opacity: 0; pointer-events: none;
  white-space: nowrap; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-2);
  border: 1px solid rgba(251, 191, 36, .4); border-radius: 2rem; padding: .2rem .6rem; transition: opacity .2s, transform .2s; }
.logo:hover .logo-hint, .logo:focus-visible .logo-hint { opacity: 1; transform: translate(0, -50%); }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { text-decoration: none; color: var(--text-2); font-size: .9rem; font-weight: 500; padding: .65rem .8rem; border-radius: .5rem; transition: color .2s; }
.nav a:hover { color: var(--amber-2); }
.lang { display: flex; gap: .25rem; margin-left: .5rem; }
.lang a { min-width: 44px; text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .06em; border: 1px solid var(--line); border-radius: 2rem; padding: .45rem .7rem; }
.lang a[aria-current="true"] { background: var(--amber); border-color: var(--amber); color: #000; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: .75rem; background: transparent; color: var(--text); cursor: pointer; }
.burger svg { margin: auto; }
@media (max-width: 860px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(85vw, 340px); flex-direction: column; align-items: stretch; gap: .25rem;
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1rem) 1.25rem 2rem; background: var(--ink);
    border-left: 1px solid rgba(251, 191, 36, .25); transform: translateX(100%); transition: transform .35s cubic-bezier(.4, 0, .2, 1); }
  .nav a { font-size: 1.05rem; padding: .85rem .5rem; border-bottom: 1px solid rgba(51, 65, 85, .5); border-radius: 0; }
  .lang { margin: 1.25rem 0 0 .5rem; gap: .4rem; }
  .lang a { flex: 0 0 auto; min-width: 0; font-size: .7rem; padding: .25rem .6rem; border: 1px solid var(--line); border-radius: 2rem; }   /* small pills (Adrian 7 Oct) */
  body.menu-open .nav { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transition: opacity .3s; }
  body.menu-open .scrim { opacity: 1; pointer-events: auto; }
  .logo-hint { display: none; }
}


/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .8rem 1.5rem; border-radius: .9rem;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--amber); color: #000; }
.btn-primary:hover { background: var(--amber-3); }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: var(--text); background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--bg); }

/* Hero: small kicker title + the five stages as big links (Adrian 7 Oct), photo full-bleed under a left gradient */
.hero { position: relative; min-height: min(92vh, 52rem); display: flex; align-items: center; padding: calc(var(--header-h) + 3rem) 0 clamp(3rem, 8vw, 5rem); overflow: hidden; }
.hero > picture, .band > picture { position: absolute; inset: 0; z-index: -2; }
.hero > picture img, .band > picture img { width: 100%; height: 100%; object-fit: cover; }
.hero > picture img { object-position: 62% 28%; }  /* keep the sun / flare and the scaffold in every crop */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(22, 27, 36, .82) 0%, rgba(31, 37, 46, .5) 50%, rgba(31, 37, 46, .2) 100%),
              linear-gradient(180deg, rgba(31, 37, 46, 0) 65%, rgba(31, 37, 46, 1) 100%); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1100px) { .hero-grid { grid-template-columns: minmax(0, 36rem) minmax(0, 24rem); justify-content: space-between; } }
.hero-main { min-width: 0; }
.hero-kicker { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); font-weight: 700; }
.hero h1 { margin-top: .9rem; font: 700 clamp(2rem, 4.2vw, 3.5rem)/1.08 var(--display); letter-spacing: -0.02em; color: #fff; text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
/* The five stages (Adrian 7 Oct; form 8 = research-1 variant D): a numbered list, the chevron always visible, each row jumps to its card */
.pillars-nav { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.pillars-nav li { border-bottom: 1px solid var(--line); }
.pillars-nav a { display: flex; align-items: center; gap: .9rem; min-height: 48px; text-decoration: none; color: var(--text);
  font: 600 clamp(1.05rem, 2vw, 1.25rem)/1.2 var(--body); text-shadow: 0 1px 12px rgba(0, 0, 0, .45); transition: color .2s; }
.pillars-nav a b { color: var(--amber); font-size: .85rem; letter-spacing: .08em; min-width: 1.6rem; font-variant-numeric: tabular-nums; }
.pillars-nav a span { min-width: 0; }
.pillars-nav a svg { margin-left: auto; color: var(--amber); flex: none; opacity: .85; }
.pillars-nav a:hover, .pillars-nav a:focus-visible { color: var(--amber-2); }
.pillars-nav a:hover span, .pillars-nav a:focus-visible span { text-decoration: underline; text-underline-offset: .25em; }
/* featured project (right half on wide screens, under the buttons on phones) */
.teaser { position: relative; display: grid; text-decoration: none; color: var(--text); border-radius: 1.25rem; overflow: hidden; max-width: 26rem;
  background: rgba(13, 17, 23, .72); border: 1px solid rgba(251, 191, 36, .25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.teaser .ph { aspect-ratio: 4 / 3; overflow: hidden; }
.teaser .ph img { width: 100%; height: 100%; object-fit: cover; }
.teaser .meta { padding: 1rem 1.2rem 1.2rem; display: grid; gap: .35rem; }
.teaser h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.teaser .where { color: var(--text-2); font-size: .9rem; }
.teaser-link { color: var(--amber-2); font-weight: 600; font-size: .95rem; }
.teaser:hover h3, .teaser:focus-visible h3 { color: var(--amber-2); }
/* records board (right half on wide screens, under the buttons on phones): real-scale figures, each tile opens its project */
.records { width: 100%; max-width: 26rem; }
.records-label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); font-weight: 700; margin-bottom: .75rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.records ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.records a { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1rem 1.1rem; border-radius: 1rem; text-decoration: none; color: var(--text);
  background: rgba(13, 17, 23, .72); border: 1px solid rgba(251, 191, 36, .25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .2s; }
.records b { font: 700 clamp(1.6rem, 3vw, 2.1rem)/1 var(--display); color: var(--amber); font-variant-numeric: tabular-nums; white-space: nowrap; }
.records span { font-size: .9rem; line-height: 1.35; }
.records small { margin-top: auto; padding-top: .25rem; color: var(--text-2); font-size: .8rem; }
.records a:hover, .records a:focus-visible { border-color: var(--amber); }
.records a:hover small, .records a:focus-visible small { color: var(--amber-2); }
/* proof strip under the hero */
.proof { background: var(--bg-deep); border-block: 1px solid var(--line); padding-block: clamp(1.75rem, 4vw, 2.5rem); }
.proof-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 1.25rem 2rem; }
.proof-list li { display: grid; gap: .35rem; align-content: start; }
.proof-list b { font: 700 clamp(1.8rem, 4vw, 2.4rem)/1 var(--display); color: var(--amber); font-variant-numeric: tabular-nums; }
.proof-list span { color: var(--text-2); font-size: .95rem; line-height: 1.4; }
.proof-line { margin-top: 1.25rem; color: var(--muted); font-size: .9rem; }
/* how we work */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: .6rem; align-content: start; background: var(--bg-deep); }
.step-n { font: 700 1.6rem/1 var(--display); color: var(--amber); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
.step p { color: var(--muted); line-height: 1.6; }
.need { margin-top: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: .75rem; }
.need h3 { font-size: 1.05rem; }
.need ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; color: var(--text-2); }
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* Sections */
.section { padding-block: clamp(4.5rem, 10vw, 7rem); }
.section-deep { background: var(--bg-deep); }
.section-head { display: grid; gap: .9rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.5rem); }

/* About */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.about.about-solo { grid-template-columns: minmax(0, 1fr); }
.about-text { display: grid; gap: 1.1rem; color: var(--muted); font-size: 1.05rem; max-width: 40rem; }
.about-text p:first-child { color: var(--text-2); font-size: 1.2rem; }
.stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg-deep); padding: 1.5rem 1.6rem; display: flex; align-items: baseline; gap: 1rem; }
.stat b { font: 700 2.6rem/1 var(--display); color: var(--amber); font-variant-numeric: tabular-nums; min-width: 4.2rem; }
.stat span { color: var(--muted); font-size: .95rem; }
@media (max-width: 768px) { .about { grid-template-columns: 1fr; } }

/* What we do: five stage cards, numbered because they are a real sequence (consulting -> general contracting) */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; counter-reset: none; }
.pillar { grid-column: span 2; position: relative; display: grid; align-content: start; gap: .75rem; padding: 1.75rem 1.6rem 1.9rem; border-radius: 1.25rem;
  background: var(--bg); border: 1px solid rgba(51, 65, 85, .7); scroll-margin-top: calc(var(--header-h) + 1.5rem); transition: border-color .3s, box-shadow .3s; }
.pillar:nth-child(4), .pillar:nth-child(5) { grid-column: span 3; }
.pillar:target { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber), 0 18px 50px rgba(0, 0, 0, .35); }
.pillar-n { font: 700 .8rem/1 var(--display); letter-spacing: .14em; color: var(--amber); }
.pillar h3 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); letter-spacing: -0.025em; }
.pillar > p { color: var(--text-2); }
.pillar ul { margin: .35rem 0 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.pillar li { padding-left: 1.2rem; position: relative; color: var(--muted); }
.pillar li::before { content: ""; position: absolute; left: 0; top: .68em; width: .5rem; height: 2px; background: var(--amber); }
.badge { display: inline-block; margin-left: .5rem; vertical-align: middle; font: 700 .62rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; background: var(--amber); color: #000; border-radius: 2rem; padding: .28rem .5rem; }
@media (max-width: 1024px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pillar, .pillar:nth-child(4), .pillar:nth-child(5) { grid-column: span 1; } .pillar:nth-child(5) { grid-column: span 2; } }
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr; } .pillar:nth-child(5) { grid-column: span 1; } }

/* Photo band (portfolio) */
.band { position: relative; isolation: isolate; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(31, 37, 46, .78) 0%, rgba(22, 27, 36, .58) 45%, rgba(22, 27, 36, .82) 100%); }

/* Project cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.card { position: relative; display: grid; text-decoration: none; border-radius: 1.25rem; overflow: hidden; background: rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .3s, border-color .3s; }
.card:hover { transform: translateY(-4px); border-color: rgba(251, 191, 36, .35); }
.card .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--raised); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.card:hover .ph img { transform: scale(1.04); }
.card .meta { padding: 1.1rem 1.25rem 1.3rem; display: grid; gap: .35rem; }
.card h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.card:hover h3 { color: var(--amber-2); }
.card .where { color: var(--muted); font-size: .9rem; }
.chips { position: absolute; top: .8rem; right: .8rem; display: flex; gap: .35rem; }
.chip { font: 700 .66rem/1 var(--body); letter-spacing: .1em; padding: .35rem .5rem; border-radius: 2rem; background: rgba(13, 17, 23, .8); color: var(--amber-2); border: 1px solid rgba(251, 191, 36, .35); }
@media (max-width: 1024px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; gap: 1rem; } }

/* Contact */
.contact { min-height: 60vh; display: grid; align-items: center; text-align: center; }
.contact h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
.contact .sub { margin: 1rem auto 0; }
.contact-box { margin: 2.25rem auto 0; max-width: 42rem; background: rgba(0, 0, 0, .65); border: 1px solid rgba(255, 255, 255, .1); border-radius: 1.5rem;
  padding: clamp(1.5rem, 5vw, 2.5rem); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: grid; gap: 1.25rem; justify-items: center; }
.contact-box .mail { font-size: clamp(1rem, 3.5vw, 1.15rem); user-select: all; color: var(--text-2); }
.contact-form { width: 100%; text-align: left; }
.cf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; }
.acct-f textarea { width: 100%; max-width: 100%; min-height: 8rem; padding: .6rem .8rem; border-radius: .6rem; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; line-height: 1.5; resize: vertical; }
.acct-f textarea:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.acct-f [aria-invalid="true"] { border-color: #ef4444; }
.cf-err { color: #fca5a5; }
.cf-privacy a { color: var(--amber-2); }
.contact-form.sent .acct-f, .contact-form.sent .cf-row, .contact-form.sent .cf-privacy, .contact-form.sent button { display: none; }
.cf-or { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-box .phone { color: var(--muted); }
.contact-box .phone a { color: var(--text); font-weight: 600; text-decoration: none; }
.socials { display: flex; gap: .75rem; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--text-2); transition: color .2s, border-color .2s; }
.socials a:hover { color: var(--amber-2); border-color: var(--amber-2); }

/* Footer */
.footer { background: #000; color: var(--muted); font-size: .85rem; padding-block: 2rem calc(2rem + env(safe-area-inset-bottom, 0px)); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; }

/* Footer links + legal pages */
.footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.footer-links a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--amber-2); }
.prose { max-width: 46rem; color: var(--text-2); }
.prose > p:first-child { color: var(--dim); font-size: .9rem; }
.prose h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin: 2.4rem 0 .8rem; letter-spacing: -0.02em; color: var(--text); }
.prose h3 { font-size: 1.1rem; margin: 1.6rem 0 .5rem; letter-spacing: -0.01em; color: var(--text); }
.prose p, .prose li { line-height: 1.7; }
.prose p + p { margin-top: .9rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: .7rem 0; display: grid; gap: .35rem; }
.prose a { color: var(--amber-2); }
.prose strong { color: var(--text); }

/* Project page */
.p-head { padding: calc(var(--header-h) + clamp(2.5rem, 7vw, 4.5rem)) 0 clamp(1.5rem, 4vw, 2.5rem); background: var(--bg-deep); }
.crumb { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); text-decoration: none; font-size: .9rem; min-height: 44px; }
.crumb:hover { color: var(--amber-2); }
.p-head h1 { font-size: clamp(2.2rem, 6vw, 4.25rem); margin-top: .75rem; }
.p-head .sub { margin-top: .75rem; }
.case { background: var(--bg-deep); border-bottom: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 3rem); }
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 2.25rem); }
.case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* 4 facts: 2 x 2, or one row of 4 */
.case-story { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 900px) { .case-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .case-story { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.case-story > div { min-width: 0; }
.case-story h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.case-story p { color: var(--text-2); line-height: 1.65; max-width: 65ch; }
.card-facts { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .5rem; font-size: .82rem; color: var(--muted); }
.card-facts b { color: var(--amber-2); font-variant-numeric: tabular-nums; }
.p-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.gallery { display: grid; gap: .9rem; }
.stage { position: relative; border-radius: .9rem; overflow: hidden; background: var(--ink); aspect-ratio: 3 / 2; touch-action: pan-y; }
.stage picture { display: block; width: 100%; height: 100%; }
.stage img { width: 100%; height: 100%; object-fit: contain; transition: opacity .18s; }
.stage-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(13, 17, 23, .6); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.stage-btn:hover { border-color: var(--amber-2); color: var(--amber-2); }
.stage-btn.prev { left: .75rem; } .stage-btn.next { right: .75rem; }
.counter { position: absolute; left: .9rem; bottom: .8rem; font: 600 .8rem/1 var(--body); background: rgba(13, 17, 23, .7); padding: .4rem .6rem; border-radius: 2rem; font-variant-numeric: tabular-nums; }
.thumbs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; }
.thumbs button { flex: 0 0 auto; width: 84px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: .5rem; overflow: hidden; cursor: pointer; background: var(--raised); opacity: .6; transition: opacity .2s, border-color .2s; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button[aria-current="true"], .thumbs button:hover { opacity: 1; border-color: var(--amber-2); }
@media (max-width: 640px) { .stage { aspect-ratio: 4 / 3; } .stage-btn { display: none; } .thumbs button { width: 64px; } }
.model { display: grid; gap: 1rem; }
.model model-viewer { width: 100%; height: clamp(320px, 65vh, 650px); background: var(--ink); border-radius: .9rem; border: 1px solid rgba(251, 191, 36, .18);
  --progress-bar-color: var(--amber); --progress-mask: var(--ink); }
.model-tools { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; }
.model-tools p { color: var(--muted); font-size: .92rem; max-width: 36rem; }
.pill { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .55rem 1.1rem; border-radius: 2rem; border: 1px solid rgba(251, 191, 36, .35);
  background: transparent; color: var(--amber-2); font: 600 .85rem/1 var(--body); cursor: pointer; text-decoration: none; }
.pill:hover { background: rgba(251, 191, 36, .1); border-color: var(--amber-2); }
.pill.ok { color: var(--ok); border-color: var(--ok); }
.model model-viewer { position: relative; display: block; }
/* Project sub-sections (editions / stages, helper 5 9 Oct): a tab row, then each part with its facts, story, gallery and model */
.parts { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 4rem); }
.p-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(1.5rem, 4vw, 2.25rem); scroll-margin-top: calc(var(--header-h) + 4.5rem); }   /* clear of the header + project bar */
.p-tabs [role="tab"] { min-height: 44px; padding: .55rem 1.2rem; border-radius: 2rem; border: 1px solid var(--line); background: transparent;
  color: var(--text-2); font: 600 .95rem/1 var(--body); cursor: pointer; font-variant-numeric: tabular-nums; }
.p-tabs [role="tab"]:hover { border-color: rgba(251, 191, 36, .5); color: var(--text); }
.p-tabs [role="tab"][aria-selected="true"] { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.p-tabs [role="tab"]:focus-visible { outline: 2px solid var(--amber-2); outline-offset: 3px; }
.part { display: grid; gap: clamp(1.5rem, 4vw, 2.25rem); }
.part[hidden] { display: none; }
.part { scroll-margin-top: calc(var(--header-h) + 4.5rem); }   /* the browser's own #part-<key> jump, clear of the bars */
.part-head h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); text-wrap: balance; }
.part-head .sub { color: var(--text-2); margin-top: .5rem; max-width: 65ch; }
.part-media { min-width: 0; }
model-viewer:not(:defined) > [slot] { display: none; }   /* no stray AR button before the viewer has loaded */
.ar-btn { position: absolute; right: 1rem; bottom: 1rem; }
.ar-btn.pill { background: var(--amber); color: #000; border-color: var(--amber); }
.p-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.p-nav a { display: grid; gap: .3rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s; }
.p-nav a:hover { border-color: var(--amber-2); }
.p-nav a span { color: var(--muted); font-size: .85rem; }
.p-nav a b { font: 700 1.15rem/1.2 var(--display); }
.p-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .p-nav { grid-template-columns: 1fr; } .p-nav .next { grid-column: 1; } }

/* 404 */
.nf { min-height: 80vh; display: grid; place-content: center; text-align: center; gap: 1rem; padding: var(--header-h) var(--gutter) 2rem; }
.nf h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.nf p { color: var(--muted); }

/* Reveal on scroll: visible by default; only hidden when JS has marked the page ready and motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }

/* ---------- account pages (cont / en/account) ---------- */
.acct { padding-block: calc(var(--header-h) + clamp(2.5rem, 7vw, 4.5rem)) clamp(3rem, 8vw, 5rem); background: var(--bg-deep); min-height: 70vh; }
.acct-wrap { max-width: 34rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.acct-wrap > *, .acct-form, .acct-f { min-width: 0; }
.acct-wrap h1 { font-size: clamp(2rem, 5vw, 3rem); }
.acct-wrap h2 { font-size: 1.25rem; margin-top: 1.5rem; }
.acct-lede { color: var(--text-2); line-height: 1.6; }
.acct-form { display: grid; gap: 1rem; }
.acct-form.acct-inline { gap: .75rem; }
.acct-form .btn { justify-self: start; }
.acct-f { display: grid; gap: .35rem; min-width: 0; }
.acct-f label { font-size: .85rem; font-weight: 600; color: var(--text); }
.acct-f label small { font-weight: 400; color: var(--muted); }
.acct-f input, .acct-f select, .acct-filter input, .acct-filter select { width: 100%; max-width: 100%; min-height: 46px; padding: .6rem .8rem; border-radius: .6rem;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.acct-f input:focus-visible, .acct-f select:focus-visible, .acct-check input:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.acct-hint { font-size: .8rem; color: var(--muted); }
.acct-static { color: var(--text-2); padding: .3rem 0; }
.acct-check { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; color: var(--text-2); font-size: .9rem; line-height: 1.5; }
.acct-check input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--amber); }
.acct-check a, .acct-alt a, .acct-wrap p a { color: var(--amber-2); }
.acct-alt { color: var(--text-2); font-size: .92rem; }
.acct-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.acct-msg { padding: .8rem 1rem; border-radius: .6rem; border: 1px solid var(--line); background: var(--raised); color: var(--text); line-height: 1.5; }
.acct-err { border-color: #ef4444; background: rgba(239, 68, 68, .12); }
.acct-ok { border-color: var(--ok); background: rgba(34, 197, 94, .12); }
.acct-danger .btn-primary { background: #ef4444; color: #fff; }
.acct-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.acct-stats { color: var(--text-2); font-variant-numeric: tabular-nums; }
.acct-filter { display: flex; flex-wrap: wrap; gap: .5rem; }
.acct-filter input { flex: 1 1 14rem; width: auto; }
.acct-filter select { width: auto; }
.acct-table { overflow-x: auto; }
.acct-table table { border-collapse: collapse; font-size: .82rem; min-width: 60rem; font-variant-numeric: tabular-nums; }
.acct-table th, .acct-table td { border-bottom: 1px solid var(--line); padding: .45rem .5rem; text-align: left; vertical-align: top; }
.acct-table code { font-size: .75rem; word-break: break-all; }
.acct-row-act { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.acct-row-act input[name="reason"] { width: 7rem; }
.acct-wrap.acct-wide { max-width: var(--wrap); }
.acct-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; }
.acct-plan { display: grid; align-content: start; gap: .4rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--raised); min-width: 0; }
.acct-plan h2 { margin: 0; font-size: 1.05rem; }
.acct-plan p { margin: 0; color: var(--text-2); line-height: 1.5; }
.acct-plan-pick { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
/* In-app purchase (iOS app): the two App Store plans, yearly preselected (account/iap.php) */
.iap-plans { border: 0; padding: 0; margin: 0 0 .8rem; display: grid; gap: .6rem; }
.iap-plan { display: flex; gap: .8rem; align-items: center; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--raised); cursor: pointer; }
.iap-plan:has(input:checked) { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.iap-plan input { accent-color: var(--amber); width: 1.2rem; height: 1.2rem; flex: none; }
.iap-plan > span { display: grid; gap: .15rem; }
.iap-plan em { font-style: normal; font-size: .85rem; font-weight: 600; color: var(--amber-3); }
.iap-link { font: inherit; color: var(--text); background: none; border: 0; padding: .6rem .2rem; text-decoration: underline; cursor: pointer; }
.iap-link:disabled { opacity: .5; cursor: default; }
.acct-plan .acct-price { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }

/* project pages: a bar that stays under the header - back to the projects, jump to 3D / AR, previous / next (Adrian 7 Oct, form 10) */
.p-3d { margin-top: 1.25rem; }
.p-bar { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 30; background: rgba(13, 17, 23, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-block: 1px solid var(--line); }
.p-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 52px; }
.p-bar a { color: var(--text); text-decoration: none; }
.p-bar-back { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-weight: 600; font-size: .95rem; min-width: 0; }
.p-bar-back:hover, .p-bar-back:focus-visible { color: var(--amber-2); }
.p-bar-r { display: flex; align-items: center; gap: .4rem; flex: none; }
.p-bar-3d { font: 700 .72rem/1 var(--body); letter-spacing: .1em; padding: .55rem .7rem; border-radius: 2rem; color: #000 !important; background: var(--amber); }
.p-bar-arrow { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: .75rem; }
.p-bar-arrow:hover, .p-bar-arrow:focus-visible { border-color: var(--amber); color: var(--amber-2); }
.p-bar-n { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; min-width: 2.6rem; text-align: center; }
#model { scroll-margin-top: calc(var(--header-h) + 64px); }

/* Continue with Google / Apple */
.acct-sso-box { display: grid; gap: .6rem; }
.acct-sso { justify-content: center; gap: .6rem; width: 100%; border: 1px solid var(--line); font-weight: 600; }
.acct-sso-google { background: #fff; color: #1f1f1f; }
.acct-sso-google:hover { background: #f2f2f2; }
.acct-sso-apple { background: #000; color: #fff; border-color: #000; }
.acct-sso-apple:hover { background: #1a1a1a; }
.acct-or { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; color: var(--muted); font-size: .85rem; }
.acct-or::before, .acct-or::after { content: ""; border-top: 1px solid var(--line); }

/* calculator teasers behind the account form pages (helper 3, 8 Oct 2026; Adrian: login = Bridle, sign-up = Rig plan, confirm / resend =
   Truss, reset = Cantilever): a real calculator page as an amber duotone - dark parts -> --bg-deep (lighten), light lines / numbers /
   diagram -> amber (multiply) - blurred a little, darkened mainly behind the form column. Inside the section (absolute, clipped):
   it ends where the section ends, never under the footer; no layout shift, no horizontal scroll. */
.acct.acct-teased { position: relative; isolation: isolate; overflow: clip; }
.acct-teaser { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.acct-teaser::before { content: ""; position: absolute; inset: -8px; opacity: var(--teaser-o, .8); filter: blur(1px);
  background: linear-gradient(var(--bg-deep), var(--bg-deep)), linear-gradient(var(--amber), var(--amber)), var(--teaser) center top / cover no-repeat;
  background-blend-mode: lighten, multiply, normal; }
.acct-teaser::after { content: ""; position: absolute; inset: 0;   /* one centred card: dark under it, the picture shows at both sides */
  background: linear-gradient(90deg, rgba(22, 27, 36, .25) calc(50% - 36rem), rgba(22, 27, 36, .9) calc(50% - 20rem), rgba(22, 27, 36, .9) calc(50% + 20rem), rgba(22, 27, 36, .25) calc(50% + 36rem)); }
@media (min-width: 64rem) {   /* card + value block: darkest under the form column, lighter towards the value block (it has its own panel) */
  .acct-teased-duo .acct-teaser::after { background: linear-gradient(90deg, rgba(22, 27, 36, .3) calc(50% - 44rem), rgba(22, 27, 36, .92) calc(50% - 30rem),
    rgba(22, 27, 36, .92) calc(50% + 6rem), rgba(22, 27, 36, .55) calc(50% + 12rem), rgba(22, 27, 36, .2) calc(50% + 34rem)); }
}
@media (max-width: 700px) {   /* phones: the card fills the width - dark behind it, the picture shows above and below */
  .acct-teaser::after, .acct-teased-duo .acct-teaser::after { background: linear-gradient(180deg, rgba(22, 27, 36, .2) 0%, rgba(22, 27, 36, .9) 22%, rgba(22, 27, 36, .9) 80%, rgba(22, 27, 36, .3) 100%); }
}
.acct-teaser-login { --teaser: url(../img/teaser/calc-login.webp); }
.acct-teaser-signup { --teaser: url(../img/teaser/calc-signup.webp); }
.acct-teaser-confirm { --teaser: url(../img/teaser/calc-confirm.webp); }
.acct-teaser-reset { --teaser: url(../img/teaser/calc-reset.webp); }
@media (max-width: 700px) {
  .acct-teaser-login { --teaser: url(../img/teaser/calc-login-m.webp); }
  .acct-teaser-signup { --teaser: url(../img/teaser/calc-signup-m.webp); }
  .acct-teaser-confirm { --teaser: url(../img/teaser/calc-confirm-m.webp); }
  .acct-teaser-reset { --teaser: url(../img/teaser/calc-reset-m.webp); }
}
/* login + sign-up: what the account gives, next to the card on desktop, under it on phones */
.acct-duo { width: 100%; max-width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 34rem); justify-content: center; gap: 2rem; }
.acct-duo > .acct-wrap { margin-inline: 0; }
.acct-value { padding-inline: var(--gutter); }
.acct-value ul { list-style: none; margin: 0; padding: 1.15rem 1.25rem; display: grid; gap: .85rem; border: 1px solid rgba(245, 158, 11, .3);
  border-radius: var(--radius); background: rgba(22, 27, 36, .82); }
.acct-value li { position: relative; padding-left: 1.35rem; color: var(--text-2); font-size: .95rem; line-height: 1.5; }
.acct-value li::before { content: ""; position: absolute; left: 0; top: .5em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--amber); }
@media (min-width: 64rem) {
  .acct-duo { grid-template-columns: minmax(0, 34rem) minmax(0, 19rem); column-gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
  .acct-value { position: sticky; top: calc(var(--header-h) + 2rem); padding-inline: 0; margin-top: 5.5rem; }
}

/* the logo's light: a glowing copy of the outline, seen through a band that crosses left to right, 1 s every 10 s (Adrian 7 Oct) */
.logo-glow { position: absolute; left: -10px; top: 50%; transform: translateY(-50%); padding: 10px; pointer-events: none; line-height: 0;
  -webkit-mask-image: linear-gradient(110deg, transparent 42%, #000 50%, transparent 58%); mask-image: linear-gradient(110deg, transparent 42%, #000 50%, transparent 58%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0; mask-position: 100% 0; animation: sbx-logo-light 10s linear infinite; }
.logo-glow svg { height: 2.42rem; width: auto; overflow: visible; display: block; }
@keyframes sbx-logo-light { 0% { -webkit-mask-position: 100% 0; mask-position: 100% 0; } 10%, 100% { -webkit-mask-position: 0% 0; mask-position: 0% 0; } }   /* left to right, 1 s every 10 s (Adrian) */
/* runs with Reduce Motion too: Adrian wants it on his iPhone, which has Reduce Motion on (7 Oct); it is a small light, not a movement */

/* Calculator intro /calculator/ + /en/calculator/ (helper 4, 8 Oct 2026; templates/calc-intro.html): the sales page of SBX Rigging Calc.
   Visitors to /calc/ without an account land here; the app and signed-in users never see it (pages.php calc_gate / intro_gate). */
.ci-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(2.5rem, 7vw, 4.5rem)) 0 clamp(3rem, 8vw, 5rem);
  background: radial-gradient(52rem 30rem at 82% 18%, rgba(245, 158, 11, .13), transparent 70%), var(--bg-deep); border-bottom: 1px solid var(--line); }
.ci-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.ci-hero h1 { margin-top: .9rem; font: 700 clamp(2.1rem, 4.6vw, 3.6rem)/1.06 var(--display); letter-spacing: -0.025em; }
.ci-lead { margin-top: 1.25rem; max-width: 36rem; color: var(--text-2); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.ci-years { margin-top: .9rem; color: var(--amber-2); font-weight: 600; }
.ci-note { margin-top: .9rem; color: var(--muted); font-size: .9rem; }
.ci-phone { display: none; }
@media (min-width: 1100px) {
  .ci-hero-grid { grid-template-columns: minmax(0, 38rem) minmax(0, 20rem); justify-content: space-between; }
  .ci-phone { display: block; padding: .55rem; border-radius: 2.4rem; background: #0b0f15; border: 1px solid var(--line);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(251, 191, 36, .1); }
  .ci-phone img { width: 100%; height: auto; border-radius: 1.9rem; }
}
/* four real screens (the output column: diagram + KPIs), ended by a fade, not by a hard edge */
.ci-shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.ci-shot { display: grid; align-content: start; border-radius: 1.25rem; overflow: hidden; border: 1px solid var(--line); background: #0d1117; }
.ci-shot picture { aspect-ratio: 5 / 4; overflow: hidden; }
.ci-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top;
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }
.ci-shot-meta { padding: .9rem 1.25rem 1.35rem; display: grid; gap: .35rem; }
.ci-shot h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
.ci-shot p { color: var(--text-2); }
.ci-own { margin-top: 1.75rem; max-width: 46rem; padding-left: 1rem; border-left: 3px solid var(--amber); font-size: clamp(1.05rem, 2vw, 1.2rem); font-weight: 600; }
/* the 13 tools: the 8 that use the free calculations, the 5 free without limit (account/boot.php DEMO_TOOLS) */
.ci-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.ci-group { display: grid; gap: .5rem; padding: 1.6rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--bg-deep); }
.ci-group h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); letter-spacing: -0.02em; }
.ci-group-note { color: var(--amber-2); font-size: .95rem; font-weight: 600; }
.ci-group ul { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; }
.ci-group li { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: .15rem 1rem; padding: .65rem 0; border-top: 1px solid rgba(51, 65, 85, .6); }
.ci-group li b { font-weight: 600; }
.ci-group li span { color: var(--muted); }
.ci-lib { margin-top: .5rem; color: var(--text-2); font-size: .95rem; }
/* free or Pro (no prices here: the Pro page has them) + the calculator footer's warning */
.ci-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 52rem; }
.ci-plan { display: grid; gap: 1rem; align-content: start; padding: 1.6rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--bg); }
.ci-plan-pro { border-color: rgba(251, 191, 36, .45); background: linear-gradient(160deg, rgba(245, 158, 11, .1), transparent 60%), var(--bg); }
.ci-plan h3 { font-size: 1.5rem; }
.ci-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ci-plan li { position: relative; padding-left: 1.35rem; color: var(--text-2); }
.ci-plan li::before { content: ""; position: absolute; left: 0; top: .55em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--amber); }
.ci-plan .btn { justify-self: start; }
.ci-safe { margin-top: 2rem; max-width: 52rem; padding: 1rem 1.2rem; border: 1px solid rgba(251, 191, 36, .35); border-radius: .9rem; color: var(--text-2); font-size: .95rem; line-height: 1.55; }
.ci-safe b { color: var(--text); }
/* the end: a big Continue to the login page; on phones it stays at the bottom of the screen (sticky in <main>) until the page ends */
.ci-end { padding-bottom: 1.75rem; text-align: center; }
.ci-end h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
.ci-end .sub { margin: .9rem auto 0; }
.ci-go { display: flex; justify-content: center; padding: 0 var(--gutter) clamp(4rem, 9vw, 6rem); }
.ci-go-btn { min-height: 64px; padding: 1.1rem 3rem; border-radius: 1.1rem; font-size: 1.2rem; box-shadow: 0 16px 40px rgba(245, 158, 11, .22); }
@media (max-width: 900px) { .ci-tools { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .ci-shots, .ci-plans { grid-template-columns: minmax(0, 1fr); }
  .ci-shot picture { aspect-ratio: 4 / 5; }
  .ci-go { position: sticky; bottom: 0; z-index: 30; padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom, 0px));
    background: rgba(22, 27, 36, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    transition: transform .3s, opacity .3s; }
  .ci-go.ci-go-wait { transform: translateY(100%); opacity: 0; pointer-events: none; }   /* the hero's own buttons are on screen (calc-intro.js) */
  .ci-go-btn { width: 100%; min-height: 56px; font-size: 1.1rem; }
}
@media (max-width: 520px) { .ci-group li { grid-template-columns: minmax(0, 1fr); } }

/* the VSDC ident between pages (assets/js/ident.js: /calculator/, /proiecte/), one chained sequence of 1.15 s (Adrian 9 Oct: "fade in, sta ff
   putin, face glow ul si apoi fade out", "fade ul la 50% ... la peak transition"; 14 Oct: "mai subtila si mai scurta ... te las pe tine sa
   decizi"): a smaller logo fades in to half opacity (0-0.25 s), a softer light crosses it - the band of .logo-glow over a white, glowing
   copy (0.28-0.73 s) - the logo fades out (0.75-0.95 s), then the dark screen opens on the page (0.85-1.15 s). Keyframes, not transitions: they run with Reduce Motion (Adrian: keep
   the fade and the light), while the reduced-motion rule above cuts transitions to .01 ms. */
.vsdc { display: none; }
.vsdc-on body { overflow: hidden; }
.vsdc-on .vsdc { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg-deep); cursor: pointer;
  animation: vsdc-out .3s ease-in .85s forwards; }
.vsdc-on .vsdc.vsdc-skip { animation: vsdc-skip .25s ease-in forwards; }
.vsdc-logo { position: relative; width: min(52vw, 22rem); }
.vsdc-logo > picture { animation: vsdc-in .25s ease-out both, vsdc-fade .2s ease-in .75s forwards; }   /* the logo never gets opaque: the light crosses it
   while it is still partly transparent (Adrian 9 Oct: "sa fie la peak ul tranzitiei inca transparent ... face glowul cu el inca transparent") */
.vsdc-logo img { width: 100%; height: auto; }
.vsdc-glow { position: absolute; inset: -1.5rem; padding: 1.5rem; pointer-events: none;   /* room for the glow: the mask cuts at the box */
  -webkit-mask-image: linear-gradient(110deg, transparent 42%, #000 50%, transparent 58%); mask-image: linear-gradient(110deg, transparent 42%, #000 50%, transparent 58%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0; mask-position: 100% 0; animation: vsdc-light .45s ease-in-out .28s both; }
.vsdc-glow img { opacity: .45; filter: brightness(0) invert(1) drop-shadow(0 0 .45rem rgba(255, 255, 255, .85)) drop-shadow(0 0 1.4rem rgba(251, 191, 36, .5)); }
@keyframes vsdc-in { from { opacity: 0; } to { opacity: .5; } }
@keyframes vsdc-fade { from { opacity: .5; } to { opacity: 0; } }
@keyframes vsdc-out { to { opacity: 0; visibility: hidden; } }
@keyframes vsdc-skip { to { opacity: 0; visibility: hidden; } }
@keyframes vsdc-light { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0% 0; mask-position: 0% 0; } }

/* the login bar in the header (helper 4, 8 Oct 2026; Adrian: "nu am de unde să-mi dau logout"): right of RO / EN, filled by site.js
   from /cont/me.php (the static pages cannot know the session). A box of fixed width, so the name arriving moves nothing; hidden
   until the answer (with JS), the plain login link without JS. */
.who { position: relative; width: 9.5rem; margin-left: .5rem; display: flex; justify-content: flex-end; }
.who [hidden] { display: none !important; }
.js .who:not([data-state]):not(.who-s) { visibility: hidden; }
.nav .who-in { padding: .45rem .9rem; border: 1px solid rgba(251, 191, 36, .45); border-radius: 2rem; color: var(--amber-2); font-size: .85rem; font-weight: 600; white-space: nowrap; }
.nav .who-in:hover { background: var(--amber); border-color: var(--amber); color: #000; }
.who-acct { position: relative; max-width: 100%; }
.who-btn { display: flex; align-items: center; gap: .35rem; max-width: 100%; min-height: 36px; padding: .4rem .75rem .4rem .9rem; border: 1px solid var(--line); border-radius: 2rem;
  background: var(--raised); color: var(--text); font: 600 .85rem/1 var(--body); cursor: pointer; }
.who-btn:hover, .who.open .who-btn { border-color: rgba(251, 191, 36, .6); }
.who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-btn svg { flex: none; color: var(--amber); transition: transform .2s; }
.who.open .who-btn svg { transform: rotate(180deg); }
.who-menu { display: none; position: absolute; right: 0; top: calc(100% + .5rem); z-index: 60; min-width: 12rem; margin: 0; padding: .4rem; list-style: none;
  background: var(--ink); border: 1px solid var(--line); border-radius: .9rem; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.who.open .who-menu { display: grid; }
.nav .who-menu a { display: block; padding: .6rem .8rem; border-radius: .55rem; color: var(--text-2); font-size: .9rem; }
.nav .who-menu a:hover { background: var(--raised); color: var(--amber-2); }
@media (max-width: 860px) {   /* phones: inside the burger drawer - the name as a small heading, the links always listed */
  /* the header's backdrop-filter makes it the containing block of the fixed drawer: open, the drawer was only as tall as the
     header (116 px) and its links hung over the page - no blur while the drawer is open (the scrim covers the page anyway) */
  body.menu-open .header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  .who { width: auto; margin: 1.25rem 0 0; display: block; }
  .nav .who-in { display: block; padding: .75rem 1rem; text-align: center; font-size: 1rem; border: 1px solid rgba(251, 191, 36, .45); border-radius: 2rem; }
  .who-btn { pointer-events: none; min-height: 0; padding: .5rem; background: none; border: 0; color: var(--amber-2); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
  .who-btn svg { display: none; }
  .who-menu { display: grid; position: static; min-width: 0; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav .who-menu a { padding: .85rem .5rem; border-radius: 0; font-size: 1.05rem; border-bottom: 1px solid rgba(51, 65, 85, .5); }
}

/* The app block (templates/_app.html; helper 4, 8 Oct 2026): real in-app screens in CSS phone frames (no device artwork) + the store
   buttons in the badge shape - greyed with "în curând" until site.json stores.* has the URL. On /calculator/ and the Pro page, web only. */
.app-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 1000px) { .app-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.app-text { display: grid; gap: .9rem; justify-items: start; }
.app-text h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.stores { display: flex; flex-wrap: wrap; gap: 1.1rem .9rem; margin-top: 1rem; }
.store { position: relative; display: inline-flex; align-items: center; gap: .6rem; min-height: 3.1rem; padding: .45rem 1.15rem .45rem .8rem; border-radius: .6rem;
  background: #000; border: 1px solid #a6a6a6; color: #fff; text-decoration: none; }
.store-i { flex: none; }
.store-t { display: grid; line-height: 1.1; }
.store-t small { font-size: .66rem; letter-spacing: .02em; }
.store-t b { font: 600 1.2rem/1.05 var(--body); letter-spacing: -0.01em; }
a.store:hover { border-color: var(--amber-2); }
.store-soon { cursor: default; border-color: #555; }
.store-soon > .store-i, .store-soon > .store-t { opacity: .5; filter: grayscale(1); }   /* greyed; the 'în curând' tag keeps its colour */
.store-tag { position: absolute; top: -.7rem; right: -.5rem; padding: .18rem .5rem; border-radius: 2rem; background: var(--amber); color: #000;
  font: 700 .6rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.app-phones { display: flex; justify-content: center; align-items: flex-end; padding-bottom: 1rem; }
.phone { position: relative; flex: none; margin: 0; width: 13rem; padding: .45rem; border-radius: 2.3rem; background: linear-gradient(150deg, #3b4453, #0b0f15 55%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 70px rgba(0, 0, 0, .55); }
.phone-screen { overflow: hidden; border-radius: 1.9rem; background: #0e1419; }
.phone-screen img { width: 100%; height: auto; }
.phone-bar { position: relative; display: flex; align-items: center; justify-content: space-between; height: 1.55rem; padding: 0 1.15rem; color: #fff; font: 600 .6rem/1 var(--body); }
.phone-bar::after { content: ""; position: absolute; left: 50%; top: .32rem; width: 3.9rem; height: .95rem; border-radius: 1rem; background: #000; transform: translateX(-50%); }   /* iOS-like: a pill */
.phone-bar i { position: relative; width: 1.05rem; height: .5rem; border: 1px solid rgba(255, 255, 255, .8); border-radius: .16rem; }
.phone-bar i::after { content: ""; position: absolute; inset: 1px 3px 1px 1px; border-radius: 1px; background: #fff; }
.phone-android { border-radius: 1.6rem; }
.phone-android .phone-screen { border-radius: 1.2rem; }
.phone-android .phone-bar::after { top: .45rem; width: .62rem; height: .62rem; border-radius: 50%; }   /* Android-like: a punch-hole camera */
.app-p2 { z-index: 2; width: 14.5rem; }
.app-p1, .app-p3 { width: 12.2rem; margin-bottom: 1.6rem; }
.app-p1 { margin-right: -2.4rem; transform: rotate(-4deg); }
.app-p3 { margin-left: -2.4rem; transform: rotate(4deg); }
@media (max-width: 700px) {
  .app-p3 { display: none; }
  .app-p2 { width: 11.5rem; }
  .app-p1 { width: 10rem; margin-right: -2rem; }
}

/* the live site while the calculator is not public (site.json calc_soon; Adrian 9 Oct): the header button + the coming-soon dialog / page */
.who.who-s { width: auto; }
.who-tag { margin-left: .45rem; padding: .1rem .4rem; border-radius: 1rem; background: var(--amber); color: #000; font-size: .62rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; vertical-align: .1em; }
.nav .who-in:hover .who-tag { background: #000; color: var(--amber-2); }
.soon-dlg { width: min(34rem, calc(100% - 2rem)); padding: 0; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--bg-deep); color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.soon-dlg::backdrop { background: rgba(13, 17, 23, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.soon-in { display: grid; gap: .9rem; padding: clamp(1.5rem, 5vw, 2.25rem); }
.soon-in h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.soon-act { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.soon-page { min-height: 60vh; }
.soon-page .soon-act { margin-top: 1.5rem; }
@media (max-width: 860px) { .who.who-s { width: auto; } }

/* the home icon, first in the right-hand menu (Adrian 9 Oct, form "Saltbox Buton Acasă": "A ... dar cu pictograma de home - prima din meniul
   din dreapta"); the logo stays the calculator's door. Phones (drawer): the icon with its word. */
.nav .nav-home { display: inline-flex; align-items: center; gap: .5rem; }
.nav .nav-home svg { flex: none; }
.nav-home-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 860px) { .nav-home-t { position: static; width: auto; height: auto; overflow: visible; clip: auto; } }
