/* ============================================================
   DCID Design — the Day system · sub-page components (2026-09-28, Opus port)
   Loaded after fable.css + fable-day.css on interior-design / renovation / work (+ project pages) /
   journal / about / contact. Same rules as the homepage: transform / opacity only, no drop shadows,
   no rounded corners, type ≥ 12 px, tap targets ≥ 44 px, the static baseline works without JS.
   The sub-pages are calm: one peak per page only on Home and Renovation (Lock List 🔒, site map D-041q).
   ============================================================ */

/* ---------- HERO for sub-pages: the homepage hero, shorter ---------- */
.hero--sub{min-height:82svh}
.hero--sub h1{font-size:clamp(2.1rem,3.6vw,3.6rem);max-width:18ch}   /* wide enough that the authored <br> is the only break */
.hero--sub .hero__win{min-height:calc(82svh - var(--nav-h))}
.hero__win.still{aspect-ratio:auto;height:100%;min-width:0}   /* a plain photo in the hero (portrait, remote image): fill the column, never widen it */
.hero--text{min-height:auto;grid-template-columns:1fr;padding-bottom:clamp(2rem,6vh,4rem)}
.hero--text .hero__text{padding-top:clamp(3rem,12vh,8rem);max-width:var(--measure);margin-inline:auto;width:100%}
.hero--text h1{max-width:16ch}
.hero--text .lead{max-width:52ch}
@media(max-width:820px){.hero--sub{min-height:auto}.hero--sub .hero__win{min-height:56svh}.hero--text .hero__text{padding-top:clamp(1.6rem,5vh,2.6rem)}}

/* ---------- a plain section with words (a quieter beat) ---------- */
.block{padding-top:clamp(4.5rem,11vh,9rem)}
.block h2{font-size:clamp(1.9rem,3.6vw,3.3rem);margin-bottom:1rem;max-width:18ch}
.block .intro{max-width:52ch}
.block__head{margin-bottom:clamp(2rem,5vh,3.5rem)}

/* ---------- STEPS: the four-step process, numbered in Playfair ---------- */
.steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(1.5rem,3vw,3rem);list-style:none;counter-reset:step}
.step{border-top:1px solid var(--line);padding-top:1.4rem}
.step__n{font-family:var(--serif);font-size:1.6rem;color:var(--accent);line-height:1}
.step h3{font-size:clamp(1.3rem,1.8vw,1.6rem);margin:.8rem 0 .6rem}
.step p{font-size:.98rem}
@media(max-width:980px){.steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.steps{grid-template-columns:1fr}}

/* ---------- CARDS: collections, journal posts, projects ---------- */
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1.5rem,3vw,2.6rem)}
.cards--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.card{display:grid;align-content:start;gap:.7rem;color:inherit}
.card .still{aspect-ratio:4/5}
.card h3{font-size:clamp(1.3rem,1.9vw,1.7rem)}
.card p{font-size:.98rem}
.card .eyebrow{margin:0}
a.card{min-height:44px}
a.card:hover h3{color:var(--accent)}
.card .still img{transition:transform 1.4s var(--ease)}
a.card:hover .still img{transform:scale(1.03)}
@media(max-width:900px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.cards,.cards--2{grid-template-columns:1fr}.card .still{aspect-ratio:4/3}}
@media(max-width:560px) and (orientation:portrait){.card .still{aspect-ratio:4/3}}

/* ---------- FEATURE: one large card (journal lead, project lead) ---------- */
.feature{display:grid;grid-template-columns:7fr 5fr;gap:clamp(2rem,5vw,5rem);align-items:center;color:inherit}
.feature .still{aspect-ratio:3/2}
.feature h2{font-size:clamp(1.8rem,3.2vw,3rem);margin:.4rem 0 1rem}
a.feature:hover h2{color:var(--accent)}
@media(max-width:760px){.feature{grid-template-columns:1fr;gap:1.4rem}}

/* ---------- PANEL: words on a Warm Sand ground, in daylight (the shop teaser on sub-pages) ---------- */
.panel-split{display:grid;grid-template-columns:7fr 5fr;align-items:stretch}
.panel-split .still{aspect-ratio:auto;min-height:420px;height:100%}
.panel{background:var(--sand);padding:clamp(2rem,5vw,4.5rem);display:grid;align-content:center;justify-items:start;gap:1rem}
.panel h2{font-size:clamp(1.7rem,3vw,2.6rem)}
.panel p{max-width:40ch;color:var(--ink-soft)}
.panel .btn{margin-top:.6rem}
@media(max-width:760px){.panel-split{grid-template-columns:1fr}.panel-split .still{aspect-ratio:4/3;min-height:0;height:auto}.panel{padding:1.8rem var(--gutter) 2.2rem}}

/* ---------- TOWNS: where we work ---------- */
.towns{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:clamp(1.5rem,4vw,4rem);border-top:1px solid var(--line)}
.towns li{border-bottom:1px solid var(--line)}
.towns a{display:flex;align-items:center;justify-content:space-between;min-height:56px;font-family:var(--serif);font-size:clamp(1.15rem,1.6vw,1.4rem)}
.towns a::after{content:"→";font-family:var(--sans);font-size:.9rem;color:var(--accent);opacity:0;translate:-6px 0;transition:opacity .4s var(--ease),translate .4s var(--ease)}
.towns a:hover::after,.towns a:focus-visible::after{opacity:1;translate:none}
@media(max-width:760px){.towns{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---------- CROSS-LINK: one line between the two services ---------- */
.crosslink{padding-top:clamp(3rem,8vh,6rem)}
.crosslink p{font-family:var(--serif);font-size:clamp(1.2rem,1.8vw,1.55rem);color:var(--ink);max-width:40ch}
.crosslink .link{margin-top:1rem}

/* ---------- VALUES: four words, in everything ---------- */
.values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(2rem,4vw,4rem) clamp(2rem,6vw,6rem);list-style:none}
.value{border-top:1px solid var(--line);padding-top:1.3rem}
.value .eyebrow{margin-bottom:.7rem}
.value h3{font-size:clamp(1.4rem,2vw,1.8rem);margin-bottom:.6rem}
@media(max-width:640px){.values{grid-template-columns:1fr}}

/* ---------- PHILOSOPHY: Sabina's line, large ---------- */
.philosophy p{max-width:58ch}
.philosophy p+p{margin-top:1rem}
.pull{margin:clamp(2.5rem,6vh,4rem) 0;font-family:var(--serif);font-size:clamp(1.6rem,2.8vw,2.5rem);line-height:1.3;color:var(--ink);max-width:26ch}
.pull cite{display:block;margin-top:1rem;font-family:var(--sans);font-style:normal;font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;color:var(--accent)}

/* ---------- QUOTES in daylight (sub-pages): the homepage's stepped conversation, on a light surface ---------- */
.quotes--day .quote p{color:var(--ink)}
.quotes--day .quote figcaption{color:var(--accent)}

/* ---------- PROJECT pages: facts, story, gallery ---------- */
.facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.5rem;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding-block:1.4rem;margin-top:clamp(2rem,5vh,3rem)}
.facts dt{font-size:.78rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--accent);margin-bottom:.35rem}
.facts dd{font-family:var(--serif);font-size:1.15rem}
@media(max-width:760px){.facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
.story p{font-family:var(--serif);font-size:clamp(1.25rem,1.8vw,1.6rem);line-height:1.45;color:var(--ink);max-width:36ch}
.gallery{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:clamp(1rem,2vw,1.6rem)}
.gallery .still{aspect-ratio:3/2}
.gallery .g-7{grid-column:span 7}.gallery .g-5{grid-column:span 5}.gallery .g-6{grid-column:span 6}.gallery .g-4{grid-column:span 4}.gallery .g-8{grid-column:span 8}.gallery .g-12{grid-column:span 12}
.gallery .g-5 .still,.gallery .g-4 .still{aspect-ratio:4/5}
@media(max-width:760px){.gallery [class^="g-"],.gallery [class*=" g-"]{grid-column:span 12}.gallery .g-5 .still,.gallery .g-4 .still{aspect-ratio:4/3}}
.gallery figure{margin:0}
.next{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:1.6rem}

/* ---------- CONTACT: one form, one booking ---------- */
.contact__grid{display:grid;grid-template-columns:7fr 5fr;gap:clamp(2rem,6vw,6rem);align-items:start}
.form{display:grid;gap:1.3rem}
.form .row{display:grid;grid-template-columns:1fr 1fr;gap:1.3rem}
.form label{display:grid;gap:.45rem;font-size:.8rem;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--ink)}
.form input,.form select,.form textarea{font:400 1rem/1.5 var(--sans);color:var(--ink);background:rgba(255,255,255,.55);border:1px solid rgba(36,34,32,.32);border-radius:0;padding:.75em .9em;min-height:48px;width:100%;letter-spacing:0;text-transform:none}
.form textarea{min-height:150px;resize:vertical}
.form input:focus-visible,.form select:focus-visible,.form textarea:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.form .btn{justify-self:start}
.form__note{font-size:.85rem}
.card--contact{border-top:1px solid var(--line);padding-top:1.4rem;display:grid;gap:.2rem}
.card--contact h2{font-family:var(--sans);font-size:.8rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--accent);margin-bottom:.5rem}
.card--contact a{min-height:44px;display:inline-flex;align-items:center}
.card--contact address{font-style:normal;color:var(--ink-soft)}
.card--contact+.card--contact{margin-top:2rem}
@media(max-width:760px){.contact__grid{grid-template-columns:1fr}.form .row{grid-template-columns:1fr}}

/* ---------- RENOVATION · the build-up (D-041o): a film that plays by itself, with the "designer's notes" beside it (2026-09-30).
   The notes land one by one as the film reaches them, each led in by a pencil arrow that draws itself; earlier notes stay, in
   sepia. Without JS or with reduced motion every note shows at once. ---------- */
.buildup{padding-block:clamp(4rem,10vh,7rem)}
.buildup__grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(2rem,5vw,5rem);align-items:center}
.buildup__film{margin:0;display:grid;gap:.9rem;justify-items:start}
.buildup__film video{width:100%;max-height:82svh;aspect-ratio:4/5;object-fit:cover;background:#F0EEEA;display:block}
.buildup__now{display:none}
.buildup__ctl{min-height:44px;background:none;border:0;padding:0;cursor:pointer;font:inherit}
.notes{list-style:none;margin:1.2rem 0 0;padding:0;display:grid;gap:0}
.note{position:relative;padding:.2rem 0 .1rem}
.note .eyebrow{margin:0 0 .15rem;font-size:.75rem}
.note__line{margin:0;font-family:var(--serif);font-size:clamp(1.05rem,1.5vw,1.3rem);line-height:1.3;color:var(--ink)}
.note__arrow{display:block;width:28px;height:24px;margin:.35rem 0 .35rem .1rem;overflow:visible}
.note__arrow path{fill:none;stroke:#8A6E52;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
html.buildup-on .note{opacity:0;translate:0 8px;transition:opacity .7s var(--ease),translate .7s var(--ease)}
html.buildup-on .note.on{opacity:1;translate:none}
html.buildup-on .note .eyebrow,html.buildup-on .note__line{transition:color .8s var(--ease),font-size .8s var(--ease)}
/* once a note has done its narration it shrinks to ~half (floor 12px) and turns sepia, so the film ends with the last line largest (Christian 2026-09-30) */
html.buildup-on .note.past .note__line{color:#8A6E52;font-size:max(.75rem,calc(clamp(1.05rem,1.5vw,1.3rem) * .5))}
html.buildup-on .note .note__arrow{opacity:1}
@media(max-width:760px){
  .buildup__grid{grid-template-columns:1fr;gap:1.6rem}
  .buildup__film video{max-height:70svh;width:auto;max-width:100%;justify-self:center}
  .note__line{font-size:1.02rem}
  /* phone: the notes sit below the film, out of view while it plays — so the current note is echoed right under the film */
  html.buildup-on .buildup__now{display:block;min-height:2.7em;margin:0;justify-self:stretch;text-align:center;font-family:var(--serif);font-size:1.02rem;line-height:1.3;color:var(--ink);transition:opacity .5s var(--ease)}
  html.buildup-on .buildup__now.swap{opacity:0}
  .buildup__ctl{justify-self:center}
}
@media(prefers-reduced-motion:reduce){html.buildup-on .note{transition:none}html.buildup-on .buildup__now{display:none}}

/* ---------- SCOPE: what a renovation covers ---------- */
.scope{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 clamp(2rem,6vw,6rem);border-top:1px solid var(--line)}
.scope li{border-bottom:1px solid var(--line);padding:1.1rem 0;display:grid;gap:.25rem}
.scope strong{font-family:var(--serif);font-weight:400;font-size:clamp(1.15rem,1.6vw,1.4rem);color:var(--ink)}
@media(max-width:640px){.scope{grid-template-columns:1fr}}

/* ---------- CLOSE in daylight (sub-pages end in the afternoon, not the night) ---------- */
.close--day{padding-block:clamp(5rem,12vh,9rem)}
.close--day h2{color:var(--ink)}

/* Instagram strip (About): six square tiles linking to the profile */
.insta__grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(.5rem,1.2vw,1rem);margin-bottom:clamp(1.5rem,3vh,2.2rem)}
.insta__grid .insta__tile{aspect-ratio:1/1;display:block}
.insta__tile img{transition:transform 1.4s var(--ease)}

@media(max-width:760px){.insta__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Our Work · project highlights: a few photos and a line per project, two to a row (one on phones) */
.hl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(2.2rem,4vw,3.6rem) clamp(1.5rem,3vw,2.6rem)}
.hl__item .eyebrow{margin:1rem 0 .4rem}
.hl__item p:not(.eyebrow){font-size:.98rem;max-width:44ch}
.hl__pics{display:grid;gap:clamp(.5rem,1vw,.8rem)}
.hl__pics--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.hl__pics--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.hl__pics .still{aspect-ratio:4/5}
@media(max-width:760px){.hl{grid-template-columns:1fr}}
@media(max-width:560px){.hl__pics--3{grid-template-columns:1fr 1fr}.hl__pics--3 .still:first-child{grid-column:span 2;aspect-ratio:3/2}}   /* three tiles would be ~75 px on a phone */
/* project pages: a plan in the gallery is a drawing, shown whole on white */
.still--plan{background:#fff}
.still--plan img{object-fit:contain}
.gallery figcaption{margin-top:.6rem}

/* the price-free pricing line under the service steps (D-041q ⑤) */
.price-note{margin-top:clamp(1.8rem,4vh,2.6rem);max-width:52ch;font-size:.98rem;color:var(--ink-soft,inherit);font-style:italic}

/* ---------- PROSE: city pages and journal posts (2026-09-30) — one readable column, figures a little wider ---------- */
.prose{max-width:68ch;margin-inline:auto}
.prose p{margin:0 0 1.15em;font-size:1.04rem;line-height:1.75}
.prose h2{font-size:clamp(1.5rem,2.4vw,2rem);margin:2.2em 0 .7em}
.prose h3{font-size:clamp(1.2rem,1.8vw,1.45rem);margin:1.8em 0 .5em}
.prose ul{margin:0 0 1.2em;padding-left:1.2em}.prose li{margin:.35em 0;line-height:1.7}
.prose a{text-decoration:underline;text-underline-offset:.25em}
.prose__fig{margin:2.4em calc(-1 * min(8vw, 90px));}
.prose__fig .still{aspect-ratio:3/2}
.prose__fig figcaption{margin-top:.7rem}
@media(max-width:760px){.prose__fig{margin-inline:0}}
.pull{max-width:40ch;margin:0 auto;text-align:center}
.pull blockquote{margin:0}.pull p{font-family:var(--serif);font-size:clamp(1.5rem,2.6vw,2.1rem);line-height:1.3}
.pull figcaption{margin-top:1rem;font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;color:var(--accent)}
.prose p a{padding-block:.75em}   /* inline links in running text: a 44px tap target without changing the line (inline padding does not move lines) */

/* ---------- critic fixes 2026-09-30 ---------- */
/* project galleries: a portrait beside a landscape takes the landscape's row height (no blank band under the landscape) */
@media(min-width:761px){
  .gallery figure{display:flex;flex-direction:column}
  .gallery .g-7+.g-5 .still,.gallery .g-5:has(+.g-7) .still,.gallery .g-8+.g-4 .still,.gallery .g-4:has(+.g-8) .still{aspect-ratio:auto;flex:1 1 auto;min-height:0}
}
/* a lone last card is centred rather than left hanging */
@media(min-width:901px){.cards>:last-child:nth-child(3n+1){grid-column:2}}
@media(max-width:900px) and (min-width:561px){.cards>:last-child:nth-child(2n+1){grid-column:1/-1;justify-self:center;width:calc(50% - 1rem)}}
.towns>li:last-child:nth-child(3n+1){grid-column:2}
@media(max-width:760px){.towns>li:last-child:nth-child(3n+1){grid-column:auto}.towns>li:last-child:nth-child(2n+1){grid-column:1/-1}}
/* journal: date on its own line (metadata no longer wraps unevenly) · the archive note */
.card__date{margin:-.35rem 0 .5rem;font-size:.8rem;color:var(--muted,#6f655b)}
.archive-note{font-size:.9rem;font-style:italic;color:var(--muted,#6f655b);border-left:2px solid var(--line);padding-left:1rem;margin-bottom:2rem}
/* renovation notes: pinned to the top so the column doesn't shift as notes land; finished notes at readable contrast */
.buildup__grid{align-items:start}
html.buildup-on .note.past .note__line{color:#6E5640}
.note__arrow path{stroke:#6E5640}
.form__hint{font-size:.9rem;color:var(--muted,#6f655b);margin:0}
blockquote.pull{margin:clamp(3rem,8vh,5rem) auto}   /* About's quote: room to breathe (critic 2026-09-30) */
@media(min-width:761px){.hl>:last-child:nth-child(2n+1){grid-column:1/-1;justify-self:center;width:calc(50% - 1.3rem)}}
.story h2{font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;font-family:var(--sans);color:var(--accent);margin:2rem 0 .6rem}.story h2:first-child{margin-top:0}
.story p{font-family:var(--sans)}.story h2{max-width:none;text-wrap:wrap}
.story p{max-width:none}
@media(min-width:761px){   /* a portrait source beside a landscape: the picture fills the cell instead of setting its height */
  .gallery .g-7+.g-5 .still,.gallery .g-5:has(+.g-7) .still,.gallery .g-8+.g-4 .still,.gallery .g-4:has(+.g-8) .still{position:relative}
  .gallery .g-7+.g-5 .still picture,.gallery .g-5:has(+.g-7) .still picture,.gallery .g-8+.g-4 .still picture,.gallery .g-4:has(+.g-8) .still picture{position:absolute;inset:0}
}
/* legal pages (2026-10-01): tables scroll sideways on phones instead of breaking the layout */
.legal h2{font-size:clamp(1.3rem,2vw,1.6rem)}
.legal .table{overflow-x:auto;margin:1.5em 0}
.legal table{border-collapse:collapse;font-size:.9rem;min-width:560px}
.legal td{border-bottom:1px solid var(--line);padding:.55em .7em;vertical-align:top}
.legal tr:first-child td{font-weight:500}
.legal p{overflow-wrap:anywhere}
/* enquiry form (2026-10-07): the spam trap stays off-screen; the status line reads clearly */
.form__trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.form__note{margin:.25rem 0 0;padding:.6rem .8rem;border-left:2px solid var(--line);font-size:.95rem}
.form__note[data-state="ok"]{border-color:#8a9a7b}
.form__note[data-state="error"]{border-color:#b5674d}
.form .cf-turnstile{margin:.25rem 0}
.form__msg{display:none;margin:.25rem 0 0;padding:.6rem .8rem;border-left:2px solid var(--line);font-size:.95rem}
.form__msg:target{display:block}
.form__msg[data-state="ok"]{border-color:#8a9a7b}
.form__msg[data-state="error"]{border-color:#b5674d}
