/* ============================================================
   Solenne — ankangzm.com
   Palette: primary #92400E · secondary #A16207 · accent #6B7280
   bg #FFFBEB · fg #0F172A  (Warm Journal Brown + Sage Breath)
   Fonts: display Besley · body Nunito Sans · mono Noto Sans Mono
   ONE accent locked: sage #6B7280. ONE radius system.
   ============================================================ */

:root {
  --primary: #92400E;
  --primary-deep: #6B2F08;
  --primary-soft: #F1E4D6;
  --secondary: #A16207;
  --secondary-soft: #F4E9D2;
  --accent: #6B7280;        /* sage — the ONLY accent */
  --accent-soft: #E4E7E9;
  --bg: #FFFBEB;
  --fg: #0F172A;

  --surface: #FFFFFF;
  --surface-2: #FBF4E6;
  --surface-3: #F6ECD8;
  --ink: #0F172A;
  --body: #2B2A26;
  --muted: #514B40;          /* AA on cream */
  --line: #E7DCC6;
  --line-soft: #EFE6D2;

  --r-xs: 8px; --r-sm: 12px; --r-md: 18px; --r-lg: 28px; --r-xl: 40px; --r-pill: 999px;

  --font-display: "Besley", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: "Noto Sans Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --sh-sm: 0 1px 2px rgba(67,40,12,.06), 0 2px 6px rgba(67,40,12,.05);
  --sh-md: 0 4px 14px rgba(67,40,12,.08), 0 10px 30px rgba(67,40,12,.07);
  --sh-lg: 0 18px 50px rgba(67,40,12,.13);

  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

[data-theme="dark"] {
  --bg: #1A140C;
  --fg: #F6EFE2;
  --surface: #221A10;
  --surface-2: #271D12;
  --surface-3: #2E2316;
  --ink: #F6EFE2;
  --body: #E5DBCB;
  --muted: #BCB09B;          /* AA on dark warm */
  --line: #3A2E1E;
  --line-soft: #322715;
  --primary: #D98B4A;
  --primary-deep: #E9A86A;
  --primary-soft: #33261680;
  --secondary: #D9A441;
  --secondary-soft: #2E2414;
  --accent: #A7AEB6;         /* lighter sage on dark, AA */
  --accent-soft: #2B2C2E;
  --sh-sm: 0 1px 2px rgba(0,0,0,.4);
  --sh-md: 0 6px 22px rgba(0,0,0,.45);
  --sh-lg: 0 22px 60px rgba(0,0,0,.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font-body); background: var(--bg); color: var(--body);
  font-size: 18px; line-height: 1.7; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.1; font-weight: 600; letter-spacing: -.01em; }
h1 { margin: 0; }
p { margin: 0 0 1.1em; }
::selection { background: rgba(146,64,14,.18); color: var(--ink); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 12vw, 128px) 0; position: relative; }
.section--tight { padding: clamp(56px, 8vw, 92px) 0; }
.center { text-align: center; }

.kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
  margin: 0 0 18px; display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--accent); opacity: .7; }

.display { font-family: var(--font-display); font-size: clamp(2.6rem, 6.2vw, 4.7rem); line-height: 1.04; letter-spacing: -.02em; color: var(--ink); font-weight: 600; }
.h-sec { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.06; letter-spacing: -.02em; margin: 0 0 .5em; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 60ch; }
em.it, .display em, h1 em, h2 em, h3 em { font-style: italic; font-family: var(--font-display); color: var(--primary); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-weight: 700;
  font-size: 1rem; line-height: 1; cursor: pointer; padding: 16px 26px; border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  text-decoration: none;
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--primary); color: #FFFBEB; box-shadow: var(--sh-md); }
[data-theme="dark"] .btn-primary { color: #1A140C; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); background: var(--primary-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--primary); }
.btn { white-space: nowrap; }
.btn .arr { transition: transform .25s var(--ease); display: inline-flex; }
.btn .arr svg { width: 18px; height: 18px; }
.btn:hover .arr { transform: translateX(4px); }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--sh-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.42rem; color: var(--ink); letter-spacing: -.01em; }
.brand .mark { width: 34px; height: 34px; border-radius: 11px; flex: none; background: linear-gradient(140deg, var(--primary), var(--secondary)); display: grid; place-items: center; color: #FFFBEB; box-shadow: var(--sh-sm); }
.brand .mark svg { width: 20px; height: 20px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--body); font-weight: 600; font-size: .98rem; position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--primary); transition: right .3s var(--ease); border-radius: 2px; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: transform .3s var(--ease), border-color .3s var(--ease); }
.theme-toggle:hover { transform: rotate(18deg); border-color: var(--primary); }
.theme-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 22px; height: 22px; margin: auto; }

.mobile-nav { display: none; }
@media (max-width: 900px) {
  .nav-links, .nav-actions .btn { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .mobile-nav { display: block; position: fixed; inset: 76px 0 auto 0; z-index: 55; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .28s var(--ease), transform .28s var(--ease); box-shadow: var(--sh-lg); }
  .mobile-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .mobile-nav .wrap { padding: 18px 24px 28px; display: flex; flex-direction: column; gap: 4px; }
  .mobile-nav a { padding: 14px 8px; font-size: 1.1rem; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
  .mobile-nav .btn { margin-top: 14px; justify-content: center; }
}

.hero { position: relative; padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 9vw, 110px); overflow: clip; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 82% 12%, rgba(161,98,7,.16), transparent 60%), radial-gradient(48% 50% at 8% 90%, rgba(107,114,128,.14), transparent 62%), linear-gradient(180deg, var(--bg), var(--surface-2)); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { max-width: 38ch; }
.hero h1 { font-size: clamp(2.15rem, 3.7vw, 3rem); line-height: 1.1; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
@media (max-width: 420px) { .hero h1 { white-space: normal; } }
.hero .sub { margin: 26px 0 32px; font-size: clamp(1.08rem, 1.7vw, 1.32rem); color: var(--muted); line-height: 1.55; max-width: 32ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 22px; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em; color: var(--accent); }
.hero-media { position: relative; }
.hero-media .frame { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); border: 1px solid var(--line); aspect-ratio: 4 / 5; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .frame::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 55%, rgba(67,40,12,.22)); }
.hero-badge { position: absolute; left: -22px; bottom: 34px; z-index: 3; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 20px; box-shadow: var(--sh-lg); max-width: 230px; }
.hero-badge .lab { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.hero-badge .val { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); margin-top: 4px; line-height: 1.2; }
.hero-orb { position: absolute; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--secondary), var(--primary)); filter: blur(2px); opacity: .9; top: -26px; right: 16px; z-index: 2; box-shadow: var(--sh-lg); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 460px; }
  .hero-copy, .hero .sub { max-width: none; }
  .hero-badge { left: 8px; }
}

.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scrollx 38s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "·"; color: var(--accent); }
@keyframes scrollx { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--sh-md); }
.stat { padding: 32px 28px; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: none; }
.stat .v { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--primary); line-height: 1; }
.stat .l { margin-top: 10px; font-size: .94rem; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2n){border-right:none;} .stat:nth-child(-n+2){border-bottom:1px solid var(--line-soft);} }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 76px); align-items: center; }
.split.rev .split-media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.rev .split-media { order: 0; } }
.media-frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); border: 1px solid var(--line); position: relative; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5/4; }
.media-frame.tall img { aspect-ratio: 4/5; }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 920px) { .svc-grid { grid-template-columns: 1fr; } }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sh-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.svc:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--primary-soft); }
.svc-img { aspect-ratio: 16/10; overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc:hover .svc-img img { transform: scale(1.05); }
.svc-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.svc-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin: -50px 0 16px; position: relative; border: 1px solid var(--line); box-shadow: var(--sh-sm); }
[data-theme="dark"] .svc-ico { background: var(--surface-3); }
.svc-ico svg { width: 24px; height: 24px; }
.svc h3 { font-size: 1.42rem; margin: 0 0 10px; }
.svc p { color: var(--muted); font-size: 1rem; margin-bottom: 18px; }
.svc ul { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.svc li { display: flex; gap: 10px; font-size: .97rem; color: var(--body); }
.svc li svg { flex: none; width: 18px; height: 18px; color: var(--accent); margin-top: 4px; }
.svc .lnk { margin-top: auto; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 8px; }
.svc .lnk svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.svc:hover .lnk svg { transform: translateX(4px); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 30px; position: relative; }
.step .num { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em; color: var(--accent); }
.step .ico { width: 50px; height: 50px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--primary); margin: 16px 0 18px; box-shadow: var(--sh-sm); }
.step .ico svg { width: 24px; height: 24px; }
.step h3 { font-size: 1.4rem; margin: 0 0 10px; }
.step p { color: var(--muted); margin: 0; font-size: 1rem; }

.res-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 820px) { .res-grid { grid-template-columns: 1fr; } }
.res { display: grid; grid-template-columns: 132px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.res:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.res-thumb { overflow: hidden; }
.res-thumb img { width: 100%; height: 100%; object-fit: cover; min-height: 100%; }
.res-body { padding: 22px 24px; display: flex; flex-direction: column; }
.res .meta { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; color: var(--accent); text-transform: uppercase; }
.res h3 { font-size: 1.18rem; margin: 8px 0 8px; line-height: 1.2; }
.res h3 a { color: var(--ink); }
.res h3 a:hover { color: var(--primary); }
.res p { font-size: .94rem; color: var(--muted); margin: 0 0 14px; }
.res .source { margin-top: auto; font-size: .9rem; }
.res .source a { color: var(--primary); font-weight: 700; }
.res.rtl { grid-template-columns: 1fr 132px; direction: rtl; }
.res.rtl .res-thumb { order: 2; }
@media (max-width: 520px){ .res, .res.rtl { grid-template-columns: 1fr; } .res.rtl .res-thumb{order:0;} .res-thumb{aspect-ratio:16/9;} }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 920px) { .quotes { grid-template-columns: 1fr; } }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 30px; box-shadow: var(--sh-sm); display: flex; flex-direction: column; }
.quote .mark { font-family: var(--font-display); font-size: 3.2rem; line-height: .6; color: var(--secondary); height: 28px; }
.quote p { font-size: 1.08rem; color: var(--body); line-height: 1.55; }
.quote .who { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.quote .who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; }
[data-theme="dark"] .quote .who .av { background: var(--surface-3); }
.quote .who .nm { font-weight: 800; color: var(--ink); font-size: .98rem; }
.quote .who .ct { font-size: .85rem; color: var(--muted); }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 920px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .team-grid { grid-template-columns: 1fr; } }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.member:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.member-img { aspect-ratio: 5/6; overflow: hidden; }
.member-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); }
.member-body { padding: 20px 22px 24px; }
.member .nm { font-family: var(--font-display); font-size: 1.22rem; color: var(--ink); }
.member .ro { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 6px 0 12px; }
.member p { font-size: .92rem; color: var(--muted); margin: 0; }

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }
.value { padding: 26px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 18px; align-items: start; }
.value .vn { font-family: var(--font-mono); color: var(--accent); font-size: .85rem; padding-top: 6px; }
.value h3 { font-size: 1.3rem; margin: 0 0 6px; }
.value p { margin: 0; color: var(--muted); font-size: 1rem; }

.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 26px 4px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); }
.faq-q:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs); }
.faq-q .pm { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--primary); transition: transform .3s var(--ease), background .3s; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); background: var(--primary-soft); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 4px 26px; margin: 0; color: var(--muted); }

.cta-band { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: clamp(48px, 7vw, 84px) clamp(28px, 5vw, 72px); color: #FFFBEB; box-shadow: var(--sh-lg); }
.cta-band .cta-bg { position: absolute; inset: 0; z-index: -1; }
.cta-band .cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band .cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(107,47,8,.92), rgba(146,64,14,.82) 55%, rgba(161,98,7,.7)); }
.cta-band h2 { color: #FFFBEB; font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 16px; max-width: 18ch; }
.cta-band p { color: rgba(255,251,235,.92); max-width: 48ch; font-size: 1.12rem; margin: 0 0 28px; }
.cta-band .btn-primary { background: #FFFBEB; color: var(--primary-deep); }
.cta-band .btn-primary:hover { background: #fff; }
.cta-band .btn-ghost { color: #FFFBEB; border-color: rgba(255,251,235,.55); }
.cta-band .btn-ghost:hover { border-color: #fff; color:#fff; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 0; }
.info-row { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-row .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
[data-theme="dark"] .info-row .ico { background: var(--surface-3); }
.info-row .ico svg { width: 22px; height: 22px; }
.info-row .lab { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.info-row .val { font-size: 1.08rem; color: var(--ink); font-weight: 600; margin-top: 3px; }
.info-row .val a { color: var(--primary); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--sh-md); }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 8px; font-size: .96rem; }
.field input, .field textarea { width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(146,64,14,.16); }
.form-card .btn-primary { width: 100%; justify-content: center; font-size: 1.06rem; padding: 17px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 14px; text-align: center; }
.form-ok { display: none; background: var(--primary-soft); border: 1px solid var(--primary); border-radius: var(--r-sm); padding: 16px 18px; color: var(--primary-deep); font-weight: 700; margin-top: 16px; }
[data-theme="dark"] .form-ok { color: var(--primary-deep); background: var(--surface-3); }
.form-ok.show { display: block; }

.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px); position: relative; background: linear-gradient(180deg, var(--surface-2), var(--bg)); border-bottom: 1px solid var(--line); }
.page-hero .display { max-width: 18ch; }
.page-hero .lede { margin-top: 20px; }
.breadcrumb { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; color: var(--accent); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: .6; }

.article-head { padding: clamp(40px, 6vw, 72px) 0 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .05em; color: var(--accent); margin-bottom: 22px; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.article-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.06; letter-spacing: -.02em; max-width: 20ch; }
.article-title.rtl { direction: rtl; max-width: 24ch; }
.article-lede { margin: 20px 0 0; max-width: 64ch; }
.article-lede.rtl { direction: rtl; text-align: right; margin-left: auto; }
.article-hero-img { margin: clamp(34px,5vw,56px) auto; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); border: 1px solid var(--line); max-width: 980px; }
.article-hero-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-body { max-width: 760px; margin: 0 auto; font-size: 1.12rem; line-height: 1.78; color: var(--body); }
.article-body.rtl { direction: rtl; text-align: right; }
.article-body h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 1.8em 0 .55em; color: var(--ink); }
.article-body h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin: 1.5em 0 .5em; color: var(--ink); }
.article-body p { margin: 0 0 1.25em; }
.article-body a { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(146,64,14,.4); }
.article-body a:hover { text-decoration-color: var(--primary); }
.article-body ul, .article-body ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.article-body.rtl ul, .article-body.rtl ol { padding-left: 0; padding-right: 1.3em; }
.article-body li { margin-bottom: .6em; }
.article-body img { border-radius: var(--r-md); box-shadow: var(--sh-md); margin: 1.6em auto; border: 1px solid var(--line); }
.article-body figure { margin: 1.8em 0; }
.article-body strong { color: var(--ink); }
.article-body em { color: var(--secondary); }
.article-body section { margin-top: 1.4em; }
.article-body blockquote { border-left: 3px solid var(--secondary); padding-left: 20px; margin: 1.5em 0; color: var(--muted); font-style: italic; }
.article-cta { margin: clamp(48px,6vw,72px) auto 0; max-width: 760px; }

.site-footer { background: var(--surface-3); border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 84px) 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { color: var(--muted); font-size: .98rem; max-width: 34ch; }
.foot-col h4 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; font-weight: 600; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.foot-col a { color: var(--body); font-size: .96rem; }
.foot-col a:hover { color: var(--primary); }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: .88rem; color: var(--muted); }
.foot-social { display: flex; gap: 10px; }
.foot-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--body); transition: transform .25s var(--ease), border-color .25s, color .25s; }
.foot-social a:hover { transform: translateY(-3px); border-color: var(--primary); color: var(--primary); }
.foot-social svg { width: 17px; height: 17px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.from-left { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-orb, .svc-img img { animation: none !important; }
}

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-orb { animation: floaty 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hero-orb { animation: none; } }

/* Hero intro: animate in only after JS confirms (body.hero-ready).
   Without JS, content is fully visible by default. */
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-copy > [data-hero-anim], .hero-media[data-hero-anim] { opacity: 1; }
body.hero-ready .hero-copy > [data-hero-anim],
body.hero-ready .hero-media[data-hero-anim] {
  opacity: 0; animation: heroIn .8s var(--ease) forwards;
}
body.hero-ready .hero-copy > [data-hero-anim]:nth-child(1) { animation-delay: .05s; }
body.hero-ready .hero-copy > [data-hero-anim]:nth-child(2) { animation-delay: .16s; }
body.hero-ready .hero-copy > [data-hero-anim]:nth-child(3) { animation-delay: .27s; }
body.hero-ready .hero-copy > [data-hero-anim]:nth-child(4) { animation-delay: .38s; }
body.hero-ready .hero-media[data-hero-anim] { animation-delay: .2s; }
@media (prefers-reduced-motion: reduce) {
  body.hero-ready .hero-copy > [data-hero-anim],
  body.hero-ready .hero-media[data-hero-anim] { opacity: 1 !important; animation: none !important; }
}

.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: #FFFBEB; padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0; z-index: 100; }
.skip:focus { left: 0; }

.sec-head { max-width: 62ch; }
.sec-head.center { margin-left: auto; margin-right: auto; }
.mt-s { margin-top: 28px; } .mt-m { margin-top: 44px; } .mt-l { margin-top: 64px; }
.tag-row { display:flex; flex-wrap:wrap; gap:10px; margin-top: 20px; }
.tag { font-family: var(--font-mono); font-size:.74rem; letter-spacing:.06em; color: var(--accent); border:1px solid var(--line); padding:7px 13px; border-radius: var(--r-pill); background: var(--surface); }
