/* About page v2 — compact, brand-kit design. Default = designed mix of dark and light sections;
   html[data-theme="inverted"] flips every section. Content and fonts unchanged. */
.ab-page { --ab-pad: clamp(56px, 6vw, 96px); --ab-g: var(--gutter, clamp(20px, 5vw, 72px)); --ab-plum: #60435b; --ab-mauve: #c9a3bd; --ab-slate: #9fbccb; }
.ab-page main > section { position: relative; isolation: isolate; overflow: hidden; padding: var(--ab-pad) var(--ab-g); }
.ab-page main h2 { margin: 10px 0 0; font-size: clamp(1.9rem, 3vw, 3rem) !important; line-height: 1.08; letter-spacing: -.035em; }
.ab-page main h3 { margin: 0; font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.25; letter-spacing: -.02em; }
.ab-page main p { margin: 0; }
.ab-page .section-tag { margin: 0; }
.ab-head { margin-bottom: clamp(26px, 3vw, 40px); max-width: 760px; }
.ab-head.split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: end; }
.ab-head.split > p { max-width: 46ch; font-size: .98rem; line-height: 1.75; }
.ab-head.center { margin-inline: auto; text-align: center; }
.ab-head.center > p { margin-top: 14px !important; font-size: 1rem; line-height: 1.7; }
.ab-num { font: 500 .62rem var(--mono); letter-spacing: .2em; }
.ab-page main svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 1 · hero + story ---------- */
.ab-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-top: clamp(40px, 5vw, 72px) !important; }
.ab-hero h1 { margin: 12px 0 0; font-size: clamp(2.3rem, 3.8vw, 3.9rem) !important; line-height: 1.05; letter-spacing: -.045em; }
.ab-story { margin-top: clamp(24px, 3vw, 36px); padding-top: 22px; border-top: 1px solid; display: grid; gap: 12px; max-width: 62ch; }
.ab-lead { font: 600 clamp(1.05rem, 1.35vw, 1.22rem)/1.5 var(--sans); }
.ab-story p:not(.ab-lead):not(.section-tag) { font-size: .95rem; line-height: 1.75; }
.ab-hero-art { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; display: grid; place-items: center; }
.ab-ring { position: absolute; border-radius: 50%; border: 1px dashed; animation: ab-spin 70s linear infinite; }
.ab-ring.r1 { inset: 4%; } .ab-ring.r2 { inset: 22%; border-style: solid; opacity: .5; animation-direction: reverse; animation-duration: 90s; }
.ab-dots { position: absolute; right: 0; top: 4%; width: 110px; height: 80px; background-image: radial-gradient(currentColor 1px, transparent 1.5px); background-size: 13px 13px; opacity: .35; }
.ab-corner { position: absolute; width: 38px; height: 38px; border: solid; opacity: .6; }
.ab-corner.tl { left: 0; top: 0; border-width: 2px 0 0 2px; } .ab-corner.br { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.ab-mark { position: relative; width: 66%; overflow: visible; animation: ab-float 9s ease-in-out infinite; }
.ab-mark .fill path { fill: url(#abFill); stroke-width: .8; }
.ab-mark .run { fill: none; stroke: url(#abRun); stroke-width: 1.8; stroke-dasharray: 150 890; animation: ab-run 7s linear infinite; }
.ab-mark .run.b { stroke: var(--ab-slate); animation-delay: -3.5s; } .ab-mark .run.c { animation-delay: -1.8s; animation-duration: 9s; }
.ab-tagline { position: absolute; bottom: 8%; font: 500 .6rem var(--mono); letter-spacing: .4em; text-transform: uppercase; }
@keyframes ab-spin { to { transform: rotate(360deg); } }
@keyframes ab-float { 50% { transform: translateY(-10px); } }
@keyframes ab-run { to { stroke-dashoffset: -1040; } }

/* ---------- 2 · founder ---------- */
.ab-founder { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.ab-founder-photo { position: relative; margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; }
.ab-founder-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-founder-photo figcaption { position: absolute; inset: auto 12px 12px; display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; backdrop-filter: blur(10px); }
.ab-founder-photo figcaption strong { font: 600 .98rem var(--sans); } .ab-founder-photo figcaption span { font: 500 .6rem var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.ab-founder-body { position: relative; display: grid; gap: 16px; }
.ab-founder-body::before { content: "\201C"; position: absolute; right: 0; top: -30px; font: 700 9rem/1 Georgia, serif; opacity: .08; pointer-events: none; }
.ab-founder-body .fn2-lead { font-size: clamp(1.02rem, 1.25vw, 1.15rem); line-height: 1.75; }
.ab-founder-body .fn2-promise { font-size: .95rem; line-height: 1.75; padding-left: 16px; border-left: 3px solid; }
.ab-founder-body .fn2-more { border-block: 1px solid; }
.ab-founder-body .fn2-more summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; list-style: none; font: 500 .66rem var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.ab-founder-body .fn2-more summary::-webkit-details-marker { display: none; }
.ab-founder-body .fn2-more summary b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid; font-weight: 400; transition: transform .3s; }
.ab-founder-body .fn2-more[open] summary b { transform: rotate(45deg); }
.ab-founder-body .fn2-more .fn2-close, .ab-founder-body .fn2-more[open] .fn2-open { display: none; }
.ab-founder-body .fn2-more[open] .fn2-close { display: inline; }
.ab-founder-body .fn2-more p { margin: 0 0 14px; font-size: .95rem; line-height: 1.75; }
.ab-founder-body .fn2-sign { display: grid; font: 500 .6rem var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.ab-founder-body .fn2-sign span { font: italic 700 1.5rem var(--display); letter-spacing: -.02em; text-transform: none; }

/* ---------- 3 · drives: bento ---------- */
.ab-bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; }
.ab-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; min-height: 230px; padding: 22px; border-radius: 16px; border: 1px solid; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.ab-tile:hover { transform: translateY(-4px); }
.ab-tile > svg { width: 26px; height: 26px; margin-top: auto; }
.ab-tile p { font-size: .92rem; line-height: 1.65; }
.ab-tile.big h3 { font-size: clamp(1.3rem, 1.8vw, 1.7rem); }
.ab-arc { position: absolute; right: -90px; bottom: -120px; width: 260px; height: 260px; border-radius: 50%; border: 2px solid; opacity: .7; box-shadow: 0 0 40px rgba(201, 163, 189, .35); }

/* ---------- 4 · promise ---------- */
.ab-promise { text-align: center; padding-block: clamp(56px, 6vw, 92px) !important; }
.ab-promise-in { position: relative; max-width: 780px; margin: 0 auto; display: grid; gap: 14px; justify-items: center; }
.ab-promise-in > p:last-child { max-width: 58ch; font-size: 1rem; line-height: 1.75; }
.ab-promise-arc { position: absolute; left: 50%; bottom: -78%; width: min(1100px, 130vw); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; z-index: -1;
  background: conic-gradient(from 220deg, transparent, rgba(201, 163, 189, .9) 40deg, rgba(159, 188, 203, .8) 80deg, transparent 120deg) border-box;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  filter: drop-shadow(0 0 16px rgba(201, 163, 189, .6)); animation: ab-spin 40s linear infinite; }

/* ---------- 5 · values ---------- */
.ab-value-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ab-value { display: grid; gap: 10px; align-content: start; padding: 20px; border-radius: 14px; border: 1px solid; transition: transform .35s, border-color .35s; }
.ab-value:hover { transform: translateY(-3px); }
.ab-vicon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; border: 1px solid; }
.ab-vicon svg { width: 20px; height: 20px; }
.ab-value p { font-size: .9rem; line-height: 1.6; }

/* ---------- 6 · beliefs ---------- */
.ab-belief-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ab-belief { position: relative; display: grid; gap: 12px; align-content: start; padding: 22px; border-radius: 14px; border: 1px solid; transition: transform .35s, border-color .35s, box-shadow .35s; }
.ab-belief:hover { transform: translateY(-3px); }
.ab-belief h3 em { font-style: normal; }
.ab-belief p { font-size: .9rem; line-height: 1.6; }
.ab-belief::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--ab-mauve), var(--ab-slate)); transform: scaleX(.18); transform-origin: left; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.ab-belief:hover::after { transform: scaleX(1); }

/* ---------- 7 · build grow scale: nodes ---------- */
.ab-nodes { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; text-align: center; }
.ab-nodes li { position: relative; display: grid; justify-items: center; gap: 10px; }
.ab-nodes li:not(:last-child)::after { content: ""; position: absolute; top: 36px; left: calc(50% + 50px); width: calc(100% - 100px + 24px); height: 2px; background: linear-gradient(90deg, var(--ab-mauve), var(--ab-slate)); background-size: 200% 100%; animation: ab-flow 3s linear infinite; opacity: .8; }
@keyframes ab-flow { from { background-position: 0 0; } to { background-position: -200% 0; } }
.ab-node { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; border: 1.5px solid; }
.ab-node svg { width: 26px; height: 26px; }
.ab-nodes p { max-width: 30ch; font-size: .92rem; line-height: 1.6; }

/* ---------- 8 · team ---------- */
.ab-team-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ab-person { display: grid; justify-items: start; gap: 8px; align-content: start; padding: 20px; border-radius: 16px; border: 1px solid; transition: transform .35s; }
.ab-person:hover { transform: translateY(-4px); }
.ab-photo { width: 64px; height: 64px; margin-bottom: 6px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font: 700 1rem var(--sans); }
.ab-photo img { width: 100%; height: 100%; object-fit: cover; }
.ab-role { font: 500 .58rem var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.ab-person p { font-size: .88rem; line-height: 1.6; }
.ab-person a { margin-top: 4px; font: 600 .76rem var(--sans); text-decoration: none; border-bottom: 1px solid; }
.ab-standard { margin-top: 26px !important; font: 600 clamp(1.05rem, 1.4vw, 1.3rem) var(--display); text-align: center; }
.ab-standard em { font-style: normal; }

/* ---------- 9 · cta ---------- */
.ab-cta { display: grid; justify-items: center; gap: 14px; text-align: center; padding-block: clamp(60px, 6vw, 96px) !important; }
.ab-cta-glow { position: absolute; inset: auto 0 -40% 0; height: 90%; z-index: -1; background: radial-gradient(50% 60% at 50% 100%, rgba(201, 163, 189, .35), transparent 70%); }
.ab-cta-kicker { font: 500 .62rem var(--mono); letter-spacing: .28em; }
.ab-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.ab-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 18px; border-radius: 3px; border: 1px solid; font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: background .2s, transform .2s; }
.ab-btn:hover { transform: translateY(-1px); }
.ab-page main :is(a, button, summary):focus-visible { outline: 2px solid var(--ab-mauve); outline-offset: 3px; }

/* =========================================================
   COLOURS — default: hero dark · founder light · drives light · promise dark · values light ·
   beliefs dark · thinking light · team light · cta dark
   ========================================================= */
html:not([data-theme="inverted"]) { --abD-bg: #121014; --abD-ink: #f1e9ee; --abD-soft: #c3b7bf; --abD-line: rgba(201, 163, 189, .22); --abD-card: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  --abL-bg: #f4eee6; --abL-bg2: #ece6ea; --abL-ink: #211d1b; --abL-soft: #5b5156; --abL-line: rgba(96, 67, 91, .15); --abL-card: linear-gradient(160deg, #fff, #f7f2f5); --abL-acc: #60435b; --abD-acc: #c9a3bd; }
html[data-theme="inverted"] { --abL-bg: #121014; --abL-bg2: #19151b; --abL-ink: #f1e9ee; --abL-soft: #c3b7bf; --abL-line: rgba(201, 163, 189, .22); --abL-card: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); --abL-acc: #c9a3bd;
  --abD-bg: #f4eee6; --abD-ink: #211d1b; --abD-soft: #5b5156; --abD-line: rgba(96, 67, 91, .15); --abD-card: linear-gradient(160deg, #fff, #f7f2f5); --abD-acc: #60435b; }

/* dark-by-default sections */
.ab-hero, .ab-promise, .ab-beliefs, .ab-cta { background: var(--abD-bg); color: var(--abD-ink); }
:is(.ab-hero, .ab-promise, .ab-beliefs, .ab-cta) :is(h1, h2, h3) { color: var(--abD-ink); }
:is(.ab-hero, .ab-promise, .ab-beliefs, .ab-cta) :is(h1, h2) em { color: var(--abD-acc); }
:is(.ab-hero, .ab-promise, .ab-beliefs, .ab-cta) :is(p, .section-tag) { color: var(--abD-soft); }
:is(.ab-hero, .ab-promise, .ab-beliefs, .ab-cta) .section-tag { color: var(--abD-acc); }
.ab-hero .ab-lead { color: var(--abD-ink); }
.ab-story { border-color: var(--abD-line); }
.ab-hero-art { color: var(--abD-acc); }
.ab-ring { border-color: var(--abD-line); }
.ab-corner { border-color: var(--abD-acc); }
.ab-tagline { color: var(--abD-soft); }
.ab-mark .fill path { stroke: var(--abD-line); }
.ab-belief { background: var(--abD-card); border-color: var(--abD-line); }
.ab-belief .ab-num { color: var(--abD-acc); }
.ab-belief h3 em { color: var(--abD-acc); }
.ab-belief:hover { border-color: color-mix(in srgb, var(--abD-acc) 55%, transparent); box-shadow: 0 0 28px -12px var(--abD-acc); }
.ab-cta-kicker { color: var(--abD-acc) !important; }
.ab-btn { background: var(--abD-acc); border-color: var(--abD-acc); color: var(--abD-bg); }
.ab-btn.ghost { background: transparent; color: var(--abD-ink); border-color: var(--abD-line); }
.ab-btn.ghost:hover { background: color-mix(in srgb, var(--abD-acc) 12%, transparent); }
html:not([data-theme="inverted"]) .ab-hero { background: radial-gradient(60% 80% at 80% 40%, #1d1720, #0d0c10 70%); }

/* light-by-default sections */
.ab-founder, .ab-values, .ab-team { background: var(--abL-bg); color: var(--abL-ink); }
.ab-drives, .ab-thinking { background: var(--abL-bg2); color: var(--abL-ink); }
:is(.ab-founder, .ab-drives, .ab-values, .ab-thinking, .ab-team) :is(h2, h3) { color: var(--abL-ink); }
:is(.ab-founder, .ab-drives, .ab-values, .ab-thinking, .ab-team) h2 em, .ab-standard em { color: var(--abL-acc); }
:is(.ab-founder, .ab-drives, .ab-values, .ab-thinking, .ab-team) p { color: var(--abL-soft); }
:is(.ab-founder, .ab-drives, .ab-values, .ab-thinking, .ab-team) .section-tag, :is(.ab-drives, .ab-values, .ab-thinking, .ab-team) .ab-num, .ab-role { color: var(--abL-acc); }
.ab-standard { color: var(--abL-ink) !important; }
.ab-founder-body .fn2-lead { color: var(--abL-ink); }
.ab-founder-body .fn2-promise { border-color: var(--abL-acc); }
.ab-founder-body .fn2-promise strong { color: var(--abL-ink); }
.ab-founder-body .fn2-more { border-color: var(--abL-line); color: var(--abL-ink); }
.ab-founder-body .fn2-sign { color: var(--abL-soft); } .ab-founder-body .fn2-sign span { color: var(--abL-acc); }
.ab-founder-photo { box-shadow: 0 30px 60px -40px rgba(96, 67, 91, .7); }
.ab-founder-photo figcaption { background: rgba(18, 16, 20, .55); color: #f4eee6; }
.ab-founder-body::before { color: var(--abL-acc); }
.ab-tile, .ab-value, .ab-person { background: var(--abL-card); border-color: var(--abL-line); }
.ab-tile > svg, .ab-vicon, .ab-node { color: var(--abL-acc); }
.ab-vicon { border-color: var(--abL-line); }
.ab-tile:hover, .ab-value:hover, .ab-person:hover { border-color: color-mix(in srgb, var(--abL-acc) 40%, transparent); box-shadow: 0 20px 40px -30px var(--abL-acc); }
.ab-tile:nth-child(3) > svg, .ab-value:nth-child(even) .ab-vicon { color: #4e6e7d; }
html[data-theme="inverted"] .ab-tile:nth-child(3) > svg, html[data-theme="inverted"] .ab-value:nth-child(even) .ab-vicon { color: var(--ab-slate); }
.ab-node { border-color: var(--abL-acc); background: var(--abL-bg); box-shadow: 0 0 0 7px color-mix(in srgb, var(--abL-acc) 7%, transparent), 0 0 26px -6px var(--abL-acc); }
.ab-photo { background: color-mix(in srgb, var(--abL-acc) 12%, transparent); color: var(--abL-acc); box-shadow: 0 0 0 3px var(--abL-bg), 0 0 0 4px var(--abL-line); }
.ab-person a { color: var(--abL-acc); border-color: var(--abL-line); }
/* bento lead tile stays dark in both states — brand accent */
.ab-tile.big { background: linear-gradient(160deg, #2a2129, #121014 75%); border-color: transparent; }
.ab-tile.big :is(h3, p) { color: #f1e9ee; } .ab-tile.big p { color: #c9bec5; } .ab-tile.big .ab-num, .ab-tile.big > svg { color: var(--ab-mauve); }
.ab-tile.big .ab-arc { border-color: var(--ab-mauve); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .ab-hero { grid-template-columns: 1fr; }
  .ab-hero-art { max-width: 300px; order: -1; }
  .ab-bento { grid-template-columns: 1fr 1fr; } .ab-tile.big { grid-column: 1 / -1; min-height: 190px; }
  .ab-value-row, .ab-team-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-belief-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-head.split { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 680px) {
  .ab-founder { grid-template-columns: 1fr; }
  .ab-founder-photo { max-width: 260px; aspect-ratio: 1; }
  .ab-hero-art { max-width: 220px; }
  .ab-bento, .ab-belief-grid { grid-template-columns: 1fr; }
  .ab-tile { min-height: 0; }
  .ab-nodes { grid-template-columns: 1fr; gap: 26px; }
  .ab-nodes li:not(:last-child)::after { top: auto; bottom: -22px; left: 50%; width: 2px; height: 18px; background: linear-gradient(180deg, var(--ab-mauve), var(--ab-slate)); }
}
@media (max-width: 460px) { .ab-value-row, .ab-team-row { grid-template-columns: 1fr; } }

/* reveal on scroll */
.ab-page.ab-js .ab-rv { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d, 0) * 80ms); }
.ab-page.ab-js .ab-rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ab-ring, .ab-mark, .ab-mark .run, .ab-promise-arc, .ab-nodes li::after { animation: none !important; }
  .ab-page.ab-js .ab-rv { opacity: 1; transform: none; transition: none; }
}

/* polish */
.ab-hero h1 { max-width: 15ch; text-wrap: balance; }
.ab-hero-copy { max-width: 680px; }
.ab-promise-arc { bottom: auto; top: 58%; background: conic-gradient(from 300deg, transparent, rgba(201, 163, 189, .95) 45deg, rgba(159, 188, 203, .85) 75deg, transparent 120deg) border-box; animation: none; }
html[data-theme="inverted"] .ab-promise-arc { filter: drop-shadow(0 0 10px rgba(96, 67, 91, .45)); }
.ab-person a::before, .ab-person a::after, .ab-person::after { display: none !important; content: none !important; }
.ab-person a { justify-self: start; padding-bottom: 1px; }
.ab-promise-arc { top: 86%; } .ab-promise { padding-bottom: clamp(80px, 8vw, 120px) !important; }
.ab-promise-arc { top: 74%; }

/* hero: centred text, no artwork */
.ab-hero { grid-template-columns: minmax(0, 1fr) !important; justify-items: center; text-align: center; }
.ab-hero-copy { max-width: 760px; margin-inline: auto; display: grid; justify-items: center; }
.ab-hero h1 { max-width: 18ch; margin-inline: auto; }
.ab-story { justify-items: center; text-align: center; margin-inline: auto; }
html:not([data-theme="inverted"]) .ab-hero { background: radial-gradient(60% 90% at 50% 0%, #1d1720, #0d0c10 70%); }
.ab-hero h1 { max-width: 24ch !important; } .ab-hero-copy { max-width: 860px; } .ab-story { max-width: 66ch; }
