/* Your Marketing Guru
   Layout idea: one committed deep-teal world. Left-aligned editorial columns,
   oversized Syne headlines, amber reserved for proof and action. */

:root {
	color-scheme: light;
	/* White and teal. Names kept from the first version: ground = page, teal = soft panel, bone = ink, amber = accent. */
	--ground: #ffffff;
	--teal: #f1f7f5;
	--surface: #e3efec;
	--bone: #0a3d38;
	--muted: #4d6964;
	--amber: #0f7a6c;
	--amber-hi: #0a3d38;
	--deep: #0a3d38;
	--line: rgba(10, 61, 56, .12);
	--line-strong: rgba(10, 61, 56, .24);
	--ok: #0f7a6c;
	--bad: #c0392b;
	--display: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
	--body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	--arabic: "Noto Kufi Arabic", "Tahoma", sans-serif;
	--wrap: 1200px;
	--radius: 8px;
	--nav-h: 68px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--ground); color: var(--bone); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.04; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--amber); color: #ffffff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 780px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--amber); color: #ffffff; padding: 10px 14px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.eyebrow { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); font-weight: 600; }
.eyebrow a { text-decoration: none; }
.accent { color: var(--amber); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 15.5px var(--body); padding: 13px 22px; border-radius: 999px; border: 1px solid var(--bone); background: transparent; color: var(--bone); text-decoration: none; cursor: pointer; transition: transform .18s, background .18s, color .18s, border-color .18s; }
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--amber); border-color: var(--amber); color: #ffffff; }
.btn--solid:hover { background: var(--amber-hi); border-color: var(--amber-hi); }
.btn--sm { padding: 9px 16px; font-size: 14.5px; }
.btn svg { transition: transform .18s; }
.btn:hover svg { transform: translateX(3px); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__logo { display: block; height: 30px; width: auto; }
.foot__logo { display: block; height: 34px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.brand__text small { font-size: 12.5px; color: var(--muted); }
.nav__menu { display: flex; align-items: center; gap: 26px; }
.nav__menu ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav__menu ul a { text-decoration: none; font-size: 14.5px; color: var(--muted); font-weight: 500; transition: color .15s; }
.nav__menu ul a:hover, .nav__menu .current-menu-item > a { color: var(--bone); }
.nav__toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 44px; height: 40px; cursor: pointer; position: relative; }
.nav__toggle span[aria-hidden] { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--bone); transition: transform .2s; }
.nav__toggle span[aria-hidden]:nth-of-type(2) { top: 15px; }
.nav__toggle span[aria-hidden]:nth-of-type(3) { top: 23px; }
.nav__toggle[aria-expanded="true"] span[aria-hidden]:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span[aria-hidden]:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }
.nav__progress { height: 2px; background: transparent; }
.nav__progress span { display: block; height: 100%; width: 100%; background: var(--amber); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 80% at 80% 10%, var(--surface) 0%, var(--teal) 38%, var(--ground) 100%); border-bottom: 1px solid var(--line); }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.25fr .85fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero__copy { display: flex; flex-direction: column; gap: 22px; }
.hero__title { font-size: clamp(56px, 9.6vw, 140px); letter-spacing: -.045em; line-height: .95; }
.hero__ar { font-family: var(--arabic); font-weight: 900; font-size: clamp(30px, 4.6vw, 62px); line-height: 1.3; color: transparent; -webkit-text-stroke: 1.4px var(--amber); text-align: left; }
.hero__lede { max-width: 58ch; font-size: clamp(17px, 1.45vw, 20px); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.hero__portrait { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 420px; }
.portrait { position: relative; border-radius: 220px 220px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--teal); border: 1px solid var(--line-strong); transform: perspective(900px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .25s ease-out; box-shadow: 0 30px 70px -30px rgba(10, 61, 56, .45); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: saturate(.92) contrast(1.04); }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(10, 61, 56, .45) 100%); pointer-events: none; }
.portrait__glow { position: absolute; inset: 0; background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, .22), transparent 60%); mix-blend-mode: screen; pointer-events: none; z-index: 1; }
.hero__portrait figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }
.chip-float { position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; background: rgba(10, 61, 56, .92); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); font-size: 12.5px; color: rgba(255,255,255,.78); max-width: 190px; line-height: 1.3; animation: bob 6s ease-in-out infinite; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6); }
.chip-float b { font-family: var(--display); font-weight: 600; font-size: 20px; color: #7fd3c4; letter-spacing: -.02em; }
.chip-float--0 { left: -54px; top: 14%; }
.chip-float--1 { right: -28px; top: 46%; animation-delay: -2s; }
.chip-float--2 { left: -36px; bottom: 16%; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Ledger + marquee */
.ledger { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.ledger__item { padding: 30px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.ledger__item:first-child { border-left: 0; padding-left: 0; }
.ledger .num { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 4.4vw, 60px); line-height: 1; color: var(--amber); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.ledger dd { margin: 0; font-size: 14.5px; color: var(--muted); max-width: 28ch; }
.ledger dd strong { color: var(--bone); font-weight: 600; display: block; }
.ledger-wrap { border-bottom: 1px solid var(--line); }
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: 16px 0; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: inline-flex; gap: 44px; animation: slide 40s linear infinite; padding-left: 44px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.wordmark { gap: 44px; }
.wordmark::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 96px 0; }
.head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; max-width: 900px; }
.head h1, .head h2 { font-size: clamp(34px, 5.2vw, 68px); }
.head p:not(.eyebrow) { max-width: 62ch; color: var(--muted); font-size: 18px; }

/* Chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: 500 14.5px var(--body); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: color .15s, border-color .15s, background .15s; }
.chip:hover { color: var(--bone); border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--bone); color: var(--ground); border-color: var(--bone); }
.chip__n { font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }
.chip--radio { position: relative; }
.chip--radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip--radio:has(input:checked) { background: var(--bone); color: var(--ground); border-color: var(--bone); }
.chip--radio:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 3px; }
[data-filter] { margin-bottom: 26px; }

/* Cases */
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.case { position: relative; background: var(--teal); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s, transform .25s, opacity .25s; }
.case:hover { border-color: var(--amber); transform: translateY(-3px); }
.case[hidden] { display: none; }
.case.is-in { animation: rise .35s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.case__tag { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.case__title { font-size: 25px; }
.case__title a { text-decoration: none; }
.case__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.case__what { font-size: 16px; }
.case__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 15px; color: var(--muted); }
.case__list li { padding-left: 16px; position: relative; }
.case__list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 1px; background: var(--amber); }
.case__result { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--amber); line-height: 1.2; }
.case__result small { display: block; font: 500 13.5px var(--body); color: var(--muted); margin-top: 4px; }
.case__more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--bone); }

.js .cases:not(.is-all) .case--extra { display: none; }
.cases__more { margin-top: 28px; display: flex; justify-content: center; }

/* Logo wall */
.logos { border-bottom: 1px solid var(--line); padding-top: 26px; }
.logos__label { font: 600 13px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.logos .marquee { border-bottom: 0; padding: 22px 0 26px; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--muted); letter-spacing: .02em; text-transform: uppercase; display: inline-flex; align-items: center; }
.marquee--logos .marquee__track { gap: 64px; align-items: center; }
.logo { display: inline-flex; align-items: center; height: 44px; }
.logo img { height: 100%; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .55; transition: filter .25s, opacity .25s; }
.logo:hover img { filter: none; opacity: 1; }

/* Hero proof points */
.hero__proof { list-style: none; margin: 8px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--muted); max-width: 58ch; }
.hero__proof li { padding-left: 24px; position: relative; }
.hero__proof li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 6px; border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg); }

/* Department orbit */
.dept { background: linear-gradient(180deg, var(--ground), var(--teal) 70%, var(--ground)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.dept__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.orbit { position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; justify-self: center; }
.orbit__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit__lines line { stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 5; transition: stroke .3s; }
.orbit__lines line.is-on { stroke: var(--amber); stroke-dasharray: none; stroke-width: 1.6; }
.orbit__ring { fill: none; stroke: var(--line); vector-effect: non-scaling-stroke; }
.orbit__ring--in { stroke-dasharray: 2 6; animation: spin 60s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit__core { position: absolute; left: 50%; top: 50%; width: 34%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.orbit__core img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 12%; border-radius: 50%; border: 2px solid var(--amber); box-shadow: 0 0 0 10px rgba(15, 122, 108, .08), 0 0 60px rgba(15, 122, 108, .18); }
.orbit__core span { font-family: var(--display); font-weight: 600; font-size: clamp(13px, 1.4vw, 16px); white-space: nowrap; }
.orbit__roles { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.orbit__roles li { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.orbit__roles button { font: 600 13.5px var(--body); color: var(--muted); background: var(--ground); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; transition: color .2s, border-color .2s, background .2s, transform .2s; }
.orbit__roles button:hover { color: var(--bone); border-color: var(--bone); }
.orbit__roles button[aria-selected="true"] { background: var(--amber); border-color: var(--amber); color: #ffffff; transform: scale(1.06); }
.orbit__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dept__panel { background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; min-height: 280px; }
.dept__count { font-family: var(--display); font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.dept__count span { color: var(--amber); }
.dept__panel h3 { font-size: clamp(26px, 3vw, 38px); }
.dept__proof { font-size: 18px; line-height: 1.55; }
.dept__bar { margin-top: auto; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.dept__bar span { display: block; height: 100%; width: 100%; background: var(--amber); transform-origin: 0 50%; transform: scaleX(0); }
.dept__bar.is-running span { animation: fill var(--cycle, 4.5s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.dept__panel.is-swap h3, .dept__panel.is-swap .dept__proof { animation: rise .35s ease-out both; }

/* Chapter */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.step { padding: 30px 30px 30px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; gap: 8px; }
.step:nth-child(even) { padding-left: 30px; border-left: 1px solid var(--line); }
.step__n { font-family: var(--display); font-weight: 600; font-size: 30px; color: var(--amber); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 21px; margin-bottom: 8px; line-height: 1.15; }
.step p { color: var(--muted); font-size: 15.5px; }

/* Services */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc__card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 14px; transition: transform .25s, border-color .2s; }
.svc__card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.svc__card h3 { font-size: 28px; }
.svc__intro { color: var(--muted); font-size: 15.5px; }
.svc__card ul { margin: 0; padding-left: 18px; font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.svc__card li::marker { color: var(--amber); }
.svc__proof { margin-top: auto; font-size: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.svc__link { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14.5px; text-decoration: none; color: var(--amber); }
.svc__card--lead { background: var(--bone); color: var(--ground); border-color: var(--bone); }
.svc__card--lead .svc__intro, .svc__card--lead .svc__proof { color: rgba(255,255,255,.78); }
.svc__card--lead .svc__proof { border-color: rgba(255,255,255,.2); }
.svc__card--lead li::marker { color: #7fd3c4; }
.svc__card--lead .svc__link { color: #7fd3c4; }

/* Method */
#method { padding-top: 0; }
.method { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.method__tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.method__tab { all: unset; cursor: pointer; display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 600; font-size: clamp(24px, 3vw, 38px); color: var(--muted); letter-spacing: -.02em; transition: color .15s, padding .2s; }
.method__tab small { font: 600 13px var(--body); color: var(--muted); letter-spacing: .1em; }
.method__tab:hover { color: var(--bone); }
.method__tab[aria-selected="true"] { color: var(--amber); padding-left: 14px; }
.method__tab:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.method__panel { background: var(--teal); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; min-height: 260px; }
.method__panel:not([hidden]) { animation: rise .3s ease-out both; }
.method__panel h3 { font-size: 26px; }
.method__panel p:not(.eyebrow) { color: var(--muted); }
.method__panel .method__q { font-size: 21px; color: var(--bone); font-weight: 500; line-height: 1.4; }

/* Brief */
.brief { background: var(--teal); border-top: 1px solid var(--line); }
.brief__grid { display: grid; grid-template-columns: 1.6fr .8fr; gap: 32px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 24px; background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.form__group { border: 0; padding: 0; margin: 0; }
.form__group legend, .field label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0; margin-bottom: 12px; display: block; }
.form__fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.field { display: flex; flex-direction: column; }
.field label { margin-bottom: 8px; }
.field--wide { grid-column: 1 / -1; }
.field input, .field textarea, .wpf-wrap input:not([type=checkbox]):not([type=radio]):not([type=submit]), .wpf-wrap textarea, .wpf-wrap select { width: 100%; background: transparent; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--bone); font: 400 16px var(--body); padding: 12px 14px; transition: border-color .15s, background .15s; }
.field input:focus, .field textarea:focus, .wpf-wrap input:focus, .wpf-wrap textarea:focus, .wpf-wrap select:focus { outline: none; border-color: var(--amber); background: rgba(15, 122, 108, .05); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.field textarea { resize: vertical; min-height: 110px; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form__hint { font-size: 14px; color: var(--muted); }
.form__status { font-weight: 500; min-height: 1em; }
.form__status:empty { display: none; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-error { color: var(--bad); }
.form.is-sending button[type=submit] { opacity: .6; pointer-events: none; }
.form.is-done .form__group, .form.is-done .form__fields, .form.is-done .form__foot { display: none; }
.form.is-done .form__status { font-family: var(--display); font-size: 26px; line-height: 1.25; }
.brief__aside { display: flex; flex-direction: column; gap: 16px; padding: 8px 0; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.contact-list a { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, background .15s; }
.contact-list a:hover { border-color: var(--amber); background: rgba(15, 122, 108, .05); }
.contact-list svg { width: 22px; height: 22px; color: var(--amber); }
.contact-list span { display: flex; flex-direction: column; font-size: 14.5px; color: var(--muted); word-break: break-word; }
.contact-list b { color: var(--bone); font-weight: 600; font-size: 15.5px; }

/* WPForms inside the theme */
.wpf-wrap { background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.wpf-wrap .wpforms-container { margin: 0 !important; }
.wpf-wrap .wpforms-field-label, .wpf-wrap legend { color: var(--muted) !important; font: 600 13px var(--body) !important; letter-spacing: .14em; text-transform: uppercase; }
.wpf-wrap .wpforms-field-sublabel, .wpf-wrap .wpforms-field-description { color: var(--muted) !important; }
.wpf-wrap select { height: 51px; }
.wpf-wrap option { color: #111; }
.wpf-wrap button[type=submit], .wpf-wrap .wpforms-submit { background: var(--amber) !important; color: #ffffff !important; border: 0 !important; border-radius: 999px !important; padding: 13px 24px !important; font: 600 15.5px var(--body) !important; height: auto !important; cursor: pointer; }
.wpf-wrap .wpforms-confirmation-container-full { background: transparent !important; border: 1px solid var(--ok) !important; color: var(--bone) !important; }

/* Inner pages */
.page { padding-bottom: 0; min-height: 60vh; }
.page__head { padding-top: 80px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.page__head h1 { font-size: clamp(40px, 6vw, 80px); }
.page__lede { font-size: 20px; color: var(--muted); max-width: 60ch; }
.page--404 { padding: 120px 0; }
.page--404 h1 { font-size: clamp(40px, 6vw, 80px); margin: 14px 0; }
.page--404 p { margin-bottom: 16px; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; padding-bottom: 80px; }
.post-card { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--teal); }
.post-card__img img { border-radius: 6px; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card__meta { font-size: 13px; color: var(--muted); }
.post-card__title { font-size: 24px; }
.post-card__title a { text-decoration: none; }
.post-card p:last-child { color: var(--muted); font-size: 15.5px; }
.pager { padding-bottom: 80px; }
.pager .nav-links { display: flex; gap: 8px; }
.pager .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.pager .current { background: var(--bone); color: var(--ground); }
.article__hero { margin: 0 auto 40px; }
.article__hero img { border-radius: var(--radius); width: 100%; }
.prose { padding-bottom: 80px; font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 34px; margin-top: 1.6em; }
.prose h3 { font-size: 24px; margin-top: 1.4em; }
.prose a { color: var(--amber); }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--amber); font-size: 21px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose img { border-radius: var(--radius); }
.case-page__grid { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.case-page__facts { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 20px; background: var(--teal); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.case-page__facts .case__result { margin-top: 0; padding-top: 0; border-top: 0; font-size: 26px; }
.cta-band { background: var(--deep); color: #ffffff; }
.cta-band__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; flex-wrap: wrap; }
.cta-band p { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.6vw, 32px); max-width: 30ch; line-height: 1.15; }
.cta-band .btn--solid { background: #ffffff; border-color: #ffffff; color: var(--deep); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-top: 56px; }
.foot__grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 40px; }
.foot__id { display: flex; flex-direction: column; gap: 6px; }
.foot__brand { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -.02em; }
.foot__links, .foot nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot__links a, .foot nav a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--muted); }
.foot__links a:hover, .foot nav a:hover { color: var(--bone); }
.foot__links svg { width: 18px; height: 18px; color: var(--amber); }
.foot__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 28px; font-size: 13.5px; color: var(--muted); }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* Reveal: content is visible at rest; JS adds a gentle entrance only for elements below the fold. */
.js .will-reveal { opacity: 0; transform: translateY(18px); }
.js .will-reveal.is-revealed { opacity: 1; transform: none; transition: opacity .6s ease-out, transform .6s ease-out; }

/* Responsive */
@media (max-width: 1080px) {
	.chip-float--0 { left: -20px; }
	.chip-float--2 { left: -12px; }
	.chip-float--1 { right: -12px; }
}
@media (max-width: 960px) {
	.hero__grid { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
	.hero__portrait { justify-self: start; max-width: 360px; }
	.ledger { grid-template-columns: repeat(2, 1fr); }
	.ledger__item:nth-child(3) { border-left: 0; padding-left: 0; }
	.ledger__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
	.dept__grid, .method, .brief__grid, .case-page__grid { grid-template-columns: 1fr; }
	.case-page__facts { position: static; }
	.svc { grid-template-columns: 1fr; }
	.steps { grid-template-columns: 1fr; }
	.step:nth-child(even) { padding-left: 0; border-left: 0; }
	.section { padding: 72px 0; }
}
@media (max-width: 860px) {
	.nav__toggle { display: block; }
	.nav__menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--ground); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 18px; padding: 20px 24px 26px; display: none; }
	.nav__menu.is-open { display: flex; }
	.nav__menu ul { flex-direction: column; gap: 14px; }
	.nav__menu ul a { font-size: 18px; color: var(--bone); }
}
@media (max-width: 720px) {
	.orbit { aspect-ratio: auto; max-width: none; }
	.orbit__lines { display: none; }
	.orbit__core { position: static; transform: none; width: auto; flex-direction: row; justify-content: flex-start; margin-bottom: 18px; text-align: left; }
	.orbit__core img { width: 72px; }
	.orbit__roles { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
	.orbit__roles li { position: static; transform: none; }
	.form__fields { grid-template-columns: 1fr; }
	.chip-float { display: none; }
}
@media (max-width: 480px) {
	.brand__logo { height: 24px; }
	.ledger { grid-template-columns: 1fr; }
	.ledger__item { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
	.ledger__item:first-child { border-top: 0; }
	.cases { grid-template-columns: 1fr; }
	.step { grid-template-columns: 44px 1fr; }
	.form, .wpf-wrap, .dept__panel, .method__panel { padding: 22px; }
	.brand__text small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .will-reveal { opacity: 1; transform: none; }
}
