/* =========================================================
   4AddedValue — Website styles
   ========================================================= */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-18);
  color: var(--color-fg);
  background: var(--color-bg);
  line-height: var(--lh-relaxed);
}

a { color: inherit; text-decoration: none; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 64px;
}

/* ---------- Header ---------- */
.site-header {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 64px 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
}

/* Variant A — subtle: bone band behind hero, horizon mark between sections */
body[data-variant="A"] .hero-editorial {
  position: relative;
  margin: 0 calc(50% - 50vw);
  padding-left: max(64px, calc(50vw - var(--container) / 2 + 64px));
  padding-right: max(64px, calc(50vw - var(--container) / 2 + 64px));
  background: linear-gradient(180deg, var(--sky-100) 0%, var(--bone-100) 78%);
}
body[data-variant="A"] .hero-editorial::after {
  content: "";
  position: absolute;
  right: max(56px, calc(50vw - var(--container) / 2 + 56px));
  top: 96px;
  width: 240px;
  height: 240px;
  background-image: url('assets/horizon-hero.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.55;
  pointer-events: none;
}
body[data-variant="A"] .practice {
  background: var(--bone-200);
  margin: 0 calc(50% - 50vw);
  padding-left: max(64px, calc(50vw - var(--container) / 2 + 64px));
  padding-right: max(64px, calc(50vw - var(--container) / 2 + 64px));
}
body[data-variant="A"] .about::before {
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 0 32px;
  background-image: url('assets/logo-mark.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.6;
}

/* Variant B — landscape photo full-bleed under hero */
body[data-variant="B"] .hero-photo-band {
  margin: 0 calc(50% - 50vw) 0;
  width: 100vw;
  height: 56vh;
  min-height: 360px;
  max-height: 560px;
  background-image: url('assets/horizon-photo.jpg');
  background-size: cover;
  background-position: center 60%;
  position: relative;
}
body[data-variant="B"] .hero-photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,42,71,0) 60%, rgba(14,42,71,0.18) 100%);
}
body[data-variant="B"] .hero-photo-cap {
  position: absolute;
  left: 48px;
  bottom: 32px;
  z-index: 2;
  color: var(--bone-100);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
body:not([data-variant="B"]) .hero-photo-band { display: none; }
body:not([data-variant="A"]) .hero-editorial::after,
body:not([data-variant="A"]) .practice {
  /* keep defaults */
}

/* ---------- header end ---------- */
.site-logo { display: inline-flex; align-items: center; }
.site-nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--ink-900);
}
.site-nav a {
  position: relative;
  padding: 4px 0;
  transition: color var(--duration-base) var(--ease-standard);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink-900);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-standard);
}
.site-nav a:hover::after { transform: scaleX(1); }

/* ---------- Eyebrow & rules ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black-500);
  margin: 0 0 18px;
}
.rule-short {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ink-900);
  margin-bottom: 18px;
}

.section-head { margin-bottom: 48px; }
.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 3vw + 0.5rem, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink-900);
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 96px;
  position: relative;
  animation: heroFade 480ms var(--ease-out) both;
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.25rem, 6.2vw + 0.25rem, 6.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 32px;
  color: var(--ink-900);
  font-variation-settings: "opsz" 144;
  white-space: nowrap;
}
@media (max-width: 720px) { .hero-title { white-space: normal; } }

/* ---------- Big brand wordmark inside hero ---------- */
.hero-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none;
  margin: 0 0 56px;
}
.hero-brand-mark {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 4.6vw + 0.5rem, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink-800);
  font-variation-settings: "opsz" 96;
  display: inline-flex;
  align-items: baseline;
}
.hero-brand-4 { font-weight: 500; }
.hero-brand-rest { font-weight: 400; }
.hero-brand-bar {
  display: inline-flex;
  width: clamp(220px, 28vw, 360px);
  height: 4px;
  overflow: hidden;
}
.hero-brand-bar > span { flex: 1; height: 100%; display: block; }
.hero-title em {
  font-style: normal;
  color: var(--ink-700);
  font-weight: 400;
}
.hero-lead {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--fs-20);
  line-height: 1.55;
  color: var(--ink-900);
  max-width: 56ch;
  margin: 0 0 40px;
}
.hero-byline {
  font-size: 13px;
  color: var(--black-500);
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.hero-byline-role {
  display: inline-block;
  margin-top: 2px;
  color: var(--black-500);
}

.hero-centered {
  text-align: center;
  padding: 96px 0 112px;
}
.hero-centered .hero-title,
.hero-centered .hero-lead { margin-left: auto; margin-right: auto; }
.hero-centered .eyebrow,
.hero-centered .hero-byline { display: block; }

.hero-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 520px; }
.hero-horizon { width: 100%; height: 100%; }

/* Accent variants */
.hero[data-accent="sun"] .hero-title em {
  /* accent removed per request — keep em styling clean */
}
.hero[data-accent="rule"] .hero-title em {
  border-bottom: 2px solid var(--ink-700);
  padding-bottom: 4px;
}

/* ---------- Practice ---------- */
.practice { padding: 80px 0; border-top: 1px solid var(--bone-300); }
.practice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
}
.practice-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--bone-300);
  align-items: baseline;
}
.practice-num {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 28px;
  color: var(--sky-400);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 48;
}
.practice-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--ink-900);
}
.practice-desc {
  font-size: 15px;
  color: var(--black-500);
  line-height: 1.55;
  margin: 0;
  max-width: 38ch;
}

/* ---------- Closer (about + memberships side-by-side) ---------- */
.closer {
  padding: 96px 0 64px;
  border-top: 1px solid var(--bone-300);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 96px;
  align-items: start;
}
.closer-note { padding-top: 0; }
.closer-aside {
  padding-top: 96px;   /* offset down for editorial "verspringend" feel */
  align-self: start;
}
.closer-aside .eyebrow { margin-bottom: 12px; }
.closer-aside .eyebrow-soft { margin-top: 4px; color: var(--black-500); }
.closer-aside-divider {
  width: 100%;
  height: 1px;
  background: var(--bone-300);
  margin: 36px 0 28px;
}
.closer-credentials {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
@media (max-width: 880px) {
  .closer { grid-template-columns: 1fr; gap: 48px; padding: 64px 0 32px; }
  .closer-aside { padding-top: 0; }
}

/* ---------- About (legacy class still used inside closer) ---------- */
.about { padding: 96px 0; border-top: 1px solid var(--bone-300); }
.about-body {
  max-width: 38rem;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: var(--fs-18);
  line-height: 1.65;
  color: var(--ink-900);
}
.about-body p { margin: 0; }
.about-body .t-quote {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.5rem, 2vw + 0.5rem, 2rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin-bottom: 16px;
}
.about-meta {
  font-size: 14px;
  color: var(--black-500);
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--bone-300);
}

/* ---------- Hand-written signature ---------- */
:root {
  /* Baked-in defaults — these match the saved tweak values so the site
     renders identically without the Tweaks JS loaded. */
  --sig-x: 33vw;
  --sig-y: -32px;
  --sig-rot-1: -1.8deg;
  --sig-rot-2: -1.6deg;
  --sig-scale: 0.64;
  --sig-suffix-scale: 0.64;
  --sig-l2-scale: 0.6;
  --sig-l2-indent: 12%;
}
.closer-note { overflow: visible; }
.signature {
  font-family: "Caveat", "Segoe Script", "Bradley Hand", cursive;
  color: var(--ink-800);
  margin-top: 36px;
  position: relative;
  left: var(--sig-x);
  top: var(--sig-y);
  width: max-content;
  max-width: none;
  line-height: 0.92;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.signature-line {
  display: block;
  font-weight: 600;
  letter-spacing: 0.005em;
  transform-origin: left center;
  white-space: nowrap;
}
.signature-line-1 {
  font-size: calc(clamp(44px, 4.6vw, 64px) * var(--sig-scale));
  transform: rotate(var(--sig-rot-1));
  margin-left: 0;
}
.signature-line-2 {
  font-size: calc(clamp(44px, 4.6vw, 64px) * var(--sig-scale) * var(--sig-l2-scale));
  transform: rotate(var(--sig-rot-2));
  margin-left: var(--sig-l2-indent);
  margin-top: 6px;
  color: var(--ink-700);
  font-weight: 500;
  opacity: 0.94;
}
.signature-suffix {
  font-size: calc(1em * var(--sig-suffix-scale));
  font-weight: 500;
  color: var(--ink-700);
  margin-left: 0.35em;
  letter-spacing: 0.02em;
  vertical-align: 0.18em;
  opacity: 0.92;
}
@media (max-width: 880px) {
  :root { --sig-x: 14vw; }
  .signature { margin-top: 24px; white-space: normal; }
  .signature-line { white-space: normal; }
}

/* ---------- Contact ---------- */
.contact {
  padding: 96px 0;
  border-top: 1px solid var(--bone-300);
}
.contact-rows {
  border-top: 1px solid var(--ink-900);
  max-width: 56rem;
}
.contact-row {
  display: grid;
  grid-template-columns: 180px 1fr 24px;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--bone-300);
  color: var(--ink-900);
  font-size: 18px;
  transition: padding var(--duration-base) var(--ease-standard);
}
.contact-row:hover:not(.contact-row-static) {
  padding-left: 12px;
}
.contact-row-static { color: var(--black-500); cursor: default; }
.contact-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black-500);
}
.contact-value { font-family: var(--font-serif); font-weight: 400; font-size: 22px; letter-spacing: -0.01em; }
.contact-row-static .contact-value {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--ink-900);
}
.contact-arrow {
  font-size: 18px;
  color: var(--ink-700);
  transition: transform var(--duration-base) var(--ease-standard);
}
.contact-row:hover .contact-arrow {
  transform: translate(2px, -2px);
}

/* ---------- Full-bleed photo band ---------- */
.full-bleed-photo {
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  display: block;
  overflow: hidden;
  background: var(--bone-200);
}
.full-bleed-photo img {
  display: block;
  width: 100%;
  height: clamp(320px, 56vh, 640px);
  object-fit: cover;
  object-position: center 55%;
}
@media (max-width: 880px) {
  .full-bleed-photo img { height: clamp(220px, 38vh, 360px); }
}

/* ---------- Intro-only block (replaces Get in touch) ---------- */
.intro-only { padding: 80px 0 24px; border-top: 1px solid var(--bone-300); }
.intro-only .section-head { margin-bottom: 0; }

/* ---------- Credentials ---------- */
.credentials {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0 16px;
  flex-wrap: wrap;
}
.credentials-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black-500);
  margin-right: 8px;
}
.credential {
  display: inline-flex;
  align-items: center;
  height: 56px;
  transition: opacity var(--duration-base) var(--ease-standard);
  opacity: 0.9;
}
.credential:hover { opacity: 1; }
.credential img { height: 100%; width: auto; display: block; }
.credentials-dot { color: var(--bone-400); font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 64px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--black-500);
  border-top: 1px solid var(--bone-300);
  margin-top: 48px;
}
.footer-right { display: flex; align-items: center; gap: 12px; }
.footer-dot { color: var(--bone-400); }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.site-footer a:hover { text-decoration-thickness: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .site-header, main, .site-footer { padding-left: 20px; padding-right: 20px; }
  .site-header { padding-top: 10px; padding-bottom: 8px; gap: 16px; }
  .site-nav { gap: 20px; font-size: 13px; }
  .hero { padding: 48px 0 56px; }
  .hero-title { max-width: none; margin-bottom: 24px; }
  .hero-lead { font-size: 17px; margin-bottom: 28px; }
  body[data-variant="A"] .hero-editorial { padding-left: 20px; padding-right: 20px; }
  body[data-variant="A"] .hero-editorial::after { display: none; }
  body[data-variant="A"] .practice { padding-left: 20px; padding-right: 20px; }
  .practice { padding: 56px 0; }
  .practice-list { grid-template-columns: 1fr; gap: 0; }
  .practice-item { grid-template-columns: 44px 1fr; gap: 12px; padding: 22px 0; }
  .practice-num { font-size: 22px; }
  .practice-title { font-size: 19px; }
  .about { padding: 64px 0; }
  .about-body { font-size: 17px; }
  .about-body .t-quote { font-size: 22px; }
  .intro-only { padding: 56px 0 16px; }
  .credentials { padding: 16px 0; gap: 12px; }
  .credential { height: 44px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 24px; padding-bottom: 32px; margin-top: 32px; }
}
@media (max-width: 480px) {
  .site-header { flex-direction: row; }
  .site-header .site-logo img { height: 28px !important; }
}
