/* Proposal 3: Strategy house
   Cobalt colour field, one grotesk, section titles held in a sticky left rail like a consultancy's practice pages. */

:root {
  --blue: #1A3A8F;
  --blue-2: #24499F;
  --blue-deep: #11285F;
  --ice: #EEF2F9;
  --ice-2: #DCE4F3;
  --white: #FFFFFF;
  --ink: #0F1A2E;
  --grey: #586377;
  --line: #DCE2EB;
  --line-blue: rgba(255, 255, 255, .2);
  --font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.6 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.hero :focus-visible, .footer :focus-visible { outline-color: var(--white); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--blue); color: var(--white); padding: 8px 14px; }
.skip:focus { left: 8px; }
.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: var(--white); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-sq { display: grid; place-items: center; width: 44px; height: 44px; background: var(--blue); color: var(--white); font-weight: 800; font-size: 14px; letter-spacing: .04em; }
.brand-txt { font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.nav nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.nav nav a { text-decoration: none; font-weight: 600; font-size: 15px; position: relative; padding: 6px 0; }
.nav nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .2s; }
.nav nav a:not(.nav-cta):hover::after, .nav nav a.active::after { transform: scaleX(1); }
.nav nav .nav-cta { background: var(--blue); color: var(--white); padding: 11px 20px; }
.nav nav .nav-cta:hover { background: var(--blue-deep); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 13px 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: currentColor; transition: transform .2s; }
.nav-toggle span + span { margin-top: 7px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 0 var(--gutter) 20px; }
  .nav nav.open { display: flex; }
  .nav nav a { padding: 16px 0; font-size: 20px; border-bottom: 1px solid var(--line); }
  .nav nav a::after { display: none; }
  .nav nav .nav-cta { margin-top: 16px; text-align: center; padding: 15px; font-size: 16px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s; }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--ice-2); }
.btn-outline { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: var(--blue-2); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-deep); }
.link { font-weight: 700; color: var(--blue); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 1px; }
.link:hover { color: var(--blue-deep); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); min-height: calc(100svh - var(--nav-h)); max-height: 940px; }
.hero-main { background: var(--blue); color: var(--white); display: flex; align-items: flex-end; padding: clamp(56px, 8vw, 104px) var(--gutter); padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.hero-org { font-weight: 600; font-size: 16px; color: #BFD0F5; margin-bottom: 20px; }
.hero h1 { font-size: clamp(44px, 6.6vw, 104px); line-height: .98; font-weight: 700; letter-spacing: -.04em; max-width: 10.5em; }
.lede { margin-top: 28px; font-size: clamp(17px, 1.4vw, 20px); color: #DCE5FA; max-width: 50ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-side { background: var(--ice); display: grid; grid-template-rows: 1fr auto; }
.next { padding: clamp(40px, 5vw, 64px) var(--gutter) 32px clamp(28px, 3vw, 48px); display: flex; flex-direction: column; justify-content: flex-end; }
.next h2 { font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: 18px; display: flex; justify-content: space-between; gap: 12px; }
.next h2 span { color: var(--grey); font-weight: 500; }
.next .when { font-size: 54px; font-weight: 300; line-height: 1; letter-spacing: -.04em; }
.next .when small { display: block; font-size: 16px; font-weight: 600; letter-spacing: 0; margin-top: 8px; }
.next h3 { font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin-top: 24px; }
.next p { color: var(--grey); margin-top: 8px; font-size: 15px; }
.next .link { align-self: flex-start; margin-top: 20px; }
.side-partner { background: var(--white); margin: 0 0 0 0; padding: 32px var(--gutter) 40px clamp(28px, 3vw, 48px); border-top: 4px solid var(--blue); }
.side-partner h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.side-partner p { color: var(--grey); margin: 6px 0 16px; font-size: 16px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; max-height: none; }
  .hero-main { padding-top: 72px; padding-bottom: 56px; }
}

/* Rail layout */
.block { padding: clamp(80px, 10vw, 136px) 0; }
.block-ice { background: var(--ice); }
.rail { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.rail-head { position: sticky; top: calc(var(--nav-h) + 32px); }
.rail-bar { display: block; height: 6px; background: var(--ice-2); overflow: hidden; }
.block-ice .rail-bar { background: var(--white); }
.rail-bar i { display: block; height: 100%; background: var(--blue); transform-origin: left; }
.motion .rail-bar i { transform: scaleX(.08); }
.rail-head h2 { font-size: clamp(40px, 4.6vw, 64px); line-height: 1; font-weight: 700; letter-spacing: -.04em; padding-top: 18px; }
.rail-head p { color: var(--grey); margin-top: 16px; max-width: 34ch; }
.rail-head .btn { margin-top: 28px; }
@media (max-width: 900px) {
  .rail { grid-template-columns: minmax(0, 1fr); }
  .rail-head { position: static; }
}

/* Partnerships */
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-bottom: 40px; }
.formats article { padding: 22px 0 26px; border-top: 1px solid var(--line); }
.formats h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.formats p { color: var(--grey); margin-top: 6px; font-size: 16px; }
@media (max-width: 600px) { .formats { grid-template-columns: 1fr; } }


.partners { margin-top: 48px; }
.partners .open { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; align-items: center; padding: 26px 28px; background: var(--blue); color: var(--white); }
.partners .open b { font-size: 44px; font-weight: 300; line-height: 1; grid-row: span 2; letter-spacing: -.04em; }
.partners .open strong { font-size: 19px; }
.partners .open span { color: #C8D6F7; font-size: 15px; }
.partners h3 { font-size: 21px; font-weight: 700; margin-bottom: 14px; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.logo-grid > * { min-height: 110px; display: grid; place-items: center; background: var(--white); padding: 20px; text-decoration: none; font-weight: 700; font-size: 19px; }
.logo-grid img { max-height: 44px; max-width: 75%; object-fit: contain; }

/* Team */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 20px; }
@media (max-width: 1100px) { .team { grid-template-columns: repeat(2, 1fr); } }
.team-group + .team-group { margin-top: 56px; }
.team-h { font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 18px; color: var(--blue); }
.member { position: relative; }
.member .pic { aspect-ratio: 1; background: var(--white); display: grid; place-items: center; margin-bottom: 14px; overflow: hidden; border-bottom: 4px solid var(--blue); }
.member .pic span { transition: transform .5s cubic-bezier(.2, .7, .2, 1); font-size: clamp(36px, 4vw, 52px); font-weight: 300; color: var(--blue); letter-spacing: -.02em; }
.member .pic img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.member p { color: var(--grey); font-size: 15px; }
.member a { position: absolute; inset: 0; }
.member a:hover ~ h3 { color: var(--blue); }

/* Events */
.controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.tabs { display: flex; gap: 4px; background: var(--ice); padding: 4px; }
.tabs button { border: 0; background: none; padding: 9px 20px; cursor: pointer; font-weight: 700; font-size: 15px; color: var(--grey); }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--blue); box-shadow: 0 1px 2px rgba(15, 26, 46, .12); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { background: none; border: 1.5px solid var(--line); padding: 7px 14px; cursor: pointer; font-size: 14px; font-weight: 600; }
.filters button:hover { border-color: var(--blue); }
.filters button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }

.events { list-style: none; margin: 0; padding: 0; }
.event { display: grid; grid-template-columns: 96px 1fr; gap: 0 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.event:last-child { border-bottom: 1px solid var(--line); }
.cal { background: var(--ice); text-align: center; padding: 12px 6px 14px; align-self: start; }
.cal small { display: block; font-size: 13px; font-weight: 700; color: var(--blue); }
.cal b { display: block; font-size: 38px; font-weight: 300; line-height: 1.05; letter-spacing: -.03em; }
.cal span { display: block; font-size: 13px; color: var(--grey); }
.event .type { font-size: 13px; font-weight: 700; color: var(--blue); }
.event h3 { font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; margin-top: 2px; }
.event .meta { color: var(--grey); font-size: 15px; margin-top: 4px; }
.event .desc { margin-top: 8px; font-size: 16px; max-width: 60ch; }
.event .act { margin-top: 12px; font-size: 14px; color: var(--grey); }
.event .act .btn { min-height: 40px; padding: 0 16px; }
.event.past .cal { opacity: .6; }
.empty { padding: 32px 0; color: var(--grey); border-top: 1px solid var(--line); }
@media (max-width: 520px) { .event { grid-template-columns: 72px 1fr; gap: 0 16px; } .cal b { font-size: 30px; } }

/* Footer */
.footer { background: var(--blue-deep); color: var(--white); padding: 16px 0 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr 1fr; gap: 28px; padding-top: 40px; font-size: 15px; color: #C8D6F7; }
.footer-grid .brand { color: var(--white); }
.footer-grid .brand-sq { background: var(--white); color: var(--blue-deep); }
.footer a { text-decoration: none; color: var(--white); overflow-wrap: anywhere; }
.footer a:hover { text-decoration: underline; }
.footer .btn-white { color: var(--blue); }
.footer .btn-white:hover { text-decoration: none; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: 0s !important; } }

.member:hover .pic span { transform: scale(1.12); }
.formats article { transition: border-color .3s; }
.formats article:hover { border-color: var(--blue); }
.motion .hero-main { clip-path: inset(100% 0% 0% 0%); }
