/* Investment Masterclass 2026. Tokens and rules: docs/design/IMC-DESIGN.md (direction C1). */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --background: #FFFFFF;
  --surface: #EAF4F0;
  --text: #0E1A17;
  --text-muted: #4F5E59;
  --rule: #DCE3E0;
  --accent: #00684F;
  --accent-hover: #00523E;
  --band: #0E1A17;
  --error: #B3261E;
  --font: "Hanken Grotesk", system-ui, sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --gutter: 48px;
  --section: 112px;
}
@media (max-width: 720px) { :root { --gutter: 16px; --section: 64px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--background); color: var(--text); font: 400 17px/1.6 var(--font);
       font-variant-numeric: tabular-nums; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
main p { max-width: min(760px, 100%); }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.wrap { max-width: calc(1600px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--text); color: #fff; padding: var(--s3) var(--s4); z-index: 10; }
.skip:focus { left: var(--s4); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow { font-size: 13px; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }
.display { font-size: clamp(44px, 7vw, 96px); line-height: 1; letter-spacing: -.03em; font-weight: 700; }
.h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -.02em; font-weight: 700; }
.h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.1; letter-spacing: -.015em; font-weight: 700; }
.h3 { font-size: 24px; line-height: 1.2; font-weight: 700; }
.lead { font-size: 20px; line-height: 1.5; max-width: 34em; }
.small { font-size: 15px; line-height: 1.5; }
.muted { color: var(--text-muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
       background: var(--accent); color: #fff; font: 500 17px/1 var(--font); text-decoration: none;
       border: 1px solid var(--accent); border-radius: 0; cursor: pointer; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn--lg { min-height: 56px; padding: 0 32px; }
.btn--secondary { background: var(--background); color: var(--text); border-color: var(--text); }
.btn--secondary:hover { background: var(--surface); color: var(--text); }
.btn--on-band { background: #fff; color: var(--text); border-color: #fff; }
.btn--on-band:hover { background: var(--surface); color: var(--text); border-color: var(--surface); }

/* top bar */
.top { border-bottom: 1px solid var(--rule); background: var(--background); }
.top__in { display: flex; align-items: center; gap: var(--s5); min-height: 76px; }
.wordmark { font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; margin-right: auto; }
.top__nav { display: flex; gap: var(--s5); }
.top__nav a { display: flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; font-size: 15px; }
.top__nav a:hover { text-decoration: underline; }
@media (max-width: 720px) { .top__nav { display: none; } }

/* section heads */
.head { display: grid; gap: var(--s3); margin-bottom: var(--s7); max-width: 760px; }
.head--split { max-width: none; grid-template-columns: 1fr 1fr; align-items: end; gap: var(--s7); }
.head--split > p { max-width: 34em; justify-self: end; text-align: right; }
@media (max-width: 900px) { .head--split { grid-template-columns: 1fr; gap: var(--s3); } .head--split > p { justify-self: start; text-align: left; } }
.h4 { font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -.005em; }

/* hero */
.hero { padding-top: var(--s8); overflow: hidden; }
.hero__in > * + * { margin-top: var(--s5); }
.hero .display { max-width: 12em; text-wrap: balance; }
.hero__row { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s7); align-items: end; }
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); justify-self: end; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); padding-top: var(--s3); }
.fact { border-top: 2px solid var(--text); padding-top: var(--s3); }
.fact dt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }
.fact__big { display: block; font-size: 22px; line-height: 1.25; font-weight: 700; margin-top: var(--s1); }
.fact__small { display: block; font-size: 15px; color: var(--text-muted); margin-top: var(--s1); }
@media (max-width: 900px) {
  .hero__row, .facts { grid-template-columns: 1fr; gap: var(--s5); }
  .hero__cta { justify-self: start; }
}

/* moving speaker strip */
.strip { margin-top: var(--s7); padding-bottom: var(--s7); }
.strip__track { display: flex; gap: var(--s4); width: max-content; }
.strip__item { width: 184px; flex: none; }
.strip__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); }
.strip__item span { display: block; font-size: 14px; font-weight: 500; margin-top: var(--s2); }
@media (max-width: 720px) { .strip__item { width: 128px; } }
@media (prefers-reduced-motion: no-preference) {
  .strip__track { animation: drift 48s linear infinite; }
  .strip:hover .strip__track { animation-play-state: paused; }
}
@keyframes drift { to { transform: translateX(calc(-50% - var(--s4) / 2)); } }
@media (prefers-reduced-motion: reduce) {
  .strip { overflow-x: auto; }
  .strip__track { padding: 0 var(--gutter); }
}

/* band */
.band { background: var(--band); color: #fff; }
.band__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); padding-top: var(--s6); padding-bottom: var(--s6); }
.band__line { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; font-weight: 700; letter-spacing: -.01em; max-width: 24em; }
@media (max-width: 720px) { .band__in { flex-direction: column; align-items: flex-start; } }

/* sections */
.section { padding-top: var(--section); padding-bottom: 0; }
.section--surface { background: var(--surface); margin-top: var(--section); padding-bottom: var(--section); }

/* themes */
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); }
.theme { border-top: 2px solid var(--accent); padding-top: var(--s4); }
.theme > * + * { margin-top: var(--s2); }
.theme__n { display: block; font-size: 14px; font-weight: 700; color: var(--accent); }
@media (max-width: 1000px) { .themes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .themes { grid-template-columns: 1fr; gap: var(--s5); } }

/* speakers */
.speakers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s7) var(--s6); align-items: start; }
.speaker__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); margin-bottom: var(--s4); }
.speaker .eyebrow { margin-bottom: var(--s1); }
.speaker__role { font-weight: 500; margin: var(--s1) 0 var(--s2); }
.profile { margin-top: var(--s3); border-top: 1px solid var(--rule); }
.profile summary { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; justify-content: space-between;
                   font-weight: 500; color: var(--accent); }
.profile summary::-webkit-details-marker { display: none; }
.profile summary::after { content: "+"; font-weight: 400; color: var(--text); }
.profile[open] summary::after { content: "–"; }
.profile dl { font-size: 15px; line-height: 1.5; padding-bottom: var(--s3); }
.profile dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; margin-top: var(--s3); }
.profile dd { margin-top: var(--s1); }
.profile ul li { padding-left: var(--s4); position: relative; }
.profile ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--text-muted); }
@media (min-width: 1400px) { .speakers { grid-template-columns: repeat(6, 1fr); gap: var(--s7) var(--s5); } }
@media (max-width: 1000px) { .speakers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .speakers { grid-template-columns: 1fr; gap: var(--s6); }
  .speaker { display: grid; grid-template-columns: 112px 1fr; column-gap: var(--s4); align-items: start; }
  .speaker__photo { grid-row: 1 / span 4; margin-bottom: 0; }
  .speaker .profile { grid-column: 1 / -1; }
}

/* schedule */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--text); }
.timeline__step { padding: var(--s4) var(--s5) var(--s5) 0; position: relative; }
.timeline__step::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--accent); }
.timeline__time { display: block; font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -.02em; margin-top: var(--s3); }
.timeline__title { display: block; margin-top: var(--s1); }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid var(--rule); }
.why li > * + * { margin-top: var(--s2); }
@media (max-width: 720px) {
  .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--text); }
  .timeline__step { padding: 0 0 var(--s5) var(--s5); }
  .timeline__step::before { top: 6px; left: -7px; }
  .timeline__time { margin-top: 0; }
  .why { grid-template-columns: 1fr; gap: var(--s5); margin-top: var(--s6); }
}

/* passes */
.book { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: start; }
.book > div > * + * { margin-top: var(--s4); }
.prices { margin-bottom: var(--s5); border-top: 1px solid var(--rule); }
.price { display: flex; align-items: baseline; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--rule); }
.price__amount { font-size: 44px; font-weight: 700; letter-spacing: -.02em; min-width: 4.5ch; }
@media (max-width: 720px) { .book { grid-template-columns: 1fr; } }

/* cause */
.cause { background: var(--surface); margin-top: var(--section); }
.cause__in { display: grid; grid-template-columns: 200px 1fr; gap: var(--s6); padding-top: var(--s7); padding-bottom: var(--s7); align-items: baseline; }
.cause__line { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; font-weight: 500; }
@media (max-width: 720px) { .cause__in { grid-template-columns: 1fr; gap: var(--s2); } }

/* faq */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s6); align-items: start; }
.faq__item { border-top: 1px solid var(--rule); }
.faq__item summary { cursor: pointer; font-weight: 500; padding: var(--s4) var(--s2); list-style: none; min-height: 44px; display: flex; justify-content: space-between; gap: var(--s4); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-weight: 400; }
.faq__item[open] { background: var(--surface); }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { padding: 0 var(--s2) var(--s4); max-width: 40em; }
@media (max-width: 720px) { .faq { grid-template-columns: 1fr; } .faq__item:last-child { border-bottom: 1px solid var(--rule); } }

/* venue */
.venue { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s7); align-items: stretch; }
.venue__place > * + * { margin-top: var(--s3); }
.venue__day { background: var(--band); color: #fff; padding: var(--s6); display: flex; flex-direction: column; gap: var(--s4); align-items: flex-start; }
.venue__date { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.venue__times li { display: flex; justify-content: space-between; gap: var(--s4); text-align: right; padding: var(--s2) 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.venue__times span { flex: none; font-weight: 700; }
.venue__times { width: 100%; }
@media (max-width: 900px) { .venue { grid-template-columns: 1fr; gap: var(--s5); } }

/* phone book bar */
.bookbar { display: none; }
@media (max-width: 720px) {
  .bookbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--background);
             border-top: 1px solid var(--rule); transform: translateY(100%); transition: transform 200ms ease-out; }
  .bookbar--on { transform: none; }
  .bookbar__in { display: flex; align-items: center; justify-content: space-between; padding: var(--s3) var(--gutter); }
  .bookbar__price { font-weight: 700; }
  body { padding-bottom: 80px; }
}

/* footer */
.foot { border-top: 1px solid var(--rule); margin-top: var(--section); }
.foot__in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s6); padding-top: var(--s7); padding-bottom: var(--s7); }
.foot__mark { font-weight: 700; margin-bottom: var(--s2); }
.foot__legal, .foot__contact { display: flex; flex-direction: column; }
.foot__legal a, .foot__contact a { display: flex; align-items: center; min-height: 44px; }
.foot__legal a { color: var(--text); }
@media (max-width: 720px) { .foot__in { grid-template-columns: 1fr; } }

/* legal pages */
.legal { max-width: calc(680px + 2 * var(--gutter)); padding-top: var(--s8); }
.legal > * + * { margin-top: var(--s4); }
.legal h2 { margin-top: var(--s6); }

/* booking */
.booking { max-width: calc(680px + 2 * var(--gutter)); padding-top: var(--s8); }
.booking__intro > * + * { margin-top: var(--s3); }
.form { margin-top: var(--s7); }
.form__group { border: 0; padding: 0; margin: 0 0 var(--s7); }
.form__group legend { margin-bottom: var(--s4); padding: 0; }
.form label { display: block; font-weight: 500; font-size: 15px; margin: var(--s4) 0 var(--s2); }
.form input { display: block; width: 100%; min-height: 48px; padding: 0 var(--s3); font: 400 17px var(--font);
              color: var(--text); background: var(--background); border: 1px solid var(--text-muted); border-radius: 0; }
.form input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.person { border-top: 1px solid var(--rule); padding: var(--s4) 0; }
.person__title { font-weight: 700; }
.link-btn { background: none; border: 0; padding: var(--s3) 0; min-height: 44px; color: var(--accent); text-decoration: underline;
            font: 400 15px var(--font); cursor: pointer; }
.total { font-weight: 700; font-size: 20px; margin-bottom: var(--s3); }
.message { color: var(--error); margin-bottom: var(--s4); }
.message:empty { display: none; }
.notice { background: var(--surface); padding: var(--s4); margin-top: var(--s5); }
.done { margin-top: var(--s7); padding: var(--s6); background: var(--surface); }
.done > * + * { margin-top: var(--s3); }
.done:focus { outline: none; }
