/* Jascovski Environments website v9: the page layer.
   tokens.css and components.css are copies from brand-system/project (brand system v2).
   This file adds page layout and a few local fixes, using tokens only. Sizes from 16px up, splits and frames
   follow the BG Modular series and its Lambdoma ratios (brand-system/BG_PRINCIPLES.md). */

:root { --gutter: clamp(16px, 6vw, 96px); --section-y: clamp(68px, 10vw, 136px); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; }
img { max-width: 100%; }
[data-view][hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-height) + 8px); }
.je-root ::selection { background: var(--stone); color: var(--ink); }
.site-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Brand floor: nothing below 11px (components.css still has a few 10 and 10.5px labels) */
.je-status, .je-offer__kicker, .je-fieldnote__meta, .je-fieldnote__focus b, .je-figure__tag, .je-motif__note { font-size: 11px; }

/* Skip link */
.site-skip { position: absolute; left: 16px; top: -120px; z-index: 30; padding: 14px 18px; background: var(--action); color: var(--on-action); font: 700 11px/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.site-skip:focus { top: 12px; }
/* After a view switch the page heading takes focus, so screen readers announce the new page.
   It is not a control, so it shows no focus ring. */
.je-display[tabindex="-1"]:focus { outline: none; }

/* Layout */
.site-section { padding: var(--section-y) var(--gutter); }
.site-wrap { max-width: var(--content-width); margin: 0 auto; }
.bg-paper { background: var(--paper); }
.bg-ivory { background: var(--ivory); }
.bg-mist { background: var(--mist); }
.site-ruled { border-block: 1px solid var(--line); }
.site-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 120px); align-items: center; }
.site-split--start { align-items: start; }
.site-split--lean { grid-template-columns: minmax(0, 54fr) minmax(0, 72fr); }
.site-more { margin: var(--space-8) 0 0; }
.site-gap { margin-top: var(--space-16); }
.site-caption { max-width: 900px; margin: var(--space-8) 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.je-text strong { color: var(--ink); font-weight: 700; }
.je-title { max-width: 760px; }
@media (max-width: 820px) {
  .site-split, .site-split--lean { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); }
  .je-intro--split { grid-template-columns: minmax(0, 1fr); }
  .je-intro--split .je-text { justify-self: start; }
  .site-split--start { gap: var(--space-2); }
  #questions .site-split { gap: var(--space-12); }
}

/* Header: wordmark, six destinations, one pill; the nav folds behind "Menu" below 1100px */
.je-header .je-wordmark img, .je-footer .je-wordmark img { display: block; width: 100%; height: auto; }
.je-header .je-wordmark { padding: 4px 0; }
.site-header-end { display: flex; align-items: center; gap: var(--space-4); }
.je-menu-btn { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); color: var(--ink); font: 700 11px/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; }
.je-nav .site-nav-cta { display: none; }
@media (max-width: 1100px) {
  .je-menu-btn { display: inline-flex; align-items: center; }
  .je-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-2) var(--gutter) var(--space-6); background: var(--paper); border-bottom: 1px solid var(--line); }
  .je-nav.is-open { display: flex; }
  .je-nav a { padding: 18px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .site-header-cta { display: none; }
  .je-nav .site-nav-cta { display: block; }
  .je-header .je-wordmark { width: 150px; }
}

/* The olive-room, living-room and workspace concept files carry pale bands of 5 to 28 rows at their
   edges; a centred 8% scale inside each overflow-hidden frame crops them. Drop it with better files. */
.site-trim { transform: scale(1.08); }

/* Concept-image tag on a full-bleed photograph */
.site-photo-tag { position: absolute; top: 16px; left: 16px; z-index: 2; margin: 0; padding: 6px 10px; background: var(--paper); color: var(--ink); font: 700 11px/1.4 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; }

/* Home hero */
/* Caption at 28px (large text) over two layers of photo-veil: measured 3.5:1 or better on the
   brightest pixel behind it at 390, 820, 1024 and 1440px. Re-measure if the photograph changes. */
.je-hero__caption { font-size: 28px; }
.je-hero__media::after { background: linear-gradient(0deg, var(--photo-veil), var(--photo-veil) 28%, transparent 55%), linear-gradient(0deg, var(--photo-veil), var(--photo-veil) 28%, transparent 55%); }
@media (max-width: 820px) {
  .je-hero__copy { padding: 64px var(--gutter) 56px; }
  .je-hero__media { min-height: 360px; }
  .je-hero__caption { right: var(--gutter); bottom: 24px; }
}

/* Motif panels */
.je-motif { color: var(--sage); }
.je-motif--paper { background: var(--paper); }
.je-motif--paper::before { display: none; }
.je-motif--tall { min-height: 420px; }
.je-motif--captioned { min-height: 460px; padding: 32px 24px 112px; }
.je-motif--captioned svg { width: min(300px, 66%); }
.site-motif-caption { position: absolute; left: 16px; right: 16px; bottom: 50px; margin: 0; text-align: center; font: italic 400 28px/1.3 var(--font-serif); color: var(--ink); }
.je-motif__note { padding: 0 16px; }
@media (max-width: 820px) {
  .je-motif--tall { min-height: 320px; }
  .je-motif--tall svg { width: min(250px, 66%); }
  .je-motif--captioned { min-height: 380px; padding-bottom: 104px; }
  .je-motif--captioned svg { width: min(230px, 62%); }
}

/* Philosophy */
.je-motif--pebble { min-height: 400px; }
@media (max-width: 820px) { .je-motif--pebble { min-height: 300px; max-width: 520px; width: 100%; margin: 0 auto; } }

/* Home: Meet John */
.site-about { grid-template-columns: minmax(0, 54fr) minmax(0, 72fr); }
.site-about .je-figure { max-width: 480px; }
.site-signature { margin: var(--space-8) 0 0; font: italic 400 28px/1.3 var(--font-serif); color: var(--ink); }
@media (max-width: 820px) { .site-about { grid-template-columns: minmax(0, 1fr); } .site-about .je-figure { max-width: 420px; } }

/* Statement and letter */
.je-statement__line { font-weight: 400; }
.je-statement--letter .je-statement__line { color: var(--ink); }
.je-statement--letter .je-statement__coda { font-size: 28px; } /* sage-text on mist is for 24px and up */

/* Offerings */
.je-offer { min-height: 400px; }
.je-offer__top { flex-wrap: wrap; row-gap: var(--space-3); }
.je-offer__foot a { text-decoration: none; }
.je-offer__foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) { .je-offer { min-height: 0; padding: var(--space-6); } }

/* Spaces */
.site-spaces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); margin-top: var(--space-12); }
.site-space { display: flex; flex-direction: column; min-width: 0; background: var(--paper); }
.site-space__media { position: relative; aspect-ratio: 43 / 28; overflow: hidden; background: var(--stone); }
.site-space__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.site-space__body { padding: var(--space-8); }
.site-space__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-4); }
.site-space h3 { margin: 0; font: 500 clamp(28px, 2.6vw, 34px)/1.15 var(--font-serif); letter-spacing: -.01em; }
.site-space p { margin: var(--space-3) 0 0; font-size: 14px; line-height: 1.8; color: var(--muted); }
@media (max-width: 900px) { .site-spaces { grid-template-columns: minmax(0, 1fr); } .site-space__body { padding: var(--space-6); } }

/* Questions */
.je-faq summary:hover { color: var(--earth-text); }
.je-faq details p a, .site-inline-link { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; transition: color .2s ease, text-decoration-color .2s ease; }
.je-faq details p a:hover, .site-inline-link:hover { color: var(--earth-text); text-decoration-color: var(--earth); }

/* Contact band and form; the band and the footer share the sections' content edges */
.je-contact, .je-footer { padding-left: max(var(--gutter), calc((100% - var(--content-width)) / 2)); padding-right: max(var(--gutter), calc((100% - var(--content-width)) / 2)); }
.je-contact { align-items: start; }
.je-contact > div { padding-top: var(--space-4); }
.je-contact > form { align-self: center; }
.site-contact--short { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.site-contact--short > div { padding-top: 0; }
.site-form-feedback { grid-column: 1 / -1; margin: 0; padding: 14px 16px; background: var(--mist); border: 1px solid var(--line-strong); color: var(--ink); font-size: 14px; line-height: 1.6; }
.site-bot-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.je-field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.je-form__foot .je-btn:disabled { opacity: .6; cursor: progress; }
@media (max-width: 900px) { .site-contact--short { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .je-form__foot .je-btn { width: 100%; } .je-form__foot p { max-width: none; } }
@media (max-width: 400px) { .je-btn { white-space: normal; text-align: center; line-height: 1.35; padding-top: 10px; padding-bottom: 10px; } }

/* Footer */
.je-footer { border-top: 1px solid var(--line); }

/* BioGeometry guide */
.site-motif-hero .je-motif { min-height: 100%; }
.site-guide-nav { padding: 18px var(--gutter); background: var(--paper); border-bottom: 1px solid var(--line); }
.site-guide-nav .site-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 32px; }
.site-guide-nav span { flex-basis: auto; color: var(--muted); font: 700 11px/1.4 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; }
.site-guide-nav a { padding: 10px 0; color: var(--ink); font: 700 11px/1.4 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: color .2s ease; }
.site-guide-nav a:hover { color: var(--earth-text); }
@media (max-width: 700px) { .site-guide-nav .site-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; } .site-guide-nav span { grid-column: 1 / -1; padding-bottom: 4px; } }
.site-source-note { max-width: var(--measure); margin: var(--space-8) 0 0; padding-left: var(--space-6); border-left: 2px solid var(--sage); font-size: 14px; line-height: 1.8; color: var(--muted); }
.site-points { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.site-points li { padding: var(--space-6) 0; border-bottom: 1px solid var(--line-strong); }
.site-points h3 { margin: 0 0 var(--space-2); font: 500 28px/1.22 var(--font-serif); color: var(--ink); }
.site-points p { max-width: 520px; margin: 0; font-size: 14px; line-height: 1.8; color: var(--muted); }
.site-cats-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-8); margin-bottom: var(--space-8); }
.site-cats-head .je-label { margin: 0; }
.site-cats-head h3 { margin: 0; font: 500 clamp(28px, 2.6vw, 34px)/1.18 var(--font-serif); }
.site-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.site-cat { min-width: 0; padding: var(--space-6); background: var(--paper); border: 1px solid var(--line); border-top: 1px solid var(--line-strong); }
.site-cat h4 { margin: 0 0 var(--space-3); font: 500 28px/1.25 var(--font-serif); color: var(--ink); }
.site-cat p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--muted); }
.site-steps-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-8) 80px; }
.site-steps-head .je-text { max-width: 360px; }
.je-steps--four { --je-cols: 4; margin-top: var(--space-12); }
.site-daynote { display: grid; grid-template-columns: minmax(0, 19fr) minmax(0, 28fr); gap: var(--space-4) 80px; align-items: center; margin-top: var(--space-16); padding: var(--space-8) clamp(24px, 3vw, 40px); background: var(--mist); }
.site-daynote .je-label { margin-bottom: var(--space-3); }
/* Tool photographs: beside the approach intro, under the harmonization steps, under the care text */
.site-approach-head .je-figure { align-self: center; }
.site-process-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); margin-top: var(--space-12); }
.site-care-photo { margin-top: var(--space-8); max-width: var(--measure); }
@media (max-width: 820px) { .site-process-photos { grid-template-columns: minmax(0, 1fr); } }
.site-daynote h3 { margin: 0; font: 500 clamp(28px, 2.36vw, 34px)/1.18 var(--font-serif); }
.site-daynote p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--muted); }
.site-scope-items p { max-width: var(--measure); margin: 0 0 var(--space-4); font-size: 16px; line-height: 1.85; color: var(--muted); }
.site-scope-items strong { color: var(--ink); }
.site-reading { padding: var(--space-8); border: 1px solid var(--line-strong); }
.site-reading h3 { margin: 0 0 var(--space-4); font: 500 clamp(28px, 2.36vw, 34px)/1.2 var(--font-serif); }
.site-reading a { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 15px; line-height: 1.5; text-decoration: none; transition: color .2s ease; }
.site-reading a:hover { color: var(--earth-text); text-decoration: underline; text-underline-offset: 4px; }
.site-reading p { margin: var(--space-4) 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.site-guide-research .je-scope { margin-top: var(--space-16); }
@media (max-width: 1050px) { .site-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .je-steps--four { --je-cols: 2; } }
@media (max-width: 820px) { .site-steps-head { display: block; } .site-steps-head .je-text { max-width: var(--measure); margin-top: var(--space-6); } .site-daynote { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .site-cats { grid-template-columns: minmax(0, 1fr); } .site-reading { padding: var(--space-6); } }

/* Meet John */
.site-meet-hero { display: grid; grid-template-columns: minmax(0, 72fr) minmax(0, 68fr); min-height: min(720px, 82vh); background: var(--ivory); }
.site-meet-hero .je-hero__copy { padding-right: 4vw; }
.site-meet-hero__figure { display: grid; place-items: center; padding: clamp(40px, 5vw, 72px) var(--gutter); }
.site-meet-hero__figure .je-figure { width: min(100%, 440px); }
.site-story { display: grid; grid-template-columns: minmax(0, 28fr) minmax(0, 83fr); gap: var(--space-12); }
.site-story__seal { display: block; width: 96px; height: auto; margin-top: var(--space-24); }
.site-story p { max-width: var(--measure); margin: 0 0 var(--space-6); font-size: 19px; line-height: 1.8; color: var(--muted); }
.site-story .site-signature { margin-top: var(--space-12); font-size: 28px; line-height: 1.5; }
.site-story .site-signature span { font-size: 34px; }
.site-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12); margin-top: var(--space-16); }
.site-values article { padding-top: var(--space-6); border-top: 1px solid var(--line-strong); }
.site-values h3 { margin: 0 0 var(--space-3); font: 500 clamp(28px, 2.6vw, 34px)/1.18 var(--font-serif); letter-spacing: -.01em; }
.site-values p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--muted); }
@media (max-width: 820px) {
  .site-meet-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .site-meet-hero .je-hero__copy { padding: 64px var(--gutter) 24px; }
  .site-meet-hero__figure { padding-top: 24px; }
  .site-story { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .site-story__seal { display: none; }
  .site-story p { font-size: 16px; }
  .site-values { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
}

/* Our work */
.site-work-hero { position: relative; overflow: hidden; padding: clamp(96px, 11vw, 150px) var(--gutter); background: var(--mist); }
.site-work-hero .site-wrap { position: relative; }
.site-work-hero__copy { position: relative; max-width: 820px; }
.site-work-hero__motif { position: absolute; top: 50%; right: -40px; width: 420px; color: var(--sage); transform: translateY(-50%); pointer-events: none; }
.site-work-hero__motif svg { display: block; width: 100%; height: auto; }
@media (max-width: 1100px) { .site-work-hero__motif { display: none; } }
.site-cases { padding: 0 var(--gutter) var(--section-y); }
.site-cases .je-fieldnote:last-child { border-bottom: 1px solid var(--line); }
.je-fieldnote__panel { min-height: 420px; }
.je-fieldnote__panel--stone { background: var(--stone); }
.je-fieldnote__panel--stone .je-fieldnote__meta, .je-fieldnote__panel .je-figure__tag { color: var(--ink); }
.je-fieldnote__panel .je-figure__tag { white-space: normal; }
.je-fieldnote__body { display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 760px) { .je-fieldnote__panel { min-height: 300px; } .je-fieldnote__body { padding: var(--space-8) 0 var(--space-12); } }
@media (max-width: 600px) { .je-fieldnote__focus { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); } }
.site-forest { background: var(--forest); color: var(--on-forest); }
.site-forest .je-label { color: var(--on-forest-label); }
.site-forest .je-title { color: var(--on-forest); }
.site-forest .je-text { color: var(--on-forest-muted); }
.site-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-12); }
.site-slot { display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-3); min-height: 250px; padding: var(--space-6); background: var(--stone); border: 1px dashed var(--line-strong); color: var(--ink); }
.site-slot span { font: 700 11px/1.4 var(--font-sans); letter-spacing: .18em; text-transform: uppercase; }
.site-slot strong { font: 500 28px/1.25 var(--font-serif); }
.site-slot small { font-size: 12px; line-height: 1.6; }
@media (max-width: 820px) { .site-slots { grid-template-columns: minmax(0, 1fr); } .site-slot { min-height: 200px; } }

/* Thank-you page */
.site-thanks { display: grid; place-items: center; min-height: calc(100vh - 220px); padding: var(--section-y) var(--gutter); text-align: center; }
.site-thanks__inner { max-width: 640px; }

/* Privacy notice and imprint */
.site-legal { max-width: 720px; }
.site-legal .je-title { margin-bottom: var(--space-8); }
.site-legal h2 { margin: var(--space-12) 0 var(--space-3); font: 500 28px/1.25 var(--font-serif); letter-spacing: -.01em; color: var(--ink); }
.site-legal ul { max-width: var(--measure); margin: 0 0 var(--space-4); padding-left: 1.1em; color: var(--muted); font-size: 16px; line-height: 1.85; }
.site-legal ul + .je-text { margin-top: var(--space-4); }
.site-legal li + li { margin-top: var(--space-2); }
.site-legal strong { color: var(--ink); font-weight: 700; }
.site-legal .je-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-legal .je-text a:hover { color: var(--earth-text); }
.site-fill { padding: 0 .25em; background: var(--mist); color: var(--earth-text); border-radius: 3px; } /* draft placeholders */

/* Footer links to the legal pages */
.je-footer__note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.je-footer__note a:hover { color: var(--earth-text); }
.site-thanks .je-wordmark { width: 220px; }
.site-thanks .je-wordmark img { display: block; width: 100%; height: auto; }
.site-thanks .je-rule { margin: var(--space-12) auto var(--space-8); }
.site-thanks .je-display { font-size: clamp(43px, 5vw, 72px); }
.site-thanks .je-text { margin: 0 auto var(--space-8); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .je-faq summary, .site-guide-nav a, .site-reading a, .site-inline-link { transition: none; } }

/* Field-note panel with a real photograph: a soft veil keeps the line readable in ivory */
.je-fieldnote__panel--photo img { z-index: 0; }
.je-fieldnote__panel--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20, 30, 22, .42) 0%, rgba(20, 30, 22, 0) 30%, rgba(20, 30, 22, .12) 50%, rgba(20, 30, 22, .72) 100%); pointer-events: none; }
.je-fieldnote__panel--photo > :not(img) { z-index: 2; }
.je-fieldnote__panel--photo .je-fieldnote__meta, .je-fieldnote__panel--photo .je-fieldnote__line { color: var(--on-forest); text-shadow: 0 1px 14px rgba(10, 14, 11, .35); }
.je-fieldnote__panel--photo .je-fieldnote__line { margin: auto 0 var(--space-2); }
.je-fieldnote__panel--photo .je-figure__tag { color: var(--on-forest); opacity: .75; }
