/* Tidewell Labs Inc. — homepage layout (loaded only by index.html) */
/* Playfair Display (SIL OFL, local files) — high-contrast didone-style serif for display type */
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/playfair-display-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/playfair-display-latin-500-normal.woff2) format('woff2')}
.home{--display:'Playfair Display','Bodoni 72',Didot,'EB Garamond',Georgia,serif}
.rail-note{display:none}

/* ---------- type scale: light serif display, Inter for body and nav ---------- */
.h-display{font-family:var(--display);font-weight:400;font-size:clamp(40px,4.3vw,62px);line-height:1.12;letter-spacing:-.005em;color:var(--text);margin-bottom:28px;max-width:15ch}
.h-title{font-family:var(--display);font-weight:400;font-size:clamp(30px,2.7vw,40px);line-height:1.18;letter-spacing:0;color:var(--text);margin-bottom:20px}
.h-kicker{font-size:12px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--accent);margin-bottom:16px;display:flex;align-items:center;gap:12px}
.h-kicker::before{content:'';width:28px;height:1px;background:var(--accent);flex:none}
.h-lead{font-size:19px;line-height:1.65;color:var(--muted);max-width:520px;margin-bottom:34px}
.h-body{font-size:16px;line-height:1.75;color:var(--muted)}
.h-section{padding:var(--sec) 0}
.h-section + .h-section{border-top:1px solid var(--line-soft)}

/* ---------- hero: ultra-wide photograph over the right two-thirds, copy on its dark left edge ---------- */
.h-hero{position:relative;display:flex;align-items:center;min-height:100vh;min-height:100svh;overflow:hidden;background:var(--bg-3)}
.h-hero-photo{position:absolute;top:0;bottom:0;right:0;left:30%;margin:0}
/* mirrored so the lit rack unit sits on the right and the blurred, unlit aisle meets the copy */
.h-hero-photo img{width:100%;height:100%;object-fit:cover;object-position:25% 60%;transform:scaleX(-1)}
.h-hero-photo::after{content:'';position:absolute;inset:0;background:linear-gradient(to right,var(--bg-3) 0%,rgba(12,15,19,.82) 22%,rgba(12,15,19,.3) 52%,rgba(12,15,19,.12) 100%),linear-gradient(to top,var(--bg) 0%,rgba(17,21,26,0) 24%),linear-gradient(to bottom,rgba(12,15,19,.55) 0%,rgba(12,15,19,0) 22%)}
.h-hero-text{position:relative;z-index:2;width:100%;max-width:var(--wrap);margin:0 auto;padding:140px var(--pad) 88px}
.h-hero-text > *{max-width:600px}

/* ---------- use cases: sticky heading + scenario list ---------- */
.h-cases-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:80px;align-items:start}
.h-cases-head{position:sticky;top:110px}
.h-cases-list{list-style:none;border-top:1px solid var(--line)}
.h-cases-list li{display:grid;grid-template-columns:56px 1fr;gap:4px 12px;padding:28px 0;border-bottom:1px solid var(--line-soft)}
.h-cases-list .num{grid-row:span 2;padding-top:4px}
.h-cases-list p{font-family:var(--display);font-weight:400;font-size:23px;line-height:1.45;color:var(--text);margin-bottom:12px}
.h-cases-list .text-link{justify-self:start;font-size:13px}

/* ---------- practice areas: grouped services, alternating photo ---------- */
.h-practice{background:var(--bg-2)}
.h-practice-intro{max-width:640px;margin-bottom:64px}
.h-area{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:0;border:1px solid var(--line-soft);background:var(--bg)}
.h-area + .h-area{margin-top:40px}
.h-area-flip .h-area-photo{order:2}
.h-area-photo{margin:0;position:relative;min-height:420px;overflow:hidden}
.h-area-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.h-area-flip .h-area-photo img{object-position:40% center}
.h-area-text{padding:48px 52px}
.h-area-label{font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:var(--dim);margin-bottom:10px}
.h-area-title{font-family:var(--display);font-weight:400;font-size:28px;line-height:1.22;margin-bottom:26px}
.h-entry{padding:22px 0;border-top:1px solid var(--line-soft)}
.h-entry h4{font-family:var(--display);font-weight:500;font-size:21px;line-height:1.35;margin-bottom:8px}
.h-entry h4 a{color:var(--text);text-decoration:none;transition:color .2s}
.h-entry h4 a::after{content:' →';color:var(--accent)}
.h-entry h4 a:hover{color:var(--accent)}
.h-entry p{font-size:15px;line-height:1.7;color:var(--muted)}
.h-entry .h-benefit{margin-top:10px;color:var(--accent);font-size:14px;letter-spacing:.02em}

/* ---------- how we work: horizontal timeline ---------- */
.h-craft-head{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:end;margin-bottom:56px}
.h-steps{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:40px;position:relative;padding-top:34px}
.h-steps::before{content:'';position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(to right,var(--accent),rgba(212,162,76,.15))}
.h-steps li{position:relative}
.h-steps li::before{content:'';position:absolute;top:-39px;left:0;width:9px;height:9px;border:1px solid var(--accent);background:var(--bg)}
.h-steps .num{display:block;font-family:var(--sans);font-size:12px;letter-spacing:.18em;text-transform:uppercase;margin-bottom:10px}
.h-steps strong{display:block;font-family:var(--display);font-weight:400;font-size:23px;color:var(--text);margin-bottom:8px}
.h-steps p{font-size:15px;line-height:1.7;color:var(--muted)}

/* ---------- about + contact ---------- */
.h-contact{background:var(--bg-3)}
.h-contact-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:72px;align-items:stretch}
.h-about{padding-right:8px}
.h-about address{font-style:normal;font-size:15px;color:var(--text);line-height:1.7;margin:28px 0 24px;padding-top:20px;border-top:1px solid var(--line-soft)}
.h-about address span{display:block;font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--dim);margin-bottom:6px}
.h-mailpanel{border:1px solid var(--line);background:linear-gradient(140deg,rgba(212,162,76,.08),rgba(23,29,37,.7));padding:48px 52px}
.h-mail{display:inline-block;font-family:var(--display);font-weight:400;font-size:clamp(24px,2.4vw,32px);margin:22px 0 28px}

/* ---------- tablet ---------- */
@media (max-width:1100px){
  .h-hero{min-height:680px}
  .h-hero-text{padding:124px var(--pad) 72px}
  .h-cases-grid{gap:48px}
  .h-area-text{padding:40px 36px}
}

/* ---------- mobile: 60vh dark photo hero with centered overlay copy, stacked groups ---------- */
@media (max-width:900px){
  .home .nav .rail-note{display:block;font-size:14px;color:var(--dim);margin-top:24px}
  .h-hero{min-height:60vh;min-height:60svh;background:var(--bg-3)}
  .h-hero-text{padding:96px var(--pad) 44px}
  .h-hero-text > *{max-width:520px}
  .h-display{font-size:clamp(30px,8.6vw,40px);margin-bottom:18px;max-width:none}
  .h-lead{font-size:16px;line-height:1.6;color:var(--text);margin-bottom:24px}
  .h-hero-photo{left:0}
  .h-hero-photo img{object-position:30% 70%}
  /* photo sits behind the copy: flat rgba(17,21,26,.55) scrim plus a left/bottom fade keeps #f1ece2 text above WCAG AA */
  .h-hero-photo::after{background:linear-gradient(rgba(17,21,26,.55),rgba(17,21,26,.55)),linear-gradient(to right,rgba(12,15,19,.6) 0%,rgba(12,15,19,.35) 70%,rgba(12,15,19,.2) 100%),linear-gradient(to top,var(--bg) 0%,rgba(17,21,26,0) 30%)}
  .h-title{font-size:clamp(26px,7vw,30px)}
  .h-cases-grid,.h-craft-head,.h-contact-grid{grid-template-columns:1fr;gap:28px}
  .h-cases-head{position:static}
  .h-cases-list li{grid-template-columns:44px 1fr;padding:22px 0}
  .h-cases-list p{font-size:18px}
  .h-practice-intro{margin-bottom:36px}
  .h-area{grid-template-columns:1fr}
  .h-area-flip .h-area-photo{order:0}
  .h-area-photo{min-height:0;aspect-ratio:1376/768}
  .h-area-text{padding:28px 22px 12px}
  .h-area-title{font-size:21px}
  .h-craft-head{margin-bottom:36px}
  .h-steps{grid-template-columns:1fr;gap:30px;padding:0 0 0 28px}
  .h-steps::before{top:0;bottom:0;left:4px;right:auto;width:1px;height:auto;background:linear-gradient(to bottom,var(--accent),rgba(212,162,76,.15))}
  .h-steps li::before{top:6px;left:-28px}
  .h-mailpanel{padding:30px 22px}
}
