@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-v29-latin-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-v29-latin-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-v29-latin-800.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Salina";
  src: url("assets/fonts/Salina-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Salina";
  src: url("assets/fonts/Salina-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Salina";
  src: url("assets/fonts/Salina-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --pine: #004c3b;
  --pine-deep: #0f4e3e;
  --sage: #a1d3c9;
  --sage-soft: #e6f2ef;
  --cream: #f2eeeb;
  --paper: #fffdfa;
  --clay: #621545;
  --blush: #f3daeb;
  --gold: #a1d3c9;
  --ink: #0f4e3e;
  --muted: #666666;
  --line: rgba(0, 76, 59, 0.14);
  --shadow: 0 20px 60px rgba(0, 76, 59, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: white;
  background: var(--pine-deep);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
}

.wordmark { color: var(--pine); text-decoration: none; display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.wordmark img { display: block; width: 210px; height: auto; }
.wordmark span { margin-top: 6px; margin-left: 45px; font-size: 8px; font-weight: 800; letter-spacing: 0.25em; }

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  padding: 10px;
  border-radius: 999px;
}
.sound-toggle:hover { background: rgba(255,255,255,.5); color: var(--pine); }
.sound-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.hero {
  position: relative;
  overflow: hidden;
  max-width: 1240px;
  min-height: 455px;
  margin: 0 auto;
  padding: 72px 32px 64px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 70px;
  align-items: center;
}

.hero::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: -230px;
  top: -205px;
  border: 1px solid rgba(23,62,54,.1);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(23,62,54,.025), 0 0 0 100px rgba(23,62,54,.02);
  pointer-events: none;
}

.eyebrow { margin: 0 0 16px; color: var(--clay); font-size: 11px; font-weight: 700; letter-spacing: .17em; }

h1, h2, h3 { margin-top: 0; }
h1, h2 { font-family: "Salina", Georgia, serif; font-weight: 400; letter-spacing: -.025em; }
h1 { margin-bottom: 24px; font-size: clamp(52px, 6vw, 82px); line-height: .98; color: var(--pine-deep); }
h1 em { color: var(--clay); font-weight: 500; }
.intro { max-width: 620px; margin: 0; color: var(--muted); font-size: 18px; }

.time-panel {
  position: relative;
  z-index: 1;
  padding: 30px;
  color: white;
  background: var(--pine);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.time-panel > p:first-child { margin: 0 0 18px; font-family: "Salina", Georgia, serif; font-size: 23px; }
.time-options { display: flex; flex-wrap: wrap; gap: 9px; }
.time-chip {
  min-width: 58px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  color: white;
  background: transparent;
  cursor: pointer;
  transition: background .18s, color .18s, transform .18s;
}
.time-chip:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.5); }
.time-chip.active { color: var(--pine); background: var(--paper); border-color: var(--paper); }
.filter-result { margin: 18px 0 0; color: rgba(255,255,255,.68); font-size: 13px; }

.exercise-section { padding: 76px max(32px, calc((100vw - 1176px)/2)) 96px; background: var(--paper); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.section-heading h2 { max-width: 700px; margin-bottom: 0; font-size: clamp(34px, 4vw, 51px); line-height: 1.07; }
.section-heading > p { max-width: 300px; margin: 0 0 5px; color: var(--muted); text-align: right; }

.exercise-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.exercise-card {
  grid-column: span 2;
  min-height: 355px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.exercise-card:nth-child(4) { grid-column: 2 / span 2; }
.exercise-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(23,62,54,.26); }
.exercise-card[hidden] { display: none; }
.card-topline { display: flex; justify-content: space-between; align-items: center; }
.card-number { color: var(--sage); font-family: "Salina", Georgia, serif; font-size: 17px; }
.card-time { padding: 5px 9px; color: var(--clay); background: var(--blush); border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.card-icon { height: 86px; display: flex; align-items: center; color: var(--pine); }
.card-icon svg { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.card-context { margin: 2px 0 8px; color: var(--clay); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.exercise-card h3 { margin-bottom: 9px; font-family: "Salina", Georgia, serif; font-size: 29px; font-weight: 700; line-height: 1.05; }
.card-description { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.card-action { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 0 0; color: var(--pine); border: 0; border-top: 1px solid var(--line); background: transparent; font-weight: 700; cursor: pointer; }
.card-action svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; transition: transform .18s; }
.card-action:hover svg { transform: translateX(4px); }

.practice { padding: 80px 24px; background: var(--pine-deep); }
.practice-shell { position: relative; max-width: 820px; margin: 0 auto; padding: 42px; color: white; background: var(--pine); border: 1px solid rgba(255,255,255,.12); border-radius: 28px; box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.close-practice { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; display: grid; place-items: center; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: transparent; cursor: pointer; }
.close-practice:hover { color: white; background: rgba(255,255,255,.08); }
.close-practice svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.practice-head { display: flex; justify-content: space-between; gap: 30px; padding-right: 50px; }
.practice-kicker { margin: 0 0 6px; color: #bfcfc5; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.practice-head h2 { margin: 0; color: white; font-size: 40px; }
.practice-time { font-variant-numeric: tabular-nums; font-size: 24px; color: #d8e5dc; }
.practice-stage { min-height: 270px; display: grid; place-items: center; margin: 32px 0 24px; }
.practice-instruction { min-height: 115px; text-align: center; }
.step-label { margin: 0 0 8px; color: #a9beb2; font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.practice-instruction h3 { margin-bottom: 8px; font-family: "Salina", Georgia, serif; font-size: 31px; font-weight: 400; }
.practice-instruction > p:last-child { max-width: 600px; margin: 0 auto; color: rgba(255,255,255,.72); }
.progress-track { height: 4px; margin: 26px 0 20px; overflow: hidden; background: rgba(255,255,255,.12); border-radius: 999px; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--gold); border-radius: inherit; transition: width .25s linear; }
.practice-actions { display: flex; justify-content: center; gap: 12px; }
.button { min-width: 135px; min-height: 48px; padding: 11px 20px; border-radius: 999px; font-weight: 700; cursor: pointer; }
.button.primary { border: 1px solid var(--paper); color: var(--pine); background: var(--paper); }
.button.secondary { border: 1px solid rgba(255,255,255,.22); color: white; background: transparent; }
.button:hover { filter: brightness(.96); }

.breath-square { position: relative; width: min(250px, 62vw); aspect-ratio: 1; border: 2px solid rgba(255,255,255,.22); border-radius: 8px; }
.breath-dot { position: absolute; width: 22px; height: 22px; left: -11px; bottom: -11px; border: 5px solid rgba(255,255,255,.42); border-radius: 50%; background: var(--gold); box-shadow: 0 0 28px rgba(215,169,85,.62); animation: box-breathe 16s linear infinite; animation-play-state: paused; }
.breath-square.running .breath-dot { animation-play-state: running; }
.breath-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.breath-word { font-family: "Salina", Georgia, serif; font-size: 32px; }
.breath-count { color: #bfcfc5; font-variant-numeric: tabular-nums; font-size: 14px; }
.round-dots { position: absolute; left: 50%; bottom: -44px; display: flex; gap: 8px; transform: translateX(-50%); }
.round-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.2); }
.round-dot.done, .round-dot.current { background: var(--gold); }
.round-dot.current { box-shadow: 0 0 0 4px rgba(215,169,85,.17); }

@keyframes box-breathe {
  0% { left: -11px; bottom: -11px; }
  25% { left: calc(100% - 11px); bottom: -11px; }
  50% { left: calc(100% - 11px); bottom: calc(100% - 11px); }
  75% { left: -11px; bottom: calc(100% - 11px); }
  100% { left: -11px; bottom: -11px; }
}

.pulse-visual { position: relative; width: 220px; height: 220px; display: grid; place-items: center; }
.pulse-ring { position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; }
.pulse-visual.running .pulse-ring { animation: calm-pulse 5s ease-in-out infinite; }
.pulse-symbol { position: relative; z-index: 1; font-family: "Salina", Georgia, serif; font-size: 62px; color: var(--blush); }
@keyframes calm-pulse { 50% { transform: scale(1.16); opacity: .28; } }

.grounding-visual { width: min(420px, 100%); }
.sense-number { font-family: "Salina", Georgia, serif; font-size: 120px; line-height: 1; text-align: center; color: var(--blush); }
.sense-pips { display: flex; justify-content: center; gap: 9px; margin-top: 12px; }
.sense-pips span { width: 9px; height: 9px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; }
.sense-pips span.active { border-color: var(--gold); background: var(--gold); }

.team-visual { width: min(440px,100%); text-align: center; }
.team-count { font-family: "Salina", Georgia, serif; font-size: 66px; line-height: 1; }
.team-person { margin-top: 10px; color: #bfcfc5; }
.team-size-control { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 24px; }
.team-size-control button { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: white; background: transparent; cursor: pointer; }
.team-size-control button:disabled { opacity: .35; cursor: not-allowed; }

.complete-mark { width: 150px; height: 150px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; color: var(--gold); font-family: "Salina", Georgia, serif; font-size: 72px; }

footer { display: flex; justify-content: space-between; gap: 30px; padding: 30px max(32px, calc((100vw - 1176px)/2)); color: var(--muted); background: var(--cream); font-size: 12px; }
footer p { margin: 0; }
footer span { color: var(--pine); font-weight: 700; }

button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 42px; padding-top: 54px; }
  .exercise-grid { grid-template-columns: repeat(2, 1fr); }
  .exercise-card, .exercise-card:nth-child(4) { grid-column: auto; }
  .exercise-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 9px); justify-self: center; }
}

@media (max-width: 620px) {
  .topbar { min-height: 72px; padding: 14px 18px; }
  .wordmark img { width: 168px; }
  .wordmark span { margin-top: 5px; margin-left: 35px; font-size: 7px; }
  .sound-toggle span { display: none; }
  .hero { min-height: auto; padding: 46px 20px 52px; gap: 34px; }
  h1 { font-size: 51px; }
  .intro { font-size: 16px; }
  .time-panel { padding: 24px 20px; border-radius: 18px; }
  .time-options { display: grid; grid-template-columns: repeat(3, 1fr); }
  .time-chip { min-width: 0; }
  .exercise-section { padding: 58px 20px 70px; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 38px; }
  .section-heading > p { margin-top: 16px; text-align: left; }
  .exercise-grid { grid-template-columns: 1fr; }
  .exercise-card, .exercise-card:last-child { grid-column: auto; max-width: none; min-height: 320px; }
  .practice { padding: 20px 0; }
  .practice-shell { min-height: calc(100vh - 40px); padding: 68px 20px 30px; border-radius: 0; }
  .practice-head { padding-right: 0; }
  .practice-head h2 { font-size: 34px; }
  .practice-time { font-size: 19px; }
  .practice-stage { min-height: 245px; margin-top: 22px; }
  .practice-actions { position: sticky; bottom: 8px; }
  .button { flex: 1; min-width: 0; }
  footer { display: block; padding: 26px 20px; }
  footer p + p { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
