/* J&M Made-to-Measure Project website. The Kaine kit rebuilt for a furniture workshop: a calm white editorial page, DM Sans Light
   display headlines, sharp-cornered photographs with a dark bottom gradient and a white caption, eyebrow labels followed by a short rule,
   hairline rows ending in diagonal arrows, a vertical divider between figures, dark square buttons, dark circle arrows and one warm
   walnut dot for the active state. Motion: reveal on scroll and hover lifts, off under prefers-reduced-motion; nothing is hidden without JS. */
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Variable.ttf") format("truetype"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("fonts/BricolageGrotesque-Variable.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
:root {
  --ink: #1f1d1b; --head: #2b2825; --muted: #5d5853; --line: #e3dfd9; --soft: #f4f2ee; --paper: #ffffff; --walnut: #614635; --walnut-deep: #4a3426;
  --dark: #2e2b28; --ok: #3f6b1f; --warn: #7a5200; --bad: #a3261c; --info: #285c8c;
  --wrap: 1180px; --pad: clamp(18px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 "DM Sans", system-ui, sans-serif; }
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--walnut); outline-offset: 3px; }
.ft :focus-visible, .sec.dark :focus-visible { outline-color: #fff; }
[id] { scroll-margin-top: 96px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-weight: 300; color: var(--head); letter-spacing: -.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(40px, 7vw, 88px); line-height: 1.02; }
h2 { font-size: clamp(30px, 4.6vw, 56px); line-height: 1.06; }
h3, .h3 { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.2; font-weight: 400; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 0; background: var(--dark); color: #fff; padding: 10px 14px; z-index: 50; }
.skip:focus { left: 10px; }
.small { font-size: 14px; color: var(--muted); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 60ch; }
.mail { overflow-wrap: anywhere; }

/* eyebrow: small label, then a short rule (the kit's "About Us ——") */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.eyebrow::after { content: ""; width: 46px; height: 1px; background: currentColor; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--walnut); }

/* buttons: the kit's dark square button and its circle arrows */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 22px; background: var(--dark); color: #fff; text-decoration: none; font: inherit; font-weight: 500; cursor: pointer;
  border: 1.5px solid var(--dark); transition: background .25s var(--ease), transform .25s var(--ease); }
.btn:hover { background: var(--walnut-deep); border-color: var(--walnut-deep); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--soft); color: var(--ink); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.sec.dark .btn.ghost { color: #fff; border-color: #fff; }
.sec.dark .btn.ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn .ic { width: 18px; height: 18px; }
.circ { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--dark); color: #fff; flex: none; transition: transform .3s var(--ease), background .3s; }
.circ .ic { width: 18px; height: 18px; }
a:hover .circ, .circ:hover { transform: rotate(45deg); background: var(--walnut); }
.acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.ic { width: 22px; height: 22px; }

/* header */
.topbar p { margin: 0; }
.topbar { margin: 0; background: var(--soft); font-size: 14px; text-align: center; padding: 8px var(--pad); color: var(--muted); }
.hd { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.hd.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(31, 29, 27, .06); }
.hd-in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.logo-m { display: grid; place-items: center; width: 44px; height: 44px; background: var(--dark); color: #fff; font: 700 15px/1 "Bricolage", "DM Sans", sans-serif; }
.logo-t { display: grid; line-height: 1.15; }
.logo-t b { font-weight: 600; font-size: 17px; }
.logo-t span { font-size: 12.5px; color: var(--muted); }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-size: 15.5px; padding: 12px 0; position: relative; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--walnut); transform: translateX(-50%) scale(0); transition: transform .25s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: translateX(-50%) scale(1); }
.hd .btn { min-height: 46px; }
.mm { display: none; position: relative; }
.mm summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); }
.mm summary::-webkit-details-marker { display: none; }
.mm-panel { position: absolute; right: 0; top: 56px; width: min(320px, 86vw); max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid var(--line); padding: 14px 18px 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, .12); }
.mm-panel a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.mm-h { margin: 12px 0 2px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1080px) { .nav, .hd .btn { display: none; } .mm { display: block; } }

/* hero: tall captioned photo left, light headline right with a rule before the paragraph, figures with a divider */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); }
.hero-g { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.hero h1 { margin-bottom: 26px; }
.ruled { display: grid; grid-template-columns: 70px 1fr; gap: 18px; align-items: start; }
.ruled::before { content: ""; height: 1px; background: var(--ink); margin-top: 14px; }
.figs { display: flex; align-items: stretch; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.fig { display: grid; gap: 2px; }
.fig b { font-size: clamp(30px, 3.6vw, 44px); font-weight: 300; line-height: 1; color: var(--head); }
.fig span { font-size: 14px; color: var(--muted); max-width: 18ch; }
.vdiv { width: 1px; background: var(--line); }
.fig b { overflow-wrap: anywhere; }
.figs.one { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.figs.one .vdiv { display: none; }
@media (max-width: 600px) { .figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } .vdiv { display: none; } }
@media (max-width: 860px) { .hero-g { grid-template-columns: 1fr; } .hero-g .cap { order: 2; } }

/* photographs: sharp corners, dark bottom gradient, white caption */
.cap { position: relative; margin: 0; overflow: hidden; background: var(--soft); }
.cap img { width: 100%; transition: transform .8s var(--ease); }
.cap:hover img { transform: scale(1.035); }
.cap figcaption { position: absolute; inset: auto 0 0 0; padding: 60px 22px 20px; color: #fff; background: linear-gradient(transparent, rgba(20, 16, 12, .78)); display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.cap figcaption b { font-weight: 400; font-size: 20px; display: block; }
.cap figcaption span { font-size: 14px; opacity: .92; }
.cap figcaption .circ { background: #fff; color: var(--ink); }
.cap.tall img { aspect-ratio: 2 / 3; object-fit: cover; }
.pic { margin: 0; overflow: hidden; background: var(--soft); }
.pic img { width: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pic:hover img { transform: scale(1.03); }

/* sections */
.sec { padding: clamp(48px, 7vw, 104px) 0; }
.sec.soft { background: var(--soft); }
.sec.dark { background: var(--dark); color: #f3efe9; }
.sec.dark h2, .sec.dark h3 { color: #fff; }
.sec.dark .eyebrow, .sec.dark .small, .sec.dark .lead { color: #d8d0c5; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); align-items: start; }
.split.rev > :first-child { order: 2; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); align-items: start; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); }
@media (max-width: 860px) { .split, .three, .two { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }

/* hairline rows ending in diagonal arrows */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); }
.rows a, .rows .row { display: flex; align-items: center; gap: 18px; padding: 18px 0; text-decoration: none; }
.rows .n { font-size: 14px; color: var(--muted); width: 2.4em; flex: none; }
.rows .t { flex: 1; }
.rows .t b { display: block; font-weight: 500; font-size: 18px; }
.rows .t span { color: var(--muted); font-size: 15px; }
.rows a:hover .t b { color: var(--walnut); }

/* cards and notes */
.card { background: #fff; border: 1px solid var(--line); padding: 24px; }
.card.soft { background: var(--soft); border-color: transparent; }
.note { border-left: 3px solid var(--walnut); background: var(--soft); padding: 18px 22px; }
.note p:last-child { margin: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); font-size: 44px; font-weight: 300; line-height: 1; color: var(--walnut); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps b { display: block; font-weight: 500; font-size: 19px; margin-bottom: 4px; }

/* tables */
.tbl { overflow-x: auto; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
caption { text-align: left; padding: 14px 16px; font-weight: 500; }
th, td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--soft); font-weight: 500; font-size: 14px; letter-spacing: .02em; }
td.num, th.num { text-align: right; white-space: nowrap; }
.law { padding: 22px 0; border-top: 1px solid var(--line); }
.src { font-size: 14px; color: var(--muted); }

/* breadcrumbs and inner page hero */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { text-decoration: none; }
.page-hero { padding: clamp(30px, 5vw, 70px) 0 clamp(26px, 4vw, 50px); border-bottom: 1px solid var(--line); }
.ph { display: grid; gap: clamp(20px, 4vw, 60px); }
.ph.with-pic { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
@media (max-width: 860px) { .ph.with-pic { grid-template-columns: 1fr; } }

/* top-view figure and route diagram */
.diagram { background: var(--soft); padding: 18px; }
.diagram svg { width: 100%; height: auto; display: block; }
.dg-room { fill: #fff; stroke: var(--ink); stroke-width: 6; }
.dg-sofa { fill: #d0bea2; stroke: var(--ink); stroke-width: 2; }
.dg-table { fill: #c9a27e; stroke: var(--walnut); stroke-width: 2; }
.dg-chair { fill: #e9e5de; stroke: var(--ink); stroke-width: 1.5; }
.dg-dim { stroke: var(--ok); stroke-width: 2.5; stroke-dasharray: 8 6; fill: none; }
.dg-lbl { font: 600 18px "DM Sans", sans-serif; fill: var(--ok); }
.dg-door { stroke: var(--info); stroke-width: 6; }

/* planner */
.pl { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 960px) { .pl { grid-template-columns: 1fr; } }
.pl fieldset { border: 1px solid var(--line); padding: 20px; margin: 0 0 18px; min-width: 0; }
.pl legend { font-size: 22px; font-weight: 400; padding: 0 8px; }
.fld { display: grid; gap: 6px; margin-bottom: 14px; }
.fld label, .fld .lab { font-size: 14px; color: var(--muted); }
.fld input, .fld select { font: inherit; min-height: 48px; padding: 8px 12px; border: 1px solid #8a8277; background: #fff; color: var(--ink); width: 100%; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .row3 { grid-template-columns: 1fr 1fr; } }
.chk { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.chk input { width: 22px; height: 22px; accent-color: var(--dark); }
.res { position: sticky; top: 96px; background: var(--soft); padding: 22px; }
.res h2 { font-size: 30px; }
.out { list-style: none; padding: 0; margin: 0 0 14px; }
.out li { padding: 12px 0 12px 30px; border-top: 1px solid var(--line); position: relative; }
.out li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); }
.out li.good::before { background: var(--ok); }
.out li.info::before { background: var(--info); }
.out li.warn::before { background: var(--warn); }
.out li.bad::before { background: var(--bad); }
.out li b, .out li .lvl { font-weight: 600; }
pre.brief { white-space: pre-wrap; font: 400 14px/1.5 "DM Sans", sans-serif; background: #fff; border: 1px solid var(--line); padding: 14px; max-height: 360px; overflow: auto; }

/* privacy: an index and a rotation of layouts */
.pwrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 50px; align-items: start; }
.pidx { position: sticky; top: 100px; }
.pidx ol { list-style: none; padding: 0; margin: 0; font-size: 14.5px; }
.pidx li a { display: flex; gap: 10px; padding: 7px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.pidx li span { color: var(--walnut); }
@media (max-width: 900px) { .pwrap { grid-template-columns: 1fr; } .pidx { position: static; } }
.policy-section { padding: 32px 0; border-top: 1px solid var(--line); display: grid; gap: 22px; }
.policy-section .ps-no { font-size: 14px; color: var(--walnut); letter-spacing: .12em; margin: 0 0 6px; }
.policy-section h2 { font-size: clamp(26px, 3vw, 36px); }
.policy-section[data-layout="split"] { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
.policy-section[data-layout="flip"] { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
.policy-section[data-layout="flip"] .ps-pic { order: 2; }
.policy-section[data-layout="band"] { background: var(--soft); padding: 32px; }
.policy-section[data-layout="band"] .ps-pic img { aspect-ratio: 3 / 1; object-fit: cover; }
.policy-section[data-layout="quote"] .ps-tx { border-left: 3px solid var(--walnut); padding-left: 24px; }
.policy-section[data-layout="quote"] .ps-pic { max-width: 220px; }
@media (max-width: 760px) { .policy-section[data-layout="split"], .policy-section[data-layout="flip"] { grid-template-columns: 1fr; } .policy-section[data-layout="flip"] .ps-pic { order: 0; } }
.ps-pic { margin: 0; overflow: hidden; }

/* holidays */
.hol { list-style: none; padding: 0; margin: 0; }
.hol li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hol time { color: var(--muted); }

/* footer */
.ft { background: var(--dark); color: #e9e3da; padding: 64px 0 34px; margin-top: 40px; }
.ft a { color: #fff; }
.ft-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 30px; }
.ft-line { font-size: clamp(26px, 3vw, 38px); font-weight: 300; color: #fff; line-height: 1.15; }
.fh { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #bfb5a8; margin: 0 0 10px; }
.ft-top a { display: block; padding: 6px 0; text-decoration: none; }
.svc { list-style: none; padding: 0; margin: 16px 0 0; }
.svc a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; }
.ft .small { color: #c9c0b4; }
.ft-legal { font-size: 13.5px; color: #c9c0b4; border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 40px; padding-top: 20px; }
@media (max-width: 860px) { .ft-top { grid-template-columns: 1fr 1fr; } .ft-brand { grid-column: 1 / -1; } }

/* reveal on scroll (only with JS; printing and reduced motion show everything) */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .cap img, .pic img, .btn, .circ, .nav a::after { transition: none; }
  .cap:hover img, .pic:hover img { transform: none; }
}
@media print { html.js [data-reveal] { opacity: 1; transform: none; } .hd, .topbar, .ft, .mm { display: none; } }
