/* J4 Aesthetics */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --bg: #0e0d0c;
  --bg-2: #161412;
  --bg-3: #1e1b18;
  --line: #2b2723;
  --line-strong: #4a443d;
  --text: #ebe5db;
  --muted: #a39a90;
  --ember: #e2622a;
  --ember-hover: #ef7440;
  --error: #f28b7d;

  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 68px;
  --field-h: 54px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Film grain over everything; fixed so it never repaints on scroll. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--ember); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.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;
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--ember); color: var(--bg); padding: 0.6rem 1rem; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 68%;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.005em;
}

.section-title {
  font-size: clamp(2.4rem, 1.4rem + 3.8vw, 4.25rem);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--ember);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.9rem 1.4rem;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.975rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .icon { transition: transform 0.3s var(--ease); }

.btn-primary { background: var(--ember); color: var(--bg); }
.btn-primary:hover { background: var(--ember-hover); }
.btn-primary:hover .icon:last-child { transform: translateX(3px); }

.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.mark { width: 36px; height: auto; color: var(--text); }
.mark-bar { fill: var(--ember); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 75%;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
}

.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav ul { display: flex; gap: 1.75rem; }
.nav ul a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav ul a:hover { color: var(--text); }
.nav-cta { min-height: 44px; padding: 0.65rem 1.1rem; font-size: 0.9rem; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-toggle .icon { width: 26px; height: 26px; }
.menu-close { display: none; }
.menu-open, .menu-close { line-height: 0; }

@media (max-width: 899px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem var(--gutter) 2.5rem;
    background: var(--bg);
    border-top: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0s 0.35s;
  }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 68%;
    text-transform: uppercase;
    font-size: 2.25rem;
    line-height: 1;
    color: var(--text);
  }
  .nav-cta { min-height: 56px; font-size: 1rem; }
  .menu-is-open .nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s, transform 0.35s var(--ease);
  }
  .menu-is-open .menu-open { display: none; }
  .menu-is-open .menu-close { display: inline; }
  .menu-is-open { overflow: hidden; }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  min-height: calc(100dvh - var(--header-h) - clamp(5rem, 11vw, 9rem));
}

.hero-copy { display: grid; gap: 1.75rem; justify-items: start; }

.hero h1 {
  font-size: clamp(3rem, 1.2rem + 4.4vw, 4.75rem);
  text-wrap: balance;
}

.hero-sub {
  max-width: 36ch;
  font-size: clamp(1.075rem, 1rem + 0.35vw, 1.25rem);
  color: var(--muted);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

.hero-photo {
  position: relative;
  justify-self: end;
  width: min(100%, 432px);
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 28px -28px -28px 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.hero-photo img {
  position: relative;
  width: 100%;
  max-height: calc(100dvh - var(--header-h) - 7rem);
  object-fit: cover;
  object-position: top;
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > * { animation: rise 0.9s var(--ease) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .js .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .js .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .js .hero-photo { animation: settle 1.2s var(--ease) 0.1s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes settle { from { opacity: 0; transform: scale(1.03); } }

@media (max-width: 767px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 3rem; }
  .hero-photo { justify-self: start; width: calc(100% - 28px); max-width: 400px; }
  .hero-photo img { max-height: none; }
}

/* ---------- Statement ---------- */

.statement {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}
.statement-text {
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 75%;
  font-size: clamp(2rem, 1rem + 3.6vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.statement-text span { color: var(--text); }
.statement-note {
  margin-top: 2rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--ember);
  max-width: 44ch;
  color: var(--muted);
}

/* ---------- Coaching ---------- */

.coaching {
  padding-block: var(--section);
  background: var(--bg-2);
}

.offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 2.5rem;
}

.offer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  background: var(--bg);
}
.offer-alt { background: var(--bg-3); }

.offer-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 70%;
  text-transform: uppercase;
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.4rem);
  line-height: 1;
}
.offer-lead { color: var(--muted); max-width: 46ch; }

.ticks { display: grid; gap: 0.85rem; }
.ticks li {
  position: relative;
  padding-left: 1.6rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  background: var(--ember);
}

.offer-foot {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.925rem;
  color: var(--muted);
}

@media (max-width: 767px) {
  .offers { grid-template-columns: 1fr; }
}

/* ---------- Goals ---------- */

.goals { padding-block: var(--section); }

.goal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 5rem);
}

.goal {
  position: relative;
  padding-block: 1.75rem 2.25rem;
  border-top: 1px solid var(--line);
}
.goal::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 2px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.goal:hover::before { transform: scaleX(1); }

.goal h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 68%;
  text-transform: uppercase;
  font-size: clamp(2.25rem, 1.5rem + 2.8vw, 3.75rem);
  line-height: 0.95;
  margin-bottom: 0.75rem;
}
.goal p { color: var(--muted); max-width: 38ch; }

.goals-note { margin-top: 2rem; color: var(--text); }

@media (max-width: 639px) {
  .goal-grid { grid-template-columns: 1fr; }
}

/* ---------- Process ---------- */

.process {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.step {
  counter-increment: step;
  padding-left: 1.25rem;
  border-left: 1px solid var(--line-strong);
}
.step::before {
  content: counter(step);
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 68%;
  font-size: 3.5rem;
  line-height: 0.8;
  color: var(--ember);
}
.step h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.step p { color: var(--muted); font-size: 1rem; }

@media (max-width: 899px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.75rem; }
}
@media (max-width: 539px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */

.about {
  padding-block: var(--section);
  background: var(--bg-2);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.about-photo {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  max-width: 440px;
}
.about-photo img {
  width: 100%;
  max-height: calc(100dvh - var(--header-h) - 4rem);
  object-fit: cover;
  object-position: 50% 20%;
}

.prose { display: grid; gap: 1.15rem; max-width: 62ch; }
.prose p:first-child { font-size: 1.2rem; color: var(--text); }
.prose p { color: #cfc8bd; }

.principles {
  display: grid;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}
.principles div {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.principles dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 70%;
  text-transform: uppercase;
  font-size: 1.6rem;
  line-height: 1;
}
.principles dd { color: var(--muted); }

@media (max-width: 767px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 360px; }
  .principles div { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* ---------- FAQ ---------- */

.faq { padding-block: var(--section); }

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
}

.faq-list { border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.4rem;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--ember);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq summary:hover { color: #fff8ee; }
.faq details p {
  padding-bottom: 1.5rem;
  max-width: 60ch;
  color: var(--muted);
}

@media (max-width: 767px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq .section-title { margin-bottom: 0.5rem; }
}

/* ---------- Apply ---------- */

.apply {
  padding-block: var(--section);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

.apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.apply-intro > p { color: var(--muted); max-width: 40ch; }

.contact-alt { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.contact-alt-title { font-weight: 600; margin-bottom: 1rem; }
.contact-alt ul { display: grid; gap: 0.75rem; }
.contact-alt a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
  word-break: break-all;
}
.contact-alt a:hover { color: var(--text); }
.contact-alt .icon { color: var(--ember); }

.form { display: grid; gap: 1.5rem; }

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.field { display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
fieldset.field { margin: 0; padding: 0; border: 0; }

.field label,
.field legend {
  padding: 0;
  font-size: 0.925rem;
  font-weight: 600;
}
/* A legend is not a grid item, so it needs the grid gap as a margin to line up with labels. */
.field legend { margin-bottom: 0.5rem; }
.optional { font-weight: 400; color: var(--muted); margin-left: 0.35rem; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  height: var(--field-h);
  padding: 0 1rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  transition: border-color 0.2s;
}
.field textarea { height: auto; padding-block: 0.8rem; resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23a39a90'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--muted); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 0;
  border-color: var(--ember);
}
.field [aria-invalid="true"] { border-color: var(--error); }

.field-help { font-size: 0.875rem; color: var(--muted); }
.field-error { font-size: 0.875rem; color: var(--error); }
.field-error:empty { display: none; }

.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.choice { position: relative; cursor: pointer; font-weight: 500; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--field-h);
  padding: 0 0.5rem;
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  transition: border-color 0.2s, background-color 0.2s;
}
.choice:hover span { border-color: var(--muted); }
.choice input:checked + span { border-color: var(--ember); background: #2a1a12; }
.choice input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 2px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn-submit { justify-self: start; min-width: 220px; }
.btn-submit[disabled] { opacity: 0.7; cursor: progress; }

.form-status {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--ember);
  background: var(--bg);
  font-weight: 500;
}
.form-status[data-state="error"] { border-left-color: var(--error); }

@media (max-width: 899px) {
  .apply-grid { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  .field-row { grid-template-columns: 1fr; }
  .btn-submit { justify-self: stretch; }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem 3rem;
  align-items: start;
}

.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand .mark { width: 44px; margin-top: 4px; }
.footer-brand p {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 85%;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-brand span {
  display: block;
  margin-top: 0.35rem;
  max-width: 36ch;
  font-family: var(--font-body);
  font-weight: 400;
  font-stretch: 100%;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy { grid-column: 1 / -1; color: var(--muted); font-size: 0.875rem; }

@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal on scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
