/* Mindnosis · site
   Design tokens + shared layout. Sister site to saralopezib.com — see README.md. */

:root {
  --bg: #FAF9F5;
  --ink: #1A1917;
  --body: #3d3a33;
  --muted: #6E6A5F;
  --faint: #8b8880;
  --sage: #5A7554;
  --sage-panel: #E9EDE3;
  --sand-card: #EDE9DD;
  --clay-card: #EAE4DC;
  --hairline: #E6E2D8;
}

* { box-sizing: border-box; }

html, body { margin: 0; background: var(--bg); }

body {
  color: var(--ink);
  font-family: Karla, Helvetica, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--sage); }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
}

.mono { font-family: 'IBM Plex Mono', monospace; }
.serif { font-family: Newsreader, Georgia, serif; }

/* ---------- Nav (not sticky) ---------- */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 28px 64px;
  border-bottom: 1px solid var(--hairline);
}

.site-nav .signature { height: 42px; width: auto; }

.site-nav nav {
  display: flex;
  gap: 30px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13.5px;
  color: var(--ink);
}

.site-nav nav a.current {
  border-bottom: 1px solid var(--sage);
  padding-bottom: 2px;
}

/* ---------- Section headers (01 / 02) ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 18px;
}
.section-head .num { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--sage); }
.section-head h2 { font-family: Newsreader, serif; font-weight: 400; font-size: 34px; margin: 0; }

/* ---------- Buttons / links ---------- */
.btn-dark {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  padding: 16px 34px;
}

.link-underline {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--sage);
  padding-bottom: 3px;
}

.label-sage {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--sage);
}

/* ---------- CTA block (Practice / Toolkit close / Contact) ---------- */
.cta-center { padding: 0 64px 88px; text-align: center; }
.cta-center p { font-family: Newsreader, serif; font-size: 26px; margin: 0 0 26px; }

/* ---------- Footer ---------- */
.footer-wrap { padding: 0 64px 56px; }

.site-footer-rule {
  border-top: 1px solid var(--hairline);
  margin: 96px -64px 0;
}
.site-footer-rule.flush { margin-top: 0; }

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-top: 56px;
}

.site-footer .col-brand img { height: 36px; width: auto; }
.site-footer .col-brand p { margin: 16px 0 0; color: var(--muted); max-width: 320px; }
.site-footer .col-brand .loc { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--muted); margin: 18px 0 0; }
.site-footer .col-brand .avail { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--sage); margin: 8px 0 0; }

.site-footer .col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  padding-top: 52px;
}
.site-footer .col-links .head { font-size: 12.5px; color: var(--sage); }

.copyright { font-size: 14px; color: var(--faint); margin: 64px 0 0; }

/* ---------- Lightbox (Contact) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(26,25,23,.82);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 48px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox > div[data-gallery] { display: flex; gap: 24px; }
.lightbox img {
  max-height: 82vh;
  max-width: 44vw;
  object-fit: contain;
  box-shadow: 0 12px 48px rgba(0,0,0,.4);
}
.lightbox .close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--bg);
}

/* ---------- Entrance animation (Home / Toolkit / Practice heroes) ---------- */
@keyframes heroLine { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes heroInk { to { background-size: 100% 3px; } }

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero-glyphs img, .toolkit-hero .label-sage, .toolkit-hero h1, .toolkit-hero p.intro,
  .practice-hero .label-sage, .practice-hero h1, .practice-hero .avail-line { animation: none; opacity: 1; }
  .hero .accent { background-size: 100% 3px; }
}

/* ==================== HOME ==================== */
.hero { padding: 96px 64px 40px; }

.hero h1 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 300;
  font-size: 68px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 1140px;
  opacity: 0;
  animation: heroLine .6s cubic-bezier(0.2,0,0,1) .1s forwards;
}

.hero .accent {
  color: var(--sage);
  background: linear-gradient(var(--sage), var(--sage)) no-repeat 0 94%/0% 3px;
  animation: heroInk .5s cubic-bezier(0.2,0,0,1) .75s forwards;
}

.hero-glyphs {
  display: flex;
  justify-content: center;
  gap: 140px;
  align-items: center;
  padding: 16px 64px 40px;
}
.hero-glyphs img {
  height: 72px;
  width: auto;
  opacity: 0;
  animation: heroLine .6s cubic-bezier(0.2,0,0,1) .45s forwards;
}
.hero-glyphs img:nth-child(2) { animation-delay: .58s; }
.hero-glyphs img:nth-child(3) { animation-delay: .71s; }

.hero-image-full { height: 720px; padding: 32px 64px 0; display: flex; justify-content: center; }
.hero-image-full img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }

.overview { padding: 104px 64px 0; }
.overview .overview-rule { border-top: 1px solid var(--ink); padding-top: 32px; }
.overview .lede { font-family: Newsreader, serif; font-size: 26px; line-height: 1.5; margin: 0; max-width: 860px; color: var(--ink); }
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 36px; }
.overview-grid .enterprise { font-family: Newsreader, serif; font-size: 22px; line-height: 1.55; margin: 0; color: var(--ink); }
.overview-grid .strands-note { margin: 0; color: var(--body); align-self: end; }

.strand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 56px; }
.strand { border-top: 1px solid var(--hairline); padding-top: 32px; }
.strand img.glyph { height: 110px; width: auto; }
.strand .label-sage { margin: 20px 0 10px; }
.strand p.desc { margin: 0; color: var(--body); max-width: 480px; }
.strand .photo { height: 340px; margin-top: 24px; overflow: hidden; }
.strand .photo img { width: 100%; height: 100%; object-fit: cover; }

.image-pair { margin-top: 48px; display: flex; gap: 20px; }
.image-pair .cell { height: 380px; min-width: 0; overflow: hidden; }
.image-pair .cell.wide { flex: 1.4 1 0; }
.image-pair .cell.narrow { flex: 1 1 0; }
.image-pair .cell img { width: 100%; height: 100%; }
.image-pair .cell.cover img { object-fit: cover; }
.image-pair .cell.contain img { object-fit: contain; }
.image-pair-cap { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }

.press { padding: 104px 64px 0; }
.press > .label-sage { margin: 0 0 12px; }
.press-logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 36px;
  border-top: 1px solid var(--ink);
  padding-top: 44px;
  align-items: center;
}
.press-logos .logo { height: 64px; }
.press-logos .logo img { width: 100%; height: 100%; object-fit: contain; }

.press-wall { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; align-items: start; margin-top: 56px; }
.press-wall .col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.press-wall .col img { width: 100%; display: block; border: 1px solid var(--hairline); box-sizing: border-box; }

.portfolio-section { padding: 104px 64px 0; }
.portfolio-banner { margin: 0; display: grid; grid-template-columns: 1.6fr 1fr; }
.portfolio-banner .panel { background: var(--sage-panel); display: flex; flex-direction: column; justify-content: center; padding: 48px 56px; }
.portfolio-banner .panel p.copy { margin: 0; color: var(--body); }
.portfolio-banner .panel .link-underline { align-self: flex-start; margin-top: 28px; }
.portfolio-banner .photo { height: 380px; overflow: hidden; }
.portfolio-banner .photo img { width: 100%; height: 100%; object-fit: cover; }

.bio-block {
  margin: 120px 64px 0;
  border-top: 1px solid var(--ink);
  padding-top: 48px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
}
.bio-block .portrait { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; }
.bio-block .intro { font-family: Newsreader, serif; font-size: 24px; line-height: 1.5; margin: 0 0 24px; }
.bio-block p.body { color: var(--body); margin: 0 0 16px; }
.bio-block p.body.last { margin-bottom: 24px; }

/* ==================== TOOLKIT ==================== */
.toolkit-hero { padding: 96px 64px 0; }
.toolkit-hero .label-sage { margin: 0 0 20px; opacity: 0; animation: heroLine .6s cubic-bezier(0.2,0,0,1) .05s forwards; }
.toolkit-hero h1 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 300;
  font-size: 60px;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 1000px;
  opacity: 0;
  animation: heroLine .6s cubic-bezier(0.2,0,0,1) .15s forwards;
}
.toolkit-hero p.intro { margin: 28px 0 0; max-width: 640px; color: var(--body); opacity: 0; animation: heroLine .6s cubic-bezier(0.2,0,0,1) .3s forwards; }

.toolkit-hero-img { padding: 56px 64px 0; }
.toolkit-hero-img .frame { aspect-ratio: 3 / 2; overflow: hidden; }
.toolkit-hero-img .frame img { width: 100%; height: 100%; object-fit: cover; }

.cs-chapter { padding: 104px 64px 0; }
.cs-chapter-head { display: flex; align-items: baseline; gap: 20px; border-bottom: 1px solid var(--ink); padding-bottom: 16px; }
.cs-chapter-head .num { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--sage); }
.cs-chapter-head h2 { font-family: Newsreader, serif; font-weight: 400; font-size: 30px; margin: 0; }
.cs-chapter p.body { margin: 28px 0 36px; max-width: 640px; color: var(--body); }
.cs-chapter .frame { overflow: hidden; }
.cs-chapter .frame.single { aspect-ratio: 2000 / 1120; }
.cs-chapter .frame img { width: 100%; height: 100%; }
.cs-chapter .frame.contain img { object-fit: contain; }
.cs-chapter .frame.cover img { object-fit: cover; }
.cs-chapter .frame + .frame { margin-top: 20px; }
.cs-chapter .pair { display: flex; gap: 20px; }
.cs-chapter .pair .frame { flex: 1 1 0; min-width: 0; aspect-ratio: 2000 / 1120; }
.cs-chapter .pair + .frame.single { margin-top: 20px; }

.toolkit-closing { padding: 120px 64px 0; }
.toolkit-closing p {
  font-family: Newsreader, serif;
  font-weight: 300;
  font-size: 38px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 940px;
}
.toolkit-closing .highlight { box-shadow: inset 0 -0.3em 0 rgba(136,158,130,.3); }
.toolkit-closing .actions { display: flex; gap: 20px; margin-top: 36px; align-items: center; }
.toolkit-closing .back-link { font-family: 'IBM Plex Mono', monospace; font-size: 14px; padding: 16px 0; border-bottom: 1px solid var(--sage); }

/* ==================== PRACTICE ==================== */
.practice-hero { padding: 72px 64px 88px; }
.practice-hero .label-sage { margin: 0 0 18px; opacity: 0; animation: heroLine .6s cubic-bezier(0.2,0,0,1) .05s forwards; }
.practice-hero h1 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 300;
  font-size: 40px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 980px;
  opacity: 0;
  animation: heroLine .6s cubic-bezier(0.2,0,0,1) .15s forwards;
}
.practice-hero .avail-line { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--sage); margin: 24px 0 0; opacity: 0; animation: heroLine .6s cubic-bezier(0.2,0,0,1) .3s forwards; }

.offers { padding: 0 64px 88px; }
.cards-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; padding-top: 44px; }
.card { padding: 44px 40px; }
.card.sand { background: var(--sand-card); }
.card.sage { background: var(--sage-panel); }
.card.clay { background: var(--clay-card); }
.card img.glyph { height: 56px; width: auto; margin: 0 0 26px; }
.card h3 { font-family: Newsreader, serif; font-weight: 400; font-size: 24px; margin: 0 0 12px; }
.card p { margin: 0; color: var(--body); }

.booking { padding: 0 64px 88px; }
.model-row { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--hairline); }
.model-row:last-child { border-bottom: none; }
.model-row .model-name { font-family: Newsreader, serif; font-size: 22px; }
.model-row .model-desc { color: var(--body); }
.booking .fine-print { margin: 44px 0 0; color: var(--body); max-width: 760px; font-size: 15.5px; }

.services-panel { padding: 0 64px 88px; }
.services-panel .inner { background: var(--sage-panel); padding: 48px 56px; }
.services-panel .label-sage { margin: 0 0 14px; }
.services-panel p.copy { margin: 0; color: var(--body); max-width: 640px; }
.services-panel .link-underline { margin-top: 28px; }

/* ==================== CONTACT / ABOUT ==================== */
.contact-hero { padding: 72px 64px 88px; display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: start; }
.contact-hero .portrait { width: 280px; height: 560px; object-fit: cover; }
.contact-hero h1 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 300;
  font-size: 38px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}
.contact-hero p { color: var(--body); margin: 0 0 16px; }
.contact-hero .link-underline { margin-top: 20px; }

.in-public { padding: 0 64px 88px; }
.in-public-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 48px; padding-top: 44px; }
.in-public-grid .group-label { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--sage); margin: 0 0 18px; }
.in-public-grid .entries { display: flex; flex-direction: column; gap: 16px; }
.in-public-grid .entries p { margin: 0; }
.in-public-grid .entry-title { font-family: Newsreader, serif; font-size: 19px; }
.in-public-grid a.entry-title { text-decoration: none; }
.in-public-grid .entry-meta { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--muted); }
.in-public-grid .ext { font-size: 12px; vertical-align: 2px; }
.in-public-grid a.photos-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--sage);
  border-bottom: 1px solid var(--sage);
  cursor: pointer;
}
.in-public-grid details summary {
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--sage);
  list-style: none;
}
.in-public-grid details summary::-webkit-details-marker { display: none; }
.in-public-grid details .press-list { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .hero h1 { font-size: 44px; }
  .hero-glyphs { gap: 56px; flex-wrap: wrap; }
  .overview-grid, .strand-grid, .press-logos, .press-wall, .cards-grid, .in-public-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-banner, .bio-block, .contact-hero { grid-template-columns: 1fr; }
  .bio-block .portrait { width: 140px; height: 140px; }
  .contact-hero .portrait { width: 100%; height: auto; aspect-ratio: 4/5; }
  .image-pair { flex-direction: column; }
  .image-pair .cell { height: 300px; }
  .site-footer { grid-template-columns: 1fr; gap: 32px; }
  .site-footer .col-links { padding-top: 0; }
  .toolkit-hero h1 { font-size: 44px; }
  .cs-chapter .pair { flex-direction: column; }
  .toolkit-closing p { font-size: 30px; }
}

@media (max-width: 640px) {
  .site-nav, .hero, .hero-glyphs, .hero-image-full, .overview, .press, .portfolio-section,
  .toolkit-hero, .toolkit-hero-img, .cs-chapter, .toolkit-closing,
  .practice-hero, .offers, .booking, .services-panel, .cta-center,
  .contact-hero, .in-public, .footer-wrap { padding-left: 20px; padding-right: 20px; }
  .site-footer-rule { margin-left: -20px; margin-right: -20px; }
  .site-nav .signature { height: 28px; }
  .site-nav nav { gap: 12px; font-size: 11px; }
  .press-logos, .press-wall, .cards-grid, .in-public-grid { grid-template-columns: 1fr; }
  .strand-grid, .overview-grid { grid-template-columns: 1fr; }
  .model-row { grid-template-columns: 1fr; gap: 8px; }

  .hero { padding: 48px 20px 32px; }
  .hero h1 { font-size: 34px; }
  .hero-image-full { height: 360px; padding: 20px 20px 0; }
  .overview { padding-top: 56px; }
  .strand-grid { margin-top: 32px; }
  .press { padding-top: 56px; }
  .portfolio-section { padding-top: 56px; }
  .bio-block { margin: 56px 20px 0; padding-top: 32px; }
  .bio-block .intro { font-size: 20px; }
  .site-footer-rule { margin-top: 56px; }

  .toolkit-hero h1 { font-size: 32px; }
  .toolkit-hero-img .frame { aspect-ratio: 4/3; }
  .cs-chapter { padding-top: 56px; }
  .toolkit-closing { padding-top: 64px; }
  .toolkit-closing p { font-size: 24px; }
  .toolkit-closing .actions { flex-direction: column; align-items: flex-start; gap: 16px; }

  .practice-hero { padding: 40px 20px 48px; }
  .practice-hero h1 { font-size: 28px; }

  .contact-hero { padding: 40px 20px 48px; }
  .contact-hero h1 { font-size: 28px; }
  .lightbox { flex-direction: column; padding: 24px; }
  .lightbox img { max-width: 90vw; max-height: 40vh; }
}
