/* ============================================================
   HEADWAY — Beauty & Haircare Consulting
   Editorial-luxury design system
   ============================================================ */

:root {
  /* Palette — Beauty Consulting: warm, elegant & modern */
  --ink:        #22324a;   /* deep navy — headings, primary text, strong contrast */
  --ink-soft:   #56677c;   /* muted navy — body text */
  --ink-faint:  #b8a89c;   /* warm taupe — secondary elements, captions, meta */
  --paper:      #f8f5f0;   /* soft ivory — background */
  --paper-2:    #e5d9cc;   /* oat beige — section backgrounds, subtle highlights */
  --card:       #fffdfa;   /* card surface */
  --line:       #e5d9cc;   /* oat beige — hairline borders */
  --bronze:     #b2875b;   /* bronze accent — buttons, key details */
  --bronze-dk:  #97744a;
  --sage:       #a5b19a;   /* sage green — modern accent touches, icons, fresh details */
  --plum:       #22324a;   /* deep navy for dark sections */

  /* Type */
  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Metrics */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; } /* anchor scrolling is handled in JS (site.js scrollToHash) */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* not "hidden" — that forces overflow-y to auto per spec,
                        turning body into its own scroll container and
                        breaking #anchor jumps and window.scrollTo everywhere */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
.display { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 300; letter-spacing: -0.025em; }
h2.section-title { font-size: clamp(1.7rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.5rem; }
.eyebrow {
  font-family: var(--sans);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 1.2rem;
  display: inline-block;
}
.lead { font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--ink-soft); line-height: 1.5; font-weight: 400; }
p { margin: 0 0 1.1rem; color: var(--ink-soft); }
.muted { color: var(--ink-faint); }
em { font-style: italic; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding: clamp(72px, 11vw, 150px) 0; }
.section--tight { padding: clamp(56px, 8vw, 100px) 0; }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--plum); color: #f3e9e2; }
.section--dark p { color: #d8c7bf; }
.section--dark .eyebrow { color: #d9a982; }
.grid { display: grid; gap: clamp(24px, 4vw, 56px); }
.two { grid-template-columns: repeat(2, 1fr); }
.three { grid-template-columns: repeat(3, 1fr); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.maxw-680 { max-width: 680px; }
.maxw-820 { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 1.05em 1.9em; border-radius: 100px;
  border: 1px solid var(--bronze); background: var(--bronze); color: #fff;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: transparent; border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.btn--ghost { background: var(--bronze); border-color: var(--bronze); color: #fff; }
.btn--ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: var(--bronze); color: #fff; border-color: var(--bronze); }
.arrow-link {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bronze-dk);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: gap .3s var(--ease), border-color .3s var(--ease);
}
.arrow-link:hover { gap: .9em; border-color: var(--bronze); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease);
}
/* The frosted-glass effect lives on a ::before, not on .site-header itself —
   backdrop-filter/transform/filter on an element makes it a containing block
   for its position:fixed descendants, which was squashing the mobile nav
   panel (a fixed-position child of .site-header) down to the header's own
   107px height instead of the full viewport. */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  transition: background .4s var(--ease);
}
.site-header.scrolled { border-color: var(--line); }
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 1.1rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand { display: flex; flex-direction: column; gap: .3rem; }
.brand__mark {
  font-family: var(--serif); font-weight: 500; font-size: 1.55rem; letter-spacing: .02em;
  color: var(--ink); line-height: 1;
}
.brand__mark b { color: var(--bronze); font-weight: 500; }
.brand__tag { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); font-weight: 700; }
.nav__links { display: flex; align-items: center; gap: 2.1rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-size: .82rem; font-weight: 500; letter-spacing: .06em; color: var(--ink-soft);
  position: relative; padding: .3em 0;
  transition: color .25s var(--ease);
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--bronze);
  transition: width .3s var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__cta { margin-left: .4rem; }
.nav__toggle { display: none; background: none; border: none; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s var(--ease); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: clamp(70px, 12vw, 130px) 0 clamp(60px, 9vw, 110px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { margin-bottom: 1.6rem; }
.hero__title .accent { font-style: italic; color: var(--bronze); }
.hero__sub { max-width: 40ch; margin-bottom: 2.2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero__media {
  aspect-ratio: 4/5; border-radius: 6px; position: relative;
  background: linear-gradient(150deg, #d8c3b0, #b78d6d 55%, #7d5540);
  box-shadow: 0 40px 80px -40px rgba(60,40,25,.5);
}
.hero__media > .img-wrap { position: absolute; inset: 0; border-radius: 6px; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Marquee of credentials */
.marquee { border-block: 1px solid var(--line); padding: 1.3rem 0; overflow: hidden; background: var(--paper); }
.marquee__track { display: flex; gap: 3.5rem; align-items: center; white-space: nowrap; animation: scroll-x 26s linear infinite; animation-play-state: running !important; }
.marquee__item { font-family: var(--serif); font-size: 1.3rem; color: var(--ink-faint); letter-spacing: .02em; }
.marquee__dot { color: var(--bronze); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============================================================
   INSIGHT / SPLIT SECTIONS
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media {
  aspect-ratio: 5/6; border-radius: 6px; overflow: hidden;
  background: linear-gradient(160deg, #e7d8c8, #c0a184);
  box-shadow: 0 30px 60px -35px rgba(60,40,25,.45);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

.insight-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem; }
.insight-card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1.8rem; }
.insight-card .step { font-family: var(--serif); font-size: 1.05rem; color: var(--sage); margin-bottom: .6rem; }
.insight-card h4 { font-family: var(--sans); font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; margin-bottom: .4rem; }
.insight-card.is-negative { background: transparent; border-style: dashed; }
.insight-card.is-negative .step { color: var(--ink-faint); }

/* ============================================================
   METHOD / PHASES
   ============================================================ */
.phases { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 3.5rem; border-top: 1px solid var(--line); align-items: stretch; }
.phase {
  padding: 2rem 1.4rem; border-right: 1px solid var(--line); position: relative;
  display: flex; flex-direction: column;
  transition: background .35s var(--ease);
}
.phase:last-child { border-right: none; }
.phase:hover { background: var(--card); }
.phase__num { font-family: var(--serif); font-size: 2.6rem; color: var(--line); line-height: 1; transition: color .35s var(--ease); }
.phase:hover .phase__num { color: var(--bronze); }
.phase__name { font-weight: 700; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; margin: 1rem 0 .3rem; }
.phase__desc { font-size: .92rem; color: var(--ink-soft); margin-bottom: .8rem; flex-grow: 1; }
.phase__punch { display: block; font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ink); margin-bottom: .3rem; font-weight: 400; }
.phase__time { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bronze-dk); font-weight: 600; margin-top: auto; }

/* Phase detail cards (services page) */
.phase-detail { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1.6rem; }
.phase-detail__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; margin-bottom: .6rem; }
.phase-detail__title { font-size: 1.8rem; margin: 0; display: flex; align-items: baseline; gap: .5rem; }
.phase-detail__num { font-family: var(--serif); color: var(--bronze); }
.phase-detail__subtitle { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 1.2rem; }
.phase-detail__time { margin-left: auto; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.phase-detail p:last-child { margin-bottom: 0; }

/* ============================================================
   SERVICE / ENGAGEMENT CARDS
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }
.svc-card {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 2rem;
  display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -35px rgba(60,40,25,.4); border-color: var(--bronze); }
.svc-card__phases { font-family: var(--serif); font-size: 1.05rem; color: var(--bronze); margin-bottom: 1rem; letter-spacing: .05em; }
.svc-card h3 { font-size: 1.5rem; margin-bottom: .8rem; }
.svc-card p { font-size: .96rem; flex-grow: 1; }
.svc-card__time { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }

.cs-list { grid-template-columns: 1fr 1fr; }

/* Case-study cards: nested body must itself grow so the Result line
   lands on the same baseline across a row, regardless of copy length. */
.cs-card__body { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.cs-card__body p { flex-grow: 1; }
.cs-meta { display: flex; gap: 1.6rem; margin-bottom: 1.1rem; flex-grow: 0 !important; }
.cs-meta__k { display: block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); font-weight: 700; margin-bottom: .2rem; }
.cs-meta__v { font-size: .9rem; color: var(--ink-soft); }
.cs-card__label { flex-grow: 0 !important; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; margin: 0 0 .4rem; }

/* ============================================================
   FOUNDERS / ABOUT
   ============================================================ */
.founder-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.founder-pair__photo {
  aspect-ratio: 4/3; width: 100%; border-radius: 6px; overflow: hidden; margin-bottom: clamp(1.4rem, 2.5vw, 2rem);
  background: linear-gradient(160deg, #e3d3c2, #b1876a); box-shadow: 0 30px 60px -35px rgba(60,40,25,.4);
}
.founder__name { font-size: 2.4rem; margin-bottom: .3rem; }
.founder__role { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); font-weight: 700; margin-bottom: 1.4rem; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.value h3 { font-size: 1.4rem; margin-bottom: .8rem; }
.value__num { font-family: var(--serif); font-size: 1rem; color: var(--bronze); display: block; margin-bottom: .8rem; letter-spacing: .1em; }

/* ============================================================
   QUOTE / MANIFESTO
   ============================================================ */
.manifesto { text-align: center; }
.manifesto__quote { font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem, 3vw, 2.5rem); line-height: 1.28; letter-spacing: -.01em; max-width: 18ch; margin: 0 auto; }
.section--dark .manifesto__quote { color: #f3e9e2; }
.manifesto__quote em { color: var(--bronze); font-style: italic; }
.manifesto__mark { font-family: var(--serif); font-size: 5rem; line-height: .5; color: var(--bronze); display: block; margin-bottom: .4rem; }
.manifesto__sig { margin-top: 2rem; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); }
.section--dark .manifesto__sig { color: #b9a599; }

/* ============================================================
   CHALLENGES (quotes wall)
   ============================================================ */
.quote-wall { columns: 3; column-gap: 1.4rem; margin-top: 3rem; }
.quote-chip {
  position: relative;
  break-inside: avoid; background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 1.5rem 1.6rem; margin-bottom: 1.4rem; font-size: 1.02rem; line-height: 1.45; color: var(--ink);
}
/* The delete button must stay fully inside the box (not overflow the corner like
   .faq-del's default -9px/-9px) — an overflowing absolutely-positioned descendant
   breaks the CSS multi-column balance algorithm this wall relies on, collapsing
   every chip into a single column. */
.quote-chip .faq-del { top: 10px; right: 10px; }
.quote-chip::before { content: '\201C'; font-family: var(--serif); color: var(--bronze); font-size: 1.6rem; margin-right: .1em; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.field { margin-bottom: 1.4rem; }
.field label { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); margin-bottom: .5rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .95rem 1rem; border: 1px solid var(--line); border-radius: 4px; background: var(--card);
  font-family: inherit; font-size: 1rem; color: var(--ink); transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(169,116,79,.15); }
.field textarea { resize: vertical; min-height: 140px; }
.contact-detail { margin-bottom: 1.8rem; }
.contact-detail .k { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); font-weight: 700; margin-bottom: .3rem; }
.contact-detail .v { font-family: var(--serif); font-size: 1.35rem; }
.form-note { font-size: .82rem; color: var(--ink-faint); margin-top: 1rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: .9rem; margin-top: 2.5rem; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 8px; position: relative; }
.faq-q {
  list-style: none; cursor: pointer; padding: 1.3rem 3.2rem 1.3rem 1.6rem; font-weight: 600; font-size: 1.02rem;
  color: var(--ink); position: relative; display: block;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+'; position: absolute; right: 1.6rem; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--bronze); transition: transform .3s var(--ease);
}
.faq-item details[open] .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { margin: 0; padding: 0 2.2rem 1.5rem 1.6rem; color: var(--ink-soft); font-size: .96rem; max-width: 68ch; }
.faq-del {
  display: none; position: absolute; top: -9px; right: -9px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff; border: 2px solid var(--paper2, var(--paper)); font-size: 1rem; line-height: 1;
  align-items: center; justify-content: center; z-index: 5;
}
.edit-active .faq-del { display: flex; }
.faq-del:hover { background: #a8422f; }
.faq-add { display: none; margin-top: 1.6rem; }
.edit-active .faq-add { display: inline-flex; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero { padding: clamp(70px, 10vw, 120px) 0 clamp(40px, 6vw, 70px); }
.page-hero .display { max-width: 16ch; }
.page-hero .lead { max-width: 55ch; margin-top: 1.4rem; }

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip { text-align: center; }
.cta-strip h2 { font-size: clamp(1.7rem, 4vw, 3rem); font-weight: 300; max-width: 20ch; margin: 0 auto 1.8rem; }
.cta-strip .lead { max-width: 46ch; margin: 0 auto 2.4rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: #d9cec3; padding: clamp(56px, 8vw, 90px) 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(28px, 5vw, 60px); padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand__mark { font-family: var(--serif); font-size: 2rem; color: #fff; margin-bottom: 1rem; }
.footer-brand__mark b { color: var(--bronze); }
.footer-brand p { color: #b1a496; max-width: 34ch; font-size: .95rem; }
.footer-col h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #8a7d70; font-weight: 600; margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .7rem; }
.footer-col a { color: #d9cec3; font-size: .95rem; transition: color .25s var(--ease); }
.footer-col a:hover { color: var(--bronze); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.8rem; flex-wrap: wrap; }
.footer-bottom small { color: #8a7d70; font-size: .82rem; letter-spacing: .02em; }
/* Discreet moderator login — deliberately understated */
.footer-login {
  background: none; border: none; color: #4d453d; font-size: .8rem; letter-spacing: .04em;
  padding: 4px 6px; transition: color .3s var(--ease); display: inline-flex; align-items: center; gap: .4em;
}
.footer-login:hover { color: #8a7d70; }
.footer-login svg { width: 13px; height: 13px; opacity: .7; }

/* ============================================================
   MODERATOR NAV CONTROL (shown only when signed in)
   ============================================================ */
.nav__mod { position: relative; }
.nav__mod-btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; font-weight: 600; letter-spacing: .06em;
  color: var(--ink); background: none; border: 1px solid var(--line);
  padding: .55em 1.05em; border-radius: 100px;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.nav__mod-btn:hover, .nav__mod-btn[aria-expanded="true"] { border-color: var(--bronze); color: var(--bronze-dk); }
.nav__mod-btn svg { width: 15px; height: 15px; }
.nav__mod-btn .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bronze); box-shadow: 0 0 0 3px rgba(169,116,79,.25); display: none; }
.nav__mod.is-editing .nav__mod-btn .live-dot { display: inline-block; }
.mod-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 180px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 24px 50px -22px rgba(28,24,21,.45); overflow: hidden; z-index: 130;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.mod-menu.show { opacity: 1; transform: none; pointer-events: auto; }
.mod-menu button {
  display: flex; align-items: center; gap: .6em; width: 100%; text-align: left;
  padding: .85em 1.1em; background: none; border: none; font-family: var(--sans);
  font-size: .92rem; color: var(--ink); transition: background .2s var(--ease), color .2s var(--ease);
}
.mod-menu button:hover { background: var(--paper-2); color: var(--bronze-dk); }
.mod-menu button svg { width: 15px; height: 15px; opacity: .7; }
.mod-menu .mod-menu__signout { border-top: 1px solid var(--line); color: #a8422f; }
.mod-menu .mod-menu__signout:hover { background: #f7ebe7; color: #8f331f; }

/* ============================================================
   MODERATOR EDITOR UI
   ============================================================ */
.edit-active [data-edit], .edit-active [data-edit-img] { transition: outline-color .2s var(--ease); }
.edit-active [data-edit] {
  outline: 1.5px dashed rgba(169,116,79,.5); outline-offset: 4px; border-radius: 2px; cursor: text;
}
.edit-active [data-edit]:hover { outline-color: var(--bronze); background: rgba(169,116,79,.06); }
.edit-active [data-edit]:focus { outline: 2px solid var(--bronze); background: rgba(169,116,79,.09); }

/* Editable images always fill + clip their frame (so zoom stays inside) */
.img-wrap { overflow: hidden; }
.img-wrap > img { width: 100%; height: 100%; object-fit: cover; }

/* Edit mode: drag to reposition, scroll/slider to zoom */
.edit-active .img-wrap { position: relative; cursor: grab; outline: 1.5px dashed rgba(169,116,79,.6); outline-offset: 4px; }
.edit-active .img-wrap.dragging { cursor: grabbing; }
.edit-active .img-wrap img { -webkit-user-drag: none; user-select: none; }
.img-hint {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5em;
  background: rgba(28,24,21,.52); color: #fff; text-align: center; padding: 1rem;
  opacity: 0; transition: opacity .2s var(--ease); pointer-events: none;
}
.edit-active .img-wrap:hover .img-hint { opacity: 1; }
.edit-active .img-wrap.is-selected .img-hint { opacity: 0; }
.img-hint__title { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; display: inline-flex; align-items: center; gap: .4em; }
.img-hint__spec { font-size: .72rem; letter-spacing: .03em; opacity: .9; line-height: 1.6; }

.img-ctrl {
  position: fixed; z-index: 1050; background: var(--ink); color: #fff; border-radius: 100px;
  padding: .5rem .6rem .5rem 1.2rem; display: flex; align-items: center; gap: 1rem;
  box-shadow: 0 22px 44px -18px rgba(0,0,0,.6); transform: translateX(-50%);
  opacity: 0; pointer-events: none; transition: opacity .2s var(--ease);
}
.img-ctrl.show { opacity: 1; pointer-events: auto; }
.img-ctrl__zoom { display: inline-flex; align-items: center; gap: .55em; }
.img-ctrl__zoom label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #cbb8a8; }
.img-ctrl input[type="range"] { width: 118px; accent-color: var(--bronze); cursor: pointer; }
.img-ctrl button { border: none; border-radius: 100px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding: .65em 1.1em; }
.img-ctrl .ic-replace { background: var(--bronze); color: #fff; }
.img-ctrl .ic-replace:hover { background: var(--bronze-dk); }
.img-ctrl .ic-reset { background: transparent; color: #cbb8a8; border: 1px solid rgba(255,255,255,.22); }
.img-ctrl .ic-reset:hover { color: #fff; border-color: rgba(255,255,255,.5); }

.edit-bar {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(140%);
  background: var(--ink); color: #fff; border-radius: 100px; padding: .7rem .8rem .7rem 1.5rem;
  display: flex; align-items: center; gap: 1.2rem; z-index: 1000;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); transition: transform .45s var(--ease);
}
.edit-bar.show { transform: translateX(-50%) translateY(0); }
.edit-bar__status { font-size: .82rem; letter-spacing: .04em; color: #cbb8a8; display: flex; align-items: center; gap: .5em; }
.edit-bar__status .dot { width: 8px; height: 8px; border-radius: 50%; background: #6fbf73; box-shadow: 0 0 0 3px rgba(111,191,115,.25); }
.edit-bar__status.dirty .dot { background: var(--bronze); box-shadow: 0 0 0 3px rgba(169,116,79,.3); }
.edit-bar button { border-radius: 100px; padding: .7em 1.3em; font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border: 1px solid transparent; }
.edit-bar .btn-save { background: var(--bronze); color: #fff; }
.edit-bar .btn-save:hover { background: var(--bronze-dk); }
.edit-bar .btn-exit { background: transparent; color: #cbb8a8; border-color: rgba(255,255,255,.2); }
.edit-bar .btn-exit:hover { color: #fff; border-color: rgba(255,255,255,.5); }
.edit-bar .btn-reset { background: transparent; color: #cbb8a8; font-size: .72rem; }
.edit-bar .btn-reset:hover { color: #e88; }
.edit-bar .btn-undo { background: transparent; color: #cbb8a8; border-color: rgba(255,255,255,.2); display: inline-flex; align-items: center; gap: .45em; }
.edit-bar .btn-undo svg { width: 15px; height: 15px; }
.edit-bar .btn-undo:hover:not(:disabled) { color: #fff; border-color: rgba(255,255,255,.5); }
.edit-bar .btn-undo:disabled { opacity: .35; cursor: default; }

/* Modal (login) */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(28,24,21,.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 1100; opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease); padding: 1rem;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--card); border-radius: 10px; padding: clamp(2rem, 4vw, 2.8rem); width: 100%; max-width: 400px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); transform: translateY(12px) scale(.98); transition: transform .35s var(--ease);
}
.modal-overlay.show .modal { transform: none; }
.modal h3 { font-size: 1.6rem; margin-bottom: .4rem; }
.modal p { font-size: .9rem; margin-bottom: 1.4rem; }
.modal .field { margin-bottom: 1rem; }
.modal__actions { display: flex; gap: .8rem; margin-top: 1.4rem; }
.modal__actions .btn { flex: 1; justify-content: center; }
.modal__err { color: #c0392b; font-size: .84rem; min-height: 1.2em; margin-top: .4rem; }
.modal__hint { font-size: .78rem; color: var(--ink-faint); margin-top: 1rem; text-align: center; }
.li-modal__links { display: flex; flex-direction: column; gap: .8rem; }
.li-modal__link {
  display: flex; align-items: center; justify-content: center;
  padding: 1em 1.4em; border-radius: 100px; border: 1px solid var(--line);
  font-weight: 600; font-size: .92rem; color: var(--ink);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.li-modal__link:hover { border-color: var(--bronze); background: var(--paper-2); }

/* Toast */
.toast {
  position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: .8rem 1.4rem; border-radius: 100px; font-size: .85rem;
  z-index: 1200; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { display: none; }
  .phases { grid-template-columns: repeat(2, 1fr); border-top: none; }
  .phase { border: 1px solid var(--line); border-radius: 6px; margin-bottom: -1px; }
  .quote-wall { columns: 2; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); background: var(--paper); flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem; padding: 3rem 2rem; transform: translateX(100%); transition: transform .4s var(--ease); box-shadow: -20px 0 60px -30px rgba(0,0,0,.3); }
  .nav__links.open { transform: none; }
  .nav__links a { font-size: 1.1rem; }
  .nav__toggle { display: block; z-index: 10; }
  .two, .three, .split, .contact-grid, .founder-pair, .svc-grid, .insight-row, .values, .cs-list { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .quote-wall { columns: 1; }
  .footer-top { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .edit-bar { flex-wrap: wrap; justify-content: center; width: calc(100vw - 32px); border-radius: 18px; }

  /* ---- Mobile rhythm: the desktop clamp() minimums are still too generous
     on a phone, and stack up into a long, heavy-feeling page. Tighten
     section/card spacing and a few fixed (non-clamped) sizes for a more
     native, less "shrunk desktop" feel. ---- */
  .section { padding: 48px 0; }
  .section--tight { padding: 36px 0; }
  .hero { padding: 28px 0 36px; }
  .page-hero { padding: 28px 0 24px; }
  .display { font-size: clamp(2rem, 9vw, 2.6rem); }
  h2.section-title { font-size: clamp(1.5rem, 7vw, 2rem); }

  .brand { gap: .15rem; }
  .brand__mark { font-size: 1.3rem; }
  .brand__tag { font-size: .6rem; letter-spacing: .16em; }

  .grid { gap: 20px; }
  .insight-row, .values { gap: 1rem; margin-top: 2rem; }
  .insight-card, .phase-detail, .quote-chip { padding: 1.4rem; }
  .faq-q { padding: 1.1rem 2.8rem 1.1rem 1.4rem; }
  .faq-a { padding: 0 1.8rem 1.3rem 1.4rem; }
  .svc-card, .cs-card__body { padding: 1.5rem; }
  .phase-detail__subtitle { font-size: 1.05rem; }

  .marquee { padding: 1rem 0; }
  .marquee__track { gap: 1.8rem; }
  .marquee__item { font-size: 1.05rem; }

  .manifesto__mark { font-size: 3.2rem; }
  .founder__name { font-size: 1.8rem; }
}
