/* Layout: tiio header (logo left, nav right) over one centred hero column; booking sheet + projects drawer as overlays */
/* Design system: Astryx neutral theme (astryx/theme-neutral.css + astryx/astryx-base-tokens.css).
   <html data-astryx-theme="neutral" data-astryx-media="dark"> keeps the page always dark.
   The page's own names below are aliases onto Astryx tokens; only --accent (tiio yellow) is a brand extra. */
:root {
  color-scheme: dark;
  --bg: var(--color-background-body);
  --surface: var(--color-background-surface);
  --ink: var(--color-text-primary);
  --text: var(--color-text-gray);
  --muted: var(--color-text-secondary);
  --border: var(--color-border-emphasized);
  --line: var(--color-border);
  --primary: var(--color-accent);
  --primary-hover: var(--color-on-dark);
  --on-primary: var(--color-on-accent);
  --accent: #F9C312; /* tiio brand dot, not part of Astryx */
  --danger: var(--color-text-error);
  --scrim: var(--color-overlay);
  --display: var(--font-family-heading);
  --sans: var(--font-family-body);
  --r-pill: var(--radius-full);
  --r-lg: var(--radius-container);
  --t-fast: var(--duration-fast) var(--ease-standard);
  --t-med: var(--duration-medium) var(--ease-standard);
  --t-slow: var(--duration-slow) var(--ease-standard);
}

/* tiio palette: deep navy background, slate-blue secondary text, near-white emphasis.
   Overrides the Astryx neutral (grey) colour tokens; everything on the page reads from these. */
html[data-astryx-theme="neutral"][data-astryx-media="dark"] {
  --color-background-body: #1D2633;
  --color-background-surface: #243040;
  --color-text-primary: #F3F5F8;
  --color-text-gray: #C4CBD6;
  --color-text-secondary: #8592A8;
  --color-border-emphasized: #3B4859;
  --color-border: rgba(148, 163, 184, .16);
  --color-accent: #F3F5F8;
  --color-on-accent: #1D2633;
  --color-overlay: rgba(12, 18, 26, .8);
  /* No Figtree: Inter for everything except headlines, which are set to Space Grotesk further down */
  --font-family-heading: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-family-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; font-weight: var(--font-weight-normal);
  -webkit-font-smoothing: antialiased;
}
.wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
@media (max-width: 600px) { .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }

/* Header (Figma: header menu) */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 23px; min-height: 100px; }
.logo { display: inline-flex; color: var(--ink); }
.logo svg { width: 87px; height: 30px; display: block; }
.logo:focus-visible { outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color); outline-offset: 6px; border-radius: var(--radius-inner); }
.menu { display: flex; align-items: center; gap: 40px; list-style: none; margin: 0; padding: 0; }
.menu a { font: var(--font-weight-normal) 16px/20px var(--display); color: var(--text); text-decoration: none; position: relative; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t-fast); }
.menu a:hover::after, .menu a:focus-visible::after { transform: scaleX(1); }
.menu a:focus-visible { outline: none; }
@media (max-width: 780px) { .menu .link { display: none; } }

/* Buttons (Figma: Link - Primary) */
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 20px; min-height: 43px; border-radius: var(--r-pill);
  font: var(--font-weight-normal) 14px/27px var(--sans); cursor: pointer; border: 1px solid transparent; text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn:focus-visible { outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color); outline-offset: 3px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--primary); }
.btn-outline:hover { background: var(--surface); }
.btn .teams { width: 16px; height: 15px; flex: none; }
.menu .btn { font: var(--font-weight-normal) 16px/27px var(--display); }
.menu a.btn-primary { color: var(--on-primary); }
.menu a.btn::after { display: none; }

/* Hero (Figma: Cover) */
.hero { display: grid; place-items: center; padding-block: 100px 72px; }
.hero-in { width: 100%; max-width: 880px; display: flex; flex-direction: column; align-items: center; text-align: center; }
h1 {
  margin: 0; font-family: var(--display); font-weight: var(--font-weight-normal); color: var(--ink);
  font-size: clamp(34px, 6.4vw, 64px); line-height: 1.2; letter-spacing: 0; text-wrap: balance;
}
h1 .m { color: var(--muted); }
h1 .dot { color: var(--accent); }
.sub { margin: 40px 0 0; max-width: 716px; font-size: clamp(16px, 2.2vw, 18px); line-height: 32px; color: var(--text); text-wrap: pretty; }
.proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 12px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 32px; color: var(--muted); }
.proof li + li::before { content: "|"; margin-right: 12px; }
@media (max-width: 600px) { .proof { flex-direction: column; line-height: 26px; } .proof li + li::before { content: none; } }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 26px; }

/* Logos (Figma: Logos) */
.logos { padding-block: 40px; }
.logos-in { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 24px 45px; }
.logos-label { margin: 0; flex: none; font: var(--font-weight-normal) 14px/32px var(--sans); color: var(--muted); }
/* Ticker: two copies of the row slide left by exactly one copy width, so the loop is seamless */
.ticker { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.logo-row { flex: none; display: flex; align-items: center; gap: 72px; margin: 0; padding: 0 72px 0 0; list-style: none; }
.logo-row li { display: flex; flex: none; color: var(--muted); transition: color var(--t-fast); }
.logo-row li:hover { color: var(--ink); }
.logo-row svg { display: block; }
/* Edge overlays: page colour fading to clear, on top of the ticker (not on the logos) */
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 1; pointer-events: none;
  --fade: var(--bg) 0%, color-mix(in srgb, var(--bg) 95%, transparent) 25%, color-mix(in srgb, var(--bg) 70%, transparent) 50%, color-mix(in srgb, var(--bg) 30%, transparent) 75%, color-mix(in srgb, var(--bg) 0%, transparent) 100%;
}
.ticker::before { left: 0; background: linear-gradient(to right, var(--fade)); }
.ticker::after { right: 0; background: linear-gradient(to left, var(--fade)); }
@media (max-width: 1100px) {
  .logos-in { flex-direction: column; }
  .ticker { width: 100%; flex: none; }
}
@media (max-width: 600px) {
  .ticker::before, .ticker::after { width: 72px; }
  .logo-row { gap: 48px; padding-right: 48px; }
}

/* Hero entrance: headline, text, buttons and logos fade up once when the page loads */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-in > *, .logos { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-in > h1 { animation-delay: .1s; }
.hero-in > .sub { animation-delay: .3s; }
.hero-in > .proof { animation-delay: .42s; }
.hero-in > .ctas { animation-delay: .54s; }
.logos { animation-delay: .7s; }

/* Selected Work (Figma: Case Studies) — a deliberately black band in both themes */
.work { --w-bg: var(--bg); --w-ink: var(--ink); --w-muted: color-mix(in srgb, var(--text) 75%, var(--bg)); --w-line: var(--border); --w-media: var(--surface);
  background: var(--w-bg); color: var(--w-ink); padding-block: 120px; overflow: hidden; scroll-margin-top: 80px; }
html { scroll-behavior: smooth; }
.work-head { max-width: 1280px; margin: 0 auto 43px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.work-head h2 { margin: 0; font: var(--font-weight-normal) clamp(40px, 5.5vw, 64px)/1.3 var(--display); color: var(--muted); }
.work-nav { display: flex; gap: 12px; flex: none; }
.arrow {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--w-line); background: transparent; color: var(--w-ink);
  display: grid; place-items: center; cursor: pointer; transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast), opacity var(--t-fast);
}
.arrow svg { width: 20px; height: 20px; }
.arrow:hover:not(:disabled) { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.arrow:focus-visible { outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color); outline-offset: 3px; }
.arrow:disabled { opacity: .3; cursor: default; }
.rail {
  display: flex; gap: 21px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-left: max(32px, calc((100vw - 1280px) / 2)); padding-right: 80px; scroll-padding-left: max(32px, calc((100vw - 1280px) / 2));
  scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.rail.dragging .card { pointer-events: none; }
.card {
  flex: none; width: min(655px, 70vw); scroll-snap-align: start; padding: 26px; border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 26px; border-radius: var(--radius-container); color: inherit; text-decoration: none; user-select: none;
  transition: border-color var(--t-med);
}
.card:hover, .card:focus-visible { border-color: var(--ink); outline: none; }
.media { aspect-ratio: 753 / 366; max-width: 100%; background: var(--w-media); border-radius: var(--radius-element); overflow: hidden; position: relative; display: grid; place-items: center; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-slow); -webkit-user-drag: none; }
.card:hover .media img { transform: scale(1.03); }
/* Placeholder cards follow the Intenta card: photo at 30% on #272727, client logo centred in white */
.media.ph img { position: absolute; inset: 0; opacity: .3; }
.media .ph-logo { position: relative; z-index: 1; color: var(--color-on-dark); transform: scale(1.8); }
.card h3 { margin: 0; max-width: 382px; font: var(--font-weight-normal) clamp(22px, 2.6vw, 32px)/1.3 var(--display); color: var(--w-ink); text-wrap: balance; }
.card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.more { display: inline-flex; align-items: center; gap: 8px; font: var(--font-weight-normal) 15px/24px var(--sans); color: var(--w-ink); white-space: nowrap; }
.more svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.card:hover .more svg { transform: translateX(4px); }
.card p { margin: 0; max-width: 260px; text-align: right; font: var(--font-weight-normal) 14.5px/1.4 var(--sans); color: var(--w-muted); }
.work-count { max-width: 1280px; margin: 28px auto 0; font: var(--font-weight-normal) 14px var(--display); color: var(--w-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .work { padding-block: 80px; }
  .rail { padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; }
  .card { width: 86vw; padding: 20px; gap: 20px; }
  .card-foot { flex-direction: column; align-items: flex-start; }
  .card p { text-align: left; font-size: 15px; }
  .arrow { width: 44px; height: 44px; }
}

/* Services (Figma: Think. Design. Measure. Evolve.) — black band like Selected Work */
.services { --s-line: var(--border); background: var(--bg); color: var(--ink); padding-block: 40px 120px; scroll-margin-top: 80px; }
.services-in { max-width: 1376px; margin: 0 auto; }
.services-head { max-width: 1040px; margin: 0 auto 79px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 37px; }
.services-head h2 { margin: 0; font: var(--font-weight-normal) clamp(38px, 5.5vw, 64px)/1.3 var(--display); color: var(--ink); text-wrap: balance; }
.services-head h2 .dot { color: var(--accent); }
.services-head p { margin: 0; max-width: 627px; font: var(--font-weight-normal) 18px/32px var(--sans); color: var(--text); text-wrap: balance; }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.svc {
  display: flex; flex-direction: column; gap: 32px; height: 100%; min-height: 395px; padding: 42px; border: 1px solid var(--s-line); border-radius: var(--radius-container);
  color: inherit; text-decoration: none; cursor: pointer; transition: border-color var(--t-med), background-color var(--t-med);
}
.svc:hover, .svc:focus-visible { border-color: var(--ink); outline: none; }
.svc-icon { width: 24px; height: 24px; display: grid; place-items: center; color: var(--ink); opacity: .5; transition: opacity var(--t-med), color var(--t-med); }
.svc-icon svg { width: 24px; height: 24px; }
.svc:hover .svc-icon, .svc:focus-visible .svc-icon { opacity: 1; color: var(--ink); }
.svc-text { display: flex; flex-direction: column; gap: 20px; }
.svc h3 { margin: 0; font: var(--font-weight-normal) 28px/1.2 var(--display); color: var(--ink); }
.svc p { margin: 0; font: var(--font-weight-normal) 16px/1.6 var(--sans); color: color-mix(in srgb, var(--text) 75%, var(--bg)); }
.svc .more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font: var(--font-weight-normal) 16px/27px var(--sans); color: var(--ink); opacity: 0; transform: translateY(4px); transition: opacity var(--t-med), transform var(--t-med); }
.svc .more svg { width: 20px; height: 20px; }
.svc:hover .more, .svc:focus-visible .more { opacity: 1; transform: none; }
@media (hover: none) { .svc .more { opacity: 1; transform: none; } }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .services { padding-block: 24px 80px; }
  .services-head { margin-bottom: 48px; gap: 24px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc { min-height: 0; padding: 28px; gap: 24px; }
  .svc h3 { font-size: 24px; }
  .svc p { font-size: 16px; }
}

.cms-note { list-style: none; grid-column: 1 / -1; padding-block: 24px; font: var(--font-weight-normal) 16px/1.6 var(--sans); color: var(--muted); }

/* Contact (Figma: Contact — Let’s work together) — page background, portrait on the left */
.contact { position: relative; overflow: hidden; background: var(--bg); color: var(--ink); scroll-margin-top: 80px; }
.contact-photo { position: absolute; left: max(0px, calc((100vw - 1440px) / 2)); top: 0; bottom: 0; height: 100%; width: auto; max-width: none; pointer-events: none; user-select: none; }
.contact-in { position: relative; max-width: 1440px; margin: 0 auto; min-height: 644px; display: flex; flex-direction: column; justify-content: center; padding-block: 96px; padding-left: max(440px, calc(50% - 325px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
.contact h2 { margin: 0; font: var(--font-weight-normal) clamp(40px, 4.6vw, 58px)/1.2 var(--display); color: var(--ink); }
.contact h2 .dot { color: var(--accent); }
.contact-body { margin: 28px 0 0; max-width: 650px; font: var(--font-weight-normal) clamp(18px, 1.6vw, 22px)/1.8 var(--sans); color: var(--text); }
.contact-body strong { font-weight: var(--font-weight-semibold); }
.contact-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.contact-ctas .btn { font: var(--font-weight-normal) 16px/20px var(--sans); padding: 12px 20px 12px 22px; gap: 10px; min-height: 46px; }
.contact-ctas .btn svg { width: 20px; height: 20px; flex: none; transition: transform var(--t-fast); }
.contact-primary { background: var(--primary); color: var(--on-primary); }
.contact-primary:hover { background: var(--primary-hover); }
.contact-primary:hover svg { transform: translateX(3px); }
.contact-outline { background: transparent; color: var(--ink); border-color: var(--primary); }
.contact-outline:hover { background: var(--surface); border-color: var(--ink); }
.contact-person { margin-top: 72px; }
.contact-name { margin: 0; font: var(--font-weight-medium) 17px/24px var(--sans); color: var(--ink); }
.contact-role { margin: 4px 0 0; font: var(--font-weight-normal) 15px/24px var(--sans); color: var(--muted); }
.contact-social { display: flex; gap: 18px; margin-top: 18px; }
.contact-social a { display: inline-flex; color: var(--muted); transition: color var(--t-fast); }
.contact-social a:hover { color: var(--ink); }
.contact-social a:focus-visible { outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color); outline-offset: 3px; }
.contact-social svg { width: 28px; height: 28px; }
@media (max-width: 1100px) {
  .contact-in { padding-left: 380px; }
  .contact-photo { height: 88%; top: auto; }
  .contact-photo { left: 0; }
}
@media (max-width: 820px) {
  .contact-photo { position: relative; display: block; top: 0; bottom: auto; left: 0; transform: none; height: 380px; margin: 32px 0 0; }
  .contact-in { min-height: 0; padding-block: 40px 72px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .contact-person { margin-top: 48px; }
}
/* ICP sections: challenges, focus, packages, why, FAQ */
.sec { padding-block: 120px; scroll-margin-top: 80px; color: var(--ink); }
.sec + .sec { padding-top: 40px; }
.sec-in { max-width: 1280px; margin: 0 auto; }
.sec-head { max-width: 860px; margin: 0 0 56px; display: flex; flex-direction: column; gap: 20px; }
.eyebrow { margin: 0; font: var(--font-weight-normal) 12px/1.4 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sec-head h2 { margin: 0; font: var(--font-weight-normal) clamp(34px, 4.6vw, 56px)/1.2 var(--display); color: var(--ink); text-wrap: balance; }
.sec-head h2 .dot, .why-grid .dot { color: var(--accent); }
.sec-head p:not(.eyebrow) { margin: 0; max-width: 680px; font: var(--font-weight-normal) 18px/32px var(--sans); color: var(--text); text-wrap: pretty; }
.sec-foot { margin: 28px 0 0; font: var(--font-weight-normal) 15px/1.6 var(--sans); color: var(--muted); }
.sec h3 { margin: 0; font-family: var(--display); font-weight: var(--font-weight-normal); color: var(--ink); text-wrap: balance; }
.soft { color: color-mix(in srgb, var(--text) 75%, var(--bg)); }

/* ---------- Rhythm: each section gets its own layout ---------- */

/* Statement: big type, words light up from slate to white as you scroll */
.statement { padding-block: clamp(96px, 14vw, 200px) clamp(64px, 10vw, 140px); }
.statement-in { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.statement-text { margin: 0; max-width: 1100px; font: var(--font-weight-medium) clamp(30px, 4.8vw, 64px)/1.18 var(--display); letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.statement-text .w { color: color-mix(in srgb, var(--muted) 70%, var(--bg)); transition: color .35s ease; }
.statement-text .w.lit { color: var(--ink); }

/* References: statement-style slider; the active slide lights up word by word */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.voices { padding-block: clamp(80px, 11vw, 160px) !important; overflow: hidden !important; }
.ref-head { align-items: center !important; margin-bottom: clamp(32px, 4vw, 56px) !important; }
.ref-head h2.eyebrow { margin: 0; font: var(--font-weight-normal) 12px/1.4 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ref-rail { margin: 0; list-style: none; gap: clamp(48px, 8vw, 120px) !important; }
.ref-slide { flex: none; width: min(1080px, 84vw); scroll-snap-align: start; user-select: none; }
.ref-slide figure { margin: 0; display: flex; flex-direction: column; gap: clamp(28px, 3vw, 44px); }
.ref-text { margin: 0; font: 300 clamp(21px, 2.5vw, 32px)/1.35 var(--display); color: var(--ink); text-wrap: pretty; }
.ref-text .w { color: color-mix(in srgb, var(--muted) 60%, var(--bg)); transition: color .45s ease; }
.ref-text .w.lit { color: var(--ink); }
.ref-by { display: flex; align-items: center; gap: 16px; transition: opacity .6s ease; }
.ref-by > span { display: flex; flex-direction: column; }
.ref-slide:not(.active) .ref-by { opacity: .35; }
.ref-count { margin-top: clamp(32px, 4vw, 56px) !important; }
@media (max-width: 700px) {
  .ref-slide { width: 86vw; }
  .ref-by .q-photo { width: 48px; height: 48px; }
}

/* Challenges: numbered editorial rows instead of cards */
#challenges .pain-grid { display: block; counter-reset: pain; border-bottom: 1px solid var(--line); }
#challenges .pain {
  counter-increment: pain; display: grid; grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px 40px; align-items: baseline;
  padding: 32px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0;
}
#challenges .pain::before { content: counter(pain, decimal-leading-zero); font: var(--font-weight-normal) 14px/1 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; }
#challenges .pain h3 { font-size: clamp(22px, 2.6vw, 34px); line-height: 1.2; color: color-mix(in srgb, var(--muted) 85%, var(--ink)); transition: color var(--t-med), transform var(--t-med); }
#challenges .pain:hover h3 { color: var(--ink); transform: translateX(8px); }
#challenges .pain p { font-size: 16.5px; }
@media (max-width: 800px) {
  #challenges .pain { grid-template-columns: 48px 1fr; }
  #challenges .pain p { grid-column: 2; }
}

/* Services: full-width contrasting band */
#services { background: var(--surface); padding-block: 120px; }
#services + .sec { padding-top: 120px; }
#services .svc { background: var(--bg) !important; }
#services .svc-cta { background: transparent !important; border: 1px dashed var(--border) !important; }

/* Why tiio: sticky heading left, numbered points right */
#why .sec-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 96px; align-items: start; }
#why .sec-head { position: sticky; top: 140px; margin: 0; }
#why .why-grid { grid-template-columns: 1fr; gap: 0; counter-reset: why; }
#why .why-grid li { counter-increment: why; display: grid; grid-template-columns: 64px 1fr; gap: 6px 24px; padding: 32px 0; border-top: 1px solid var(--line); }
#why .why-grid li:last-child { border-bottom: 1px solid var(--line); }
#why .why-grid li::before { content: counter(why, decimal-leading-zero); grid-row: span 2; font: var(--font-weight-normal) clamp(28px, 3vw, 40px)/1 var(--display); color: color-mix(in srgb, var(--muted) 60%, var(--bg)); transition: color var(--t-med); }
#why .why-grid li:hover::before { color: var(--accent); }
#why .why-grid h3 { font-size: 24px; }
@media (max-width: 900px) {
  #why .sec-in { grid-template-columns: 1fr; }
  #why .sec-head { position: static; }
}

/* Scroll reveal (only when JS runs and motion is allowed) */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* 03 Challenges: statement headline, then numbered rows */
.challenge-list { margin: clamp(56px, 7vw, 96px) 0 0; padding: 0; list-style: none; }
h2.statement-text { font-weight: 400; }

/* 05 Services: cards are informational (not links); capability list at the bottom */
#services article.svc { cursor: default; }
.svc-caps { margin: auto 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.svc-caps li { font: var(--font-weight-normal) 13.5px/1.5 var(--sans); color: var(--muted); }

/* 08 Collaboration: three editorial columns, no boxes */
.collab-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.collab-col { display: flex; flex-direction: column; gap: 16px; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-container); transition: border-color var(--t-med); }
.collab-col:hover { border-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.collab-n { margin: 0; font: var(--font-weight-normal) 14px/1 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; }
.collab-col h3 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.1; }
.collab-price { margin: 0; font: var(--font-weight-normal) 15px/1.5 var(--sans); color: var(--muted); }
.collab-price strong { font: var(--font-weight-normal) 24px/1.2 var(--display); color: var(--ink); }
.collab-for { margin: 0; font: var(--font-weight-normal) 16px/1.6 var(--sans); color: var(--text); }
.collab-link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: var(--font-weight-normal) 15px/1.4 var(--sans); }
.collab-link svg { width: 18px; height: 18px; transition: transform var(--t-fast); }
.collab-link:hover svg { transform: translateX(4px); }
.collab-link:focus-visible { outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color); outline-offset: 4px; }
/* Tablet: horizontal slider (swipe), next card peeks in; mobile: stacked */
@media (min-width: 641px) and (max-width: 1024px) {
  .collab-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: calc(-1 * max(32px, env(safe-area-inset-left, 0px))); padding-inline: max(32px, env(safe-area-inset-left, 0px));
    scroll-padding-inline: max(32px, env(safe-area-inset-left, 0px));
  }
  .collab-grid::-webkit-scrollbar { display: none; }
  .collab-col { flex: none; width: min(420px, 66vw); scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .collab-grid { grid-template-columns: 1fr; }
  .collab-col { padding: 24px; }
}

/* 09 AI foundations: text left, numbered ingredients right */
.ai-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px clamp(48px, 7vw, 112px); align-items: start; }
.ai-text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.ai-text h2 { margin: 0 0 4px; font: var(--font-weight-normal) clamp(34px, 4.6vw, 56px)/1.2 var(--display); color: var(--ink); text-wrap: balance; }
.ai-text h2 .dot { color: var(--accent); }
.ai-text > p:not(.eyebrow) { margin: 0; max-width: 620px; font: var(--font-weight-normal) 17px/1.7 var(--sans); color: var(--text); }
.ai-text .ai-tools { font-size: 15px !important; color: var(--muted) !important; }
.ai-text .btn { margin-top: 8px; }
.ai-list { margin: 0; padding: 0; list-style: none; counter-reset: ai; }
.ai-list li { counter-increment: ai; display: flex; gap: 24px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); font: var(--font-weight-normal) clamp(18px, 1.7vw, 22px)/1.35 var(--display); color: var(--ink); }
.ai-list li:last-child { border-bottom: 1px solid var(--line); }
.ai-list li::before { content: counter(ai, decimal-leading-zero); flex: none; width: 28px; font-size: 13px; color: var(--accent); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .ai-in { grid-template-columns: 1fr; } }

/* 10 About */
.about-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.about-photo { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius-container); overflow: hidden; background: var(--surface); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-text { display: flex; flex-direction: column; gap: 20px; }
.about-text h1, .about-text h2 { margin: 0 0 4px; font: var(--font-weight-normal) clamp(34px, 4.6vw, 56px)/1.2 var(--display); color: var(--ink); text-wrap: balance; }
.about-text h1 .dot, .about-text h2 .dot { color: var(--accent); }
/* About page: room under the sticky header */
.about-page .about-main { padding-top: clamp(56px, 7vw, 96px); }
.menu a[aria-current="page"] { color: var(--ink); }
.menu a[aria-current="page"]::after { transform: scaleX(1); }
.about-text > p:not(.eyebrow) { margin: 0; max-width: 620px; font: var(--font-weight-normal) 17px/1.7 var(--sans); color: var(--text); }
.about-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; margin: 12px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; }
.about-facts li { display: flex; flex-direction: column; gap: 2px; }
.about-facts strong { font: var(--font-weight-normal) 20px/1.3 var(--display); color: var(--ink); }
.about-facts span { font: var(--font-weight-normal) 13.5px/1.4 var(--sans); color: var(--muted); }
.about-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
@media (max-width: 900px) { .about-in { grid-template-columns: 1fr; } .about-photo { max-width: 420px; } }
@media (max-width: 560px) { .about-facts { grid-template-columns: 1fr 1fr; } }

/* Services cards: Carbon icon top left, title, text, package hint */
#services .svc { min-height: 340px; padding: 36px; gap: 28px; background: transparent; border: 1px solid var(--line); }
#services .svc:hover, #services .svc:focus-visible { border-color: var(--border); }
/* Icon sits in a light outlined tile; the icon itself at 50% opacity, full on hover */
#services .svc-icon { width: 56px; height: 56px; display: grid; place-items: center; opacity: 1; color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius-element); transition: border-color var(--t-med); }
#services .svc-icon svg { width: 26px; height: 26px; opacity: .5; transition: opacity var(--t-med), color var(--t-med); }
#services .svc:hover .svc-icon, #services .svc:focus-visible .svc-icon { border-color: color-mix(in srgb, var(--ink) 40%, transparent); }
#services .svc:hover .svc-icon svg, #services .svc:focus-visible .svc-icon svg { opacity: 1; color: var(--accent); }
#services .svc h3 { font-size: 24px; line-height: 1.25; }
#services .svc p { font-size: 15.5px; }
.svc-pkg { margin-top: auto; display: block; font: var(--font-weight-normal) 14px/1.5 var(--sans); color: var(--muted); }
.svc-pkg strong { font-weight: var(--font-weight-medium); color: var(--ink); }
.svc-pkg svg { width: 16px; height: 16px; margin-left: 4px; vertical-align: -3px; transition: transform var(--t-fast); }
.svc:hover .svc-pkg svg, .svc:focus-visible .svc-pkg svg { transform: translateX(4px); }
.svc-cta { width: 100%; text-align: left; font: inherit; color: inherit; background: var(--surface) !important; border-style: dashed !important; }
.svc-cta h3 .dot { color: var(--accent); }
.svc-cta .svc-pkg { color: var(--ink); }
#svc-grid > li { display: flex; }
#svc-grid > li > .svc { flex: 1; }
@media (max-width: 640px) { #services .svc { min-height: 0; padding: 26px; } }

.pain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.pain { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-container); display: flex; flex-direction: column; gap: 14px; transition: border-color var(--t-med); }
.pain:hover { border-color: var(--border); }
.pain h3 { font-size: 22px; line-height: 1.3; }
.pain p { margin: 0; font: var(--font-weight-normal) 16px/1.6 var(--sans); color: color-mix(in srgb, var(--text) 75%, var(--bg)); }

.pillars { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; }
.pillar { padding: 42px; border: 1px solid var(--border); border-radius: var(--radius-container); display: flex; flex-direction: column; gap: 18px; }
.pillar.primary { background: var(--surface); }
.pillar h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; }
.pillar > p:not(.eyebrow) { margin: 0; font: var(--font-weight-normal) 17px/1.6 var(--sans); color: var(--text); }
.pillar .refs { margin-top: auto !important; padding-top: 8px; font-size: 14.5px !important; color: var(--muted) !important; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.tags li { padding: 4px 12px; border: 1px solid var(--line); border-radius: var(--r-pill); font: var(--font-weight-normal) 13.5px/22px var(--sans); color: var(--text); }

.pkg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.pkg { padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius-container); display: flex; flex-direction: column; gap: 16px; }
.pkg.featured { border-color: var(--ink); background: var(--surface); }
.pkg-step { margin: 0; font: var(--font-weight-normal) 12px/1.4 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pkg.featured .pkg-step { color: var(--accent); }
.pkg h3 { font-size: 24px; line-height: 1.25; }
.pkg h3 .or { color: var(--muted); }
.pkg-price { margin: 0; font: var(--font-weight-normal) 15px/1.4 var(--sans); color: var(--muted); }
.pkg-price strong { font: var(--font-weight-normal) 28px/1.2 var(--display); color: var(--ink); }
.pkg-for { margin: 0; font: var(--font-weight-normal) 15.5px/1.55 var(--sans); color: var(--text); }
.ticks { margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 24px; font: var(--font-weight-normal) 14.5px/1.5 var(--sans); color: color-mix(in srgb, var(--text) 85%, var(--bg)); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 5px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.pkg-note { margin: 0; font: var(--font-weight-normal) 13.5px/1.5 var(--sans); color: var(--muted); }
.pkg .btn { margin-top: auto; align-self: flex-start; }

/* Selected Work: editorial grid (structure after clay.global/work, tiio colours) */
.wk-in { max-width: 1280px; margin: 0 auto; }
.wk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 72px; }
.wk-head .sec-head { margin: 0; }
.wk-list { display: flex; flex-direction: column; gap: clamp(64px, 9vw, 120px); }
.wk-note { margin: 0; color: var(--muted); }
.wk-row.wk-single { display: flex; }
.wk-row.wk-single > * { width: 86%; }
.wk-row.wk-single.right { justify-content: flex-end; }
.wk-row.wk-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 9vw, 114px); align-items: start; }
.wk-row.wk-pair > :first-child { margin-top: clamp(80px, 15vw, 216px); }
.wk-row.wk-pair.flip > :first-child { margin-top: 0; }
.wk-row.wk-pair.flip > :last-child { margin-top: clamp(80px, 15vw, 216px); }
.wk-tile { display: flex; flex-direction: column; gap: 20px; color: inherit; text-decoration: none; }
.wk-media { position: relative; overflow: hidden; border-radius: var(--radius-element); background: var(--surface); display: grid; place-items: center; }
.wk-wide .wk-media { aspect-ratio: 16 / 9; }
.wk-square .wk-media { aspect-ratio: 1; }
.wk-tall .wk-media { aspect-ratio: 4 / 5; }
.wk-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-slow), opacity var(--t-slow); -webkit-user-drag: none; }
.wk-tile:hover .wk-media img { transform: scale(1.03); }
.wk-media.ph img { opacity: .3; }
.wk-media .ph-logo { position: relative; z-index: 1; color: var(--color-on-dark); transform: scale(2); }
.wk-media .ph-word { position: relative; z-index: 1; font: var(--font-weight-normal) clamp(28px, 4vw, 48px)/1 var(--display); color: var(--color-on-dark); }
.wk-text { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.wk-text h3 { margin: 0; display: flex; align-items: center; gap: 10px; font: var(--font-weight-medium) 22px/1.3 var(--display); color: var(--ink); }
.wk-go svg { width: 18px; height: 18px; display: block; transition: transform var(--t-fast); }
.wk-tile:hover .wk-go svg { transform: translateX(4px); }
.wk-line { margin: 0; font: var(--font-weight-normal) 17px/1.5 var(--sans); color: var(--text); }
.wk-desc { margin: 0; font: var(--font-weight-normal) 14.5px/1.5 var(--sans); color: var(--muted); }
a.wk-tile:focus-visible { outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color); outline-offset: 6px; border-radius: var(--radius-element); }
@media (max-width: 760px) {
  .wk-head { flex-direction: column; gap: 24px; margin-bottom: 48px; }
  .wk-row.wk-single > * { width: 100%; }
  .wk-row.wk-pair { grid-template-columns: 1fr; gap: 64px; }
  .wk-row.wk-pair > *, .wk-row.wk-pair.flip > * { margin-top: 0 !important; }
  .wk-tall .wk-media { aspect-ratio: 1; }
}

/* References slider: same rail + arrows as Selected Work */
.voices { padding-block: 40px 120px; overflow: hidden; scroll-margin-top: 80px; color: var(--ink); }
.voices-head .sec-head { margin: 0; }
.q-rail { margin: 0; list-style: none; }
.quote {
  flex: none; width: min(560px, 82vw); scroll-snap-align: start; user-select: none;
  padding: 36px; border: 1px solid var(--border); border-radius: var(--radius-container); background: var(--surface);
  transition: border-color var(--t-med);
}
.quote:hover { border-color: var(--ink); }
.quote figure { margin: 0; height: 100%; display: flex; flex-direction: column; gap: 32px; }
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0; font: 300 clamp(15.5px, 1.2vw, 17px)/1.65 var(--display); color: var(--text); letter-spacing: .005em; text-wrap: pretty; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 16px; }
.q-photo { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; background: var(--bg); -webkit-user-drag: none; }
.quote figcaption > span { display: flex; flex-direction: column; }
.q-name { font: var(--font-weight-medium) 16px/24px var(--sans); color: var(--ink); }
.q-role { font: var(--font-weight-normal) 14px/22px var(--sans); color: var(--muted); }
@media (max-width: 700px) {
  .voices { padding-block: 24px 80px; }
  .quote { width: 86vw; padding: 24px; }
  .q-photo { width: 48px; height: 48px; }
}

.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; margin: 0; padding: 0; list-style: none; }
.why-grid li { padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.why-grid h3 { font-size: 22px; line-height: 1.3; }
.why-grid p { margin: 0; font: var(--font-weight-normal) 16px/1.6 var(--sans); color: color-mix(in srgb, var(--text) 80%, var(--bg)); }

.faq-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px 80px; align-items: start; }
.faq-in .sec-head { margin: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font: var(--font-weight-normal) 19px/1.4 var(--display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 300 26px/1 var(--sans); color: var(--muted); transition: transform var(--t-fast); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color); outline-offset: 4px; }
.faq details p { margin: 0 0 24px; max-width: 640px; font: var(--font-weight-normal) 16px/1.65 var(--sans); color: var(--text); }

@media (max-width: 1150px) {
  .pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .pain-grid, .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars, .faq-in { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sec { padding-block: 80px; }
  .sec-head { margin-bottom: 36px; }
  .sec-head p:not(.eyebrow) { font-size: 17px; line-height: 1.65; }
  .pain-grid, .why-grid, .pkg-grid { grid-template-columns: 1fr; }
  .pain, .pkg { padding: 24px; }
  .pillar { padding: 28px; }
  .why-grid { gap: 32px; }
}

/* Overlays */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 20; opacity: 0; transition: opacity var(--t-fast); }
.scrim.open { opacity: 1; }
.sheet { position: fixed; z-index: 21; background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-high); }
.modal {
  left: 50%; top: 50%; width: min(520px, calc(100% - 32px)); max-height: calc(100% - 48px); overflow: auto;
  border-radius: var(--r-lg); padding: 28px; transform: translate(-50%, -46%); opacity: 0; transition: transform var(--t-med), opacity var(--t-med);
}
.modal.open { transform: translate(-50%, -50%); opacity: 1; }
.drawer {
  top: 0; right: 0; bottom: 0; width: min(460px, 100%); border-width: 0 0 0 1px; overflow: auto;
  padding: calc(28px + env(safe-area-inset-top, 0px)) max(28px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) 28px;
  transform: translateX(100%); transition: transform var(--t-med);
}
.drawer.open { transform: translateX(0); }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sheet h2 { margin: 0; font-family: var(--display); font-weight: var(--font-weight-normal); font-size: 28px; color: var(--ink); }
.sheet h2 .dot { color: var(--accent); }
.sheet .hint { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.x { background: none; border: 1px solid var(--border); border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; }
.x:hover { border-color: var(--muted); }
.x:focus-visible { outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color); outline-offset: 2px; }
.label { font: var(--font-weight-normal) 12px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 20px 0 10px; }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.chip {
  border: 1px solid var(--border); background: var(--bg); color: var(--ink); border-radius: var(--radius-element); padding: 10px 4px;
  font: var(--font-weight-normal) 14px/1.2 var(--sans); cursor: pointer; text-align: center; font-variant-numeric: tabular-nums;
}
.chip small { display: block; font-weight: var(--font-weight-normal); font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.chip[aria-pressed="true"] small { color: inherit; opacity: .7; }
.chip:focus-visible { outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color); outline-offset: 2px; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.field label { font-size: 14px; color: var(--text); }
.field input { font: var(--font-weight-normal) 15px var(--sans); padding: 11px 14px; border-radius: var(--radius-element); border: 1px solid var(--border); background: var(--bg); color: var(--ink); }
.field input:focus { outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color); outline-offset: 0; border-color: transparent; }
.err { color: var(--danger); font-size: 13px; min-height: 18px; margin: 8px 0 0; }
.sheet form .btn-primary { width: 100%; justify-content: center; margin-top: 12px; }
.done { text-align: center; padding: 12px 0 4px; }
.done .tick { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; margin: 0 auto 12px; color: #000; }
.done p { color: var(--text); line-height: 1.6; }
.projects { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.proj {
  display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; padding: 14px;
  border: 1px solid var(--border); border-radius: var(--radius-container); background: var(--bg); text-decoration: none; color: inherit;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.proj:hover { border-color: var(--muted); transform: translateY(-1px); }
.proj:focus-visible { outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color); outline-offset: 2px; }
.thumb { aspect-ratio: 1; max-width: 100%; border-radius: var(--radius-element); }
.proj h3 { margin: 0 0 4px; font-family: var(--display); font-weight: var(--font-weight-normal); font-size: 18px; color: var(--ink); }
.proj p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.tag { display: inline-block; margin-top: 8px; font: var(--font-weight-normal) 11.5px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.proto-note { margin-top: 20px; font-size: 12.5px; color: var(--muted); }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 30; transform: translate(-50%, 12px);
  background: var(--primary); color: var(--on-primary); font-size: 14px; padding: 10px 18px; border-radius: var(--r-pill);
  opacity: 0; transition: opacity var(--t-fast), transform var(--t-fast); pointer-events: none; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Type: headlines Space Grotesk Regular (400); copy text Inter Light (300).
   Buttons, navigation, labels and small notes stay Inter Regular for legibility. */
h1, h2:not(.eyebrow), h3, .statement-text, .wk-text h3 {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-weight: 400 !important;
}
.sub, .sec-head p:not(.eyebrow), .pain p, .pillar > p:not(.eyebrow):not(.refs), .svc p, .collab-for,
.ai-text > p:not(.eyebrow), .about-text > p:not(.eyebrow), .contact-body, .wk-line, .wk-desc, .ticks li {
  font-family: var(--sans) !important; font-weight: 300 !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Slim v1: compact AI tool chips, shorter service cards, quieter reference line */
.ai-in { align-items: center !important; }
.ai-chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.ai-chips li { padding: 14px 22px; border: 1px solid var(--border); border-radius: 999px; font: 400 clamp(18px, 1.8vw, 24px)/1 "Space Grotesk", sans-serif; color: var(--ink); }
@media (max-width: 900px) { .ai-chips { justify-content: flex-start; } }
#services .svc { min-height: 0 !important; }
.pillar .refs { font-size: 13.5px !important; letter-spacing: .01em; }
/* Slim v1: tighter vertical rhythm */
.sec { padding-block: clamp(72px, 8vw, 104px); }
.sec + .sec { padding-top: clamp(32px, 4vw, 48px); }
.voices { padding-block: clamp(56px, 7vw, 96px) !important; }
.statement { padding-block: clamp(72px, 10vw, 140px) clamp(48px, 6vw, 88px); }

/* Selected work: compact, dynamic grid (after "What tiio does") */
.pj-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.pj-head .sec-head { margin: 0; }
.pj-count { margin: 0 0 6px; font: 400 14px/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.pj-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.pj { display: flex; flex-direction: column; gap: 14px; color: inherit; text-decoration: none; }
.pj-media {
  --mx: 50%; --my: 50%;
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--radius-container); overflow: hidden; background: var(--surface);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; will-change: transform;
}
.pj-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s ease; -webkit-user-drag: none; }
.pj-media.ph img { filter: brightness(.35); }
.pj-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.14), transparent 55%); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.pj-logo { position: relative; z-index: 1; color: #fff; transform: scale(1.4); }
.pj-word { position: relative; z-index: 1; font: 400 clamp(22px, 2.4vw, 30px)/1 "Space Grotesk", sans-serif; color: #fff; }
.pj-over {
  position: absolute; inset: auto 0 0 0; z-index: 2; display: flex; flex-direction: column; gap: 8px; padding: 18px;
  background: linear-gradient(to top, rgba(10,14,20,.92), rgba(10,14,20,0)); color: #fff;
  font: 300 14px/1.5 var(--sans); transform: translateY(100%); transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.pj-over:empty { display: none; }
.pj-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.pj-go svg { width: 16px; height: 16px; }
.pj:hover .pj-media, .pj:focus-visible .pj-media { box-shadow: 0 24px 50px -24px rgba(0,0,0,.7); }
.pj:hover .pj-media img, .pj:focus-visible .pj-media img { transform: scale(1.06); }
.pj:hover .pj-media.ph img { filter: brightness(.5); }
.pj:hover .pj-media::after { opacity: 1; }
.pj:hover .pj-over, .pj:focus-visible .pj-over { transform: none; }
.pj:focus-visible { outline: none; }
.pj:focus-visible .pj-media { outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color); outline-offset: 3px; }
.pj-cap { display: flex; flex-direction: column; gap: 2px; }
.pj-cap strong { font: 400 17px/1.3 "Space Grotesk", sans-serif; color: var(--ink); }
.pj-cap span { font: 300 14.5px/1.45 var(--sans); color: var(--text); }
.pj-more-wrap { display: flex; justify-content: center; margin-top: 36px; }
.pj-more-wrap .btn[hidden] { display: none; }
@media (hover: none) { .pj-over { transform: none; } }
@media (max-width: 1000px) { .pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  /* Mobile: swipeable row of cards */
  .pj-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: -16px; padding: 0 16px 6px; scroll-padding-inline: 16px; scrollbar-width: none; }
  .pj-grid::-webkit-scrollbar { display: none; }
  .pj-item { flex: none; width: 78vw; scroll-snap-align: start; }
  .pj-head { margin-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) { .pj-media, .pj-media img, .pj-over { transition: none; } }

/* Selected work v2: compact editorial stagger, square corners */
.pj-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px clamp(24px, 3vw, 48px); align-items: start; }
.pj-wide { grid-column: span 7; }
.pj-sq { grid-column: span 5; }
.pj-off { margin-top: clamp(48px, 7vw, 112px); }
.pj-wide .pj-media { aspect-ratio: 16 / 10; }
.pj-sq .pj-media { aspect-ratio: 1; }
.pj-media, .pj:focus-visible .pj-media { border-radius: 0; }
@media (max-width: 1000px) { .pj-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
@media (max-width: 760px) and (min-width: 601px) {
  .pj-wide, .pj-sq { grid-column: span 12; }
  .pj-off { margin-top: 0; }
  .pj-sq .pj-media { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .pj-off { margin-top: 0; }
  .pj-wide .pj-media, .pj-sq .pj-media { aspect-ratio: 4 / 3; }
}

/* Selected work v3: outlined cards (after IDEO's work grid) – thin frame, inset image, caption inside, square corners */
.pj {
  height: 100%; padding: 14px 14px 20px; gap: 18px; border: 1px solid var(--border); border-radius: 0; background: transparent;
  transition: border-color .3s ease, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, background-color .3s ease; will-change: transform;
}
.pj:hover, .pj:focus-visible { border-color: color-mix(in srgb, var(--ink) 55%, transparent); background: color-mix(in srgb, var(--surface) 35%, transparent); box-shadow: 0 30px 60px -36px rgba(0,0,0,.75); }
.pj:hover .pj-media, .pj:focus-visible .pj-media { box-shadow: none; }
.pj:focus-visible { outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color); outline-offset: 3px; }
.pj:focus-visible .pj-media { outline: none; }
.pj-cap { padding-inline: 4px; }
.pj-item { display: flex; }
.pj-item > .pj { flex: 1; }
@media (max-width: 600px) { .pj { padding: 10px 10px 16px; } }

/* Selected work v4: IDEO-style caption – big headline left, description right, Read more; lower images */
.pj-wide .pj-media { aspect-ratio: 2 / 1; }
.pj-sq .pj-media { aspect-ratio: 4 / 3; }
.pj { gap: 22px; padding: 14px 14px 22px; }
.pj-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px 28px; padding-inline: 6px; align-items: start; }
.pj-sq .pj-body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px 20px; }
.pj-main { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pj-client { margin: 0; font: 400 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pj-title { margin: 0; font: 400 clamp(22px, 2.3vw, 32px)/1.15 "Space Grotesk", sans-serif !important; color: var(--ink); text-wrap: balance; }
.pj-sq .pj-title { font-size: clamp(20px, 1.9vw, 26px) !important; }
.pj-desc { margin: 24px 0 0; font: 300 15px/1.6 var(--sans) !important; color: var(--text); }
.pj-more-link { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; font: 400 15px/1.3 var(--sans); color: var(--accent); text-decoration: none; }
.pj-more-link svg { width: 17px; height: 17px; transition: transform .25s ease; }
.pj-more-link:hover svg, .pj:hover .pj-more-link:not(.is-soon) svg { transform: translateX(4px); }
.pj-more-link:focus-visible { outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color); outline-offset: 3px; }
.pj-more-link.is-soon { opacity: .45; cursor: default; }
@media (max-width: 1100px) { .pj-sq .pj-body { grid-template-columns: 1fr; } .pj-sq .pj-desc { margin-top: 0; } }
@media (max-width: 760px) { .pj-body { grid-template-columns: 1fr; } .pj-desc { margin-top: 0; } }
@media (max-width: 600px) { .pj-wide .pj-media, .pj-sq .pj-media { aspect-ratio: 16 / 9; } .pj-title, .pj-sq .pj-title { font-size: 22px !important; } }
/* More room above "Read more" */
.pj-more-link { margin-top: 24px; }
@media (max-width: 600px) { .pj-more-link { margin-top: 16px; } }
/* "Read more" always at full opacity, also before a case-study link exists */
.pj-more-link.is-soon { opacity: 1; }

/* "What tiio does": wireframe illustrations at the top of the two cards */
.pillar.has-art { padding-top: 28px; }
.pillar-art { display: block; width: 100%; height: auto; margin-bottom: 14px; overflow: visible; }
.pillar-art .wf { stroke: var(--border); stroke-width: 1.2; }
.pillar-art .wf-dim { stroke: color-mix(in srgb, var(--muted) 55%, transparent); stroke-width: 1.2; stroke-linecap: round; }
.pillar-art .wf-fill { fill: color-mix(in srgb, var(--muted) 18%, transparent); stroke: var(--border); }
.pillar-art .wf-dim-fill { fill: color-mix(in srgb, var(--muted) 55%, transparent); }
.pillar-art .wf-row { fill: color-mix(in srgb, var(--accent) 7%, transparent); }
.pillar-art .wf-acc { stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pillar-art .wf-acc-fill { fill: color-mix(in srgb, var(--accent) 14%, transparent); stroke: color-mix(in srgb, var(--accent) 60%, transparent); stroke-width: 1; }
.pillar-art .wf-acc-dot { fill: var(--accent); }
/* Motion: chart draws in, signal waves and pairing ring pulse (only after the card is revealed) */
.pillar-art .draw { stroke-dasharray: 260; stroke-dashoffset: 260; }
.pillar.in .pillar-art .draw, .pillar:not(.reveal) .pillar-art .draw { animation: wfDraw 1.6s .3s cubic-bezier(.4,.1,.2,1) forwards; }
@keyframes wfDraw { to { stroke-dashoffset: 0; } }
.pillar-art .wave { opacity: .15; animation: wfWave 2.4s infinite ease-in-out; }
.pillar-art .w2 { animation-delay: .25s; } .pillar-art .w3 { animation-delay: .5s; }
@keyframes wfWave { 0%, 100% { opacity: .15; } 40% { opacity: 1; } }
.pillar-art .pulse { transform-origin: 384px 96px; animation: wfPulse 2.4s infinite ease-out; }
@keyframes wfPulse { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) {
  .pillar-art .draw { stroke-dashoffset: 0; animation: none !important; }
  .pillar-art .wave, .pillar-art .pulse { animation: none; opacity: .8; }
}
@media (max-width: 640px) { .pillar.has-art { padding-top: 20px; } }
/* Equal cards and equal illustration height, so both headlines line up */
.pillars { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.pillar-art { height: clamp(150px, 16vw, 220px); width: 100%; }
@media (max-width: 1000px) { .pillars { grid-template-columns: 1fr !important; } .pillar-art { height: auto; } }

/* ---------- Background texture: B2B and companion-app wireframes behind hero + slogan ---------- */
.hero, #challenges { position: relative; isolation: isolate; overflow: hidden; }
.hero-in, #challenges .statement-in { position: relative; z-index: 1; }
.bg-wire { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* soft fade toward the centre so the text stays clear */
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, transparent 0 32%, #000 78%);
          mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, transparent 0 32%, #000 78%);
}
.bg-wire::before { /* faint dot grid */
  content: ""; position: absolute; inset: -40px; opacity: .5;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1.4px); background-size: 28px 28px;
  animation: wfGrid 60s linear infinite;
}
@keyframes wfGrid { to { transform: translate(28px, 28px); } }
.wfp { position: absolute; overflow: visible; stroke: color-mix(in srgb, var(--ink) 13%, transparent); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; fill: none;
  animation: wfFloat 18s ease-in-out infinite alternate; }
.wfp .a, #wf-sprite .a { stroke: color-mix(in srgb, var(--accent) 30%, transparent); }
#wf-sprite .draw { stroke-dasharray: 340; stroke-dashoffset: 340; animation: wfLoopDraw 7s ease-in-out infinite; }
@keyframes wfLoopDraw { 0% { stroke-dashoffset: 340; } 45%, 75% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -340; } }
#wf-sprite .wave { animation: wfWave 2.6s ease-in-out infinite; } #wf-sprite .w2 { animation-delay: .3s; } #wf-sprite .w3 { animation-delay: .6s; }
#wf-sprite .pulse { transform-box: fill-box; transform-origin: center; animation: wfPulse 3s ease-out infinite; }
@keyframes wfFloat { 0% { transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)); } 100% { transform: translate3d(var(--dx, 0px), var(--dy, -22px), 0) rotate(calc(var(--r, 0deg) + 1.5deg)); } }
/* Hero placement (around the edges, away from the headline) */
.p1 { width: 420px; height: 260px; left: -60px; top: 40px; --r: -4deg; --dx: 18px; --dy: -24px; animation-duration: 22s; }
.p2 { width: 150px; height: 290px; right: 7%; top: 30px; --r: 6deg; --dy: 26px; animation-duration: 17s; }
.p3 { width: 300px; height: 120px; left: 6%; bottom: 20px; --r: 3deg; --dx: 24px; animation-duration: 20s; }
.p4 { width: 320px; height: 200px; right: -40px; bottom: 10px; --r: -3deg; --dx: -20px; animation-duration: 24s; }
.p5 { width: 120px; height: 150px; left: 28%; top: -30px; --r: -10deg; --dy: 18px; animation-duration: 15s; }
.p6 { width: 260px; height: 180px; right: 26%; bottom: -70px; --r: 4deg; --dy: -18px; animation-duration: 19s; }
/* Slogan placement */
.q1 { width: 320px; height: 200px; right: -30px; top: 40px; --r: 5deg; --dy: 24px; animation-duration: 21s; }
.q2 { width: 150px; height: 290px; right: 16%; bottom: 8%; --r: -7deg; --dx: -16px; animation-duration: 18s; }
.q3 { width: 420px; height: 260px; left: -120px; bottom: 6%; --r: 3deg; --dx: 22px; animation-duration: 25s; }
.q4 { width: 300px; height: 120px; left: 38%; top: 12px; --r: -2deg; --dy: 16px; animation-duration: 17s; }
.bg-wire-2 { -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 30%, transparent 62%, #000 100%); mask-image: linear-gradient(90deg, #000 0, transparent 30%, transparent 62%, #000 100%); }
@media (max-width: 900px) {
  .p5, .p6, .q4 { display: none; }
  .p1 { width: 300px; height: 186px; left: -120px; } .p4 { width: 240px; height: 150px; right: -90px; }
  .p2, .q2 { width: 110px; height: 213px; right: -20px; }
  .q1 { width: 240px; height: 150px; right: -110px; } .q3 { width: 300px; height: 186px; left: -170px; }
}
@media (prefers-reduced-motion: reduce) {
  .wfp, .bg-wire::before, #wf-sprite .draw, #wf-sprite .wave, #wf-sprite .pulse { animation: none !important; }
  #wf-sprite .draw { stroke-dashoffset: 0; }
}

/* Hero-only, detailed wireframes: new sizes + slightly finer lines */
#challenges { overflow: visible; }
.wfp { stroke-width: 1; }
.p1 { width: 520px; height: 330px; left: -110px; top: 24px; }
.p2 { width: 170px; height: 340px; right: 6%; top: 18px; }
.p3 { width: 330px; height: 130px; left: 5%; bottom: 14px; }
.p4 { width: 400px; height: 250px; right: -70px; bottom: -10px; }
.p5 { width: 130px; height: 170px; left: 27%; top: -40px; }
.p6 { width: 300px; height: 230px; right: 24%; bottom: -110px; }
@media (max-width: 900px) {
  .p1 { width: 340px; height: 216px; left: -150px; } .p4 { width: 280px; height: 175px; right: -120px; }
  .p2 { width: 120px; height: 240px; right: -24px; } .p3 { width: 240px; height: 95px; left: -40px; }
}

/* ---------- Hero texture: offset grid of small asterisks, fading out toward the bottom ---------- */
.bg-stars {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='76' height='44' viewBox='0 0 76 44'%3E%3Cg fill='none' stroke='%235a6a80' stroke-width='1' stroke-linecap='round'%3E%3Cpath d='M8.5 11h7M10.25 7.97l3.5 6.06M13.75 7.97l-3.5 6.06'/%3E%3Cpath d='M46.5 33h7M48.25 29.97l3.5 6.06M51.75 29.97l-3.5 6.06'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 76px 44px; background-position: center top; opacity: .7;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 92%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 92%);
}
/* Hero texture v2: dot grid like print / dot-grid paper (replaces the asterisks) */
.bg-stars {
  background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 22%, transparent) 1.1px, transparent 1.6px);
  background-size: 24px 24px; background-position: center top; opacity: 1;
}

/* Hero dot grid v3: starts behind the header menu; dots vary in opacity (fixed pseudo-random tile, 24px grid) */
.hero { overflow: visible; }
.bg-stars {
  top: calc(-1 * var(--head-h, 100px));
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27 width=%27240%27 height=%27240%27 viewBox=%270 0 240 240%27%3E%3Cg fill=%27%23F3F5F8%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%2736%27 cy=%2712%27 r=%271.15%27 fill-opacity=%270.34%27%2F%3E%3Ccircle cx=%2760%27 cy=%2712%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%2784%27 cy=%2712%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%27108%27 cy=%2712%27 r=%271.15%27 fill-opacity=%270.24%27%2F%3E%3Ccircle cx=%27132%27 cy=%2712%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%27156%27 cy=%2712%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%27180%27 cy=%2712%27 r=%271.15%27 fill-opacity=%270.24%27%2F%3E%3Ccircle cx=%27204%27 cy=%2712%27 r=%271.15%27 fill-opacity=%270.24%27%2F%3E%3Ccircle cx=%27228%27 cy=%2712%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%2712%27 cy=%2736%27 r=%271.15%27 fill-opacity=%270.24%27%2F%3E%3Ccircle cx=%2736%27 cy=%2736%27 r=%271.15%27 fill-opacity=%270.24%27%2F%3E%3Ccircle cx=%2760%27 cy=%2736%27 r=%271.15%27 fill-opacity=%270.34%27%2F%3E%3Ccircle cx=%2784%27 cy=%2736%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%27108%27 cy=%2736%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%27132%27 cy=%2736%27 r=%271.15%27 fill-opacity=%270.24%27%2F%3E%3Ccircle cx=%27156%27 cy=%2736%27 r=%271.15%27 fill-opacity=%270.24%27%2F%3E%3Ccircle cx=%27180%27 cy=%2736%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%27204%27 cy=%2736%27 r=%271.15%27 fill-opacity=%270.24%27%2F%3E%3Ccircle cx=%27228%27 cy=%2736%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%2712%27 cy=%2760%27 r=%271.15%27 fill-opacity=%270.34%27%2F%3E%3Ccircle cx=%2736%27 cy=%2760%27 r=%271.15%27 fill-opacity=%270.34%27%2F%3E%3Ccircle cx=%2760%27 cy=%2760%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%2784%27 cy=%2760%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%27108%27 cy=%2760%27 r=%271.15%27 fill-opacity=%270.34%27%2F%3E%3Ccircle cx=%27132%27 cy=%2760%27 r=%271.15%27 fill-opacity=%270.24%27%2F%3E%3Ccircle cx=%27156%27 cy=%2760%27 r=%271.15%27 fill-opacity=%270.24%27%2F%3E%3Ccircle cx=%27180%27 cy=%2760%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%27204%27 cy=%2760%27 r=%271.15%27 fill-opacity=%270.34%27%2F%3E%3Ccircle cx=%27228%27 cy=%2760%27 r=%271.15%27 fill-opacity=%270.34%27%2F%3E%3Ccircle cx=%2712%27 cy=%2784%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%2736%27 cy=%2784%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%2760%27 cy=%2784%27 r=%271.15%27 fill-opacity=%270.34%27%2F%3E%3Ccircle cx=%2784%27 cy=%2784%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%27108%27 cy=%2784%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%27132%27 cy=%2784%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%27156%27 cy=%2784%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%27180%27 cy=%2784%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%27204%27 cy=%2784%27 r=%271.15%27 fill-opacity=%270.34%27%2F%3E%3Ccircle cx=%27228%27 cy=%2784%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%2712%27 cy=%27108%27 r=%271.15%27 fill-opacity=%270.24%27%2F%3E%3Ccircle cx=%2736%27 cy=%27108%27 r=%271.15%27 fill-opacity=%270.34%27%2F%3E%3Ccircle cx=%2760%27 cy=%27108%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%2784%27 cy=%27108%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%27108%27 cy=%27108%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%27132%27 cy=%27108%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%27156%27 cy=%27108%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%27180%27 cy=%27108%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%27204%27 cy=%27108%27 r=%271.15%27 fill-opacity=%270.34%27%2F%3E%3Ccircle cx=%27228%27 cy=%27108%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%2712%27 cy=%27132%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%2736%27 cy=%27132%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%2760%27 cy=%27132%27 r=%271.15%27 fill-opacity=%270.24%27%2F%3E%3Ccircle cx=%2784%27 cy=%27132%27 r=%271.15%27 fill-opacity=%270.34%27%2F%3E%3Ccircle cx=%27108%27 cy=%27132%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%27132%27 cy=%27132%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%27156%27 cy=%27132%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%27180%27 cy=%27132%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%27204%27 cy=%27132%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%27228%27 cy=%27132%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%2712%27 cy=%27156%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%2736%27 cy=%27156%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%2760%27 cy=%27156%27 r=%271.15%27 fill-opacity=%270.24%27%2F%3E%3Ccircle cx=%2784%27 cy=%27156%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%27108%27 cy=%27156%27 r=%271.15%27 fill-opacity=%270.34%27%2F%3E%3Ccircle cx=%27132%27 cy=%27156%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%27156%27 cy=%27156%27 r=%271.15%27 fill-opacity=%270.34%27%2F%3E%3Ccircle cx=%27180%27 cy=%27156%27 r=%271.15%27 fill-opacity=%270.24%27%2F%3E%3Ccircle cx=%27204%27 cy=%27156%27 r=%271.15%27 fill-opacity=%270.24%27%2F%3E%3Ccircle cx=%27228%27 cy=%27156%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%2712%27 cy=%27180%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%2736%27 cy=%27180%27 r=%271.15%27 fill-opacity=%270.24%27%2F%3E%3Ccircle cx=%2760%27 cy=%27180%27 r=%271.15%27 fill-opacity=%270.34%27%2F%3E%3Ccircle cx=%2784%27 cy=%27180%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%27108%27 cy=%27180%27 r=%271.15%27 fill-opacity=%270.24%27%2F%3E%3Ccircle cx=%27132%27 cy=%27180%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%27156%27 cy=%27180%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%27180%27 cy=%27180%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%27204%27 cy=%27180%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%27228%27 cy=%27180%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%2712%27 cy=%27204%27 r=%271.15%27 fill-opacity=%270.24%27%2F%3E%3Ccircle cx=%2736%27 cy=%27204%27 r=%271.15%27 fill-opacity=%270.34%27%2F%3E%3Ccircle cx=%2760%27 cy=%27204%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%2784%27 cy=%27204%27 r=%271.15%27 fill-opacity=%270.34%27%2F%3E%3Ccircle cx=%27108%27 cy=%27204%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%27132%27 cy=%27204%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%27156%27 cy=%27204%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%27180%27 cy=%27204%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%27204%27 cy=%27204%27 r=%271.15%27 fill-opacity=%270.5%27%2F%3E%3Ccircle cx=%27228%27 cy=%27204%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%2712%27 cy=%27228%27 r=%271.15%27 fill-opacity=%270.24%27%2F%3E%3Ccircle cx=%2736%27 cy=%27228%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%2760%27 cy=%27228%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%2784%27 cy=%27228%27 r=%271.15%27 fill-opacity=%270.16%27%2F%3E%3Ccircle cx=%27108%27 cy=%27228%27 r=%271.15%27 fill-opacity=%270.1%27%2F%3E%3Ccircle cx=%27132%27 cy=%27228%27 r=%271.15%27 fill-opacity=%270.34%27%2F%3E%3Ccircle cx=%27156%27 cy=%27228%27 r=%271.15%27 fill-opacity=%270.34%27%2F%3E%3Ccircle cx=%27180%27 cy=%27228%27 r=%271.15%27 fill-opacity=%270.34%27%2F%3E%3Ccircle cx=%27204%27 cy=%27228%27 r=%271.15%27 fill-opacity=%270.34%27%2F%3E%3Ccircle cx=%27228%27 cy=%27228%27 r=%271.15%27 fill-opacity=%270.34%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-size: 240px 240px; background-position: center top;
}
header { background: transparent; transition: background-color .3s ease, box-shadow .3s ease; }
header.scrolled { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
/* Transparent header only where the page opts in (homepage hero with dot grid) */
header { background: var(--bg); }
header.over-hero:not(.scrolled) { background: transparent; box-shadow: none; }
/* More space between the slogan and the challenge rows */
.challenge-list { margin-top: clamp(88px, 11vw, 160px); }
/* Small intro above the challenge rows */
.challenge-intro { margin-top: clamp(88px, 11vw, 160px); display: flex; flex-direction: column; gap: 10px; }
.challenge-intro .eyebrow { margin: 0; color: var(--accent); }
.challenge-intro p:not(.eyebrow) { margin: 0; font: 300 18px/1.5 var(--sans); color: var(--text); }
.challenge-intro + .challenge-list { margin-top: 32px; }
/* References: equal-height slides, photo + name pinned to the same baseline on every slide */
.ref-rail { align-items: stretch !important; }
.ref-slide { display: flex; }
.ref-slide figure { flex: 1; }
.ref-slide .ref-by { margin-top: auto; padding-top: clamp(28px, 3vw, 44px); }
/* Contact: text aligned with the page's left edge (no extra left padding), portrait moved to the right, smaller body copy */
.contact-in { padding-left: max(32px, env(safe-area-inset-left, 0px), calc((100% - 1280px) / 2)) !important; padding-right: max(32px, calc((100% - 1280px) / 2)) !important; }
.contact-in > * { max-width: min(760px, 62%); }
.contact-photo { left: auto !important; right: max(0px, calc((100vw - 1440px) / 2)); }
.contact-body { font-size: 17px !important; line-height: 1.65 !important; margin-top: 20px !important; }
@media (max-width: 820px) {
  .contact-in > * { max-width: none; }
  .contact-in { padding-inline: max(16px, env(safe-area-inset-left, 0px)) !important; }
  .contact-photo { right: auto; }
}
/* Portrait on the right: mirror it so the cropped edge sits against the screen edge and the face turns toward the text */
@media (min-width: 821px) { .contact-photo { transform: scaleX(-1); } }
/* Contact headline: narrower block, "Let's talk." always on its own line */
#contact-title { max-width: 15ch !important; text-wrap: balance; }
@media (min-width: 821px) { #contact-title { max-width: none !important; white-space: nowrap; } }
/* Contact headline (fix): wraps instead of running into the portrait; slightly smaller */
@media (min-width: 821px) { #contact-title { white-space: normal; max-width: min(720px, 60%) !important; font-size: clamp(34px, 4.1vw, 56px) !important; } }
/* Contact v3: portrait back on the left (unmirrored), text to its right; headline always 2 lines, small body copy kept */
.contact-photo { left: max(0px, calc((100vw - 1440px) / 2)) !important; right: auto !important; transform: none !important; }
.contact-in { padding-left: max(440px, calc(50% - 325px)) !important; padding-right: max(32px, env(safe-area-inset-right, 0px)) !important; }
.contact-in > * { max-width: 760px; }
@media (min-width: 821px) { #contact-title { max-width: none !important; white-space: nowrap; font-size: clamp(34px, 3.9vw, 56px) !important; } }
@media (max-width: 1100px) { .contact-in { padding-left: 380px !important; } .contact-photo { left: 0 !important; } }
@media (max-width: 820px) {
  .contact-in { padding-inline: max(16px, env(safe-area-inset-left, 0px)) !important; }
  .contact-in > * { max-width: none; }
  #contact-title { white-space: normal; }
}
/* Contact portrait flush with the left screen edge at every width */
.contact-photo { left: 0 !important; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 88px); padding-bottom: 28px; color: var(--text); }
.foot-in { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 380px; }
.foot-logo svg { width: 87px; height: 30px; display: block; }
.foot-brand p { margin: 0; font: 300 15px/1.6 var(--sans); color: var(--text); }
.foot-h { margin: 0 0 14px; font: 400 12px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.foot-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font: 400 15px/1.4 var(--sans); color: var(--text); text-decoration: none; transition: color var(--t-fast); }
.foot-col a:hover { color: var(--ink); }
.foot-col a:focus-visible, .foot-top:focus-visible { outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color); outline-offset: 3px; }
.foot-bar { max-width: 1280px; margin: clamp(48px, 6vw, 72px) auto 0; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-bar p { margin: 0; font: 400 13px/1.4 var(--sans); color: var(--muted); }
.foot-top { display: inline-flex; align-items: center; gap: 6px; font: 400 13px/1.4 var(--sans); color: var(--muted); text-decoration: none; }
.foot-top:hover { color: var(--ink); }
.foot-top svg { width: 15px; height: 15px; transition: transform var(--t-fast); }
.foot-top:hover svg { transform: translateY(-2px); }
@media (max-width: 900px) { .foot-in { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; max-width: none; } }
@media (max-width: 560px) { .foot-in { grid-template-columns: 1fr 1fr; } }
/* Footer: minimal single row */
.site-foot-min { padding-block: 28px; border-top: 1px solid var(--line); }
.foot-row { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.foot-left { display: flex; align-items: center; gap: 20px; }
.site-foot-min .foot-logo svg { width: 52px; height: 18px; }
.foot-left p { margin: 0; font: 400 13px/1.4 var(--sans); color: var(--muted); }
.foot-links { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { font: 400 13px/1.4 var(--sans); color: var(--muted); text-decoration: none; transition: color var(--t-fast); }
.foot-links a:hover { color: var(--ink); }
.foot-links a:focus-visible { outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color); outline-offset: 3px; }
@media (max-width: 640px) { .foot-row { flex-direction: column; align-items: flex-start; } }
/* Contact: same dot grid as the hero, but fading from the bottom (visible) to the top (gone) */
.contact { isolation: isolate; }
.bg-stars.bg-stars-up { top: 0; -webkit-mask-image: linear-gradient(to top, #000 0%, #000 35%, transparent 92%); mask-image: linear-gradient(to top, #000 0%, #000 35%, transparent 92%); background-position: center bottom; }
.contact .contact-photo { z-index: 1; }
.contact .contact-in { z-index: 2; }
/* Contact: second, quieter line under the main copy */
.contact-body.contact-note { margin-top: 10px !important; font-size: 15px !important; color: var(--muted) !important; }
/* Hero "Book a free Call": IBM Carbon calendar icon */
.btn .btn-ico { width: 16px; height: 16px; flex: none; }
/* Calendar icon spins once on hover/focus of its button */
.btn .btn-ico { transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.btn:hover .btn-ico, .btn:focus-visible .btn-ico { transform: rotate(360deg); }
@media (prefers-reduced-motion: reduce) { .btn:hover .btn-ico, .btn:focus-visible .btn-ico { transform: none; } }

/* ---------- Booking modal (Calendly inside, tiio styling) ---------- */
html.bk-open { overflow: hidden; }
.bk { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; }
.bk[hidden] { display: none; }
.bk-scrim { position: absolute; inset: 0; background: rgba(10, 14, 20, .72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s ease; }
.bk-dialog {
  position: relative; display: flex; flex-direction: column; width: min(1040px, 100%); height: min(780px, calc(100vh - 48px));
  background: var(--bg); border: 1px solid var(--border); box-shadow: 0 40px 120px -40px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(16px) scale(.985); transition: opacity .3s cubic-bezier(.2,.7,.2,1), transform .3s cubic-bezier(.2,.7,.2,1);
}
.bk.is-open .bk-scrim { opacity: 1; }
.bk.is-open .bk-dialog { opacity: 1; transform: none; }
.bk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 26px 28px 20px; border-bottom: 1px solid var(--line);
  background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 14%, transparent) 1px, transparent 1.5px); background-size: 24px 24px; }
.bk-eyebrow { margin: 0 0 8px; font: 400 12px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.bk-head h2 { margin: 0; font: 400 clamp(26px, 3vw, 34px)/1.15 "Space Grotesk", sans-serif; color: var(--ink); }
.bk-head h2 .dot { color: var(--accent); }
.bk-sub { margin: 8px 0 0; max-width: 560px; font: 300 15px/1.55 var(--sans); color: var(--text); }
.bk-x { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: border-color .2s ease, transform .3s ease; }
.bk-x svg { width: 18px; height: 18px; }
.bk-x:hover { border-color: var(--ink); transform: rotate(90deg); }
.bk-x:focus-visible, .bk-foot a:focus-visible { outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color); outline-offset: 3px; }
.bk-body { position: relative; flex: 1; min-height: 0; }
.bk-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .4s ease; background: var(--bg); }
.bk.is-loaded .bk-frame { opacity: 1; }
.bk-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--muted); }
.bk-loading > span { display: inline-block; width: 7px; height: 7px; margin: 0 3px; border-radius: 50%; background: var(--accent); animation: bkDot 1s infinite ease-in-out; }
.bk-loading > span:nth-child(2) { animation-delay: .15s; } .bk-loading > span:nth-child(3) { animation-delay: .3s; }
.bk-loading { flex-direction: row; flex-wrap: wrap; align-content: center; }
.bk-loading p { flex-basis: 100%; text-align: center; margin: 6px 0 0; font: 400 14px/1.4 var(--sans); }
.bk.is-loaded .bk-loading { display: none; }
@keyframes bkDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.bk-foot { margin: 0; padding: 12px 28px; border-top: 1px solid var(--line); font: 400 12.5px/1.5 var(--sans); color: var(--muted); }
.bk-foot a { color: var(--text); }
@media (max-width: 640px) {
  .bk { padding: 0; }
  .bk-dialog { width: 100%; height: 100%; border: 0; }
  .bk-head { padding: 18px 16px 14px; }
  .bk-foot { padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) { .bk-scrim, .bk-dialog, .bk-frame, .bk-x { transition: none; } .bk-loading > span { animation: none; } }
/* Booking modal: compact width so Calendly renders its full-bleed (coloured) layout */
.bk-dialog { width: min(600px, 100%); }

/* Collaboration: price sits at the bottom of each card, aligned across cards */
.collab-price { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.collab-link { margin-top: 0; padding-top: 4px; }

/* Tool chips inside a service card (AI Experience Lab®) */
.svc-tools { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.svc-tools li { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font: 400 13px/1 var(--sans); color: var(--text); }
.statement-text .dot { color: var(--accent); }
.statement-text .dot { transition: color var(--t-med, .3s); }
.statement-text .w:not(.lit) .dot { color: inherit; }
.challenge-intro + .challenge-list { margin-top: -12px; }

/* Services headline: centred statement, same size and scroll-lighting as the slogan */
.svc-head { max-width: 1100px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.svc-head h2.statement-text { max-width: 1100px; font: var(--font-weight-normal) clamp(30px, 4.8vw, 64px)/1.18 var(--display); letter-spacing: -.01em; }
#services { background: transparent; }
#services .svc-icon, #services .svc:hover .svc-icon, #services .svc:focus-visible .svc-icon { width: 32px; height: 32px; place-items: start; border: 0; border-radius: 0; }
#services .svc-icon svg { width: 32px; height: 32px; }
#voices .work-head { padding-inline: 0; }
.ref-text .w { transition: color .35s ease; }

/* Project cards with a case study: the whole card is clickable (stretched "Read more" link) */
.pj-item.has-link .pj { position: relative; cursor: pointer; }
.pj-item.has-link .pj-more-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }

/* Subtle corners on all boxes site-wide (cards, panels, images, dialogs).
   Pills (buttons, chips) and circles (photos, icons) keep --radius-full / 50%. */
:root, [data-astryx-theme] { --radius-inner: 2px; --radius-element: 4px; --radius-container: 6px; --radius-page: 8px; }
.bk-dialog, .pj, .ccard { border-radius: var(--radius-container); }
.pj-media, .wk-media, .media, .thumb { border-radius: var(--radius-element); }
.site-foot-min { border-top: 0; }

/* Header hides while scrolling down, returns on scroll up (js/header.js) */
header { transition: transform .35s cubic-bezier(.2, .7, .2, 1), background var(--t-med), box-shadow var(--t-med); }
html.hdr-hidden header { transform: translateY(-100%); }
html.bk-open header, html.cs-lb-open header { transform: none; }
header, header.scrolled, header.over-hero { background: transparent; box-shadow: none; }

/* Dot texture starts in the footer and rises into the contact section above it */
.site-foot-min { position: relative; isolation: isolate; overflow: hidden; }
.site-foot-min .foot-row { position: relative; z-index: 1; }
.bg-stars.bg-stars-foot { display: none; top: 0; -webkit-mask-image: none; mask-image: none; background-position: center bottom; }
.contact + .site-foot-min .bg-stars-foot { display: block; }
.contact .bg-stars.bg-stars-up { -webkit-mask-image: linear-gradient(to top, #000 0%, #000 45%, transparent 95%); mask-image: linear-gradient(to top, #000 0%, #000 45%, transparent 95%); }

/* Project cards: no shadow, tilt or pointer glare on hover */
.pj, .pj:hover, .pj:focus-visible { box-shadow: none; transform: none !important; }
.pj:hover .pj-media, .pj:focus-visible .pj-media { box-shadow: none; }
.pj-media::after { display: none; }

/* Contact portrait fades out from the bottom: lower half transparent → opaque at the middle */
.contact .contact-photo { -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 50%); mask-image: linear-gradient(to top, transparent 0%, #000 50%); }

/* Contact portrait: slide in from the left (js/header.js) */
.contact .contact-photo.slide-ready { opacity: 0; translate: -120px 0; transition: opacity .9s ease, translate 1.2s cubic-bezier(.2, .7, .2, 1); }
.contact .contact-photo.slide-ready.slide-in { opacity: 1; translate: 0 0; }
.site-foot-min .foot-row { max-width: none; }  /* same edges as the header: full width with the page gutter */
/* Footer dots on every page (the section above fades the texture in from the bottom) */
.bg-stars.bg-stars-foot { display: block; }
/* Footer dots continue the 24px grid of the section above without a break: the section's dots sit on its bottom edge, the footer's on its top edge */
.bg-stars.bg-stars-foot { background-position: center top; }
/* More breathing room around the contact section (desktop; mobile keeps its own spacing) */
@media (min-width: 821px) { .contact .contact-in { padding-block: clamp(120px, 11vw, 176px); } }


/* All buttons share the hero button size: 14px text, 45px high, 8px 20px padding, 16px icons */
.btn, .menu a.btn-primary, .contact-ctas .btn, .cs3-end .btn { font-size: 14px; line-height: 27px; min-height: 45px; padding: 8px 20px; gap: 7px; }
.contact-ctas .btn .btn-ico, .contact-ctas .btn svg { width: 16px; height: 16px; }
/* Header CTA = hero "Book a free Call" (outline): not styled like the menu links */
.menu a.btn.btn-outline, .menu .link a.btn.btn-outline { font-size: 14px; color: var(--ink); opacity: 1; }

/* Testimonials pinned while scrolling (desktop): the section is tall, its stage sticks to the viewport */
.voices.is-pinned { overflow: clip !important; padding-block: 0 !important; }
.voices.is-pinned .voices-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.voices.is-pinned .ref-rail { overflow: hidden !important; scroll-snap-type: none !important; scroll-behavior: auto !important; }
.voices, .voices * { overflow-anchor: none; }
.voices.is-pinned .voices-pin > .work-head { width: 100%; align-self: stretch; box-sizing: border-box; }
.pj-more-link.is-locked svg, .pj:hover .pj-more-link.is-locked svg { transform: none; width: 16px; height: 16px; }

/* Password modal for protected case studies (js/unlock-modal.js) — same look as the booking modal */
.pw-modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; }
.pw-scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s ease; }
.pw-dialog { position: relative; width: min(520px, 100%); padding: clamp(28px, 4vw, 44px); border: 1px solid var(--border); border-radius: var(--radius-container); background: var(--bg); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8); opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .25s ease, transform .3s cubic-bezier(.2, .7, .2, 1); }
.pw-modal.is-open .pw-scrim, .pw-modal.is-open .pw-dialog { opacity: 1; transform: none; }
.pw-x { position: absolute; top: 16px; right: 16px; }
.pw-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; border: 1px solid var(--border); border-radius: var(--radius-container); color: var(--accent); }
.pw-ico svg { width: 24px; height: 24px; }
.pw-kicker { margin: 0 0 12px; font: 400 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pw-dialog h2 { margin: 0; font: 400 clamp(26px, 3vw, 34px)/1.15 var(--display); color: var(--ink); text-wrap: balance; }
.pw-dialog h2 .dot { color: var(--accent); }
.pw-text { margin: 14px 0 0; font: 300 16px/1.6 var(--sans); color: var(--text); }
.pw-text a { color: var(--ink); }
.pw-form { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.pw-form input { flex: 1 1 200px; min-height: 45px; padding: 8px 18px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--ink); font: 400 15px/1.2 var(--sans); }
.pw-form input:focus { outline: none; border-color: var(--ink); }
.pw-form .btn:disabled { opacity: .5; }
.pw-err { margin: 12px 0 0; font: 400 14px/1.4 var(--sans); color: #FF8A8A; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Packages (Collaboration): Product Sprint / Foundation / Evolution ---------- */
.pk { display: flex; flex-direction: column; padding: clamp(26px, 2.4vw, 34px); border: 1px solid var(--border); border-radius: var(--radius-container); transition: border-color var(--t-med); }
.pk:hover { border-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.pk-n { margin: 0 0 18px; font: 400 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-variant-numeric: tabular-nums; }
.pk h3 { margin: 0; font: 400 clamp(28px, 2.6vw, 36px)/1.12 var(--display); color: var(--ink); }
.pk-tag { margin: 14px 0 0; font: 500 16px/1.45 var(--sans); color: var(--ink); }
.pk-desc { margin: 16px 0 0; font: 300 16px/1.65 var(--sans); color: var(--text); }
.pk-inc { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.pk-inc-h { margin: 0 0 14px; font: 400 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pk .ticks { padding-top: 0; border-top: 0; gap: 12px; }
.pk .ticks li { font-size: 15px; color: var(--text); }
.pk-note { margin: 16px 0 0; font: 300 14px/1.5 var(--sans); color: var(--muted); }
.pk-price { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.pk-inc + .pk-price { margin-top: auto; }
.pk-amount { margin: 26px 0 0; font: 400 clamp(30px, 3vw, 40px)/1.05 var(--display); color: var(--ink); letter-spacing: -.01em; }
.pk-amount span { font: 300 16px/1 var(--sans); color: var(--muted); letter-spacing: 0; margin-right: 4px; }
.pk-meta { margin: 8px 0 0; font: 300 14px/1.5 var(--sans); color: var(--muted); }
.pk-cta { margin-top: 24px; width: 100%; justify-content: center; }
.pk-cta svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.pk-cta:hover svg { transform: translate(2px, -2px); }
/* Desktop: the three cards share rows, so "What's included", prices and buttons line up */
@media (min-width: 1025px) {
  .pk-grid { grid-template-rows: repeat(6, auto); row-gap: 0; }
  @supports (grid-template-rows: subgrid) {
    .pk { display: grid; grid-row: span 6; grid-template-rows: subgrid; }
    .pk-price { margin-top: 26px; }
  }
}
@media (min-width: 641px) and (max-width: 1024px) { .pk { flex: none; width: min(420px, 70vw); scroll-snap-align: start; } }
.pk-price, .pk-inc + .pk-price { margin-top: 32px; } @media (max-width: 1024px) { .pk-price { margin-top: auto; } .pk-inc { margin-bottom: 32px; } }

/* ---------- Customer challenges: accordion (same editorial rows as before, now expandable) ---------- */
#challenges .acc { margin-left: 0; margin-right: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
#challenges .acc-item { border-top: 1px solid var(--line); }
#challenges .acc-h { margin: 0; font: inherit; }
#challenges .acc-btn {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer;
  display: grid; grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1fr) 32px; gap: 8px 40px; align-items: baseline;
  padding: 32px 0;
}
#challenges .acc-btn:focus-visible { outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color); outline-offset: 6px; border-radius: var(--radius-element); }
#challenges .acc-n { font: var(--font-weight-normal) 14px/1 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; }
#challenges .acc-title { font: var(--font-weight-normal) clamp(22px, 2.6vw, 34px)/1.2 var(--display); color: color-mix(in srgb, var(--muted) 85%, var(--ink)); transition: color var(--t-med), transform var(--t-med); }
#challenges .acc-btn:hover .acc-title, #challenges .acc-item.is-open .acc-title { color: var(--ink); }
#challenges .acc-btn:hover .acc-title { transform: translateX(8px); }
#challenges .acc-desc { font: 300 16.5px/1.6 var(--sans); color: var(--text); }
/* plus / minus */
#challenges .acc-ico { position: relative; align-self: center; justify-self: end; width: 20px; height: 20px; color: var(--ink); }
#challenges .acc-ico::before, #challenges .acc-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: currentColor; border-radius: 1px; transform: translate(-50%, -50%); transition: transform .25s ease, opacity .25s ease; }
#challenges .acc-ico::after { transform: translate(-50%, -50%) rotate(90deg); }
#challenges .acc-item.is-open .acc-ico::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
/* panel: grows smoothly (0fr → 1fr), content sits under the description */
#challenges .acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
#challenges .acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
#challenges .acc-panel-in { overflow: hidden; display: grid; grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1fr) 32px; column-gap: 40px; }
#challenges .acc-body { grid-column: 3; padding-bottom: 36px; }
#challenges .acc-label { margin: 0 0 10px; font: 400 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
#challenges .acc-sol { margin: 0; font: 300 16.5px/1.6 var(--sans); color: var(--ink); }
#challenges .acc-links { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
#challenges .acc-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: var(--accent); text-decoration: none; font: 400 15px/1.3 var(--sans); }
#challenges .acc-links a svg { width: 17px; height: 17px; transition: transform var(--t-fast); }
#challenges .acc-links a:hover svg { transform: translateX(4px); }
#challenges .acc-links a:focus-visible { outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color); outline-offset: 4px; border-radius: 4px; }
@media (max-width: 800px) {
  #challenges .acc-btn { grid-template-columns: 40px minmax(0, 1fr) 28px; gap: 10px 14px; padding: 24px 0; min-height: 56px; }
  #challenges .acc-desc { grid-column: 2 / 4; grid-row: 2; font-size: 16px; }
  #challenges .acc-ico { grid-column: 3; grid-row: 1; }
  #challenges .acc-panel-in { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; }
  #challenges .acc-body { grid-column: 2; padding-bottom: 28px; }
  #challenges .acc-btn:hover .acc-title { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  #challenges .acc-panel, #challenges .acc-ico::before, #challenges .acc-ico::after, #challenges .acc-title { transition: none; }
}
/* Slogan: the last words stay in the muted text colour */
.statement-text .w.tail.lit { color: var(--muted); }
.statement-text .w.tail:not(.lit) { color: color-mix(in srgb, var(--muted) 45%, var(--bg)); }
.statement-text .w.tail.lit .dot { color: var(--accent); }
/* Package card highlighted when reached from a challenge's service link */
@keyframes pkFlash { 0% { border-color: var(--accent); } 100% { border-color: var(--border); } }
.pk.is-flash { animation: pkFlash 1.6s ease-out; }
@media (prefers-reduced-motion: reduce) { .pk.is-flash { animation: none; } }

/* Hero headline (two lines: "Product strategy and design" / muted "that goes beyond the next release."):
   wider than the 880px hero column so the second line fits on one line on desktop */
#hero #headline{width:min(1180px,calc(100vw - 48px));margin-inline:calc((100% - min(1180px,calc(100vw - 48px))) / 2);font-size:clamp(34px,4.6vw,64px);text-wrap:balance}

/* Product specialization (#focus): headline and intro centred */
#focus .sec-head{align-items:center;text-align:center;margin-inline:auto}
#focus .sec-head p{margin-inline:auto;max-width:720px;text-wrap:pretty}

/* Challenges intro line ("Common product challenges tiio helps solve."): slightly smaller */
#challenges .challenge-intro p{font-size:16px;line-height:24px}

/* Pricing amounts: smaller; the fixed price in white, the custom ones in grey */
.pk-amount{font-size:clamp(24px,2.2vw,28px);color:var(--ink)}
.pk-amount.is-custom{color:var(--muted)}

/* Testimonials: narrower quote, person closer to it */
.ref-slide figure{gap:24px}
.ref-slide .ref-text{max-width:880px}
/* Testimonials: slightly smaller text; slides as wide as the quote and closer together */
.ref-slide .ref-text{font-size:clamp(22px,2.2vw,28px);line-height:1.4}
@media (min-width: 801px){ .ref-slide{width:min(880px,84vw)} }
.ref-rail{gap:clamp(40px,5vw,64px) !important}
/* Testimonials: the same 24px between quote and person on every slide (no bottom alignment) */
.ref-slide .ref-by{margin-top:0;padding-top:0}

/* Testimonials (pinned): content starts near the top instead of centred in the viewport → less space above */
.voices.is-pinned .voices-pin{justify-content:flex-start;padding-top:clamp(96px,12vh,140px);box-sizing:border-box}

/* Testimonials (pinned): the pinned block fits its content (JS centres it while pinned) */
.voices.is-pinned .voices-pin{height:auto !important;justify-content:flex-start;padding-block:clamp(96px,12vh,140px) clamp(80px,10vh,120px)}

/* ---------- FAQ: headline left, accordion right (same plus/minus, lines and motion as the challenges) ---------- */
#faq .faq-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(48px, 6vw, 96px); align-items: start; }
#faq .faq-head { margin: 0; position: sticky; top: 120px; }
#faq .faq-head h2 { font-size: clamp(30px, 3.4vw, 44px); }
#faq .acc { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
#faq .acc-item { border-top: 1px solid var(--line); }
#faq .acc-h { margin: 0; font: inherit; }
#faq .acc-btn {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer;
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; gap: 16px; align-items: baseline;
  padding: 22px 0; min-height: 56px;
}
#faq .acc-btn:focus-visible { outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color); outline-offset: 4px; border-radius: var(--radius-element); }
#faq .acc-n { font: var(--font-weight-normal) 13px/1 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; }
#faq .acc-q { font: 400 18px/1.45 var(--sans); color: var(--text); transition: color var(--t-med); }
#faq .acc-btn:hover .acc-q, #faq .acc-item.is-open .acc-q { color: var(--ink); }
#faq .acc-ico { position: relative; align-self: center; justify-self: end; width: 18px; height: 18px; color: var(--ink); }
#faq .acc-ico::before, #faq .acc-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; border-radius: 1px; transform: translate(-50%, -50%); transition: transform .25s ease, opacity .25s ease; }
#faq .acc-ico::after { transform: translate(-50%, -50%) rotate(90deg); }
#faq .acc-item.is-open .acc-ico::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
#faq .acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
#faq .acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
#faq .acc-panel-in { overflow: hidden; padding-left: 56px; padding-right: 40px; }
#faq .acc-a { margin: 0; padding-bottom: 24px; font: 300 16px/1.65 var(--sans); color: var(--text); max-width: 640px; }
@media (max-width: 900px) {
  #faq .faq-in { grid-template-columns: 1fr; }
  #faq .faq-head { position: static; }
}
@media (max-width: 640px) {
  #faq .acc-btn { grid-template-columns: 32px minmax(0, 1fr) 22px; gap: 12px; padding: 20px 0; }
  #faq .acc-q { font-size: 17px; }
  #faq .acc-panel-in { padding-left: 44px; padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #faq .acc-panel, #faq .acc-ico::before, #faq .acc-ico::after, #faq .acc-q { transition: none; }
}

/* ---------- AI-ready product foundations: Define → Enable → Evolve, plus an illustrative prompt → prototype demo ---------- */
#foundations .fd-head { margin-bottom: 64px; }
/* Process: three connected stages */
.fd-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; row-gap: 0; margin: 0; padding: 0; list-style: none; }
.fd-step { display: flex; flex-direction: column; min-width: 0; }
.fd-node { position: relative; display: flex; align-items: center; gap: 14px; margin: 0 0 20px; }
.fd-num { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--accent); border-radius: 50%; background: var(--bg); font: 400 13px/1 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; }
.fd-label { position: relative; z-index: 1; padding-right: 14px; background: var(--bg); font: 400 12px/1.4 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
/* connector to the next stage: grey line, an accent line draws over it once the stage is revealed */
.fd-step:nth-child(-n+2) .fd-node::before { content: ""; position: absolute; left: 36px; right: -32px; top: 50%; height: 1px;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 0 / 0% 100%, var(--border); transition: background-size 1.1s .35s cubic-bezier(.4, .1, .2, 1); }
.fd-step:nth-child(-n+2) .fd-node::after { content: ""; position: absolute; right: -30px; top: 50%; width: 7px; height: 7px; border-top: 1px solid var(--border); border-right: 1px solid var(--border); transform: translateY(-50%) rotate(45deg); transition: border-color .3s 1.3s; }
.fd-step.in .fd-node::before, html:not(.js-reveal) .fd-step .fd-node::before { background-size: 100% 100%, auto; }
.fd-step.in .fd-node::after, html:not(.js-reveal) .fd-step .fd-node::after { border-color: var(--accent); }
.fd-step:nth-of-type(2) .fd-node::before { transition-delay: .55s; }
.fd-frame { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-container); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.fd-art { height: auto !important; margin: 0 !important; aspect-ratio: 2 / 1; }
.fd-art .fd-swatch { fill: var(--accent); }
.fd-art .fd-draw { stroke-dasharray: 220; stroke-dashoffset: 220; }
.fd-step.in .fd-art .fd-draw, html:not(.js-reveal) .fd-art .fd-draw { animation: wfDraw 1.6s .5s cubic-bezier(.4, .1, .2, 1) forwards; }
.fd-art .fd-variant { transition: transform .9s .6s cubic-bezier(.2, .7, .2, 1), opacity .9s .6s; transform: translate(-14px, 10px); opacity: 0; }
.fd-step.in .fd-art .fd-variant, html:not(.js-reveal) .fd-art .fd-variant { transform: none; opacity: 1; }
.fd-step h3 { margin: 22px 0 0; font: 400 clamp(19px, 1.6vw, 22px)/1.3 var(--display); color: var(--ink); }
.fd-step > p:not(.fd-node) { margin: 10px 0 0; font: 300 15.5px/1.6 var(--sans); color: var(--text); }
.fd-step .tags { margin-top: 16px; }
.fd-step .tags li { font-size: 13px; padding: 2px 11px; }
/* return loop from Evolve back to Enable */
.fd-loop { grid-column: 2 / 4; position: relative; height: 34px; margin: 20px calc((100% - 32px) / 4) 0; border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); border-top: 0; border-radius: 0 0 var(--radius-container) var(--radius-container); }
.fd-loop::before { content: ""; position: absolute; left: -4px; top: -2px; width: 7px; height: 7px; border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); transform: rotate(45deg); }
.fd-loop span { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); padding: 0 12px; background: var(--bg); white-space: nowrap; font: 400 13px/1.4 var(--sans); color: var(--muted); }

/* Demo: prompt + product context → generated dashboard */
.fd-demo { margin: 88px 0 0; padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-page); background: color-mix(in srgb, var(--surface) 40%, transparent); }
.fd-demo-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 26px; }
.fd-demo-head h3 { margin: 0; font: 400 clamp(22px, 2.2vw, 30px)/1.25 var(--display); color: var(--ink); }
.fd-demo-head h3 .dot { color: var(--accent); }
.fd-demo-note { margin: 0; padding: 4px 12px; border: 1px solid var(--line); border-radius: var(--r-pill); font: 400 12.5px/1.5 var(--sans); color: var(--muted); }
.fd-demo-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(20px, 2.6vw, 36px); align-items: start; }
.fd-mini { margin: 0 0 10px; font: 400 11.5px/1.4 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fd-prompt { margin-bottom: 26px; padding: 16px 16px 14px; border: 1px solid var(--border); border-radius: var(--radius-container); background: var(--bg); }
.fd-prompt-text { margin: 0; min-height: 4.8em; font: 300 15px/1.6 var(--sans); color: var(--ink); }
.fd-demo.is-typing .fd-prompt-text::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: fdCaret .8s steps(1) infinite; }
@keyframes fdCaret { 50% { opacity: 0; } }
.fd-run { display: inline-flex; align-items: center; margin-top: 14px; padding: 0 16px; height: 34px; border: 1px solid var(--border); border-radius: var(--r-pill); font: 400 13px/1 var(--sans); color: var(--muted); transition: color .3s, border-color .3s, background-color .3s; }
.fd-demo.is-run .fd-run, .fd-demo.is-done .fd-run { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.fd-context { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.fd-context li { display: flex; align-items: center; gap: 12px; font: 300 14.5px/1.45 var(--sans); color: var(--muted); transition: color .35s; }
.fd-ck { position: relative; flex: none; width: 18px; height: 18px; border: 1px solid var(--border); border-radius: 50%; transition: border-color .35s, background-color .35s; }
.fd-ck::after { content: ""; position: absolute; left: 5px; top: 5.5px; width: 6px; height: 3px; border-left: 1.5px solid var(--bg); border-bottom: 1.5px solid var(--bg); transform: rotate(-45deg); opacity: 0; transition: opacity .35s; }
.fd-context li.on { color: var(--ink); }
.fd-context li.on .fd-ck { border-color: var(--accent); background: var(--accent); }
.fd-context li.on .fd-ck::after { opacity: 1; }
/* The generated B2B interface */
.fd-app { border: 1px solid var(--border); border-radius: var(--radius-container); background: var(--bg); overflow: hidden; font-family: var(--sans); }
.fd-app-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.fd-app-bar span { width: 7px; height: 7px; border: 1px solid var(--border); border-radius: 50%; }
.fd-app-bar b { margin-left: 10px; font: 400 12px/1 var(--sans); color: var(--muted); }
.fd-app-in { display: grid; gap: 12px; padding: 14px; }
.fd-app [data-k] { transition: opacity .5s cubic-bezier(.2, .7, .2, 1), transform .5s cubic-bezier(.2, .7, .2, 1); }
.fd-demo.is-armed .fd-app [data-k]:not(.on) { opacity: 0; transform: translateY(10px); }
.fd-app [data-k].on { outline: 1px solid color-mix(in srgb, var(--accent) 0%, transparent); }
.fd-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fd-chip, .fd-export { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border: 1px solid var(--line); border-radius: var(--radius-element); font-size: 12px; color: var(--text); white-space: nowrap; }
.fd-chip i, .fd-export i { font-style: normal; color: var(--muted); font-size: 10px; }
.fd-chip-on em { width: 22px; height: 12px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 22%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent); position: relative; }
.fd-chip-on em::after { content: ""; position: absolute; right: 1px; top: 1px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.fd-export { margin-left: auto; border-color: var(--ink); color: var(--ink); }
.fd-export i { color: var(--ink); font-size: 11px; }
.fd-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fd-kpis > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-element); }
.fd-kpis small { display: block; font-size: 11px; color: var(--muted); }
.fd-kpis strong { display: block; margin-top: 4px; font: 400 clamp(16px, 1.6vw, 20px)/1.2 var(--display); color: var(--ink); }
.fd-kpis span, .fd-table .up, .fd-table .down { font-size: 11px; }
.fd-app .up { color: color-mix(in srgb, var(--accent) 85%, var(--ink)); }
.fd-app .down { color: var(--muted); }
.fd-chart { padding: 10px 12px 6px; border: 1px solid var(--line); border-radius: var(--radius-element); }
.fd-legend { display: flex; gap: 16px; font-size: 11px; color: var(--muted); }
.fd-legend span::before { content: ""; display: inline-block; width: 12px; height: 2px; margin-right: 6px; vertical-align: middle; background: var(--accent); }
.fd-legend .prev::before { background: none; border-top: 1px dashed var(--muted); height: 0; }
.fd-chart svg { display: block; width: 100%; height: clamp(70px, 8vw, 104px); margin-top: 6px; overflow: visible; }
.fd-chart .fd-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fd-chart .fd-prev { stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.fd-chart .fd-cur { stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; clip-path: inset(0 0 0 0); }
.fd-demo.is-armed .fd-chart:not(.on) .fd-cur { clip-path: inset(0 100% 0 0); }
.fd-demo.is-armed .fd-chart.on .fd-cur { animation: fdLine 1.2s .2s cubic-bezier(.4, .1, .2, 1) both; }
@keyframes fdLine { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.fd-table { border: 1px solid var(--line); border-radius: var(--radius-element); font-size: 12px; color: var(--text); }
.fd-tr { display: grid; grid-template-columns: 1.4fr 1fr .8fr; padding: 7px 12px; border-top: 1px solid var(--line); }
.fd-tr:first-child { border-top: 0; }
.fd-tr span:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.fd-th { color: var(--muted); font-size: 11px; }
.fd-caption { margin: 22px 0 0; font: 300 14px/1.6 var(--sans); color: var(--muted); max-width: 760px; }
.fd-replay { all: unset; cursor: pointer; margin-left: 6px; color: var(--accent); font-weight: 400; }
.fd-replay:focus-visible { outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color); outline-offset: 3px; border-radius: 3px; }

/* Benefits + closing line */
.fd-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 32px; margin: 56px 0 0; padding: 28px 0 0; list-style: none; border-top: 1px solid var(--line); }
.fd-benefits li { position: relative; padding-left: 26px; font: 400 15.5px/1.5 var(--sans); color: var(--ink); }
.fd-benefits li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 5px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.fd-close { margin: clamp(56px, 7vw, 88px) 0 0; text-align: center; font: 400 clamp(24px, 3vw, 38px)/1.3 var(--display); color: var(--ink); text-wrap: balance; }
.fd-close .m { color: var(--muted); }
.fd-close .dot { color: var(--accent); }

@media (max-width: 1024px) {
  .fd-demo-body { grid-template-columns: 1fr; }
  .fd-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .fd-steps { grid-template-columns: 1fr; row-gap: 48px; }
  .fd-step:nth-child(-n+2) .fd-node::before, .fd-step:nth-child(-n+2) .fd-node::after { display: none; }
  .fd-step:nth-child(-n+2) { position: relative; }
  .fd-step:nth-child(-n+2)::after { content: ""; position: absolute; left: 18px; bottom: -40px; height: 32px; width: 1px; background: var(--accent); opacity: .6; }
  .fd-loop { grid-column: 1; height: auto; margin: 0; border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); border-radius: var(--r-pill); padding: 8px 16px; text-align: center; }
  .fd-loop::before { display: none; }
  .fd-loop span { position: static; transform: none; padding: 0; background: none; }
  .fd-loop span::before { content: "↻ "; color: var(--accent); }
  .fd-loop span::after { content: " · back to 02"; }
}
@media (max-width: 560px) {
  .fd-benefits { grid-template-columns: 1fr; }
  .fd-kpis { gap: 6px; } .fd-kpis > div { padding: 8px; }
  .fd-chip-on { display: none; }
  .fd-demo { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .fd-step .fd-node::before, .fd-art .fd-variant, .fd-app [data-k], .fd-context li, .fd-ck, .fd-ck::after { transition: none !important; }
  .fd-art .fd-draw { stroke-dashoffset: 0; animation: none !important; }
}
.nowrap { white-space: nowrap; }

/* Selected work: heading sits inside the project grid, in the empty top-right cell above the second card */
@media (min-width: 761px) {
  #work .sec-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); row-gap: 56px; align-items: start; }
  #work .pj-head { grid-column: 8 / 13; grid-row: 1; margin: 0; }
  #work .pj-grid { display: contents; }
  #work .pj-item:first-child { grid-column: 1 / 8; grid-row: 1 / 3; }
  #work .pj-item:nth-child(2) { grid-column: 8 / 13; grid-row: 2; margin-top: 0; }
  #work .wk-note { grid-column: 1 / -1; }
}
/* Selected work heading in the grid: starts lower than the first project, smaller headline */
@media (min-width: 761px) { #work .pj-head { padding-top: clamp(40px, 5vw, 80px); } }
#work .pj-head h2 { font-size: clamp(30px, 3.4vw, 44px); }

/* Foundations v2: no illustrations; yellow outlined stage chip above each headline, arrows between the stages */
.fd-steps { column-gap: 72px; }
.fd-step { position: relative; }
.fd-step > p.fd-chip { align-self: flex-start; margin: 0; padding: 5px 13px; border: 1px solid var(--accent); border-radius: var(--r-pill); font: 400 12px/1.4 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-variant-numeric: tabular-nums; }
.fd-step h3 { margin-top: 20px; }
.fd-step:nth-child(-n+2)::after {
  content: ""; position: absolute; right: -48px; top: 2px; left: auto; bottom: auto; width: 24px; height: 24px; opacity: 1;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fd-loop { margin-inline: calc((100% - 72px) / 4); }
@media (max-width: 860px) {
  .fd-steps { row-gap: 64px; }
  .fd-step:nth-child(-n+2)::after { right: auto; left: 0; top: auto; bottom: -44px; transform: rotate(90deg); }
  .fd-loop { margin-inline: 0; }
}

/* Foundations v3: each stage is an equal-height card; arrow badges sit in the gaps; the loop hangs from the card bottoms */
.fd-steps { column-gap: 40px; align-items: stretch; }
.fd-step { padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-container); background: var(--surface); }
.fd-step:nth-child(-n+2)::after {
  right: -37px; top: 50%; width: 34px; height: 34px; transform: translateY(-50%); z-index: 1;
  background: var(--bg); border: 1px solid var(--border); border-radius: 50%;
  -webkit-mask: none; mask: none;
}
.fd-step:nth-child(-n+2)::before {
  content: ""; position: absolute; right: -28px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); z-index: 2;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fd-loop { margin: 0 calc((100% - 80px) / 6); height: 40px; }
@media (max-width: 860px) {
  .fd-steps { row-gap: 40px; }
  .fd-step { padding: 24px; }
  .fd-step:nth-child(-n+2)::after { right: auto; left: 50%; top: auto; bottom: -37px; transform: translateX(-50%); }
  .fd-step:nth-child(-n+2)::before { right: auto; left: 50%; top: auto; bottom: -28px; transform: translateX(-50%) rotate(90deg); }
  .fd-loop { margin: 0; height: auto; }
}

/* Foundations v4: outlined cards without fill; stage label as plain yellow text (no pill) */
.fd-step { background: none; }
.fd-step > p.fd-chip { padding: 0; border: 0; border-radius: 0; }
.fd-step:nth-child(-n+2)::after { border: 0; }
#foundations { padding-bottom: clamp(140px, 12vw, 184px); }
/* Loop: start and arrow centred under cards 03 and 02 (margins are % of the col 2–3 grid area), 10px off the cards */
@media (min-width: 861px) { .fd-loop { margin: 10px calc((100% - 40px) / 4) 0; } }
/* Loop: 15px off the cards; dashes drawn as gradients so they can flow 03 → down → left → up into 02 */
@media (min-width: 861px) {
  .fd-loop {
    --dash: color-mix(in srgb, var(--accent) 60%, transparent);
    margin-top: 15px; border: 0; border-radius: 0;
    background:
      repeating-linear-gradient(to bottom, var(--dash) 0 4px, transparent 4px 8px) right 0 top 0 / 1px 100% repeat-y,
      repeating-linear-gradient(to right, var(--dash) 0 4px, transparent 4px 8px) left 0 bottom 0 / 100% 1px repeat-x,
      repeating-linear-gradient(to bottom, var(--dash) 0 4px, transparent 4px 8px) left 0 top 0 / 1px 100% repeat-y;
    animation: fdLoopFlow .9s linear infinite;
  }
  @keyframes fdLoopFlow {
    to { background-position: right 0 top 8px, left -8px bottom 0, left 0 top -8px; }
  }
}
@media (prefers-reduced-motion: reduce) { .fd-loop { animation: none !important; } }
#focus { padding-bottom: clamp(140px, 12vw, 184px); }
.fd-loop span { color: var(--accent); }
/* Loop arrowhead: 5px gap above the dashed line; margin grows by the same 5px so the gap to card 02 is unchanged */
@media (min-width: 861px) { .fd-loop { margin-top: 20px; } .fd-loop::before { top: -7px; } }

/* Behind tiio (home): reuses the contact layout with the same portrait, no dot texture */
.about-sec .eyebrow { margin: 0 0 20px; }
.about-sec h2 { font-size: clamp(34px, 3.9vw, 56px); text-wrap: balance; }
.about-sec h2 + .contact-body { margin-top: 28px !important; }
.about-sec .contact-body + .contact-body { margin-top: 14px !important; }
.about-more { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; margin-top: 32px; padding-bottom: 4px; border-bottom: 1px solid var(--border); font: 500 16px/1.4 var(--sans); color: var(--ink); text-decoration: none; transition: border-color var(--t-fast), color var(--t-fast); }
.about-more span { color: var(--accent); transition: transform var(--t-fast); }
.about-more:hover { border-color: var(--accent); }
.about-more:hover span { transform: translate(2px, -2px); }
.about-more:focus-visible { outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color); outline-offset: 4px; }
#collaboration { padding-top: clamp(140px, 12vw, 184px); }
.about-sec .contact-person { margin-top: 56px; }
/* Behind tiio: narrower text column */
@media (min-width: 821px) { .about-sec .contact-in > * { max-width: 560px; } }
.about-sec .contact-person { margin-top: 48px; }
@media (min-width: 821px) { .about-sec .contact-in > h2 { max-width: none; white-space: nowrap; } }
@media (min-width: 821px) { #contact .contact-in { padding-bottom: clamp(180px, 15vw, 240px); } }
#contact .contact-body + .contact-body:not(.contact-note) { margin-top: 14px !important; }
@media (min-width: 821px) { #contact .contact-in { min-height: 0; padding-top: clamp(80px, 7vw, 112px); padding-bottom: clamp(120px, 10vw, 160px); } }

/* Hero headline: larger on phones */
@media (max-width: 560px) { #hero #headline { width: auto; margin-inline: 0; font-size: 10.6vw; } }
@media (max-width: 560px) { #hero #headline { font-size: 10.7vw; } }
@media (max-width: 600px) { .proof { flex-direction: row; gap: 0 8px; font-size: 13px; line-height: 24px; } .proof li + li::before { content: "·"; margin-right: 8px; } }
@media (max-width: 600px) { .proof li:nth-child(3) { flex-basis: 100%; text-align: center; } .proof li:nth-child(3)::before { content: none; } }
@media (max-width: 600px) { #challenges-title { font-size: 9.6vw !important; } }
@media (max-width: 600px) { #challenges .acc-desc { font-size: 14.5px; line-height: 1.55; } }

/* Selected work, phones: cards stacked under each other, no sideways scrolling */
@media (max-width: 600px) {
  #work .pj-grid { display: flex; flex-direction: column; gap: 20px; overflow: visible; scroll-snap-type: none; margin-inline: 0; padding: 0; }
  #work .pj-item { width: auto; }
  #work .pj-off { margin-top: 0 !important; }
}

/* Testimonials on phones: quotes stacked under each other, no slider or arrows (index.html: stacked) */
@media (max-width: 600px) {
  #voices .work-nav { display: none; }
  #voices .ref-rail { display: flex; flex-direction: column; overflow: visible !important; scroll-snap-type: none !important; gap: 48px !important; padding-inline: 16px; }
  #voices .ref-slide { width: auto; user-select: text; }
  #voices .ref-slide:not(.active) .ref-by { opacity: 1; }
  #voices .ref-slide + .ref-slide { padding-top: 48px; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) { #voices .work-head { padding-inline: 16px; margin-bottom: 32px; } }
@media (max-width: 600px) { #challenges .acc-btn[aria-expanded="false"] .acc-desc { display: none; } }
@media (max-width: 600px) { #voices .ref-by { gap: 12px; } #voices .ref-by .q-photo { width: 36px; height: 36px; } #voices .q-name { font-size: 14px; line-height: 1.35; } #voices .q-role { font-size: 13px; line-height: 1.35; } }
@media (max-width: 600px) { #voices .ref-slide figure { gap: 36px; } }
@media (max-width: 600px) { .pk .pk-inc { margin-bottom: 0; } .pk .pk-price { margin-top: 24px; } }
@media (max-width: 600px) { .pk .pk-price { padding-top: 16px; } }
@media (max-width: 600px) { .pk .pk-price { padding-top: 20px; } .pk .pk-price .pk-amount { margin-top: 0; } }
/* Phones: once the page is scrolled the header gets a solid background so content never shows behind the logo/CTA */
@media (max-width: 780px) { header.scrolled { background: var(--bg) !important; box-shadow: 0 1px 0 var(--line) !important; } }

/* Phones: no visible "Read more" in project cards; the link stays as the card-wide tap area (::after) */
@media (max-width: 600px) {
  #work .pj-more-link { margin: 0 !important; font-size: 0; line-height: 0; gap: 0; height: 0; overflow: visible; }
  #work .pj-more-link svg { display: none; }
  #work .pj-more-link.is-soon { display: none; }
}

/* Phones/tablets: the portrait sits under the two contact buttons instead of above the headline */
.contact-photo-m { display: none; }
@media (max-width: 820px) {
  #contact > .contact-photo { display: none; }
  #contact .contact-photo-m { display: block; align-self: flex-start; width: auto; max-width: 100%; height: 380px; margin: 40px 0 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); pointer-events: none; user-select: none;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 50%); mask-image: linear-gradient(to top, transparent 0%, #000 50%); }
  #contact .contact-photo-m + .contact-person { margin-top: 0; }
  #contact .contact-in { padding-top: 64px; }
}

/* Phones: footer on its own surface, with more room between the contact section and the footer */
@media (max-width: 600px) {
  .site-foot-min { background: var(--bg); border-top: 1px solid var(--line); }
  #contact .contact-in { padding-bottom: 112px; }
}

/* Mobile: name, role and icons sit next to the portrait, bottom-aligned to its right edge */
.contact-meet { display: contents; }
@media (max-width: 820px) {
  #contact .contact-meet { display: flex; align-items: center; gap: 0; margin-top: 12px; }
  #contact .contact-meet .contact-photo-m { margin-top: 0; flex: none; }
  #contact .contact-meet .contact-person { margin: 0 0 0 -106px; min-width: 0; position: relative; z-index: 1; }
  #contact .contact-meet .contact-name { white-space: nowrap; }
  #contact .contact-meet .role-sep { display: block; height: 0; overflow: hidden; }
}
/* Phones: footer background fully solid (no dot texture on top) */
@media (max-width: 600px) { .site-foot-min .bg-stars.bg-stars-foot { display: none !important; } }


/* Mobile foundations: no loop line; between Build and Evolve a solid arrow down plus a dashed arrow back up */
@media (max-width: 860px) {
  #foundations .fd-loop { display: none; }
  #foundations .fd-step:nth-child(2)::before { left: calc(50% - 14px); }
  #foundations .fd-step:nth-child(2)::after {
    left: calc(50% + 14px); bottom: -28px; width: 16px; height: 16px; border: 0; border-radius: 0; z-index: 2;
    transform: translateX(-50%) rotate(-90deg); background: var(--accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h7' stroke-dasharray='2 2.5'/%3E%3Cpath d='M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h7' stroke-dasharray='2 2.5'/%3E%3Cpath d='M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

/* Phones: "Product Strategy" fits on one line; hero starts closer to the header */
@media (max-width: 560px) { #hero #headline { font-size: 10.2vw; } }
@media (max-width: 600px) { main#top.hero { padding-top: 64px; } }

/* Phones: all 17px body text steps down to 16px */
@media (max-width: 600px) {
  .sec-head > p, .pillar > p, .contact-body, .contact-body strong, .contact-name, .acc-q, .about-text p { font-size: 16px !important; }
}
/* Phones/tablets: role line under the name at 14px */
@media (max-width: 820px) { #contact .contact-meet .contact-role { font-size: 14px; line-height: 22px; } }
/* Phones: a bit more room between the contact headline and the first paragraph */
@media (max-width: 600px) { #contact #contact-title + .contact-body { margin-top: 28px !important; } }

/* All screens: footer is its own band in the page colour (thin top line, no dot texture); desktop gets more room above it */
.site-foot-min { background: var(--bg); border-top: 1px solid var(--line); }
.site-foot-min .bg-stars.bg-stars-foot { display: none !important; }
@media (min-width: 821px) { #contact .contact-in { padding-bottom: clamp(160px, 13vw, 208px); } }
/* All screens: once the page is scrolled the header sits on the page colour with a thin bottom line (transparent over the hero at the top) */
header.scrolled { background: var(--bg) !important; box-shadow: 0 1px 0 var(--line) !important; }

/* Header logo intro: the white letters rise in one after another, then the yellow dot scales up from its centre */
@media (prefers-reduced-motion: no-preference) {
  header .logo svg > :not(ellipse) { opacity: 0; animation: logoIn .7s ease-out forwards; }
  header .logo svg > :nth-child(2) { animation-delay: .08s; }
  header .logo svg > :nth-child(3) { animation-delay: .16s; }
  header .logo svg > ellipse { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: logoDot .5s cubic-bezier(.34, 1.56, .64, 1) .55s forwards; }
  @keyframes logoIn { to { opacity: 1; } }
  @keyframes logoDot { to { transform: scale(1); } }
}
/* Phones: smaller header logo */
@media (max-width: 600px) { header .logo svg { width: 70px; height: 24px; } }

/* Hero headline intro: line 1 fades up, its yellow dot pulses in; then line 2, then its dot. The rest of the hero follows. */
@keyframes hlDot { 0% { opacity: 0; transform: scale(0); } 40% { opacity: 1; transform: scale(1.9); } 62% { transform: scale(.75); } 82% { transform: scale(1.18); } 100% { opacity: 1; transform: scale(1); } }
#hero #headline { animation: none; }
#headline .hl-d1, #headline .hl-d2 { display: inline-block; transform-origin: 50% 78%; }
#headline .hl-1, #headline .hl-2 { display: inline; }
@media (prefers-reduced-motion: no-preference) {
  #headline .hl-1, #headline .hl-2 { opacity: 0; animation: logoIn .7s ease-out forwards; }
  #headline .hl-1 { animation-delay: .1s; }
  #headline .hl-d1 { opacity: 0; animation: hlDot .6s ease-out .7s forwards; }
  #headline .hl-2 { animation-delay: 1.05s; }
  #headline .hl-d2 { opacity: 0; animation: hlDot .6s ease-out 1.65s forwards; }
  .hero-in > .sub { animation-delay: 1.5s; }
  .hero-in > .proof { animation-delay: 1.62s; }
  .hero-in > .ctas { animation-delay: 1.74s; }
  .logos { animation-delay: 1.9s; }
}


/* Testimonials heading: same 32px side padding as the quotes when the screen is narrower than the 1280px column */
@media (min-width: 601px) and (max-width: 1343px) { #voices .work-head { box-sizing: border-box; padding-inline: 32px; } }
/* Desktop/tablet: smaller testimonial photo */
@media (min-width: 601px) { #voices .ref-by .q-photo { width: 44px; height: 44px; } }
/* Testimonials: quotes start exactly under the eyebrow (padding from the page width without the scrollbar, like the heading) */
@media (min-width: 601px) { #voices .ref-rail { padding-left: max(32px, calc((100% - 1280px) / 2)); scroll-padding-left: max(32px, calc((100% - 1280px) / 2)); } }

/* Dot texture band behind Selected work + testimonials (created in header.js).
   Vertical fade at the band's top and bottom; a horizontal mask wipes it in from right to left. */
@property --wipe { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
#work, #voices { position: relative; isolation: isolate; }
.bg-stars.bg-band { top: 0; bottom: 0; z-index: -1; --wipe: 0%; transition: --wipe 1.8s cubic-bezier(.3, .6, .2, 1);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.bg-stars.bg-band.in { --wipe: 140%; }
.bg-stars.bg-band-top {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 clamp(160px, 18vw, 280px)), linear-gradient(to left, #000 calc(var(--wipe) - 40%), transparent var(--wipe));
          mask-image: linear-gradient(to bottom, transparent 0, #000 clamp(160px, 18vw, 280px)), linear-gradient(to left, #000 calc(var(--wipe) - 40%), transparent var(--wipe));
}
.bg-stars.bg-band-bottom {
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 clamp(160px, 18vw, 280px)), linear-gradient(to left, #000 calc(var(--wipe) - 40%), transparent var(--wipe));
          mask-image: linear-gradient(to top, transparent 0, #000 clamp(160px, 18vw, 280px)), linear-gradient(to left, #000 calc(var(--wipe) - 40%), transparent var(--wipe));
}
/* Dot band only behind Selected work: fades in at the top and fades out again where the testimonials begin */
.bg-stars.bg-band-top {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 clamp(160px, 18vw, 280px), #000 calc(100% - clamp(160px, 18vw, 280px)), transparent 100%), linear-gradient(to left, #000 calc(var(--wipe) - 40%), transparent var(--wipe));
          mask-image: linear-gradient(to bottom, transparent 0, #000 clamp(160px, 18vw, 280px), #000 calc(100% - clamp(160px, 18vw, 280px)), transparent 100%), linear-gradient(to left, #000 calc(var(--wipe) - 40%), transparent var(--wipe));
}
/* Dot band: also fades out horizontally, full on the right edge and gone at 2/3 of the width */
.bg-stars.bg-band-top {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 clamp(160px, 18vw, 280px), #000 calc(100% - clamp(160px, 18vw, 280px)), transparent 100%), linear-gradient(to left, #000 calc(var(--wipe) - 40%), transparent var(--wipe)), linear-gradient(to left, #000 0%, transparent 66.67%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 clamp(160px, 18vw, 280px), #000 calc(100% - clamp(160px, 18vw, 280px)), transparent 100%), linear-gradient(to left, #000 calc(var(--wipe) - 40%), transparent var(--wipe)), linear-gradient(to left, #000 0%, transparent 66.67%);
  -webkit-mask-composite: source-in, source-in; mask-composite: intersect, intersect;
}
/* Logo intro v2: the yellow dot pops up in the centre of the "o", then travels to its place */
@media (prefers-reduced-motion: no-preference) {
  header .logo svg > ellipse { transform: translate(-19.74px, -11.05px) scale(0); animation: logoDotMove 1.2s cubic-bezier(.5, 0, .2, 1) .55s forwards; }
  @keyframes logoDotMove {
    0%   { transform: translate(-19.74px, -11.05px) scale(0); animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
    35%  { transform: translate(-19.74px, -11.05px) scale(1); animation-timing-function: linear; }
    50%  { transform: translate(-19.74px, -11.05px) scale(1); animation-timing-function: cubic-bezier(.6, 0, .2, 1); }
    100% { transform: translate(0, 0) scale(1); }
  }
}

/* Logo intro v3 (storyboard): "o" with the yellow dot inside fades in on the left, slides right while "t" and "i" appear,
   then the dot leaves the "o" to the right and drops into its place. SVG user units (viewBox 87×30). */
@media (prefers-reduced-motion: no-preference) {
  header .logo svg > * { transform-box: view-box; transform-origin: 0 0; }
  header .logo svg > :nth-child(1) { opacity: 0; transform: none; animation: lgFade .45s ease-out .5s forwards; }
  header .logo svg > :nth-child(2) { opacity: 0; transform: none; animation: lgFade .45s ease-out .68s forwards; }
  header .logo svg > :nth-child(3) { opacity: 0; transform: translateX(-48.16px); animation: lgO 1.05s forwards; }
  header .logo svg > ellipse { opacity: 0; transform: translate(-67.9px, -11.05px); animation: lgDot 1.9s forwards; }
  @keyframes lgFade { to { opacity: 1; } }
  @keyframes lgO {
    0%   { opacity: 0; transform: translateX(-48.16px); animation-timing-function: ease-out; }
    30%  { opacity: 1; transform: translateX(-48.16px); animation-timing-function: cubic-bezier(.6, 0, .2, 1); }
    100% { opacity: 1; transform: none; }
  }
  @keyframes lgDot {
    0%   { opacity: 0; transform: translate(-67.9px, -11.05px); animation-timing-function: ease-out; }
    16.6% { opacity: 1; transform: translate(-67.9px, -11.05px); animation-timing-function: cubic-bezier(.6, 0, .25, 1); }
    72%  { opacity: 1; transform: translate(0, -11.05px); animation-timing-function: cubic-bezier(.5, 0, .5, 1.6); }
    100% { opacity: 1; transform: translate(0, 0); }
  }
}
/* Logo intro v4: the dot rides inside the "o" (wrapper follows the o's slide), then glides out to the right without stopping */
@media (prefers-reduced-motion: no-preference) {
  header .logo svg > g.lg-dot { opacity: 1; transform: translateX(-48.16px); animation: lgO 1.05s forwards; }
  header .logo svg > g.lg-dot > ellipse { opacity: 1; transform: translate(-19.74px, -11.05px); animation: lgDotOut 1.05s .82s forwards; }
  @keyframes lgDotOut {
    0%   { transform: translate(-19.74px, -11.05px); animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
    55%  { transform: translate(0, -11.05px); animation-timing-function: cubic-bezier(.5, 0, .5, 1.6); }
    100% { transform: translate(0, 0); }
  }
}

/* Mobile portrait: same slide-in from the left as the desktop portrait */
#contact .contact-photo-m.slide-ready { opacity: 0; translate: -120px 0; transition: opacity .9s ease, translate 1.2s cubic-bezier(.2, .7, .2, 1); }
#contact .contact-photo-m.slide-ready.slide-in { opacity: 1; translate: 0 0; }
