/* EPHS — site styles. Tokens mirror the EPHS brand guide. */
:root {
  color-scheme: light;
  --ephs-black: #121212;
  --ephs-paper: #F4F2EE;
  --ephs-orange: #D8461A;
  --ink: #141414;
  --ink-soft: #3D3D3D;
  --ink-on-dark: #FFFFFF;
  --soft-on-dark: #E8E5DF;
  --accent-text: #B83A12;       /* small orange text on paper */
  --accent-text-dark: #E8612F;  /* small orange text on black */
  --tile: #141414;
  --line: #CFCAC1;
  --line-dark: #2E2E2E;
  --white: #FFFFFF;

  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px;
  --space-5: 32px; --space-6: 48px; --space-7: 80px; --space-8: 120px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ephs-paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ephs-orange); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ephs-orange); color: var(--ink); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display); font-weight: 900; font-style: italic;
  font-stretch: 85%; text-transform: uppercase; line-height: .86; letter-spacing: -.005em;
}
.display .accent { color: var(--ephs-orange); }
.lead-in {
  display: block; font-family: var(--font-display); font-weight: 900; font-style: italic;
  font-size: clamp(22px, 3.2vw, 40px); letter-spacing: .06em; text-transform: uppercase; line-height: 1; margin-bottom: 10px;
}
.label {
  font-family: var(--font-mono); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text);
}
.tag {
  display: inline-block; background: var(--ephs-orange); color: var(--ink);
  font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 10px;
}
.section-title { font-size: clamp(40px, 6vw, 72px); margin-top: var(--space-2); }
.muted { color: var(--ink-soft); }
.ph { background: #FBE3D9; color: var(--accent-text); font-family: var(--font-mono); font-size: .88em; padding: 1px 5px; -webkit-box-decoration-break: clone; box-decoration-break: clone; overflow-wrap: anywhere; }
.dark .ph { background: #3A1C12; color: #F5A585; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 18px; letter-spacing: .03em;
  text-transform: uppercase; text-decoration: none; cursor: pointer; line-height: 1;
}
.btn-primary { background: var(--ephs-orange); color: var(--ink); }
.btn-primary:hover { background: #E8612F; color: var(--ink); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--ephs-paper); }
.dark .btn-ghost { color: var(--white); }
.dark .btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn svg { width: 18px; height: 18px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ephs-black); color: var(--white); border-bottom: 1px solid var(--line-dark); }
.site-header .wrap { display: flex; align-items: center; gap: var(--space-4); min-height: 72px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 118px; }
.nav { display: flex; align-items: center; gap: var(--space-4); margin-left: auto; }
.nav a:not(.btn) {
  color: var(--soft-on-dark); text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
  padding: 10px 2px; border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--ephs-orange); }
.nav .btn { min-height: 44px; font-size: 16px; padding: 10px 18px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 2px solid var(--line-dark); color: var(--white); width: 48px; height: 44px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--ephs-black); flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-2) var(--gutter) var(--space-4); border-bottom: 1px solid var(--line-dark); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
  .nav .btn { margin-top: var(--space-3); }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ephs-black); color: var(--white); overflow: hidden; padding-block: var(--space-7) 150px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 90px), 0 100%); }
.hero-grid { position: absolute; inset: 0; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--space-5); align-items: center; }
.hero h1 { font-size: clamp(64px, 11vw, 150px); }
.hero .intro { margin-top: var(--space-4); font-size: 19px; color: var(--soft-on-dark); max-width: 30em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.hero .tag { margin-bottom: var(--space-4); }

/* Home hero: plays once on load, then holds still. Shapes share one bottom band so the swooshes grow out of the stripe. */
.hero.hf { clip-path: none; min-height: 800px; padding-block: var(--space-7) 220px; }
.hf .wrap { grid-template-columns: minmax(0, 1fr); }
.hf .words { max-width: 640px; position: relative; z-index: 3; }
.hf-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hf-band { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 560px; pointer-events: none; }
.hf-paper polygon { fill: var(--ephs-paper); }
.hf-streak { opacity: 0; }
.hf-art { position: absolute; z-index: 2; right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); bottom: 74px; width: min(28vw, 340px); pointer-events: none; }
.hf-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.hf-front { fill: #FFFFFF; }
.hf-shadow { fill: var(--ephs-orange); fill-opacity: .45; transform: translate(28px, 22px); }
.hf .w1, .hf .w2 { display: inline-block; transform-origin: left 70%; }

@keyframes hfFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hfUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hfSlam { from { opacity: 0; transform: scale(1.35); } 60% { opacity: 1; } to { opacity: 1; transform: scale(1); } }
@keyframes hfWipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hfRise { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@keyframes hfShadow { from { transform: translate(0, 0); } to { transform: translate(28px, 22px); } }
@keyframes hfStreak { 0% { transform: translateX(-30%); opacity: 0; } 15% { opacity: .95; } 85% { opacity: .95; } 100% { transform: translateX(110%); opacity: 0; } }

.hf-grid            { animation: hfFade .8s .1s ease-out both; }
.hf-stripe          { animation: hfWipe .55s .05s cubic-bezier(.6,0,.2,1) both; }
.hf-solid           { animation: hfWipe .8s .55s cubic-bezier(.7,0,.2,1) both; }
.hf-soft            { animation: hfWipe .8s .7s cubic-bezier(.7,0,.2,1) both; }
.hf-art             { animation: hfRise .7s .45s cubic-bezier(.2,.8,.2,1) both; }
.hf-shadow          { animation: hfShadow .5s 1.15s cubic-bezier(.2,.8,.2,1) both; }
.hf-streak.s1       { animation: hfStreak 1.1s 1.45s ease-in-out both; }
.hf-streak.s2       { animation: hfStreak 1s 1.75s ease-in-out both; }
.hf .tag            { animation: hfUp .5s ease-out both; }
.hf .lead-in        { animation: hfUp .45s .15s ease-out both; }
.hf .w1             { animation: hfSlam .5s .35s cubic-bezier(.2,.8,.2,1) both; }
.hf .w2             { animation: hfSlam .5s .6s cubic-bezier(.2,.8,.2,1) both; }
.hf .intro          { animation: hfUp .5s 1.1s ease-out both; }
.hf .ctas           { animation: hfUp .5s 1.25s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .hf *, .hf-layer, .hf-band { animation: none !important; }
}
@media (max-width: 760px) {
  .hero.hf { min-height: 0; padding-block: var(--space-6) 400px; }
  .hf-band { height: 380px; }
  .hf-art { width: 170px; right: 24px; bottom: 58px; }
}

.page-hero { background: var(--ephs-black); color: var(--white); padding-block: var(--space-7) 120px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 0 100%); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(52px, 8.5vw, 110px); margin-top: var(--space-3); }
.page-hero p { margin-top: var(--space-4); color: var(--soft-on-dark); max-width: 36em; font-size: 19px; }
.page-hero .label { color: var(--accent-text-dark); }

/* angled orange stripe that rides the hero's diagonal edge */
.stripe { position: relative; height: 82px; margin-top: -60px; background: var(--ephs-orange); clip-path: polygon(0 60px, 100% 0, 100% 22px, 0 82px); pointer-events: none; }
.stripe-lg { height: 114px; margin-top: -90px; clip-path: polygon(0 90px, 100% 0, 100% 24px, 0 114px); }

/* ---------- sections ---------- */
.section { padding-block: var(--space-7); }
.section + .section { padding-top: 0; }
.section-head { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-6); max-width: 760px; }
.section-head p { font-size: 18px; color: var(--ink-soft); margin-top: var(--space-2); }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-6); }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; gap: var(--space-4); } }
.feature { display: flex; gap: 18px; align-items: flex-start; }
.ico { width: 56px; height: 56px; flex-shrink: 0; background: var(--tile); color: var(--ephs-orange); display: flex; align-items: center; justify-content: center; }
.ico svg { width: 28px; height: 28px; }
.ico.num { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 24px; }
.feature h3 { font-size: 19px; font-weight: 800; line-height: 1.2; text-transform: uppercase; letter-spacing: .01em; }
.feature p { font-size: 16px; color: var(--ink-soft); margin-top: 4px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.steps li { border-top: 3px solid var(--ink); padding-top: var(--space-3); }
.steps .n { font-family: var(--font-mono); font-weight: 600; color: var(--accent-text); font-size: 14px; letter-spacing: .1em; }
.steps h3 { font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 30px; line-height: 1; margin-top: var(--space-2); }
.steps p { margin-top: var(--space-2); color: var(--ink-soft); font-size: 16px; }

.levels { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(24px, 4vw, 44px); line-height: 1; }
.levels .sep { color: var(--ephs-orange); }

.dark { background: var(--ephs-black); color: var(--white); }
.dark .label { color: var(--accent-text-dark); }
.dark .muted, .dark .section-head p { color: var(--soft-on-dark); }

.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
.quote { border: 1px dashed #5A5A5A; padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); min-height: 190px; }
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.5; color: var(--soft-on-dark); }
.quote .who { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: var(--accent-text-dark); text-transform: uppercase; margin-top: auto; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ephs-orange); color: var(--ink); }
.cta-band .wrap { display: flex; align-items: center; gap: var(--space-5); padding-block: var(--space-6); flex-wrap: wrap; }
.cta-band h2 { font-family: var(--font-display); font-weight: 900; font-style: italic; font-stretch: 115%; text-transform: uppercase; font-size: clamp(34px, 5vw, 60px); line-height: .95; }
.cta-band .data { font-family: var(--font-mono); font-weight: 600; font-size: 16px; margin-top: var(--space-2); }
.cta-band .copy { flex: 1 1 380px; }
.cta-band .actions { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.cta-band .btn-dark { background: var(--ink); color: var(--white); }
.cta-band .btn-dark:hover { background: #2A2A2A; color: var(--white); }
.qr { width: 120px; background: var(--white); padding: 8px; }
@media (max-width: 600px) { .qr { display: none; } }

/* ---------- about ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--space-6); align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.photo-slot { aspect-ratio: 4 / 5; background: #E5E1DA; border: 2px dashed #B8B2A7; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--space-4); color: var(--ink-soft); font-family: var(--font-mono); font-size: 14px; max-width: 100%; }
.prose { display: flex; flex-direction: column; gap: var(--space-3); max-width: 38em; }
.prose h2 { font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 32px; line-height: 1; margin-top: var(--space-4); }
.facts { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: var(--space-3); padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 520px) { .facts li { grid-template-columns: 1fr; gap: 2px; } }
.facts .k { font-family: var(--font-mono); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); padding-top: 3px; }

/* ---------- book ---------- */
.rates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
@media (max-width: 720px) { .rates { grid-template-columns: 1fr; } }
.rate { background: var(--white); border: 2px solid var(--ink); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.rate.featured { border-color: var(--ephs-orange); box-shadow: 8px 8px 0 var(--ephs-orange); }
.rate h3 { font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 28px; line-height: 1; }
.rate .price { font-family: var(--font-display); font-weight: 900; font-size: 44px; line-height: 1; margin-top: var(--space-2); }
.rate ul { margin: var(--space-2) 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 16px; }
.scheduler { background: var(--white); border: 2px solid var(--ink); min-height: 320px; }
.calendly-inline-widget { min-width: 320px; height: 760px; }
.cal-fallback { padding: var(--space-6) var(--space-5); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.cal-fallback h3 { font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 34px; line-height: 1; }
.pay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
@media (max-width: 720px) { .pay { grid-template-columns: 1fr; } }
.pay-card { border-top: 3px solid var(--ink); padding-top: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); }
.pay-card h3 { font-size: 20px; font-weight: 800; text-transform: uppercase; }
.pay-card p { color: var(--ink-soft); font-size: 16px; }
.venmo-handle { font-family: var(--font-mono); font-weight: 600; font-size: 20px; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: 20px 0; font-weight: 800; font-size: 19px; text-transform: uppercase; letter-spacing: .01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 32px; height: 32px; flex-shrink: 0; background: var(--ink); color: var(--ephs-orange); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 20px; transition: transform .2s; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq .a { padding: 0 0 22px; color: var(--ink-soft); max-width: 44em; display: flex; flex-direction: column; gap: var(--space-2); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--space-6); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.ways { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.ways li { display: flex; gap: 16px; align-items: center; }
.ways .ico { width: 48px; height: 48px; }
.ways .ico svg { width: 22px; height: 22px; }
.ways .k { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.ways .v { font-weight: 700; font-size: 18px; }
form.contact { background: var(--white); border: 2px solid var(--ink); padding: var(--space-5); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
@media (max-width: 560px) { form.contact { grid-template-columns: 1fr; padding: var(--space-4); } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 2px solid var(--ink); background: var(--ephs-paper); color: var(--ink); border-radius: 0; min-height: 48px; }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { grid-column: 1 / -1; font-size: 14px; color: var(--ink-soft); }
.form-status { grid-column: 1 / -1; font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { background: var(--ephs-black); color: var(--soft-on-dark); padding-block: var(--space-6) var(--space-5); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer img { width: 150px; }
.site-footer h2 { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text-dark); margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--ephs-orange); }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--line-dark); padding-top: var(--space-4); font-size: 14px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
