/* Kim Gilson — navy and gold, taken from kimgilsonspeaks.com. */

:root {
  --navy: #033170;
  --navy-700: #06285a;
  --navy-900: #041935;
  --ink: #0b1220;
  --gold: #e8c121;
  --gold-soft: #f4d970;
  --paper: #fbfaf7;
  --paper-2: #f2f1ec;
  --text: #2a3346;
  --text-soft: #5c6780;
  --line: rgba(11, 18, 32, .09);

  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --wrap: 1200px;
  --shadow: 0 30px 70px -30px rgba(4, 25, 53, .45);
  --shadow-sm: 0 14px 34px -18px rgba(4, 25, 53, .4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display); font-weight: 500; color: var(--ink);
  line-height: 1.05; letter-spacing: -.02em; margin: 0 0 .7rem;
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 40;
}
h1 { font-size: clamp(2.9rem, 6.4vw, 5.2rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); letter-spacing: -.028em; }
h3 { font-size: 1.3rem; letter-spacing: -.015em; }
p { margin: 0 0 1.1rem; }

.wrap { width: min(100% - 2.8rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--gold); color: var(--navy); padding: .7rem 1.1rem; border-radius: 999px; z-index: 100; }

.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-soft); margin: 0 0 1.1rem;
}
.kicker::before { content: ''; width: 26px; height: 1px; background: currentColor; opacity: .5; }
.kicker.gold { color: var(--gold); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-soft); max-width: 60ch; }
.lead { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.5; color: var(--text); }

/* ------------------------------------------------------------------ header */

/* The bar is transparent over the navy hero, so the hero has to start beneath
   it rather than after it. --header-h is measured in JS; the fallback keeps the
   layout right before that runs. */
:root { --header-h: 78px; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease;
}
main { margin-top: calc(-1 * var(--header-h)); }
.hero-inner { padding-top: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem)); }
.header-grid { display: flex; align-items: center; gap: 2rem; padding: 1.15rem 0; transition: padding .3s ease; }
.site-header.stuck {
  background: rgba(251, 250, 247, .82);
  backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.stuck .header-grid { padding: .7rem 0; }
.brand { text-decoration: none; margin-right: auto; display: flex; align-items: center; gap: .8rem; }
/* Kim's mark, lifted off its panel so it can sit on either background. Both
   variants ship and CSS picks one, which avoids a swap flashing on scroll. */
.brand-mark { height: 40px; width: auto; transition: height .3s ease; }
.site-header.stuck .brand-mark { height: 33px; }
.brand-mark.on-light { display: none; }
.site-header.stuck .brand-mark.on-dark { display: none; }
.site-header.stuck .brand-mark.on-light { display: block; }
.brand-role {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-soft); padding-left: .8rem; border-left: 1px solid currentColor;
  line-height: 1;
}
.site-header nav { display: flex; gap: .3rem; }
.site-header nav a {
  padding: .5rem .85rem; border-radius: 999px;
  font-size: .85rem; font-weight: 500; color: var(--text); text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.site-header nav a:hover { background: rgba(3, 49, 112, .07); color: var(--navy); }

/* over the navy hero the header inverts; once it sticks it flips to the light bar */
.site-header:not(.stuck) nav a { color: #fff; }
.site-header:not(.stuck) .brand-role { color: rgba(255, 255, 255, .55); }
.site-header:not(.stuck) nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ------------------------------------------------------------------ button */

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 1.7rem; border-radius: 999px;
  font-size: .92rem; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; border: 1px solid transparent;
  background: var(--gold); color: var(--navy-900);
  transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s ease, background .22s ease, color .22s ease;
  box-shadow: 0 10px 24px -12px rgba(232, 193, 33, .9);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(232, 193, 33, .95); }
.btn.small { padding: .62rem 1.15rem; font-size: .85rem; }
.btn.ghost {
  background: transparent; color: inherit; border-color: rgba(255, 255, 255, .35); box-shadow: none;
}
.btn.ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.btn-row.center { justify-content: center; margin-top: 3rem; }

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(120% 110% at 78% 8%, #0a4088 0%, var(--navy) 42%, var(--navy-900) 100%);
  color: #fff;
}
/* a gold bloom behind the portrait and a faint grid, both very low contrast */
.hero::before {
  content: ''; position: absolute; z-index: -1; width: 46vw; height: 46vw;
  right: -6vw; top: -8vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 193, 33, .32), transparent 62%);
  filter: blur(40px);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .4;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(120% 90% at 30% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 90% at 30% 20%, #000 20%, transparent 75%);
}
.hero-inner { padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero h1 { color: #fff; max-width: 13ch; }
.hero h1 em {
  font-style: italic; font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 60;
  color: var(--gold-soft);
}
.hero-lede { color: rgba(255, 255, 255, .76); font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 44ch; margin-top: 1.6rem; }

.portrait { position: relative; margin-left: auto; width: 100%; max-width: 470px; }
.portrait-img {
  aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8);
}
/* The portrait is already 4:5, the same ratio as the frame, so it sits in
   whole rather than being cropped to fit. */
.portrait-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.portrait-badge {
  position: absolute; left: -22px; bottom: 34px;
  display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1.15rem; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
.portrait-badge b { font-family: var(--display); font-size: 1.7rem; color: var(--gold); line-height: 1; }
.portrait-badge span { font-size: .78rem; line-height: 1.3; color: rgba(255, 255, 255, .8); max-width: 12ch; }

.marquee {
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  overflow: hidden; padding: 1.1rem 0; background: rgba(0, 0, 0, .16);
}
.marquee-track { display: flex; width: max-content; animation: slide 44s linear infinite; }
.marquee span {
  display: inline-flex; align-items: center; gap: 2.6rem; padding-right: 2.6rem;
  font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6); white-space: nowrap;
}
.marquee span::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- sections */

section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
section.tight { padding: clamp(3rem, 6vw, 5rem) 0; }
section.band { background: var(--paper-2); }
section.dark {
  background: radial-gradient(100% 80% at 20% 0%, var(--navy) 0%, var(--navy-900) 70%);
  color: #fff;
}
section.dark h2, section.dark h3 { color: #fff; }
section.dark .lede { color: rgba(255, 255, 255, .72); }

.head { max-width: 720px; margin-bottom: clamp(2.4rem, 4vw, 3.4rem); }
.intro { max-width: 820px; }
.intro p + p { color: var(--text-soft); font-size: 1.05rem; }

/* ---------------------------------------------------------------- speaking */

.talks { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 2.4vw, 1.8rem); }
.talk {
  border-radius: var(--r-lg); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2,.8,.3,1), box-shadow .35s ease;
}
.talk:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -28px rgba(4, 25, 53, .5); }
.talk-media { aspect-ratio: 16/10; overflow: hidden; background: #dfe5ee; }
.talk-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.3,1); }
.talk:hover .talk-media img { transform: scale(1.05); }
.talk-body { padding: 1.7rem 1.8rem 2rem; }
.talk-body h3 { margin-bottom: .6rem; }
.talk-body p { color: var(--text-soft); margin: 0; font-size: .98rem; }

/* --------------------------------------------------------------- giftivate */

.gifts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.gift {
  padding: 1.6rem 1.5rem 1.7rem; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09);
  transition: transform .3s cubic-bezier(.2,.8,.3,1), background .3s ease, border-color .3s ease;
}
.gift:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .09); border-color: rgba(232, 193, 33, .45); }
.gift-no { font-family: var(--display); font-size: .95rem; color: var(--gold); opacity: .85; }
.gift h3 { margin: .35rem 0 .5rem; font-size: 1.35rem; }
.gift p { color: rgba(255, 255, 255, .68); font-size: .92rem; margin: 0; line-height: 1.6; }

/* the seventh gift leaves a hole in a four-across grid; the eighth cell asks the
   question the framework exists to answer rather than sitting empty */
.gift-ask {
  background: linear-gradient(150deg, var(--gold) 0%, #d8a91a 100%);
  border-color: transparent; color: var(--navy-900);
}
.gift-ask:hover { background: linear-gradient(150deg, var(--gold-soft) 0%, var(--gold) 100%); border-color: transparent; }
.gift-ask h3 { color: var(--navy-900); margin-top: 0; }
.gift-ask p { color: rgba(4, 25, 53, .78); }
.gift-ask a {
  display: inline-block; margin-top: 1rem; font-weight: 600; font-size: .9rem;
  color: var(--navy-900); text-decoration: none;
}
.gift-ask a:hover { text-decoration: underline; }

.gift-note {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 4vw, 4rem);
  align-items: center; margin-top: clamp(3rem, 5vw, 4.5rem);
}
.gift-note p { color: rgba(255, 255, 255, .74); }
.gift-media { aspect-ratio: 4/3; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.gift-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }

/* ------------------------------------------------------------------- watch */

.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 2.4vw, 1.8rem); }
.video {
  position: relative; display: block; aspect-ratio: 16/9; overflow: hidden;
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2,.8,.3,1);
}
.video:hover { transform: translateY(-5px); }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.3,1); }
.video:hover img { transform: scale(1.04); }
.play {
  position: absolute; inset: 0; margin: auto; width: 78px; height: 78px; border-radius: 50%;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4);
  backdrop-filter: blur(10px);
  transition: background .3s ease, transform .3s ease, border-color .3s ease;
}
.video:hover .play { background: var(--gold); border-color: var(--gold); transform: scale(1.06); }
.play::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 0; height: 0;
  border-left: 17px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent;
  transform: translateX(3px); transition: border-color .3s ease;
}
.video:hover .play::after { border-left-color: var(--navy-900); }

/* ------------------------------------------------------------ testimonials */

.quotes {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(320px, 380px);
  gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 1.4rem;
  margin-inline: calc(50% - 50vw);
  padding-inline: max(1.4rem, calc(50vw - var(--wrap) / 2));
}
.quote {
  scroll-snap-align: start; margin: 0; padding: 2rem 2rem 1.8rem;
  border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: space-between;
}
.quote blockquote {
  margin: 0 0 1.6rem; font-family: var(--display); font-size: 1.22rem; line-height: 1.42;
  letter-spacing: -.018em; color: var(--ink);
}
.quote figcaption { font-size: .88rem; font-weight: 600; color: var(--navy); }
.quote figcaption span { display: block; font-weight: 400; color: var(--text-soft); margin-top: .15rem; font-size: .84rem; }
.quotes-hint { font-size: .8rem; color: var(--text-soft); margin: .6rem 0 0; }

/* ------------------------------------------------------------------- about */

.about-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-media { position: relative; aspect-ratio: 3/4; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-copy p { color: var(--text-soft); }
.about-copy p:first-of-type { color: var(--text); font-size: 1.1rem; }
.about-copy p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------- book */

.book-grid { display: grid; grid-template-columns: .62fr 1.38fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.book-media img { border-radius: var(--r-sm); box-shadow: 0 44px 80px -32px rgba(0, 0, 0, .85); }
.book-grid p { color: rgba(255, 255, 255, .74); }
.insights { margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.insights ul { list-style: none; margin: 0; padding: 0; display: grid; }
.insights li a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .75rem 0; color: rgba(255, 255, 255, .88); text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  transition: color .2s ease, padding-left .25s ease;
}
.insights li a::after { content: '\2192'; color: var(--gold); opacity: 0; transition: opacity .25s ease; }
.insights li a:hover { color: #fff; padding-left: .4rem; }
.insights li a:hover::after { opacity: 1; }

/* --------------------------------------------------------------------- cta */

section.cta {
  background: radial-gradient(90% 120% at 50% 0%, #0a4088 0%, var(--navy-900) 65%);
  color: #fff; text-align: center;
}
section.cta h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
section.cta .lede { color: rgba(255, 255, 255, .72); margin-inline: auto; }
section.cta .kicker { justify-content: center; }

/* ------------------------------------------------------------------ footer */

.site-footer { background: var(--navy-900); color: #fff; padding: 3.4rem 0 2.6rem; }
.foot-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem 2rem; }
.foot-mark { height: 46px; width: auto; }
.foot-role { font-size: .8rem; color: rgba(255, 255, 255, .55); margin: .9rem 0 0; }
.foot-social { display: flex; flex-wrap: wrap; gap: .4rem; margin-left: auto; }
.foot-social a {
  padding: .5rem .9rem; border-radius: 999px; font-size: .84rem;
  color: rgba(255, 255, 255, .8); text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .16); transition: background .2s ease, color .2s ease;
}
.foot-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.foot-fine {
  margin: 2.4rem 0 0; padding-top: 1.6rem; font-size: .8rem; color: rgba(255, 255, 255, .4);
  border-top: 1px solid rgba(255, 255, 255, .1);
}

/* ------------------------------------------------------------------ reveal */

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.8,.3,1), transform .8s cubic-bezier(.2,.8,.3,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* -------------------------------------------------------------- responsive */

@media (max-width: 1040px) {
  .gifts { grid-template-columns: repeat(2, 1fr); }
  .site-header nav { display: none; }
}
@media (max-width: 820px) {
  .hero-grid, .gift-note, .about-grid, .book-grid { grid-template-columns: 1fr; }
  .portrait { order: -1; max-width: 380px; margin-inline: auto; }
  .portrait-badge { left: auto; right: -10px; }
  .talks, .videos { grid-template-columns: 1fr; }
  .about-media, .book-media { max-width: 400px; }
  .foot-social { margin-left: 0; }
}
@media (max-width: 520px) {
  .gifts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .talk, .video, .gift, .btn, .talk-media img, .video img { transition: none; }
}
