/* TIFA group kit. Every TIFA site loads this file: tokens, type, group bar, header, photo hero, company tiles, buttons, footer.
   A company site sets its arm on <html> (class "arm-care" or "arm-growth") and adds its own page styles on top. */
:root {
  --paper: #ffffff;
  --band: #f6f5f1;
  --ink: #0f2033;
  --ink-2: #475867;
  --ink-3: #6b7a87;
  --line: #e4e2dc;
  --navy: #132a43;
  --navy-2: #0c1d30;
  --on-navy: #ffffff;
  --on-navy-2: rgba(255, 255, 255, 0.74);
  --care: #0d6e6e;
  --care-soft: #e6f1f0;
  --growth: #b5532f;
  --growth-soft: #f8ebe5;
  --gold: #c8962c;
  --brand: var(--care);
  --brand-soft: var(--care-soft);
  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 16px;
  --wrap: 1240px;
  --hdr: 76px;
  --gl: max(20px, env(safe-area-inset-left, 0px));
  --gr: max(20px, env(safe-area-inset-right, 0px));
  --shadow: 0 30px 70px -30px rgba(12, 29, 48, 0.38), 0 2px 8px rgba(12, 29, 48, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1a26; --band: #13212f; --ink: #edf2f6; --ink-2: #b2c0cb; --ink-3: #8a9aa7; --line: #253545;
    --care: #4fb3ab; --care-soft: #143331; --growth: #e2876b; --growth-soft: #3a2219; --gold: #e2b25a;
    --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1a26; --band: #13212f; --ink: #edf2f6; --ink-2: #b2c0cb; --ink-3: #8a9aa7; --line: #253545;
  --care: #4fb3ab; --care-soft: #143331; --growth: #e2876b; --growth-soft: #3a2219; --gold: #e2b25a;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.3); color-scheme: dark;
}
.arm-care { --brand: var(--care); --brand-soft: var(--care-soft); }
.arm-growth { --brand: var(--growth); --brand-soft: var(--growth-soft); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--hdr); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.62 var(--font-body); font-synthesis: none; -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; display: block; }
img, video { height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.1vw, 72px); letter-spacing: -0.02em; line-height: 1.04; }
h2 { font-size: clamp(30px, 3.5vw, 48px); letter-spacing: -0.018em; }
h3 { font-size: 21px; letter-spacing: -0.012em; line-height: 1.2; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gl); padding-right: var(--gr); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px/1.2 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.mono { font-family: var(--font-mono); }
.skip { position: absolute; left: 12px; top: -80px; background: var(--paper); color: var(--ink); padding: 10px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Group bar: the strip at the top of every TIFA site. It links back to the group and to every company. */
.groupbar { background: var(--navy-2); color: var(--on-navy-2); font-size: 13.5px; position: relative; z-index: 40; }
.groupbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 40px; }
.gb-left { display: flex; align-items: center; gap: 18px; }
.gb-home { color: var(--on-navy); text-decoration: none; display: inline-flex; align-items: baseline; gap: 7px; }
.gb-home b { font: 800 15px/1 var(--font-head); letter-spacing: 0.02em; }
.gb-home span { font: 500 10.5px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-navy-2); }
.gb-cos { position: relative; }
.gb-cos summary { list-style: none; cursor: pointer; color: var(--on-navy); display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; }
.gb-cos summary::-webkit-details-marker { display: none; }
.gb-cos summary svg { transition: transform .2s; }
.gb-cos[open] summary svg { transform: rotate(180deg); }
.gb-menu { position: absolute; top: 100%; left: -16px; width: min(640px, calc(100vw - 24px)); background: var(--paper); color: var(--ink); border-radius: 14px; box-shadow: var(--shadow); padding: 18px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 6px 22px; }
.gb-menu h4 { grid-row: 1; font: 500 11.5px/1.2 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 2px 0 6px; }
.gb-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; align-content: start; }
.gb-menu a { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 8px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.gb-menu a:hover { background: var(--band); }
.gb-menu a .tile { grid-row: span 2; }
.gb-menu a b { font-weight: 600; font-size: 15px; line-height: 1.2; }
.gb-menu a small { color: var(--ink-3); font-size: 13px; line-height: 1.2; }
.gb-right { display: flex; align-items: center; gap: 16px; }
.gb-right a { color: var(--on-navy); font-weight: 600; text-decoration: none; }
.gb-right a:hover, .gb-home:hover b { text-decoration: underline; }
.gb-right strong { color: var(--on-navy); font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) {
  .gb-home span, .gb-call, .gb-ref { display: none; }
  .gb-menu { grid-template-columns: 1fr; left: -8px; max-height: 70vh; overflow: auto; }
  .gb-menu h4 { grid-row: auto; }
}
@media (min-width: 761px) { .gb-tel { display: none; } }

/* Header. Over a photo hero it starts transparent (class "over", set by script) and turns white once the page scrolls. */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); transition: background-color .25s, border-color .25s, color .25s; }
.site-header > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--hdr); }
.wordmark { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark b { font: 800 30px/1 var(--font-head); letter-spacing: 0.01em; }
.wordmark span { font: 500 12px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.nav { display: flex; align-items: center; gap: 30px; height: 100%; }
.nav > a, .nav-top { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px; }
.nav > a:hover, .nav-top:hover { color: var(--brand); }
.nav .nav-cta { padding: 10px 16px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 600; }
.nav .nav-cta:hover { color: #fff; filter: brightness(1.08); }
.nav-toggle { display: none; width: 46px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; place-items: center; }
.site-header.over { background: transparent; border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.site-header.over .wordmark, .site-header.over .nav > a, .site-header.over .nav-top { color: #fff; }
.site-header.over .wordmark span { color: rgba(255, 255, 255, 0.72); }
.site-header.over .nav-toggle { border-color: rgba(255, 255, 255, 0.35); color: #fff; }

/* Menus that open under the header: a company list by what each company does, Access-style, on every screen size. */
.nav-item { height: 100%; display: flex; align-items: center; }
.nav-top { position: relative; height: 100%; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }
.nav-top svg { transition: transform .2s; opacity: 0.7; }
.nav-item.open .nav-top { color: var(--brand); }
.nav-top:focus-visible { outline: none; }
.nav-top:focus-visible::before { content: ""; position: absolute; left: -10px; right: -10px; top: 50%; height: 42px; translate: 0 -50%; border: 3px solid var(--gold); border-radius: 10px; }
.nav-item.open .nav-top svg { transform: rotate(180deg); }
.nav-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); transform: scaleX(0); transition: transform .2s; }
.nav-item.open .nav-top::after { transform: scaleX(1); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 40px 60px -40px rgba(12, 29, 48, 0.45); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility 0s .18s; color: var(--ink); }
.nav-item.open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
.mega-in { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 28px 40px; padding-top: 34px; padding-bottom: 30px; }
.mm-intro { display: grid; gap: 10px; align-content: start; }
.mm-title { font: 700 22px/1.2 var(--font-head); letter-spacing: -0.01em; }
.mm-text { color: var(--ink-2); font-size: 15.5px; }
.mm-more { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; text-decoration: none; }
.mm-more svg { width: 16px; height: 16px; transition: transform .2s; }
.mm-more:hover svg { transform: translateX(3px); }
.mm-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; border-left: 1px solid var(--line); padding-left: 32px; }
.mm-cols.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mm-col h4 { font: 500 11.5px/1.2 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 4px 0 12px 10px; }
.mm-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mm-co { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--ink); transition: background-color .15s; }
.mm-co:hover { background: var(--band); }
.mm-co-t { display: grid; gap: 2px; }
.mm-co b { font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.mm-co:hover b { color: var(--brand); }
.mm-co small { color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.mm-co .mm-line { margin-top: 2px; }
.mm-co .mm-line ~ .mm-dom, .mm-co .mm-tag + .mm-line { margin-top: 6px; }
.mm-cols.rich .mm-tag { display: none; }
.mm-dom { color: var(--brand); font-size: 12px; margin-top: 4px; }
.mm-card { grid-column: 1 / -1; background: var(--navy); color: rgba(255, 255, 255, 0.82); border-radius: 14px; padding: 14px 14px 14px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.mm-card-k { font: 500 11.5px/1.2 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.mm-card-t { font-size: 15px; line-height: 1.5; }
.mm-card-t a { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.mm-card .btn { margin-left: auto; min-height: 42px; font-size: 15px; }
.mega-scrim { position: fixed; inset: 0; z-index: 20; background: rgba(12, 29, 48, 0.32); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
body.mega-open .mega-scrim { opacity: 1; visibility: visible; transition: opacity .2s; }
@media (max-width: 1080px) and (min-width: 881px) { .mega-in { grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 24px 28px; } .mm-cols { padding-left: 24px; gap: 0 16px; } }

@media (max-width: 880px) {
  .nav-toggle { display: grid; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; height: auto; max-height: calc(100vh - var(--hdr)); max-height: calc(100dvh - var(--hdr)); overflow-y: auto; overscroll-behavior: contain; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(12, 29, 48, 0.3); flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--gr) 18px var(--gl); }
  .nav.open { display: flex; }
  .nav > a, .nav-top, .site-header.over .nav > a, .site-header.over .nav-top { color: var(--ink); padding: 15px 0; border-top: 1px solid var(--line); font-size: 18px; }
  .nav > :first-child, .nav > :first-child .nav-top { border-top: 0; }
  .nav .nav-cta { margin-top: 12px; text-align: center; color: #fff !important; border-top: 0; }
  .nav-item { display: block; height: auto; }
  .nav-top { width: 100%; height: auto; justify-content: space-between; }
  .nav-top::after { display: none; }
  .nav-top:focus-visible::before { left: -6px; right: -6px; height: calc(100% - 6px); }
  .mega { position: static; display: none; opacity: 1; visibility: visible; transform: none; transition: none; box-shadow: none; border-top: 0; background: transparent; }
  .nav-item.open .mega { display: block; }
  .mega-in { display: block; padding: 0 0 14px; }
  .mega .wrap { padding: 0; }
  .mm-intro, .mm-card { display: none; }
  .mm-cols, .mm-cols.n2 { display: grid; grid-template-columns: 1fr; gap: 10px; border-left: 0; padding-left: 0; }
  .mm-col h4 { margin: 6px 0 4px 10px; }
  .mm-co { padding: 9px 10px; }
  .mm-co .mm-line, .mm-dom { display: none; }
  .mm-cols.rich .mm-tag { display: block; }
  .mega-scrim { display: none; }
}

/* Photo hero: a Welsh photograph behind every TIFA site's opening, with the same navy shade from the left. */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--navy); margin-top: calc(-1 * var(--hdr)); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 60% 50%); animation: drift 38s ease-in-out infinite alternate; transform-origin: 70% 40%; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.11) translate(-1%, -0.6%); } }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 24, 40, 0.9) 0%, rgba(10, 24, 40, 0.74) 30%, rgba(10, 24, 40, 0.3) 62%, rgba(10, 24, 40, 0.06) 100%),
    linear-gradient(0deg, rgba(10, 24, 40, 0.5) 0%, rgba(10, 24, 40, 0) 34%),
    linear-gradient(180deg, rgba(10, 24, 40, 0.45) 0%, rgba(10, 24, 40, 0) 22%); }
.hero-body { padding-top: calc(var(--hdr) + clamp(64px, 11vh, 120px)); padding-bottom: clamp(120px, 16vh, 170px); display: grid; gap: 24px; max-width: 940px; }
.hero .eyebrow { color: #fff; }
.hero h1 { color: #fff; }
.hero .lede { color: rgba(255, 255, 255, 0.86); max-width: 56ch; }
.hero-credit { position: absolute; right: var(--gr); bottom: 92px; font: 400 11.5px/1.3 var(--font-mono); letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.72); text-align: right; }
.hero.short .hero-body { padding-bottom: clamp(64px, 9vh, 96px); }
.hero.short .hero-credit { bottom: 18px; }
@media (min-width: 1500px) { .hero-credit { right: calc((100vw - var(--wrap)) / 2 + 20px); } }
@media (max-width: 760px) {
  .hero-shade { background: linear-gradient(180deg, rgba(10, 24, 40, 0.5) 0%, rgba(10, 24, 40, 0.42) 26%, rgba(10, 24, 40, 0.72) 58%, rgba(10, 24, 40, 0.9) 100%); }
  .hero-media img { object-position: var(--focus-m, 72% 50%); }
  .hero-credit { top: calc(var(--hdr) + 10px); bottom: auto; font-size: 10.5px; }
  .hero.short .hero-credit { top: auto; bottom: 14px; }
  .hero-body { padding-bottom: 150px; }
  .hero.short .hero-body { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero-media img { animation: none; } * { transition: none !important; } }

/* Company tile: the same rounded square for every company, in its arm's colour. */
.tile { --s: 44px; width: var(--s); height: var(--s); border-radius: calc(var(--s) * 0.28); background: var(--brand); color: #fff; display: inline-grid; place-items: center; flex: none; }
.tile svg { width: 56%; height: 56%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile.sm { --s: 32px; }
.tile.lg { --s: 56px; }
.tile.care { background: var(--care); }
.tile.growth { background: var(--growth); }
.tile.group { background: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile { color: #0e1a26; } :root:not([data-theme="light"]) .tile.group { color: #fff; } }
:root[data-theme="dark"] .tile { color: #0e1a26; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 12px; font: 600 16px/1.2 var(--font-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: filter .15s, background-color .15s, border-color .15s; }
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-quiet { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--ink-3); }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { border-color: #fff; }

/* Sections */
.sec { padding-block: clamp(72px, 9vw, 120px); }
.band { background: var(--band); }
.sec-head { display: grid; gap: 16px; max-width: 780px; margin-bottom: clamp(36px, 4vw, 56px); }

/* Footer: the same on every TIFA site. */
.site-footer { background: var(--navy); color: var(--on-navy-2); font-size: 15px; }
.site-footer .wrap { padding-top: 72px; padding-bottom: 32px; }
.foot-top { display: grid; grid-template-columns: 1.25fr 1.3fr 0.9fr 0.8fr; gap: 40px; }
.site-footer .wordmark { color: #fff; }
.site-footer .wordmark span { color: rgba(255, 255, 255, 0.6); }
.foot-about { margin-top: 18px; max-width: 34ch; }
.site-footer h4 { font: 500 12px/1.3 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); margin: 4px 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-co { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; align-items: center; }
.foot-co .tile { grid-row: span 2; --s: 30px; }
.foot-co small { display: block; color: rgba(255, 255, 255, 0.55); font-size: 13px; line-height: 1.3; }
.foot-legal { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13px; color: rgba(255, 255, 255, 0.55); display: grid; gap: 6px; }
@media (max-width: 980px) { .foot-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-top { grid-template-columns: 1fr; gap: 32px; } }

/* Lockup: a company's name in its own header. */
.lockup { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.lockup .tile { --s: 40px; }
.lk-name { display: inline-flex; align-items: baseline; gap: 7px; font-family: var(--font-head); font-size: 27px; line-height: 1; letter-spacing: -0.01em; }
.lk-name b { font-weight: 800; letter-spacing: 0.01em; }
.lk-word { font-weight: 600; color: var(--brand); }
.lk-name.stacked { flex-direction: column; align-items: flex-start; gap: 4px; }
.lk-name.stacked small { font: 500 10.5px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.lockup .tile.group + .lk-name .lk-word { color: var(--ink-3); font: 500 13px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; }
.site-header.over .lockup { color: #fff; }
.site-header.over .lk-word { color: #fff; }
.site-header.over .lk-name.stacked small { color: rgba(255, 255, 255, 0.7); }
