/* ════════════════════════════════════════════════════════════
   Mythograph — shared styles
   Tokens match cleahernandez.com so the two sites read as one family.
════════════════════════════════════════════════════════════ */
:root {
  --white:      #FAFAF7;
  --ink:        #1A1410;
  --ink-muted:  #7A6D5E;
  --terra:      #C05A3C;
  --terra-pale: rgba(192,90,60,0.07);
  --indigo:     #3A4F99;
  --indigo-pale: rgba(58,79,153,0.07);
  --gold:       #C8A24A;
  --mist:       #F2ECE4;
  --fog:        #F6F2EC;
  --border:     rgba(34, 24, 48, 0.09);

  --serif:      'Playfair Display', Georgia, serif;
  --display:    'Fraunces', Georgia, serif;
  --body:       'DM Sans', system-ui, -apple-system, sans-serif;

  --max:        1160px;
  --pad:        40px;
  --radius:     4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.030;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 760px; margin: 0 auto; }
.section { padding: 88px 0; }
.section--mist { background: var(--mist); }
.section--fog { background: var(--fog); }
.section--ink { background: var(--ink); color: #F5F0E9; }
.section--border { border-top: 1px solid var(--border); }

/* ── Type ── */
.eyebrow {
  display: block;
  font-family: var(--body);
  font-size: 13px; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 20px;
}
.section-h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.15; letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}
.section--ink .section-h2 { color: #F5F0E9; }
.h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600; line-height: 1.25; letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.lead {
  font-size: clamp(17px, 1.6vw, 20px); font-weight: 400;
  line-height: 1.75; color: var(--ink-muted);
}
.section--ink .lead { color: rgba(245,240,233,.72); }
.body { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.85; color: var(--ink-muted); }
.body + .body { margin-top: 20px; }
.body strong { color: var(--ink); font-weight: 500; }
.body a, .text-link { color: var(--terra); font-weight: 500; }
.body a:hover, .text-link:hover { text-decoration: underline; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-size: 12px; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 14px 28px; border-radius: var(--radius);
  cursor: pointer; transition: opacity .18s, transform .15s;
  border: none; line-height: 1;
}
.btn:hover { opacity: .82; transform: translateY(-1px); }
.btn--terra   { background: var(--terra); color: #fff; }
.btn--terra-o { background: transparent; color: var(--terra); border: 1.5px solid var(--terra); }
.btn--indigo  { background: var(--indigo); color: #fff; }
.btn--light   { background: #F5F0E9; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ── Navigation ── */
.nav-wrap {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 247, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-size: 13px; font-weight: 400; color: var(--ink); opacity: .68;
  transition: opacity .15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links .nav-cta {
  opacity: 1; font-weight: 500; color: var(--terra);
  padding: 7px 18px; border: 1.5px solid rgba(192,90,60,.45); border-radius: 100px;
  transition: background .15s, color .15s;
}
.nav-links .nav-cta:hover { background: var(--terra); color: #fff; }
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px; background: var(--indigo);
  border-radius: 2px; transition: transform .25s, opacity .2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 98; background: var(--white);
  flex-direction: column; justify-content: center; align-items: center; padding: 80px 40px 60px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--display); font-size: clamp(28px, 8vw, 40px); font-weight: 300;
  padding: 16px 0; text-align: center; width: 100%; border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mobile-cta {
  margin-top: 28px; font-family: var(--body); font-size: 14px; font-weight: 500;
  color: #fff; background: var(--terra); padding: 14px 36px; border-radius: 100px; width: auto;
}

/* ── Hero ── */
.hero { background: var(--ink); color: #F5EFF5; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.hero-h1 {
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.hero-h1 .accent { color: var(--gold); }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.7; color: rgba(245,240,233,.75); }
.hero-sub + .hero-sub { margin-top: 14px; }
.hero-img { border-radius: var(--radius); }
.hero--bg {
  position: relative;
  background:
    linear-gradient(90deg, rgba(26,20,16,.96) 0%, rgba(26,20,16,.92) 42%, rgba(26,20,16,.45) 72%, rgba(26,20,16,.08) 100%),
    var(--hero-img) var(--hero-pos, center) / cover no-repeat;
  background-color: var(--ink);
}
.hero--bg .hero-inner { grid-template-columns: 1fr; min-height: 620px; }
.hero--bg .hero-copy { max-width: 600px; }

.page-hero { padding: 96px 0 56px; }
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.025em;
  margin-bottom: 20px;
}

/* ── Split (text + image) ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--flip > :first-child { order: 2; }
.split img { border-radius: var(--radius); width: 100%; }

/* ── Lists ── */
.star-list { display: grid; gap: 12px; margin-top: 8px; }
.star-list li {
  display: grid; grid-template-columns: 18px 1fr; gap: 14px;
  padding: 18px 22px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 16px; line-height: 1.6;
}
.star-list li::before { content: '✦'; color: var(--gold); font-size: 13px; padding-top: 3px; }
.check-list { display: grid; gap: 10px; margin: 16px 0 20px; }
.check-list li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.65; color: var(--ink-muted); }
.check-list li::before { content: '✔'; position: absolute; left: 0; color: var(--indigo); font-size: 13px; top: 2px; }
.check-list li strong { color: var(--ink); font-weight: 500; }
.arrow-list li::before { content: '→'; color: var(--terra); }

/* ── Purpose band ── */
.purpose { text-align: center; }
.purpose-statement {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(28px, 3.6vw, 48px); line-height: 1.25; letter-spacing: -0.015em;
  max-width: 900px; margin: 0 auto;
}

/* ── Logos ── */
.logos { padding: 48px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logos-label { text-align: center; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 28px; }
.logos-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px 40px; align-items: center; }
.logos-grid img { max-height: 40px; width: auto; max-width: 140px; margin: 0 auto; filter: grayscale(1); opacity: .62; transition: opacity .2s, filter .2s; }
.logos-grid img:hover { opacity: 1; filter: none; }

/* ── Service groups (home) ── */
.service-group { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; padding: 64px 0; border-top: 1px solid var(--border); }
.service-group:first-of-type { border-top: none; padding-top: 0; }
.service-group img { border-radius: var(--radius); width: 100%; }
.service-group--flip > :first-child { order: 2; }
.service-item + .service-item { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border); }
.service-item p { font-size: 16px; line-height: 1.8; color: var(--ink-muted); }

/* ── Tiers (services page) ── */
.tier { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; padding: 72px 0; border-top: 1px solid var(--border); }
.tier:first-child { border-top: none; padding-top: 0; }
.tier img { border-radius: var(--radius); width: 100%; position: sticky; top: 100px; }
.tier-price { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; color: var(--indigo); line-height: 1.1; }
.tier-price-label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin: 6px 0 4px; }
.tier-note { font-size: 13px; color: var(--ink-muted); font-style: italic; margin-bottom: 20px; }
.tier-sub { font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin-top: 24px; }
.tier-ideal { margin-top: 20px; padding: 16px 20px; background: var(--indigo-pale); border-left: 2px solid var(--indigo); font-size: 15px; line-height: 1.65; }
.alacarte { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.alacarte li { padding: 26px 26px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.alacarte h3 { font-family: var(--display); font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.alacarte .tag { font-size: 13px; color: var(--terra); font-weight: 500; margin-bottom: 10px; display: block; }
.alacarte p { font-size: 15px; line-height: 1.7; color: var(--ink-muted); }

/* ── Testimonials ── */
.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.quote-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 30px 28px; }
.quote-card--wide { grid-column: span 2; }
.quote-mark { font-family: var(--serif); font-size: 80px; font-weight: 800; font-style: italic; line-height: .6; color: var(--terra); opacity: .22; margin-bottom: 18px; display: block; }
.quote-text { font-family: var(--serif); font-size: 17px; font-style: italic; font-weight: 500; line-height: 1.62; margin-bottom: 22px; }
.quote-name { font-size: 13px; font-weight: 500; }
.quote-role { font-size: 12px; color: var(--ink-muted); }

/* ── CTA band ── */
.cta-band { text-align: center; }
.cta-band .section-h2 { margin-bottom: 12px; }

/* ── Team ── */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 44px; }
.team-card img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; max-width: 240px; margin-bottom: 24px; }
.team-card h3 { font-family: var(--display); font-size: 26px; font-weight: 600; }
.team-role { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); margin-bottom: 14px; }
.team-card p { font-size: 15px; line-height: 1.8; color: var(--ink-muted); }

/* ── Work grid ── */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.work-card { display: block; }
.work-card .work-img { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; background: var(--mist); }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work-card:hover img { transform: scale(1.03); }
.work-card h3 { font-family: var(--display); font-size: 24px; font-weight: 600; margin-top: 16px; }
.work-card span { font-size: 14px; color: var(--ink-muted); }

/* ── Case study ── */
.case-hero { padding: 96px 0 40px; }
.case-hero h1 { font-family: var(--display); font-size: clamp(40px, 5.4vw, 72px); font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; }
.case-hero h2 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.25; color: var(--indigo); margin-top: 12px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.case-tags span { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: 6px 14px; border-radius: 100px; border: 1.5px solid rgba(58,79,153,.3); color: var(--indigo); background: var(--indigo-pale); }
.case-intro { padding: 0 0 56px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery img { width: 100%; border-radius: var(--radius); }
.gallery img:only-child, .gallery img.full { grid-column: span 2; }
.case-solution h2 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 24px; }
.case-quote { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; padding-left: 24px; border-left: 2px solid var(--gold); margin: 48px 0 0; }
.case-quote cite { display: block; margin-top: 14px; font-family: var(--body); font-style: normal; font-size: 13px; color: var(--ink-muted); }
.case-feature img { width: 100%; border-radius: var(--radius); }
.case-result { text-align: center; }
.case-result .big { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 46px); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; max-width: 920px; margin: 0 auto 32px; }
.case-result .big + .big { margin-top: -20px; }
.case-result .body { max-width: 760px; margin: 0 auto; text-align: left; }
.case-nav { display: flex; justify-content: space-between; gap: 24px; padding: 40px 0; border-top: 1px solid var(--border); }
.case-nav a { font-family: var(--display); font-size: 20px; font-weight: 600; }
.case-nav a span { display: block; font-family: var(--body); font-size: 11px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--terra); }
.case-nav a:last-child { text-align: right; }

/* ── Forms ── */
.form { display: grid; gap: 18px; margin-top: 32px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.form input, .form textarea {
  font: inherit; font-size: 16px; padding: 14px 16px; border: 1px solid rgba(26,20,16,.18);
  border-radius: var(--radius); background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--indigo); outline-offset: 1px; border-color: transparent; }
.form textarea { min-height: 160px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .hidden { display: none; }
.form-note { font-size: 13px; color: var(--ink-muted); }
.cal-inline { width: 100%; min-height: 640px; margin-top: 32px; }

/* ── Footer ── */
footer { background: var(--ink); color: #F5F0E9; padding: 72px 0 36px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 64px; margin-bottom: 56px; }
.footer-logo img { height: 28px; width: auto; margin-bottom: 18px; }
.footer-tagline { font-size: 14px; line-height: 1.7; color: rgba(250,250,247,.55); max-width: 360px; }
.footer-col-title { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: rgba(200,162,74,.75); margin-bottom: 20px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 14px; color: rgba(250,250,247,.6); transition: color .15s; }
.footer-links a:hover { color: rgba(250,250,247,.92); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid rgba(250,250,247,.08); font-size: 12px; color: rgba(250,250,247,.35); }

/* ── Motion ── */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade-in { opacity: 1; transform: none; transition: none; } }

/* ── Responsive ── */
@media (max-width: 980px) {
  .hero-inner, .split, .service-group, .tier { grid-template-columns: 1fr; gap: 40px; }
  .split--flip > :first-child, .service-group--flip > :first-child { order: 0; }
  .tier img { position: static; }
  .quotes-grid { grid-template-columns: 1fr 1fr; }
  .quote-card--wide { grid-column: span 2; }
  .logos-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-col:first-child { grid-column: span 2; }
}
@media (max-width: 720px) {
  :root { --pad: 20px; }
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-logo img { height: 24px; }
  .hero-inner { padding-top: 56px; padding-bottom: 56px; }
  .hero--bg { background:
    linear-gradient(180deg, rgba(26,20,16,.93) 0%, rgba(26,20,16,.9) 65%, rgba(26,20,16,.6) 100%),
    var(--hero-img) var(--hero-pos, center) / cover no-repeat; }
  .hero--bg .hero-inner { min-height: 0; }
  .quotes-grid, .work-grid, .team, .alacarte, .gallery, .form .row { grid-template-columns: 1fr; }
  .quote-card--wide, .gallery img:only-child, .gallery img.full { grid-column: span 1; }
  .logos-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-col:first-child { grid-column: span 1; }
  .footer-bottom { flex-direction: column; }
  .case-nav { flex-direction: column; }
  .case-nav a:last-child { text-align: left; }
}
