/* ============================================================
   SUNSTAR MACEDON — design system
   Macedonian mosaic × modern engineering
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --paper:    #F4EFE2;
  --paper-2:  #ECE4D2;
  --paper-3:  #E4D9C2;
  --red:      #BE3A2B;
  --red-deep: #9E2E22;
  --red-lite: #CE5443;
  --gold:     #E2A93C;
  --gold-deep:#BE8526;
  --gold-lite:#EFC25E;
  --sage:     #8F9D88;
  --sage-deep:#6E7D68;
  --ink:      #241F1A;
  --ink-soft: #5A5247;
  --ink-mute: #877B68;
  --line:     #D8CCB4;

  --serif: 'Cinzel', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --shadow: 0 18px 48px -22px rgba(60,30,16,.4);
  --shadow-sm: 0 8px 24px -14px rgba(60,30,16,.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { /* faint paper texture */
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(100% 80% at 50% 120%, rgba(158,46,34,.05), transparent 55%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.04; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(2.7rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.35rem); color: var(--ink-soft); line-height: 1.62; }

.kicker {
  font-family: var(--mono); font-size: .8rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--red-deep);
  display: inline-flex; align-items: center; gap: .7em;
}
.kicker::before { content: ''; width: 26px; height: 2px; background: var(--gold-deep); display: inline-block; }
.kicker.center::after { content: ''; width: 26px; height: 2px; background: var(--gold-deep); display: inline-block; }

.eyebrow-num { font-family: var(--mono); color: var(--gold-deep); font-size: .85rem; letter-spacing: .15em; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; }
.section-pad { padding-block: clamp(64px, 9vw, 130px); }

/* ---------- mosaic tile rule (tesserae strip) ---------- */
.mosaic-rule {
  height: 14px; width: 100%;
  background:
    repeating-linear-gradient(90deg,
      var(--red) 0 13px, transparent 13px 16px),
    repeating-linear-gradient(90deg,
      var(--sage) 0 26px, var(--sage-deep) 26px 29px);
  background-blend-mode: normal;
  position: relative;
}
.mosaic-rule.thin {
  height: 9px;
  background: repeating-linear-gradient(90deg, var(--red) 0 9px, var(--paper) 9px 12px);
  box-shadow: inset 0 0 0 0 transparent;
  border-block: 2px solid var(--sage);
}

/* dotted/tessera divider for inside sections */
.tess-row {
  display: flex; gap: 4px; flex-wrap: wrap;
}
.tess-row i { width: 12px; height: 12px; background: var(--gold); display: block; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--mono); font-weight: 500; font-size: .9rem; letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: .6em;
  padding: .92em 1.5em; border-radius: 2px; cursor: pointer; border: 2px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  text-transform: uppercase;
}
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--red); color: #fff7ee; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-lite); transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,239,226,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand .mark { width: 42px; height: 42px; flex: none; }
.brand .mark svg { width: 100%; height: 100%; }
.brand .word { font-family: var(--serif); font-weight: 700; font-size: 1.18rem; letter-spacing: .12em; line-height: 1; }
.brand .word small { display: block; font-family: var(--mono); font-weight: 400; font-size: .58rem; letter-spacing: .34em; color: var(--ink-mute); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-family: var(--mono); font-size: .85rem; letter-spacing: .06em; color: var(--ink-soft); position: relative; padding: 4px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--red); transition: width .22s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; transition: .2s; }

@media (max-width: 880px) {
  .nav-links { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    transform: translateY(-130%); transition: transform .28s ease; box-shadow: var(--shadow); }
  .nav.open .nav-links { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-toggle { display: flex; }
  .nav-cta .btn:not(.nav-toggle) { display: none; }
}

/* ---------- cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 3px;
  padding: 30px; position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card::before { /* tile accent top edge */
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 7px;
  background: repeating-linear-gradient(90deg, var(--red) 0 9px, var(--paper) 9px 12px);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }

/* ---------- compliance chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  font-family: var(--mono); font-size: .82rem; font-weight: 500; letter-spacing: .03em;
  padding: .55em 1em; border: 1.5px solid var(--sage-deep); color: var(--sage-deep);
  border-radius: 2px; background: rgba(143,157,136,.08); white-space: nowrap;
  transition: .2s; display: inline-flex; align-items: center; gap: .5em;
}
.chip::before { content: ''; width: 7px; height: 7px; background: var(--sage-deep); }
.chip:hover { background: var(--sage-deep); color: var(--paper); }
.chip:hover::before { background: var(--gold); }

/* ---------- partners carousel ---------- */
.partner-strip { padding-top: clamp(24px, 3vw, 40px); }
.partner-head { margin-bottom: clamp(28px, 4vw, 40px); max-width: 760px; }
.partner-carousel { overflow: hidden; padding-block: 8px; }
.partner-track {
  display: flex; gap: clamp(16px, 2vw, 24px); width: max-content;
  animation: partner-scroll 60s linear infinite; will-change: transform;
}
.partner-item {
  flex: 0 0 auto; min-width: clamp(140px, 16vw, 190px); min-height: 92px; padding: 18px 22px;
  background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 3px;
  box-shadow: var(--shadow-sm); display: grid; place-items: center;
}
.partner-item img {
  max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .9;
  transition: transform .2s ease, filter .2s ease, opacity .2s ease;
}
.partner-item:hover img {
  filter: grayscale(0); opacity: 1; transform: translateY(-2px);
}
.partner-carousel:hover .partner-track { animation-play-state: paused; }

@keyframes partner-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 680px) {
  .partner-item { min-width: 132px; min-height: 84px; padding: 16px 18px; }
  .partner-item img { max-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .partner-track { animation: none; }
  .partner-carousel { overflow-x: auto; }
}

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding-block: 70px 36px; position: relative; }
.footer a { color: var(--paper); opacity: .8; }
.footer a:hover { opacity: 1; color: var(--gold-lite); }
.footer .mosaic-rule { position: absolute; top: 0; left: 0; }

/* ---------- reveal animation ----------
   Hidden state applies ONLY when JS is active (html.js) AND motion is allowed.
   No-JS, reduced-motion, and frozen-timeline contexts all show content. */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  html.js .reveal[data-d="1"] { transition-delay: .08s; }
  html.js .reveal[data-d="2"] { transition-delay: .16s; }
  html.js .reveal[data-d="3"] { transition-delay: .24s; }
  html.js .reveal[data-d="4"] { transition-delay: .32s; }
  html.js .reveal[data-d="5"] { transition-delay: .40s; }
}
html.js .reveal.in {
  opacity: 1;
  color: inherit;
}

/* verification escape hatch — instant, no transition */
html.reveal-off .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- sun animation ---------- */
.sunstar { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .sun-spin .ss-ring { transform-box: fill-box; transform-origin: center; animation: ss-spin 140s linear infinite; }
  .sun-spin .ss-rays { transform-box: fill-box; transform-origin: center; animation: ss-spin-rev 200s linear infinite; }
}
@keyframes ss-spin { to { transform: rotate(360deg); } }
@keyframes ss-spin-rev { to { transform: rotate(-360deg); } }

/* ---------- misc ---------- */
.muted { color: var(--ink-mute); }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.center { text-align: center; }
.grid { display: grid; gap: 22px; }
.divider-line { height: 1px; background: var(--line); border: 0; }
.skip { position: absolute; left: -9999px; }

/* ============================================================
   PAGE COMPONENTS
   ============================================================ */

/* section heads */
.sec-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head h2 { margin: 18px 0 16px; }
.sec-head .lede { max-width: 56ch; }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(40px, 7vw, 90px); padding-bottom: clamp(60px, 8vw, 110px); }
.hero-sun {
  position: absolute; right: -16vw; top: 50%; transform: translateY(-50%);
  width: 760px; max-width: 82vw; opacity: 1; pointer-events: none; z-index: 0;
  filter: drop-shadow(0 30px 60px rgba(120,40,20,.16));
}
.hero-sun span, .hero-sun svg { width: 100%; height: auto; }
.hero-inner { position: relative; z-index: 2; }
.hero-copy { max-width: 660px; }
.hero h1 { margin: 22px 0 26px; }
.hero h1 .hl { color: var(--red); }
.hero .lede { max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 38px; margin-top: 48px; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-family: var(--serif); font-size: 2.1rem; color: var(--ink); line-height: 1; }
.hero-meta span { font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; color: var(--ink-mute); margin-top: 6px; max-width: 16ch; }
.hero > .mosaic-rule { position: absolute; bottom: 0; left: 0; }
@media (max-width: 980px) {
  .hero-sun { right: -30vw; opacity: .28; }
}
@media (max-width: 620px) {
  .hero-meta { gap: 26px; }
  .hero-meta strong { font-size: 1.7rem; }
}

/* ---------- COMPLIANCE STRIP ---------- */
.strip { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.strip-head { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 760px; margin-bottom: 30px; }
.strip-head .lede { margin: 0; }

/* ---------- PILLARS ---------- */
.pillars { grid-template-columns: repeat(3, 1fr); }
.pillar h3 { margin: 14px 0 12px; }
.pillar p { color: var(--ink-soft); }
.tags { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--mono); font-size: .72rem; letter-spacing: .03em; color: var(--gold-deep);
  border: 1px solid var(--line); padding: .35em .7em; border-radius: 2px; }
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- ETHOS ---------- */
.ethos-copy > .kicker{
  color: white;
}
.ethos { background: var(--ink); color: var(--paper); position: relative; }
.ethos .mosaic-rule:first-child { position: absolute; top: 0; left: 0; }
.ethos .mosaic-rule:last-child { position: absolute; bottom: 0; left: 0; }
.ethos-inner { display: grid; grid-template-columns: 320px 1fr; gap: clamp(30px, 6vw, 80px); align-items: center;
  padding-block: clamp(70px, 9vw, 120px); }
.ethos-mark { justify-self: center; filter: drop-shadow(0 20px 40px rgba(0,0,0,.4)); }
.ethos-mark span, .ethos-mark svg { width: 100%; height: auto; }
.ethos-copy h2 { margin: 16px 0 18px; }
.ethos-copy .lede { color: #d8cdb8; max-width: 54ch; }
.ethos-copy .kicker { color: var(--gold-lite); }
.ethos-copy .kicker::before { background: var(--gold); }
.ethos .reveal.in { color: #f7efd8; }
@media (max-width: 820px) { .ethos-inner { grid-template-columns: 1fr; } .ethos-mark { max-width: 240px; } }

/* ---------- SERVICES GRID ---------- */
.svc-grid { grid-template-columns: repeat(4, 1fr); }
.svc { background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 26px 24px 28px;
  display: flex; flex-direction: column; gap: 8px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold); }
.svc-i { font-family: var(--mono); font-weight: 600; font-size: .72rem; letter-spacing: .12em; color: var(--paper);
  background: var(--red); width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 2px; margin-bottom: 8px; }
.svc h4 { font-size: 1.08rem; line-height: 1.15; }
.svc p { font-size: .9rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.svc-cta { background: var(--ink); color: var(--paper); justify-content: space-between; }
.svc-cta h4 { color: var(--paper); }
.svc-cta p { color: #cabfa9; }
.svc-cta .arr { font-family: var(--mono); font-size: .82rem; color: var(--gold-lite); margin-top: auto; padding-top: 10px; }
.svc-cta:hover { border-color: var(--gold); }
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- QUOTE BAND ---------- */
.quote-band { background: var(--paper-2); border-block: 1px solid var(--line); padding-block: clamp(60px, 8vw, 100px); }
.quote-inner { max-width: 880px; text-align: center; margin: 0 auto; }
.quote-band blockquote { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.22; margin: 22px 0 26px; color: var(--ink); }
.quote-by { font-family: var(--mono); letter-spacing: .08em; color: var(--ink-soft); display: inline-flex; align-items: center; gap: .7em; }
.quote-by .dot { width: 10px; height: 10px; background: var(--red); display: inline-block; }

/* ---------- CTA BAND ---------- */
.cta-band { background: var(--red); color: #fff7ee; padding-block: clamp(70px, 9vw, 120px); position: relative; overflow: hidden; text-align: center; }
.cta-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 2; }
.cta-band h2 { margin: 22px 0 16px; }
.cta-band .lede { color: #ffe9d8; margin-bottom: 30px; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-primary { background: var(--ink); color: var(--paper); }
.cta-band .btn-primary:hover { background: #000; }
.cta-band .btn-ghost { border-color: #fff7ee; color: #fff7ee; }
.cta-band .btn-ghost:hover { background: #fff7ee; color: var(--red); }
.cta-mark { display: inline-block; width: 110px; margin: 0 auto 4px; opacity: .95; }
.cta-mark svg { width: 100%; height: auto; }

/* ---------- FOOTER ---------- */
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-top: 26px; }
.footer-brand .mark { display: block; width: 56px; margin-bottom: 14px; }
.footer-brand .mark svg { width: 100%; height: auto; }
.footer-brand .word { font-size: 1.05rem; letter-spacing: .14em; margin: 0 0 6px; }
.footer-col h5 { font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-lite); margin: 0 0 16px; font-weight: 500; }
.footer-col a { display: block; padding: 6px 0; font-size: .92rem; }
.footer-foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 22px;
  border-top: 1px solid rgba(244,239,226,.15); font-size: .78rem; opacity: .65; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   HERO DIRECTION VARIANTS (B, C)
   ============================================================ */

/* ---- B · Immersive dark ---- */
.heroB { background: var(--ink); color: var(--paper); position: relative; overflow: hidden;
  min-height: 600px; display: grid; place-items: center; text-align: center; isolation: isolate; }
.heroB .mosaic-rule:first-of-type { position: absolute; top: 0; left: 0; }
.heroB .mosaic-rule:last-of-type { position: absolute; bottom: 0; left: 0; }
.heroB-sun { position: absolute; z-index: 0; width: 720px; max-width: 116%; top: 50%; left: 50%;
  transform: translate(-50%, -50%); opacity: .42; filter: saturate(1.05) drop-shadow(0 0 80px rgba(190,58,43,.5)); }
.heroB-sun span, .heroB-sun svg { width: 100%; height: auto; }
.heroB::after { content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(60% 60% at 50% 50%, rgba(36,31,26,0) 0%, rgba(36,31,26,.55) 62%, rgba(36,31,26,.92) 100%); }
.heroB-inner { position: relative; z-index: 2; max-width: 820px; padding: 90px var(--gutter); }
.heroB h1 { color: #fff7ee; }
.heroB h1 .hl { color: var(--gold-lite); }
.heroB .lede { color: #e3d8c4; margin: 24px auto 0; max-width: 52ch; }
.heroB .kicker { color: var(--gold-lite); }
.heroB .kicker::before, .heroB .kicker.center::after { background: var(--gold); }
.heroB .hero-actions { justify-content: center; margin-top: 34px; }
.heroB .btn-ghost { border-color: #fff7ee; color: #fff7ee; }
.heroB .btn-ghost:hover { background: #fff7ee; color: var(--ink); }

/* ---- C · Monumental inscription (tile frame) ---- */
.heroC { background: var(--paper-2); padding: clamp(20px, 3vw, 40px); }
.tile-frame { position: relative; background: var(--paper); padding: clamp(40px, 6vw, 84px) clamp(24px, 6vw, 80px);
  text-align: center; }
.tile-frame .fr { position: absolute; }
.tile-frame .fr-t, .tile-frame .fr-b { left: 0; right: 0; height: 13px;
  background: repeating-linear-gradient(90deg, var(--red) 0 13px, var(--paper) 13px 16px); border-block: 3px solid var(--sage-deep); }
.tile-frame .fr-t { top: 0; } .tile-frame .fr-b { bottom: 0; }
.tile-frame .fr-l, .tile-frame .fr-r { top: 0; bottom: 0; width: 13px;
  background: repeating-linear-gradient(0deg, var(--red) 0 13px, var(--paper) 13px 16px); border-inline: 3px solid var(--sage-deep); }
.tile-frame .fr-l { left: 0; } .tile-frame .fr-r { right: 0; }
.heroC-seal { width: 132px; margin: 0 auto 22px; }
.heroC-seal span, .heroC-seal svg { width: 100%; height: auto; }
.heroC h1 { font-size: clamp(2.4rem, 5.6vw, 4.8rem); letter-spacing: .02em; margin: 18px auto 0; max-width: 16ch; }
.heroC h1 .hl { color: var(--red); }
.heroC .lede { margin: 22px auto 0; max-width: 52ch; }
.heroC .kicker { justify-content: center; }
.heroC .hero-actions { justify-content: center; margin-top: 30px; }
.heroC .rule-dots { display: flex; gap: 7px; justify-content: center; margin: 24px 0 0; }
.heroC .rule-dots i { width: 9px; height: 9px; background: var(--gold); display: block; }
.heroC .rule-dots i:nth-child(even) { background: var(--sage); }

/* ============================================================
   A + C BLEND — tile frames, tesserae dots, seals, page headers
   ============================================================ */

/* tessera dot rule — reusable */
.tess-dots { display: flex; gap: 7px; align-items: center; }
.tess-dots.center { justify-content: center; }
.tess-dots i { width: 9px; height: 9px; background: var(--gold); display: block; }
.tess-dots i:nth-child(3n) { background: var(--sage); }
.tess-dots i:nth-child(4n) { background: var(--red); }

/* small sun seal as a heading ornament */
.seal-sm { width: 60px; height: 60px; display: block; }
.seal-sm.center { margin-inline: auto; }
.seal-sm svg { width: 100%; height: auto; }

/* corner tesserae ornament for hero (echoes the banner concept) */
.tile-corner { position: absolute; width: 54px; height: 54px; z-index: 3; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--red) 0 9px, transparent 9px 12px) top/100% 7px no-repeat,
    repeating-linear-gradient(0deg, var(--red) 0 9px, transparent 9px 12px) left/7px 100% no-repeat; }
.tile-corner.tr { transform: scaleX(-1); }
.tile-corner.bl { transform: scaleY(-1); }
.tile-corner.br { transform: scale(-1,-1); }

/* ---- inscription page header (inner pages) ---- */
.page-hero { background: var(--paper-2); padding: clamp(26px, 4vw, 48px) var(--gutter); border-bottom: 1px solid var(--line); }
.page-hero .tile-frame { max-width: var(--maxw); margin: 0 auto; background: var(--paper); box-shadow: var(--shadow-sm);
  padding: clamp(40px, 6vw, 76px) clamp(24px, 6vw, 70px); }
.page-hero .seal-sm { margin: 0 auto 20px; width: 76px; height: 76px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: .02em; margin: 0 auto; max-width: 18ch; }
.page-hero h1 .hl { color: var(--red); }
.page-hero .lede { margin: 20px auto 0; max-width: 56ch; }
.page-hero .crumb { font-family: var(--mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 16px; }
.page-hero .crumb a { color: var(--gold-deep); }

/* ---- framed inscription CTA (on red) ---- */
.tile-frame.on-red { background: transparent; }
.tile-frame.on-red .fr-t, .tile-frame.on-red .fr-b {
  background: repeating-linear-gradient(90deg, var(--gold) 0 12px, transparent 12px 15px); border-block: 3px solid rgba(255,247,238,.45); }
.tile-frame.on-red .fr-l, .tile-frame.on-red .fr-r {
  background: repeating-linear-gradient(0deg, var(--gold) 0 12px, transparent 12px 15px); border-inline: 3px solid rgba(255,247,238,.45); }

/* ---- FAQ ---- */
.faq { background: var(--paper-2); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; margin-top: 12px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item h3 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 10px; display: flex; gap: 12px; align-items: baseline; }
.faq-item h3 .q { font-family: var(--mono); font-size: .8rem; color: var(--gold-deep); }
.faq-item p { color: var(--ink-soft); margin: 0; font-size: .96rem; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; gap: 0; } }

/* ---- SEO prose / keyword band ---- */
.prose { max-width: 70ch; }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }

/* ---- generic content helpers for inner pages ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list li::before { content: ''; width: 11px; height: 11px; background: var(--red); margin-top: 7px; flex: none; }
.feature-list li b { font-weight: 600; }
.stat-row { display: flex; flex-wrap: wrap; gap: 40px; }
.stat-row .stat strong { font-family: var(--serif); font-size: 2.6rem; display: block; line-height: 1; }
.stat-row .stat span { font-family: var(--mono); font-size: .76rem; letter-spacing: .05em; color: var(--ink-mute); }

/* striped placeholder (for imagery the user will supply) */
.ph { 
  position: relative; 
  border: 1px solid var(--line); 
  display: grid; place-items: center; 
  text-align: center;
  background: repeating-linear-gradient(45deg, var(--paper-3) 0 11px, var(--paper-2) 11px 22px); 
  border-radius: 3px;
  color: var(--ink-mute); 
  font-family: var(--mono); 
  font-size: .74rem; 
  letter-spacing: .12em; 
  text-transform: uppercase; 
}
.ph.img{
  background-image: url("/assets/images/doc-digital.png");
}
.ph span { background: var(--paper); padding: .5em .9em; border: 1px solid var(--line); border-radius: 2px; }

/* process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 26px; border-top: 3px solid var(--gold); }
.step .n { font-family: var(--mono); font-size: .8rem; color: var(--gold-deep); letter-spacing: .1em; }
.step h3 { font-size: 1.2rem; margin: 8px 0 8px; }
.step p { color: var(--ink-soft); font-size: .94rem; margin: 0; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* service detail block */
.svc-detail { padding: 34px; }
.svc-detail .head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.svc-detail .head .svc-i { margin: 0; }
.svc-detail h3 { font-size: 1.5rem; }
.svc-detail .sub { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; color: var(--gold-deep); text-transform: uppercase; }
.svc-detail ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.svc-detail ul li { display: flex; gap: 12px; font-size: .95rem; color: var(--ink-soft); }
.svc-detail ul li::before { content: ''; width: 9px; height: 9px; background: var(--sage-deep); margin-top: 7px; flex: none; }

/* work cards */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.work-card { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease; }
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.work-card .ph { height: 230px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.work-card .meta { padding: 24px 26px 28px; }
.work-card .tagline { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.work-card h3 { font-size: 1.3rem; margin: 10px 0 8px; }
.work-card p { color: var(--ink-soft); font-size: .94rem; margin: 0 0 14px; }
.work-card .wtags { display: flex; flex-wrap: wrap; gap: 7px; }
.work-card .wtags span { font-family: var(--mono); font-size: .68rem; color: var(--gold-deep); border: 1px solid var(--line); padding: .3em .6em; }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }

/* contact form */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: clamp(28px, 4vw, 44px); position: relative; }
.form-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 7px;
  background: repeating-linear-gradient(90deg, var(--red) 0 9px, var(--paper) 9px 12px); }
.form-card--embed { padding: 0; overflow: visible; border: 0; background: transparent; }
.form-card--embed iframe {
  display: block;
  width: 100%;
  min-height: 1600px;
  height: 1800px;
  border: 0;
  background: transparent;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--paper-2); border: 1.5px solid var(--line); border-radius: 2px; padding: .8em .9em; transition: border-color .18s ease; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-family: var(--mono); font-size: .78rem; color: var(--ink-mute); margin-top: 14px; }
.contact-aside .info-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-aside .info-item h4 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-aside .info-item p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.contact-aside .info-item a { color: var(--red-deep); font-weight: 600; }

/* legal pages */
.legal-shell {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.legal-rail {
  position: sticky;
  top: 98px;
}
.legal-card {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.legal-card + .legal-card {
  margin-top: 18px;
}
.legal-card h2,
.legal-card h3 {
  margin-bottom: 12px;
}
.legal-meta {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.legal-meta strong {
  display: block;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 5px;
}
.legal-meta span,
.legal-meta a,
.legal-card p,
.legal-card li {
  color: var(--ink-soft);
}
.legal-card a {
  color: var(--red-deep);
}
.legal-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.legal-toc a {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .03em;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.legal-toc a:hover {
  background: var(--paper-2);
  border-color: var(--gold);
  transform: translateX(2px);
}
.legal-body {
  display: grid;
  gap: 20px;
}
.legal-content {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 4vw, 40px);
}
.legal-content section + section {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.legal-content h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin-bottom: 12px;
}
.legal-content h3 {
  font-size: 1.02rem;
  margin: 18px 0 10px;
}
.legal-content p:last-child,
.legal-content ul:last-child,
.legal-content ol:last-child {
  margin-bottom: 0;
}
.legal-list,
.legal-steps {
  margin: 14px 0 0;
  padding-left: 22px;
}
.legal-list li,
.legal-steps li {
  margin-bottom: 8px;
}
.legal-callout {
  border-left: 4px solid var(--red);
  background: var(--paper-2);
  padding: 16px 18px;
  margin-top: 18px;
}
.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
@media (max-width: 920px) {
  .legal-shell {
    grid-template-columns: 1fr;
  }
  .legal-rail {
    position: static;
  }
}

/* ============================================================
   DIRECTION B ROLLOUT - dark cinematic theme
   Applied to <body class="theme-dark"> (Home) and the dark
   immersive page headers (.page-hero.dark) on inner pages.
   ============================================================ */
:root {
  --d-base:   #201B16;  /* page background */
  --d-raised: #2A241D;  /* cards & alternating bands */
  --d-deep:   #19150F;  /* deepest bands (ethos / footer / quote) */
  --d-hover:  #332C22;
  --d-line:   rgba(226,169,60,.16);  /* gold hairline on dark */
  --paper-dim:  #CFC3AC;  /* body text on dark */
  --paper-dim2: #9A8E78;  /* muted text on dark */
}

/* ---------- shared warm halo behind the sun (red + gold) ---------- */
.glow-halo { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 36% at 50% 47%, rgba(239,194,94,.26), transparent 70%),
    radial-gradient(56% 52% at 50% 50%, rgba(190,58,43,.34), transparent 72%); }

/* ============================================================
   HOME · body.theme-dark
   ============================================================ */
body.theme-dark { background: var(--d-base); color: var(--paper); }
body.theme-dark::before {
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(226,169,60,.07), transparent 60%),
    radial-gradient(100% 80% at 50% 120%, rgba(190,58,43,.10), transparent 55%); }

/* nav */
body.theme-dark .nav { background: rgba(25,21,15,.82); border-bottom-color: var(--d-line); }
body.theme-dark .brand .word { color: var(--paper); }
body.theme-dark .brand .word small { color: var(--gold-deep); }
body.theme-dark .nav-links a { color: var(--paper-dim); }
body.theme-dark .nav-links a:hover, body.theme-dark .nav-links a.active { color: var(--paper); }
body.theme-dark .nav-toggle span { background: var(--paper); }
@media (max-width: 880px) {
  body.theme-dark .nav-links { background: var(--d-base); border-bottom-color: var(--d-line); }
  body.theme-dark .nav-links a { border-bottom-color: var(--d-line); }
}

/* type on dark */
body.theme-dark h1, body.theme-dark h2, body.theme-dark h3, body.theme-dark h4 { color: var(--paper); }
body.theme-dark .lede { color: var(--paper-dim); }
body.theme-dark .kicker { color: var(--gold-lite); }
body.theme-dark .kicker::before, body.theme-dark .kicker.center::after { background: var(--gold); }
body.theme-dark .muted { color: var(--paper-dim2); }

/* buttons on dark */
body.theme-dark .btn-ghost { border-color: var(--paper); color: var(--paper); }
body.theme-dark .btn-ghost:hover { background: var(--paper); color: var(--ink); }

/* proof / compliance band (was .strip) */
body.theme-dark .strip { background: var(--d-raised); border-color: var(--d-line); border-top: 1px solid var(--d-line); }
body.theme-dark .chip { border-color: var(--sage); color: #D2DAC9; background: rgba(143,157,136,.12); }
body.theme-dark .chip::before { background: var(--sage); }
body.theme-dark .chip:hover { background: var(--sage-deep); color: #fff; }

/* pillar cards */
body.theme-dark .card { background: var(--d-raised); border-color: var(--d-line); }
body.theme-dark .card:hover { border-color: var(--gold); box-shadow: 0 26px 64px -30px rgba(0,0,0,.8); }
body.theme-dark .pillar p { color: var(--paper-dim); }
body.theme-dark .tags li { color: var(--gold-lite); border-color: var(--d-line); }

/* ethos — deepest band, warm glow behind the big sun */
body.theme-dark .ethos { background: var(--d-deep); }
body.theme-dark .ethos::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(34% 60% at 22% 50%, rgba(190,58,43,.22), transparent 70%); }
body.theme-dark .ethos-inner { position: relative; z-index: 1; }

/* services grid */
body.theme-dark .svc { background: var(--d-raised); border-color: var(--d-line); }
body.theme-dark .svc h4 { color: var(--paper); }
body.theme-dark .svc p { color: var(--paper-dim); }
body.theme-dark .svc:hover { border-color: var(--gold); }
body.theme-dark .svc-cta { background: var(--red); border-color: transparent; }
body.theme-dark .svc-cta:hover { background: var(--red-deep); border-color: transparent; }
body.theme-dark .svc-cta p { color: #ffe9d8; }
body.theme-dark .svc-cta .arr { color: #fff7ee; }

/* quote band */
body.theme-dark .quote-band { background: var(--d-base); border-color: var(--d-line); }
body.theme-dark .quote-band blockquote { color: var(--paper); }
body.theme-dark .quote-by { color: var(--paper-dim); }

/* faq */
body.theme-dark .faq { background: var(--d-raised); border-color: var(--d-line); }
body.theme-dark .faq-item { border-color: var(--d-line); }
body.theme-dark .faq-item h3 { color: var(--paper); }
body.theme-dark .faq-item p { color: var(--paper-dim); }
body.theme-dark .faq-item strong { color: var(--gold-lite); }

/* ---------- HOME immersive hero (Direction B) ---------- */
.hero-b { background: radial-gradient(125% 105% at 50% 36%, #2C2118 0%, var(--ink) 46%, var(--d-base) 100%);
  color: var(--paper); position: relative; overflow: hidden; isolation: isolate;
  display: grid; place-items: center; text-align: center; min-height: clamp(560px, 84vh, 820px); }
.hero-b .mosaic-rule:first-of-type { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
.hero-b .mosaic-rule:last-of-type  { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; }
.hero-b-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(36% 34% at 50% 46%, rgba(239,194,94,.28), transparent 70%),
    radial-gradient(56% 52% at 50% 50%, rgba(190,58,43,.36), transparent 72%); }
.hero-b-sun { position: absolute; z-index: 0; width: 760px; max-width: 118%; top: 50%; left: 50%;
  transform: translate(-50%, -50%); opacity: .36; filter: saturate(1.04) drop-shadow(0 0 70px rgba(190,58,43,.45)); }
.hero-b-sun span, .hero-b-sun svg { width: 100%; height: auto; }
.hero-b::after { content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(62% 66% at 50% 48%, rgba(28,23,18,.42) 0%, rgba(28,23,18,.34) 42%, rgba(28,23,18,.93) 100%); }
.hero-b-inner { position: relative; z-index: 2; max-width: 880px; padding: clamp(96px, 13vw, 150px) var(--gutter); }
.hero-b .kicker { justify-content: center; }
.hero-b h1 { color: #fff7ee; font-size: clamp(2.7rem, 6.6vw, 5.4rem); margin: 22px auto 0;
  text-shadow: 0 2px 40px rgba(0,0,0,.45); }
.hero-b h1 .hl { color: var(--gold-lite); }
.hero-b .lede { color: #E3D8C4; margin: 26px auto 0; max-width: 52ch; }
.hero-b .hero-actions { justify-content: center; margin-top: 36px; }
.hero-b .btn-ghost { border-color: #fff7ee; color: #fff7ee; }
.hero-b .btn-ghost:hover { background: #fff7ee; color: var(--ink); }
.hero-b .tess-dots { justify-content: center; margin: 40px auto 0; }

/* ---------- HOME proof band: stats + compliance ---------- */
.proof-inner { display: grid; grid-template-columns: auto 1px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.proof-stats { display: flex; gap: clamp(26px, 4vw, 48px); }
.proof-stats div { display: flex; flex-direction: column; }
.proof-stats strong { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; color: var(--gold-lite); }
.proof-stats span { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--paper-dim2); margin-top: 8px; max-width: 15ch; }
.proof-div { width: 1px; align-self: stretch; background: var(--d-line); }
.proof-compliance .kicker { margin-bottom: 16px; }
@media (max-width: 860px) {
  .proof-inner { grid-template-columns: 1fr; gap: 32px; }
  .proof-div { display: none; }
}

/* ============================================================
   INNER PAGES · dark immersive header (.page-hero.dark)
   ============================================================ */
.page-hero.dark { position: relative; overflow: hidden; padding: 0; border-bottom: 1px solid var(--d-line);
  background: radial-gradient(125% 130% at 50% 0%, #2C2118 0%, var(--ink) 52%, var(--d-deep) 100%);
  color: var(--paper); text-align: center; isolation: isolate; }
.page-hero.dark .mosaic-rule:first-of-type { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
.page-hero.dark .mosaic-rule:last-of-type  { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; }
.page-hero.dark .ph-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(34% 50% at 50% 30%, rgba(239,194,94,.24), transparent 70%),
    radial-gradient(52% 64% at 50% 34%, rgba(190,58,43,.34), transparent 72%); }
.page-hero.dark .ph-sun { position: absolute; z-index: 0; width: 560px; max-width: 110%; top: 38%; left: 50%;
  transform: translate(-50%, -50%); opacity: .36; filter: drop-shadow(0 0 64px rgba(190,58,43,.45)); }
.page-hero.dark .ph-sun span, .page-hero.dark .ph-sun svg { width: 100%; height: auto; }
.page-hero.dark::after { content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(60% 74% at 50% 34%, rgba(25,21,15,0) 0%, rgba(25,21,15,.5) 60%, rgba(25,21,15,.92) 100%); }
.page-hero.dark .ph-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto;
  padding: clamp(66px, 9vw, 116px) var(--gutter); }
.page-hero.dark .crumb { font-family: var(--mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--paper-dim2); margin-bottom: 18px; }
.page-hero.dark .crumb a { color: var(--gold-lite); }
.page-hero.dark h1 { color: #fff7ee; font-size: clamp(2.3rem, 5.4vw, 4.4rem); letter-spacing: .02em;
  max-width: 18ch; margin: 0 auto; text-shadow: 0 2px 36px rgba(0,0,0,.4); }
.page-hero.dark h1 .hl { color: var(--gold-lite); }
.page-hero.dark .lede { color: var(--paper-dim); margin: 22px auto 0; max-width: 56ch; }
