/* ==========================================================================
   JABER LAW — Layout: header, hero, sections, footer
   ========================================================================== */

/* Header --------------------------------------------------------------------- */
.header { position: fixed; top: 0; inset-inline: 0; z-index: 7000; padding: 14px var(--page-x) 0; transition: transform var(--d-slow) var(--ease-out), padding var(--d-base); pointer-events: none; }
.header.is-hidden { transform: translateY(-120%); }
.header__bar { pointer-events: auto; max-width: var(--max-w); margin-inline: auto; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 0.6rem; border-radius: var(--r-pill); background: rgba(15, 20, 28, 0.55); border: 1px solid rgba(245, 241, 232, 0.1); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--sh-md); transition: background var(--d-base), height var(--d-base); }
.header.is-scrolled .header__bar { background: rgba(10, 13, 19, 0.8); height: 58px; }
.header__logo { display: flex; align-items: center; gap: 0.7rem; padding-inline-start: 0.6rem; height: 100%; }
.header__logo img { height: 40px; width: auto; transition: height var(--d-base); }
.header.is-scrolled .header__logo img { height: 34px; }
.header__wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.header__wordmark b { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--parch-50); }
.header__wordmark span { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.2em; color: var(--brass-400); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a, .nav summary { position: relative; display: inline-flex; align-items: center; gap: 0.3rem; height: 40px; padding: 0 0.8rem; border-radius: var(--r-pill); font-size: 0.88rem; font-weight: 500; color: var(--fg-2); transition: color var(--d-fast), background var(--d-fast); cursor: pointer; list-style: none; white-space: nowrap; }
.nav summary::-webkit-details-marker { display: none; }
.nav a::after { content: ''; position: absolute; bottom: 6px; inset-inline: 0.8rem; height: 1px; background: var(--brass-400); transform: scaleX(0); transform-origin: 100% 50%; transition: transform var(--d-base) var(--ease-out); }
.nav a:hover, .nav summary:hover { color: var(--fg); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav a.is-active { color: var(--fg); }
.nav summary svg { width: 12px; height: 12px; transition: transform var(--d-base); }
.nav details { position: relative; }
.nav details[open] summary { color: var(--fg); }
.nav details[open] summary svg { transform: rotate(180deg); }
.nav__menu { position: absolute; top: calc(100% + 10px); inset-inline-start: 0; min-width: 300px; padding: 0.5rem; border-radius: var(--r-lg); background: rgba(15, 20, 28, 0.92); border: 1px solid var(--line-2); backdrop-filter: blur(20px); box-shadow: var(--sh-lg); display: flex; flex-direction: column; gap: 2px; }
.nav__menu a { height: auto; padding: 0.65rem 0.8rem; border-radius: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; }
.nav__menu a::after { display: none; }
.nav__menu a:hover { background: var(--glass-light); }
.nav__menu a small { font-size: 0.72rem; color: var(--fg-3); font-weight: 400; }
.nav__menu a.is-new b::after { content: 'חדש'; margin-inline-start: 0.5rem; font-family: var(--font-sans); font-size: 0.6rem; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--brass-500); color: #fff; vertical-align: middle; }
.header__actions { display: flex; align-items: center; gap: 0.5rem; }
.header__phone { display: inline-flex; align-items: center; gap: 0.5rem; height: 42px; padding: 0 1rem; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-family: var(--font-grotesk); font-weight: 600; font-size: 0.86rem; direction: ltr; transition: background var(--d-fast), border-color var(--d-fast); }
.header__phone:hover { background: var(--glass-light); border-color: var(--brass-400); }
.header__phone svg { width: 15px; height: 15px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; }
.burger span { display: block; width: 20px; height: 1.5px; background: var(--fg); margin: 3px 0; transition: transform var(--d-base) var(--ease-out), opacity var(--d-fast); }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 7500; display: grid; padding: 12px; opacity: 0; visibility: hidden; transition: opacity var(--d-base), visibility var(--d-base); }
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__bg { position: absolute; inset: 0; background: rgba(10, 13, 19, 0.7); backdrop-filter: blur(16px); }
.drawer__panel { position: relative; display: flex; flex-direction: column; background: var(--ink-900); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 1rem 1.25rem 1.5rem; transform: translateY(24px) scale(0.98); transition: transform var(--d-slow) var(--ease-out); overflow: auto; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.drawer__links { display: flex; flex-direction: column; justify-content: center; flex: 1; gap: 0.1rem; padding-block: 1.2rem; }
.drawer__links a { font-family: var(--font-display); font-size: clamp(1.5rem, 6vw, 2.2rem); font-weight: 700; padding: 0.3rem 0.6rem; border-radius: var(--r-md); line-height: 1.2; display: flex; align-items: baseline; gap: 0.8rem; opacity: 0; transform: translateY(14px); transition: opacity var(--d-slow) var(--ease-out), transform var(--d-slow) var(--ease-out), background var(--d-fast); }
.drawer.is-open .drawer__links a { opacity: 1; transform: none; }
.drawer__links a:nth-child(1) { transition-delay: 60ms; } .drawer__links a:nth-child(2) { transition-delay: 100ms; } .drawer__links a:nth-child(3) { transition-delay: 140ms; } .drawer__links a:nth-child(4) { transition-delay: 180ms; } .drawer__links a:nth-child(5) { transition-delay: 220ms; } .drawer__links a:nth-child(6) { transition-delay: 260ms; } .drawer__links a:nth-child(7) { transition-delay: 300ms; } .drawer__links a:nth-child(8) { transition-delay: 340ms; } .drawer__links a:nth-child(9) { transition-delay: 380ms; } .drawer__links a:nth-child(10) { transition-delay: 420ms; }
.drawer__links a:hover { background: var(--glass-light); }
.drawer__links a small { font-family: var(--font-grotesk); font-size: 0.7rem; color: var(--brass-400); letter-spacing: 0.1em; }
.drawer__links a.is-sub { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 500; padding-inline-start: 2.6rem; color: var(--fg-2); }
.drawer__foot { display: flex; flex-direction: column; gap: 0.8rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }

/* Preloader -------------------------------------------------------------------- */
.preloader { position: fixed; inset: 0; z-index: 9995; background: var(--ink-950); display: grid; place-items: center; overflow: hidden; }
.preloader__mark { width: clamp(120px, 18vw, 220px); height: auto; opacity: 0; }
.preloader__count { position: absolute; bottom: 8vh; inset-inline-end: var(--page-x); font-family: var(--font-grotesk); font-size: clamp(3rem, 8vw, 6rem); font-weight: 500; letter-spacing: -0.04em; color: var(--fg); direction: ltr; line-height: 1; }
.preloader__count small { font-size: 0.3em; color: var(--brass-400); vertical-align: top; margin-left: 0.1em; }
.preloader__tag { position: absolute; bottom: 8vh; inset-inline-start: var(--page-x); font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.2em; color: var(--fg-3); text-transform: uppercase; }
.preloader__rule { position: absolute; top: 58%; inset-inline: var(--page-x); height: 7px; }
.preloader__rule::before, .preloader__rule::after { content: ''; position: absolute; inset-inline: 0; height: 1px; background: var(--brass-400); transform: scaleX(0); transform-origin: 100% 50%; box-shadow: 0 0 20px var(--brass-glow); }
.preloader__rule::before { top: 0; } .preloader__rule::after { bottom: 0; }

/* Page curtain ------------------------------------------------------------------- */
.curtain { position: fixed; inset: 0; z-index: 9800; pointer-events: none; }
.curtain__panel { position: absolute; inset: 0; background: var(--ink-900); transform: translateY(101%); }
.curtain__panel--accent { background: var(--brass-500); }

/* Hero (home) ------------------------------------------------------------------------ */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, var(--ink-950) 0%, rgba(10, 13, 19, 0.78) 30%, rgba(10, 13, 19, 0.3) 62%, rgba(10, 13, 19, 0.5) 100%); }
.hero__shade::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 60% at 80% 20%, rgba(178, 146, 79, 0.16), transparent 70%); }
.hero__rule { position: absolute; top: 46%; inset-inline: var(--page-x); z-index: 3; height: 7px; pointer-events: none; }
.hero__rule::before, .hero__rule::after { content: ''; position: absolute; inset-inline: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--brass-400) 15%, var(--brass-400) 85%, transparent); box-shadow: 0 0 18px var(--brass-glow); transform: scaleX(0); transform-origin: 100% 50%; }
.hero__rule::before { top: 0; } .hero__rule::after { bottom: 0; }
.hero__rule.is-drawn::before, .hero__rule.is-drawn::after { transform: scaleX(1); }
html:not([data-js]) .hero__rule::before, html:not([data-js]) .hero__rule::after { transform: scaleX(1); }
.hero__body { position: relative; z-index: 4; padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; gap: clamp(1.6rem, 3vw, 2.6rem); }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.hero__title { font-size: var(--t-display-xl); font-weight: 900; line-height: 1.0; letter-spacing: -0.015em; max-width: 13ch; color: var(--parch-50); }
.hero__title .accent { color: var(--brass-400); font-style: italic; font-weight: 700; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.hero__lead { font-size: var(--t-lead); color: var(--fg-2); font-weight: 300; line-height: 1.75; max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: flex-end; align-items: center; }
.hero__foot { position: relative; z-index: 4; border-top: 1px solid rgba(245, 241, 232, 0.12); background: rgba(10, 13, 19, 0.55); }
.hero__foot-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; height: 60px; }
.hero__scroll { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; color: var(--fg-3); text-transform: uppercase; }
.hero__scroll .line { width: 1px; height: 28px; background: var(--line-2); position: relative; overflow: hidden; }
.hero__scroll .line::after { content: ''; position: absolute; inset: 0; background: var(--brass-400); transform: translateY(-100%); animation: scrollcue 1.8s var(--ease-in-out) infinite; }
@keyframes scrollcue { 0% { transform: translateY(-100%); } 50% { transform: translateY(0); } 100% { transform: translateY(100%); } }
.hero__coords { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; color: var(--fg-3); direction: ltr; }

/* Page top (inner pages) ------------------------------------------------------------- */
.page-top { position: relative; padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)); padding-bottom: clamp(2.5rem, 5vw, 4rem); overflow: hidden; isolation: isolate; }
.page-top__media { position: absolute; inset: 0; z-index: 0; }
.page-top__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.page-top__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--ink-950) 0%, rgba(10, 13, 19, 0.7) 50%, rgba(10, 13, 19, 0.55) 100%); }
.page-top__body { position: relative; z-index: 2; }
.page-top .display-xl { margin-top: 1rem; max-width: 16ch; }
.page-top .lead { margin-top: 1.3rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--fg-3); margin-bottom: 1.2rem; }
.crumbs a:hover { color: var(--fg); }
.crumbs span::before { content: '/'; opacity: 0.5; }
.page-top__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }

/* Statement --------------------------------------------------------------------- */
.statement { display: grid; grid-template-columns: 0.9fr 1.6fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.statement__text { font-family: var(--font-display); font-size: clamp(1.55rem, 3vw, 2.9rem); font-weight: 500; line-height: 1.38; letter-spacing: -0.01em; max-width: 30ch; }
.statement__text .w { display: inline-block; opacity: 0.16; transition: opacity 0.2s linear; margin-inline-end: 0.25em; }
.statement__text .w.is-lit { opacity: 1; }
.statement__text .w.accent { color: var(--brass-400); }
html:not([data-js]) .statement__text .w { opacity: 1; }
.founder { display: flex; align-items: center; gap: 1.2rem; margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.founder__avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--ink-800); border: 1px solid var(--brass-500); overflow: hidden; flex: 0 0 auto; }
.founder__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.founder__name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.founder__role { font-size: 0.8rem; color: var(--fg-3); }
.founder__sig { margin-inline-start: auto; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--brass-400); direction: ltr; }

/* Metrics ---------------------------------------------------------------------------- */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }

/* Practice horizontal scroll ----------------------------------------------------------- */
.hscroll { position: relative; }
.hscroll__pin { position: relative; overflow: hidden; }
.hscroll__head { padding-top: var(--section-y); }
.hscroll__track { display: flex; gap: 1.25rem; padding-inline: var(--page-x); padding-bottom: var(--section-y); width: max-content; will-change: transform; }
.practice-card { position: relative; flex: 0 0 auto; width: clamp(300px, 32vw, 460px); aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-3); isolation: isolate; }
.practice-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.practice-card:hover img { transform: scale(1.06); }
.practice-card__shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, rgba(10, 13, 19, 0.92) 0%, rgba(10, 13, 19, 0.25) 55%, rgba(10, 13, 19, 0.35) 100%); }
.practice-card__body { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: space-between; padding: 1.4rem; }
.practice-card__num { font-family: var(--font-grotesk); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; color: var(--brass-400); display: flex; justify-content: space-between; align-items: center; }
.practice-card__num > span:first-child { direction: ltr; unicode-bidi: isolate; }
.practice-card__new { font-family: var(--font-sans); font-size: 0.62rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--brass-500); color: #fff; letter-spacing: 0.04em; }
.practice-card__title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.1vw, 2rem); font-weight: 700; line-height: 1.15; }
.practice-card__text { color: var(--fg-2); font-size: 0.9rem; line-height: 1.6; margin-top: 0.6rem; max-width: 34ch; opacity: 0; transform: translateY(10px); transition: opacity var(--d-slow) var(--ease-out), transform var(--d-slow) var(--ease-out); }
.practice-card:hover .practice-card__text { opacity: 1; transform: none; }
@media (hover: none) { .practice-card__text { opacity: 1; transform: none; } }
.practice-card__cta { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--fg); }
.practice-card__cta svg { width: 16px; height: 16px; transition: transform var(--d-base) var(--ease-out); }
.practice-card:hover .practice-card__cta svg { transform: translateX(-4px); }
.practice-card--end { width: clamp(260px, 26vw, 360px); background: var(--brass-500); display: grid; place-items: center; text-align: center; padding: 2rem; }
.practice-card--end .practice-card__title { font-size: clamp(1.5rem, 2.2vw, 2.2rem); color: #fff; }
.practice-card--end p { color: rgba(255, 255, 255, 0.85); margin-top: 0.8rem; font-size: 0.95rem; }
.hscroll__progress { height: 1px; background: var(--line); position: relative; margin-inline: var(--page-x); }
.hscroll__progress i { position: absolute; top: 0; inset-inline-start: 0; height: 100%; width: 100%; background: var(--brass-400); transform: scaleX(0); transform-origin: 100% 50%; }

/* Practice grid (inner / fallback) ------------------------------------------------------ */
.practice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.practice-grid .practice-card { width: auto; aspect-ratio: 4 / 4.4; }

/* Method (drawing draws itself) --------------------------------------------------------- */
.method { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.method__svg { width: 100%; height: auto; }
.method__svg .ln { fill: none; stroke: rgba(10, 13, 19, 0.7); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.method__svg .ln--thin { stroke-width: 0.6; stroke: rgba(10, 13, 19, 0.35); }
.method__svg .ln--accent { stroke: var(--brass-500); stroke-width: 1.6; }
.method__svg .ln--fill { fill: rgba(10, 13, 19, 0.05); stroke: none; opacity: 0; }
.method__svg text { font-family: var(--font-mono); font-size: 7px; fill: rgba(10, 13, 19, 0.5); letter-spacing: 0.1em; }
.method__svg text.he { font-family: var(--font-display); font-size: 11px; fill: rgba(10, 13, 19, 0.75); letter-spacing: 0; }
.method__points { display: flex; flex-direction: column; margin-top: var(--s-6); border-top: 1px solid var(--line-on-light); }
.m-point { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line-on-light); }
.m-point__n { font-family: var(--font-grotesk); font-weight: 700; color: var(--brass-600); font-size: 0.85rem; padding-top: 0.2rem; }
.m-point__t { font-weight: 600; font-size: 1.05rem; }
.m-point__d { color: var(--fg-on-light-2); font-size: 0.93rem; line-height: 1.65; margin-top: 0.3rem; }

/* Split media block --------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split--rev > :first-child { order: 2; }
.split__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: hidden; }
.split__media--wide { aspect-ratio: 4 / 3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__quote { font-family: var(--font-display); font-size: clamp(1.4rem, 2.3vw, 2.1rem); font-weight: 500; line-height: 1.4; }
.split__quote::before { content: '['; color: var(--brass-400); margin-inline-end: 0.2em; font-weight: 400; }
.split__quote::after { content: ']'; color: var(--brass-400); margin-inline-start: 0.2em; font-weight: 400; }
.section--light .split__quote::before, .section--light .split__quote::after { color: var(--brass-600); }

/* Services (inner pages) --------------------------------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.services--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Big CTA ------------------------------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--parch-100); color: var(--fg-on-light); padding: clamp(2.5rem, 6vw, 5rem); }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; position: relative; z-index: 1; }
.cta__title { font-size: var(--t-display-l); font-weight: 900; line-height: 1.04; }
.cta__title .accent { color: var(--brass-600); font-style: italic; font-weight: 700; }
.cta .lead { color: var(--fg-on-light-2); }
.cta .field label { color: var(--fg-on-light-2); }
.cta .field input, .cta .field textarea, .cta .field select { background: rgba(10, 13, 19, 0.04); border-color: rgba(10, 13, 19, 0.14); color: var(--fg-on-light); }
.cta .field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'><path d='M4 7l6 6 6-6' stroke='%234a4843' stroke-width='1.6'/></svg>"); }
.cta .field select option { background: #fff; color: var(--fg-on-light); }
.cta .field input::placeholder, .cta .field textarea::placeholder { color: #9a968d; }
.cta .field input:focus, .cta .field textarea:focus, .cta .field select:focus { background: #fff; }
.cta .form-consent { color: var(--fg-on-light-2); }
.cta .form-success circle { stroke: var(--brass-500); }
.cta .form-success path { stroke: var(--ink-950); }
.cta .form-success .display-m, .cta .form-success .lead { color: var(--fg-on-light); }
.cta__contacts { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 2rem; }
.cta__contact { display: flex; flex-direction: column; gap: 0.2rem; padding-top: 1rem; border-top: 1px solid var(--line-on-light); }
.cta__contact span { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--fg-on-light-2); text-transform: uppercase; font-family: var(--font-grotesk); }
.cta__contact a, .cta__contact b { font-size: 1.1rem; font-weight: 600; }
.cta__contact a:hover { color: var(--brass-600); }
.cta__rule { position: absolute; top: 18%; inset-inline: 0; height: 7px; opacity: 0.55; z-index: 0; }
.cta__rule::before, .cta__rule::after { content: ''; position: absolute; inset-inline: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--brass-500) 30%, var(--brass-500) 70%, transparent); }
.cta__rule::before { top: 0; } .cta__rule::after { bottom: 0; }

/* Article (guides) ----------------------------------------------------------------------------- */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.article__aside { position: sticky; top: calc(var(--header-h) + 2rem); display: flex; flex-direction: column; gap: 1rem; }
.article__hero { aspect-ratio: 21 / 9; max-height: 60vh; }
.author { display: flex; gap: 1rem; align-items: center; padding: 1.2rem; border-radius: var(--r-lg); background: var(--bg-3); border: 1px solid var(--line); }
.author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; border: 1px solid var(--brass-500); }
.author b { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.author span { font-size: 0.82rem; color: var(--fg-3); }
.toc { padding: 1.2rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--glass-light); }
.toc b { display: block; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.16em; color: var(--brass-400); text-transform: uppercase; margin-bottom: 0.7rem; }
.toc a { display: block; padding: 0.35rem 0; font-size: 0.9rem; color: var(--fg-2); border-bottom: 1px solid var(--line); }
.toc a:last-child { border-bottom: 0; }
.toc a:hover { color: var(--fg); }
.article__meta { display: flex; flex-wrap: wrap; gap: 1rem; font-family: var(--font-grotesk); font-size: 0.74rem; letter-spacing: 0.1em; color: var(--fg-3); text-transform: uppercase; margin-top: 1.2rem; }

/* Footer --------------------------------------------------------------------------------------------------- */
.footer { position: relative; z-index: 1; margin-top: var(--section-y); padding: 0 12px 12px; }
.footer__inner { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--ink-900); border: 1px solid var(--line); padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 4rem) 1.5rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer__logo { height: 140px; width: auto; }
.footer__bio { color: var(--fg-2); font-size: 0.95rem; line-height: 1.7; margin: 1.2rem 0; max-width: 40ch; }
.footer__h { font-family: var(--font-grotesk); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 1rem; }
.footer__links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__links a { position: relative; display: inline-block; width: max-content; color: var(--fg-2); transition: color var(--d-fast), transform var(--d-base) var(--ease-out); }
.footer__links a:hover { color: var(--fg); transform: translateX(-4px); }
.footer__contact { color: var(--fg-2); font-size: 0.95rem; line-height: 1.9; }
.footer__contact a:hover { color: var(--brass-400); }
.footer__wordmark { font-family: var(--font-display); font-weight: 900; font-size: clamp(4rem, 15vw, 15rem); line-height: 0.85; letter-spacing: -0.02em; margin-top: clamp(2rem, 5vw, 4rem); color: transparent; -webkit-text-stroke: 1px rgba(245, 241, 232, 0.2); text-align: center; direction: ltr; user-select: none; display: flex; justify-content: center; overflow: hidden; }
.footer__wordmark span { display: inline-block; }
.footer__wordmark.is-solid span { color: var(--fg); -webkit-text-stroke: 0; }
html:not([data-js]) .footer__wordmark { color: var(--fg); -webkit-text-stroke: 0; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--fg-3); }
.footer__bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom a:hover { color: var(--fg); }
.footer__rule { position: absolute; top: 22%; inset-inline: 0; height: 7px; opacity: 0.35; pointer-events: none; }
.footer__rule::before, .footer__rule::after { content: ''; position: absolute; inset-inline: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--brass-400) 30%, var(--brass-400) 70%, transparent); }
.footer__rule::before { top: 0; } .footer__rule::after { bottom: 0; }

/* 404 */
.err { min-height: 80vh; display: grid; place-items: center; text-align: center; padding-top: var(--header-h); }
.err .display-xl { font-size: clamp(5rem, 20vw, 14rem); color: transparent; -webkit-text-stroke: 1px var(--brass-400); }
