/* =============================================================================
   Charles Hoppe · Personal Website
   Design system: ink / cream / forest / copper · Manrope + Jost
   ============================================================================= */

/* =============================================================================
   DESIGN TOKENS
   ============================================================================= */
:root {
  --ink:        #1A1A1A;
  --cream:      #F2EDE3;
  --forest:     #2F4A3B;
  --copper:     #8C6A3F;

  --ink-70:     rgba(26,26,26,0.70);
  --ink-55:     rgba(26,26,26,0.55);
  --ink-30:     rgba(26,26,26,0.30);
  --ink-12:     rgba(26,26,26,0.12);
  --ink-06:     rgba(26,26,26,0.06);
  --cream-deep: #EAE3D4;

  --font-display: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --font-header:  'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Jost', 'Helvetica Neue', Arial, sans-serif;

  --r-md:   4px;
  --r-lg:   8px;
  --r-pill: 999px;

  --container:      1120px;
  --container-base:  880px;
  --container-narrow: 640px;
}

/* =============================================================================
   RESET & BASE
   ============================================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* =============================================================================
   TYPOGRAPHY
   ============================================================================= */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 0.92;
  font-size: clamp(48px, 7vw, 88px);
  color: var(--ink);
}

.h1 {
  font-family: var(--font-header);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  font-size: clamp(22px, 2.8vw, 30px);
  color: var(--ink);
}

.h2 {
  font-family: var(--font-header);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
  font-size: 14px;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--font-header);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--copper);
  display: block;
  margin-bottom: 12px;
}

/* =============================================================================
   STRUCTURAL ELEMENTS
   ============================================================================= */
.rule {
  display: block;
  height: 2px;
  background: var(--forest);
  border: 0;
  width: 72px;
  flex-shrink: 0;
}

.rule--heavy { height: 3px; }
.rule--full  { width: 100%; }
.rule--hair  { height: 1px; background: var(--ink-12); width: 100%; }
.rule--40    { width: 40px; }

.role-label {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  border: 1px solid var(--copper);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  line-height: 1;
  white-space: nowrap;
}

/* =============================================================================
   LAYOUT
   ============================================================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.container--base {
  max-width: var(--container-base);
  margin: 0 auto;
  padding: 0 40px;
}

/* =============================================================================
   BUTTONS
   ============================================================================= */
.btn-primary {
  display: inline-block;
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 14px 28px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  line-height: 1;
}
.btn-primary:hover {
  background: var(--forest);
  border-color: var(--forest);
}

.btn-ghost {
  display: inline-block;
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 14px 28px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
  line-height: 1;
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

/* =============================================================================
   NAVIGATION
   ============================================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--ink-12);
  height: 64px;
  transition: border-color 0.2s ease;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav__mark {
  width: 30px;
  height: 30px;
  display: block;
}

.nav__name {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-55);
  text-decoration: none;
  transition: color 0.12s;
}
.nav__links a:hover { color: var(--copper); }
.nav__links a.is-active { color: var(--copper); }

.nav__cta {
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
  padding: 9px 18px;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.15s ease;
  line-height: 1;
}
.nav__cta:hover { background: var(--forest); }

/* =============================================================================
   HERO  — asymmetric editorial split (Taste Skill: LAYOUT_VARIANCE > 4)
   ============================================================================= */
.hero {
  padding-top: 64px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 60fr 40fr;
}

.hero__left {
  padding: 100px 72px 100px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--ink-12);
}

.hero__overline {
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-bottom: 20px;
}

.hero__name {
  margin-bottom: 24px;
}

.hero__rule {
  margin-bottom: 28px;
}

.hero__tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-70);
  max-width: 500px;
  margin-bottom: 44px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.hero__right {
  padding: 100px 40px 100px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__stat {
  padding: 28px 0;
  border-bottom: 1px solid var(--ink-12);
}
.hero__stat:first-child {
  border-top: 1px solid var(--ink-12);
}

.hero__stat-number {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 40px;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 6px;
}

.hero__stat-label {
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: 8px;
}

.hero__stat-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-55);
  line-height: 1.5;
}

/* =============================================================================
   DARK STRIP
   ============================================================================= */
.strip {
  background: var(--ink);
  padding: 44px 0;
}

.strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.strip__item {
  padding: 0 36px;
  border-right: 1px solid rgba(255,255,255,0.10);
}
.strip__item:first-child { padding-left: 0; }
.strip__item:last-child  { border-right: none; }

.strip__label {
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: 6px;
}

.strip__text {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(242,237,227,0.65);
  line-height: 1.5;
}

/* =============================================================================
   SECTION BASE
   ============================================================================= */
.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--cream-deep);
}

.section__header {
  margin-bottom: 56px;
}

/* =============================================================================
   PRACTICE
   ============================================================================= */
.practice__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: start;
}

.practice__intro {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 20px;
}

.practice__body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-70);
  margin-bottom: 24px;
}

.pullquote {
  display: grid;
  grid-template-columns: 2px 1fr;
  gap: 20px;
  margin: 32px 0;
}
.pullquote__bar   { background: var(--forest); }
.pullquote__text  {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink-70);
}

.scenario-list {
  list-style: none;
}

.scenario-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--ink-12);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  align-items: start;
}
.scenario-item:first-child { border-top: 1px solid var(--ink-12); }

.scenario-marker {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  padding-top: 3px;
}

.scenario-title {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 5px;
}

.scenario-desc {
  font-size: 13px;
  color: var(--ink-55);
  line-height: 1.5;
}

/* =============================================================================
   PILLARS
   ============================================================================= */
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ink-12);
  border: 1px solid var(--ink-12);
}

.pillar {
  background: var(--cream-deep);
  padding: 48px 44px;
}

.pillar__number {
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: 16px;
}

.pillar__title {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}

.pillar__rule {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--forest);
  margin-bottom: 16px;
}

.pillar__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-70);
}

/* =============================================================================
   TRIGGER EVENTS
   ============================================================================= */
.triggers__layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  align-items: start;
}

.triggers__intro-heading {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 20px;
}

.triggers__intro-body {
  font-size: 15px;
  color: var(--ink-55);
  line-height: 1.6;
}

.triggers__intro-link {
  color: var(--copper);
  text-decoration: none;
  border-bottom: 1px solid rgba(140,106,63,0.4);
  transition: border-color 0.15s ease;
}
.triggers__intro-link:hover { border-bottom-color: var(--copper); }

.trigger {
  padding: 32px 0;
  border-bottom: 1px solid var(--ink-12);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}
.trigger:first-child { border-top: 1px solid var(--ink-12); }

.trigger__label {
  display: inline-block;
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  border: 1px solid var(--copper);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  line-height: 1;
  white-space: nowrap;
  margin-top: 4px;
}

.trigger__title {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}

.trigger__body {
  font-size: 15px;
  color: var(--ink-70);
  line-height: 1.6;
}

/* =============================================================================
   WRITING
   ============================================================================= */
.writing__intro {
  max-width: 560px;
  font-size: 16px;
  color: var(--ink-70);
  line-height: 1.65;
  margin-top: 16px;
}

.writing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ink-12);
  border: 1px solid var(--ink-12);
  margin-top: 48px;
}

.writing-card {
  background: var(--cream-deep);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}

.writing-card__format {
  display: inline-block;
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  border: 1px solid var(--copper);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  line-height: 1;
  margin-bottom: 22px;
  align-self: flex-start;
}

.writing-card__rule {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--forest);
  margin-bottom: 16px;
}

.writing-card__title {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.3;
}

.writing-card__desc {
  font-size: 14px;
  color: var(--ink-55);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 24px;
}

.writing-card--linked {
  text-decoration: none;
  transition: background 0.15s ease;
}
.writing-card--linked:hover {
  background: var(--cream);
}

.writing-card__read {
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-top: auto;
  padding-top: 20px;
}

.writing__featured {
  margin-top: 48px;
  max-width: 560px;
}

.writing__actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* =============================================================================
   ABOUT
   ============================================================================= */
.about__grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  align-items: start;
}

.about__portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about__body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-70);
  margin-bottom: 24px;
}

/* =============================================================================
   CONTACT
   ============================================================================= */
.contact {
  background: var(--ink);
  padding: 96px 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}

.contact__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 24px;
}

.contact__body {
  font-size: 16px;
  color: rgba(242,237,227,0.60);
  line-height: 1.65;
  margin-bottom: 36px;
}

.contact__channels {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 36px;
}

.contact__channel {
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(242,237,227,0.35);
  padding-bottom: 3px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.contact__channel:hover {
  color: #B08A5A;
  border-bottom-color: #B08A5A;
}

.contact__identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact__identity-rule {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--copper);
  flex-shrink: 0;
}

.contact__identity-name {
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,237,227,0.55);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,237,227,0.60);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--cream);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(242,237,227,0.18);
  padding: 9px 0;
  outline: none;
  transition: border-color 0.15s ease;
  border-radius: 0;
  resize: none;
  -webkit-appearance: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(242,237,227,0.22);
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--copper);
}

.form-field textarea {
  line-height: 1.6;
}

.form-error {
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  min-height: 14px;
  padding-top: 4px;
}

.contact__submit-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact__note {
  font-size: 12px;
  color: rgba(242,237,227,0.55);
  line-height: 1.5;
}

.btn-primary--cream {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.btn-primary--cream:hover {
  background: var(--cream-deep);
  border-color: var(--cream-deep);
}
.btn-primary--cream:disabled {
  cursor: not-allowed;
}

/* Form success state */
.contact__success-heading {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 12px;
}

.contact__success-body {
  font-size: 16px;
  color: rgba(242,237,227,0.60);
  line-height: 1.6;
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 28px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__mark {
  width: 22px;
  height: 22px;
  opacity: 0.35;
}

.footer__name {
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242,237,227,0.60);
}

.footer__divider {
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,0.12);
}

.footer__practice {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(242,237,227,0.50);
}

.footer__links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer__links a {
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242,237,227,0.55);
  text-decoration: none;
  transition: color 0.12s;
}
.footer__links a:hover { color: #B08A5A; }

.footer__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer__social {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer__social a {
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242,237,227,0.55);
  text-decoration: none;
  transition: color 0.12s;
}
.footer__social a:hover { color: #B08A5A; }

.footer__top {
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242,237,227,0.55);
  text-decoration: none;
  transition: color 0.12s;
}
.footer__top:hover { color: #B08A5A; }

/* =============================================================================
   FULL-RANGE LEADERSHIP — the descent (sticky crossfade video)
   ============================================================================= */
.fullrange {
  position: relative;
  height: 260vh;
}

.fullrange__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--ink);
}

/* Three stacked videos — the active one is visible, the rest fade out */
.fullrange__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.fullrange__video.is-active { opacity: 1; }

/* Gentle legibility scrim over the whole frame */
.fullrange__scrim {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.22);
  z-index: 2;
}

.eyebrow--ondark {
  color: #B08A5A;
}

/* Centred overlay box — same treatment as the rest of the dark surfaces */
.fullrange__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
  padding: 24px;
}

.fullrange__overlay-inner {
  pointer-events: auto;
  width: 100%;
  max-width: 540px;
  background: rgba(26,26,26,0.82);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  flex-direction: column;
  padding: 40px 48px 36px;
}

.fullrange__header .rule {
  margin-bottom: 0;
}

/* Panels container — fixed height so the box doesn't jump between panels */
.fullrange__panels {
  position: relative;
  height: 210px;
  margin: 20px 0 24px;
}

.fr-panel {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(calc(-50% + 28px));
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.fr-panel.is-active {
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
}

.fr-panel.is-past {
  opacity: 0;
  transform: translateY(calc(-50% - 28px));
}

.fr-phase {
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #B08A5A;
  display: block;
  margin-bottom: 16px;
}

.fr-heading {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 36px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1.05;
  margin-bottom: 20px;
}

.fr-body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: rgba(242,237,227,0.72);
}

/* Step indicators */
.fullrange__steps {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.fr-step {
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242,237,227,0.40);
  transition: color 0.35s ease;
  white-space: nowrap;
}

.fr-step::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1px;
  background: rgba(255,255,255,0.12);
  vertical-align: middle;
  margin: 0 8px;
}
.fr-step:last-child::after { display: none; }
.fr-step.is-active { color: #B08A5A; }

/* Tablet */
@media (max-width: 960px) {
  .fullrange__overlay { padding: 20px; }
  .fullrange__overlay-inner { padding: 32px 36px 28px; }
  .fullrange__panels { height: 190px; }
}

/* Mobile */
@media (max-width: 600px) {
  .fullrange { height: 280vh; }
  .fullrange__overlay { padding: 16px; }
  .fullrange__overlay-inner {
    padding: 28px 24px 24px;
    max-width: 100%;
  }
  .fullrange__panels { height: 210px; margin: 16px 0 20px; }
  .fr-heading { font-size: 22px; }
  .fr-body    { font-size: 14px; }
  .fr-step    { font-size: 8px; }
  .fr-step::after { width: 8px; margin: 0 5px; }
}

/* Reduced motion: show the first level as a still, no crossfade churn */
@media (prefers-reduced-motion: reduce) {
  .fullrange__video { transition: none; }
  .fr-panel { transition: none; }
}

/* =============================================================================
   SCROLL REVEAL  (Taste Skill: MOTION_INTENSITY 3 — subtle entrance only)
   ============================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.08s; }
.reveal--delay-2 { transition-delay: 0.16s; }
.reveal--delay-3 { transition-delay: 0.24s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =============================================================================
   HAMBURGER BUTTON  (hidden on desktop)
   ============================================================================= */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-right: -8px;
  flex-shrink: 0;
  touch-action: manipulation;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}

.nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* =============================================================================
   MOBILE NAV PANEL  (hidden on desktop)
   ============================================================================= */
.nav__mobile {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--ink-12);
  z-index: 98;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.nav__mobile.is-open {
  max-height: 360px;
}

.nav__mobile-links {
  list-style: none;
  padding: 8px 24px 20px;
}

.nav__mobile-links li {
  border-bottom: 1px solid var(--ink-06);
}
.nav__mobile-links li:last-child {
  border-bottom: none;
}

.nav__mobile-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-70);
  text-decoration: none;
  transition: color 0.12s;
  touch-action: manipulation;
}
.nav__mobile-links a:hover,
.nav__mobile-links a:focus { color: var(--copper); outline: none; }

.nav__mobile-cta {
  color: var(--copper) !important;
  font-weight: 600 !important;
}

/* =============================================================================
   RESPONSIVE — TABLET  (≤ 960px)
   ============================================================================= */
@media (max-width: 960px) {

  /* Layout */
  .container,
  .container--base { padding: 0 28px; }
  .nav__inner       { padding: 0 28px; }
  .section          { padding: 72px 0; }

  /* Nav */
  .nav__links  { display: none; }
  .nav__hamburger { display: flex; }

  /* Keep CTA visible on mobile — compact, grouped right with hamburger */
  .nav__cta {
    margin-left: auto;
    margin-right: 8px;
    padding: 8px 14px;
    font-size: 9px;
    white-space: nowrap;
  }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__left {
    border-right: none;
    border-bottom: 1px solid var(--ink-12);
    padding: 88px 28px 60px;
  }
  .hero__right {
    padding: 52px 28px 68px;
  }

  /* Strip */
  .strip__grid {
    grid-template-columns: 1fr;
  }
  .strip__item {
    padding: 16px 0;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .strip__item:last-child { border-bottom: none; }

  /* Practice */
  .practice__grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  /* Pillars */
  .pillars__grid    { grid-template-columns: 1fr; }
  .pillar           { padding: 40px 32px; }

  /* Triggers */
  .triggers__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Writing */
  .writing__grid { grid-template-columns: 1fr; }
  .writing-card  { padding: 36px 32px; }

  /* About */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about__portrait { max-width: 260px; }

  /* Contact */
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer__social { flex-wrap: wrap; gap: 20px; }
}

/* =============================================================================
   RESPONSIVE — MOBILE  (≤ 600px)
   ============================================================================= */
@media (max-width: 600px) {

  /* Layout */
  .container,
  .container--base { padding: 0 20px; }
  .nav__inner       { padding: 0 20px; }
  .nav__mobile-links { padding: 8px 20px 20px; }
  .section          { padding: 56px 0; }

  /* Hide nav wordmark at small sizes — CH mark is sufficient */
  .nav__name { display: none; }

  /* Hero */
  .hero__left {
    padding: 72px 20px 52px;
  }
  .hero__right {
    padding: 44px 20px 60px;
  }
  .hero__tagline {
    font-size: 17px;
  }
  .hero__stat        { padding: 20px 0; }
  .hero__stat-number { font-size: 34px; }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn-primary,
  .hero__actions .btn-ghost {
    text-align: center;
    padding: 16px 20px;
  }

  /* Strip: single column */
  .strip { padding: 36px 0; }
  .strip__grid {
    grid-template-columns: 1fr;
  }
  .strip__item {
    padding: 16px 0;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .strip__item:last-child { border-bottom: none; }

  /* Practice */
  .practice__intro   { font-size: 17px; }
  .pullquote__text   { font-size: 17px; }
  .practice__grid    { gap: 44px; }

  /* Pillars */
  .pillar { padding: 32px 20px; }
  .section__header { margin-bottom: 40px; }

  /* Triggers */
  .triggers__layout { gap: 36px; }
  .trigger          { padding: 24px 0; gap: 16px; }
  .trigger__body    { font-size: 14px; }

  /* Writing */
  .writing-card { padding: 28px 20px; }
  .writing__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .writing__actions .btn-primary,
  .writing__actions .btn-ghost {
    text-align: center;
    padding: 16px 20px;
  }

  /* Contact */
  .contact       { padding: 72px 0; }
  .contact__grid { gap: 44px; }
  .contact__body { font-size: 15px; }
  .contact__submit-row .btn-primary--cream {
    width: 100%;
    text-align: center;
    padding: 16px 20px;
  }

  /* Prevent iOS input zoom — font-size must be ≥ 16px on mobile */
  .form-field input,
  .form-field textarea {
    font-size: 16px;
  }

  /* Footer */
  .footer__links { gap: 20px; flex-wrap: wrap; }
}

/* =============================================================================
   TOUCH — ensure 44px minimum tap targets on all interactive elements
   ============================================================================= */
@media (hover: none) and (pointer: coarse) {
  .btn-primary,
  .btn-ghost,
  .nav__cta {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
  }

  .nav__links a,
  .footer__links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    touch-action: manipulation;
  }

  /* Remove hover states that don't work on touch */
  .btn-primary:hover  { background: var(--ink); border-color: var(--ink); }
  .btn-ghost:hover    { background: transparent; color: var(--ink); }
  .nav__cta:hover     { background: var(--ink); }
}
