/* ==========================================================================
   TWIIN – main stylesheet
   Values are taken from the Figma page designs (Twiin Site pages – inner level).
   Contents:
   1. Tokens          6. Hero               11. Product tabs
   2. Base            7. Section helpers    12. Cards / listings
   3. Layout          8. Home sections      13. Company pages
   4. Buttons/pills   9. Testimonials       14. Articles / prose
   5. Header/footer  10. Features/bento     15. Responsive + motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--black: #121110;
	--ink: #000;
	--ink-2: #1a1712;
	--body: #55534c;
	--muted: #9c998f;
	--quote: #cfcdc6;
	--white: #fff;

	--gold: #b3a284;        /* brand gold */
	--gold-ink: #a8997f;    /* eyebrows, numbers, band */
	--gold-label: #b2a385;  /* values label tabs */
	--sand: #ded6c6;        /* logo strip, testimonials cards bg */
	--light: #f4f3f0;       /* light sections */
	--stone: #e9e8e4;       /* listing card body */
	--card: #eff0f2;        /* feature + highlight cards */

	--data: #f04c46;
	--workspace: #520e35;

	--accent: var(--gold);
	--accent-soft: rgba(179, 162, 132, .2);

	--f-display: 'Universal Doomsday', 'Baloo 2', ui-rounded, system-ui, sans-serif;
	--f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--r-pill: 999px;
	--r-xl: 48px;   /* feature cards, video */
	--r-lg: 30px;   /* stat + case study cards */
	--r-md: 18px;   /* product image, roles */
	--r-sm: 8px;

	--wrap: 1280px;
	--gutter: 44px;
	--header-h: 120px;
	--section-y: clamp(72px, 8vw, 150px);

	--ease: cubic-bezier(.2, .7, .2, 1);

	/* Type sizes. Universal Doomsday reads small, so paragraph copy set in it never goes below --fs-body-display. */
	--fs-xs: 13px;                        /* fine print: form consent text */
	--fs-meta: 14px;                      /* roles, small supporting labels */
	--fs-small: 15px;                     /* stat labels, bios, testimonial names */
	--fs-body: 16px;                      /* minimum Inter paragraph size */
	--fs-body-display: 18px;              /* minimum Universal Doomsday paragraph size */
	--fs-lead: 20px;                      /* product tab copy, quotes, benefit titles */
	--fs-quote-lg: clamp(20px, 1.7vw, 24px); /* single featured testimonial */
	--fs-h2: clamp(30px, 3.2vw, 43px);   /* section headings */
	--fs-h3: clamp(26px, 2vw, 32px);      /* small section headings */
}
.accent-data      { --accent: var(--data);      --accent-soft: rgba(240, 76, 70, .15); }
.accent-workspace { --accent: var(--workspace); --accent-soft: rgba(82, 14, 53, .12); }

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 16px;
	line-height: 1.5;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
figure { margin: 0; }
blockquote { margin: 0; }

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

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 18px;
	background: var(--black); color: var(--white); border-radius: var(--r-pill);
	transform: translateY(-200%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

.scroll-progress { position: fixed; inset: 0 0 auto; height: 4px; z-index: 200; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }

/* 3. Layout ---------------------------------------------------------------- */
.wrap, .wrap-wide { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(860px + 2 * var(--gutter)); }
.wrap--wide { max-width: var(--wrap); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: 48px; }
.section--white { background: var(--white); }
.section--light { background: var(--light); }
.section--sand  { background: var(--sand); }
.section--stone { background: var(--stone); }
.section--gold  { background: var(--gold-ink); }
.section--black { background: var(--black); color: var(--white); }
.section--accent { background: var(--accent); color: var(--white); }

.section-head { display: grid; gap: 20px; margin-bottom: clamp(36px, 4vw, 60px); max-width: 760px; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head-row .section-head { margin-bottom: clamp(28px, 3vw, 44px); }
.section-title { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.01em; }
.section--black .section-title { color: var(--white); }
.section-intro { color: var(--body); font-size: var(--fs-body); line-height: 1.5; max-width: 660px; }
.section--black .section-intro { color: var(--quote); }

.eyebrow {
	font-family: var(--f-display); font-weight: 700; color: var(--gold-ink);
	text-transform: uppercase; letter-spacing: .05em; font-size: 14px; line-height: 1.6;
}
.eyebrow--lg { font-size: clamp(18px, 1.6vw, 26px); line-height: 1.25; }
.eyebrow--sm { font-size: 12.2px; font-family: var(--f-body); letter-spacing: .1em; }
.section--light .eyebrow--sm, .section--white .eyebrow--sm { color: var(--body); }
.section--accent .eyebrow, .cta-banner .eyebrow { color: var(--white); }

.hl { color: var(--gold-ink); }
.text-link { font-family: var(--f-display); font-size: 18px; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.notice-empty { padding: 16px 20px; border: 2px dashed var(--gold); border-radius: var(--r-sm); color: var(--body); }

/* Dotted texture from the designs (Background pattern) */
.has-dots { position: relative; isolation: isolate; }
.has-dots::before {
	content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 50%; height: min(421px, 80%);
	transform: translateY(-50%);
	background-image: radial-gradient(circle, rgba(18, 17, 16, .85) 1.6px, transparent 2.2px);
	background-size: 34px 34px; background-position: 17px 17px;
}

/* Caption pill used on photos */
.caption-pill {
	position: absolute; left: 14px; bottom: 14px; padding: 4px 12px; border-radius: var(--r-pill);
	background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12px; line-height: 1.4;
}

/* 4. Buttons + pills ------------------------------------------------------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 10px 24px; border: 2px solid transparent; border-radius: var(--r-pill);
	font-family: var(--f-display); font-size: 18px; line-height: 1.2; text-decoration: none; white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--solid         { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--solid:hover   { background: #2b2925; }
.btn--outline       { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--light         { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--outline-light { border-color: var(--white); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--ink); }
.btn--light-accent  { background: var(--white); border-color: var(--white); color: var(--accent); font-family: var(--f-body); font-weight: 600; font-size: 15px; }
.btn--accent        { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn--small         { min-height: 30px; padding: 4px 14px; font-size: 13px; background: var(--ink); color: var(--white); }
.section--accent .btn--outline-light, .cta-banner .btn--outline-light { font-family: var(--f-body); font-weight: 600; font-size: 15px; }

.pill-tab {
	display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 20.8px;
	border: 2px solid rgba(0, 0, 0, .1); border-radius: var(--r-pill); background: transparent;
	font-family: var(--f-display); font-size: 14px; color: var(--ink); text-decoration: none; white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s;
}
.pill-tab:hover { border-color: var(--ink); }
.pill-tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pill-tab--sm { height: 34px; padding: 0 16px; font-size: 13px; font-weight: 700; border-width: 1.5px; }

.chip-arrow {
	display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 15px;
	background: var(--gold); color: var(--white); flex: none;
}
.chip-arrow svg { width: 16px; height: 16px; }

.dots { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.dot {
	width: 16px; height: 16px; padding: 0; border: 0; border-radius: 50%;
	background: var(--gold); opacity: .4; transition: opacity .2s, transform .2s;
}
.dot.is-active, .dot[aria-current="true"] { opacity: 1; }
.dots:empty { display: none; }

.arrow-btn {
	width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--light);
	display: grid; place-items: center; font-size: 16px; transition: background-color .2s;
}
.arrow-btn:hover { background: var(--sand); }
.arrow-btn[disabled] { opacity: .35; cursor: default; }
.carousel__arrows { display: flex; gap: 8px; margin-bottom: clamp(28px, 3vw, 44px); }

/* Search pill */
.search-pill { display: flex; align-items: center; gap: 8px; }
.search-pill input {
	width: 100%; min-width: 220px; height: 44px; padding: 0 18px; border: 1.5px solid rgba(0, 0, 0, .15);
	border-radius: var(--r-pill); font: inherit; font-size: 15px; background: var(--white);
}
.search-pill button { height: 44px; padding: 0 20px; border: 0; border-radius: var(--r-pill); background: var(--ink); color: var(--white); font-family: var(--f-display); }
.search-pill--sm input { height: 34px; min-width: 200px; font-size: 12px; padding: 0 14px; }

/* 5. Header ---------------------------------------------------------------- */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 100; padding-top: 20px; color: var(--white);
	transition: padding .3s, color .3s;
}
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.site-header__logo { display: block; color: currentColor; flex: none; }
.site-header__logo .logo { width: 117px; height: auto; }

.nav { margin-inline: auto; }
.nav__list {
	display: flex; align-items: center; gap: 5.6px; list-style: none;
	height: 80px; padding: 0 11px; background: var(--white); border-radius: var(--r-pill); color: var(--ink);
}
.nav__item { position: relative; }
.nav__link {
	display: inline-flex; align-items: center; gap: 4px; padding: 8px 14.4px; border: 0; background: none;
	border-radius: var(--r-pill); font-family: var(--f-display); font-size: 18px; line-height: 24px;
	text-decoration: none; color: var(--ink); white-space: nowrap; transition: background-color .2s;
}
.nav__link:hover, .nav__item.is-current > .nav__link { background: var(--light); }
.nav__caret { font-size: 12px; font-weight: 700; transition: transform .2s; }
.nav__toggle[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }
.nav__sub {
	position: absolute; top: calc(100% + 18px); left: 0; min-width: 220px; padding: 10px; list-style: none;
	background: var(--white); border-radius: 24px; box-shadow: 0 18px 40px rgba(18, 17, 16, .14);
	opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.nav__item.is-open > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sublink { display: block; padding: 10px 14px; border-radius: 14px; font-family: var(--f-display); font-size: 17px; text-decoration: none; color: var(--ink); }
.nav__sublink:hover, .nav__sublink[aria-current="page"] { background: var(--light); }
.nav__mobile-utils, .nav__empty { display: none; }
.nav__empty a { color: var(--ink); font-size: 14px; padding: 0 20px; }

.site-header__utils { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-switch { display: flex; align-items: center; gap: 4px; list-style: none; font-family: var(--f-display); font-weight: 700; font-size: 14px; padding: 0 11px; }
.lang-switch a { text-decoration: none; opacity: .75; }
.lang-switch a:hover, .lang-switch a[aria-current] { opacity: 1; }

.burger { display: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--white); color: var(--ink); }
.burger__bars, .burger__bars::before, .burger__bars::after {
	display: block; width: 20px; height: 2px; margin: auto; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s, opacity .2s;
}
.burger__bars::before, .burger__bars::after { content: ""; position: absolute; left: 0; }
.burger__bars::before { top: -6px; }
.burger__bars::after { top: 6px; }
.burger[aria-expanded="true"] .burger__bars { background: transparent; }
.burger[aria-expanded="true"] .burger__bars::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Header on pages without an image hero, and once the page has scrolled */
.no-hero .site-header, .site-header.is-scrolled { color: var(--ink); }
/* The frosted background sits on a pseudo-element: backdrop-filter on the header itself would make it the
   containing block for the fixed mobile menu, shrinking the menu to the header's height once scrolled. */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
	background: rgba(244, 243, 240, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}
.site-header.is-scrolled { padding-top: 8px; padding-bottom: 8px; }
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled .nav__list { height: 64px; }
.no-hero .site-main { padding-top: var(--header-h); }

/* Footer */
.site-footer { border-top: 1px solid rgba(0, 0, 0, .1); background: var(--white); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-top: 24px; padding-bottom: 40px; }
.footer__logo { display: inline-block; color: var(--gold-label); margin-bottom: 14px; }
.footer__logo .logo { width: 117px; }
.footer__phones { list-style: none; font-family: var(--f-display); font-size: var(--fs-body-display); line-height: 24px; color: var(--body); }
.footer__phones a { text-decoration: none; }

.footer__social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid rgba(0, 0, 0, .1); border-radius: var(--r-pill); color: var(--body); transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease); }

.footer__social a:hover,
.footer__social a:focus-visible { color: var(--gold-ink); border-color: var(--gold-ink); background: var(--accent-soft); }

.footer__social svg { width: 16px; height: 16px; }
.footer__heading { font-size: 18px; line-height: 24px; text-transform: uppercase; letter-spacing: .07em; color: var(--gold-ink); margin: 10px 0 15px; }
.footer__menu { list-style: none; display: grid; gap: 10px; }
.footer__menu a { font-family: var(--f-display); font-size: 16px; line-height: 22px; text-decoration: none; }
.footer__menu a:hover { color: var(--gold-ink); }
.site-footer__bottom { border-top: 1px solid rgba(0, 0, 0, .1); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px; font-family: var(--f-display); font-size: 12px; color: var(--body); }
.footer__legal { display: flex; list-style: none; }
.footer__legal li + li::before { content: "·"; padding: 0 4px; color: var(--body); }
.footer__legal a { color: var(--ink); text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; }

/* 6. Hero ------------------------------------------------------------------ */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: var(--black); display: flex; }
.hero__media, .hero__pattern, .hero__cutout { position: absolute; inset: 0; z-index: -3; }
.hero__img, .hero__cutout img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; }
.hero__content { position: relative; display: grid; gap: 16px; align-content: end; }
.hero__eyebrow { font-family: var(--f-body); font-weight: 700; font-size: 12.2px; letter-spacing: .1em; text-transform: uppercase; }
.hero__title { font-weight: 700; letter-spacing: -.008em; line-height: 1.2; max-width: 860px; }
.hero__text { font-family: var(--f-display); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; max-width: 620px; }
.hero .btn-row { margin-top: 20px; }

/* Home: full height, headline bottom-left over a soft bottom fade */
.hero--home { min-height: max(640px, 100svh); align-items: flex-end; }
.hero--home .hero__media::after { background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .45) 70%); }
.hero--home .hero__content { padding-bottom: clamp(64px, 6vw, 120px); padding-top: calc(var(--header-h) + 40px); }
.hero--home .hero__title { font-size: clamp(44px, 4.2vw, 80px); max-width: 820px; }

/* Inner: 540px banner */
.hero--inner { min-height: 540px; align-items: flex-start; }
.hero--inner .hero__media::after { background: linear-gradient(to right, rgba(0, 0, 0, .45), rgba(0, 0, 0, .15) 70%); }
.hero--inner .hero__content { padding-top: calc(var(--header-h) + 8px); padding-bottom: 64px; gap: 14px; align-content: start; }
.hero--inner .hero__title { font-size: clamp(36px, 3.4vw, 56px); line-height: 1.15; }

/* Product: full height, accent dot-dash pattern, optional cut-out subject on top */
.hero--product { min-height: max(640px, 100svh); align-items: center; }
.hero--product .hero__media::after { background: rgba(0, 0, 0, .18); }
.hero__pattern { z-index: -2; color: var(--accent); opacity: .92; }
.hero__pattern svg { width: 100%; height: 100%; }
.hero__cutout { z-index: -1; pointer-events: none; }
.hero--product .hero__content { padding-top: calc(var(--header-h) + 80px); padding-bottom: 80px; max-width: var(--wrap); }
.hero--product .hero__eyebrow { font-family: var(--f-display); font-size: clamp(18px, 1.4vw, 26px); letter-spacing: .05em; }
.hero--product .hero__title { font-size: clamp(56px, 5vw, 96px); font-weight: 400; line-height: 1; }

.hero[data-plain] { min-height: 420px; }

/* 7. Home sections ---------------------------------------------------------- */
/* Who we are */
.statement__inner { text-align: center; display: grid; gap: 30px; justify-items: center; }
.statement__text { font-family: var(--f-display); font-size: clamp(26px, 2.6vw, 48px); line-height: 1.17; max-width: 1196px; }
.statement__inner .eyebrow--lg { font-size: clamp(18px, 1.5vw, 26px); }

/* Client logos by sector */
.logos { padding-block: 65px 72px; }
.logos__heading { text-align: center; text-transform: uppercase; font-size: clamp(18px, 1.5vw, 28px); line-height: 1.15; letter-spacing: .045em; margin-bottom: clamp(40px, 4vw, 60px); }
.logos__stage { position: relative; min-height: 96px; }
.logos__row { display: flex; justify-content: center; }
.logos__track { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: 32px 56px; }
.logos__row[hidden] { display: none; }
.logos__item { flex: 0 1 auto; display: grid; place-items: center; height: 96px; }
.logos__item img { max-height: 93px; max-width: 170px; width: auto; object-fit: contain; filter: brightness(0); }
.logos .pill-tabs { display: flex; justify-content: center; margin-top: 28px; }
.logos .pill-tab:not(.is-active) { border-color: rgba(0, 0, 0, .1); }
.logos__item.is-entering { animation: logo-in .5s var(--ease) both; }
.logos__item.is-leaving { animation: logo-out .28s ease-in both; }
@keyframes logo-in { from { opacity: 0; transform: scale(.82) translateY(6px); } }
@keyframes logo-out { to { opacity: 0; transform: scale(.86); } }

/* Two products, one platform */
.platform__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 496px); gap: 48px; align-items: center; }
.platform__copy { max-width: 620px; padding-top: 40px; }
.platform__slides { display: grid; margin-top: 20px; }
.platform__slide { grid-area: 1 / 1; display: grid; gap: 10.6px; justify-items: start; grid-template-rows: auto 1fr auto; align-self: stretch; }
.platform__name { font-size: var(--fs-h3); line-height: 1.08; letter-spacing: -.01em; }
.platform__text { color: var(--quote); font-family: var(--f-display); font-size: var(--fs-body-display); line-height: 1.4; padding-bottom: 14px; max-width: 560px; }
.platform__media { display: grid; aspect-ratio: 496 / 638; }
.platform__image { grid-area: 1 / 1; position: relative; }
.platform__frame { height: 100%; border-radius: 248px; overflow: hidden; }
.platform__badge { position: absolute; left: 0; bottom: 4%; width: 32%; height: auto; z-index: 1; }
.platform__frame img { width: 100%; height: 100%; object-fit: cover; }
.platform__btn:hover, .platform__btn:focus-visible { background: transparent; border-color: var(--white); color: var(--white); }
.platform .dots { justify-content: flex-start; margin-top: 24px; }
.platform .dot { background: var(--white); }
.platform .dot.is-active { background: var(--gold); }
.fade-slide { opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.fade-slide.is-active { opacity: 1; visibility: visible; }

/* Gold statement band */
.band__inner { text-align: center; display: grid; gap: 22px; justify-items: center; }
.band__heading { font-weight: 400; font-size: clamp(28px, 2.6vw, 48px); line-height: 1.375; max-width: 1060px; }
.band__text { font-family: var(--f-display); font-size: clamp(18px, 1.4vw, 24px); line-height: 1.33; max-width: 842px; color: var(--ink-2); }
.section--black .band__text { color: var(--quote); }

/* Video */
.video-section .section-head { max-width: none; gap: 24px; margin-bottom: 48px; }
.video-section .eyebrow--sm { text-transform: none; font-size: 14px; letter-spacing: .09em; color: var(--gold-ink); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; background: var(--black); }
.video::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .16); pointer-events: none; }
.video__poster, .video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video__play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; border: 0; background: none; }
.video__play svg { width: 136px; height: 136px; transition: transform .25s var(--ease); }
.video__play:hover svg { transform: scale(1.06); }
.video.is-playing::after, .video.is-playing .video__play, .video.is-playing .video__poster { display: none; }

/* 10. Features + bento ---------------------------------------------------------- */
.features .section-head { max-width: 760px; gap: 24px; margin-bottom: 90px; }
.features .section-title { font-size: clamp(32px, 2.6vw, 48px); line-height: 1.375; color: var(--black); }
.features__grid { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
/* Dotted band runs full-bleed behind the cards */
.features.has-dots::before { display: none; }
.features.has-dots .features__grid::before {
	content: ""; position: absolute; z-index: -1; top: 50%; height: 421px; left: calc(50% - 50vw); width: 100vw; transform: translateY(-50%);
	background-image: radial-gradient(circle, rgba(18, 17, 16, .85) 1.6px, transparent 2.2px); background-size: 34px 34px;
}
.features { overflow-x: clip; }
.feature {
	position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
	min-height: 540px; padding: 40px 28px 28px; border-radius: var(--r-xl); background: var(--card);
}
.feature__top { display: grid; gap: 24px; }
.feature__num { font-family: var(--f-display); font-weight: 700; font-size: clamp(96px, 7vw, 140px); line-height: 1; letter-spacing: -.03em; color: var(--gold-ink); }
.feature__title { font-family: var(--f-body); font-weight: 400; font-size: 26px; line-height: 32px; letter-spacing: -.008em; }
.feature__text { font-family: var(--f-display); font-size: var(--fs-body-display); line-height: 24px; color: var(--body); }
.home .features--row .feature__title { font-family: var(--f-display); }
/* Home 01/02/03 boxes: share rows across cards so titles and body text line up */
.home .features--row .features__grid { grid-auto-rows: auto auto 1fr auto; }
.home .features--row .feature { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
.home .features--row .feature__top { display: contents; }
@media (min-width: 1121px) { .home .features--row .features__grid { grid-auto-rows: auto auto minmax(calc(250px - clamp(96px, 7vw, 140px)), 1fr) auto; } }
@media (max-width: 640px) { .home .features--row .feature { row-gap: 24px; } .home .features--row .feature__icon { margin-top: 16px; } }
.feature__icon { display: block; width: 80px; height: 80px; }
.feature__icon svg, .feature__icon img { width: 80px; height: 80px; border-radius: 50%; }
.feature__icon svg g { fill: var(--gold); } /* dotted preset icons in brand gold */
.feature--image { padding: 0; min-height: 0; overflow: hidden; }
.feature--image img { width: 100%; height: 100%; object-fit: cover; }

/* Bento variant (careers) */
.features--bento .features__grid { grid-auto-rows: minmax(300px, auto); gap: 20px; }
.features--bento .feature { min-height: 300px; border-radius: var(--r-xl); }
.features--bento .feature__num { font-size: clamp(64px, 4.5vw, 84px); }
.features--bento .feature__title { font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.2; }
.features--bento .feature__text { font-family: var(--f-body); font-size: var(--fs-body); line-height: 1.45; }
.features--bento .feature__icon, .features--bento .feature__icon svg { width: 56px; height: 56px; }
.features--bento .span-2 { grid-column: span 2; }
.features--bento .span-2 .feature__top { grid-template-columns: auto 1fr; column-gap: 40px; align-items: start; }
.features--bento .span-2 .feature__num { grid-row: span 2; }

/* Stat bento */
.bento .section-head { gap: 24px; margin-bottom: 48px; }
.bento .eyebrow--sm { font-family: var(--f-display); font-size: 14px; letter-spacing: .09em; color: var(--gold-ink); }
.bento__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.span-third { grid-column: span 2; }
.span-half { grid-column: span 3; }
.span-twothird { grid-column: span 4; }
.stat {
	position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
	min-height: 358px; padding: 32px 28px; border-radius: var(--r-lg); color: var(--white);
}
.stat__body { display: grid; gap: 20px; }
.stat__number { font-family: var(--f-display); font-size: clamp(64px, 5.2vw, 100px); line-height: .88; letter-spacing: -.06em; white-space: nowrap; }
.stat__label { font-family: var(--f-display); font-size: clamp(18px, 1.3vw, 24px); line-height: 1.33; max-width: 320px; }
.stat--gold { background: var(--gold); }
.stat--accent { background: var(--accent); }
.stat--black { background: var(--black); }
.stat--image { background: var(--black); }
.stat--image .stat__img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.stat--image .stat__label { color: var(--white); }
.stat--image::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to top, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, 0) 75%); }
.stat--gold.stat--wide .stat__label, .stat--pill .stat__label { color: var(--white); }
/* Number on a white tab with a rounded right end, flush to the card's left edge */
.stat--pill .stat__number { display: inline-block; justify-self: start; margin-left: -28px; padding: 4px 28px 2px; background: var(--white); color: var(--ink-2); border-radius: 0 100px 100px 0; line-height: 1.1; }
.stat--pill .stat__label { padding-top: 0; }
/* Dotted strip from the designs */
.stat--pattern::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 109px; z-index: -1; mix-blend-mode: multiply;
	background-image: radial-gradient(circle, rgba(0, 0, 0, .35) 1.5px, transparent 2px); background-size: 14px 14px;
}
.span-half.stat--pattern::before, .span-twothird.stat--pattern::before { left: auto; width: 109px; height: auto; bottom: 0; }
.span-half.stat--pill .stat__label, .span-twothird.stat--pill .stat__label { color: var(--black); }
.stat--circle { background: none; color: var(--gold); justify-content: center; align-items: stretch; padding: 0; }
/* Gold outline card: same rounded-square shape as the other stat cards (was a circle) */
.stat--circle .stat__body {
	width: 100%; border: 2px solid var(--gold); border-radius: var(--r-lg);
	align-content: end; justify-items: start; text-align: left; gap: 20px; padding: 32px 28px;
}
.stat--circle .stat__label { max-width: 320px; }

/* 9. Testimonials ---------------------------------------------------------------- */
.testimonials { position: relative; }
.testimonials--columns > .section, .testimonials--single > .section { padding-bottom: calc(var(--section-y) + 40px); }
.testimonials .section-head { max-width: none; }
.testimonials--columns .section-title { font-size: clamp(32px, 2.6vw, 48px); line-height: 1.375; }
.quotes--columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.quote blockquote p { font-family: var(--f-display); font-size: var(--fs-lead); line-height: 26px; color: var(--quote); text-indent: -.45em; }
.quote figcaption { display: grid; padding-top: 16px; font-family: var(--f-display); font-size: var(--fs-small); line-height: 21px; }
.quote figcaption span { color: var(--muted); }
.quotes--single { max-width: 760px; margin-inline: auto; text-align: center; }
.quotes--fader { display: grid; }
.quotes--fader .fade-slide { transition-duration: 1s; }
.quotes__nav { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }
.quotes__arrow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; color: var(--white); display: grid; place-items: center; font-size: 14px; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.quotes__arrow:hover, .quotes__arrow:focus-visible { background: var(--white); border-color: var(--white); color: var(--ink); }
.quotes__slide { grid-area: 1 / 1; align-self: center; }
.quotes--single blockquote p { font-family: var(--f-body); font-style: italic; font-size: var(--fs-quote-lg); line-height: 1.55; text-indent: 0; }
.testimonials--single .section-head { text-align: center; margin-inline: auto; }

.dotdash-band { position: relative; line-height: 0; }
.dotdash-band svg { width: 100%; height: auto; }
.dotdash-band--bottom { background: linear-gradient(to bottom, var(--black) 50%, var(--white) 50%); }
.dotdash-band--top { background: linear-gradient(to bottom, var(--white) 50%, var(--black) 50%); }
.band-bottom > .section { padding-bottom: calc(var(--section-y) * .6); }
.band-top > .section { padding-top: calc(var(--section-y) * .6); }

.testimonials--cards .section-head { margin-bottom: 36px; }
.testimonials--cards .eyebrow--sm { text-transform: none; letter-spacing: 0; color: var(--body); }
.testimonials--cards .section-title { color: var(--black); }
.quote-card { background: var(--white); border-radius: var(--r-lg); padding: 36px; display: grid; gap: 22px; align-content: center; } /* quote + name sit in the middle of the card */
.quote-card blockquote p { font-size: var(--fs-lead); line-height: 1.55; color: var(--black); }
.quote-card figcaption { display: grid; font-size: 14px; line-height: 1.45; }
.quote-card figcaption span { color: var(--gold-ink); }
.quote-card figcaption strong { font-size: var(--fs-body); } /* person's name a touch larger */

/* Carousel (shared: testimonials cards, team, gallery) */
.carousel__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 2); gap: 32px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item { scroll-snap-align: start; }

/* 12. Cards + listings ------------------------------------------------------------ */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 32px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--stone); overflow: hidden; transition: transform .3s var(--ease); }
.card:hover { transform: translateY(-3px); }
.card__media { position: relative; aspect-ratio: 2.15 / 1; background: var(--sand); }
.card--cover .card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--white); }
.card--cover .card__img { position: absolute; inset: 0; object-fit: contain; padding: 20px 20px 0; }
.card__img { width: 100%; height: 100%; object-fit: cover; }
.card__img--empty { display: block; background: linear-gradient(135deg, var(--sand), var(--gold)); }
.card__tags { position: absolute; top: 14px; left: 14px; display: flex; flex-wrap: wrap; gap: 4px; list-style: none; }
.card__tags li { padding: 4px 12px; border-radius: var(--r-pill); background: var(--white); font-family: var(--f-display); font-weight: 700; font-size: 11px; line-height: 1.3; }
.card__label { position: absolute; left: 14px; bottom: 14px; padding: 4px 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .9); font-size: 11px; }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 28px; flex: 1; }
.card__meta { font-size: 11.5px; color: var(--body); }
.card__title { font-size: 20px; line-height: 1.2; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__summary { color: var(--body); font-size: var(--fs-body); line-height: 1.5; margin-bottom: 12px; }
.card__cta { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 700; font-size: 14px; }
.card__cta .chip-arrow { width: 26px; height: 26px; }
.card:hover .chip-arrow { background: var(--black); }

/* Homepage highlight cards: tall image, tags under it, body card overlapping */
.card--overlap { background: none; overflow: visible; }
.card--overlap .card__media { aspect-ratio: auto; height: 350px; margin-bottom: -86px; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; }
.card--overlap > .card__tags { position: relative; top: auto; left: auto; padding-left: 20px; margin-bottom: 16px; z-index: 1; gap: 0; }
.card--overlap > .card__tags li { padding: 7px 18px; font-weight: 400; font-size: 16px; line-height: 22px; border: 2px solid var(--white); }
.card--overlap .card__body { position: relative; background: var(--card); border-radius: var(--r-lg); padding: 40px 24px; gap: 10px; }
.card--overlap .card__meta { font-family: var(--f-display); font-weight: 700; font-size: 14px; color: var(--gold-ink); }
.card--overlap .card__title { font-weight: 400; font-size: 26px; line-height: 32px; max-width: 320px; }
.card--overlap .card__summary { font-family: var(--f-display); font-size: var(--fs-body-display); line-height: 24px; max-width: 280px; }
.card--overlap .card__cta { font-weight: 400; font-size: 16px; }
.card--overlap .card__cta .chip-arrow { width: 30px; height: 30px; }

.highlights .section-head { gap: 24px; }
.highlights .section-title { font-weight: 400; font-size: clamp(32px, 2.6vw, 48px); }
.highlights__more { text-align: center; margin-top: 60px; }

.listing__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: clamp(40px, 5vw, 80px); }
.filter-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination { margin-top: 48px; display: flex; justify-content: center; }
.pagination ul, .pagination .nav-links { display: flex; gap: 8px; list-style: none; }
.pagination .page-numbers {
	display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: var(--r-pill);
	background: var(--light); border: 1px solid rgba(0, 0, 0, .08); font-size: 13px; text-decoration: none;
}
.pagination .page-numbers.current { background: var(--gold); border-color: var(--gold); color: var(--white); }
/* WordPress also gives the <ul> the page-numbers class: keep it a plain row, not a pill */
.pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-width: 0; height: auto; padding: 0; margin: 0; background: none; border: 0; border-radius: 0; }
.empty-state { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 48px 0; }
.empty-state h2, .empty-state h3 { font-size: 26px; }
.empty-state p { color: var(--body); }

/* 11. Product tabs ------------------------------------------------------------------- */
.ptabs { background: var(--light); }
.ptabs__nav { display: flex; justify-content: center; padding: 0 var(--gutter); }
.ptabs__list {
	display: flex; gap: 25px; list-style: none; overflow-x: auto; scrollbar-width: none; padding: 4px;
	max-width: 100%; scroll-behavior: smooth;
}
.ptabs__list::-webkit-scrollbar { display: none; }
.ptab {
	display: inline-flex; align-items: center; height: 40px; padding: 0 22px; border-radius: var(--r-pill);
	background: var(--accent-soft); color: var(--accent); font-family: var(--f-body); font-weight: 700; font-size: 12px;
	text-decoration: none; white-space: nowrap; transition: background-color .25s, color .25s;
}
.ptab:hover { background: color-mix(in srgb, var(--accent) 25%, transparent); }
.ptab.is-active { background: var(--accent); color: var(--light); }

.ptabs__panel { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 64px; align-items: center; }
.ptabs__media { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 560 / 692; background: var(--sand); }
.ptabs__media img { width: 100%; height: 100%; object-fit: cover; }
.ptabs__copy { max-width: 656px; }
.ptabs__num { font-family: var(--f-display); font-weight: 700; font-size: 14px; letter-spacing: .05em; color: var(--accent); margin-bottom: 9px; }
.ptabs__copy .eyebrow--lg { margin-bottom: 13.6px; }
.ptabs__heading { font-weight: 400; font-size: clamp(32px, 2.6vw, 48px); line-height: 1.17; letter-spacing: -.009em; margin-bottom: 21.6px; }
.ptabs__content { color: var(--body); font-size: var(--fs-lead); line-height: 1.4; }
.ptabs__content > p:first-child { font-family: var(--f-display); line-height: 28px; }
.ptabs__copy .btn { margin-top: 28px; }

/* Stacked mode (and the no-JS / mobile fallback) */
.ptabs__sticky { padding-block: var(--section-y); }
.ptabs__sticky > .ptabs__nav { position: sticky; top: calc(var(--header-h) - 20px); z-index: 5; padding-block: 12px; margin-bottom: 44px; background: var(--light); }
.ptabs__stage { display: grid; gap: clamp(72px, 8vw, 120px); }
.ptabs__panel { scroll-margin-top: calc(var(--header-h) + 90px); }

/* Pinned mode: the panel stays on screen and the scroll position picks the tab */
.js .ptabs.is-pinned .ptabs__track { height: calc(var(--steps) * 100vh); }
.js .ptabs.is-pinned .ptabs__sticky {
	position: sticky; top: 0; height: 100vh; padding: calc(var(--header-h) + 12px) 0 40px;
	display: flex; flex-direction: column; overflow: hidden;
}
.js .ptabs.is-pinned .ptabs__sticky > .ptabs__nav { position: static; margin-bottom: clamp(24px, 3.5vh, 56px); padding-block: 0; }
.js .ptabs.is-pinned .ptabs__stage { position: relative; flex: 1; display: block; }
.js .ptabs.is-pinned .ptabs__panel {
	position: absolute; inset: 0; padding-inline: var(--gutter); opacity: 0; visibility: hidden;
	transform: translateY(24px); transition: opacity .5s var(--ease), transform .6s var(--ease), visibility .5s;
}
.js .ptabs.is-pinned .ptabs__panel.is-active { opacity: 1; visibility: visible; transform: none; }
.js .ptabs.is-pinned .ptabs__media { aspect-ratio: auto; height: min(692px, 100%); max-height: 100%; align-self: center; } /* centred like the text, so image and copy line up on tall screens */

/* 13. Company pages ------------------------------------------------------------------ */
/* Timeline: always one line. Each item draws its own segment of the line, so when there isn't room
   the line simply continues off-screen and visitors swipe/scroll along it (snapping to each date). */
.timeline__list {
	list-style: none; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	padding-top: 18px; overscroll-behavior-x: contain;
}
.timeline__list::-webkit-scrollbar { display: none; }
.timeline__item { position: relative; flex: 1 0 180px; display: grid; gap: 4px; align-content: start; padding-right: 24px; scroll-snap-align: start; }
.timeline__item::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 2px; background: var(--gold); }
.timeline__item:last-child::before { right: auto; width: 100%; }
.timeline__dot { position: absolute; top: -18px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.timeline__year { font-family: var(--f-display); font-size: 16px; }
.timeline__text { font-size: var(--fs-small); color: var(--body); line-height: 1.45; }
@media (max-width: 900px) {
	/* Show roughly two and a half dates so it's obvious the line continues; fade the right edge as a swipe hint. */
	.timeline__item { flex-basis: 42%; }
	.timeline__list { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); margin-right: calc(var(--gutter) * -1); }
	.timeline__list.is-end { -webkit-mask-image: none; mask-image: none; }
}

/* Team */
.team .carousel__track { grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px; }
.person { background: var(--light); border-radius: 24px; padding: 12px 12px 20px; display: flex; flex-direction: column; gap: 4px; }
.person__photo { border-radius: var(--r-md); overflow: hidden; background: var(--white); aspect-ratio: 1.45; margin-bottom: 10px; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
/* Webinar speaker headshots are portrait: show them in full rather than cropping to landscape */
#speakers .person__photo { aspect-ratio: 11 / 12; }
#speakers .person__photo img { object-fit: contain; object-position: center bottom; }
.person__name { font-size: 18px; padding-inline: 4px; }
.person__role { font-size: var(--fs-meta); color: var(--body); padding-inline: 4px; }
.person__bio { font-size: var(--fs-small); color: var(--body); line-height: 1.45; padding: 8px 4px 12px; }
.person .btn { align-self: flex-start; margin: auto 4px 0; }

/* Gallery */
.gallery .section-head-row { margin-bottom: 0; }
.gallery__band { padding-block: 12px; }
.gallery__band.has-dots::before { height: 100%; }
.gallery .carousel__track { grid-auto-columns: calc((100% - 2 * 20px) / 3); gap: 20px; }
.gallery__item { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: .92; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

/* Values: circular photo + gold label tab with one 50px corner */
.values__rows { display: grid; gap: 48px; }
.value { display: flex; align-items: center; justify-content: space-between; gap: 48px; min-height: 340px; }
.value__text { max-width: 384px; color: var(--body); font-size: 16px; line-height: 20px; }
.value__media { position: relative; width: min(480px, 46%); flex: none; }
.value__circle { aspect-ratio: 1; border-radius: 50%; overflow: hidden; transform: scale(1.04); }
.value__circle img { width: 100%; height: 100%; object-fit: cover; }
.value__label {
	position: absolute; top: 62%; left: -82px; width: 332px; min-height: 88px; padding: 12px 24px 12px 82px;
	display: flex; align-items: center; background: var(--gold-label); color: var(--black);
	font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1;
	border-radius: 5px 5px 50px 5px; box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}
.value--flip { flex-direction: row-reverse; }
.value--flip .value__label { left: auto; right: -84px; width: 335px; padding: 12px 24px; border-radius: 5px 5px 5px 50px; font-size: 20px; }

/* Vacancies */
.roles__list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.role { position: relative; background: var(--light); border-radius: var(--r-md); padding: 24px 28px; display: grid; gap: 6px; }
.role__title { font-size: 17px; }
.role__meta { color: var(--body); font-size: 13px; }
.role__link { margin-top: 14px; font-size: 14px; }
.role__link::after { content: ""; position: absolute; inset: 0; }
.roles__empty { color: var(--body); }

/* Benefits */
.benefits__list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.benefit { background: var(--white); border-radius: var(--r-md); padding: 24px; display: grid; gap: 6px; align-content: start; }
.benefit__title { font-size: var(--fs-lead); line-height: 1.25; margin-bottom: 2px; }
.benefit__text { color: var(--body); font-size: var(--fs-body); line-height: 1.5; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__heading { font-size: var(--fs-h3); line-height: 1.2; margin-bottom: 24px; }
/* HubSpot consent / privacy text: smaller and muted */
.twiin-form .legal-consent-container, .twiin-form .legal-consent-container p, .twiin-form .hs-richtext, .twiin-form .hs-richtext p { font-size: var(--fs-xs); line-height: 1.45; color: var(--body); }
.twiin-form .legal-consent-container { margin: 12px 0 24px; }
.twiin-form .legal-consent-container a { color: var(--body); text-decoration: underline; text-underline-offset: 2px; }
.twiin-form .legal-consent-container a:hover { color: var(--ink); }
.contact__offices { list-style: none; display: grid; gap: 16px; }
.office { background: var(--light); border-radius: 24px; padding: 32px; display: grid; gap: 6px; }
.office__name { font-size: 18px; }
.office .office__map { margin-top: 8px; }
.office .office__map a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.office .office__map a:hover { color: var(--gold-ink); }
.office__address, .office a { color: var(--body); font-size: var(--fs-body); line-height: 1.5; text-decoration: none; }

/* Form styling – applies to HubSpot, Gravity Forms, CF7 output inside .twiin-form */
.twiin-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.twiin-form select, .twiin-form textarea {
	width: 100%; min-height: 44px; padding: 10px 14px; margin-bottom: 10px;
	border: 1px solid transparent; border-radius: var(--r-sm); background: var(--light);
	font: inherit; font-size: 15px; color: var(--ink);
}
.twiin-form textarea { min-height: 140px; resize: vertical; }
.twiin-form input:focus, .twiin-form select:focus, .twiin-form textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
.twiin-form label { display: block; font-size: 13px; color: var(--body); margin-bottom: 4px; }
.twiin-form input[type="submit"], .twiin-form button[type="submit"], .twiin-form .hs-button {
	min-height: 48px; padding: 10px 28px; border: 0; border-radius: var(--r-pill); background: var(--ink); color: var(--white);
	font-family: var(--f-display); font-size: 16px; cursor: pointer;
}
.twiin-form .hs-form-field { margin-bottom: 4px; }
.twiin-form .hs-error-msgs { list-style: none; color: #b42318; font-size: 13px; }

/* Map */
.map__frame { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.map__frame iframe { width: 100%; height: clamp(320px, 32vw, 420px); border: 0; filter: grayscale(1); }
.map__frame img { width: 100%; height: clamp(320px, 32vw, 420px); object-fit: cover; }

/* Case study pieces */
.columns__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px 64px; }
.columns__heading { font-size: clamp(30px, 2.6vw, 43px); margin-bottom: 18px; }
/* Headings share a row across columns, so body text lines up even when one heading wraps */
.columns__col:has(> .columns__heading) { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.media-block__figure { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.media-block__figure img { width: 100%; max-height: 640px; object-fit: cover; }
.stats-row__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; text-align: center; margin: 0; }
.stats-row__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; } /* numbers line up along the top, labels start on the same line */
.stats-row__number { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(40px, 3.4vw, 56px); line-height: 1; color: var(--gold-ink); }
.stats-row__label { font-size: var(--fs-small); color: var(--body); }
.text-image__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.text-image--left .text-image__media { order: -1; }
.text-image .section-head { margin-bottom: 20px; }
.text-image .section-title { font-size: var(--fs-h3); }
.text-image__media { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.text-image__media img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.text-image .btn { margin-top: 24px; }

.simple-cta__inner { display: grid; gap: 24px; }
.simple-cta--center .simple-cta__inner { justify-items: center; text-align: center; }
.simple-cta--center .simple-cta__heading { font-size: clamp(28px, 2.4vw, 40px); }
.simple-cta--split .simple-cta__inner { grid-template-columns: 1fr auto; align-items: center; }
.simple-cta--split .simple-cta__heading { font-size: 20px; }
.simple-cta__text { color: var(--body); font-size: var(--fs-body); line-height: 1.5; margin-top: 4px; }

.cta-banner__inner { text-align: center; display: grid; gap: 18px; justify-items: center; }
.cta-banner__heading { font-size: clamp(30px, 2.6vw, 43px); }
.cta-banner__text { max-width: 640px; opacity: .9; }
.cta-banner .btn-row { justify-content: center; margin-top: 10px; }
.section--light.cta-banner .eyebrow, .section--white.cta-banner .eyebrow, .section--sand.cta-banner .eyebrow { color: var(--gold-ink); }

.next-link a { display: flex; justify-content: center; align-items: center; gap: 12px; font-family: var(--f-display); font-size: 18px; text-decoration: none; }
.next-link a:hover { color: var(--gold-ink); }

/* 14. Articles + prose ---------------------------------------------------------------- */
.prose { color: var(--body); font-size: 16px; line-height: 1.6; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin-top: 2em; }
.prose h2 { font-size: clamp(22px, 1.8vw, 28px); }
.prose h3 { font-size: 20px; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .35em; }
.prose ul li::marker { color: var(--gold); }
.prose blockquote { border-left: 3px solid var(--gold); padding-left: 20px; color: var(--ink); font-family: var(--f-display); font-size: 20px; line-height: 1.4; }
.prose img, .prose figure { border-radius: var(--r-md); }
.prose figcaption { font-size: 13px; margin-top: 8px; }
.article__action { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.5em; }
.article__cover { margin: 2.5em 0 0; max-width: 560px; }
.article__cover img { display: block; width: 100%; height: auto; border-radius: 0; }
.rich-text .prose { font-size: var(--fs-body); line-height: 1.5; }

/* 15. Responsive ----------------------------------------------------------------------- */
@media (max-width: 1280px) {
	.nav__link { font-size: 16px; padding-inline: 11px; }
	.lang-switch { padding: 0 4px; }
}
@media (max-width: 1120px) {
	:root { --header-h: 92px; --gutter: 28px; }
	.site-header { padding-top: 12px; }
	.site-header__inner { min-height: 64px; }
	.burger { display: grid; }
	.site-header__utils { margin-left: auto; }
	.site-header__cta { display: none; }
	.nav {
		position: fixed; inset: 0; z-index: -1; margin: 0; padding: calc(var(--header-h) + 16px) var(--gutter) 40px;
		background: var(--light); color: var(--ink); overflow-y: auto;
		opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
	}
	.nav.is-open { opacity: 1; visibility: visible; }
	.nav-open .site-header { color: var(--ink); }
	.nav-open { overflow: hidden; }
	.nav__list { flex-direction: column; align-items: stretch; height: auto; padding: 0; background: none; border-radius: 0; gap: 4px; }
	.nav__link { width: 100%; justify-content: space-between; font-size: 26px; padding: 12px 0; border-radius: 0; border-bottom: 1px solid rgba(0, 0, 0, .08); }
	.nav__link:hover, .nav__item.is-current > .nav__link { background: none; color: var(--gold-ink); }
	.nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none; padding: 6px 0 10px 12px; display: none; }
	.nav__item.is-open > .nav__sub { display: block; }
	.nav__sublink { font-size: 19px; padding: 8px 0; }
	.nav__mobile-utils { display: block; margin-top: 32px; }
	.site-header.is-scrolled .nav__list { height: auto; }

	.platform__grid { grid-template-columns: 1fr minmax(0, 380px); }
	.features__grid { gap: 20px; }
	.feature { min-height: 460px; }
	.value__label { left: -40px; width: 280px; padding-left: 52px; }
	.value--flip .value__label { right: -40px; width: 280px; }
	.ptabs__panel { gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}
@media (max-width: 900px) {
	.logos__row:not(.logos__row--marquee) { overflow-x: auto; justify-content: flex-start; scroll-snap-type: x mandatory; padding-bottom: 8px; }
	.logos__row:not(.logos__row--marquee) .logos__track { justify-content: flex-start; }
	.logos__item { flex: 0 0 auto; scroll-snap-align: start; }
	.logos__item img { max-width: 130px; max-height: 70px; }
	.platform__grid { grid-template-columns: 1fr; }
	.platform__media { max-width: 420px; }
	.features__grid, .card-grid, .benefits__list, .quotes--columns { grid-template-columns: 1fr 1fr; }
	.features--bento .span-2 { grid-column: span 2; }
	.bento__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.span-third, .span-half, .span-twothird { grid-column: span 1; }
	.span-twothird, .bento__grid > :last-child:nth-child(odd) { grid-column: span 2; }
	.ptabs__panel { grid-template-columns: 1fr; }
	.ptabs__media { aspect-ratio: 4 / 3; }
	.ptabs__nav { justify-content: flex-start; padding: 0; }
	.ptabs__list { gap: 8px; padding-inline: var(--gutter); }
	.team .carousel__track { grid-auto-columns: calc((100% - 24px) / 2); }
	.gallery .carousel__track { grid-auto-columns: 72%; }
	.carousel__track { grid-auto-columns: 86%; }
	.value, .value--flip { flex-direction: column-reverse; align-items: flex-start; min-height: 0; }
	.value__media { width: min(420px, 82%); margin-inline: auto; }
	.value__text { max-width: none; }
	.contact__grid, .text-image__grid, .simple-cta--split .simple-cta__inner { grid-template-columns: 1fr; gap: 40px; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.footer__brand { grid-column: span 2; }
}
@media (max-width: 640px) {
	:root { --gutter: 20px; }
	.lang-switch { display: none; }
	.features__grid, .card-grid, .benefits__list, .quotes--columns, .roles__list { grid-template-columns: 1fr; }
	.features--bento .span-2 { grid-column: span 1; }
	.features--bento .span-2 .feature__top { grid-template-columns: 1fr; }
	.feature { min-height: 0; gap: 40px; }
	.bento__grid { grid-template-columns: 1fr; }
	.span-twothird, .bento__grid > :last-child:nth-child(odd) { grid-column: span 1; }
	.stat { min-height: 280px; }
	.team .carousel__track { grid-auto-columns: 82%; }
	.section-head-row { flex-direction: column; align-items: flex-start; gap: 0; }
	.carousel__arrows { display: none; }
	.listing__bar { flex-direction: column; align-items: stretch; }
	.search-pill--sm input { min-width: 0; }
	.value__label { left: -12px; width: auto; min-width: 220px; padding-left: 24px; font-size: 18px; }
	.value--flip .value__label { right: -12px; }
	.card--overlap .card__media { height: 280px; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.footer__brand { grid-column: auto; }
	.hero--inner { min-height: 460px; }
	.hero__pattern { opacity: .55; }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.carousel__track, .ptabs__list { scroll-behavior: auto; }
}

/* WordPress core alignment helpers inside prose */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text { font-size: 13px; color: var(--body); }

/* Wireframe check additions ---------------------------------------------------------- */
/* Case study back link */
.hero__back { justify-self: start; font-family: var(--f-display); font-size: 15px; text-decoration: none; opacity: .85; margin-bottom: 6px; }
.hero__back:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* Guide landing (gated form) + event detail: body with a side panel */
.article__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: 64px; align-items: start; }
.panel { background: var(--light); border-radius: 24px; padding: 32px; position: sticky; top: calc(var(--header-h) + 24px); }
.panel__heading { font-size: 22px; margin-bottom: 18px; }
.panel .twiin-form input:not([type="submit"]), .panel input:not([type="submit"]):not([type="checkbox"]), .panel select, .panel textarea { background: var(--white); }
.details { display: grid; gap: 16px; margin: 0 0 24px; }
.details div { display: grid; gap: 2px; padding-bottom: 16px; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.details dt { font-family: var(--f-display); font-weight: 700; font-size: 14px; color: var(--gold-ink); text-transform: uppercase; letter-spacing: .05em; }
.details dd { margin: 0; font-size: 16px; color: var(--ink); }
.panel .btn { width: 100%; }
.panel__note { margin-top: 14px; font-size: var(--fs-meta); color: var(--body); text-align: center; }
.panel__note a { color: var(--ink); }
.hero__meta { font-size: 16px; opacity: .9; }
@media (max-width: 900px) {
	.article__grid { grid-template-columns: 1fr; gap: 40px; }
	.panel { position: static; }
}

/* Scroll animations -------------------------------------------------------------------
   Active when <html> has .anim (added in the head when Site settings → Scroll animations is on
   and the visitor hasn't asked for reduced motion). Elements rise and fade in as they enter
   the viewport, staggered within each group; headings reveal word by word from a mask.
   Once an element has landed it gets .rv-done, which hands control back to its normal styles
   (so card hover lifts etc. keep their own timing).
   Keep this selector list in sync with REVEAL in assets/js/main.js. */
html.anim :is(
	.hero__content > *, .section-head > *, .statement__inner > *, .logos__heading, .logos__stage, .logos .pill-tabs,
	.stat, .platform__copy, .platform__media, .band__inner > *, .video, .feature, .quote, .quote-card, .card,
	.timeline__item, .person, .gallery__item, .value, .role, .benefit, .office, .contact__form, .map__frame,
	.columns__col, .media-block__figure, .stats-row__item, .text-image__copy, .text-image__media,
	.simple-cta__inner > *, .cta-banner__inner > *, .listing__bar, .highlights__more, .article__aside, .ptabs__nav
):not(.rv-done):not(.split) {
	opacity: 0;
	transform: translateY(44px);
	transition: opacity .9s cubic-bezier(.25, .6, .3, 1), transform 1.1s var(--ease);
	transition-delay: var(--d, 0ms);
}
html.anim :is(
	.hero__content > *, .section-head > *, .statement__inner > *, .logos__heading, .logos__stage, .logos .pill-tabs,
	.stat, .platform__copy, .platform__media, .band__inner > *, .video, .feature, .quote, .quote-card, .card,
	.timeline__item, .person, .gallery__item, .value, .role, .benefit, .office, .contact__form, .map__frame,
	.columns__col, .media-block__figure, .stats-row__item, .text-image__copy, .text-image__media,
	.simple-cta__inner > *, .cta-banner__inner > *, .listing__bar, .highlights__more, .article__aside, .ptabs__nav
).is-in:not(.rv-done):not(.split) { opacity: 1; transform: none; }

/* Word-by-word headings: each word slides up from behind a mask */
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .08em 0 .12em; margin: -.08em 0 -.12em; }
.split .w__i { display: inline-block; }
html.anim .split:not(.rv-done) .w__i {
	transform: translateY(115%);
	transition: transform 1s var(--ease);
	transition-delay: calc(var(--d, 0ms) + var(--wi, 0) * 55ms);
}
html.anim .split.is-in:not(.rv-done) .w__i { transform: none; }

/* Photography settles in with a slow zoom-out */
html.anim .hero__img { transition: transform 2.2s var(--ease); }
html.anim .hero:not(.is-in) .hero__img { transform: scale(1.08); }
html.anim :is(.card__img, .gallery__item img, .stat__img, .platform__image img, .media-block__figure img, .text-image__media img, .value__circle img) {
	transition: transform 1.8s var(--ease);
}
html.anim :is(.card, .gallery__item, .stat, .platform__media, .media-block__figure, .text-image__media, .value):not(.is-in) :is(.card__img, img, .stat__img) {
	transform: scale(1.1);
}

/* Dot-dash band: pills glide in from the side */
html.anim .dotdash-band svg path { transition: transform 1.2s var(--ease), opacity .8s; }
html.anim .dotdash-band:not(.is-in) svg path { transform: translateX(-60px); opacity: 0; }
html.anim .dotdash-band svg path:nth-child(3n+2) { transition-delay: .08s; }
html.anim .dotdash-band svg path:nth-child(3n) { transition-delay: .16s; }

/* Hero background video */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__pause {
	position: absolute; right: var(--gutter); bottom: 32px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .25); color: var(--white);
	display: grid; place-items: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color .2s;
}
.hero__pause:hover { background: rgba(0, 0, 0, .5); }
.hero__pause-icon { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.hero__pause.is-paused .hero__pause-icon { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }

/* Homepage statement: no word-by-word reveal */
.home .statement__text.split .w__i {
	transform: none !important;
	transition: none !important;
}

/* Homepage statement eyebrow: no fade/rise */
.home .statement__inner > .eyebrow {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}

/* ESG Environment: 'Next on our roadmap' band over the wind turbine photo */
#roadmap.cta-banner { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(96px, 10vw, 180px); color: var(--white); background: var(--black) url('/wp-content/uploads/2026/10/istockphoto-2157583924-2048x2048-1.jpg') center / cover no-repeat; }
#roadmap.cta-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 17, 16, .45), rgba(18, 17, 16, .72)); }
#roadmap .cta-banner__heading { color: var(--white); }
#roadmap .cta-banner__text { font-family: var(--f-display); font-size: clamp(18px, 1.4vw, 24px); line-height: 1.4; max-width: 760px; opacity: 1; }

/* Forms inside a grey panel (gated webinars / guides): white fields so they stand out */
.panel.twiin-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .panel.twiin-form select, .panel.twiin-form textarea { background: var(--white); }
.twiin-form ul.inputs-list { list-style: none; margin: 0; padding: 0; }
.twiin-form ul.inputs-list label { display: flex; gap: 8px; align-items: flex-start; }

/* Webinar preview clip at the top of a gated webinar page */
.prose .webinar-preview { margin: 0 0 32px; border-radius: var(--r-lg); }
.webinar-preview iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ESG Environment: 'Lower-impact technology' cards as 2 x 2 */
@media (min-width: 641px) { #how-we-help .benefits__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Social buttons (e.g. Women in Flex hero): add the network's icon before the label */
.btn[href*="linkedin.com"]::before, .btn[href*="instagram.com"]::before { content: ""; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.btn[href*="linkedin.com"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.98 3.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5zM3 9h4v12H3zM9 9h3.8v1.7h.1c.5-1 1.8-2 3.8-2 4 0 4.8 2.6 4.8 6V21h-4v-5.3c0-1.3 0-2.9-1.8-2.9s-2 1.4-2 2.8V21H9z'/%3E%3C/svg%3E"); }
.btn[href*="instagram.com"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 8.2a3.2 3.2 0 1 1 0-6.4 3.2 3.2 0 0 1 0 6.4zM17.3 5.5a1.2 1.2 0 1 0 0 2.4 1.2 1.2 0 0 0 0-2.4zM12 2c-2.7 0-3.1 0-4.1.1-1.1 0-1.8.2-2.5.5a5 5 0 0 0-1.8 1.2A5 5 0 0 0 2.6 5.6c-.3.6-.5 1.4-.5 2.5C2 9 2 9.4 2 12s0 3 .1 4.1c0 1 .2 1.8.5 2.4.3.7.7 1.3 1.2 1.8.5.5 1.1.9 1.8 1.2.6.3 1.4.5 2.5.5 1 .1 1.4.1 4.1.1s3 0 4.1-.1c1 0 1.8-.2 2.4-.5a5 5 0 0 0 3-3c.3-.6.5-1.4.5-2.4.1-1 .1-1.4.1-4.1s0-3-.1-4.1c0-1-.2-1.8-.5-2.5a5 5 0 0 0-1.2-1.8 5 5 0 0 0-1.8-1.2c-.6-.3-1.4-.5-2.4-.5C15 2 14.6 2 12 2zm0 1.8c2.6 0 3 0 4 .1.9 0 1.5.2 1.8.3.5.2.8.4 1.1.7.4.4.6.7.8 1.2.1.3.3.9.3 1.8.1 1 .1 1.4.1 4s0 3-.1 4c0 .9-.2 1.5-.3 1.8-.2.5-.4.8-.8 1.2-.3.3-.6.5-1.1.7-.3.1-.9.3-1.8.3-1 .1-1.4.1-4 .1s-3 0-4-.1c-.9 0-1.5-.2-1.8-.3a3 3 0 0 1-1.1-.7 3 3 0 0 1-.8-1.2c-.1-.3-.3-.9-.3-1.8-.1-1-.1-1.4-.1-4s0-3 .1-4c0-.9.2-1.5.3-1.8.2-.5.4-.8.8-1.2.3-.3.6-.5 1.1-.7.3-.1.9-.3 1.8-.3 1-.1 1.4-.1 4-.1z'/%3E%3C/svg%3E"); }

/* Form dropdowns: custom dropdown arrow with breathing room from the edge */
.twiin-form select, .panel.twiin-form select { -webkit-appearance: none; appearance: none; padding-right: 48px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23121110' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 20px center; background-size: 12px 8px; }
.twiin-form select::-ms-expand { display: none; }

/* Line under a gated form's heading */
.panel__intro { margin: -6px 0 18px; font-family: var(--f-display); font-size: var(--fs-body-display); line-height: 1.35; color: var(--body); }

/* Product tab bullet lists: slightly larger round bullets */
.ptabs__content ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; font-family: var(--f-display); line-height: 1.35; }
.ptabs__content li { position: relative; padding-left: 24px; }
.ptabs__content li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.ptabs__content li strong { color: var(--ink); font-weight: 600; }


/* Collapsible feature list (product pages) */
.feature-list__summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; list-style: none; padding-bottom: 24px; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.feature-list__summary::-webkit-details-marker { display: none; }
.feature-list__titles { display: grid; gap: 8px; }
.feature-list__heading { margin: 0; }
.feature-list__toggle { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--light); transition: background-color .2s var(--ease); }
.feature-list__toggle::before { content: ""; position: absolute; left: 50%; top: 45%; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translate(-50%, -50%) rotate(45deg); transition: transform .25s var(--ease); }
.feature-list__details[open] .feature-list__toggle::before { top: 55%; transform: translate(-50%, -50%) rotate(-135deg); }
.feature-list__summary:hover .feature-list__toggle, .feature-list__summary:focus-visible .feature-list__toggle { background: var(--accent-soft); }
.feature-list__grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 40px; }
.feature-list__grid li { padding-top: 16px; border-top: 2px solid var(--accent-soft); font-family: var(--f-display); font-size: var(--fs-body-display); line-height: 1.45; color: var(--body); }
@media (max-width: 900px) { .feature-list__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .feature-list__grid { grid-template-columns: 1fr; gap: 24px; } }

/* Product views: pill switcher (e.g. twiindata PRO / twiindata) */
.pviews__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: clamp(40px, 5vw, 72px); }
.pviews__tab { padding: 12px 32px; border: 2px solid rgba(0, 0, 0, .15); border-radius: var(--r-pill); background: transparent; font-family: var(--f-display); font-size: var(--fs-lead); line-height: 1.2; color: var(--body); cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.pviews__tab:hover { border-color: var(--accent); color: var(--ink); }
.pviews__tab.is-active { background: var(--accent); border-color: var(--accent); color: var(--white); }
.pviews__tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pviews__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pviews__media { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--white); box-shadow: 0 18px 50px rgba(18, 17, 16, .1); }
.pviews__media img { display: block; width: 100%; height: auto; }
.pviews__heading { font-weight: 400; font-size: var(--fs-h3); line-height: 1.2; margin-bottom: 16px; }
.pviews__text { font-family: var(--f-display); font-size: var(--fs-lead); line-height: 1.45; color: var(--body); margin-bottom: 28px; }
.pviews__points { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 40px; }
.pviews__points li { padding-top: 16px; border-top: 2px solid var(--accent-soft); font-family: var(--f-display); font-size: var(--fs-body-display); line-height: 1.45; color: var(--body); }
@media (max-width: 900px) { .pviews__grid { grid-template-columns: 1fr; } .pviews__points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pviews__points { grid-template-columns: 1fr; gap: 24px; } .pviews__tab { padding: 10px 22px; } }

/* Product views: collapsible feature groups under a view (reuses the feature list styles) */
.pviews__groups { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 8px; }
.pviews__group .feature-list__summary { padding-block: 24px; }
.pviews__group-title { margin: 0; font-weight: 700; font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.01em; } /* same as the twiindata "Features" heading */

.pviews__group .feature-list__grid { margin: 24px 0 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .pviews__group .feature-list__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pviews__group .feature-list__grid { grid-template-columns: 1fr; } }

/* Subheadings inside feature lists (a line starting with ##) */
.feature-list__grid li.feature-list__subhead { grid-column: 1 / -1; margin-top: 24px; padding-top: 0; border-top: 0; font-weight: 700; font-size: var(--fs-lead); line-height: 1.25; color: var(--ink); }
.feature-list__grid li.feature-list__subhead:first-child { margin-top: 0; }

/* Product tabs: 'Skip this section' arrow under the pinned panels */
.ptabs__skips { display: flex; justify-content: center; gap: 12px; margin-top: clamp(16px, 2.5vh, 32px); }
.ptabs__skip { display: flex; align-items: center; justify-content: center; width: max-content; padding: 0; border-radius: 50%; font-family: var(--f-display); font-size: var(--fs-meta); color: var(--body); text-decoration: none; transition: color .2s var(--ease); }
.ptabs__skip-icon { position: relative; width: 48px; height: 48px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 15%, transparent); transition: background-color .2s var(--ease); }
.ptabs__skip-icon::before { content: ""; position: absolute; left: 50%; top: 42%; width: 9px; height: 9px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translate(-50%, -50%) rotate(45deg); }
.ptabs__skip:hover, .ptabs__skip:focus-visible { color: var(--ink); }
.ptabs__skip:hover .ptabs__skip-icon, .ptabs__skip:focus-visible .ptabs__skip-icon { background: var(--accent); }
.ptabs__skip:hover .ptabs__skip-icon::before, .ptabs__skip:focus-visible .ptabs__skip-icon::before { border-color: var(--white); }
.ptabs__end { display: block; height: 0; scroll-margin-top: var(--header-h); }
.ptabs__skip--up .ptabs__skip-icon::before { top: 58%; transform: translate(-50%, -50%) rotate(-135deg); }
.ptabs__start { display: block; height: 0; scroll-margin-top: 100vh; }
.ptabs--stacked .ptabs__skips, .js .ptabs:not(.is-pinned) .ptabs__skips { display: none; }

/* Tables in long-form text (legal pages, articles) */
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: var(--fs-meta); }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid rgba(0, 0, 0, .1); text-align: left; vertical-align: top; }
.prose th, .prose tr:first-child td { color: var(--ink); font-weight: 600; }

/* Client logos: scrolling carousel for sectors with more than six logos */
.logos .logos__row--marquee { overflow: hidden; justify-content: flex-start; padding-bottom: 0; scroll-snap-type: none; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.logos__row--marquee .logos__track { justify-content: flex-start; gap: 0; width: max-content; animation: logos-marquee var(--marquee-dur, 45s) linear infinite; }
.logos__row--marquee .logos__item { padding-right: 72px; scroll-snap-align: none; }
.logos__row--marquee:hover .logos__track { animation-play-state: paused; }
@keyframes logos-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logos .logos__row--marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; } .logos__row--marquee .logos__track { animation: none; } }

/* Feature cards: four cards sit in one row on wide screens */
@media (min-width: 1121px) { .features--row.features--cols-4 .features__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } .features--row.features--cols-4 .feature { padding: 36px 24px 24px; } .features--row.features--cols-4 .feature__title { font-size: 24px; line-height: 30px; } }

/* Product names in menus: flipped second i to match the logos (inc/brand-text.php).
   Flipped about the middle of the i's stem, so the stem stays on the baseline and the dot drops below it. */

/* Hero: product logo in place of the heading text */
.hero__title--logo { line-height: 0; }
.hero__logo { display: block; width: calc(clamp(53px, 4.87vw, 97px) * var(--logo-ratio, 4.52)); max-width: 100%; height: auto; }

/* Product carousel: product logo in place of the name, when assets/img/logo-{name}-on-dark.svg exists */
.platform__name--logo { line-height: 0; }
.platform__logo { display: block; width: calc(var(--fs-h3) * .97 * var(--logo-ratio, 4.52)); max-width: 100%; height: auto; }

/* Footer legal links: wrap onto more lines now there are ten */
.footer__legal { flex-wrap: wrap; row-gap: 6px; }
.site-footer__bottom-inner nav { min-width: 0; }

/* Client logo sector pills: two rows of two on phones so they stay inside the page */
@media (max-width: 767px) {
	.logos .pill-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 360px; margin-inline: auto; }
	.logos .pill-tab { width: 100%; min-width: 0; padding: 0 12px; }
	.logos { overflow-x: clip; }
}

/* Header logo: a little smaller on phones */
@media (max-width: 767px) {
	.site-header__logo .logo { width: 96px; }
}

/* Back to top: round arrow button in the bottom-right corner on phones, after scrolling down */
.to-top { display: none; }
@media (max-width: 767px) {
	.to-top {
		display: flex; align-items: center; justify-content: center; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90;
		width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--white); color: var(--ink);
		box-shadow: 0 4px 16px rgba(0, 0, 0, .15); cursor: pointer;
		opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
	}
	.to-top[hidden] { display: none; }
	.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
	.to-top__icon { position: relative; width: 12px; height: 12px; margin-top: 5px; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }
	body.nav-open .to-top, html.nav-open .to-top { display: none; }
}

/* Hero on phones: 'Image position on phones' and 'Image on phones: Band above text' (hero section settings) */
@media (max-width: 767px) {
	.hero--m-pos .hero__img { object-position: var(--m-x, 50%) var(--m-y, 50%) !important; } /* overrides the photo's own Image focus on phones */
	.hero--m-band { background: var(--m-bg, var(--black)); }
	.hero--m-band.hero--product { background: color-mix(in srgb, var(--m-bg, var(--black)) 82%, #000); }
	.hero--m-band .hero__media { inset: var(--header-h) 0 auto 0; height: clamp(220px, 62vw, 300px); }
	.hero--m-band .hero__content { padding-top: calc(var(--header-h) + clamp(220px, 62vw, 300px) + 24px); padding-bottom: 64px; }
	.hero--m-band .hero__pattern, .hero--m-band .hero__cutout { display: none; }
}

/* Client logos: sectors with more than six logos scroll sideways (replaces the moving marquee) */
.logos .logos__row--scroll {
	overflow-x: auto; justify-content: flex-start; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
	padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, .25) transparent; cursor: grab;
	-webkit-mask-image: linear-gradient(to right, #000 90%, transparent); mask-image: linear-gradient(to right, #000 90%, transparent);
}
.logos .logos__row--scroll.is-end { -webkit-mask-image: none; mask-image: none; }
.logos .logos__row--scroll.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.logos .logos__row--scroll.is-dragging img { pointer-events: none; }
.logos__row--scroll .logos__track { justify-content: flex-start; width: max-content; gap: 0 72px; padding-inline: 4px 48px; }
.logos__row--scroll .logos__item { flex: 0 0 auto; scroll-snap-align: start; }
.logos__row--scroll::-webkit-scrollbar { height: 6px; }
.logos__row--scroll::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .25); border-radius: 3px; }
.logos__row--scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* Two products, one platform: white section (client feedback: plum got lost on black) */
.platform .platform__text { color: var(--body); }
.platform .platform__btn:hover, .platform .platform__btn:focus-visible { background: transparent; border-color: var(--ink); color: var(--ink); }
.platform .dot { background: var(--quote); }
.platform .dot.is-active { background: var(--gold); }

/* Listing search: clear button and results line */
.search-pill { position: relative; }
.search-pill--active input { padding-right: 36px; }
.search-pill--active input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.search-pill__clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 16px; line-height: 1; text-decoration: none; }
.search-pill__clear:hover, .search-pill__clear:focus-visible { background: var(--gold-ink); }
.listing__results { margin: calc(clamp(40px, 5vw, 80px) * -0.6) 0 clamp(28px, 3vw, 44px); font-family: var(--f-display); font-size: var(--fs-body-display); color: var(--body); }
.listing__clear { margin-left: 10px; color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Testimonials: company logo above the name. Shown in white on the dark styles, black on the sand cards. */
.quote__logo { display: block; margin-bottom: 14px; }
.quote__logo img { display: block; height: 30px; width: auto; max-width: 140px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); opacity: .9; }
.quote-card .quote__logo img { filter: brightness(0); opacity: 1; }
.quotes--single .quote__logo, .quotes--single .quote__logo img { margin-inline: auto; object-position: center; }

/* Header Book a demo over a photo banner: white so it stands out; back to black once the header turns light on scroll */
.has-hero .site-header:not(.is-scrolled) .site-header__cta { background: var(--white); border-color: var(--white); color: var(--ink); }
.has-hero .site-header:not(.is-scrolled) .site-header__cta:hover, .has-hero .site-header:not(.is-scrolled) .site-header__cta:focus-visible { background: transparent; border-color: var(--white); color: var(--white); }
.nav-open .site-header .site-header__cta { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Squarer testimonial logos (e.g. The Fleot) get more height so they stay legible */
.quote__logo--compact img { height: 56px; }

/* Two products, one platform: background follows the slide (twiindata dark, twiinworkspace white) */
.platform { transition: background-color .6s var(--ease), color .6s var(--ease); }
.platform .section-title, .platform .eyebrow--sm, .platform__text, .platform .dot { transition: color .6s var(--ease), background-color .6s var(--ease); }
.platform:has(.platform__slide.is-active[data-theme="dark"]) { background: var(--black); color: var(--white); }
.platform:has(.platform__slide.is-active[data-theme="dark"]) .section-title { color: var(--white); }
.platform:has(.platform__slide.is-active[data-theme="dark"]) .eyebrow--sm { color: var(--gold-ink); }
.platform:has(.platform__slide.is-active[data-theme="dark"]) .platform__text { color: var(--quote); }
.platform:has(.platform__slide.is-active[data-theme="dark"]) .dot { background: var(--white); }
.platform:has(.platform__slide.is-active[data-theme="dark"]) .dot.is-active { background: var(--gold); }
.platform .platform__slide[data-theme="dark"] .platform__btn:hover, .platform .platform__slide[data-theme="dark"] .platform__btn:focus-visible { background: transparent; border-color: var(--white); color: var(--white); }
