/* =========================================================
   Emily Watts, MD — dark, chic, cutting-edge
   Mostly black · warm white · tan accents
   Big editorial type, statement moments, generous air.
   Photos are never cropped.
   ========================================================= */

:root {
  --black:   #0C0B09;   /* page */
  --black-2: #141210;   /* raised */
  --bone:    #F4EFE5;   /* the light flip */
  --bone-2:  #EAE3D5;
  --white:   #F6F2EA;   /* text on black */
  --soft:    #B4ADA0;   /* muted text on black */
  --mute:    #7C766B;
  --tan:     #CBA97A;   /* warm accent */
  --blue:    #AEB9DA;   /* periwinkle / baby blue (from the shelves) */
  --blue-dim:#8C9AC4;
  --tan-lt:  #E3C89B;
  --line:    #2A2723;   /* hairlines on black */
  --line-lt: #DAD1C0;   /* hairlines on bone */
  --ink:     #131110;   /* text on bone */
  --ink-soft:#5B554A;

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, Segoe UI, sans-serif;

  --maxw:   1240px;
  --gutter: clamp(22px, 5vw, 88px);
  --ease:   cubic-bezier(.19,1,.22,1);
}

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

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; image-orientation: from-image; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -.025em;
  color: var(--white);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(3rem, 8vw, 7rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.15rem; font-weight: 400; font-family: var(--sans); letter-spacing: 0; }
p  { margin: 0 0 1.2em; }
em, .it { font-style: italic; }

.muted { color: var(--soft); }
.lede  { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--soft); font-weight: 300; }
.hero-subhead { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.35rem, 2.6vw, 2rem); color: var(--tan); letter-spacing: .01em; margin: -.35em 0 .9em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .8em;
  text-transform: uppercase; letter-spacing: .32em;
  font-size: .64rem; font-weight: 500;
  color: var(--tan); margin-bottom: 1.6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--tan); }
.center .eyebrow::before { display: none; }

.wrap    { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.narrow  { max-width: 780px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(84px, 12vw, 190px); position: relative; }
.section--tight { padding-block: clamp(60px, 8vw, 120px); position: relative; }
.measure { max-width: 54ch; }
.center  { text-align: center; margin-inline: auto; }

hr.hair { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Light "flip" panels for rhythm ---------- */
.s-light, .s-dark {           /* s-dark kept for legacy markup, now a LIGHT flip */
  background: var(--bone); color: var(--ink);
}
.s-light h1, .s-light h2, .s-light h3,
.s-dark h1, .s-dark h2, .s-dark h3 { color: var(--ink); }
.s-light .muted, .s-dark .muted { color: var(--ink-soft); }
.s-light .eyebrow, .s-dark .eyebrow { color: #9A7B45; }
.s-light .eyebrow::before, .s-dark .eyebrow::before { background: #9A7B45; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .8em;
  font-family: var(--sans); font-weight: 500;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  padding: 1.15em 2.3em; border-radius: 100px;
  border: 1px solid var(--tan); background: var(--tan); color: var(--black);
  cursor: pointer; transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.btn:hover { background: transparent; color: var(--tan); transform: translateY(-2px); }
.btn--fill { background: var(--tan); border-color: var(--tan); color: var(--black); }
.btn--outline { background: transparent; color: var(--white); border-color: var(--line); }
.btn--outline:hover { background: var(--tan); border-color: var(--tan); color: var(--black); }
.btn--text {
  border: 0; padding: 0 0 5px; background: none; border-radius: 0;
  color: var(--tan); border-bottom: 1px solid var(--tan);
  letter-spacing: .16em;
}
.btn--text:hover { color: var(--tan-lt); border-color: var(--tan-lt); }

.s-light .btn, .s-dark .btn { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.s-light .btn:hover, .s-dark .btn:hover { background: transparent; color: var(--ink); }
.s-light .btn--text, .s-dark .btn--text { color: #9A7B45; border-color: #9A7B45; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(12,11,9,.72);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .4s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: clamp(24px, 4vw, 64px); max-width: var(--maxw); margin: 0 auto; padding: 18px var(--gutter); }
.brand { flex: none; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.brand-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.brand-name { font-family: var(--serif); font-weight: 400; font-size: 1.18rem; color: var(--white); letter-spacing: .01em; }
.nav-links { display: flex; align-items: center; gap: clamp(15px, 1.7vw, 26px); }
.nav-links a.navlink { font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 400; white-space: nowrap; color: var(--soft); position: relative; padding: 4px 0; transition: color .3s var(--ease); }
.nav-links a.navlink::after { content:""; position:absolute; left:0; bottom:0; height:2px; width:0; background: var(--blue); transition: width .4s var(--ease); }
.nav-links a.navlink:hover, .nav-links a.navlink[aria-current="page"] { color: var(--white); }
.nav-links a.navlink:hover::after, .nav-links a.navlink[aria-current="page"]::after { width: 100%; }
.nav-cta { padding: .78em 1.6em; font-size: .64rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--white); margin: 5px 0; }

/* ---------- Hero — statement ---------- */
.hero { padding-block: clamp(48px, 6vw, 96px) clamp(60px, 8vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero-copy h1 { margin-bottom: .3em; letter-spacing: -.03em; }
.hero-copy h1 em { font-style: italic; color: var(--tan); }
.hero-copy .lede { max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 42px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 46px; font-size: .63rem; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); }
.hero-meta span + span::before { content: "/"; margin-right: 20px; color: var(--tan); }

/* photo: tan frame offset behind, image on top, uncropped */
.hero-photo { position: relative; }
.hero-photo::before { content:""; position:absolute; inset: 20px -20px -20px 20px; border: 3px solid var(--blue); z-index: 0; }
.hero-photo img { position: relative; z-index: 1; width: 100%; }

/* ---------- Marquee (the cutting-edge pop) ---------- */
.marquee { border-block: 3px solid var(--blue); overflow: hidden; padding-block: 26px; }
.marquee-track { display: inline-flex; white-space: nowrap; will-change: transform; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-family: var(--sans); font-weight: 400; text-transform: uppercase;
  letter-spacing: .34em; font-size: clamp(.72rem, 1.1vw, .86rem);
  color: var(--white); padding-inline: 34px; display: inline-flex; align-items: center;
}
.marquee span::after { content: "—"; color: var(--blue); margin-left: 68px; letter-spacing: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Editorial split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(44px, 7vw, 100px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; }
.split-media { position: relative; }
.split-media::before { content:""; position:absolute; inset: 16px -16px -16px 16px; border: 3px solid var(--blue); z-index: 0; }
.split-media img { position: relative; z-index: 1; }

/* ---------- Index list ---------- */
.list { border-top: 1px solid var(--line); }
.s-light .list, .s-dark .list { border-top-color: var(--line-lt); }
.list-row { display: grid; grid-template-columns: 84px 1fr; gap: 28px; padding: 38px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: padding-left .45s var(--ease), background .45s var(--ease); }
.s-light .list-row, .s-dark .list-row { border-bottom-color: var(--line-lt); }
.list-row:hover { padding-left: 16px; }
.list-row .idx { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--tan); }
.list-row h3 { margin: 0 0 .3em; font-family: var(--serif); font-size: clamp(1.5rem,2.4vw,2.1rem); font-weight: 300; }
.list-row p { margin: 0; color: var(--soft); font-size: .96rem; max-width: 62ch; }
.s-light .list-row p, .s-dark .list-row p { color: var(--ink-soft); }

/* ---------- Paths ---------- */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
.path { display: flex; flex-direction: column; padding: clamp(38px,4vw,60px); transition: background .5s var(--ease); }
.path .btn--text { margin-top: auto; align-self: flex-start; }
.path:hover { background: var(--black-2); }
.path + .path { border-left: 1px solid var(--line); }
.path .path-tag { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--tan); font-weight: 500; margin-bottom: 1.5rem; }
.path h3 { font-family: var(--serif); font-size: clamp(1.7rem,2.6vw,2.4rem); font-weight: 300; margin-bottom: .5em; }
.path ul { list-style: none; padding: 0; margin: 1.8rem 0 2.2rem; }
.path li { padding: 12px 0; border-top: 1px solid var(--line); font-size: .93rem; color: var(--soft); }
.path li:first-child { border-top: 0; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: clamp(1px,1px,1px); background: var(--line); border: 1px solid var(--line); }
.card { background: var(--black); padding: 40px 34px; transition: background .5s var(--ease); }
.card:hover { background: var(--black-2); }
.card .eyebrow { margin-bottom: 1rem; font-size: .58rem; }
.card h3 { font-family: var(--serif); font-size: 1.55rem; font-weight: 300; margin-bottom: .5em; }
.card p { font-size: .93rem; color: var(--soft); margin: 0; }
.s-light .card, .s-dark .card { background: var(--bone); }
.s-light .card:hover, .s-dark .card:hover { background: var(--bone-2); }
.s-light .card-grid, .s-dark .card-grid { background: var(--line-lt); border-color: var(--line-lt); }
.s-light .card p, .s-dark .card p { color: var(--ink-soft); }

/* ---------- Quotes ---------- */
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,84px); }
.quote { padding-top: 34px; border-top: 1px solid var(--tan); }
.quote p { font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem,2.1vw,1.8rem); line-height: 1.45; letter-spacing: -.01em; }
.quote cite { font-style: normal; font-family: var(--sans); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--tan); display: block; margin-top: 24px; }

/* ---------- Steps ---------- */
.steps { display: grid; }
.step { display: grid; grid-template-columns: 60px 1fr; gap: 30px; align-items: baseline; padding: 40px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.s-light .step, .s-dark .step { border-color: var(--line-lt); }
.step .step-num { font-family: var(--serif); font-style: italic; font-size: 1.7rem; color: var(--tan); }
.step h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 300; margin-bottom: .35em; }
.step p { margin: 0; color: var(--soft); }
.s-light .step p, .s-dark .step p { color: var(--ink-soft); }
.step a { color: var(--tan); border-bottom: 1px solid var(--tan); }

/* ---------- Info ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px,1fr)); gap: clamp(34px,5vw,64px); }
.info-block h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 300; margin-bottom: .5em; }
.info-block p { font-size: .93rem; color: var(--soft); }
.info-block a { color: var(--tan); border-bottom: 1px solid var(--line); }

/* ---------- Notice ---------- */
.notice { border: 1px solid var(--line); border-left: 2px solid var(--tan); padding: 26px 30px; font-size: .9rem; color: var(--soft); }
.notice strong { color: var(--white); font-weight: 500; }
.s-light .notice, .s-dark .notice { border-color: var(--line-lt); border-left-color: var(--tan); color: var(--ink-soft); }
.s-light .notice strong, .s-dark .notice strong { color: var(--ink); }
.notice .eyebrow { margin-bottom: .8rem; }
.placeholder-note { color: var(--mute); font-size: .72rem; font-style: italic; display: inline-block; margin-top: 12px; }

/* ---------- Publication / association lists ---------- */
.pub-list, .mini-list { list-style: none; padding: 0; margin: 0; }
.pub-list li { padding: 13px 0; border-top: 1px solid var(--line); }
.pub-list li:first-child { border-top: 0; padding-top: 0; }
.pub-list a { color: var(--white); border-bottom: 1px solid var(--tan); font-weight: 400; line-height: 1.45; }
.pub-list a:hover { color: var(--tan); }
.pub-list span { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin-top: 6px; border: 0; }
.mini-list li { padding: 9px 0; border-top: 1px solid var(--line); color: var(--white); font-size: .95rem; }
.mini-list li:first-child { border-top: 0; }

/* ---------- Track note (cross-links between services) ---------- */
.track-note { font-size: .9rem; color: var(--soft); margin-top: 20px; line-height: 1.6; max-width: 52ch; }
.track-note a { color: var(--tan); border-bottom: 1px solid var(--tan); }
.track-note strong { color: var(--white); font-weight: 500; }
.s-light .track-note, .s-dark .track-note { color: var(--ink-soft); }
.s-light .track-note strong, .s-dark .track-note strong { color: var(--ink); }

/* ---------- Page hero ---------- */
.page-hero { padding-block: clamp(84px,10vw,170px) clamp(40px,5vw,70px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.page-hero .lede { max-width: 58ch; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(64px,8vw,104px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.footer-brand { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--white); margin-bottom: 16px; }
.footer-brand em { font-style: italic; color: var(--tan); }
.footer-grid h4 { font-family: var(--sans); font-size: .61rem; letter-spacing: .28em; text-transform: uppercase; margin-bottom: 1.4em; font-weight: 500; color: var(--tan); }
.footer-links { display: flex; flex-direction: column; gap: 12px; font-size: .9rem; color: var(--soft); }
.footer-links a:hover { color: var(--white); }
.footer-bottom { margin-top: 62px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .71rem; color: var(--mute); }
.disclaimer { font-size: .82rem; color: var(--soft); max-width: 42ch; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { order: 2; }
  .hero-photo { max-width: 440px; }
  /* Contact: lead with the information, photo below */
  .hero-grid.info-first .hero-copy { order: 0; }
  .hero-grid.info-first .hero-photo { order: 1; max-width: 300px; margin-top: 6px; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .paths { grid-template-columns: 1fr; }
  .path + .path { border-left: 0; border-top: 1px solid var(--line); }
  .quote-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}

/* Nav collapses to a drawer earlier so the wordmark never crowds the links */
@media (max-width: 1140px) {
  .nav-links {
    position: fixed; top: 0; right: 0; left: auto; bottom: auto;
    height: 100vh; height: 100dvh; width: min(82vw, 340px);
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 26px;
    background: var(--black); border-left: 1px solid var(--line);
    padding: 104px 36px calc(40px + env(safe-area-inset-bottom));
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    z-index: 65; transform: translateX(100%); transition: transform .45s var(--ease);
  }
  .nav-links.open { transform: none; }
  .nav-toggle { display: block; z-index: 70; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 540px) {
  .step, .list-row { grid-template-columns: 1fr; gap: 8px; }
}




/* =========================================================
   MATERIALS — warm tile + periwinkle, kitchen-inspired
   Everything TILED (repeat) at native scale → always crisp.
   ========================================================= */

.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid--3 { grid-template-columns: 1fr; } }

/* Suede grain on the bone flip panels */
.tex-suede { position: relative; }
.tex-suede::before { content:""; position:absolute; inset:0; pointer-events:none; z-index:0; opacity:.6;
  background-image: radial-gradient(rgba(0,0,0,.05).6px,transparent .7px), radial-gradient(rgba(255,255,255,.045).6px,transparent .7px);
  background-size: 3px 3px, 5px 5px; background-position: 0 0, 2px 2px; }
.tex-suede > * { position: relative; z-index: 1; }

/* TILE RIBBON divider — the Untitled 4 floral-check tile, repeated, crisp,
   framed with a thin periwinkle rule top & bottom */
.motif {
  height: 96px;
  background: url("img/pat-tile.jpg") repeat;
  background-size: 300px auto;
  border-top: 5px solid var(--blue);
  border-bottom: 5px solid var(--blue);
}
.motif--tall { height: 128px; }
.motif--check { background: url("img/pat-check.jpg") repeat; background-size: auto 96px; }
.motif--tribal { background: url("img/pat-tribal.jpg") repeat; background-size: auto 128px; height: 128px; }

/* TILE BAND — full-width statement, pattern tiled (never stretched) + dark wash + text */
.tileband {
  position: relative; padding-block: clamp(76px,10vw,140px); text-align:center;
  background: url("img/pat-tile.jpg") repeat; background-size: 340px auto;
  border-top: 5px solid var(--blue); border-bottom: 5px solid var(--blue);
}
.tileband--check { background: url("img/pat-check.jpg") repeat; background-size: auto 150px; }
.tileband::after { content:""; position:absolute; inset:0; background: rgba(14,11,7,.5); }
.tileband .wrap { position: relative; z-index: 1; }
.tileband .kicker { font-family: var(--serif); font-style: italic; font-weight:300;
  font-size: clamp(1.9rem,4.6vw,3.4rem); color:#FBEBCF; margin:0; }
.tileband .sub { margin-top: 14px; font-size:.66rem; letter-spacing:.34em; text-transform:uppercase; color: var(--blue); }

/* FOOTER — clean black with a periwinkle top rule (no more leather) */
.leather, .site-footer { background: var(--black); border-top: 5px solid var(--blue); }
.leather::before { content: none; }

/* small periwinkle accents */
.eyebrow::before { background: var(--blue); }
.rule { background: var(--blue) !important; height: 3px !important; width: 60px !important; }
.nav-links a.navlink::after { background: var(--blue); }

/* ---------- Screening form ---------- */
.form-wrap { max-width: 780px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin-top: 8px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tan); font-weight: 500; }
.field input, .field select, .field textarea {
  background: #EFE6D3; border: 1px solid var(--tan); border-radius: 4px;
  color: var(--ink); font-family: var(--sans); font-weight: 400; font-size: 1rem;
  padding: 13px 15px; transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(174,185,218,.35);
}
.field select { color: var(--ink); }
.field option { background: #EFE6D3; color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #9A8A6A; }
.form-actions { margin-top: 34px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form-note { font-size: .82rem; color: var(--mute); margin-top: 26px; line-height: 1.6; border-left: 2px solid var(--blue); padding-left: 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* three explore links under the hero CTA */
.hero-links { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; align-items: flex-start; }
.hero-links .btn--text { font-size: .8rem; }
@media (min-width: 620px) { .hero-links { flex-direction: row; flex-wrap: wrap; gap: 14px 30px; } }
