/* FFIT site styles (2026 redesign). Desktop-first, single breakpoint at 760px. */

:root {
	--linen: #F5F1ED;
	--sand: #E5D4C0;
	--stone: #D8D0BA;
	--sage: #708C75;
	--sage-deep: #4C6852;
	--sage-ink: #3E5545;
	--charcoal: #252323;
	--text-2: #3D3936;
	--text-3: #5E5853;
	--white: #FFFFFF;
	--line-dark: #4A4644;
	--line-sand: #C9B9A3;

	/* colours that stay the same in both themes: text/buttons sitting on dark bands */
	--ink: #252323;
	--on-band: #F5F1ED;
	--on-band-2: #D8D0BA;
	--on-band-accent: #E5D4C0;
	--band: #252323;
	--btn-bg: #4C6852;
	--btn-hover: #3B5541;
	--link-hover: #2F4434;
	--input-line: #C9BFA9;
	color-scheme: light;

	--serif: 'Newsreader', Georgia, serif;
	--sans: 'Hanken Grotesk', system-ui, sans-serif;
	--gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--linen);
	color: var(--charcoal);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--sage-deep); }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
em.accent, .accent { font-style: italic; color: var(--sage-deep); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.serif { font-family: var(--serif); }
.muted { color: var(--text-3); }
.body2 { color: var(--text-2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.t-display { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 5.6vw, 80px); line-height: 1.02; letter-spacing: -0.01em; }
.t-title   { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 4.8vw, 68px); line-height: 1.06; letter-spacing: -0.01em; }
.t-h2      { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4vw, 56px); line-height: 1.08; }
.t-h2m     { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.12; }
.t-h2s     { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.12; }
.t-svc     { font-size: clamp(44px, 5.4vw, 76px); }
.t-lede    { font-size: 20px; line-height: 1.55; color: var(--text-2); }
.t-kicker  { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--sage-deep); }
.t-label   { font-size: 15px; font-weight: 600; color: var(--text-3); }
.num       { font-family: var(--serif); font-style: italic; color: var(--sage-deep); }

/* ---------- buttons & links ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 26px; border-radius: 6px; border: none;
	background: var(--btn-bg); color: #FFFFFF;
	font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--btn-hover); color: #FFFFFF; }
.btn-line { background: transparent; color: var(--charcoal); border: 1.5px solid var(--charcoal); }
.btn-line:hover { background: var(--charcoal); color: var(--linen); }
.btn-light { background: var(--on-band); color: var(--ink); }
.btn-light:hover { background: var(--on-band-accent); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.more { color: var(--sage-deep); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.row-link, .card-link { color: var(--charcoal); text-decoration: none; }
.row-link:hover h3, .card-link:hover h3, .card-link:hover .post-card__title { color: var(--sage-deep); }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--charcoal); font-weight: 600; text-decoration: none; }
.back:hover { color: var(--sage-deep); }

.crumbs { font-size: 15px; color: var(--text-3); }
.crumbs a { color: var(--text-2); }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--stone); background: var(--linen); position: relative; z-index: 20; }
.site-header__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: last baseline; gap: 14px; text-decoration: none; color: var(--charcoal); }
.brand img { display: block; height: 44px; width: auto; }
.brand__tag { font-size: 13px; line-height: 1.3; color: var(--text-3); padding-left: 14px; border-left: 1px solid var(--stone); max-width: 118px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; font-size: 16px; }
.nav a { color: var(--charcoal); text-decoration: none; font-weight: 500; padding: 12px 2px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--sage); color: var(--charcoal); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1.5px solid var(--charcoal); border-radius: 6px; background: transparent; align-items: center; justify-content: center; cursor: pointer; padding: 0; color: var(--charcoal); }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.mnav { display: none; }

/* ---------- footer ---------- */
.foot { background: var(--band); color: var(--on-band-2); }
.foot a { color: var(--on-band-accent); text-decoration: none; }
.foot a:hover { color: #FFFFFF; text-decoration: underline; }
.foot__inner { padding-top: 72px; padding-bottom: 40px; }
.foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.foot__about { max-width: 340px; }
.foot__about img { display: block; height: 55px; width: auto; }
.foot__about p { margin-top: 12px; font-size: 15px; }
.foot__cols { display: flex; flex-wrap: wrap; gap: 40px 72px; font-size: 15px; }
.foot__col { display: flex; flex-direction: column; gap: 10px; }
.foot__col--addr { max-width: 240px; }
.foot__head { color: var(--on-band); font-weight: 600; }
.foot__bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: #B5AC9C; }

/* ---------- CTA band ---------- */
.cta-wrap { padding: 0 var(--gutter) 120px; }
.cta-band { max-width: 1200px; margin: 0 auto; background: var(--sage); border-radius: 8px; padding: 72px 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band__text { max-width: 640px; }
.cta-band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.08; color: #FFFFFF; }
.cta-band p { margin-top: 18px; font-size: 19px; color: #FFFFFF; }

/* ---------- common blocks ---------- */
.section { padding-top: 120px; padding-bottom: 120px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 64px; margin-bottom: 56px; }
.section-head p { max-width: 460px; color: var(--text-2); }
.band-sand { background: var(--sand); }
.band-dark { background: var(--band); color: var(--on-band); }
.rule-y { border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.photo { display: block; width: 100%; object-fit: cover; border-radius: 6px; background: var(--sand); }

/* ---------- home ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero__text { flex: 1 1 520px; min-width: 0; }
.hero__text .t-lede { margin-top: 28px; max-width: 580px; }
.hero__text .btn-row { margin-top: 40px; }
.hero__founder { margin-top: 44px; font-size: 15px; color: var(--text-3); max-width: 540px; }
.hero__founder strong { color: var(--charcoal); font-weight: 600; }
.collage { flex: 1 1 420px; min-width: 0; position: relative; height: 520px; }
.collage__card { position: absolute; border-radius: 6px; overflow: hidden; background: var(--white); box-shadow: 0 1px 0 var(--stone); margin: 0; }
.collage__card img { display: block; width: 100%; object-fit: cover; }
.collage__card figcaption { padding: 14px 16px; font-size: 14px; font-weight: 600; }
.collage__card--a { left: 0; top: 30px; width: 58%; }
.collage__card--a img { height: 310px; }
.collage__card--b { right: 0; top: 0; width: 46%; }
.collage__card--b img { height: 220px; }
.collage__card--c { right: 6%; bottom: 0; width: 50%; }
.collage__card--c img { height: 150px; }

.brands { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 56px; padding-top: 32px; padding-bottom: 32px; }
.brands > p { font-size: 15px; color: var(--text-3); flex: 0 0 auto; }
.brands__list { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 48px; font-family: var(--serif); font-size: 24px; color: var(--text-2); }

.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--charcoal); }
.svc-row { display: block; padding: 36px 32px 40px; border-bottom: 1px solid var(--stone); }
.svc-row:nth-child(3n+1) { padding-left: 0; }
.svc-row:nth-child(3n) { padding-right: 0; }
.svc-row:not(:nth-child(3n+1)) { border-left: 1px solid var(--stone); }
.svc-row .num { font-size: 22px; }
.svc-row h3 { margin: 18px 0 10px; font-size: 23px; line-height: 1.25; font-weight: 700; }
.svc-row p { color: var(--text-2); }
.svc-row { display: flex; flex-direction: column; }
.svc-row__text { display: flex !important; flex-direction: column; flex: 1; }
.know-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; color: var(--sage-deep); font-weight: 600; font-size: 16px; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.know-more svg { transition: transform .2s ease; }
.row-link:hover .know-more svg, .card-link:hover .know-more svg { transform: translateX(4px); }
.others__grid a { display: flex !important; flex-direction: column; }
.others__grid .know-more { padding-top: 14px; font-size: 15px; }

.why { display: flex; flex-wrap: wrap; gap: 56px 96px; align-items: flex-start; padding-top: 104px; padding-bottom: 104px; }
.why__intro { flex: 1 1 320px; min-width: 0; max-width: 400px; }
.why__intro > p { margin-top: 24px; color: var(--on-band-2); font-size: 18px; }
.stats { display: flex; gap: 40px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line-dark); }
.stats__big { font-family: var(--serif); font-size: 60px; line-height: 1; color: var(--on-band-accent); }
.stats p { margin-top: 10px; font-size: 15px; color: var(--on-band-2); }
.why__intro .btn { margin-top: 48px; }
.why__list { flex: 2 1 520px; min-width: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line-dark); }
.why__list li { display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 30px 0; border-top: 1px solid var(--line-dark); }
.why__list h3 { flex: 0 0 230px; font-family: var(--serif); font-weight: 500; font-size: 25px; line-height: 1.25; color: var(--on-band); }
.why__list p { flex: 1 1 280px; color: var(--on-band-2); font-size: 16px; line-height: 1.65; }

.founder { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.founder--top { align-items: flex-start; }
.founder__photo { flex: 1 1 380px; min-width: 0; }
.founder__photo img { height: auto; aspect-ratio: auto; } /* show the whole portrait, never crop */
.founder__text { flex: 1 1 520px; min-width: 0; }
.founder__role { margin-top: 8px; font-size: 18px; color: var(--sage-deep); font-weight: 600; }
.founder__text > p.big { margin-top: 20px; font-size: 19px; line-height: 1.6; color: var(--text-2); }
.founder__text > p.big:first-of-type { margin-top: 28px; }
.founder__text .more { display: inline-block; margin-top: 32px; }

.regions { display: flex; flex-wrap: wrap; gap: 48px 80px; padding-top: 104px; padding-bottom: 104px; }
.regions__intro { flex: 1 1 300px; min-width: 0; }
.regions__intro p { margin-top: 24px; color: var(--text-2); max-width: 360px; }
.regions__grid { flex: 2 1 600px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 32px; }
.regions__grid > div { border-top: 2px solid var(--charcoal); padding-top: 18px; }
.regions__grid h3 { margin-bottom: 12px; font-size: 18px; font-weight: 700; }
.regions__grid p { color: var(--text-2); line-height: 1.9; }

/* ---------- blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 56px 36px; }
.post-grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.post-grid--5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px 24px; }
.post-card { display: block; }
.post-card__img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; background: var(--stone); }
.post-grid--5 .post-card__img { aspect-ratio: 4 / 3; }
.post-card__body { display: block; min-width: 0; }
.post-card__date { display: block; margin-top: 18px; font-size: 14px; color: var(--text-3); }
.post-card__title { display: block; margin-top: 8px; font-size: 21px; line-height: 1.3; font-weight: 700; }
.post-card__excerpt { display: block; margin-top: 10px; color: var(--text-2); font-size: 16px; }
.post-grid--3 .post-card__title { font-size: 22px; }
.post-grid--5 .post-card__date { margin-top: 14px; font-size: 13px; }
.post-grid--5 .post-card__title { margin-top: 6px; font-size: 17px; line-height: 1.35; }

.featured { display: flex; flex-wrap: wrap; background: var(--white); border: 1px solid var(--stone); border-radius: 8px; overflow: hidden; }
.featured__img { flex: 1 1 440px; min-height: 360px; object-fit: cover; width: 100%; background: var(--stone); display: block; }
.featured__body { flex: 1 1 400px; padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.featured__body .date { font-size: 15px; color: var(--text-3); }
.featured__body h2 { margin-top: 14px; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3vw, 42px); line-height: 1.15; }
.featured__body p.ex { margin-top: 18px; color: var(--text-2); font-size: 18px; }
.featured__body .read { margin-top: 24px; color: var(--sage-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.card-link:hover .featured__body h2 { color: var(--sage-deep); }

/* ---------- about ---------- */
.vm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.vm { border-radius: 8px; padding: 48px 44px; }
.vm h2 { font-size: 18px; font-weight: 600; }
.vm p { margin-top: 20px; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.3; }
.vm--dark { background: var(--band); color: var(--on-band); }
.vm--dark h2 { color: var(--on-band-accent); }
.vm--sand { background: var(--sand); }
.vm--sand h2 { color: var(--sage-deep); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px 32px; }
.values .num { font-size: 22px; }
.values h3 { margin: 12px 0 8px; font-size: 21px; font-weight: 700; }
.values p { color: var(--text-2); font-size: 16px; }
.numlist { flex: 2 1 560px; min-width: 0; padding: 0; list-style: none; border-top: 1px solid var(--charcoal); }
.numlist li { display: flex; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line-sand); font-size: 19px; }
.numlist .num { font-size: 20px; width: 32px; flex: none; }
.facts-dl { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 40px; }
.facts-dl > div { border-top: 1px solid var(--charcoal); padding-top: 16px; }
.facts-dl dt { font-weight: 700; margin: 0 0 8px; }
.facts-dl dd { color: var(--text-2); }

/* ---------- service ---------- */
.page-hero { padding-top: 40px; padding-bottom: 88px; }
.svc-hero__row { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; margin-top: 48px; }
.svc-hero__text { flex: 2 1 560px; min-width: 0; }
.svc-hero__text .tagline { margin-top: 28px; font-size: 21px; line-height: 1.5; max-width: 620px; color: var(--text-2); }
.svc-hero__btn { margin-top: 36px; }
/* service menu: vertical list in the hero on desktop, pill row above the title below 1024px */
.svc-nav { flex: 1 1 280px; min-width: 0; max-width: 340px; }
.svc-nav__title { margin: 0 0 12px; padding-left: 16px; font-size: 15px; font-weight: 600; color: var(--text-3); }
.svc-nav__list { display: flex; flex-direction: column; gap: 2px; }
.svc-nav__list a { display: flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: 6px; color: var(--charcoal); text-decoration: none; font-weight: 500; }
.svc-nav__list a:hover { background: color-mix(in srgb, var(--linen) 60%, transparent); color: var(--charcoal); }
.svc-nav__list a.on { background: var(--charcoal); color: var(--linen); }
.svc-nav .lbl-short { display: none; }
.svc-layout { padding-top: 96px; padding-bottom: 40px; }
.svc-main { min-width: 0; }
.svc-about { display: flex; flex-wrap: wrap; gap: 24px 72px; align-items: flex-start; }
.svc-about > h2 { flex: 1 1 280px; }
.svc-about__body { flex: 2 1 560px; min-width: 0; max-width: 760px; }
.svc-about__body p { font-size: 19px; line-height: 1.65; color: var(--text-2); }
.svc-about__body p + p { margin-top: 18px; }
.svc-main > h2.spaced { margin: 88px 0 32px; }
.deliv { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.deliv__card { background: var(--white); border: 1px solid var(--stone); border-radius: 8px; padding: 32px; }
.deliv__card svg { flex: none; color: var(--sage-deep); }
.deliv__card h3 { margin: 20px 0 8px; font-size: 21px; font-weight: 700; }
.deliv__card p { color: var(--text-2); }
.case-card { display: flex; flex-wrap: wrap; background: var(--band); color: var(--on-band); border-radius: 8px; overflow: hidden; }
.case-card + .case-card { margin-top: 20px; }
.case-card__media { flex: 1 1 260px; min-height: 280px; position: relative; background: var(--sage); }
.case-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.case-card__body { flex: 2 1 340px; padding: 44px 44px 48px; }
.case-card h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; color: var(--on-band); }
.case-card p { margin-top: 18px; color: var(--on-band-2); }
.case-card .read { display: inline-block; margin-top: 24px; color: var(--on-band-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.case-card:hover h3 { color: var(--on-band-accent); }
.others { padding-top: 80px; padding-bottom: 112px; }
.others h2 { margin-bottom: 32px; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3vw, 40px); line-height: 1.12; }
.others__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px 20px; }
.others__grid a { display: block; border-top: 2px solid var(--charcoal); padding-top: 20px; }
.others__grid h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.others__grid p { color: var(--text-2); font-size: 16px; }

/* ---------- case study ---------- */
.case-hero { padding-top: 40px; padding-bottom: 72px; }
.case-hero .t-kicker { margin: 56px 0 16px; }
.case-hero h1 { max-width: 980px; }
.case-hero__back { display: none; }
.case-strip { display: block; width: 100%; height: 180px; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px 40px; padding-top: 56px; padding-bottom: 56px; }
.facts > div { border-top: 1px solid var(--sage); padding-top: 20px; }
.facts__big { font-family: var(--serif); font-size: 48px; line-height: 1; color: var(--on-band-accent); }
.facts p { margin-top: 12px; color: var(--on-band-2); font-size: 16px; }
.doc-layout { display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: flex-start; padding-top: 88px; padding-bottom: 40px; }
.doc-side { flex: 1 1 240px; min-width: 0; max-width: 280px; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
.doc-side h2 { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--text-3); }
.toc { display: flex; flex-direction: column; }
.toc a { display: flex; align-items: center; min-height: 40px; padding: 4px 14px; border-left: 2px solid var(--stone); color: var(--text-2); text-decoration: none; font-size: 15px; line-height: 1.35; }
.toc a:hover, .toc a.active { border-left-color: var(--sage-deep); color: var(--charcoal); }
.toc a.sub { padding-left: 28px; font-size: 14px; color: var(--text-3); }
.doc-side .back { margin-top: 28px; }
.doc { flex: 999 1 600px; min-width: 0; max-width: 760px; }
.doc > .back { margin-top: 24px; }

/* case body (CMS HTML) */
.case-body h1 { display: none; }
.case-body h2 { font-family: var(--serif); font-weight: 500; font-size: 36px; line-height: 1.12; margin: 72px 0 0; scroll-margin-top: 24px; }
.case-body > h2:first-child, .case-body > :first-child { margin-top: 0; }
.case-body p, .case-body li { font-size: 18px; line-height: 1.7; color: var(--text-2); }
.case-body p { margin: 20px 0 0; }
.case-body h3, .case-body h4 { margin: 36px 0 0; font-size: 22px; font-weight: 700; line-height: 1.3; scroll-margin-top: 24px; }
.case-body h3 + p, .case-body h4 + p { margin-top: 10px; }
.case-body ul, .case-body ol { margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--stone); }
.case-body ul li, .case-body ol li { padding: 12px 0; border-bottom: 1px solid var(--stone); font-size: 17px; }
.case-body li strong, .case-body p strong { color: var(--charcoal); }
.case-body blockquote { margin: 24px 0 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--sage-deep); font-family: var(--serif); font-size: 24px; line-height: 1.4; color: var(--charcoal); }
/* numbered steps: built by site.js from "1. Title" headings */
.steps { list-style: none; margin: 32px 0 0 !important; padding: 0 !important; border: 0 !important; }
.steps > li { display: flex; gap: 24px; padding: 0 !important; border: 0 !important; }
.step__rail { flex: none; display: flex; flex-direction: column; align-items: center; }
.step__n { width: 48px; height: 48px; border-radius: 50%; background: var(--btn-bg); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; }
.step__line { display: block; flex: 1; width: 2px; background: var(--stone); margin: 8px 0; }
.steps > li:last-child .step__line { display: none; }
.step__body { padding-bottom: 40px; min-width: 0; flex: 1; }
.step__body > h3, .step__body > h4 { margin: 8px 0 10px !important; }
.step__body > p { margin: 0 0 12px; }
.conclusion { margin-top: 72px; background: var(--sand); border-radius: 8px; padding: 44px 44px 48px; }
.conclusion h2 { margin-top: 0 !important; }
.conclusion h2 + p { font-family: var(--serif); font-size: 23px; line-height: 1.5; color: var(--charcoal); }

/* ---------- article ---------- */
.art-head { padding-top: 40px; padding-bottom: 48px; }
.art-head .back { font-size: 15px; }
.art-head h1 { margin-top: 40px; max-width: 920px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; font-size: 15px; color: var(--text-3); }
.byline__who { display: flex; align-items: center; gap: 10px; }
.byline__who strong { color: var(--charcoal); font-weight: 600; }
.avatar { flex: none; border-radius: 50%; object-fit: cover; background: var(--sand); display: block; }
.art-cover { display: block; width: 100%; height: 440px; object-fit: cover; border-radius: 8px; background: var(--stone); }
.art-layout { display: flex; flex-wrap: wrap; gap: 56px 80px; align-items: flex-start; padding-top: 72px; padding-bottom: 40px; }
.prose { flex: 999 1 600px; min-width: 0; max-width: 720px; font-size: 19px; line-height: 1.75; color: var(--text-2); }
.prose p { margin: 0 0 22px; }
.prose > p:first-child { font-family: var(--serif); font-size: 25px; line-height: 1.5; color: var(--charcoal); margin-bottom: 36px; }
.prose h1, .prose h2 { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.15; color: var(--charcoal); margin: 56px 0 18px; }
.prose h3, .prose h4 { font-size: 21px; font-weight: 700; line-height: 1.3; color: var(--charcoal); margin: 36px 0 10px; }
.prose h3:empty, .prose h3:has(> br:only-child) { display: none; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--charcoal); }
.prose img { height: auto; border-radius: 6px; }
.prose blockquote { margin: 0 0 22px; padding: 4px 0 4px 24px; border-left: 3px solid var(--sage-deep); font-family: var(--serif); font-size: 24px; line-height: 1.4; color: var(--charcoal); }
.art-cta { margin-top: 48px; background: var(--band); color: var(--on-band); border-radius: 8px; padding: 40px 40px 44px; }
.art-cta h2 { margin: 0 0 14px; font-family: var(--serif); font-weight: 500; color: var(--on-band); font-size: 30px; line-height: 1.15; }
.art-cta p { margin: 0; color: var(--on-band-2); font-size: 17px; line-height: 1.7; }
.art-cta .btn { margin-top: 24px; }
.art-side { flex: 1 1 280px; min-width: 0; max-width: 320px; display: flex; flex-direction: column; gap: 36px; }
.art-side h2 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--text-3); }
.author-card { background: var(--white); border: 1px solid var(--stone); border-radius: 8px; padding: 28px; }
.author-card h2 { margin-bottom: 16px; }
.author-card__row { display: flex; align-items: center; gap: 14px; }
.author-card__name { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.author-card__role { font-size: 14px; color: var(--text-3); }
.author-card a { display: inline-block; margin-top: 16px; padding: 6px 0; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-sand); color: var(--text-2); font-size: 14px; font-weight: 500; }
.shares { display: flex; gap: 10px; }
.share { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-sand); color: var(--charcoal); background: transparent; cursor: pointer; padding: 0; }
.share:hover { border-color: var(--sage-deep); color: var(--sage-deep); }
.share-note { font-size: 13px; color: var(--sage-deep); min-height: 1.2em; margin-top: 6px; }
.similar { border-top: 1px solid var(--stone); }
.similar__inner { padding-top: 80px; padding-bottom: 112px; }
.similar__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 36px; }
.similar__head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.12; }
.similar__head a { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }

/* ---------- contact ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 64px 96px; align-items: flex-start; padding-top: 88px; padding-bottom: 120px; }
.contact__info { flex: 1 1 360px; min-width: 0; }
.contact__info h1 { font-size: clamp(44px, 5.2vw, 72px); line-height: 1.04; }
.contact__info .t-lede { margin-top: 28px; max-width: 440px; }
.contact__items { margin-top: 56px; display: flex; flex-direction: column; gap: 32px; }
.contact__items > div { border-top: 1px solid var(--charcoal); padding-top: 18px; }
.contact__items h2 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.contact__email { font-family: var(--serif); font-size: 28px; color: var(--charcoal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; word-break: break-word; }
.contact__items address { font-style: normal; color: var(--text-2); }
.map { margin-top: 40px; display: block; width: 100%; height: 240px; border: 0; border-radius: 8px; background: var(--stone); }
.contact__form { flex: 1.3 1 480px; min-width: 0; background: var(--white); border: 1px solid var(--stone); border-radius: 10px; padding: 48px; }
.contact__form h2 { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.15; }
.contact__form > p { margin-top: 10px; color: var(--text-3); }
.calendly-inline-widget { margin-top: 20px; min-width: 280px; height: 680px; }

/* ---------- 404 ---------- */
.notfound { padding-top: 120px; padding-bottom: 140px; }
.notfound p { margin-top: 24px; }
.notfound .btn-row { margin-top: 36px; }

/* ---------- cookie notice ---------- */
#cookie-notice { position: fixed; z-index: 50; left: 20px; bottom: 20px; max-width: 380px; background: var(--band); color: var(--on-band); border-radius: 8px; padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
#cookie-notice h4 { font-family: var(--serif); font-weight: 500; font-size: 22px; }
#cookie-notice p { margin-top: 8px; font-size: 15px; color: var(--on-band-2); }
#cookie-notice .btn { margin-top: 16px; min-height: 44px; }

/* ---------- legacy pages (tariff tool) ---------- */
.legacy-hero { padding-top: 64px; padding-bottom: 40px; }
.legacy-hero p { margin-top: 16px; max-width: 760px; color: var(--text-2); }

/* =================================================================
   Mobile (< 760px)
   ================================================================= */
@media (max-width: 759px) {
	:root { --gutter: 20px; }
	body { font-size: 16px; }

	.btn { min-height: 52px; padding: 0 24px; }
	.btn-row { flex-direction: column; gap: 12px; }
	.btn-row .btn { width: 100%; }

	.t-display { font-size: 42px; line-height: 1.05; }
	.t-title { font-size: 34px; line-height: 1.1; }
	.t-svc { font-size: 40px; line-height: 1.06; }
	.t-h2, .t-h2m { font-size: 34px; line-height: 1.1; }
	.t-h2s { font-size: 30px; }
	.t-lede { font-size: 18px; }
	.t-kicker { font-size: 19px; }
	.section { padding-top: 64px; padding-bottom: 64px; }
	.section-head { margin-bottom: 28px; gap: 14px; }
	.section-head--inline { flex-wrap: nowrap; align-items: baseline; margin-bottom: 24px; }

	/* header */
	/* smart-hide header: sticky, slides away on scroll down, returns on scroll up (site.js) */
	.site-header { position: sticky; top: 0; transition: transform .25s ease, box-shadow .25s ease; will-change: transform; }
	.site-header.is-hidden { transform: translateY(-100%); }
	.site-header.is-stuck { box-shadow: 0 6px 18px rgba(37, 35, 35, .08); }
	.case-body h2, .case-body h3, .case-body h4 { scroll-margin-top: 80px; }
	.site-header__bar { flex-wrap: nowrap; padding-top: 12px; padding-bottom: 12px; }
	.brand { gap: 10px; }
	.brand img { height: 34px; }
	.brand__tag { font-size: 11.5px; padding-left: 10px; max-width: 104px; }
	.site-header .nav, .site-header__cta { display: none; }
	.menu-btn { display: flex; }
	.mnav { padding: 4px 20px 24px; border-top: 1px solid var(--stone); flex-direction: column; }
	.mnav.open { display: flex; }
	.mnav a.item { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--stone); color: var(--charcoal); text-decoration: none; font-family: var(--serif); font-size: 24px; }
	.mnav .btn { margin-top: 20px; }

	/* footer */
	.foot__inner { padding-top: 48px; padding-bottom: 32px; }
	.foot__about img { height: 44px; }
	.foot__about p { font-size: 14px; margin-top: 10px; }
	.foot__top { gap: 36px; }
	.foot__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
	.foot__col--addr { grid-column: 1 / -1; max-width: none; }
	.foot__bottom { margin-top: 36px; padding-top: 20px; flex-direction: column; gap: 6px; font-size: 13px; }

	/* CTA */
	.cta-wrap { padding: 0 20px 64px; }
	.cta-band { padding: 40px 24px; gap: 24px; }
	.cta-band h2 { font-size: 32px; line-height: 1.1; }
	.cta-band p { font-size: 16px; margin-top: 14px; }
	.cta-band .btn { width: 100%; }

	/* home */
	.hero { padding-top: 44px; padding-bottom: 48px; gap: 0; }
	.hero__text .t-lede { margin-top: 20px; }
	.hero__text .btn-row { margin-top: 28px; }
	.hero__founder { margin-top: 28px; font-size: 14px; order: 3; }
	.collage { position: static; height: auto; display: flex; gap: 10px; margin-top: 36px; flex: 1 1 100%; }
	.collage__card { position: static; flex: 1; width: auto !important; }
	.collage__card img { height: 120px !important; }
	.collage__card figcaption { padding: 8px 10px; font-size: 12px; }
	.brands { display: block; padding-top: 24px; padding-bottom: 28px; }
	.brands > p { font-size: 14px; margin-bottom: 14px; }
	.brands__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; font-size: 20px; }

	.svc-grid { display: block; }
	.svc-row { flex-direction: row; gap: 16px; padding: 22px 0 !important; border-left: 0 !important; }
	.know-more { padding-top: 10px; font-size: 15px; }
	.svc-row .num { font-size: 18px; width: 26px; flex: none; }
	.svc-row h3 { margin: 0; font-size: 19px; line-height: 1.3; }
	.svc-row p { margin-top: 6px; font-size: 15px; }

	.why { display: block; padding-top: 64px; padding-bottom: 64px; }
	.why__intro { max-width: none; }
	.why__intro > p { margin-top: 16px; font-size: 16px; }
	.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; padding-top: 24px; }
	.stats__big { font-size: 48px; }
	.stats p { font-size: 14px; margin-top: 8px; }
	.why__intro .btn { display: none; }
	.why__list { margin-top: 36px; }
	.why__list li { display: block; padding: 22px 0; }
	.why__list h3 { font-size: 22px; margin-bottom: 6px; }
	.why__list p { font-size: 15px; }
	.why__cta-m { display: flex !important; margin-top: 32px; width: 100%; }

	.founder { display: block; }
	.founder__text { margin-top: 28px; }
	.founder__role { font-size: 16px; margin-top: 6px; }
	.founder__text > p.big { font-size: 17px; margin-top: 16px; }
	.founder__text > p.big:first-of-type { margin-top: 20px; }
	.founder__text .more { margin-top: 24px; padding: 10px 0; }

	.regions { display: block; padding-top: 64px; padding-bottom: 64px; }
	.regions__intro p { margin-top: 14px; }
	.regions__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; margin-top: 32px; }
	.regions__grid > div { padding-top: 14px; }
	.regions__grid h3 { font-size: 16px; margin-bottom: 8px; }
	.regions__grid p { font-size: 15px; line-height: 1.8; }

	/* blog cards become rows */
	.post-grid, .post-grid--3, .post-grid--5 { display: block; border-top: 1px solid var(--stone); }
	.post-card { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--stone); }
	.post-card__img { flex: none; width: 88px !important; height: 88px; aspect-ratio: auto !important; }
	.post-grid--5 .post-card__img { width: 76px !important; height: 76px; }
	.post-card__date, .post-grid--5 .post-card__date { margin-top: 0; font-size: 13px; }
	.post-card__title, .post-grid--3 .post-card__title, .post-grid--5 .post-card__title { margin-top: 4px; font-size: 16px; line-height: 1.3; }
	.post-grid--3 .post-card__title { font-size: 17px; }
	.post-card__excerpt { display: none; }
	.featured { display: block; }
	.featured__img { min-height: 0; height: 200px; }
	.featured__body { padding: 22px 20px 26px; }
	.featured__body .date { font-size: 13px; }
	.featured__body h2 { margin-top: 8px; font-size: 26px; line-height: 1.18; }
	.featured__body p.ex { margin-top: 12px; font-size: 15px; }
	.featured__body .read { margin-top: 14px; }

	/* about */
	.vm-grid { grid-template-columns: 1fr; gap: 16px; }
	.vm { padding: 32px 24px; }
	.vm h2 { font-size: 16px; }
	.vm p { margin-top: 14px; font-size: 24px; }
	.values { grid-template-columns: 1fr; gap: 28px; }
	.numlist { margin-top: 32px; }
	.numlist li { gap: 16px; padding: 18px 0; font-size: 17px; }
	.facts-dl { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }

	/* service */
	.page-hero { padding-top: 24px; padding-bottom: 44px; }
	.crumbs { font-size: 14px; }
	.crumbs .crumbs__deep { display: none; }
	.svc-hero__row { margin-top: 20px; }
	.svc-hero__text .tagline { margin-top: 18px; font-size: 18px; }
	.svc-hero__btn { width: 100%; margin-top: 28px; }
	.svc-layout { padding-top: 48px; padding-bottom: 0; }
	.svc-about { display: block; }
	.svc-about__body { margin-top: 18px; }
	.svc-about__body p { font-size: 17px; }
	.svc-about__body p + p { margin-top: 14px; }
	.svc-main > h2.spaced { margin: 48px 0 20px; }
	.deliv { grid-template-columns: 1fr; gap: 12px; }
	.deliv__card { padding: 24px; display: flex; gap: 16px; }
	.deliv__card svg { width: 28px; height: 28px; }
	.deliv__card h3 { margin: 0 0 6px; font-size: 18px; }
	.deliv__card p { font-size: 15px; }
	.case-card { display: block; }
	.case-card__media { min-height: 180px; }
	.case-card__body { padding: 24px 22px 28px; }
	.case-card h3 { font-size: 24px; }
	.case-card p { font-size: 15px; margin-top: 12px; }
	.others { padding-top: 56px; padding-bottom: 64px; }
	.others h2 { font-size: 28px; margin-bottom: 20px; }
	.others__grid { grid-template-columns: 1fr; gap: 20px; }
	.others__grid a { padding-top: 14px; }
	.others__grid h3 { font-size: 17px; }
	.others__grid p { font-size: 15px; }

	/* case study */
	.case-hero { padding-top: 24px; padding-bottom: 36px; }
	.case-hero .crumbs { display: none; }
	.case-hero__back { display: inline-flex; font-size: 14px; }
	.case-hero .t-kicker { margin: 20px 0 10px; font-size: 18px; }
	.case-hero .t-kicker .svc-name { display: none; }
	.case-strip { height: 120px; }
	.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; padding-top: 32px; padding-bottom: 32px; }
	.facts > div { padding-top: 14px; }
	.facts__big { font-size: 28px; line-height: 1.05; }
	.facts p { font-size: 13px; line-height: 1.45; margin-top: 8px; }
	.doc-layout { display: block; padding-top: 28px; }
	.doc-side { position: static; max-width: none; max-height: none; overflow: visible; }
	.doc-side h2 { font-size: 14px; margin-bottom: 6px; }
	.doc-side .back { display: none; }
	.toc a { min-height: 44px; border-left: 0; border-bottom: 1px solid var(--stone); padding: 6px 0; color: var(--charcoal); }
	.toc a.sub { display: none; }
	.doc { margin-top: 40px; }
	.case-body h2 { font-size: 28px; margin-top: 52px; }
	.case-body p, .case-body li { font-size: 16px; }
	.case-body h3, .case-body h4 { font-size: 19px; }
	.case-body blockquote { font-size: 20px; padding-left: 18px; }
	.steps > li { gap: 16px; }
	.step__n { width: 38px; height: 38px; font-size: 18px; }
	.step__body { padding-bottom: 28px; }
	.conclusion { padding: 28px 22px 32px; margin-top: 52px; }
	.conclusion h2 + p { font-size: 20px; }

	/* article */
	.art-head { padding-top: 24px; padding-bottom: 28px; }
	.art-head h1 { margin-top: 24px; }
	.byline { margin-top: 20px; font-size: 14px; }
	.art-cover-wrap { padding: 0 !important; }
	.art-cover { height: 220px; border-radius: 0; }
	.art-layout { display: block; padding-top: 36px; }
	.prose { font-size: 17px; line-height: 1.7; }
	.prose > p:first-child { font-size: 21px; margin-bottom: 28px; }
	.prose h1, .prose h2 { font-size: 28px; margin: 44px 0 14px; }
	.prose h3, .prose h4 { font-size: 19px; margin: 28px 0 8px; }
	.prose p { margin-bottom: 18px; }
	.art-cta { padding: 28px 22px 32px; margin-top: 36px; }
	.art-cta h2 { font-size: 24px; }
	.art-cta p { font-size: 15px; }
	.art-cta .btn { width: 100%; }
	.art-side { max-width: none; margin-top: 48px; gap: 28px; }
	.similar__inner { padding-top: 48px; padding-bottom: 64px; }
	.similar__head { margin-bottom: 20px; flex-wrap: nowrap; }
	.similar__head h2 { font-size: 28px; }

	/* contact */
	.contact { display: block; padding-top: 44px; padding-bottom: 64px; }
	.contact__info h1 { font-size: 42px; line-height: 1.05; }
	.contact__info .t-lede { margin-top: 18px; }
	.contact__items { margin-top: 36px; gap: 24px; }
	.contact__email { font-size: 24px; }
	.map { margin-top: 28px; height: 180px; }
	.contact__form { margin-top: 40px; padding: 28px 20px; }
	.contact__form h2 { font-size: 28px; }
	.calendly-inline-widget { height: 720px; }

	.notfound { padding-top: 64px; padding-bottom: 80px; }
	#cookie-notice { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

@media (min-width: 760px) and (max-width: 1023px) {
	.svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.svc-row { padding: 36px 32px 40px !important; border-left: 0 !important; }
	.svc-row:nth-child(odd) { padding-left: 0 !important; }
	.svc-row:nth-child(even) { padding-right: 0 !important; border-left: 1px solid var(--stone) !important; }
}

.why__cta-m { display: none !important; }
@media (max-width: 759px) { .why__cta-m { display: flex !important; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .site-header { transition: none; } }

/* ---------- page bits added with the views ---------- */
.about-intro { display: flex; flex-wrap: wrap; gap: 24px 64px; margin-top: 40px; }
.about-intro .t-lede { flex: 1 1 420px; }
.about-intro .muted { flex: 1 1 360px; }
.blog-head { padding-top: 88px; padding-bottom: 48px; }
.blog-head .section-head p { color: var(--text-2); }
.hero__founder--m { display: none; }
.svc-row__text { display: block; }

@media (max-width: 759px) {
	.hero__founder--d { display: none; }
	.hero__founder--m { display: block; flex: 1 1 100%; }
	.about-intro { margin-top: 24px; gap: 16px; }
	.blog-head { padding-top: 44px; padding-bottom: 28px; }
	.blog-head .section-head p { font-size: 17px !important; }
	.blog-head + .wrap, .blog-head ~ .wrap { padding-bottom: 8px; }
}

/* ---------- digital business card ---------- */
.card-page { background: var(--sand); min-height: 100vh; }
.card-top { max-width: 1120px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 22px; }
.card-top .brand img { height: 41px; }
.vcard { max-width: 1120px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 16px; padding-bottom: 96px; }
.vcard__id { flex: 1 1 340px; min-width: 0; max-width: 400px; background: var(--white); border-radius: 10px; overflow: hidden; }
.vcard__banner { display: block; width: 100%; height: 120px; object-fit: cover; }
.vcard__inner { padding: 0 32px 32px; }
.vcard__avatar { display: block; width: 128px; height: 128px; margin-top: -64px; border-radius: 50%; border: 5px solid var(--white); background: var(--sand); object-fit: cover; position: relative; }
.vcard__id h1 { margin-top: 20px; font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1.05; }
.vcard__role { margin-top: 12px; font-weight: 600; color: var(--sage-deep); line-height: 1.45; }
.vcard__ex { margin-top: 6px; font-size: 15px; color: var(--text-3); }
.vcard__btn { display: flex; width: 100%; min-height: 52px; margin-top: 12px; }
.vcard__btn:first-of-type { margin-top: 28px; }
.vcard__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; border: 1px solid var(--stone); border-radius: 6px; color: var(--charcoal); text-decoration: none; font-size: 14px; font-weight: 600; background: var(--linen); }
.tile svg { color: var(--sage-deep); }
.tile:hover { border-color: var(--sage-deep); color: var(--charcoal); background: var(--white); }
.vcard__links { margin-top: 20px; border-top: 1px solid var(--stone); }
.lnk { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-bottom: 1px solid var(--stone); color: var(--charcoal); text-decoration: none; font-weight: 600; }
.lnk:hover { color: var(--sage-deep); }
.vcard__about { flex: 999 1 520px; min-width: 0; background: var(--linen); border-radius: 10px; padding: 48px 52px; }
.vcard__about h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.1; }
.vcard__about h2.spaced { margin: 56px 0 20px; }
.vcard__bio { margin-top: 18px; font-size: 19px; line-height: 1.65; color: var(--text-2); }
.assoc { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 40px; border-top: 1px solid var(--charcoal); }
.assoc li { padding: 16px 0; border-bottom: 1px solid var(--stone); display: flex; align-items: center; gap: 14px; }
.assoc__logo { flex: none; width: 52px; height: 52px; border-radius: 10px; object-fit: contain; background: var(--white); }
.assoc__text { min-width: 0; }
.assoc__name { display: block; font-weight: 700; }
.assoc__role { display: block; font-size: 15px; color: var(--text-3); }
.vcard__pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; margin-top: 56px; }
.vcard__pair h2 { margin-bottom: 16px; }
.vcard__edu { border-top: 1px solid var(--charcoal); padding-top: 16px; display: flex; align-items: center; gap: 14px; }
.vcard__dl { border-top: 1px solid var(--charcoal); }
.vcard__dl > div { padding: 14px 0; border-bottom: 1px solid var(--stone); }
.vcard__dl dt { font-size: 14px; color: var(--text-3); }
.vcard__dl dd { margin: 2px 0 0; font-weight: 700; }
.vcard__dl a { color: var(--charcoal); text-decoration: none; }
.card-foot { text-align: center; padding: 0 32px 40px; font-size: 14px; color: var(--text-3); }

@media (max-width: 759px) {
	.card-top { padding-top: 14px; padding-bottom: 14px; }
	.card-top .brand img { height: 34px; }
	.vcard { display: block; padding-top: 4px; padding-bottom: 48px; }
	.vcard__id { max-width: none; }
	.vcard__banner { height: 150px; }
	.vcard__inner { padding: 0 20px 24px; }
	.vcard__id h1 { font-size: 34px; }
	.vcard__about { margin-top: 16px; padding: 28px 20px; }
	.vcard__about h2 { font-size: 26px; }
	.vcard__about h2.spaced { margin: 40px 0 16px; }
	.vcard__bio { font-size: 16px; }
	.vcard__pair { gap: 32px; margin-top: 40px; }
}

/* ---------- legacy pages (tariff tool, admin login) ---------- */
.legacy { padding-top: 32px; padding-bottom: 96px; }
.legacy button.primary, .legacy .primary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 6px; border: 0; background: var(--btn-bg); color: #FFFFFF; font: inherit; font-weight: 600; cursor: pointer; }
.legacy input, .legacy select, .legacy textarea { font: inherit; font-size: 16px; color: var(--charcoal); background: var(--white); border: 1.5px solid var(--input-line); border-radius: 6px; padding: 8px 10px; }
.legacy table input { width: 100%; min-width: 60px; padding: 4px 6px; font-size: 14px; }
.legacy h2, .legacy h3 { font-family: var(--serif); font-weight: 500; margin: 32px 0 12px; }
.login-box { max-width: 420px; margin: 0 auto; background: var(--white); border: 1px solid var(--stone); border-radius: 10px; padding: 40px; }
.login-box h2 { margin-top: 0; font-size: 34px; }
.login-box .field { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.login-box label { font-weight: 600; font-size: 15px; }
.login-box input { width: 100%; min-height: 48px; }
.login-box .primary { margin-top: 24px; width: 100%; justify-content: center; min-height: 48px; }

/* card page on tablets: stacked layout, profile card reorganised into two columns */
@media (min-width: 760px) and (max-width: 1023px) {
	.vcard, .card-top { max-width: 760px; }
	.vcard { display: block; }
	.vcard__id { max-width: none; }
	.vcard__banner { height: 110px; }
	.vcard__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; padding: 0 28px 24px; }
	.vcard__who { grid-column: 1; }
	.vcard__actions { grid-column: 2; padding-top: 20px; }
	.vcard__actions .vcard__btn:first-of-type { margin-top: 0; }
	.vcard__id h1 { font-size: 36px; }
	.vcard__links { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
	.vcard__about { margin-top: 20px; padding: 40px 36px; }
	.vcard__about h2 { font-size: 30px; }
	.vcard__bio { font-size: 18px; }
}


/* =================================================================
   Dark theme: follows the OS unless the visitor picked one (data-theme on <html>, set by site.js)
   ================================================================= */
.logo-dark { display: none !important; }
.theme-btn { width: 44px; height: 44px; border: 1.5px solid var(--stone); border-radius: 6px; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; color: var(--charcoal); flex: none; }
.theme-btn:hover { border-color: var(--charcoal); }
.theme-btn .i-sun { display: none; }
.hdr-tools { display: flex; align-items: center; gap: 12px; }

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
	--linen: #171615;
		--sand: #25211D;
		--stone: #3A3530;
		--line-sand: #4A443D;
		--sage: #4F6A56;
		--sage-deep: #9CBBA3;
		--white: #211F1D;
		--charcoal: #EEE8E1;
		--text-2: #CFC7BC;
		--text-3: #A69D92;
		--band: #0E0D0C;
		--line-dark: #34302C;
		--btn-bg: #557359;
		--btn-hover: #62816A;
		--link-hover: #C2D8C6;
		--input-line: #4A443D;
		color-scheme: dark;
	}
	:root:not([data-theme="light"]) .logo-light { display: none !important; }
	:root:not([data-theme="light"]) .logo-dark { display: block !important; }
	:root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
	:root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
:root[data-theme="dark"] {
	--linen: #171615;
	--sand: #25211D;
	--stone: #3A3530;
	--line-sand: #4A443D;
	--sage: #4F6A56;
	--sage-deep: #9CBBA3;
	--white: #211F1D;
	--charcoal: #EEE8E1;
	--text-2: #CFC7BC;
	--text-3: #A69D92;
	--band: #0E0D0C;
	--line-dark: #34302C;
	--btn-bg: #557359;
	--btn-hover: #62816A;
	--link-hover: #C2D8C6;
	--input-line: #4A443D;
	color-scheme: dark;
}
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }


/* service menu below 1024px: horizontally scrolling pills above the title */
@media (max-width: 1023px) {
	.svc-hero__row { flex-direction: column; flex-wrap: nowrap; gap: 28px; }
	.svc-hero__text { flex: none; width: 100%; }
	.svc-nav { order: -1; flex: none; max-width: none; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); }
	.svc-nav__title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; margin: 0; }
	.svc-nav__list { flex-direction: row; gap: 8px; overflow-x: auto; padding: 2px var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.svc-nav__list::-webkit-scrollbar { display: none; }
	.svc-nav__list a { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-sand); font-weight: 600; font-size: 14px; white-space: nowrap; }
	.svc-nav__list a.on { border-color: var(--charcoal); }
	.svc-nav .lbl-long { display: none; }
	.svc-nav .lbl-short { display: inline; }
}

/* tablet header: keep logo, nav and actions on one line */
@media (min-width: 760px) and (max-width: 1023px) {
	.site-header__bar { flex-wrap: nowrap; gap: 16px 24px; }
	.brand__tag { display: none; }
	.nav { gap: 8px 20px; flex-wrap: nowrap; }
	.hdr-tools { gap: 10px; }
	.site-header__cta { padding: 0 18px; white-space: nowrap; }
}
