/* Lifesong: charcoal, hairlines, isometric dots. Unblur-in titles on scroll. */
:root {
  color-scheme: dark;
  --bg: #131416;
  --card: var(--bg);
  --bg-2: #1a1b1e;
  --ink: #ecebe7;
  --ink-dim: #a3a29d;
  --line: #2c2d31;
  --dot: #2a2b2f;
  --max: 1080px;
  --read: 680px;
  --display: "Montserrat", "Raleway", system-ui, sans-serif;
  --text: "Raleway", "Montserrat", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  /* isometric dot grid */
  background-image:
    radial-gradient(var(--dot) 1.2px, transparent 1.3px),
    radial-gradient(var(--dot) 1.2px, transparent 1.3px);
  background-size: 28px 16px;
  background-position: 0 0, 14px 8px;
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }
::selection { background: #ecebe7; color: #131416; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* Header */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 18px 28px;
  background: linear-gradient(var(--bg) 40%, transparent);
}
.top a { text-decoration: none; text-transform: uppercase; letter-spacing: .3em; font-size: 12px; color: var(--ink-dim); }
.top a:hover { color: var(--ink); }
.top .brand { color: var(--ink); font-family: var(--display); font-weight: 300; font-size: 13px; }
.top nav { display: flex; align-items: center; gap: 28px; }
.top .apply-link { border: 1px solid var(--ink-dim); padding: 9px 16px; color: var(--ink); letter-spacing: .22em; }
.top .apply-link:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Layout */
section { border-top: 1px solid var(--line); padding: 130px 28px; }
.wrap { max-width: var(--max); margin: 0 auto; }
.read { max-width: var(--read); }
h1, h2, h3 { font-family: var(--display); font-weight: 300; margin: 0; line-height: 1.12; }
h2 { font-size: clamp(32px, 5.2vw, 58px); letter-spacing: -.01em; margin-bottom: 34px; }
h3 { font-size: 20px; font-weight: 400; letter-spacing: .02em; margin-bottom: 8px; }
p { margin: 0 0 18px; }
.dim { color: var(--ink-dim); }
.label { text-transform: uppercase; letter-spacing: .3em; font-size: 12px; color: var(--ink-dim); margin: 0 0 22px; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; text-transform: uppercase;
  letter-spacing: .22em; font-size: 13px; padding: 17px 30px;
  border: 1px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer;
  font-family: var(--text); transition: background .25s, color .25s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.solid { background: var(--ink); color: var(--bg); }
.btn.solid:hover { background: transparent; color: var(--ink); }
.text-link { color: var(--ink-dim); font-size: 15px; margin-left: 22px; }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; border-top: 0; padding-top: 140px; }
.hero h1 { font-size: clamp(40px, 8.6vw, 112px); letter-spacing: -.02em; line-height: 1.04; }
.hero h1 .line { display: block; }
.swap { display: inline-block; }
.word { display: inline-block; transition: opacity .55s ease, filter .55s ease, transform .55s ease; }
.word.out { opacity: 0; filter: blur(16px); transform: translateY(14px); }
.lede { font-size: clamp(18px, 2vw, 22px); color: var(--ink-dim); max-width: 560px; margin: 38px 0 44px; }
.hero .slogan { margin-top: 56px; text-transform: uppercase; letter-spacing: .34em; font-size: 12px; color: var(--ink-dim); }

/* Proof */
.proof { padding: 90px 28px; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.quotes blockquote { margin: 0; padding: 30px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quotes blockquote.lead { grid-column: 1 / -1; padding: 44px 32px; }
.quotes blockquote.lead p { font-family: var(--display); font-weight: 300; font-size: clamp(22px, 3vw, 34px); line-height: 1.35; }
.quotes p { font-size: 17px; line-height: 1.6; margin-bottom: 12px; }
.quotes cite { font-style: normal; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--ink-dim); }

/* Steps and cards */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 40px; }
.cell { padding: 34px 28px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.cell p { color: var(--ink-dim); font-size: 16px; line-height: 1.65; margin: 0; }
.cell .tag { text-transform: uppercase; letter-spacing: .26em; font-size: 11px; color: var(--ink-dim); display: block; margin-bottom: 16px; }

/* Work with us */
.package { border: 1px solid var(--line); background: var(--card); margin-top: 40px; }
.package .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; padding: 26px 28px; border-top: 1px solid var(--line); }
.package .row:first-child { border-top: 0; }
.addons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.addons > div { padding: 26px 28px; border-left: 1px solid var(--line); }
.addons > div:first-child { border-left: 0; }

/* Anthem */
.anthem { text-align: center; }
.anthem .read { margin: 0 auto; }
.anthem h2 { margin-bottom: 28px; }

/* Fit */
.fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 36px; }
.fit > div { padding: 30px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fit ul { margin: 14px 0 0; padding: 0; list-style: none; }
.fit li { padding: 9px 0 9px 22px; position: relative; color: var(--ink-dim); font-size: 16px; line-height: 1.55; }
.fit li::before { content: ""; position: absolute; left: 0; top: 20px; width: 10px; border-top: 1px solid var(--ink-dim); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-family: var(--display); font-weight: 300; font-size: 22px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 28px; color: var(--ink-dim); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-dim); padding-right: 40px; margin-bottom: 24px; }

/* Final call and wordmark */
.final { text-align: center; }
.final h2 { max-width: 14em; margin-left: auto; margin-right: auto; }
.mark { padding: 40px 12px 0; overflow: hidden; border-top: 1px solid var(--line); }
.mark svg { display: block; width: 100%; height: auto; overflow: visible; }
.mark text { font-family: var(--display); font-weight: 300; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px 28px 30px; text-transform: uppercase; letter-spacing: .24em; font-size: 11px; color: var(--ink-dim); }
.foot a { color: var(--ink-dim); text-decoration: none; margin-left: 18px; }
.foot a:hover { color: var(--ink); }

/* Apply form */
.apply-page { padding-top: 150px; min-height: 100vh; border-top: 0; }
.apply-page h1 { font-size: clamp(36px, 6.4vw, 76px); letter-spacing: -.015em; margin-bottom: 26px; }
form.apply { margin-top: 50px; max-width: var(--read); }
.field { margin-bottom: 34px; }
.field label, .field legend { display: block; font-size: 17px; margin-bottom: 8px; padding: 0; }
.field .hint { display: block; color: var(--ink-dim); font-size: 14px; margin-top: 2px; }
input[type=text], input[type=email], textarea {
  width: 100%; background: var(--card); color: var(--ink); border: 1px solid var(--line);
  padding: 14px 16px; font: inherit; font-size: 16px; line-height: 1.55; border-radius: 0;
}
input:focus, textarea:focus { outline: 0; border-color: var(--ink-dim); }
textarea { min-height: 120px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0 0 34px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 16px; color: var(--ink-dim); }
.check input { margin-top: 7px; accent-color: #ecebe7; }
.status { margin-top: 20px; color: var(--ink-dim); font-size: 15px; min-height: 1.4em; }

/* Reveal: unblur and come in like titles */
.js .reveal { opacity: 0; filter: blur(14px); transform: translateY(26px); transition: opacity 1s ease, filter 1s ease, transform 1s ease; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; filter: blur(0); transform: none; }
.js .split .w { display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(22px); transition: opacity .9s ease, filter .9s ease, transform .9s ease; transition-delay: calc(var(--i) * 70ms); }
.js .split.in .w { opacity: 1; filter: blur(0); transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .split .w, .word { opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .top { padding: 14px 18px; }
  .top nav a:not(.apply-link) { display: none; }
  section { padding: 90px 20px; }
  .addons > div { border-left: 0; border-top: 1px solid var(--line); }
  .addons > div:first-child { border-top: 0; }
  .text-link { display: block; margin: 20px 0 0; }
}

/* Case study numbers */
.stat { font-family: var(--display); font-weight: 300; font-size: clamp(40px, 5.4vw, 64px); line-height: 1; letter-spacing: -.02em; margin: 0 0 14px; }

/* Glow: soft ambient light, not a neon edge */
.hero, .anthem, .mark { position: relative; }
.hero { overflow: hidden; }
.hero .wrap, .anthem .wrap { position: relative; z-index: 1; }
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: min(80vw, 980px); aspect-ratio: 1; right: -16vw; top: 4vh;
  background: radial-gradient(closest-side, rgba(36, 66, 196, .26), rgba(28, 48, 150, .09) 55%, transparent);
  filter: blur(36px); animation: drift 16s ease-in-out infinite alternate;
}
.anthem { overflow: hidden; }
.anthem::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none; inset: 0;
  background: radial-gradient(ellipse 55% 60% at 50% 50%, rgba(40, 70, 190, .16), transparent 70%);
  animation: breathe 7s ease-in-out infinite alternate;
}
.end { position: relative; overflow: hidden; }
.end::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none; inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(30, 62, 190, .42), rgba(24, 44, 140, .16) 50%, transparent 80%);
}
.end > * { position: relative; z-index: 1; }
.mark::before { content: none; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-5vw, 4vh) scale(1.14); } }
@keyframes breathe { from { opacity: .55; } to { opacity: 1; } }

/* Film grain, very light */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { .hero::before, .anthem::before { animation: none; } }

/* Case study layout */
.case { display: grid; grid-template-columns: 190px minmax(0, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 40px; }
.case-photo { margin: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #000; display: flex; flex-direction: column; }
.case-photo img { display: block; width: 100%; height: auto; }
.case-photo figcaption { padding: 16px 20px 18px; font-size: 15px; line-height: 1.5; background: var(--card); border-top: 1px solid var(--line); }
.case-body { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.case-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .case { grid-template-columns: minmax(0, 1fr); } .case-photo { max-width: 190px; } }
@media (max-width: 480px) { .case-stats { grid-template-columns: minmax(0, 1fr); } }

/* Quote under the Anthem */
.anthem-quote { margin: 44px auto 0; max-width: 560px; padding-top: 34px; border-top: 1px solid var(--line); }
.anthem-quote p { font-family: var(--display); font-weight: 300; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.4; margin: 0 0 14px; }
.anthem-quote cite { font-style: normal; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--ink-dim); }

/* Quote under the monthly rhythm */
.work-quote { margin: 40px 0 0; padding: 0 0 0 26px; border-left: 1px solid var(--ink-dim); max-width: 620px; }
.work-quote p { font-family: var(--display); font-weight: 300; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.4; margin: 0 0 12px; }
.work-quote cite { font-style: normal; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--ink-dim); }
.work-quote + .package { margin-top: 40px; }

/* The ProfCon song */
.song { margin: 38px auto 0; max-width: 520px; }
.song .label { margin-bottom: 14px; }
.video { position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 100%; background: #000; border: 1px solid var(--line); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.anthem-quote + .anthem-quote { margin-top: 30px; }

/* Solid boxes: the dots never show through */
.quotes blockquote, .fit > div { background: var(--card); }


/* Hero headline: unblur in on load, line by line */
@keyframes titlein { from { opacity: 0; filter: blur(16px); transform: translateY(24px); } to { opacity: 1; filter: blur(0); transform: none; } }
.js .hero h1 .line { animation: titlein 1.2s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero h1 .line + .line { animation-delay: .35s; }
@media (prefers-reduced-motion: reduce) { .js .hero h1 .line { animation: none; } }
