/* ===== Crest Vale — editorial brand stylesheet ===== */
:root {
  --ink:       #16181d;
  --charcoal:  #2a2e35;
  --graphite:  #4a4f57;
  --silver:    #c3c9d2;
  --platinum:  #e9ecf1;

  --bg:        #ffffff;
  --bg-alt:    #f6f7f9;
  --surface:   #ffffff;
  --border:    #e4e7ec;
  --text:      #1a1d22;
  --muted:     #6a7078;

  /* Refined silver/graphite metallic gradient */
  --metal:     linear-gradient(120deg, #4a4f57 0%, #c3c9d2 100%);
  --metal-soft: linear-gradient(120deg, #f6f7f9 0%, #eef0f4 100%);
  /* Legible metallic for clipped display text on white */
  --metal-text: linear-gradient(120deg, #2a2e35 0%, #6a7078 60%, #9aa0a9 100%);

  --radius:    14px;
  --maxw:      1120px;
  --ease:      cubic-bezier(.22,.61,.36,1);
  --shadow:    0 24px 50px -30px rgba(22,24,29,.35);
  --shadow-sm: 0 12px 30px -22px rgba(22,24,29,.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  letter-spacing: -0.015em; line-height: 1.12; margin: 0; font-weight: 600;
}
.brand-name { font-family: "Fraunces", Georgia, serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad {
  background: var(--metal-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}
.accent { color: var(--graphite); }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600; }
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -14px rgba(22,24,29,.55); }
.btn-primary:hover { transform: translateY(-2px); background: var(--charcoal); box-shadow: 0 20px 40px -14px rgba(22,24,29,.6); }

/* ===== Header — centered logo, split nav ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(255,255,255,.85); backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--border); box-shadow: 0 8px 30px -22px rgba(22,24,29,.5); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 82px; column-gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: center; }
.brand img { border-radius: 9px; box-shadow: 0 4px 14px -8px rgba(22,24,29,.5); }
.brand-name { font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav-left { justify-self: start; }
.nav-right { justify-self: end; }
.nav a {
  position: relative; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; transition: color .2s var(--ease); padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: var(--graphite); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; justify-self: end; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer (hidden on desktop) */
.nav-mobile { display: none; }

/* ===== Hero — editorial asymmetric ===== */
.hero { position: relative; padding: 210px 0 130px; overflow: hidden; background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg .peaks { position: absolute; bottom: 0; left: 0; width: 100%; height: 76%; opacity: .85; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 68% 62% at 30% 30%, #000 18%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 68% 62% at 30% 30%, #000 18%, transparent 72%);
  opacity: .45;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: end;
}
.hero-lead { }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--graphite); margin: 0 0 30px; font-weight: 600; }
.hero h1 { font-size: clamp(2.9rem, 8vw, 6rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.03em; }
.hero-aside { padding-bottom: 10px; }
.hero-rule { display: block; width: 72px; height: 1px; background: var(--graphite); margin: 0 0 26px; opacity: .8; }
.hero-sub { font-size: clamp(1rem, 1.3vw, 1.1rem); color: var(--muted); margin: 0; max-width: 420px; }
.hero-link {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 30px;
  font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 1.14rem; color: var(--ink);
  border-bottom: 1px solid var(--silver); padding-bottom: 4px; transition: border-color .25s var(--ease), gap .25s var(--ease), color .25s var(--ease);
}
.hero-link:hover { border-bottom-color: var(--ink); gap: 18px; color: var(--charcoal); }
.hero-link-ico { font-style: normal; font-family: "Inter", sans-serif; transition: transform .25s var(--ease); }
.hero-link:hover .hero-link-ico { transform: translateX(3px); }

/* ===== Sections ===== */
.section { padding: 118px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.kicker { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--graphite); font-weight: 600; margin: 0 0 16px; }
.section-head { max-width: 720px; margin: 0 auto 68px; text-align: center; }
.section-head-left { margin: 0 0 8px; text-align: left; }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); color: var(--ink); }
.section-head .lead { color: var(--muted); margin-top: 18px; font-size: 1.06rem; }

/* ===== Focus — numbered index list ===== */
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.index-item {
  display: grid; grid-template-columns: auto 1fr 1.3fr; gap: 40px; align-items: baseline;
  padding: 40px 8px; border-bottom: 1px solid var(--border);
  transition: background .35s var(--ease), padding .35s var(--ease);
}
.index-item:hover { background: var(--bg-alt); padding-left: 20px; padding-right: 20px; }
.index-num {
  font-family: "Fraunces", Georgia, serif; font-weight: 400; font-style: italic;
  font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1; color: var(--silver);
  transition: color .35s var(--ease);
}
.index-item:hover .index-num { color: var(--graphite); }
.index-title { font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--ink); font-weight: 600; }
.index-desc { color: var(--muted); font-size: 1rem; margin: 0; line-height: 1.7; max-width: 46ch; }

/* ===== Manifesto — pull quote ===== */
.manifesto { background: var(--bg-alt); border-block: 1px solid var(--border); }
.manifesto-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.manifesto .kicker { text-align: center; }
.manifesto-quote {
  font-family: "Fraunces", Georgia, serif; font-weight: 500; font-style: italic;
  font-size: clamp(1.6rem, 3.6vw, 2.9rem); line-height: 1.28; letter-spacing: -0.015em;
  color: var(--ink); margin: 8px 0 0; quotes: "\201C" "\201D";
}
.manifesto-quote::before { content: open-quote; color: var(--silver); margin-right: .06em; }
.manifesto-quote::after { content: close-quote; color: var(--silver); margin-left: .04em; }
.manifesto-body { color: var(--muted); font-size: 1.06rem; margin: 34px auto 0; max-width: 640px; }
.manifesto-marks {
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  margin-top: 40px; font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 1.02rem; color: var(--graphite);
}
.manifesto-marks .mk-dot { color: var(--silver); font-size: 9px; font-style: normal; }

/* ===== Approach — vertical timeline ===== */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 29px; top: 14px; bottom: 14px; width: 1px;
  background: var(--metal); opacity: .55;
}
.tl-step { position: relative; display: grid; grid-template-columns: 60px 1fr; gap: 28px; align-items: start; padding: 26px 0; }
.tl-num {
  position: relative; z-index: 2;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  font-family: "Fraunces", Georgia, serif; font-weight: 600; font-style: italic; font-size: 1.1rem; color: #fff;
  background: var(--ink); box-shadow: 0 16px 34px -16px rgba(22,24,29,.6); border: 3px solid #fff; outline: 1px solid var(--border);
}
.tl-body { padding-top: 6px; }
.tl-body h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: var(--ink); margin-bottom: 10px; }
.tl-body p { color: var(--muted); margin: 0; font-size: 1rem; max-width: 52ch; }

/* ===== FAQ ===== */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 4px; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--ink); transition: color .2s var(--ease);
}
.faq-q:hover { color: var(--charcoal); }
.faq-ico { position: relative; flex: 0 0 18px; width: 18px; height: 18px; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; background: var(--graphite); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-ico::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-ico::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq-item.open .faq-ico::after { transform: scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { color: var(--muted); font-size: 1rem; margin: 0 0 26px; padding-right: 30px; }

/* ===== Contact ===== */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 18px; color: var(--ink); }
.contact-copy p { color: var(--muted); margin-bottom: 24px; }
.contact-email { display: inline-block; font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 1.28rem; color: var(--ink); border-bottom: 1px solid var(--silver); padding-bottom: 2px; transition: border-color .2s, color .2s; }
.contact-email:hover { border-bottom-color: var(--ink); color: var(--charcoal); }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.field input, .field textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; color: var(--text);
  padding: 13px 15px; font: inherit; font-size: 15px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--graphite); box-shadow: 0 0 0 3px rgba(74,79,87,.12); }
.contact-form .btn { margin-top: 4px; }

/* ===== Footer — minimal centered ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--ink); color: #fff; padding: 64px 0 40px; }
.site-footer .brand { justify-self: auto; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name .accent { color: var(--silver); }
.site-footer .brand img { box-shadow: none; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.footer-tag { color: rgba(255,255,255,.66); margin: 0; font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 1.05rem; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: rgba(255,255,255,.72); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.5); font-size: 14px; margin-top: 12px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); width: 100%; max-width: 520px; }

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

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; align-items: start; }
  .hero-aside { padding-bottom: 0; }
  .hero-sub { max-width: 560px; }
  .index-item { grid-template-columns: auto 1fr; gap: 10px 28px; }
  .index-desc { grid-column: 2; max-width: 60ch; }
  .faq-wrap { grid-template-columns: 1fr; gap: 34px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .nav-left, .nav-right { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { grid-template-columns: 1fr auto 1fr; height: 74px; }
  .brand { justify-self: start; grid-column: 1 / 2; }
  .nav-toggle { grid-column: 3 / 4; }

  /* Mobile drawer */
  .nav-mobile {
    display: flex; flex-direction: column; gap: 4px; align-items: stretch;
    background: rgba(255,255,255,.98); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
    padding: 12px 24px 24px; transform: translateY(-120%);
    transition: transform .35s var(--ease); box-shadow: 0 14px 34px -20px rgba(22,24,29,.5);
    position: relative; z-index: 90;
  }
  .nav-mobile.open { transform: translateY(0); }
  .nav-mobile a { padding: 13px 4px; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--border); color: var(--text); }
  .nav-mobile a:hover { color: var(--ink); }
  .nav-mobile .nav-cta {
    text-align: center; margin-top: 12px; border: 1px solid var(--ink); color: var(--ink);
    background: transparent; border-radius: 999px; padding: 13px 20px; border-bottom: 1px solid var(--ink);
    letter-spacing: .04em; text-transform: none; font-size: 15px;
  }
  .nav-mobile .nav-cta:hover { background: var(--ink); color: #fff; }

  .hero { padding: 148px 0 84px; }
  .section { padding: 78px 0; }
  .timeline::before { left: 25px; }
  .tl-step { grid-template-columns: 52px 1fr; gap: 22px; }
  .tl-num { width: 52px; height: 52px; }
}
@media (max-width: 480px) {
  .index-item { grid-template-columns: 1fr; gap: 8px; }
  .index-desc { grid-column: 1; }
  .index-num { font-size: 2.2rem; }
  .btn { width: 100%; }
  .manifesto-marks { gap: 12px; }
}
