/* Terence Carfrae: homepage redesign prototype.
   Palette is taken from the logo mark: taupe top triangle, sand diamond, stone lower triangle. */

@font-face { font-family: "Avenir TC"; src: url("fonts/avenir-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Avenir TC"; src: url("fonts/avenir-black.ttf") format("truetype"); font-weight: 900; font-display: swap; }

:root {
  --ink: #12100d;
  --ink-2: #1a1713;
  --ink-3: #25211b;
  --bone: #efeae1;
  --bone-2: #e4ddd0;
  --sand: #cfc2a8;
  --cta: #a85c1c;
  --cta-hover: #8f4e17;
  --taupe: #a89c84;
  --stone: #8b8273;
  --text-dark: #1d1a16;
  --muted-dark: #5d564b;
  --text-light: #efeae1;
  --muted-light: #b3aa9a;
  --line-light: rgba(207, 194, 168, 0.2);
  --line-dark: rgba(29, 26, 22, 0.14);

  --display: "Avenir TC", "Avenir Next", Avenir, "Nunito Sans", "Segoe UI", sans-serif;
  --sans: "Avenir TC", "Avenir Next", Avenir, "Nunito Sans", "Segoe UI", sans-serif;

  /* One house grade for every photo, so the forest greens and the blue tee sit in the brand's warm range. */
  --grade: saturate(.72) sepia(.1) contrast(1.03);

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text-light);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h1, h2, h3, .lede, .pull, .cost, .closer, .strong { text-wrap: balance; }
p, li { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
.light :focus-visible { outline-color: var(--ink); }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--sand); color: var(--ink);
  padding: 10px 16px; font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.light { background: var(--bone); color: var(--text-dark); }
.light .muted { color: var(--muted-dark); }
.muted { color: var(--muted-light); }
.ink-2 { background: var(--ink-2); }

/* Section titles are the biggest text in each section; explanation sits smaller beneath. */
.title { font-size: clamp(40px, 6vw, 76px); }
.title-xl { font-size: clamp(46px, 7.4vw, 104px); line-height: 1.02; }
.lede { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.6; max-width: 36em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--sans); font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; padding: 18px 30px; border-radius: var(--radius); white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; transition: background .25s, color .25s, border-color .25s;
  min-height: 52px;
}
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--cta-hover); }
.btn-ghost { border-color: rgba(239, 234, 225, 0.45); color: var(--text-light); }
.btn-ghost:hover { border-color: var(--bone); background: rgba(239, 234, 225, 0.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
@media (max-width: 520px) { .btn-row .btn { width: 100%; white-space: normal; } }

.text-link {
  font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 4px; display: inline-flex; gap: 10px; align-items: center;
}
.text-link .arrow { transition: transform .25s; }
.text-link:hover .arrow { transform: translateX(4px); }

/* Header: sits over the hero, then turns into a compact bar once the visitor scrolls. */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 30; padding: 22px 0; transition: background .3s, padding .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(18, 16, 13, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 10px 0; border-bottom-color: var(--line-light); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 46px; width: auto; transition: height .3s; }
.site-header.scrolled .brand img { height: 36px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 14px; letter-spacing: 0.08em; color: var(--text-light); opacity: .82; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.nav .btn { padding: 12px 20px; min-height: 0; font-size: 12px; opacity: 1; }
.nav .btn-cta { color: #fff; }
.menu { display: none; }
.quiz-short { display: none; }

@media (max-width: 1080px) {
  .nav .nav-link { display: none; }
  .menu { display: block; position: relative; }
  .menu summary {
    list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center;
    border: 1px solid rgba(239, 234, 225, 0.35); border-radius: var(--radius);
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary span, .menu summary span::before, .menu summary span::after {
    display: block; width: 18px; height: 1px; background: var(--bone); position: relative; content: "";
  }
  .menu summary span::before { position: absolute; top: -6px; }
  .menu summary span::after { position: absolute; top: 6px; }
  .menu-panel {
    position: absolute; right: 0; top: 54px; background: var(--ink-2); border: 1px solid var(--line-light);
    padding: 10px 0; min-width: 230px; display: flex; flex-direction: column;
  }
  .menu-panel a { padding: 13px 22px; text-decoration: none; font-size: 16px; opacity: 1; }
  .menu-panel a:hover { background: var(--ink-3); }
}
@media (max-width: 520px) {
  .brand img { height: 34px; }
  .site-header.scrolled .brand img { height: 30px; }
  .nav { gap: 10px; }
  .nav .btn { padding: 11px 14px; letter-spacing: 0.1em; }
}
@media (max-width: 420px) {
  .quiz-long { display: none; }
  .quiz-short { display: inline; }
}

/* Hero: the man walking into the light. The photo file is mirrored so he walks on the right. */
.hero {
  min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; position: relative; overflow: hidden;
  padding: 140px 0 clamp(56px, 9vw, 110px);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: var(--grade); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18,16,13,.55) 0%, rgba(18,16,13,0) 26%),
    linear-gradient(0deg, rgba(18,16,13,.96) 0%, rgba(18,16,13,.55) 38%, rgba(18,16,13,0) 70%),
    linear-gradient(90deg, rgba(18,16,13,.55) 0%, rgba(18,16,13,0) 60%);
}
.hero .wrap { position: relative; }
.hero h1 { max-width: 9.2em; font-size: clamp(44px, 5.8vw, 84px); }
.hero h1 em { font-style: normal; color: var(--sand); display: block; }
.hero .lede { margin: 28px 0 36px; color: #d9d2c5; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted-light); letter-spacing: 0.02em; }
@media (max-width: 700px) {
  .hero { padding-bottom: 44px; }
  .hero-bg img { object-position: 63% 50%; }
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(18,16,13,.6) 0%, rgba(18,16,13,0) 22%),
      linear-gradient(0deg, rgba(18,16,13,.97) 0%, rgba(18,16,13,.78) 48%, rgba(18,16,13,.1) 78%);
  }
  .hero .lede { margin: 20px 0 28px; }
}

/* Two patterns */
.patterns-head { text-align: center; max-width: 820px; margin: 0 auto clamp(48px, 7vw, 80px); }
.patterns-head .lede { margin: 22px auto 0; }
.patterns { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(20px, 3vw, 44px); align-items: stretch; }
.pattern {
  background: #f7f3ec; border: 1px solid var(--line-dark); padding: clamp(30px, 4vw, 52px);
  display: flex; flex-direction: column;
}
.pattern h3 { font-size: clamp(34px, 3.6vw, 48px); margin-bottom: 8px; }
.pattern .tagline { font-family: var(--display); font-style: italic; color: var(--muted-dark); font-size: 19px; margin-bottom: 28px; }
.pattern ul { list-style: none; padding: 0; margin: 0 0 28px; }
.pattern li { padding: 14px 0 14px 30px; border-top: 1px solid var(--line-dark); position: relative; }
.pattern li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 12px; height: 1px; background: var(--taupe); }
.pattern .cost { font-family: var(--display); font-size: 21px; line-height: 1.45; color: #3a342c; margin-bottom: 30px; }
.pattern .text-link { margin-top: auto; align-self: flex-start; }
.or { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.or svg { width: 40px; height: auto; }
.or span { font-family: var(--display); font-size: 22px; color: var(--muted-dark); font-style: italic; }
.or::before, .or::after { content: ""; width: 1px; flex: 1; background: var(--line-dark); }

.quiz-strip {
  margin-top: clamp(40px, 6vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-top: 1px solid var(--line-dark); padding-top: clamp(28px, 4vw, 40px); flex-wrap: wrap;
}
.quiz-strip h3 { font-size: clamp(28px, 3vw, 38px); }
.quiz-strip p { margin: 6px 0 0; }

@media (max-width: 860px) {
  .patterns { grid-template-columns: 1fr; }
  .or { flex-direction: row; padding: 4px 0; }
  .or::before, .or::after { width: auto; height: 1px; flex: 1; }
}

/* Same root */
.root-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.root-copy .title { margin-bottom: 30px; }
.root-copy p { font-size: 19px; }
.root-copy .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 34px 0; padding: 30px 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.root-copy .pair h3 { font-size: 24px; margin: 0 0 8px; color: var(--sand); }
.root-copy .pair p { font-size: 16px; margin: 0; color: var(--muted-light); }
.triangle svg { width: 100%; height: auto; display: block; }
.triangle .small { font-size: 12px; }
.triangle figcaption { text-align: center; color: var(--muted-light); font-size: 15px; margin-top: 18px; }
@media (max-width: 900px) { .root-grid { grid-template-columns: 1fr; } .triangle { max-width: 520px; margin: 0 auto; } }
@media (max-width: 480px) { .root-copy .pair { grid-template-columns: 1fr; } .triangle .small { font-size: 17px; } }

/* Split sections: photo on one half, copy on the other (About, the Initiation). */
.split-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 760px; }
.split-photo { position: relative; overflow: hidden; }
.split-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--grade); }
.split-copy { padding: clamp(64px, 9vw, 130px) var(--gutter); display: flex; flex-direction: column; justify-content: center; max-width: 680px; }
.split-copy .title { margin-bottom: 34px; }
.split-copy p { font-size: 19px; }
.about .split-photo img { object-position: 22% 30%; }
.about .title span { color: var(--stone); }
.about .pull { font-family: var(--display); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.3; color: var(--text-dark); margin: 16px 0 36px; padding-left: 24px; border-left: 2px solid var(--taupe); }
.initiation .split-photo img { object-position: 55% 40%; }
.initiation .split-copy { margin-left: auto; }
.initiation .title { margin-bottom: 22px; }
.facts { display: flex; margin: 30px 0 26px; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.facts div { flex: 1; padding: 18px 0; text-align: center; }
.facts div + div { border-left: 1px solid var(--line-dark); }
.facts strong { display: block; font-family: var(--display); font-weight: 900; font-size: 40px; line-height: 1.1; }
.facts span { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); }
.initiation .detail { font-size: 17px; color: var(--muted-dark); }
.price-line { font-size: 14px; color: var(--muted-dark); margin-top: 14px; }
.price-line strong { font-family: var(--display); font-weight: 900; font-size: 30px; color: var(--text-dark); margin-right: 10px; vertical-align: -3px; }
@media (max-width: 900px) {
  .split-section { grid-template-columns: 1fr; min-height: 0; }
  .split-photo { aspect-ratio: 4 / 3; }
  .initiation .split-photo { order: -1; }
  .initiation .split-copy { margin-left: 0; }
}

/* Path */
.path-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: clamp(48px, 7vw, 80px); flex-wrap: wrap; }
.path-head .lede { margin: 18px 0 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); }
.step { padding: 44px 36px 10px 0; display: flex; flex-direction: column; }
.step + .step { padding-left: 36px; border-left: 1px solid var(--line-light); }
.step .num { font-family: var(--display); font-weight: 900; font-size: 52px; line-height: 1; color: var(--stone); display: block; margin-bottom: 20px; }
.step h3 { font-size: 34px; margin-bottom: 6px; }
.step .what { color: var(--sand); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 20px; }
.step p { font-size: 17px; color: #cfc7b9; }
.step .closer { font-family: var(--display); font-style: italic; color: var(--text-light); font-size: 19px; }
.step .links { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 14px 26px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 36px 0 28px; border-left: 0; border-top: 1px solid var(--line-light); }
  .step:first-child { border-top: 0; }
  .step .num { font-size: 44px; }
}

/* Proof */
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.proof-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 78%; filter: var(--grade); }
.proof .title { margin-bottom: 28px; }
.proof p { font-size: 19px; }
.proof .strong { font-family: var(--display); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.35; color: var(--text-light); margin-top: 28px; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(64px, 8vw, 100px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line-light); }
.quotes-title { grid-column: 1 / -1; font-size: clamp(28px, 3vw, 38px); margin-bottom: 4px; }
.quote { margin: 0; display: flex; flex-direction: column; }
.quote h4 { font-family: var(--display); font-weight: 900; font-size: 22px; color: var(--sand); margin: 0 0 14px; }
.quote blockquote { margin: 0 0 18px; font-size: 16px; line-height: 1.65; color: #d4ccbe; }
.quote figcaption { margin-top: auto; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); }
.call-line { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.call-line p { margin: 0; font-size: 17px; }
@media (max-width: 900px) { .proof, .quotes { grid-template-columns: 1fr; } }

/* Close: the same man, now walking with her. Photo on the right half, words on the left. */
.close { position: relative; overflow: hidden; padding: clamp(120px, 16vw, 220px) 0; }
.close-bg { position: absolute; inset: 0 0 0 45%; }
.close-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: var(--grade); }
.close-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(18,16,13,0) 40%); }
.close .wrap { position: relative; }
.close .title-xl { max-width: 9em; margin: 0 0 28px; }
.close .lede { margin: 0 0 40px; max-width: 24em; color: #d9d2c5; }
.close .sub-links { margin-top: 26px; font-size: 15px; color: var(--muted-light); }
.close .sub-links a { color: var(--text-light); }
@media (max-width: 900px) {
  .close-bg { inset: 0; }
  .close-bg::after { background: rgba(18, 16, 13, .62); }
}

/* Footer */
.site-footer { background: var(--ink); border-top: 1px solid var(--line-light); padding: 56px 0 40px; font-size: 15px; }
.foot { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.foot img { height: 40px; width: auto; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.foot a { text-decoration: none; color: var(--muted-light); }
.foot a:hover { color: var(--bone); }
.legal { margin-top: 40px; color: var(--stone); font-size: 13px; display: flex; gap: 10px 20px; flex-wrap: wrap; justify-content: center; text-align: center; }

/* Reveal on scroll. Only hidden when JS is running, so the page never goes blank without it. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
