/* ============================================================
   EVERWARD — pages.css
   Subpage layer: page headers with gold orb / particle accents,
   services catalog, method stages, case studies, journal,
   contact. Loaded after style.css on every page except index.
   ============================================================ */

/* ---------- Subpage entrance: quick fade, no preloader ---------- */
body.page main,
body.page .footer {
  animation: page-fade 0.4s var(--ease-out) both;
}

@keyframes page-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Active nav link ---------- */
.nav__link.is-active { color: var(--bone); }
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-overlay__link.is-active { color: var(--gold); }

/* ---------- Page header (signature accent, no WebGL) ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding-top: clamp(160px, 24vh, 240px);
  padding-bottom: clamp(var(--s8), 10vh, var(--s16));
  border-bottom: 1px solid var(--gold-20);
}

.page-head__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Pure-CSS gold gradient orbs — drift slowly behind the title */
.page-head__orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-head__orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  will-change: transform;
}

.page-head__orbs span:nth-child(1) {
  width: 420px; height: 420px;
  top: -140px; right: -80px;
  background: radial-gradient(circle, rgba(212, 175, 106, 0.20) 0%, transparent 65%);
  animation: orb-drift 22s ease-in-out infinite alternate;
}

.page-head__orbs span:nth-child(2) {
  width: 340px; height: 340px;
  bottom: -160px; left: 8%;
  background: radial-gradient(circle, rgba(212, 175, 106, 0.13) 0%, transparent 65%);
  animation: orb-drift 28s ease-in-out infinite alternate-reverse;
}

.page-head__orbs span:nth-child(3) {
  width: 260px; height: 260px;
  top: 30%; left: 46%;
  background: radial-gradient(circle, rgba(20, 32, 68, 0.9) 0%, transparent 70%);
  animation: orb-drift 34s ease-in-out infinite alternate;
}

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-48px, 32px) scale(1.12); }
}

.page-head__content { position: relative; z-index: 2; }

.page-head__eyebrow { color: var(--gold); margin-bottom: var(--s3); }

.page-head__title {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(2.75rem, 7vw, 6rem);
  font-weight: 320;
  line-height: 1.04;
  letter-spacing: -0.018em;
  max-width: 16ch;
  text-wrap: balance;
  margin-bottom: var(--s4);
  text-shadow: 0 2px 60px rgba(6, 11, 28, 0.8);
}

.page-head__sub {
  max-width: 54ch;
  color: var(--bone-60);
}

/* ============================================================
   SERVICES — the catalog of jobs
   ============================================================ */
.catalog__list { border-top: 1px solid var(--gold-20); }

.job {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(200px, 0.7fr);
  gap: var(--s4) var(--s6);
  padding-block: clamp(var(--s6), 6vw, var(--s8));
  border-bottom: 1px solid var(--gold-20);
  transition: background-color 0.4s var(--ease-out);
}

.job:hover { background: rgba(212, 175, 106, 0.03); }

.job__num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--gold);
  margin-bottom: var(--s2);
}

.job__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 360;
  line-height: 1.15;
  max-width: 14ch;
}

.job__body { color: var(--bone-60); font-size: 0.9375rem; margin-bottom: var(--s3); }
.job__get { color: var(--bone); font-size: 0.9375rem; margin-bottom: var(--s3); }
.job__get strong { font-weight: 500; color: var(--gold); }

.job__eg {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--bone-60);
  border-left: 1px solid var(--gold-40);
  padding-left: var(--s3);
}

.job__eg em { font-style: normal; color: var(--gold); }

.job__meta {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  align-items: flex-start;
}

.job__price {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 360;
  color: var(--gold);
  line-height: 1.2;
}

.job__time { font-size: 0.8125rem; }

/* Ships-with band */
.ships { background: linear-gradient(180deg, var(--ink) 0%, var(--navy) 100%); }

.ships__proofs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s6);
}

.ships__proof {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-60);
  border: 1px solid var(--hairline);
  border-radius: 100px;
  padding: 10px 20px;
}

.ships__proof::before { content: "· "; color: var(--gold); }

/* ============================================================
   METHOD — stages, proofs in depth, tiers
   ============================================================ */
.stages__list {
  list-style: none;
  counter-reset: stage;
  border-top: 1px solid var(--gold-20);
}

.stagex {
  padding-block: clamp(var(--s6), 6vw, var(--s8));
  border-bottom: 1px solid var(--gold-20);
}

.stagex__head {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.stagex__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.stagex__title {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 2.8vw, 2.25rem);
  font-weight: 360;
  line-height: 1.1;
}

.stagex__lede { max-width: 60ch; color: var(--bone-60); margin-bottom: var(--s4); }

.stagex__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}

.stagex__label { color: var(--gold); margin-bottom: var(--s2); }
.stagex__cols p:not(.stagex__label) { font-size: 0.9375rem; color: var(--bone-60); }

/* Six proofs, properly explained */
.proofx__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s6) var(--s8);
}

.proofx {
  border-top: 1px solid var(--gold-20);
  padding-top: var(--s4);
}

.proofx__num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--gold);
  margin-bottom: var(--s2);
}

.proofx__title {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 380;
  margin-bottom: var(--s2);
}

.proofx__body { color: var(--bone-60); font-size: 0.9375rem; max-width: 52ch; }

/* Fuller tier cards */
.card--tierx p + p { margin-top: var(--s2); }
.tierx__who { color: var(--bone); font-size: 0.9375rem; }
.tierx__who strong { color: var(--gold); font-weight: 500; }

/* ============================================================
   PROOF — case studies
   ============================================================ */
.proofnote {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--hairline);
  border-radius: 100px;
  padding: 10px 22px;
  margin-bottom: var(--s8);
}

.case { margin-bottom: var(--s4); padding: clamp(var(--s4), 4vw, var(--s8)); }

.case__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  margin-bottom: var(--s4);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--gold-20);
}

.case__tier { color: var(--gold); }

.case__title {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 2.8vw, 2.25rem);
  font-weight: 360;
  line-height: 1.1;
}

.case__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
  margin-bottom: var(--s4);
}

.case__grid .label { color: var(--gold); margin-bottom: var(--s2); display: block; }
.case__grid p:not(.label) { font-size: 0.9375rem; color: var(--bone-60); }

.case__outcome {
  border-top: 1px solid var(--gold-20);
  padding-top: var(--s4);
}

.case__outcome .label { color: var(--gold); margin-bottom: var(--s3); display: block; }

.case__results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}

.case__result-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 340;
  color: var(--gold);
  line-height: 1.15;
  margin-bottom: var(--s1);
  font-variant-numeric: tabular-nums;
}

.case__result-label { font-size: 0.8125rem; color: var(--bone-60); }

/* What clients sign */
.signed { background: var(--navy); border-block: 1px solid var(--gold-20); }
.signed__inner { max-width: 720px; }
.signed__body {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.55;
  color: var(--bone);
}
.signed__body + .signed__body { margin-top: var(--s3); }
.signed__body em { color: var(--gold); }

/* ============================================================
   JOURNAL — The Watchlog
   ============================================================ */
.entry {
  border-top: 1px solid var(--gold-20);
  padding-block: clamp(var(--s6), 6vw, var(--s8));
}

.entry:last-of-type { border-bottom: 1px solid var(--gold-20); }

.entry__meta { margin-bottom: var(--s2); }
.entry__meta i { font-style: normal; color: var(--gold); padding-inline: 6px; }

.entry__title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 350;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: var(--s3);
  max-width: 22ch;
}

.entry__deck { max-width: 58ch; color: var(--bone-60); }

.entry__details { margin-top: var(--s4); }

.entry__details summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--hairline);
  border-radius: 100px;
  padding: 12px 26px;
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
  user-select: none;
}

.entry__details summary::-webkit-details-marker { display: none; }
.entry__details summary:hover { border-color: var(--gold); }
.entry__details summary::after { content: "↓"; transition: transform 0.3s var(--ease-out); }
.entry__details[open] summary::after { transform: rotate(180deg); }
.entry__details[open] summary { color: var(--bone-60); }

.entry__body {
  max-width: 66ch;
  margin-top: var(--s4);
  animation: page-fade 0.5s var(--ease-out) both;
}

.entry__body p {
  color: var(--bone-60);
  margin-bottom: var(--s3);
}

.entry__body p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 2.2em;
  line-height: 0.9;
  float: left;
  padding-right: 10px;
  color: var(--gold);
}

.entry__body em { color: var(--bone); }

/* ============================================================
   CONTACT — Begin the Watch
   ============================================================ */
.begin__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s4);
  align-items: stretch;
}

.begin__card { display: flex; flex-direction: column; gap: var(--s3); padding: clamp(var(--s4), 4vw, var(--s8)); }

.begin__card-title {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 2.8vw, 2.25rem);
  font-weight: 360;
  line-height: 1.12;
}

.begin__card-body { color: var(--bone-60); font-size: 0.9375rem; }

.begin__cta { margin-top: auto; align-self: flex-start; }

.begin__alt {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  padding-top: var(--s3);
  border-top: 1px solid var(--gold-20);
}

.begin__alt a {
  font-size: 0.9375rem;
  color: var(--bone-60);
  align-self: flex-start;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.begin__alt a:hover { color: var(--gold); border-color: var(--gold); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: var(--s3); }

.contact-form label { display: block; color: var(--gold); margin-bottom: var(--s1); }

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(6, 11, 28, 0.6);
  border: 1px solid var(--hairline);
  color: var(--bone);
  padding: 14px 24px;
  font-size: 0.9375rem;
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.3s;
}

.contact-form input { border-radius: 100px; }
.contact-form textarea { border-radius: 20px; min-height: 132px; resize: vertical; line-height: 1.6; }

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--gold); }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--bone-40); }

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}

.contact-form .btn { align-self: flex-start; }

/* After you book — three steps */
.after__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}

.after__step { border-top: 1px solid var(--gold-20); padding-top: var(--s4); }

.after__num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--s3);
}

.after__title {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 380;
  margin-bottom: var(--s2);
}

.after__body { color: var(--bone-60); font-size: 0.9375rem; max-width: 38ch; }

/* ---------- CTA band shared by subpages ---------- */
.subcta {
  text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 60%, rgba(212, 175, 106, 0.09) 0%, transparent 70%),
    var(--ink);
}

.subcta__inner { display: flex; flex-direction: column; align-items: center; }

.subcta__title {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 330;
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 18ch;
  text-wrap: balance;
  margin-bottom: var(--s3);
}

.subcta__sub { max-width: 48ch; color: var(--bone-60); margin-bottom: var(--s6); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .job { grid-template-columns: 1fr 1.6fr; }
  .job__meta { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: var(--s4); }
  .proofx__grid { gap: var(--s6); }
}

@media (max-width: 820px) {
  .job,
  .stagex__cols,
  .proofx__grid,
  .case__grid,
  .case__results,
  .begin__grid,
  .contact-form__row,
  .after__grid { grid-template-columns: 1fr; }

  .job { gap: var(--s3); }
  .case__results { gap: var(--s3); }
  .page-head { padding-top: 140px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-head__orbs span { animation: none; }
  body.page main, body.page .footer, .entry__body { animation: none; }
}
