/*
Theme Name: Coherence Triad
Theme URI: https://coherencetriad.com/
Author: Coherence Triad
Description: A dedicated one-page WordPress theme for Coherence Triad: Light. Sound. Vibration. In Coherence.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: coherence-triad
*/

:root {
  --ink: #f6f2e8;
  --muted: #aaaebe;
  --night: #070a12;
  --night-soft: #0d1120;
  --panel: #111629;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #65d9ff;
  --violet: #b998ff;
  --gold: #f0c779;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Aptos, "Segoe UI", Helvetica, Arial, sans-serif;
  --shell: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: var(--shell); margin-inline: auto; }
.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-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--night); transform: translateY(-160%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled { background: rgba(7, 10, 18, .82); border-color: var(--line); backdrop-filter: blur(18px); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 39px; height: 39px; overflow: visible; }
.brand-mark circle { fill: none; stroke: rgba(246, 242, 232, .72); stroke-width: 1.25; }
.brand-mark .brand-core { fill: var(--gold); stroke: none; }
.brand-name { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .015em; }
.brand-name b { font-weight: 400; color: var(--gold); }
.primary-nav { display: flex; align-items: center; gap: 31px; }
.primary-nav a { color: #d8d9e0; text-decoration: none; font-size: .82rem; letter-spacing: .06em; transition: color .2s ease; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: #fff; }
.primary-nav .nav-cta { border: 1px solid rgba(240, 199, 121, .55); padding: 10px 15px; color: var(--gold); }
.nav-toggle { display: none; background: transparent; border: 0; width: 42px; height: 42px; padding: 11px 8px; }
.nav-toggle span:not(.sr-only) { display: block; height: 1px; background: var(--ink); margin: 7px 0; transition: transform .25s ease; }

.hero { min-height: 850px; position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: #060914; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(5,8,17,.99) 0%, rgba(5,8,17,.9) 34%, rgba(5,8,17,.25) 70%, rgba(5,8,17,.12) 100%), linear-gradient(0deg, #070a12 0%, transparent 22%); }
.hero-art { position: absolute; inset: 0; background: url('assets/images/coherence-convergence.webp') 61% center / cover no-repeat; opacity: .94; transform: scale(1.015); animation: hero-breathe 14s ease-in-out infinite alternate; }
.hero-inner { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 150px; }
.hero-copy { width: min(620px, 58vw); }
.eyebrow { margin: 0 0 20px; display: flex; align-items: center; gap: 10px; color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 650; }
.eyebrow span { width: 28px; height: 1px; background: currentColor; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; margin: 0; }
h1 { font-size: clamp(4.2rem, 7.4vw, 7rem); line-height: .86; max-width: 760px; }
h1 em, h2 em { font-weight: 400; color: var(--gold); }
.hero-lede { width: min(570px, 100%); margin: 32px 0 0; color: #c3c6d1; font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.72; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 53px; padding: 0 23px; text-decoration: none; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: #171106; box-shadow: 0 12px 40px rgba(240,199,121,.12); }
.button-primary:hover, .button-primary:focus-visible { box-shadow: 0 14px 48px rgba(240,199,121,.22); }
.text-link { color: #d8d9df; font-size: .84rem; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 3px; }
.text-link span { color: var(--gold); margin-left: 7px; }
.hero-signal { position: absolute; left: 0; bottom: 80px; width: 380px; opacity: .62; }
.signal-line { height: 1px; background: linear-gradient(90deg, var(--cyan), var(--violet), var(--gold)); box-shadow: 0 0 16px rgba(101,217,255,.5); }
.signal-labels { display: flex; justify-content: space-between; padding-top: 9px; color: #b8bbca; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; }
.hero-proof { position: absolute; z-index: 2; inset: auto 0 0; height: 74px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #aeb1bd; font-size: .71rem; letter-spacing: .105em; text-transform: uppercase; }

.section { padding: 138px 0; position: relative; }
.section h2 { font-size: clamp(3.2rem, 5.4vw, 5.25rem); line-height: .98; }
.section-intro { display: grid; grid-template-columns: 1fr .73fr; align-items: end; gap: 80px; }
.section-intro .eyebrow { grid-column: 1 / -1; margin-bottom: -36px; }
.section-intro > p:last-child { margin: 0 0 5px; color: var(--muted); font-size: 1.05rem; line-height: 1.8; }
.triad-section { background: linear-gradient(180deg, #070a12, #0a0e1a 68%, #090d18); }
.triad-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 86px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.modality-card { min-height: 470px; padding: 27px 31px 36px; border-right: 1px solid var(--line); position: relative; overflow: hidden; }
.modality-card:last-child { border-right: 0; }
.modality-card::after { content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%; left: 50%; top: 105px; transform: translateX(-50%); opacity: .12; filter: blur(55px); }
.modality-light::after { background: var(--cyan); }
.modality-sound::after { background: var(--violet); }
.modality-vibration::after { background: var(--gold); }
.card-number { font-size: .68rem; color: #888c9b; letter-spacing: .14em; }
.modality-glyph { height: 192px; display: grid; place-items: center; position: relative; z-index: 1; }
.modality-glyph svg { width: 98px; height: 98px; fill: none; stroke: currentColor; stroke-width: 1; }
.modality-light .modality-glyph { color: var(--cyan); }
.modality-sound .modality-glyph { color: var(--violet); }
.modality-vibration .modality-glyph { color: var(--gold); }
.card-kicker { margin: 0 0 5px; color: #8e92a2; text-transform: uppercase; letter-spacing: .14em; font-size: .64rem; }
.modality-card h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 2.4rem; font-weight: 400; }
.modality-card > p:last-child { margin: 0; color: #aeb1c0; font-size: .92rem; line-height: 1.7; }
.coherence-equation { display: flex; align-items: center; justify-content: center; gap: 27px; padding-top: 55px; text-transform: uppercase; font-size: .72rem; letter-spacing: .14em; color: #a9acb9; }
.coherence-equation b { color: #666a78; font-weight: 400; }
.coherence-equation strong { color: var(--gold); font-weight: 650; }

.experience-section { background: #080b15; overflow: hidden; }
.experience-section::before { content: ""; position: absolute; width: 650px; height: 650px; right: -250px; top: -90px; border-radius: 50%; background: rgba(111,83,222,.10); filter: blur(110px); }
.experience-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 80px; }
.experience-copy > p:not(.eyebrow) { color: var(--muted); max-width: 560px; margin: 30px 0; font-size: 1.02rem; line-height: 1.82; }
blockquote { margin: 38px 0 0; padding: 18px 0 18px 24px; border-left: 1px solid var(--gold); color: #e2e0dc; font-family: var(--serif); font-size: 1.5rem; line-height: 1.45; }
.experience-orbit { height: 520px; position: relative; display: grid; place-items: center; }
.orbit { position: absolute; width: 315px; height: 315px; border: 1px solid; border-radius: 50%; display: flex; justify-content: center; color: #7f8495; }
.orbit span { position: absolute; top: -11px; background: #080b15; padding: 0 12px; font-size: .62rem; letter-spacing: .17em; }
.orbit-one { border-color: rgba(101,217,255,.48); transform: translate(-72px, 50px); }
.orbit-two { border-color: rgba(185,152,255,.48); transform: translate(72px, 50px); }
.orbit-three { border-color: rgba(240,199,121,.48); transform: translate(0, -44px); }
.orbit-core { position: relative; z-index: 2; width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center; color: #1b1305; background: radial-gradient(circle at 40% 35%, #fff7d5 0, var(--gold) 44%, #ba772c 100%); box-shadow: 0 0 70px rgba(240,199,121,.4), 0 0 12px rgba(255,255,255,.65) inset; font-family: var(--serif); font-size: 2rem; }

.systems-section { background: #f0ede5; color: #111521; }
.systems-section .eyebrow { color: #7d5a19; }
.systems-section h2 em { color: #755320; }
.systems-heading { display: grid; grid-template-columns: 1fr .55fr; align-items: end; gap: 90px; }
.systems-heading > p { margin: 0 0 5px; color: #565a63; line-height: 1.78; }
.systems-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 75px; }
.system-card { position: relative; min-height: 510px; padding: 34px 30px; border: 1px solid rgba(17,21,33,.18); background: rgba(255,255,255,.28); }
.system-featured { background: #101526; color: var(--ink); border-color: #101526; transform: translateY(-18px); box-shadow: 0 25px 55px rgba(12,15,25,.16); }
.recommended { position: absolute; right: 20px; top: 19px; color: var(--gold); font-size: .59rem; text-transform: uppercase; letter-spacing: .14em; }
.system-index { margin: 0 0 58px; color: #797b81; font-size: .64rem; letter-spacing: .15em; }
.system-card h3 { margin: 0 0 16px; font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1.12; }
.system-pairing { margin: 0 0 19px; color: #6d4c16; text-transform: uppercase; font-size: .67rem; letter-spacing: .105em; font-weight: 700; }
.system-featured .system-pairing { color: var(--gold); }
.system-pairing span { padding: 0 5px; }
.system-card > p:not(.system-index):not(.system-pairing) { color: #5f6269; font-size: .9rem; line-height: 1.72; }
.system-featured > p:not(.system-index):not(.system-pairing) { color: #b7bac7; }
.system-card ul { list-style: none; padding: 20px 0 0; margin: 26px 0 0; border-top: 1px solid rgba(17,21,33,.14); }
.system-featured ul { border-color: var(--line); }
.system-card li { padding: 7px 0 7px 17px; position: relative; color: #474a52; font-size: .78rem; letter-spacing: .025em; }
.system-featured li { color: #c9cbd3; }
.system-card li::before { content: ""; position: absolute; left: 0; top: 15px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.systems-note { text-align: center; margin: 26px 0 0; color: #6b6d74; font-size: .76rem; }

.audience-section { background: #090d18; }
.audience-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 100px; }
.audience-copy { position: sticky; top: 140px; align-self: start; }
.audience-copy > p:last-child { margin-top: 30px; color: var(--muted); max-width: 490px; line-height: 1.8; }
.audience-list { border-top: 1px solid var(--line); }
.audience-item { display: grid; grid-template-columns: 55px 1fr; gap: 21px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.audience-item > span { color: var(--gold); font-size: .65rem; letter-spacing: .12em; padding-top: 5px; }
.audience-item h3 { margin: 0 0 7px; font-family: var(--serif); font-size: 1.8rem; font-weight: 400; }
.audience-item p { margin: 0; color: var(--muted); font-size: .91rem; line-height: 1.73; }

.founder-section { background: #0d1221; border-top: 1px solid var(--line); }
.founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; align-items: center; }
.founder-statement { border: 1px solid rgba(240,199,121,.24); padding: 48px; background: linear-gradient(145deg, rgba(240,199,121,.06), rgba(101,217,255,.025)); }
.statement-mark { width: 64px; margin-bottom: 60px; }
.statement-mark circle { fill: none; stroke: var(--gold); stroke-width: .8; }
.founder-statement p { margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 2.5vw, 2.55rem); line-height: 1.28; color: #ece8dd; }
.founder-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.82; margin: 26px 0 0; }

.consultation-section { padding: 145px 0; color: #17130c; background: var(--gold); position: relative; overflow: hidden; }
.consultation-section::after { content: ""; position: absolute; width: 640px; height: 640px; right: -180px; top: -310px; border: 1px solid rgba(19,15,8,.16); border-radius: 50%; box-shadow: 0 0 0 80px rgba(19,15,8,.025), 0 0 0 160px rgba(19,15,8,.025); }
.consultation-inner { position: relative; z-index: 1; }
.consultation-section .eyebrow { color: #5a3e0e; }
.consultation-section h2 { font-size: clamp(3.6rem, 7.1vw, 7rem); line-height: .91; max-width: 900px; }
.consultation-inner > p:not(.eyebrow) { max-width: 640px; margin: 32px 0 0; font-size: 1.08rem; line-height: 1.72; }
.consultation-actions { display: flex; align-items: center; gap: 30px; margin-top: 42px; }
.button-light { color: var(--ink); background: #111522; }
.button-light:hover, .button-light:focus-visible { box-shadow: 0 14px 34px rgba(12,14,20,.2); }
.consultation-link { color: #34250b; font-size: .83rem; font-weight: 650; text-underline-offset: 5px; }

.site-footer { padding: 72px 0 31px; background: #05070d; }
.footer-main { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding-bottom: 58px; }
.footer-main > p { margin: 0; text-align: center; color: #8f93a1; font-family: var(--serif); }
.footer-main > a:last-child { justify-self: end; color: #b2b5c0; font-size: .75rem; text-decoration: none; }
.footer-legal { display: flex; justify-content: space-between; gap: 50px; border-top: 1px solid var(--line); padding-top: 26px; color: #6f7380; font-size: .65rem; line-height: 1.6; }
.footer-legal p { margin: 0; }
.footer-legal p:first-child { max-width: 750px; }
.footer-legal p:last-child { white-space: nowrap; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes hero-breathe { from { transform: scale(1.015); } to { transform: scale(1.045); } }

/* Keep the fixed navigation below WordPress's toolbar while logged in. */
.admin-bar .site-header { top: 32px; }

@media (max-width: 900px) {
  :root { --shell: min(100% - 36px, 720px); }
  .primary-nav { position: fixed; inset: 82px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 18px 22px; background: rgba(7,10,18,.98); border-bottom: 1px solid var(--line); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: .86rem; }
  .primary-nav .nav-cta { margin-top: 13px; text-align: center; border: 1px solid rgba(240,199,121,.5); padding: 12px; }
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
  .hero { min-height: 820px; }
  .hero::before { background: linear-gradient(90deg, rgba(5,8,17,.98), rgba(5,8,17,.72) 63%, rgba(5,8,17,.22)), linear-gradient(0deg, #070a12 0%, transparent 28%); }
  .hero-art { background-position: 64% center; opacity: .72; }
  .hero-copy { width: min(630px, 84vw); }
  .hero-signal { width: 310px; }
  .section { padding: 105px 0; }
  .section-intro, .systems-heading, .experience-grid, .audience-grid, .founder-grid { grid-template-columns: 1fr; gap: 45px; }
  .section-intro .eyebrow { margin-bottom: -12px; }
  .triad-grid, .systems-grid { grid-template-columns: 1fr; }
  .modality-card { min-height: 310px; border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 60px 160px 1fr; align-items: center; gap: 10px; }
  .modality-card:last-child { border-bottom: 0; }
  .modality-glyph { height: 160px; }
  .modality-card .card-kicker, .modality-card h3, .modality-card > p:last-child { grid-column: 3; }
  .modality-card .card-kicker { align-self: end; }
  .modality-card h3 { margin-top: -35px; }
  .modality-card > p:last-child { align-self: start; margin-top: -38px; }
  .experience-orbit { order: -1; }
  .system-featured { transform: none; }
  .audience-copy { position: static; }
  .founder-grid { gap: 60px; }
  .admin-bar .primary-nav { top: 114px; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .primary-nav { top: 128px; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100vw - 32px); }
  .header-inner { min-height: 72px; }
  .brand-name { font-size: 1rem; }
  .brand-mark { width: 35px; height: 35px; }
  .primary-nav { inset: 72px 0 auto; }
  .hero { min-height: 790px; justify-content: flex-start; }
  .hero::before { background: linear-gradient(180deg, rgba(5,8,17,.4) 0%, rgba(5,8,17,.88) 46%, #070a12 89%); }
  .hero-art { height: 500px; background-position: 67% top; opacity: .76; }
  .hero-inner { padding-top: 285px; padding-bottom: 120px; }
  .hero-copy { width: 100%; }
  h1 { font-size: clamp(3.7rem, 16.5vw, 5.2rem); }
  .hero-lede { font-size: .98rem; line-height: 1.67; margin-top: 25px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; margin-top: 29px; }
  .button { width: 100%; justify-content: space-between; }
  .hero-signal { display: none; }
  .hero-proof { height: auto; padding: 18px 0; flex-direction: column; align-items: flex-start; gap: 5px; font-size: .59rem; }
  .section { padding: 86px 0; }
  .section h2 { font-size: clamp(2.8rem, 13.5vw, 4rem); }
  .section-intro { gap: 28px; }
  .triad-grid { margin-top: 52px; }
  .modality-card { min-height: 420px; padding: 24px; display: block; }
  .modality-glyph { height: 176px; }
  .modality-card .card-kicker, .modality-card h3, .modality-card > p:last-child { margin-top: 0; }
  .coherence-equation { flex-wrap: wrap; gap: 11px 16px; padding-top: 40px; }
  .coherence-equation strong { width: 100%; text-align: center; margin-top: 5px; }
  .experience-grid { gap: 30px; }
  .experience-orbit { height: 360px; transform: scale(.72); margin: -40px; }
  .systems-grid { margin-top: 50px; }
  .system-card { min-height: auto; padding: 28px 24px 32px; }
  .system-index { margin-bottom: 46px; }
  .audience-grid { gap: 55px; }
  .audience-item { grid-template-columns: 35px 1fr; gap: 13px; }
  .founder-statement { padding: 33px 27px; }
  .statement-mark { margin-bottom: 42px; }
  .consultation-section { padding: 100px 0; }
  .consultation-actions { flex-direction: column; align-items: stretch; gap: 22px; }
  .consultation-link { text-align: center; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; justify-items: start; }
  .footer-main > p { text-align: left; }
  .footer-main > a:last-child { justify-self: start; }
  .footer-legal { flex-direction: column; gap: 16px; }
  .admin-bar .primary-nav { top: 118px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
