/* Wend Studio — tatlitatli.net
   Palette: Midnight Slate + Fog + Amber. One locked accent (#D97706). One radius system (14px). */

:root {
  /* brand palette (brief) */
  --primary: #1E293B;
  --secondary: #64748B;
  --accent: #D97706;
  --accent-strong: #B45309;
  --accent-soft: #FEF3E2;

  /* light tokens (off-white / off-black, no pure #000/#fff) */
  --bg: #F8FAFC;
  --bg-2: #EEF2F7;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --ink: #0F172A;
  --body: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --line-2: #CBD5E1;
  --hero-ink: #0F172A;

  --on-accent: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .05);
  --shadow-md: 0 8px 28px rgba(15, 23, 42, .10);
  --shadow-lg: 0 22px 60px rgba(15, 23, 42, .14);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, -apple-system, sans-serif;
  --font-mono: "Noto Sans Mono", ui-monospace, monospace;

  --wrap: 1180px;
  --pad: clamp(1.1rem, 4vw, 2rem);
  --sec-y: clamp(4.5rem, 9vw, 8rem);
}

[data-theme="dark"] {
  --bg: #0B1220;
  --bg-2: #0F172A;
  --surface: #16213A;
  --surface-2: #1E2A45;
  --ink: #EAF0F7;
  --body: #C2CCDA;
  --muted: #93A1B5;
  --line: #243047;
  --line-2: #33415C;
  --hero-ink: #F4F8FC;
  --accent: #F59E32;
  --accent-strong: #FBB04A;
  --accent-soft: #2A2114;
  --on-accent: #1A1206;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-lg: 0 26px 64px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@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: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; font-weight: 600; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1rem; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* skip link */
.skip-link {
  position: absolute; left: 0; top: -60px; background: var(--accent); color: var(--on-accent);
  padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0; z-index: 200; transition: top .2s; font-weight: 600;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .85rem 1.5rem; border-radius: var(--radius-pill); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px rgba(217, 119, 6, .28); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(217, 119, 6, .34); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-2px); }
.btn-sm { padding: .6rem 1.05rem; font-size: .92rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.08rem; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent-strong); font-weight: 600; text-decoration: none; }
.link-arrow span { transition: transform .2s ease; }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- eyebrow / underline ---------- */
.eyebrow {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .18em;
  font-size: .72rem; color: var(--accent-strong); margin: 0 0 1rem; font-weight: 500;
}
.hl { position: relative; display: inline-block; }
.hl-wrap { position: relative; display: inline-block; width: 100%; height: 0; }
.hl-underline { position: absolute; left: 2%; bottom: -.55em; width: 96%; height: .5em; color: var(--accent); overflow: visible; }
.hl-underline path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.hl-underline path { pathLength: 1; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .25s, background .25s; }
.site-head.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.head-inner { max-width: var(--wrap); margin-inline: auto; padding: .8rem var(--pad); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; }
.brand-mark { display: inline-flex; color: var(--accent); }
.head-nav { display: flex; gap: .35rem; margin-left: auto; }
.head-nav a { text-decoration: none; color: var(--body); font-weight: 500; padding: .5rem .8rem; border-radius: var(--radius-sm); transition: color .18s, background .18s; }
.head-nav a:hover { color: var(--ink); background: var(--surface-2); }
.head-nav a[aria-current="page"] { color: var(--accent-strong); }
.head-actions { display: flex; align-items: center; gap: .6rem; }

.theme-toggle { width: 40px; height: 40px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .2s, transform .2s; }
.theme-toggle:hover { border-color: var(--accent); transform: translateY(-1px); }
.theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-moon { display: block; }

.nav-burger { display: none; width: 42px; height: 42px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { border-top: 1px solid var(--line); background: var(--bg); }
.mobile-nav nav { display: flex; flex-direction: column; gap: .3rem; padding: 1rem var(--pad) 1.4rem; }
.mobile-nav a { text-decoration: none; color: var(--body); font-weight: 500; padding: .7rem .4rem; border-radius: var(--radius-sm); }
.mobile-nav a:not(.btn):hover { background: var(--surface-2); }
.mobile-nav .btn { margin-top: .5rem; }

/* ---------- reveal / skew motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px) skewY(2.2deg); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6.5rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 90% at 88% 8%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    radial-gradient(60% 80% at 6% 92%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 62%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero-inner { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { max-width: 34ch; }
.hero h1 { color: var(--hero-ink); }
.hero-sub { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--body); margin: 1.1rem 0 1.8rem; max-width: 30ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-media { position: relative; margin: 0; }
.hero-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 1024 / 585; object-fit: cover; }
.hero-badge { position: absolute; left: -8px; bottom: 22px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem 1rem; box-shadow: var(--shadow-md); font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.1; }
.hero-badge span { display: block; font-family: var(--font-body); font-weight: 500; font-size: .78rem; color: var(--muted); }

/* hero entrance (JS-gated via .hero-ready) */
[data-hero-el] { opacity: 0; transform: translateY(16px); }
[data-hero-media] { opacity: 0; transform: translateY(20px) scale(.985); }
.hero-ready [data-hero-el], .hero-ready [data-hero-media] { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.hero-ready [data-hero-el]:nth-child(1) { transition-delay: .05s; }
.hero-ready [data-hero-el]:nth-child(2) { transition-delay: .14s; }
.hero-ready [data-hero-el]:nth-child(3) { transition-delay: .23s; }
.hero-ready [data-hero-el]:nth-child(4) { transition-delay: .32s; }
.hero-ready [data-hero-media] { transition-delay: .18s; }
@media (prefers-reduced-motion: reduce) {
  [data-hero-el], [data-hero-media] { opacity: 1 !important; transform: none !important; }
}

/* ---------- bands / stats ---------- */
.band-stats { background: var(--primary); color: #E7ECF3; padding: clamp(2rem, 4vw, 3rem) 0; }
[data-theme="dark"] .band-stats { background: var(--surface); border-block: 1px solid var(--line); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; }
.stat-val { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.1rem); color: #fff; }
[data-theme="dark"] .stat-val { color: var(--ink); }
.stat-lab { display: block; font-size: .88rem; color: #AEBACB; margin-top: .25rem; }
[data-theme="dark"] .stat-lab { color: var(--muted); }

/* ---------- section base ---------- */
.section { padding: var(--sec-y) 0; }
.sec-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.4rem); }
.sec-sub { color: var(--muted); font-size: 1.08rem; margin-top: .5rem; max-width: 56ch; }
.lede { font-size: clamp(1.12rem, 1.8vw, 1.35rem); color: var(--body); max-width: 60ch; }

/* intro */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.intro-lead h2 { margin-bottom: 1.2rem; }
.intro-text p { max-width: 65ch; }

/* services grid (home) */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.svc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.svc-ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-strong); margin-bottom: 1.1rem; }
.svc-card h3 { margin-bottom: .5rem; }
.svc-card p { color: var(--body); margin-bottom: 1.1rem; }

/* approach steps */
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; position: relative; box-shadow: var(--shadow-sm); }
.step-num { font-family: var(--font-mono); color: var(--accent-strong); font-size: .85rem; font-weight: 500; }
.step-ico { display: block; color: var(--secondary); margin: .8rem 0 .9rem; }
[data-theme="dark"] .step-ico { color: var(--muted); }
.step-card h3 { margin-bottom: .45rem; }
.step-card p { color: var(--body); margin: 0; }

/* posts grid */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.post-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-body { display: flex; flex-direction: column; padding: 1.3rem 1.4rem 1.5rem; gap: .5rem; }
.post-kicker { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-strong); }
.post-title { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: var(--ink); line-height: 1.2; }
.post-blurb { color: var(--body); font-size: .96rem; }

/* quotes */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-sm); position: relative; }
.quote-card::before { content: "\201C"; font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: color-mix(in srgb, var(--accent) 55%, transparent); position: absolute; top: .4rem; right: 1.1rem; }
.quote-card blockquote { margin: 0 0 1.1rem; font-size: 1.06rem; color: var(--ink); line-height: 1.55; }
.quote-card figcaption { display: flex; flex-direction: column; }
.q-name { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.q-ctx { font-size: .82rem; color: var(--accent-strong); font-family: var(--font-mono); }

/* resources blogroll */
.roll-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.roll-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.roll-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem .4rem; border-bottom: 1px solid var(--line); }
.roll-list a { color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; border-bottom: 2px solid transparent; transition: color .18s, border-color .18s; }
.roll-list a:hover { color: var(--accent-strong); border-bottom-color: var(--accent); }
.roll-src { font-size: .8rem; color: var(--muted); font-family: var(--font-mono); white-space: nowrap; }

/* cta panel */
.cta-panel { text-align: center; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 72%, #000)); color: #EAF0F7; border-radius: var(--radius-lg); padding: clamp(2.4rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem); position: relative; overflow: hidden; }
.cta-panel::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 100% at 80% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%); pointer-events: none; }
.cta-panel h2 { color: #fff; margin-bottom: .6rem; }
.cta-panel p { color: #C6D0DD; max-width: 50ch; margin-inline: auto; margin-bottom: 1.6rem; }
.cta-panel .btn { position: relative; z-index: 1; }

/* ---------- page hero ---------- */
.page-hero { padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(1rem, 2vw, 2rem); }
.page-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 1024/585; object-fit: cover; }
.page-hero-narrow { text-align: left; max-width: 100%; }
.page-hero-narrow .wrap { max-width: 64ch; }
.page-hero-narrow .lede { margin-bottom: 1.6rem; }

/* prose grid (about) */
.prose-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.prose-body p { max-width: 65ch; color: var(--body); }
.prose-lead h2 { position: sticky; top: 90px; }

/* values */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.value-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.value-card h3 { margin-bottom: .5rem; }
.value-card p { color: var(--body); margin: 0; font-size: .98rem; }
.section-values { background: var(--bg-2); }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.9rem; box-shadow: var(--shadow-sm); }
.team-avatar { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-strong); font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: 1rem; }
.team-card h3 { margin-bottom: .15rem; }
.team-role { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-strong); margin-bottom: .8rem; }
.team-card p:last-child { color: var(--body); margin: 0; font-size: .97rem; }

/* ---------- services rows ---------- */
.svc-rows { display: flex; flex-direction: column; gap: clamp(2rem, 5vw, 4rem); }
.svc-row { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 3rem); box-shadow: var(--shadow-sm); }
.svc-row-flip { grid-template-columns: .75fr 1.25fr; }
.svc-row-flip .svc-row-copy { order: 2; }
.svc-row-flip .svc-row-side { order: 1; }
.svc-row-copy h3 { margin: .8rem 0 .9rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.svc-long { color: var(--body); max-width: 60ch; margin-bottom: 1.2rem; }
.svc-points { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; }
.svc-points li { position: relative; padding-left: 1.7rem; color: var(--body); }
.svc-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 3px; background: var(--accent); }
.svc-row-side { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--secondary) 14%, var(--surface))); }
.svc-row-glyph { color: var(--accent-strong); transform: scale(3.2); }

/* how cards (grouped, replaces table) */
.how-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.how-card { display: flex; gap: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.how-num { font-family: var(--font-mono); color: var(--accent-strong); font-weight: 500; font-size: 1.1rem; flex: none; }
.how-card h3 { margin-bottom: .3rem; }
.how-card p { color: var(--body); margin: 0; }

/* faq accordion */
.faq-wrap { max-width: 800px; }
.faq-list { display: grid; gap: .8rem; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; font-family: var(--font-display); font-weight: 500; color: var(--ink); font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq-chev { width: 12px; height: 12px; border-right: 2px solid var(--accent-strong); border-bottom: 2px solid var(--accent-strong); transform: rotate(45deg); transition: transform .25s; flex: none; }
.faq[open] .faq-chev { transform: rotate(-135deg); }
.faq-a { padding: 0 1.4rem 1.3rem; }
.faq-a p { margin: 0; color: var(--body); max-width: 65ch; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-side h2 { margin-bottom: 1.2rem; }
.contact-line { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact-line a { color: var(--accent-strong); text-decoration: none; font-weight: 600; }
.contact-line a:hover { text-decoration: underline; }
.c-lab { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.contact-media { margin: 1.6rem 0 0; }
.contact-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 768/439; object-fit: cover; }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow-md); }
.form-intro { font-family: var(--font-display); font-weight: 500; color: var(--ink); margin-bottom: 1.4rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .45rem; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line-2); border-radius: var(--radius); padding: .85rem 1rem; transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.form-send { width: 100%; }
.form-status { margin: 1rem 0 0; padding: .85rem 1rem; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; text-align: center; }

/* ---------- article ---------- */
.article { padding-top: clamp(2rem, 4vw, 3rem); }
.art-head-inner { max-width: 760px; }
.crumb { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); margin-bottom: 1rem; }
.crumb a { color: var(--accent-strong); text-decoration: none; }
.art-kicker { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; color: var(--accent-strong); margin: 0 0 .6rem; }
.art-head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin-bottom: .8rem; }
.art-date { color: var(--muted); font-size: .92rem; }
.art-hero-media { margin: clamp(1.5rem, 3vw, 2.4rem) 0 0; }
.art-hero-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 1024/585; object-fit: cover; }
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 3.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }

.art-body { font-size: 1.075rem; line-height: 1.75; color: var(--body); max-width: 65ch; }
.art-body > *:first-child { margin-top: 0; }
.art-body p { margin: 0 0 1.3rem; }
.art-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.4rem 0 1rem; color: var(--ink); }
.art-body h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); margin: 1.9rem 0 .7rem; color: var(--ink); }
.art-body a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 500; }
.art-body a:hover { color: var(--accent); }
.art-body strong, .art-body b { color: var(--ink); font-weight: 600; }
.art-body ul, .art-body ol { margin: 0 0 1.4rem; padding-left: 1.3rem; }
.art-body li { margin-bottom: .5rem; }
.art-body img { border-radius: var(--radius); margin: 1.6rem 0; box-shadow: var(--shadow-sm); width: 100%; height: auto; }
.art-body section[itemscope] { margin-top: 1rem; }
.art-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .96rem; }
.art-body th, .art-body td { border: 1px solid var(--line); padding: .7rem .9rem; text-align: left; }
.art-body th { background: var(--surface-2); color: var(--ink); }

.article-rtl .art-body, .article-rtl .art-head h1, .article-rtl .crumb { text-align: right; }
.art-body[dir="rtl"] ul, .art-body[dir="rtl"] ol { padding-left: 0; padding-right: 1.3rem; }

.art-aside { position: sticky; top: 90px; display: grid; gap: 1.2rem; }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.aside-card h2 { font-size: 1.15rem; margin-bottom: .6rem; }
.aside-card p { color: var(--body); font-size: .94rem; margin-bottom: 1rem; }
.aside-card .btn { width: 100%; }
.aside-help { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
[data-theme="dark"] .aside-help { background: var(--surface-2); }

/* related */
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.rel-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.rel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.rel-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); }
.rel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rel-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; }
.rel-kicker { font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-strong); }
.rel-title { font-family: var(--font-display); font-weight: 600; color: var(--ink); line-height: 1.25; }

/* ---------- footer ---------- */
.site-foot { background: var(--primary); color: #C6D0DD; padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; margin-top: clamp(2rem, 4vw, 3rem); }
[data-theme="dark"] .site-foot { background: var(--bg-2); border-top: 1px solid var(--line); }
.foot-grid { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: clamp(2rem, 5vw, 4rem); }
.site-foot .brand { color: #fff; }
[data-theme="dark"] .site-foot .brand { color: var(--ink); }
.site-foot .brand-mark { color: var(--accent); }
.foot-note { margin: 1rem 0; max-width: 42ch; font-size: .95rem; color: #AEBACB; }
[data-theme="dark"] .foot-note { color: var(--muted); }
.foot-mail { color: var(--accent-strong); text-decoration: none; font-weight: 600; }
[data-theme="dark"] .foot-mail { color: var(--accent); }
.foot-col h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
[data-theme="dark"] .foot-col h3 { color: var(--ink); }
.foot-col a { display: block; color: #AEBACB; text-decoration: none; padding: .35rem 0; transition: color .15s; }
.foot-col a:hover { color: #fff; }
[data-theme="dark"] .foot-col a:hover { color: var(--ink); }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links a { color: #AEBACB; padding: .35rem 0; }
.foot-links a:hover { color: var(--accent-strong); }
.foot-base { max-width: var(--wrap); margin: clamp(2rem, 4vw, 3rem) auto 0; padding: 1.5rem var(--pad) 0; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .82rem; color: #8595AB; }
[data-theme="dark"] .foot-base { border-top-color: var(--line); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-inner, .page-hero-grid, .intro-grid, .prose-grid, .roll-grid, .contact-grid, .art-layout { grid-template-columns: 1fr; }
  .svc-grid, .step-grid, .post-grid, .quote-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-row, .svc-row-flip { grid-template-columns: 1fr; }
  .svc-row-flip .svc-row-copy, .svc-row-flip .svc-row-side { order: 0; }
  .svc-row-side { max-width: 240px; }
  .art-aside { position: static; grid-template-columns: repeat(2, 1fr); }
  .prose-lead h2 { position: static; }
  .hero-copy { max-width: none; }
}
@media (max-width: 720px) {
  .head-nav, .head-cta { display: none; }
  .nav-burger { display: inline-flex; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 1.2rem 1rem; }
  .svc-grid, .step-grid, .post-grid, .quote-grid, .team-grid, .how-grid, .value-grid, .rel-grid { grid-template-columns: 1fr; }
  .art-aside { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-badge { left: 8px; }
}
