/* ============================================================
   THE ROWAN STUDIO
   Design language inherited from the studio's first app,
   Four Thousand Weeks: warm paper, near-black ink, one vivid
   blue accent, New York serif. The signature element is a
   quiet field of breathing circles — the memento mori grid,
   alive behind the hero.
   ============================================================ */
:root {
  --paper: #FBFAF6;
  --paper-2: #F5F1E7;
  --paper-3: #F0EBDE;
  --ink: #1C1B18;
  --faded: #C9C3B6;
  --whisper: #8A8478;
  --hairline: #E6E2D8;
  --blue: #0000FF;
  --serif: "New York", ui-serif, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --breath: 8s;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161513; --paper-2: #1B1A16; --paper-3: #201E19;
    --ink: #E9E5DB; --faded: #44403A; --hairline: #2B2824;
  }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  line-height: 1.5;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* labels: the engraved voice */
.label {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--whisper);
}

/* ---------- nav ---------- */
nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 19px; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.brand-mark { width: 24px; height: 24px; flex: none; }
.brand-mark .drop { fill: var(--blue); }
.brand-mark .ring { fill: none; stroke: var(--blue); }
/* a water droplet striking still water: the center drop holds,
   rings expand outward and fade, staggered like real ripples */
.brand-mark .r1 { animation: rippleOut 3.6s ease-out infinite; }
.brand-mark .r2 { animation: rippleOut 3.6s ease-out infinite 1.2s; }
.brand-mark .r3 { animation: rippleOut 3.6s ease-out infinite 2.4s; }
@keyframes rippleOut {
  0%   { stroke-width: 2.4; opacity: 0.9; transform: scale(0.18); }
  100% { stroke-width: 0.6; opacity: 0;   transform: scale(1); }
}
.brand-mark .r1, .brand-mark .r2, .brand-mark .r3 { transform-origin: center; transform-box: fill-box; }
.brand-mark .drop { animation: dropPulse 3.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes dropPulse {
  0%, 100% { transform: scale(1); }
  8%       { transform: scale(0.7); }
  20%      { transform: scale(1); }
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-family: var(--sans); font-size: 14px; color: var(--ink); text-decoration: none; opacity: 0.75; transition: opacity 0.3s; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  font-family: var(--sans); font-size: 14px; text-decoration: none;
  color: var(--paper) !important; background: var(--ink);
  padding: 9px 18px; border-radius: 100px; opacity: 1 !important;
  transition: background 0.3s;
}
.nav-cta:hover { background: var(--blue); color: #fff !important; }
@media (max-width: 640px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--hairline); }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.28; }
/* a soft paper scrim guarantees text contrast over the decorative
   field regardless of where a dot falls — the field is decorative
   (WCAG: not informational), the scrim keeps headline contrast safe */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, var(--paper) 30%, color-mix(in srgb, var(--paper) 55%, transparent) 70%);
}
.hero-inner {
  position: relative; z-index: 2;
  padding: 120px 0 130px; max-width: 760px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 76px); font-weight: 400;
  line-height: 1.04; letter-spacing: -0.02em; margin: 22px 0 0;
}
.hero h1 em { font-style: italic; }
.hero .blue { color: var(--blue); }
.hero-sub {
  font-size: clamp(18px, 2.4vw, 22px); color: var(--whisper);
  margin-top: 26px; max-width: 540px; line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; align-items: center; }
.btn {
  font-family: var(--sans); font-size: 15px; text-decoration: none;
  padding: 14px 26px; border-radius: 100px; transition: all 0.3s; display: inline-block;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }
.btn-text { color: var(--ink); border-bottom: 1px solid var(--hairline); border-radius: 0; padding: 4px 0; }
.btn-text:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- section frame ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(28px, 4.2vw, 42px); font-weight: 400;
  line-height: 1.18; letter-spacing: -0.01em; margin-top: 16px;
}
.section-head p { color: var(--whisper); font-size: 18px; margin-top: 18px; line-height: 1.6; max-width: 560px; }

.alt { background: var(--paper-2); }
.ink-section { background: var(--ink); color: var(--paper); }
.ink-section .label { color: var(--faded); }
.ink-section .section-head p { color: var(--faded); }

/* ---------- belief / problem ---------- */
.belief { text-align: center; }
.belief .big {
  font-size: clamp(26px, 4vw, 40px); font-weight: 400; line-height: 1.3;
  max-width: 780px; margin: 20px auto 0; letter-spacing: -0.01em;
}
.belief .big .blue { color: var(--blue); }

/* ---------- three columns ---------- */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; gap: 44px; } }
.col-mark {
  font-family: var(--serif); font-size: 22px; font-variant-numeric: oldstyle-nums;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid currentColor; display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; color: var(--blue);
}
.col h3 { font-size: 22px; font-weight: 400; margin-bottom: 10px; }
.col p { color: var(--whisper); font-size: 16px; line-height: 1.6; }
.ink-section .col p { color: var(--faded); }

/* ---------- work: three product cards, side by side ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .product-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.pcard {
  display: flex; flex-direction: column;
  border: 1px solid var(--hairline); border-radius: 20px; overflow: hidden;
  background: var(--paper); transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(28,27,24,0.08); border-color: var(--faded); }
.pcard-art {
  aspect-ratio: 5 / 4; background: var(--paper-3);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--hairline);
}
.pcard-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.pcard-status { font-size: 11px; }
.pcard h3 { font-size: 23px; font-weight: 400; margin: 12px 0 0; letter-spacing: -0.01em; }
.pcard p { color: var(--whisper); font-size: 15px; line-height: 1.6; margin-top: 10px; flex: 1; }
.pcard .btn-text { margin-top: 20px; align-self: flex-start; font-family: var(--sans); font-size: 14px; }
/* third card, not yet built, reads as a held space */
.pcard.placeholder { border-style: dashed; background: transparent; }
.pcard.placeholder .pcard-art { background: transparent; }

/* the organic blob — irregular, wavy edge that wanders, like the
   ink-bleed orb in the app. shared by the logo and product art. */
@keyframes blobMorph {
  0%, 100% { border-radius: 58% 42% 55% 45% / 45% 58% 42% 55%; }
  33%      { border-radius: 45% 55% 42% 58% / 55% 45% 58% 42%; }
  66%      { border-radius: 52% 48% 60% 40% / 48% 60% 40% 56%; }
}
/* breathing blob art (4000 weeks): morphs AND breathes */
.weeks-orb {
  width: 64px; height: 64px;
  background: radial-gradient(circle at 40% 36%, #3a3aff, var(--blue) 74%);
  animation: blobMorph 14s ease-in-out infinite, breathe var(--breath) ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(0.6); opacity: 0.6; }
  25% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1); opacity: 1; }
  75% { transform: scale(0.6); opacity: 0.6; }
}
/* sit art: three concentric rings, thickest outer to thinnest inner.
   Each ring's STROKE WEIGHT swells and thins on a staggered clock —
   outer, then middle, then inner, then back out — so the weight
   change alone implies a pulse moving inward and rebounding. No dot. */
.sit-art { width: 64px; height: 64px; }
.sit-art svg { width: 100%; height: 100%; }
.sit-art circle { fill: none; stroke: var(--blue); }
.sit-art .s-outer { animation: weight1 6s ease-in-out infinite; }
.sit-art .s-mid   { animation: weight2 6s ease-in-out infinite; }
.sit-art .s-inner { animation: weight3 6s ease-in-out infinite; }
@keyframes weight1 {
  0%, 100% { stroke-width: 3;   opacity: 0.9; }
  20%      { stroke-width: 4.5; opacity: 1; }
  60%      { stroke-width: 1.4; opacity: 0.55; }
}
@keyframes weight2 {
  0%, 100% { stroke-width: 2;   opacity: 0.75; }
  40%      { stroke-width: 4;   opacity: 1; }
  85%      { stroke-width: 1.2; opacity: 0.5; }
}
@keyframes weight3 {
  0%, 100% { stroke-width: 1.2; opacity: 0.6; }
  20%      { stroke-width: 1;   opacity: 0.5; }
  60%      { stroke-width: 3.5; opacity: 1; }
}
/* coaching studio art: a small table with three seats. The seats
   stay white (whisper); one at a time turns blue as attention
   sweeps left → right → back, like a Newton's cradle. Centered
   and sized to match the other cards; reads at icon scale too. */
.table-art { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; }
.table-art svg { width: 100%; height: 100%; display: block; }
.table-art line { stroke: var(--whisper); stroke-width: 2; stroke-linecap: round; }
.table-art .seat { fill: none; stroke: var(--whisper); stroke-width: 2; }
.table-art .seat-1 { animation: litLeft  4.2s ease-in-out infinite; }
.table-art .seat-2 { animation: litMid   4.2s ease-in-out infinite; }
.table-art .seat-3 { animation: litRight 4.2s ease-in-out infinite; }
/* one loop = the blue lights L → M → R, then returns R → M → L.
   only the active seat is blue; the rest rest in white. */
@keyframes litLeft {
  0%, 4%   { stroke: var(--blue); }
  16%, 84% { stroke: var(--whisper); }
  96%, 100%{ stroke: var(--blue); }
}
@keyframes litMid {
  0%, 12%  { stroke: var(--whisper); }
  20%, 30% { stroke: var(--blue); }
  38%, 62% { stroke: var(--whisper); }
  70%, 80% { stroke: var(--blue); }
  88%, 100%{ stroke: var(--whisper); }
}
@keyframes litRight {
  0%, 38%  { stroke: var(--whisper); }
  46%, 54% { stroke: var(--blue); }
  62%, 100%{ stroke: var(--whisper); }
}

/* ---------- principles ---------- */
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 40px; }
@media (max-width: 760px) { .principles-grid { grid-template-columns: 1fr; } }
.principle h3 { font-size: 20px; font-weight: 400; margin-bottom: 8px; }
.principle .pnum { font-variant-numeric: oldstyle-nums; color: var(--blue); font-size: 15px; }
.principle p { color: var(--faded); font-size: 15px; line-height: 1.6; margin-top: 6px; }

/* ---------- quote ---------- */
.quote { text-align: center; }
.quote blockquote {
  font-size: clamp(24px, 3.6vw, 36px); font-style: italic; font-weight: 400;
  line-height: 1.4; max-width: 760px; margin: 0 auto; letter-spacing: -0.01em;
}
.quote cite { display: block; margin-top: 26px; font-style: normal; }

/* ---------- closing cta ---------- */
.closing { text-align: center; }
.closing h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }
.closing p { color: var(--whisper); font-size: 19px; margin: 20px auto 36px; max-width: 480px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--hairline); padding: 48px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { font-family: var(--sans); font-size: 14px; color: var(--ink); text-decoration: none; opacity: 0.7; }
.footer-links a:hover { opacity: 1; }
.footer-fine { font-family: var(--sans); font-size: 13px; color: var(--whisper); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .weeks-orb,
  .table-art .seat-1, .table-art .seat-2, .table-art .seat-3,
  .sit-art .s-outer, .sit-art .s-mid, .sit-art .s-inner,
  .brand-mark .r1, .brand-mark .r2, .brand-mark .r3, .brand-mark .drop { animation: none; }
  .sit-art .s-outer { stroke-width: 3; }
  .sit-art .s-mid { stroke-width: 2; }
  .sit-art .s-inner { stroke-width: 1.2; }
  .table-art .seat { stroke: var(--whisper); }
  .table-art .seat-2 { stroke: var(--blue); }
  .brand-mark .r2, .brand-mark .r3 { display: none; }
  .brand-mark .r1 { opacity: 0.5; transform: scale(0.7); }
  .weeks-orb { transform: scale(0.9); }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ============================================================
   ADDED SECTIONS — about, journal (Substack feed), contact form
   ============================================================ */

/* scroll offset so anchored sections clear the sticky nav */
html { scroll-padding-top: 88px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; gap: 32px; max-width: 460px; margin: 0 auto; } }
.about-portrait {
  aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden;
  background: var(--paper-3); border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.about-portrait img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(100%) contrast(1.02);
  transition: filter 0.7s ease;
}
.about-portrait:hover img { filter: grayscale(0%) contrast(1); }
.about-portrait .placeholder { font-family: var(--sans); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faded); text-align: center; padding: 0 20px; }
.about-body h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; margin: 14px 0 0; }
.about-body p { color: var(--whisper); font-size: 18px; line-height: 1.7; margin-top: 20px; max-width: 520px; }
.about-body .signature { margin-top: 22px; font-style: italic; font-size: 17px; color: var(--ink); }

/* ---------- journal (latest from Substack) ---------- */
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .journal-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.jcard {
  display: flex; flex-direction: column;
  border: 1px solid var(--hairline); border-radius: 16px; padding: 26px 24px;
  text-decoration: none; color: inherit; background: var(--paper);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  min-height: 200px;
}
.jcard:hover { transform: translateY(-3px); border-color: var(--faded); box-shadow: 0 14px 40px rgba(28,27,24,0.07); }
.jcard .jdate { font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--whisper); }
.jcard h3 { font-size: 21px; font-weight: 400; line-height: 1.3; margin: 14px 0 0; letter-spacing: -0.01em; }
.jcard p { color: var(--whisper); font-size: 15px; line-height: 1.6; margin-top: 12px; flex: 1; }
.jcard .jread { font-family: var(--sans); font-size: 13px; color: var(--blue); margin-top: 18px; }
.journal-foot { text-align: center; margin-top: 40px; }
.journal-empty { text-align: center; color: var(--whisper); font-style: italic; padding: 30px 0; }

/* ---------- newsletter / value-exchange capture ---------- */
.capture { text-align: center; }
.capture h2 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
.capture .capture-sub { color: var(--whisper); font-size: 19px; margin: 18px auto 0; max-width: 480px; line-height: 1.6; }
.capture-form { display: flex; gap: 12px; max-width: 460px; margin: 38px auto 0; }
@media (max-width: 520px) { .capture-form { flex-direction: column; } }
.capture-form input {
  flex: 1; font-family: var(--serif); font-size: 17px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--hairline); border-radius: 100px;
  padding: 14px 22px; outline: none; transition: border-color 0.3s;
}
.capture-form input::placeholder { color: var(--faded); }
.capture-form input:focus { border-color: var(--blue); }
.capture-note { font-family: var(--sans); font-size: 13px; color: var(--whisper); margin-top: 18px; }
.form-feedback { font-family: var(--sans); font-size: 14px; margin-top: 18px; min-height: 20px; }
.form-feedback.ok { color: var(--blue); }
.form-feedback.err { color: #c0563c; }

/* full contact form (footer area) */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
.form { display: flex; flex-direction: column; gap: 16px; }
.form .field label { display: block; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--whisper); margin-bottom: 8px; }
.form .field input, .form .field textarea {
  width: 100%; font-family: var(--serif); font-size: 16px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--hairline); border-radius: 12px;
  padding: 12px 16px; outline: none; transition: border-color 0.3s;
}
.form .field input:focus, .form .field textarea:focus { border-color: var(--blue); }
.form .field textarea { resize: vertical; min-height: 110px; }
.contact-intro h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; }
.contact-intro p { color: var(--whisper); font-size: 17px; line-height: 1.65; margin-top: 16px; max-width: 380px; }
.contact-intro .contact-alt { margin-top: 24px; font-size: 16px; }
.contact-intro .contact-alt a { color: var(--blue); text-decoration: none; }
.contact-intro .contact-alt a:hover { text-decoration: underline; }

/* nav id hook + solid state on scroll */
nav#nav { transition: background 0.4s ease, border-color 0.4s ease; }
nav#nav.solid { background: color-mix(in srgb, var(--paper) 94%, transparent); }
