/* =========================================================
   Steven Howard — Writing & Publishing Coach
   Palette: white canvas, near-black type, maroon contrast
   ========================================================= */

:root{
  --bg:         #ffffff;   /* page */
  --bg-alt:     #f7f5f3;   /* alternating sections */
  --surface:    #fbfaf9;   /* cards */
  --line:       #e8e4e1;   /* hairlines */
  --line-2:     #d9d4d0;

  --text:       #141210;   /* headings and body */
  --muted:      #55504b;   /* body copy */
  --muted-2:    #8a847e;   /* meta */

  /* Maroon accent, retuned for a light background. On black the small-text
     variant was lighter; on white it has to go darker to keep contrast. */
  --accent:        #be4152;  /* headings, icons, rules  (5.2:1 on white) */
  --accent-hi:     #a02e44;  /* small labels and hover  (6.6:1 on white) */
  --accent-btn:    #8e2438;  /* button fills            (8.0:1 with #fff) */
  --accent-btn-hi: #a02e44;
  --accent-dim:  rgba(190,65,82,.08);
  --accent-line: rgba(190,65,82,.30);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --r:    14px;

  --shadow: 0 1px 2px rgba(20,18,16,.04), 0 6px 20px rgba(20,18,16,.05);

  --ease: cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; scroll-padding-top:88px; -webkit-text-size-adjust:100%; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.7;
  font-weight:300;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}

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

h1,h2,h3,h4{
  font-family:var(--serif);
  font-weight:600;
  line-height:1.12;
  letter-spacing:-.015em;
  margin:0;
  color:var(--text);
}

p{ margin:0 0 1.15em; }
p:last-child{ margin-bottom:0; }

a{ color:inherit; }

.wrap{ width:100%; max-width:var(--wrap); margin:0 auto; padding:0 28px; }

.accent{ color:var(--accent); }

.skip-link{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--accent); color:#fff; padding:12px 20px; font-weight:600;
  border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; }

:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
  border-radius:4px;
}

/* ---------- Eyebrow ---------- */
.eyebrow{
  font-family:var(--sans);
  font-size:12px;
  font-weight:600;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--accent-hi);
  margin:0 0 18px;
}


/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  font-family:var(--sans);
  font-size:15px;
  font-weight:500;
  letter-spacing:.005em;
  padding:15px 30px;
  border-radius:999px;
  border:1px solid transparent;
  cursor:pointer;
  text-decoration:none;
  white-space:nowrap;
  transition:background .22s var(--ease), color .22s var(--ease),
             border-color .22s var(--ease), transform .22s var(--ease);
}
.btn--solid{ background:var(--accent-btn); color:#ffffff; font-weight:600; }
.btn--solid:hover{ background:var(--accent-btn-hi); transform:translateY(-2px); }

.btn--ghost{ background:transparent; color:var(--text); border-color:var(--line-2); }
.btn--ghost:hover{ border-color:var(--accent); color:var(--accent); transform:translateY(-2px); }

.btn--sm{ padding:11px 22px; font-size:14px; }
.btn--lg{ padding:18px 40px; font-size:16px; }
.btn--block{ width:100%; }

/* =========================================================
   NAV
   ========================================================= */
.nav{
  position:fixed; inset:0 0 auto 0; z-index:90;
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid transparent;
  transition:background .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-stuck{ background:rgba(255,255,255,.93); border-bottom-color:var(--line); }

.nav__inner{
  display:flex; align-items:center; gap:28px;
  height:78px;
}

.nav__brand{
  display:flex; align-items:center; gap:12px;
  min-height:44px;                /* touch target */
  text-decoration:none; margin-right:auto;
}
.nav__mark{
  flex:0 0 auto;
  width:40px; height:40px;
  display:grid; place-items:center;
  border:1px solid var(--accent-line);
  border-radius:50%;
  font-family:var(--serif);
  font-size:15px; font-weight:600;
  color:var(--accent);
  letter-spacing:.02em;
}
.nav__name{
  display:flex; flex-direction:column;
  font-family:var(--serif);
  font-size:18px; font-weight:600;
  line-height:1.15;
  color:var(--text);
}
.nav__name em{
  font-family:var(--sans);
  font-style:normal;
  font-size:11px;
  font-weight:400;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:var(--muted-2);
  margin-top:3px;
}

.nav__links{ display:flex; gap:30px; }
.nav__links a{
  font-size:14.5px; font-weight:400;
  color:var(--muted);
  text-decoration:none;
  position:relative;
  padding:6px 0;
  transition:color .2s var(--ease);
}
.nav__links a::after{
  content:""; position:absolute; left:0; right:100%; bottom:0;
  height:1px; background:var(--accent);
  transition:right .28s var(--ease);
}
.nav__links a:hover{ color:var(--text); }
.nav__links a:hover::after{ right:0; }

.nav__toggle{
  display:none;
  width:44px; height:44px;
  background:none; border:1px solid var(--line-2); border-radius:10px;
  cursor:pointer;
  padding:0;
  place-items:center;
  align-content:center;
  justify-items:center;
  gap:5px;
}
.nav__toggle span{
  display:block; width:18px; height:1.5px; background:var(--text);
  transition:transform .28s var(--ease), opacity .2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:first-child{ transform:translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child{ transform:translateY(-3.25px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position:relative;
  padding:170px 0 96px;
  overflow:hidden;
}
/* warm glow behind the portrait */
.hero::before{
  content:"";
  position:absolute;
  top:-10%; right:-6%;
  width:760px; height:760px;
  background:radial-gradient(circle, rgba(190,65,82,.07) 0%, rgba(190,65,82,0) 66%);
  pointer-events:none;
}

.hero__inner{
  position:relative;
  display:grid;
  grid-template-columns:1fr 440px;
  gap:70px;
  align-items:center;
}

.hero__title{
  font-size:clamp(46px, 6.2vw, 82px);
  line-height:1.04;
  letter-spacing:-.03em;
  margin:0 0 28px;
}

.hero__lede{
  font-size:18.5px;
  line-height:1.75;
  color:var(--muted);
  max-width:52ch;
  margin-bottom:36px;
}

.hero__actions{ display:flex; flex-wrap:wrap; gap:14px; margin-bottom:26px; }

.hero__note{
  font-size:13.5px;
  color:var(--muted-2);
  letter-spacing:.02em;
  display:flex; align-items:center; gap:10px;
  margin:0;
}
.hero__note::before{
  content:""; width:6px; height:6px; border-radius:50%;
  background:var(--accent); flex:0 0 auto;
}

.hero__portrait{
  position:relative;
  border-radius:var(--r);
  overflow:hidden;
}
.hero__portrait img{
  width:100%;
  aspect-ratio:3/4;
  object-fit:cover;
  object-position:50% 22%;
}
/* melt the photo's black backdrop into the page */
.hero__portrait-fade{
  position:absolute; inset:0;
  /* photo is shot on black, so it reads as a deliberate dark tile here */
  box-shadow:inset 0 0 0 1px rgba(20,18,16,.10);
  border-radius:inherit;
  pointer-events:none;
}

/* =========================================================
   STATS
   ========================================================= */
.stats{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:var(--bg-alt);
}
.stats__grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
}
.stat{
  padding:38px 30px;
  text-align:center;
  border-right:1px solid var(--line);
}
.stat:last-child{ border-right:0; }
.stat strong{
  display:block;
  font-family:var(--serif);
  font-size:38px;
  font-weight:600;
  letter-spacing:-.02em;
  color:var(--accent);
  line-height:1;
  margin-bottom:9px;
}
.stat span{
  font-size:13px;
  color:var(--muted-2);
  letter-spacing:.06em;
  text-transform:uppercase;
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section{ padding:110px 0; }
.section--alt{ background:var(--bg-alt); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }

.section__title{
  font-size:clamp(33px, 4.1vw, 50px);
  margin:0 0 20px;
}
.section__lede{
  font-size:18px;
  color:var(--muted);
  max-width:60ch;
  margin:0 0 56px;
}








/* Without JS the descriptions simply stay on the tiles. */





/* ---------- Coaching cards ---------- */
.cards{ display:grid; grid-template-columns:1fr 1fr; gap:26px; }

.card{
  position:relative;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:44px 40px 40px;
  transition:border-color .3s var(--ease), transform .3s var(--ease);
  box-shadow:var(--shadow);
}
.card:hover{ border-color:var(--accent-line); transform:translateY(-4px); }

.card__num{
  font-family:var(--serif);
  font-size:13px;
  font-weight:600;
  letter-spacing:.16em;
  color:var(--accent-hi);
  display:block;
  margin-bottom:16px;
}
.card h3{ font-size:29px; margin-bottom:16px; }
.card > p{ color:var(--muted); font-size:16.5px; margin-bottom:26px; }

.card__list{ list-style:none; margin:0; padding:0; border-top:1px solid var(--line); }
.card__list li{
  position:relative;
  padding:13px 0 13px 26px;
  font-size:15.5px;
  color:var(--muted);
  border-bottom:1px solid var(--line);
}
.card__list li:last-child{ border-bottom:0; }
.card__list li::before{
  content:"";
  position:absolute; left:4px; top:19.5px;
  width:5px; height:5px; border-radius:50%;
  background:var(--accent);
}

.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }

/* Compact, clickable. The definition opens in .work-detail below the grid
   rather than a floating popover, which gets cramped on narrow screens. */
.tile{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  text-align:left;
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:12px;
  padding:17px 16px 17px 20px;
  cursor:pointer;
  font-family:var(--sans);
  box-shadow:var(--shadow);
  transition:border-color .25s var(--ease), background .25s var(--ease),
             transform .25s var(--ease);
}
.tile:hover{ border-color:var(--accent-line); transform:translateY(-2px); }

.tile__name{
  font-family:var(--serif);
  font-size:16.5px;
  font-weight:600;
  line-height:1.25;
  letter-spacing:-.005em;
  color:var(--text);
  flex:1;
}

/* Without JS the descriptions simply stay on the tiles. */
.js .tile__desc{ display:none; }
.tile__desc{
  display:block;
  font-size:14.5px;
  color:var(--muted-2);
  line-height:1.6;
  margin-top:8px;
}

/* plus that becomes a minus when open */
.tile::after,
.tile::before{
  content:"";
  position:absolute;
  right:18px;
  background:var(--accent);
  transition:transform .28s var(--ease), opacity .28s var(--ease);
}
.tile::before{ width:11px; height:1.5px; top:50%; margin-top:-.75px; }
.tile::after{ width:1.5px; height:11px; top:50%; margin-top:-5.5px; right:22.75px; }
.tile.is-active::after{ transform:rotate(90deg); opacity:0; }

.tile.is-active{
  border-color:var(--accent);
  background:var(--accent-dim);
}
.tile.is-active .tile__name{ color:var(--accent-hi); }

.work-detail{
  position:relative;
  margin-top:18px;
  background:var(--surface);
  border:1px solid var(--line);
  border-left:3px solid var(--accent);
  border-radius:12px;
  padding:26px 56px 26px 28px;
  box-shadow:var(--shadow);
  animation:workIn .3s var(--ease);
}
.work-detail[hidden]{ display:none; }
@keyframes workIn{ from{ opacity:0; transform:translateY(-6px); } }

.work-detail__title{
  font-size:20px;
  margin-bottom:8px;
  color:var(--text);
}
.work-detail__body{
  margin:0;
  font-size:16px;
  color:var(--muted);
  max-width:70ch;
}
.work-detail__close{
  position:absolute; top:16px; right:16px;
  width:32px; height:32px;
  display:grid; place-items:center;
  background:none;
  border:1px solid var(--line);
  border-radius:50%;
  color:var(--muted-2);
  cursor:pointer;
  transition:color .2s var(--ease), border-color .2s var(--ease);
}
.work-detail__close:hover{ color:var(--accent); border-color:var(--accent-line); }
.work-detail__close svg{ width:15px; height:15px; }

/* ---------- Format (How it works) ---------- */
.format{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  margin-bottom:70px;
}
.format__item{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:38px 36px;
  transition:border-color .3s var(--ease);
  box-shadow:var(--shadow);
}
.format__item:hover{ border-color:var(--accent-line); }

.format__icon{
  width:46px; height:46px;
  display:grid; place-items:center;
  border-radius:12px;
  background:var(--accent-dim);
  color:var(--accent);
  margin-bottom:22px;
}
.format__icon svg{ width:23px; height:23px; }

.format__item h3{ font-size:23px; margin-bottom:13px; }
.format__item p{ color:var(--muted); font-size:16px; margin:0; }

/* ---------- Steps ---------- */
.steps{
  list-style:none;
  margin:0 0 60px;
  padding:0;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
  border:1px solid var(--line);
  border-radius:var(--r);
  overflow:hidden;
}
.step{
  padding:34px 28px;
  border-right:1px solid var(--line);
}
.step:last-child{ border-right:0; }
.step__n{
  display:grid; place-items:center;
  width:32px; height:32px;
  border-radius:50%;
  border:1px solid var(--accent-line);
  color:var(--accent-hi);
  font-family:var(--serif);
  font-size:14px; font-weight:600;
  margin-bottom:18px;
}
.step h4{ font-size:17.5px; margin-bottom:9px; }
.step p{ font-size:14.5px; color:var(--muted-2); line-height:1.6; margin:0; }

/* ---------- Callout ---------- */
.callout{
  display:flex; align-items:center; gap:40px;
  justify-content:space-between;
  background:linear-gradient(120deg, rgba(190,65,82,.10), rgba(190,65,82,.02));
  border:1px solid var(--accent-line);
  border-radius:var(--r);
  padding:40px 44px;
}
.callout h3{ font-size:24px; margin-bottom:11px; }
.callout p{ color:var(--muted); font-size:16px; margin:0; max-width:62ch; }
.callout .btn{ flex:0 0 auto; }

/* =========================================================
   ABOUT
   ========================================================= */
.about{
  display:grid;
  grid-template-columns:400px 1fr;
  gap:70px;
  align-items:start;
}
.about__media{ position:sticky; top:110px; }
.about__media > img{
  width:100%;
  border-radius:var(--r);
  border:1px solid var(--line);
}
/* Landscape shot of him with the books; keep its own ratio rather than
   cropping it to a portrait, which would cut the books out of frame. */
.about__photo{
  aspect-ratio:3/2;
  object-fit:cover;
  object-position:50% 30%;
}
.about__badges{ margin-top:18px; display:grid; gap:14px; }
.about__badges img{
  width:100%;
  border-radius:12px;
  border:1px solid var(--line);
}

.about__copy .lead{
  font-family:var(--serif);
  font-size:22px;
  line-height:1.5;
  color:var(--text);
  font-weight:400;
  margin-bottom:28px;
}
.about__copy p{ color:var(--muted); font-size:16.5px; }
.about__copy em{ color:#cfcfcf; font-style:italic; }

.values__head{
  font-size:19px;
  margin:34px 0 4px;
  padding-top:26px;
  border-top:1px solid var(--line);
  color:var(--text);
}

.values{
  list-style:none;
  margin:0;
  padding:0;
}
.values li{
  padding:16px 0;
  border-bottom:1px solid var(--line);
  font-size:15.5px;
  line-height:1.65;
  color:var(--muted);
}
.values li:last-child{ border-bottom:0; }
.values strong{
  display:block;
  font-family:var(--serif);
  font-size:17.5px;
  font-weight:600;
  color:var(--accent-hi);
  margin-bottom:5px;
  letter-spacing:-.005em;
}

.awards{
  list-style:none;
  margin:38px 0 0;
  padding:26px 0 0;
  border-top:1px solid var(--line);
}
/* Was a flex row, which squashed the award name against the title and put
   odd gaps around "for". Now a label line above readable body text. */
.awards li{
  padding:13px 0;
  border-bottom:1px solid var(--line);
  font-size:15px;
  line-height:1.6;
  color:var(--muted);
}
.awards li:last-child{ border-bottom:0; }
.awards span{
  display:block;
  margin-bottom:3px;
  color:var(--accent-hi);
  font-weight:600;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
/* book titles were muted and hard to read; give them full contrast */
.awards em{ color:var(--text); font-style:italic; }

/* the opening line of the Format section runs the full width */
.section__lede--wide{ max-width:none; }

/* hero note without the dot marker */
.hero__note--plain{ display:block; max-width:52ch; font-size:16.5px; color:var(--muted); }
.hero__note--plain::before{ content:none; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.quotes{ display:grid; grid-template-columns:1fr 1fr; gap:26px; }
.quote{
  margin:0;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:44px 40px 36px;
  position:relative;
  box-shadow:var(--shadow);
}
.quote::before{
  content:"\201C";
  position:absolute; top:14px; left:34px;
  font-family:var(--serif);
  font-size:78px;
  line-height:1;
  color:var(--accent);
  opacity:.28;
}
.quote blockquote{
  margin:0 0 26px;
  padding-top:22px;
  font-family:var(--serif);
  font-size:20px;
  line-height:1.55;
  font-weight:400;
  color:var(--text);
}
.quote figcaption{
  border-top:1px solid var(--line);
  padding-top:20px;
  display:flex; flex-direction:column; gap:4px;
}
.quote figcaption strong{ font-size:15px; font-weight:600; color:var(--text); }
.quote figcaption span{ font-size:14px; color:var(--muted-2); }

/* =========================================================
   CTA
   ========================================================= */
.cta{
  position:relative;
  padding:120px 0;
  background:var(--bg-alt);
  border-top:1px solid var(--line);
  overflow:hidden;
  text-align:center;
}
.cta::before{
  content:"";
  position:absolute; left:50%; bottom:-320px;
  width:820px; height:620px; transform:translateX(-50%);
  background:radial-gradient(ellipse, rgba(190,65,82,.07) 0%, rgba(190,65,82,0) 70%);
  pointer-events:none;
}
.cta__inner{ position:relative; }
.cta .eyebrow{ text-align:center; }

.cta__title{ font-size:clamp(36px, 4.8vw, 58px); margin-bottom:20px; }
.cta__lede{
  font-size:18px; color:var(--muted);
  max-width:56ch; margin:0 auto 38px;
}
.cta__alt{
  margin:26px 0 0;
  font-size:14.5px;
  color:var(--muted-2);
}
.cta__alt a{
  display:inline-flex;
  align-items:center;
  min-height:44px;                /* touch target */
  padding:0 8px;
  color:var(--accent-hi);
  text-decoration:none;
  border-bottom:1px solid var(--accent-line);
  padding-bottom:1px;
  transition:border-color .2s var(--ease);
}
.cta__alt a:hover{ border-bottom-color:var(--accent); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer{
  background:var(--bg);
  border-top:1px solid var(--line);
  padding:56px 0;
}
.footer__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:40px; flex-wrap:wrap;
}
.footer__brand{ display:flex; align-items:center; gap:13px; }
.footer__brand div{ display:flex; flex-direction:column; }
.footer__brand strong{ font-family:var(--serif); font-size:17px; font-weight:600; }
.footer__brand span{ font-size:12px; color:var(--muted-2); letter-spacing:.1em; text-transform:uppercase; margin-top:2px; }

.footer__links{ display:flex; flex-wrap:wrap; gap:6px 26px; }
.footer__links a{
  font-size:14px; color:var(--muted-2); text-decoration:none;
  background:none; border:0; cursor:pointer; font-family:var(--sans);
  padding:11px 0;                 /* 44px touch target */
  transition:color .2s var(--ease);
}
.footer__links a:hover{ color:var(--accent); }

.footer__meta{ text-align:right; }
.footer__meta p{ margin:0; font-size:13px; color:var(--muted-2); line-height:1.7; }

/* ---------- Builder credit ---------- */
/* Deliberately no card: no border, no fill, no shadow. It sits in the
   footer as plain content so it never competes with Steven's own. */
.sitecard{
  display:flex;
  align-items:center;
  gap:14px;
  max-width:420px;
  margin-top:30px;
  text-decoration:none;
}

.sitecard__thumb{
  flex:0 0 116px;
  overflow:hidden;
  border-radius:6px;
  line-height:0;
}
.sitecard__thumb img{
  width:100%;
  height:auto;
  aspect-ratio:1200/630;
  object-fit:cover;
}

.sitecard__body{ display:flex; flex-direction:column; min-width:0; }

.sitecard__title{
  font-family:var(--serif);
  font-size:15px;
  font-weight:600;
  color:var(--text);
  line-height:1.25;
}
.sitecard__desc{
  font-size:12.5px;
  line-height:1.5;
  color:var(--muted-2);
  margin-top:4px;
}
.sitecard__domain{
  font-size:12px;
  font-weight:500;
  color:var(--accent-hi);
  margin-top:6px;
}
.sitecard:hover .sitecard__domain{ text-decoration:underline; }

@media (max-width:620px){
  .sitecard{ max-width:none; }
  .sitecard__thumb{ flex-basis:96px; }
  .sitecard__desc{ display:none; }   /* title and domain carry it on a phone */
}

/* =========================================================
   MODAL
   ========================================================= */
.modal{
  position:fixed; inset:0; z-index:120;
  display:grid; place-items:center;
  padding:24px;
}
.modal[hidden]{ display:none; }

.modal__backdrop{
  position:absolute; inset:0;
  background:rgba(24,21,19,.46);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  animation:fade .28s var(--ease);
}
@keyframes fade{ from{ opacity:0; } }

.modal__panel{
  position:relative;
  width:100%; max-width:600px;
  max-height:calc(100vh - 48px);
  overflow-y:auto;
  background:#ffffff;
  border:1px solid var(--line-2);
  border-radius:18px;
  animation:pop .34s var(--ease);
}
@keyframes pop{ from{ opacity:0; transform:translateY(16px) scale(.985); } }

.modal__close{
  position:absolute; top:16px; right:16px; z-index:2;
  width:38px; height:38px;
  display:grid; place-items:center;
  background:rgba(20,18,16,.04);
  border:1px solid var(--line);
  border-radius:50%;
  color:var(--muted);
  cursor:pointer;
  transition:color .2s var(--ease), border-color .2s var(--ease);
}
.modal__close:hover{ color:var(--accent); border-color:var(--accent-line); }
.modal__close svg{ width:17px; height:17px; }

.modal__body{ padding:44px 44px 40px; }
.modal__body h2{ font-size:30px; margin-bottom:14px; }
.modal__lede{ color:var(--muted); font-size:15.5px; margin-bottom:30px; }

/* Who's on the other side of the form. Puts a face on it so it reads as
   Steven answering, not a generic contact form. */
.modal__who{
  display:flex;
  align-items:center;
  gap:14px;
  padding-bottom:20px;
  margin-bottom:22px;
  border-bottom:1px solid var(--line);
}
.modal__avatar{
  flex:0 0 58px;
  width:58px; height:58px;
  border-radius:50%;
  object-fit:cover;
  object-position:50% 16%;   /* frame the face, not the shoulders */
  background:#111;
  border:1px solid var(--line);
}
.modal__name{
  margin:0;
  font-family:var(--serif);
  font-size:17px;
  font-weight:600;
  line-height:1.2;
  color:var(--text);
}
.modal__role{
  margin:3px 0 0;
  font-size:11.5px;
  font-weight:500;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted-2);
}

/* Two-step marker in the inquiry modal. */
.modal__step{
  margin:0 0 8px;
  font-size:11.5px;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--muted-2);
}
.modal__success .modal__step{ margin-top:4px; }
.modal__success .btn--block + .modal__fineprint{ margin-top:12px; }
.modal__success .btn--ghost{ margin-top:14px; }
.modal__success .modal__fineprint a{ color:var(--accent-hi); }

/* ---------- Form ---------- */
.field{ margin-bottom:20px; }
.field label{
  display:block;
  font-size:13.5px;
  font-weight:500;
  letter-spacing:.02em;
  color:#3f3a35;
  margin-bottom:8px;
}
.field label span{ color:var(--accent); }

.field input,
.field select,
.field textarea{
  width:100%;
  background:#ffffff;
  border:1px solid var(--line-2);
  border-radius:10px;
  color:var(--text);
  font-family:var(--sans);
  font-size:15.5px;
  font-weight:300;
  line-height:1.6;
  padding:14px 16px;
  transition:border-color .2s var(--ease), background .2s var(--ease);
  -webkit-appearance:none;
  appearance:none;
}
.field textarea{ resize:vertical; min-height:96px; }

.field select{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a02e44' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 15px center;
  background-size:16px;
  padding-right:44px;
  cursor:pointer;
}
.field select option{ background:#ffffff; color:var(--text); }

.field input::placeholder,
.field textarea::placeholder{ color:#aaa39c; }

.field input:focus,
.field select:focus,
.field textarea:focus{
  outline:none;
  border-color:var(--accent);
  background:#ffffff;
}

.field.is-invalid input,
.field.is-invalid textarea{ border-color:#c0392b; }

.field__err{
  margin:7px 0 0;
  font-size:12.5px;
  color:#c0392b;
  min-height:0;
}

.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

#submitBtn{ margin-top:8px; }
#submitBtn[disabled]{ opacity:.6; cursor:progress; }

.modal__fineprint{
  margin:18px 0 0;
  font-size:12.5px;
  color:var(--muted-2);
  text-align:center;
  line-height:1.6;
}

/* ---------- Success ---------- */
.modal__success{ text-align:center; padding:20px 0 8px; }
.modal__success[hidden]{ display:none; }
.modal__check{
  width:64px; height:64px;
  margin:0 auto 24px;
  display:grid; place-items:center;
  border-radius:50%;
  background:var(--accent-dim);
  border:1px solid var(--accent-line);
  color:var(--accent);
}
.modal__check svg{ width:28px; height:28px; }
.modal__success h3{ font-size:26px; margin-bottom:12px; }
.modal__success p{ color:var(--muted); font-size:15.5px; margin-bottom:28px; }

body.modal-open{ overflow:hidden; }

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

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:1080px){
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .steps{ grid-template-columns:repeat(2,1fr); }
  .step:nth-child(2){ border-right:0; }
  .step:nth-child(-n+2){ border-bottom:1px solid var(--line); }
  .about{ grid-template-columns:340px 1fr; gap:48px; }
}

@media (max-width:900px){
  .cards{ grid-template-columns:1fr; }
  .nav__links{ display:none; }
  .nav__toggle{ display:grid; }
  .nav .btn--sm{ display:none; }

  .nav__links.is-open{
    display:flex;
    flex-direction:column;
    gap:0;
    position:absolute;
    top:78px; left:0; right:0;
    background:rgba(255,255,255,.98);
    border-bottom:1px solid var(--line);
    padding:8px 28px 20px;
  }
  .nav__links.is-open a{ padding:15px 0; border-bottom:1px solid var(--line); font-size:16px; }
  .nav__links.is-open a:last-child{ border-bottom:0; }

  .stats__grid{ grid-template-columns:1fr 1fr; }
  .stat{ padding:30px 20px; }
  .stat:nth-child(2){ border-right:0; }
  .stat:nth-child(-n+2){ border-bottom:1px solid var(--line); }

  .hero{ padding:130px 0 76px; }
  .hero__inner{ grid-template-columns:1fr; gap:44px; }
  .hero__portrait{ order:-1; max-width:330px; }
  .hero__portrait img{ aspect-ratio:1/1; object-position:50% 18%; border-radius:var(--r); }
  .hero__title{ font-size:clamp(40px,10vw,60px); }

  .section{ padding:80px 0; }
  .format{ grid-template-columns:1fr; }
  .quotes{ grid-template-columns:1fr; }

  .callout{ flex-direction:column; align-items:flex-start; gap:26px; padding:34px 30px; }

  .about{ grid-template-columns:1fr; gap:40px; }
  .about__media{ position:static; max-width:330px; }

  .footer__inner{ flex-direction:column; align-items:flex-start; gap:28px; }
  .footer__meta{ text-align:left; }
}

@media (max-width:620px){
  body{ font-size:16px; }
  .grid-4{ grid-template-columns:1fr; }
  .work-detail{ padding:24px 24px 24px 22px; }
  .card{ padding:34px 26px 30px; }
  .wrap{ padding:0 20px; }
  .intro__stage{ padding:0 14px; }

  .steps{ grid-template-columns:1fr; }
  .step{ border-right:0; border-bottom:1px solid var(--line); }
  .step:last-child{ border-bottom:0; }

  .card{ padding:34px 26px 30px; }
  .format__item{ padding:30px 26px; }
  .quote{ padding:36px 28px 30px; }

  .hero__actions .btn{ width:100%; }

  .modal{ padding:0; place-items:end center; }
  .modal__panel{
    max-width:100%;
    max-height:94vh;
    border-radius:18px 18px 0 0;
    border-bottom:0;
  }
  .modal__body{ padding:38px 24px 32px; }
  .modal__body h2{ font-size:25px; }
  .modal__close{ width:44px; height:44px; }

  /* iOS Safari zooms the whole page when a focused input is under 16px.
     Bumping to 16px keeps the form from yanking the layout around. */
  .field input,
  .field select,
  .field textarea{ font-size:16px; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation-duration:.01ms !important;
    transition-duration:.01ms !important;
  }
  .reveal{ opacity:1; transform:none; }
}

/* =========================================================
   INTRO — handwriting animation on first open
   Hidden by default; JS adds .is-active. If JS never runs
   (or is disabled) the overlay simply never appears.
   ========================================================= */
.intro{
  position:fixed; inset:0; z-index:300;
  background:var(--bg);
  display:none;
  place-items:center;
  opacity:1;
  transition:opacity .55s var(--ease);
}
.intro.is-active,
html.intro-pending .intro{ display:grid; }
.intro.is-done{ opacity:0; pointer-events:none; }

/* scroll is locked from before first paint until the intro finishes */
html.intro-pending, html.intro-pending body{ overflow:hidden; }

.intro__stage{
  position:relative;
  padding:0 26px;
  text-align:center;
  /* the pen overhangs the text while writing */
  padding-bottom:20px;
}

.intro__line{
  margin:0;
  display:flex;
  justify-content:center;
}
.intro__line--role{ margin-top:2px; }

/* Real letterform outlines. Each glyph clips a thick stroke that travels
   its own outline, so ink fills in along the shape rather than behind a
   straight vertical wipe. */
.hw{
  display:block;
  height:auto;
  overflow:visible;
}
.hw .ink{
  fill:none;
  stroke-width:190;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.hw--name{ width:min(84vw, 780px); }
.hw--name .ink{ stroke:var(--text); }

.hw--role{ width:min(70vw, 580px); }
.hw--role .ink{ stroke:var(--accent); }

.intro__pen{
  position:absolute; top:0; left:0;
  width:64px; height:64px;
  opacity:0;
  pointer-events:none;
  will-change:transform;
  filter:drop-shadow(0 3px 9px rgba(20,18,16,.22));
}
.intro__pen-barrel{ fill:#2b2723; }
.intro__pen-neck{ fill:var(--accent); }
.intro__pen-nib{ fill:var(--accent-hi); }
.intro__pen-ink{ fill:#ffffff; }
.intro__pen.is-writing{ opacity:1; }

.intro__skip{
  position:absolute; bottom:34px; left:50%;
  transform:translateX(-50%);
  background:none; border:0;
  color:var(--muted-2);
  font-family:var(--sans);
  font-size:12.5px;
  letter-spacing:.16em;
  text-transform:uppercase;
  cursor:pointer;
  padding:15px 22px;              /* 44px touch target */
  opacity:0;
  animation:introSkipIn .4s var(--ease) 1.1s forwards;
  transition:color .2s var(--ease);
}
.intro__skip:hover{ color:var(--accent-hi); }
@keyframes introSkipIn{ to{ opacity:1; } }

/* lock scrolling while the intro plays */
body.intro-lock{ overflow:hidden; }

@media (max-width:620px){
  .intro__pen{ width:46px; height:46px; }
  .intro__skip{ bottom:26px; }
}

/* Anyone who asks for less motion never sees it — JS checks this too. */
@media (prefers-reduced-motion:reduce){
  .intro{ display:none !important; }
}

/* =========================================================
   BOOKS CAROUSEL
   Continuous right-to-left marquee. Two identical runs sit
   side by side and the track slides exactly one run width,
   so the reset is invisible.
   ========================================================= */
.books{
  padding:84px 0 88px;
  background:var(--bg-alt);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  overflow:hidden;
}

.books .section__lede{ margin-bottom:44px; }

/* Second carousel follows the About section, which is already tinted, so this
   one goes white to keep the bands alternating. */
.books--coached{ background:var(--bg); }

.books__viewport{
  position:relative;
  width:100%;
  /* fade the covers out at both edges instead of cutting them dead */
  -webkit-mask-image:linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
          mask-image:linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.books__track{
  display:flex;
  width:max-content;
  animation:booksScroll 62s linear infinite;
}
/* pause on hover, and on keyboard focus so tabbing doesn't chase a moving target */
.books__viewport:hover .books__track,
.books__track:focus-within{ animation-play-state:paused; }

.books__run{
  display:flex;
  gap:26px;
  padding-right:26px;
}

@keyframes booksScroll{
  from{ transform:translate3d(0,0,0); }
  to  { transform:translate3d(-50%,0,0); }   /* exactly one run */
}

.books__item{
  flex:0 0 auto;
  display:block;
  width:150px;
  border-radius:6px;
  overflow:hidden;
  background:var(--surface);
  box-shadow:0 2px 6px rgba(20,18,16,.10), 0 10px 24px rgba(20,18,16,.10);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.books__item img{
  width:100%; height:auto; display:block;
  aspect-ratio:333/500;
  object-fit:cover;
}
.books__item:hover,
.books__item:focus-visible{
  transform:translateY(-8px) scale(1.03);
  box-shadow:0 6px 14px rgba(20,18,16,.16), 0 18px 40px rgba(20,18,16,.18);
}

.books__note{
  margin:38px 0 0;
  font-size:12.5px;
  color:var(--muted-2);
}

@media (max-width:900px){
  .books{ padding:72px 0; }
  .books__item{ width:124px; }
  .books__run{ gap:18px; padding-right:18px; }
  .books__track{ animation-duration:48s; }
}
@media (max-width:620px){
  .books__item{ width:108px; }
}

/* No motion: stop the marquee and let people scroll the shelf by hand. */
@media (prefers-reduced-motion:reduce){
  .books__track{ animation:none; }
  .books__viewport{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    -webkit-mask-image:none; mask-image:none;
  }
  .books__run[aria-hidden="true"]{ display:none; }
}
