/* ========================================================================
   Ella Trubman Consulting — Stylesheet
   Palette: ink black / warm ivory white / stone grays. No color accents.
   Type: Cormorant Garamond (display serif) + Manrope (UI sans)
   ======================================================================== */

:root {
  --black: #14130f;
  --black-soft: #211f1a;
  --white: #ffffff;
  --ivory: #f8f5ef;
  --ivory-deep: #efeae0;
  --stone: #86807a;
  --stone-light: #b9b3aa;
  --hairline: #e2ddd2;

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1180px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Legibility floor: no body/UI text on the site should render below
     this size. (The header logo wordmark is exempt — it's a brand
     mark, not reading content, and its size is tuned to avoid
     overlapping the mobile menu.) */
  --min-legible: 0.85rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--black);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  letter-spacing: 0.01em;
}

p { margin: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--stone-light);
  margin-right: 10px;
  vertical-align: middle;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 400;
  color: var(--black-soft);
  line-height: 1.55;
}

section { position: relative; }

/* ---------------------------------- Buttons ---------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 1.9rem;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}

.btn svg { width: 14px; height: 14px; transition: transform 0.35s var(--ease); flex: none; }

.btn:hover { background: var(--black); color: var(--ivory); }
.btn:hover svg { transform: translateX(4px); }

.btn-solid {
  background: var(--black);
  color: var(--ivory);
}
.btn-solid:hover { background: var(--black-soft); color: var(--white); }

.btn-ghost-light {
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-ghost-light:hover { background: var(--white); color: var(--black); }

/* ---------------------------------- Nav --------------------------------- */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow .4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  padding: 0.9rem 0;
  background: rgba(248, 245, 239, 0.86);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--hairline);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--serif);
  flex-shrink: 0;
}

.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .mark circle,
.brand .mark line { stroke: currentColor; }
.brand .mark text { fill: currentColor; font-family: var(--serif); }
.brand .mark .dot { fill: currentColor; }

.brand-word {
  font-size: clamp(0.78rem, 3vw, 1.08rem);
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.brand-word b { font-weight: 600; }

@media (min-width: 420px) {
  .brand-word { letter-spacing: 0.14em; }
}
@media (max-width: 399px) {
  .brand-suffix { display: none; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
  margin: 0; padding: 0;
}

.nav-links a {
  position: relative;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--black);
  transition: right 0.35s var(--ease);
}
.nav-links a:hover::after { right: 0; }

.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 26px;
  height: 26px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--black); flex: none;
  transition: transform .3s var(--ease), opacity .3s var(--ease), background .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span { background: var(--stone); }

@media (min-width: 900px) { .nav-toggle { display: none; } }
@media (max-width: 899px) {
  .nav-links { position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 340px);
    background: var(--black); flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 2rem; padding: 0 3rem; transform: translateX(100%); transition: transform .5s var(--ease); }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { color: var(--ivory); font-size: 1rem; }
  .nav-links a::after { background: var(--ivory); }
  body.nav-open { overflow: hidden; }
}

.nav-scrim {
  position: fixed; inset: 0; background: rgba(20,19,15,0.4);
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); z-index: 90;
}
.nav-scrim.is-open { opacity: 1; pointer-events: auto; }

/* ---------------------------------- Hero -------------------------------- */

.hero {
  padding: clamp(7.5rem, 16vw, 11rem) 0 clamp(4rem, 8vw, 6rem);
  background: var(--ivory);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: 0.8fr 1.05fr; gap: 2.5rem; }
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  margin: 1rem 0 1.5rem;
}
.hero-copy h1 em { font-style: italic; font-weight: 400; }

.hero-copy .lede { max-width: 34rem; margin-bottom: 2.3rem; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; }
.hero-actions .link-quiet { font-size: 0.98rem; font-weight: 600; letter-spacing: 0.06em; border-bottom: 1px solid var(--stone-light); padding-bottom: 3px; }
.hero-actions .link-quiet:hover { border-color: var(--black); }

.hero-figure {
  position: relative;
  justify-self: center;
  width: min(100%, 360px);
}
.hero-figure .frame {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--ivory-deep);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure .ring-deco {
  position: absolute;
  width: 120px; height: 120px;
  border: 1px solid var(--stone-light);
  border-radius: 50%;
  bottom: -34px; right: -34px;
  z-index: -1;
}
.hero-figure .frame-caption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.89rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}

.stat-strip {
  border-top: 1px solid var(--hairline);
  margin-top: clamp(3.5rem, 7vw, 5rem);
  padding-top: clamp(2rem, 4vw, 2.6rem);
}
.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
}
@media (min-width: 640px) { .stat-strip .wrap { grid-template-columns: repeat(3, 1fr); } }

.stat b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 500;
}
.stat span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.91rem;
  letter-spacing: 0.03em;
  color: var(--stone);
  max-width: 20ch;
}

/* ---------------------------------- Section headers ---------------------------------- */

.section-head { max-width: 42rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.7rem); margin-top: 0.9rem; }
.section-head .lede { margin-top: 1.1rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.band { padding: clamp(5rem, 9vw, 7.5rem) 0; }
.band-alt { background: var(--white); }
.band-dark { background: var(--black); color: var(--ivory); }
.band-dark .stone-text { color: var(--stone-light); }

/* ---------------------------------- Services ---------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
@media (min-width: 700px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--ivory);
  padding: 2.6rem 2.2rem;
  transition: background 0.4s var(--ease);
}
.service-card:hover,
.service-card.is-open { background: var(--white); }

.service-card .num {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--stone);
  letter-spacing: 0.08em;
  display: block;
}
.service-card h3 {
  font-size: 1.4rem;
  margin: 1.1rem 0 0.85rem;
  font-weight: 500;
  padding-right: 2rem;
}
.service-card p { color: var(--black-soft); font-size: 1.14rem; }

.service-head {
  all: unset;
  display: block;
  width: 100%;
  position: relative;
  cursor: pointer;
  box-sizing: border-box;
}

.toggle-ic {
  position: absolute;
  top: 4px; right: 0;
  width: 20px; height: 20px;
}
.toggle-ic span {
  position: absolute; left: 50%; top: 50%;
  width: 13px; height: 1px;
  background: var(--black);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.toggle-ic span:last-child { transform: translate(-50%, -50%) rotate(90deg); }
.service-card.is-open .toggle-ic span:last-child { transform: translate(-50%, -50%) rotate(0deg); }

.service-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.service-card.is-open .service-detail { grid-template-rows: 1fr; }

.service-detail-inner { overflow: hidden; }

.service-points {
  list-style: none;
  margin: 0;
  padding: 1.4rem 0 0.2rem;
  display: grid;
  gap: 0.6rem;
  border-top: 1px solid var(--hairline);
  margin-top: 1.2rem;
}
.service-points li {
  font-size: 1.06rem;
  color: var(--black-soft);
  padding-left: 1.1rem;
  position: relative;
}
.service-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 6px; height: 1px;
  background: var(--stone-light);
}

/* ---------------------------------- About ---------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 980px) { .about-grid { grid-template-columns: 1.3fr 1fr; gap: 4.5rem; } }

.about-copy p + p { margin-top: 1.15rem; }
.about-copy { color: var(--black-soft); font-size: 1.2rem; line-height: 1.65; }

.credential-list {
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid var(--hairline);
}
.credential-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 1.1rem;
}
.credential-list dt { color: var(--stone); letter-spacing: 0.04em; }
.credential-list dd { margin: 0; font-weight: 600; text-align: right; }

.pull-quote {
  margin-top: 3rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--hairline);
}
.pull-quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.5;
  font-weight: 400;
}
.pull-quote cite {
  display: block;
  margin-top: 1.1rem;
  font-style: normal;
  font-size: 0.94rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------------------------------- Career timeline ---------------------------------- */

.career-timeline {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--hairline);
}

.timeline-entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--hairline);
}
.timeline-entry:first-of-type { padding-top: 1.8rem; }

@media (min-width: 860px) {
  .timeline-entry { grid-template-columns: 280px 1fr; gap: 3rem; }
}

.timeline-head h3 { font-size: 1.5rem; font-weight: 500; }
.timeline-head .years {
  margin-top: 0.4rem;
  font-size: 0.94rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}
.timeline-head .timeline-roles {
  margin-top: 0.9rem;
  font-size: 1.02rem;
  color: var(--stone);
  line-height: 1.7;
}

.timeline-highlights {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 0.7rem;
}
.timeline-highlights li {
  font-size: 1.14rem;
  color: var(--black-soft);
  padding-left: 1.2rem;
  position: relative;
}
.timeline-highlights li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.68em;
  width: 7px; height: 1px;
  background: var(--stone-light);
}

/* ---------------------------------- Process ---------------------------------- */

.process-list { margin-top: 1rem; }
.process-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  padding: 2.4rem 0;
  border-top: 1px solid rgba(255,255,255,0.14);
  align-items: start;
}
.process-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.14); }

.process-item .idx {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--stone-light);
  min-width: 2.4ch;
}
.process-item h3 { font-size: 1.35rem; font-weight: 500; margin-bottom: 0.6rem; }
.process-item p { color: var(--stone-light); font-size: 1.14rem; max-width: 46rem; }

@media (min-width: 760px) {
  .process-item { grid-template-columns: 120px 1fr; }
}

/* ---------------------------------- Contact ---------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 980px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 5rem; } }

.contact-note { color: var(--black-soft); }
.contact-note ul { list-style: none; margin: 2rem 0 0; padding: 0; }
.contact-note li {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 1rem 0; border-top: 1px solid var(--hairline); font-size: 1.1rem;
}
.contact-note li svg { flex: none; width: 17px; height: 17px; margin-top: 3px; color: var(--stone); }

.privacy-chip {
  margin-top: 2.2rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--hairline);
  font-size: 0.98rem;
  color: var(--stone);
  display: flex; gap: 0.7rem;
}
.privacy-chip svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }

form.inquiry { display: grid; gap: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.3rem; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.55rem; }
.field label {
  font-size: 0.96rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone);
}
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 1.15rem;
  line-height: 1.5;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 0.7rem 0.1rem;
  color: var(--black);
  transition: border-color .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; font-family: var(--sans); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--black);
}
.field select { appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }

.form-foot { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.form-status { font-size: 1.02rem; color: var(--stone); }
.form-status[data-state="ok"] { color: var(--black); font-weight: 600; }
.form-status[data-state="err"] { color: #7a2e22; font-weight: 600; }

/* ---------------------------------- Footer ---------------------------------- */

.site-footer { background: var(--black); color: var(--stone-light); padding: 3.4rem 0 2rem; }
.footer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem;
  padding-bottom: 2.6rem; border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-brand .brand-word { color: var(--white); }
.footer-tag { margin-top: 0.9rem; font-size: 1.06rem; max-width: 30ch; }

.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--sans); font-size: 0.89rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); font-weight: 600; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.footer-col a { font-size: 1.06rem; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding-top: 1.8rem; font-size: 0.94rem;
}

/* ---------------------------------- Reveal animation ---------------------------------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------- misc ---------------------------------- */

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--black); color: var(--white);
  padding: 0.8rem 1.2rem; z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }
