/* Appily, version funky. GOBELINS-brochure energy: condensed capitals, flat colour fields, colour-banded tables. */
:root {
  --night: #0E0B2E;
  --lav: #F1F0FF;
  --lav-2: #E4E1FF;
  --paper: #FFFFFF;
  --ink: #0E0B2E;
  --ink-soft: #3F4560;
  --muted: #646A82;
  --line: #E2E0EE;
  --indigo: #3525D9;
  --violet: #6F5BFF;
  --amber: #FFB21A;
  --amber-2: #E08600;
  --wa: #25D366;
  --wa-ink: #06301A;
  --f: "Archivo", system-ui, sans-serif;
  --f-logo: "Plus Jakarta Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --sec: clamp(72px, 9vw, 128px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--f); font-variation-settings: "wdth" 100; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.ic { width: 18px; height: 18px; flex: none; stroke-width: 2.2; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--night); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* Condensed display type */
.mega, .title-xl, .title-lg, .mega-contact, .fband h3, .hero-strip strong {
  font-family: var(--f); font-variation-settings: "wdth" 64; font-weight: 800; text-transform: uppercase; letter-spacing: -0.005em;
}
.title-xl { font-size: clamp(48px, 7.2vw, 112px); line-height: .9; }
.title-lg { font-size: clamp(36px, 4.4vw, 64px); line-height: .9; }

.logo { font: 800 26px/1 var(--f-logo); letter-spacing: -0.03em; text-decoration: none; color: #fff; display: inline-flex; align-items: baseline; text-transform: none; }
.logo-i { position: relative; }
.logo-i i { position: absolute; left: 50%; top: -0.02em; width: .2em; height: .2em; background: var(--amber); transform: translateX(-50%) rotate(45deg); border-radius: 1px; }
.logo-sm { font-size: 22px; color: var(--night); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; font: 700 15px/1 var(--f); text-decoration: none; border: 2px solid transparent; transition: background-color .18s, color .18s, border-color .18s; white-space: nowrap; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16.5px; }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { background: #3BE07A; }
.btn-amber { background: var(--amber); color: var(--night); }
.btn-amber:hover { background: #FFC54D; }
.btn-ink { background: var(--night); color: #fff; }
.btn-ink:hover { background: var(--indigo); }
.btn-light { background: #fff; color: var(--night); }
.btn-light:hover { background: var(--amber); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--indigo); text-decoration: none; }
.text-link:hover .ic { transform: translateX(3px); }
.text-link .ic { transition: transform .18s var(--ease); }

/* Header: sits on the indigo field, turns solid on scroll */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .25s, box-shadow .25s; }
.site-header.scrolled { background: rgba(14, 11, 46, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.header-in { display: flex; align-items: center; gap: 24px; height: 76px; }
.nav { display: flex; gap: 2px; margin-left: 12px; margin-right: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; color: rgba(255, 255, 255, .88); font-weight: 600; font-size: 15px; text-decoration: none; }
.nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.nav .nav-wa { display: none; }
.header-cta { display: flex; gap: 8px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .45); background: transparent; position: relative; cursor: pointer; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; transition: transform .2s, top .2s; }
.menu-toggle span:first-child { top: 17px; } .menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero: indigo field + portrait, amber strip underneath */
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto auto; }
.hero-field { background: var(--indigo); color: #fff; padding: 140px var(--gutter) 72px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); display: flex; align-items: center; }
.hero-copy { max-width: 720px; }
.hero-name { font-weight: 700; font-size: 16px; color: var(--amber); letter-spacing: .02em; margin-bottom: 18px; }
.mega { font-size: clamp(60px, 7.6vw, 128px); line-height: .9; color: #fff; }
.hero-sub { margin-top: 28px; font-size: 19px; line-height: 1.55; color: rgba(255, 255, 255, .88); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-photo { background: #E8E5E3; min-height: 560px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.hero-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--amber); color: var(--night); }
.hero-strip li { padding: 22px var(--gutter); border-left: 2px solid rgba(14, 11, 46, .14); font-weight: 600; font-size: 15px; line-height: 1.3; }
.hero-strip li:first-child { border-left: 0; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.hero-strip strong { display: block; font-size: clamp(34px, 3.4vw, 52px); line-height: .9; margin-bottom: 4px; }

/* Clients */
.clients { border-bottom: 1px solid var(--line); padding-block: 36px 40px; }
.logos { --n: 6; --g: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 28px var(--g); }
.logos li { flex: 0 0 calc((100% - (var(--n) - 1) * var(--g)) / var(--n)); height: 64px; display: flex; align-items: center; justify-content: center; }
.logos img { max-height: 60px; max-width: 150px; width: auto; height: auto; object-fit: contain; }
.logos.collapsed .more { display: none; }
.logos-more { display: none; }
.js .logos-more[hidden] { display: none !important; }
.js .logos-more { display: flex; margin: 28px auto 0; height: 44px; padding: 0 20px; align-items: center; border: 2px solid var(--night, #0E0B2E); border-radius: 999px; background: #fff; color: var(--night, #0E0B2E); font: 700 14px/1 var(--f-body, sans-serif); text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
.js .logos-more:hover { background: var(--amber, #FFB21A); }

/* Catalogue: colour-banded tables */
.catalogue { padding: var(--sec) 0; background: var(--lav); }
.cat-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 40px; }
.cat-head p { font-size: 17px; color: var(--ink-soft); max-width: 52ch; }
.ftables { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.ftables > .ftable:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
.ftable { background: #fff; border-radius: 18px; overflow: hidden; }
.fband { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 22px; }
.fband h3 { font-size: 30px; line-height: 1; }
.fcount { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.tone-indigo .fband { background: var(--indigo); color: #fff; }
.tone-violet .fband { background: var(--violet); color: #fff; }
.tone-amber .fband { background: var(--amber); color: var(--night); }
.flead { padding: 14px 22px 6px; font-size: 15px; color: var(--ink-soft); }
.frows { padding: 6px 10px 12px; }
.frow { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; }
.frow:nth-child(even) { background: var(--lav); }
.fnum { font: 800 15px/1 var(--f); font-variation-settings: "wdth" 64; color: var(--indigo); }
.tone-violet .fnum { color: var(--violet); }
.tone-amber .fnum { color: var(--amber-2); }
.ftitle strong { display: block; font-size: 16px; line-height: 1.3; font-weight: 700; }
.ftitle span { display: block; font-size: 14px; color: var(--ink-soft); line-height: 1.4; margin-top: 2px; }
.ftag { display: inline-block; margin-top: 6px; font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; padding: 3px 8px; border-radius: 999px; background: var(--night); color: #fff; }
.fdays { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.fbtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; background: var(--night); color: #fff; font-size: 13.5px; font-weight: 700; text-decoration: none; transition: background-color .18s, color .18s; }
.fbtn .ic { width: 15px; height: 15px; }
.fbtn:hover { background: var(--amber); color: var(--night); }

/* Reviews: quotes on a night ground, tones rotating */
.avis { background: var(--night); color: #fff; padding: var(--sec) 0; }
.avis .title-xl { color: #fff; margin-bottom: 48px; }
.avis-cols { columns: 3 300px; column-gap: 28px; }
.fquote { break-inside: avoid; margin-bottom: 28px; padding-top: 18px; border-top: 6px solid var(--amber); }
.fquote:nth-child(3n+2) { border-top-color: var(--violet); }
.fquote:nth-child(3n) { border-top-color: var(--wa); }
.fquote blockquote p { font-size: 18px; line-height: 1.5; font-weight: 500; }
.fquote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.fquote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.fquote figcaption strong { display: block; font-size: 15px; }
.fquote figcaption span { font-size: 14px; color: rgba(255, 255, 255, .68); line-height: 1.35; }

/* Conferences and consulting: two colour fields */
.events-grid { display: grid; grid-template-columns: 1fr 1fr; }
.ev { padding: var(--sec) clamp(24px, 5vw, 72px); }
.ev-amber { background: var(--amber); color: var(--night); padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.ev-violet { background: var(--violet); color: #fff; padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.ev-lead { margin-top: 16px; font-size: 18px; max-width: 44ch; }
.ev-violet .ev-lead { color: rgba(255, 255, 255, .9); }
.defs { margin: 28px 0 32px; max-width: 560px; }
.defs div { padding: 14px 0; border-top: 2px solid currentColor; }
.ev-amber .defs div { border-top-color: rgba(14, 11, 46, .2); }
.ev-violet .defs div { border-top-color: rgba(255, 255, 255, .3); }
.defs dt { font-weight: 800; font-size: 18px; }
.defs dd { margin-top: 2px; font-size: 15.5px; opacity: .85; }

/* Funding */
.funding { padding: var(--sec) 0; }
.funding-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.funding .title-xl { color: var(--indigo); }
.funding-body p { font-size: 18px; color: var(--ink-soft); }
.funding-body p + p { margin-top: 14px; }
.funding-body .btn { margin-top: 28px; }

/* Open sessions */
.public { padding: 0 0 var(--sec); }
.public .title-lg { margin-bottom: 24px; }
.public-list li { display: grid; grid-template-columns: minmax(0, 1fr) 230px 200px; gap: 24px; align-items: center; padding: 22px 0; border-top: 2px solid var(--night); }
.public-list li:last-child { border-bottom: 2px solid var(--night); }
.pl-main h3 { font-size: 20px; font-weight: 800; }
.pl-main p { margin-top: 4px; font-size: 15.5px; color: var(--ink-soft); max-width: 62ch; }
.pl-meta { font-size: 15px; font-weight: 600; }
.public-list .text-link { justify-self: end; white-space: nowrap; }

/* About */
.about { background: var(--lav); padding: var(--sec) 0; }
.about-in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 18px; }
.about .title-xl { color: var(--night); }
.about-role { margin: 14px 0 6px; font-weight: 700; color: var(--indigo); }
.about-copy > p:not(.about-role) { margin-top: 16px; color: var(--ink-soft); max-width: 58ch; }
.about-quote { margin-top: 30px; }
.about-quote p { font: 800 clamp(30px, 3.2vw, 46px)/.95 var(--f); font-variation-settings: "wdth" 64; text-transform: uppercase; color: var(--indigo); }

/* Contact */
.contact { background: var(--indigo); color: #fff; padding: var(--sec) 0; text-align: center; }
.contact-in { display: flex; flex-direction: column; align-items: center; }
.contact-face { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--amber); }
.mega-contact { margin-top: 26px; font-size: clamp(52px, 9vw, 150px); line-height: .84; }
.contact-sub { margin-top: 18px; font-size: 19px; color: rgba(255, 255, 255, .88); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.contact-mail { margin-top: 18px; color: rgba(255, 255, 255, .85); font-size: 15px; }

/* Footer */
.site-footer { padding: 32px 0 40px; }
.foot-in { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot-in p { flex: 1; min-width: 260px; font-size: 14px; color: var(--muted); }
.foot-links { display: flex; gap: 20px; }
.foot-links a { font-size: 14px; color: var(--ink-soft); }

.mobile-bar { display: none; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .menu-toggle { display: block; }
  .nav.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 76px; left: 0; right: 0; background: var(--night); padding: 8px var(--gutter) 18px; margin: 0; }
  .nav.open a { padding: 14px 0; font-size: 17px; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .nav.open .nav-wa { display: flex; align-items: center; gap: 8px; color: var(--wa); border-bottom: 0; }
  .logos { --n: 4; }
  .ftables { grid-template-columns: 1fr; }
  .ftables > .ftable:nth-child(2) { grid-column: auto; grid-row: auto; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-field { padding: 112px var(--gutter) 48px; }
  .hero-photo { min-height: 0; height: 380px; }
  .hero-photo img { object-position: 50% 10%; }
  .hero-strip { grid-template-columns: 1fr 1fr; }
  .hero-strip li, .hero-strip li:first-child { padding: 18px var(--gutter); border-left: 0; border-top: 2px solid rgba(14, 11, 46, .14); }
  .hero-strip li:nth-child(even) { border-left: 2px solid rgba(14, 11, 46, .14); }
  .cat-head, .funding-in, .about-in { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .ev, .ev-amber, .ev-violet { padding: 64px var(--gutter); }
  .about-photo { max-width: 380px; }
  .public-list li { grid-template-columns: 1fr; gap: 8px; }
  .public-list .text-link { justify-self: start; }
  .mobile-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(14, 11, 46, .96); }
  .mobile-bar .btn { flex: 1; }
  body { padding-bottom: 76px; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .header-cta .btn-wa { display: none; }
  .header-cta .btn-amber { height: 42px; padding: 0 14px; font-size: 14px; }
  .header-in { gap: 12px; }
  .mega { font-size: clamp(50px, 15vw, 64px); }
  .hero-sub { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-photo { height: 320px; }
  .hero-strip strong { font-size: 32px; }
  .logos { --n: 3; --g: 18px; row-gap: 20px; }
  .logos li { height: 52px; }
  .logos img { max-height: 48px; max-width: 100%; }
  .logos.collapsed li:nth-child(n+10) { display: none; }
  .frow { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 12px 10px; }
  .fnum { display: none; }
  .fbtn { grid-column: 1 / -1; justify-self: start; }
  .avis-cols { columns: 1; }
  .contact-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
