/* Homepage layout: main column with a right-hand margin for side notes, and the offers as schedule rows. Loads after style.css. */
:root {
  --on-navy: rgba(255,255,255,0.82);
  --on-navy-rule: rgba(255,255,255,0.18);
  --rule-strong: #c9c4bc;
  --sage-deep: #2f7a59;
  --home-max: 1120px;
  --margin-w: 260px;
}

.home .container { max-width: var(--home-max); }
.home h1, .home h2, .home h3 { text-wrap: balance; }
.home h2 { margin-bottom: 0; }
.home h3 { margin-bottom: 0; }

/* Page grid */
.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--margin-w);
  gap: 0 48px;
  align-items: start;
}
.page > .main { min-width: 0; }
.page > .margin { border-left: 1px solid var(--rule-strong); padding-left: 24px; min-width: 0; }

/* Side notes */
.note { font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); margin-bottom: 26px; }
.note .note__tick { display: block; width: 36px; height: 3px; background: var(--sage); margin-bottom: 10px; border-radius: 2px; }
.note--navy .note__tick { background: var(--navy); }
.note strong {
  display: block; font-family: 'Merriweather Sans', sans-serif; font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); margin-bottom: 4px;
}

/* Eyebrows and ruled heads */
.eyebrow {
  font-family: 'Merriweather Sans', sans-serif; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray);
}
.rulehead {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border-bottom: 2px solid var(--navy); padding-bottom: 10px; margin-bottom: 28px;
}
.rulehead h2 { font-size: 1.35rem; }
.rulehead .eyebrow { white-space: nowrap; }

/* Hero on navy */
.hero--home { background: var(--navy); color: var(--on-navy); padding: 72px 0 80px; }
.hero--home h1 { color: var(--white); max-width: 820px; margin-bottom: 22px; font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; }
.hero--home .lede { max-width: 640px; font-size: 1.1rem; color: var(--on-navy); margin-bottom: 32px; }
.hero--home .cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero--home .cta-row .aside { font-size: 0.9rem; color: var(--on-navy); opacity: 0.85; }
.hero--home .btn { background: var(--sage); color: var(--white) !important; }
.hero--home .btn:hover { background: var(--sage-deep); }
.hero--home .margin { border-left-color: var(--on-navy-rule); }
.hero--home .note { color: var(--on-navy); }
.hero--home .note strong { color: var(--white); }
.hero--home .note--navy .note__tick { background: var(--white); }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Merriweather Sans', sans-serif; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); background: var(--sage); padding: 9px 14px; border-radius: 4px; margin-bottom: 28px;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--white); }

/* Schedule of offers */
.schedule { padding: 80px 0; }
.gantt { border-bottom: 1px solid var(--rule-strong); }
.gantt__head, .row {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0 24px; align-items: center;
}
.gantt__head { border-bottom: 1px solid var(--rule-strong); padding-bottom: 6px; }
.gantt__head .eyebrow { align-self: end; }
.ticks { display: grid; grid-template-columns: repeat(7, 1fr); }
.ticks span {
  font-family: 'Merriweather Sans', sans-serif; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--gray); padding-left: 6px; border-left: 1px solid var(--rule-strong); line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.ticks span small { display: block; font-weight: 400; letter-spacing: 0.02em; }
.group {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0 24px;
  padding: 24px 0 8px; border-bottom: 1px solid var(--rule);
}
.group h3 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-deep); }
.group--navy h3 { color: var(--navy); }
.group p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }
.row {
  position: relative; padding: 18px 12px; margin: 0 -12px;
  border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none !important;
  border-radius: 4px; transition: background 140ms ease;
}
.row:hover { background: var(--light); }
.row:hover .row__go { color: var(--navy); text-decoration: underline; }
.row__label { display: flex; gap: 14px; align-items: flex-start; }
.tab {
  flex: none; font-family: 'Merriweather Sans', sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--white); background: var(--navy); padding: 3px 7px 2px; border-radius: 3px; margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.tab--sage { background: var(--sage); }
.tab--blue { background: var(--blue); }
.row__label h3 { font-size: 1.02rem; margin-bottom: 2px; color: var(--navy); }
.row__label p { font-size: 0.86rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.track { position: relative; min-height: 56px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.track__grid { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.track__grid line { stroke: var(--rule); stroke-width: 1; }
.bar { display: block; height: 22px; transform-origin: left center; }
.bar rect { fill: var(--sage); }
.bar--navy rect { fill: var(--navy); }
.bar--blue rect { fill: var(--blue); }
.meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--ink-soft); position: relative;
}
.meta b { font-weight: 700; color: var(--navy); }
.meta .fee {
  font-family: 'Merriweather Sans', sans-serif; font-weight: 700; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--sage-deep); background: var(--sage-light); padding: 2px 8px; border-radius: 3px; margin-left: 6px;
}
.row__go { font-family: 'Merriweather Sans', sans-serif; font-size: 0.78rem; font-weight: 700; color: var(--blue); white-space: nowrap; }
.schedule__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px;
}
.schedule__foot p { font-size: 0.95rem; color: var(--ink-soft); max-width: 560px; }

/* Selected work */
.work { padding: 80px 0; background: var(--light); }
.cases { display: grid; gap: 28px; }
.casecard { background: var(--white); border: 1px solid var(--rule); border-radius: 6px; padding: 28px 32px; }
.casecard .eyebrow { display: block; margin-bottom: 8px; color: var(--sage-deep); }
.casecard h3 { font-size: 1.15rem; margin-bottom: 8px; }
.casecard p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.casecard p + p { margin-top: 10px; }
.casecard a { font-weight: 700; }
.also { margin-top: 40px; }
.also .rulehead { margin-bottom: 0; }
.entry { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 0 28px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.entry__no span {
  display: inline-block; font-family: 'Merriweather Sans', sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sage-deep); background: var(--sage-light); padding: 3px 8px; border-radius: 3px; margin-top: 4px;
}
.entry h3 { font-size: 1rem; margin-bottom: 6px; }
.entry p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
.stats { display: grid; gap: 22px; }
.stats .num {
  font-family: 'Merriweather Sans', sans-serif; font-size: 2.6rem; font-weight: 800; color: var(--navy); line-height: 1;
  margin-bottom: 6px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.stats .num sup { font-size: 0.5em; vertical-align: top; position: relative; top: 0.25em; color: var(--sage); }
.stats .lbl { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.45; }

/* Bio */
.bio { padding: 80px 0; }
.bio__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.bio__grid p { font-size: 1rem; color: var(--ink-soft); }
.bio .rulehead h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.photo { margin-top: 8px; }
.photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; }
.photo__cap { margin-top: 10px; font-size: 0.86rem; color: var(--gray); }

/* Next step on navy */
.signoff { padding: 80px 0 88px; background: var(--navy); color: var(--on-navy); }
.signoff h2 { color: var(--white); margin-bottom: 0; }
.signoff .eyebrow { color: var(--sage); display: block; margin-bottom: 10px; }
.signoff__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.signoff .lede { font-size: 1.05rem; color: var(--on-navy); max-width: 560px; margin: 14px 0 28px; }
.signoff .email { font-size: 0.92rem; color: var(--on-navy); margin-top: 16px; }
.signoff .email a { color: var(--white); text-decoration: underline; }
.signoff .who {
  margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--on-navy-rule); display: inline-block; min-width: 260px;
  font-family: 'Merriweather Sans', sans-serif; font-weight: 700; color: var(--white); font-size: 1.1rem;
}
.signoff .who small { display: block; font-family: 'Open Sans', sans-serif; font-weight: 400; font-size: 0.82rem; color: var(--on-navy); margin-top: 4px; }
.expect { background: var(--white); border-radius: 6px; padding: 24px 26px 8px; color: var(--ink); }
.expect .eyebrow { display: block; margin-bottom: 10px; }
.expect ol { list-style: none; padding: 0; counter-reset: item; margin: 0; }
.expect li {
  counter-increment: item; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px;
  padding: 12px 0; border-top: 1px solid var(--rule); font-size: 0.92rem; color: var(--ink-soft);
}
.expect li::before {
  content: counter(item, decimal-leading-zero);
  font-family: 'Merriweather Sans', sans-serif; font-weight: 700; font-size: 0.78rem; color: var(--sage-deep); padding-top: 3px;
}
.expect li strong { display: block; margin-bottom: 1px; }
.expect .fine {
  font-family: 'Merriweather Sans', sans-serif; font-weight: 700; color: var(--sage-deep); font-size: 0.86rem;
  padding: 12px 0 10px; border-top: 1px solid var(--rule); margin: 0;
}

/* Scroll reveal: only once JS runs, so the page is complete without it */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 600ms cubic-bezier(.2,.7,.2,1), transform 600ms cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }
.js .row .bar { transform: scaleX(0); }
.js .row.in .bar { animation: draw 900ms cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--d, 0ms) + 200ms); }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .row .bar { transform: none; animation: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .page { grid-template-columns: 1fr; }
  .page > .margin { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-strong); padding-top: 20px; margin-top: 28px; }
  .hero--home .margin { border-top-color: var(--on-navy-rule); }
  .note { margin-bottom: 16px; }
  .bio__grid, .signoff__grid { grid-template-columns: 1fr; gap: 36px; }
  .photo { max-width: 320px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .hero--home { padding: 48px 0 56px; }
  .gantt__head, .row, .group { grid-template-columns: 1fr; gap: 10px 0; }
  .gantt__head .eyebrow { display: none; }
  .row { padding: 16px 12px 18px; }
  .casecard { padding: 22px 20px; }
  .entry { grid-template-columns: 1fr; gap: 8px 0; }
  .stats { grid-template-columns: 1fr; }
  .stats .num { font-size: 2.2rem; }
  .signoff .who { min-width: 0; }
  .schedule, .work, .bio { padding: 56px 0; }
  .signoff { padding: 56px 0 64px; }
}
