/* home-site.css - "The Space Between", as a real responsive website.
   Translates the canvas redesign (home-redesign.css) into a fluid, full-screen
   page: clamp-based type, breakpoints for desktop/laptop/tablet/phone, and the
   scroll motion (reveal-on-enter + subtle parallax) the reference site uses.
   Scoped under .site so it never collides with the canvas (.home2) version. */

/* ============================ ground & shell ============================ */
.site{
  position:relative;
  isolation:isolate;
  overflow-x:clip;
  color:var(--body);
  font-family:var(--sans);
  --band-light:#F6F2E9;        /* warm bone */
  --band-deep:#B2C0B6;         /* soft sage-teal - Michal's jacket */
  --pad:clamp(20px,5vw,72px);  /* fluid section gutter */
  --maxw:1200px;
  --rail-w:clamp(40px,5vw,56px);
  --rail-gap:clamp(20px,3.4vw,46px);
  /* soft watercolor wash - barely-there pigment pooling, multiplied into bands */
  --wc:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.008' numOctaves='4' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='0.3' intercept='0.8'/%3E%3CfeFuncG type='linear' slope='0.3' intercept='0.8'/%3E%3CfeFuncB type='linear' slope='0.3' intercept='0.8'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
  background:
    radial-gradient(78% 50% at 8% -4%, color-mix(in srgb, var(--ochre) 18%, transparent), transparent 60%),
    radial-gradient(70% 56% at 104% 4%, color-mix(in srgb, var(--ochre) 13%, transparent), transparent 55%),
    var(--band-light);
}
.site *{ box-sizing:border-box; }
/* fine paper grain over everything */
.site::before{
  content:''; position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity:.045; mix-blend-mode:multiply;
}
.site > *{ position:relative; z-index:1; }

.site .wrap{ max-width:var(--maxw); margin:0 auto; width:100%; }

/* ============================ navigation ============================ */
.site-nav{
  position:sticky; top:0; z-index:40;
  display:flex; align-items:center; justify-content:space-between;
  gap:18px; padding:14px var(--pad);
  background:color-mix(in srgb, var(--band-light) 82%, transparent);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--hair);
}
.site-brand{ display:flex; align-items:center; gap:11px; text-decoration:none; }
.site-brand img{ height:clamp(40px,5.4vw,62px); width:auto; display:block; }
.site-brand .wordmark{
  font-family:var(--serif); font-size:clamp(16px,2vw,21px); font-weight:600;
  color:var(--ink); letter-spacing:.01em; line-height:1; white-space:nowrap;
}
.site-brand .wordmark em{ font-weight:500; }
.site-links{ display:flex; align-items:center; gap:clamp(14px,2.2vw,30px); }
.site-links a{
  font-family:var(--sans); font-size:14px; font-weight:500; color:var(--ink);
  opacity:.62; text-decoration:none; letter-spacing:.01em; padding-bottom:4px;
  border-bottom:1px solid transparent; transition:opacity .2s, border-color .2s;
}
.site-links a:hover{ opacity:1; }
.site-links a.active{ opacity:1; font-weight:600; border-bottom-color:var(--ochre-line); }
.site-lang{
  display:inline-flex; gap:6px; align-items:center; font-family:var(--sans);
  font-size:12.5px; font-weight:600; color:var(--muted);
  border:1px solid var(--hair); border-radius:2px; padding:5px 10px;
}
.site-lang .on{ color:var(--ink); }
.nav-toggle{ display:none; }

/* ============================ section frame ============================ */
.section{ padding:clamp(56px,8vw,104px) var(--pad); position:relative; }
.section.band-deep{
  background-color:var(--band-deep);
  background-image:var(--wc); background-size:680px 680px; background-blend-mode:multiply;
  border-top:1px solid var(--hair); border-bottom:1px solid var(--hair);
}
.section.band-light{
  background-color:var(--band-light);
  background-image:var(--wc); background-size:680px 680px; background-blend-mode:multiply;
}

/* running spine: node + stem + vertical label, left of the content */
.spine{
  max-width:var(--maxw); margin:0 auto; width:100%;
  display:grid; grid-template-columns:var(--rail-w) 1fr; gap:var(--rail-gap); align-items:start;
}
.rail{ display:flex; flex-direction:column; align-items:center; gap:16px; padding-top:6px; }
.rail .node{ flex:none; }
.rail .stem{ width:1px; flex:1; min-height:150px;
  background:linear-gradient(var(--ochre-line), color-mix(in srgb, var(--ochre-line) 10%, transparent)); }
.rail .rail-label{
  writing-mode:vertical-rl; letter-spacing:.3em; text-transform:uppercase;
  font-family:var(--sans); font-weight:600; font-size:12.5px; white-space:nowrap; color:var(--muted);
}
.band-deep .rail .rail-label{ color:#455349; letter-spacing:.32em; }

/* ============================ hero ============================ */
.hero{
  padding:clamp(28px,4vw,52px) var(--pad) clamp(48px,7vw,76px);
  display:grid; grid-template-columns:minmax(120px,0.82fr) minmax(0,600px) minmax(120px,0.94fr);
  align-items:center; justify-items:center; column-gap:clamp(8px,1.6vw,18px);
  max-width:1320px; margin:0 auto; text-align:center; min-height:min(76vh,640px);
}
.hero-side{ width:100%; display:flex; }
.hero-side.l{ justify-content:flex-end; }
.hero-side.r{ justify-content:flex-start; }
.hero-side img{ height:auto; display:block; mix-blend-mode:multiply; width:clamp(170px,24vw,310px); }
.hero-side.r img{ width:clamp(190px,26vw,338px); }
.hero-copy{ position:relative; z-index:2; max-width:600px; }
.hero-lead{
  display:block; font-family:var(--serif); font-weight:600; color:var(--ink);
  font-size:clamp(29px,3.4vw,44px); line-height:1.06; letter-spacing:-.014em; margin-bottom:14px;
}
.hero-sub{
  display:block; font-family:var(--serif); font-style:italic; color:var(--ink-2);
  font-size:clamp(18px,2.1vw,26px); line-height:1.3; letter-spacing:.004em; opacity:.85;
}
.hero-pay{
  display:block; font-family:var(--serif); font-style:italic; font-weight:600; color:var(--ink);
  font-size:clamp(31px,4.6vw,54px); line-height:1.06; letter-spacing:-.018em; margin-top:clamp(20px,2.6vw,30px);
}
.hero-cta{
  display:flex; align-items:center; justify-content:center; flex-wrap:wrap;
  gap:clamp(16px,2.4vw,24px); margin-top:clamp(38px,4.4vw,56px);
}

/* ============================ typographic blocks ============================ */
.statement{
  font-family:var(--serif); color:var(--ink); font-weight:500;
  font-size:clamp(28px,4.4vw,42px); line-height:1.18; letter-spacing:-.005em;
  margin:0 0 28px; max-width:none;
}
.lead-line{
  font-family:var(--serif); font-style:italic; font-weight:500; color:var(--ink-2);
  font-size:clamp(22px,3.2vw,30px); line-height:1.36; margin:0 0 26px;
}
.prose{ max-width:820px; display:flex; flex-direction:column; gap:22px; }
.prose p{
  font-family:var(--sans); font-size:clamp(16px,1.5vw,20px); line-height:1.72; color:var(--ink-2);
}
.prose p.muted{ color:var(--body); }

.section-title{
  font-family:var(--serif); color:var(--ink); font-weight:500;
  font-size:clamp(28px,4.6vw,46px); line-height:1.12; margin:0 0 clamp(34px,4.4vw,50px);
}
.lens .section-title{ white-space:nowrap; font-size:clamp(22px,3.6vw,39px); }

/* numbered columns (lens + practices) */
.cols{ display:grid; gap:0; }
.cols.three{ grid-template-columns:repeat(3,1fr); }
.col{ padding:0 clamp(20px,2.6vw,44px); }
.col:first-child{ padding-left:0; }
.col:last-child{ padding-right:0; }
.col + .col{ border-left:1px solid var(--hair); }
.col .num{
  font-family:var(--serif); font-weight:500; font-size:clamp(38px,5vw,46px);
  line-height:1; margin-bottom:16px; color:var(--ochre);
}
.lens .col .num{ color:var(--band-deep); }
.band-deep .col .num{ color:var(--band-light); }
.col h3{ font-family:var(--serif); font-weight:500; color:var(--ink);
  font-size:clamp(22px,2.6vw,28px); line-height:1.12; margin:0 0 14px; }
.col .desc{ font-family:var(--sans); font-size:clamp(15px,1.3vw,17px); line-height:1.68; color:var(--body); }
.band-deep .col .desc{ color:var(--ink-2); }
.col .intro{
  font-family:var(--sans); font-weight:600; font-size:13px; letter-spacing:.04em;
  text-transform:uppercase; line-height:1.4; margin:0 0 18px; color:var(--band-light);
}
.col ol{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:16px; }
.col ol li{ display:grid; grid-template-columns:32px 1fr; gap:14px; align-items:start; }
.col ol li .txt{ font-family:var(--sans); font-size:clamp(15px,1.3vw,16px); line-height:1.62; color:var(--ink-2); padding-top:4px; }

/* node-ring list marker */
.marknum{ position:relative; width:32px; height:32px; flex:none; display:inline-flex; align-items:center; justify-content:center; }
.marknum svg{ position:absolute; inset:0; }
.marknum .n{ position:relative; font-family:var(--serif); font-style:italic; font-size:15px; line-height:1; color:var(--ink); }

/* divider (line·dot·line) */
.divider{ display:flex; align-items:center; gap:9px; }
.divider span.l{ height:1px; background:var(--ochre-line); opacity:.75; }
.divider span.d{ width:4px; height:4px; border-radius:50%; background:var(--ochre-line); }
.band-deep .divider span.l{ background:var(--band-light); }
.band-deep .divider span.d{ background:var(--band-light); }

/* ============================ about ============================ */
.about-inner{ display:grid; grid-template-columns:.74fr 1.26fr; gap:clamp(28px,4vw,54px); align-items:center; }
.about-portrait{ justify-self:center; max-width:340px; width:100%; }
.about-portrait img{ width:100%; height:auto; display:block; mix-blend-mode:multiply; }
.about-copy h2{ font-family:var(--serif); font-weight:500; color:var(--ink);
  font-size:clamp(28px,3.8vw,42px); line-height:1.12; margin:0 0 22px; }
.about-copy .lead{ font-family:var(--sans); font-size:clamp(16px,1.4vw,19px); line-height:1.66;
  color:var(--ink-2); max-width:560px; margin:0 0 26px; }

/* ============================ closing CTA ============================ */
.cta-band{ text-align:center; }
.cta-band .inner{ max-width:880px; margin:0 auto; display:flex; flex-direction:column; align-items:center; }
.cta-band h2{ font-family:var(--serif); font-weight:500; color:var(--ink);
  font-size:clamp(28px,4.4vw,46px); line-height:1.14; margin:26px 0 30px; max-width:18em; }
.cta-band .hero-cta{ margin-top:0; }

/* ============================ footer ============================ */
.site-foot{ background:var(--paper-2); border-top:1px solid var(--hair); }
.site-foot .inner{
  max-width:var(--maxw); margin:0 auto; padding:40px var(--pad);
  display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap;
}
.site-foot .fb{ display:flex; align-items:center; gap:11px; }
.site-foot .fb img{ height:42px; width:auto; }
.site-foot .fb span{ font-family:var(--serif); font-size:17px; font-weight:600; color:var(--ink); }
.site-foot .fb em{ font-weight:500; }
.site-foot .email{ font-family:var(--sans); font-size:13.5px; color:var(--muted); text-decoration:none; }
.site-foot .email:hover{ color:var(--ink); }

/* ============================ buttons / links ============================ */
.site .btn{
  display:inline-flex; align-items:center; gap:.5em; font-family:var(--sans); font-weight:600;
  font-size:.92rem; letter-spacing:.012em; white-space:nowrap; cursor:pointer; text-decoration:none;
  padding:.96em 1.75em; border-radius:8px; border:1px solid transparent;
  transition:background .22s, color .22s, border-color .22s, transform .22s, box-shadow .22s;
}
.site .btn-primary{ background:var(--ink); color:var(--band-light); box-shadow:0 8px 22px rgba(35,54,74,.16); }
.site .btn-primary:hover{ background:#16263a; transform:translateY(-2px); box-shadow:0 12px 30px rgba(35,54,74,.24); }
.site .btn-ghost{ background:transparent; color:var(--ink); border-color:var(--hair); }
.site .btn-ghost:hover{ border-color:var(--ink); background:rgba(35,54,74,.045); transform:translateY(-2px); }
.band-deep .btn-ghost{ border-color:rgba(35,54,74,.28); }
.link-cta{
  font-family:var(--sans); font-weight:600; font-size:.92rem; color:var(--ink); text-decoration:none;
  display:inline-flex; align-items:center; gap:.5em; border-bottom:1px solid var(--ochre-line);
  padding-bottom:3px; transition:gap .2s, border-color .2s;
}
.link-cta:hover{ gap:.8em; border-color:var(--ink); }

/* keep key phrases unbroken; balance headline lines */
.site h1,.site h2,.site h3,.site .statement,.site .lead-line,.site .hero-pay{ text-wrap:balance; }
.site .keep{ white-space:nowrap; }

/* ============================ MOTION: scroll-linked rise + parallax ============================
   Each block "lifts" into place as you scroll - its opacity & Y are a function
   of its position in the viewport, driven by scroll POSITION (not a timer).
   So it never stalls, and it degrades to fully-visible with no JS or with
   reduced-motion. JS writes inline opacity/transform each frame. */
.site.motion [data-reveal]{ opacity:0; }   /* pre-paint guard; JS sets the real value on load */
.site.motion [data-reveal],
.site.motion [data-parallax]{ will-change:transform, opacity; }

@media (prefers-reduced-motion: reduce){
  .site [data-reveal]{ opacity:1 !important; transform:none !important; }
  [data-parallax]{ transform:none !important; }
}

/* ============================ BREAKPOINTS ============================ */

/* laptop - ease the locked lens line */
@media (max-width:1180px){
  .lens .section-title{ white-space:normal; }
}

/* ≤1024 - the triptych needs width; below this the hero stacks: headline
   centred at full width, the two watercolors as a framing row beneath */
@media (max-width:1024px){
  .hero{ grid-template-columns:1fr; grid-template-areas:"copy" "art"; min-height:0; row-gap:clamp(16px,3vw,30px); padding-bottom:clamp(40px,6vw,64px); }
  .hero-copy{ grid-area:copy; max-width:680px; }
  .hero-side{ display:none; }
  .hero-art-row{ grid-area:art; display:flex; justify-content:center; align-items:flex-end; gap:clamp(16px,4vw,46px); width:100%; }
  .hero-art-row img{ width:clamp(150px,30vw,260px); height:auto; mix-blend-mode:multiply; }
}

/* mid widths - the brand wordmark + 5 links + lang get crowded; keep the
   logo mark, drop the wordmark text so nav never collides */
@media (max-width:1040px){
  .site-brand .wordmark{ display:none; }
}

/* tablet - collapse 3-col grids to 2, shrink hero flanks */
@media (max-width:920px){
  .cols.three{ grid-template-columns:1fr 1fr; }
  .col{ padding:0 clamp(16px,2.4vw,28px); }
  .col:nth-child(3){ grid-column:1 / -1; padding:28px 0 0; margin-top:28px; border-left:0; border-top:1px solid var(--hair); }
  .col:nth-child(2){ border-left:1px solid var(--hair); }
}

/* phone - single column everywhere; hero stacks; spine goes horizontal */
@media (max-width:680px){
  .site-links{ display:none; }
  .site-links.open{
    display:flex; position:absolute; top:100%; left:0; right:0; flex-direction:column; align-items:flex-start;
    gap:4px; padding:14px var(--pad) 20px; background:var(--band-light); border-bottom:1px solid var(--hair);
  }
  .site-links a{ opacity:.82; font-size:16px; padding:8px 0; }
  .nav-toggle{
    display:inline-flex; flex-direction:column; gap:4px; width:34px; height:30px; padding:6px 4px;
    background:none; border:0; cursor:pointer; align-items:center; justify-content:center;
  }
  .nav-toggle span{ display:block; width:22px; height:1.5px; background:var(--ink); transition:.25s; }
  .nav-toggle.open span:nth-child(1){ transform:translateY(5.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2){ opacity:0; }
  .nav-toggle.open span:nth-child(3){ transform:translateY(-5.5px) rotate(-45deg); }

  /* spine becomes a horizontal marker above the content */
  .spine{ grid-template-columns:1fr; gap:22px; }
  .rail{ flex-direction:row; align-items:center; gap:12px; padding-top:0; }
  .rail .stem{ width:auto; height:1px; min-height:0; flex:1; max-width:120px;
    background:linear-gradient(90deg, var(--ochre-line), color-mix(in srgb, var(--ochre-line) 10%, transparent)); }
  .rail .rail-label{ writing-mode:horizontal-tb; }
  .rail .node svg{ width:38px !important; height:38px !important; }

  .cols.three{ grid-template-columns:1fr; }
  .col,.col:nth-child(2),.col:nth-child(3){ padding:26px 0 0; margin-top:26px; border-left:0; border-top:1px solid var(--hair); }
  .col:first-child{ padding-top:0; margin-top:0; border-top:0; }

  .about-inner{ grid-template-columns:1fr; gap:26px; }
  .about-portrait{ max-width:260px; }
  .site-foot .inner{ flex-direction:column; align-items:flex-start; gap:14px; }
}

/* hide the desktop hero flanks' row on wide screens (only used on phone) */
.hero-art-row{ display:none; }
