/* =========================================================================
   JYOT · buildings & kitchen
   Design system: "Engineered luxury"
   Palette, type and layout derived from the exploded-view product render.
   ========================================================================= */

:root {
  /* — colour ————————————————————————————————————————————— */
  --paper:    #F0EFEC;   /* page base — cool architectural near-white   */
  --hero-bg:  #FFFFFF;   /* pure white — frames are whitened to match    */
  --surface:  #FAFAF8;   /* raised cards                                */
  --ink:      #1B1E21;   /* graphite, primary text                      */
  --ink-2:    #5A6066;   /* soft secondary text                         */
  --slate:    #9AA0A6;   /* the cabinet grey — lines & tertiary         */
  --brass:    #A47E45;   /* the hardware accent (large text / borders)  */
  --brass-ink:#785B2E;   /* AA-safe brass for small links               */
  --brass-hi: #C8A86C;
  --line:     rgba(27, 30, 33, 0.12);
  --line-2:   rgba(27, 30, 33, 0.06);

  /* — type ———————————————————————————————————————————————— */
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body:    "Hanken Grotesk", system-ui, sans-serif;
  --mono:    "Space Mono", ui-monospace, monospace;

  /* fluid scale */
  --step--1: clamp(0.78rem, 0.74rem + 0.18vw, 0.88rem);
  --step-0:  clamp(0.95rem, 0.90rem + 0.25vw, 1.08rem);
  --step-1:  clamp(1.18rem, 1.05rem + 0.6vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --step-3:  clamp(2.2rem, 1.6rem + 2.9vw, 3.8rem);
  --step-4:  clamp(2.9rem, 1.7rem + 5.6vw, 6.4rem);

  --maxw: 1240px;
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 4rem);
  --radius: 4px;
}

/* — reset ——————————————————————————————————————————————— */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--brass-ink); outline-offset: 3px; border-radius: 2px; }

/* — shared layout —————————————————————————————————————— */
.wrap { width: min(100% - calc(var(--gutter) * 2), var(--maxw)); margin-inline: auto; }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-ink);
  display: inline-flex; align-items: center; gap: 0.7em;
}
.eyebrow::before {
  content: ""; width: 1.8em; height: 1px; background: var(--brass); opacity: 0.7;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; color: var(--ink); }
.lead { font-size: var(--step-1); line-height: 1.45; color: var(--ink-2); font-weight: 400; }

/* registration tick — fine architectural detail used at section heads */
.tick { position: relative; }
.tick::before {
  content: ""; position: absolute; top: -0.4rem; left: 0;
  width: 9px; height: 9px;
  background:
    linear-gradient(var(--slate),var(--slate)) center/9px 1px no-repeat,
    linear-gradient(var(--slate),var(--slate)) center/1px 9px no-repeat;
  opacity: 0.65;
}

/* ====================================================================== */
/* HEADER                                                                 */
/* ====================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(0.9rem, 0.5rem + 1vw, 1.3rem) var(--gutter);
  transition: background .4s ease, box-shadow .4s ease, backdrop-filter .4s ease;
}
.site-header.is-stuck {
  background: rgba(244, 244, 244, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand .mark {
  font-family: var(--display); font-weight: 800; font-size: 1.5rem;
  letter-spacing: -0.03em; line-height: 0.85; color: var(--ink);
}
.brand .mark .dot { color: var(--brass); }
.kbc {
  display: flex; flex-direction: column;
  font-family: var(--mono); font-size: 0.53rem; line-height: 1.5;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
  border-left: 1px solid var(--line); padding-left: 0.7rem;
}
.kbc b { color: var(--brass); font-weight: 400; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav a { font-size: var(--step--1); color: var(--ink-2); letter-spacing: 0.01em; transition: color .25s; }
.nav a:hover { color: var(--ink); }
.btn {
  font-family: var(--body); font-weight: 600; font-size: var(--step--1);
  letter-spacing: 0.01em;
  padding: 0.7em 1.25em; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 0.5em;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s;
}
.btn.btn-primary { background: var(--ink); color: #F4F4F4; }
.btn.btn-primary:hover { background: var(--brass-ink); transform: translateY(-1px); }
.btn.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn.btn-ghost:hover { border-color: var(--ink); }
.btn.btn-call { background: var(--brass-ink); color: #FFFFFF; }
.btn.btn-call:hover { background: var(--ink); transform: translateY(-1px); }
.btn-call svg { width: 0.95em; height: 0.95em; }
.btn svg { flex-shrink: 0; }
.nav-toggle { display: none; }

/* ====================================================================== */
/* HERO — sticky scroll-scrub exploded view                               */
/* ====================================================================== */
.hero { position: relative; height: 420vh; background: var(--hero-bg); }
.hero-stage {
  position: sticky; top: 0; height: 100vh;
  display: grid; place-items: center; overflow: hidden;
}
.hero-canvas {
  width: min(86vw, 78vh, 940px);
  aspect-ratio: 960 / 870;
}
.hero-poster { /* shown for reduced-motion / no-JS */
  width: min(86vw, 78vh, 940px); display: none;
}

/* overlay text */
.hero-copy {
  position: absolute; left: var(--gutter); bottom: clamp(1.5rem,5vh,3.5rem);
  max-width: min(32ch, 80vw); z-index: 3; pointer-events: none;
}
.hero-copy h1 {
  font-size: clamp(2.5rem, 1.2rem + 4.4vw, 4.6rem);
  line-height: 0.98; font-weight: 700; margin-top: 0.5rem;
}
.hero-copy h1 em { font-style: normal; color: var(--brass); }
.hero-copy .lead { margin-top: 1rem; max-width: 36ch; font-size: var(--step-0); pointer-events: auto; }
.hero-copy .btn-call { margin-top: 1.3rem; pointer-events: auto; padding: 0.8em 1.4em; font-size: var(--step-0); }

.hero-top {
  position: absolute; top: clamp(5.5rem, 12vh, 8rem); right: var(--gutter);
  text-align: right; z-index: 3;
}
.telemetry {
  font-family: var(--mono); font-size: var(--step--1); color: var(--ink-2);
  letter-spacing: 0.12em; display: flex; flex-direction: column; gap: 0.5rem;
  align-items: flex-end;
}
.telemetry b { color: var(--ink); font-weight: 700; }
.telemetry .label { color: var(--brass-ink); }
.progress-rail {
  width: clamp(120px, 18vw, 200px); height: 2px; background: var(--line);
  position: relative; overflow: hidden;
}
.progress-rail span {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: var(--brass); transition: width .12s linear;
}

.scroll-hint {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  z-index: 3; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-2);
  display: flex; align-items: center; gap: 0.6rem; transition: opacity .4s;
}
.scroll-hint .line { width: 1px; height: 28px; background: var(--slate); position: relative; overflow: hidden; }
.scroll-hint .line::after {
  content: ""; position: absolute; inset: 0; background: var(--brass);
  transform: translateY(-100%); animation: drip 2.4s ease-in-out infinite;
}
@keyframes drip { 0%{transform:translateY(-100%)} 55%{transform:translateY(100%)} 100%{transform:translateY(100%)} }

.section-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: clamp(2.5rem,6vh,4rem); }
.section-head h2 { font-size: var(--step-3); max-width: 16ch; }

/* ====================================================================== */
/* MAKE — everything wooden, made to measure                              */
/* ====================================================================== */
.make { padding: clamp(4rem,9vh,7rem) 0; border-top: 1px solid var(--line); }
.make .lead { max-width: 44ch; margin-top: -0.4rem; margin-bottom: clamp(2.5rem,6vh,3.5rem); }
.make-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.make-item {
  background: var(--surface); padding: clamp(1.5rem,3vw,2.2rem);
  display: flex; flex-direction: column; gap: 0.45rem;
  min-height: clamp(150px, 22vh, 200px); transition: background .35s;
  position: relative;
}
.make-item:hover { background: #FFFFFF; }
.make-item .mi-num { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--slate); }
.make-item h3 { font-size: var(--step-2); font-weight: 600; margin-top: auto; }
.make-item p { color: var(--ink-2); font-size: var(--step--1); max-width: 32ch; }
.make-item::after {
  content: ""; position: absolute; right: clamp(1.5rem,3vw,2.2rem); top: clamp(1.5rem,3vw,2.2rem);
  width: 7px; height: 7px; border-top: 1px solid var(--brass); border-right: 1px solid var(--brass);
  transform: rotate(45deg); opacity: 0; transition: opacity .35s, transform .35s;
}
.make-item:hover::after { opacity: 0.8; transform: rotate(45deg) translate(2px,-2px); }
@media (min-width: 560px) { .make-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .make-grid { grid-template-columns: repeat(3, 1fr); } }
.make-bar {
  margin-top: 1px; display: flex; align-items: center; gap: clamp(0.8rem,2vw,1.3rem);
  flex-wrap: wrap; padding: clamp(1.4rem,3vw,1.9rem) clamp(1.5rem,3vw,2.2rem);
  background: var(--ink); color: #F4F4F4; border: 1px solid var(--ink); border-radius: 0;
}
.make-bar .ico {
  flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 100px;
  display: grid; place-items: center; background: var(--brass-ink); color: #fff;
  font-family: var(--display); font-weight: 700;
}
.make-bar p { font-family: var(--display); font-weight: 500; font-size: var(--step-1); letter-spacing: -0.01em; }
.make-bar p b { color: var(--brass-hi); font-weight: 600; }

/* ====================================================================== */
/* PROCESS — numbered sequence                                            */
/* ====================================================================== */
.process { padding: clamp(4rem,9vh,7rem) 0; border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.step {
  background: var(--paper); padding: clamp(1.6rem,3vw,2.2rem) 0;
  display: grid; grid-template-columns: 3.4rem 1fr;
  column-gap: clamp(1rem,3vw,1.6rem); row-gap: 0.45rem; align-items: baseline;
}
.step .n { grid-row: 1 / span 2; font-family: var(--display); font-weight: 700; font-size: var(--step-2); color: var(--brass); line-height: 1; }
.step .t { grid-column: 2; grid-row: 1; font-family: var(--display); font-weight: 600; font-size: var(--step-1); }
.step .d { grid-column: 2; grid-row: 2; color: var(--ink-2); max-width: 56ch; }
@media (min-width: 760px) {
  .step { grid-template-columns: 5rem 16ch 1fr; column-gap: clamp(1rem,3vw,2rem); align-items: baseline; }
  .step .n { grid-row: auto; }
  .step .t { grid-column: auto; grid-row: auto; }
  .step .d { grid-column: auto; grid-row: auto; }
}

/* ====================================================================== */
/* GALLERY — spinning, infinite auto-scroll                               */
/* ====================================================================== */
.gallery { padding: clamp(4rem,9vh,7rem) 0; overflow: hidden; }
.gallery .wrap { margin-bottom: clamp(2rem,5vh,3.2rem); }
.marquee {
  position: relative; width: 100%;
  -webkit-mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track {
  display: flex; gap: clamp(1rem, 2vw, 1.6rem); width: max-content;
  padding-inline: clamp(1rem,2vw,1.6rem);
  animation: marquee 56s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.tile {
  position: relative; flex: 0 0 auto;
  width: clamp(230px, 26vw, 360px); aspect-ratio: 1;
  border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 14px 34px rgba(27,30,33,0.10), 0 0 0 1px var(--line-2);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.tile:hover img { transform: scale(1.06); }
.tile figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem 1rem 0.85rem;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #fff;
  background: linear-gradient(transparent, rgba(20,22,24,0.62));
  opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s;
}
.tile:hover figcaption { opacity: 1; transform: none; }
.gallery .foot-note {
  margin-top: clamp(2rem,5vh,3rem); color: var(--ink-2); font-size: var(--step--1);
  display: flex; align-items: center; gap: 0.7rem;
}
.gallery .foot-note::before { content: ""; width: 1.8em; height: 1px; background: var(--brass); }

/* ====================================================================== */
/* CONTACT                                                                */
/* ====================================================================== */
.contact { padding: clamp(5rem,11vh,9rem) 0; border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem,6vw,5rem); }
.contact h2 { font-size: var(--step-4); font-weight: 700; max-width: 12ch; }
.contact .lead { margin-top: 1.2rem; max-width: 40ch; }
.call-block { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
.btn-call-lg {
  display: inline-flex; align-items: center; gap: 0.7em;
  background: var(--brass-ink); color: #FFFFFF; border-radius: 100px;
  padding: 0.95em 1.7em; font-family: var(--display); font-weight: 600;
  font-size: var(--step-1); letter-spacing: -0.01em;
  transition: transform .25s ease, background .25s ease;
}
.btn-call-lg:hover { background: var(--ink); transform: translateY(-2px); }
.btn-call-lg svg { width: 1em; height: 1em; }
.call-block .meta { font-family: var(--mono); font-size: var(--step--1); color: var(--ink-2); letter-spacing: 0.04em; }
.form .or { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); margin-bottom: 0.2rem; }
.form { display: grid; gap: 1.3rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field textarea, .field select {
  font-family: var(--body); font-size: var(--step-0); color: var(--ink);
  background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 0.7rem 0; transition: border-color .3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--slate); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brass); }
.field textarea { resize: vertical; min-height: 5rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 0.55em 1.1em; border: 1px solid var(--line);
  border-radius: 100px; font-size: var(--step--1); color: var(--ink-2); transition: all .25s;
}
.chip input:checked + span { background: var(--ink); color: #F4F4F4; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--brass-ink); outline-offset: 2px; }
.form .btn { justify-self: start; padding: 0.85em 1.6em; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }

/* ====================================================================== */
/* FOOTER                                                                 */
/* ====================================================================== */
.site-footer { padding: clamp(3rem,7vh,5rem) 0 2.5rem; border-top: 1px solid var(--line); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.foot-top .mark { font-family: var(--display); font-weight: 800; font-size: clamp(2.5rem,8vw,5rem); letter-spacing: -0.04em; line-height: 0.9; }
.foot-top .mark .dot { color: var(--brass); }
.brand-foot { display: flex; align-items: center; gap: clamp(0.9rem,2.5vw,1.5rem); }
.brand-foot .mark { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem,8vw,5rem); letter-spacing: -0.04em; line-height: 0.82; color: var(--ink); }
.kbc-lg {
  font-size: clamp(0.64rem,1.6vw,0.86rem); line-height: 1.7; letter-spacing: 0.2em;
  padding-left: clamp(1rem,2.5vw,1.5rem);
}
.foot-cols { display: flex; gap: clamp(2rem,6vw,5rem); flex-wrap: wrap; }
.foot-col h4 { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); margin-bottom: 0.8rem; font-weight: 400; }
.foot-col a, .foot-col p { display: block; color: var(--ink-2); font-size: var(--step--1); line-height: 1.9; }
.foot-col a:hover { color: var(--brass-ink); }
.foot-bottom { margin-top: clamp(2.5rem,6vh,4rem); padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; color: var(--slate); }

/* ====================================================================== */
/* MOTION — reveals                                                       */
/* ====================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ====================================================================== */
/* RESPONSIVE — mobile is designed, not shrunk                            */
/* ====================================================================== */
@media (max-width: 760px) {
  .nav { display: none; position: fixed; inset: 0 0 auto 0; top: 0;
    flex-direction: column; align-items: flex-start; gap: 0.2rem;
    background: rgba(244,244,244,0.96); backdrop-filter: blur(16px);
    padding: 5rem var(--gutter) 2rem; box-shadow: 0 12px 30px rgba(0,0,0,.08); }
  .nav.open { display: flex; }
  .nav a { font-size: var(--step-1); padding: 0.6rem 0; }
  .nav .btn { margin-top: 0.8rem; }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; z-index: 60; padding: 0.4rem; }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* hero: clean vertical stack — telemetry, product, copy (no overlaps) */
  .hero { height: 340vh; }
  .hero-stage {
    display: flex; flex-direction: column; justify-content: center;
    gap: clamp(0.9rem,2.5vh,1.5rem); padding: 5.5rem var(--gutter) 2rem;
    text-align: left;
  }
  .hero-canvas, .hero-poster { width: min(80vw, 38vh); margin: 0 auto; }
  .hero-copy { position: static; text-align: left; padding: 0; margin: 0; max-width: none; }
  .hero-copy h1 { font-size: clamp(2.2rem, 9vw, 3.1rem); }
  .hero-copy .eyebrow { font-size: 0.58rem; }
  .hero-copy .lead { font-size: var(--step--1); max-width: 42ch; }
  .hero-copy .btn-call { margin-top: 1rem; }
  .hero-top { position: static; order: -1; text-align: left; }
  .telemetry { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.9rem; font-size: 0.6rem; }
  .telemetry .progress-rail { width: 84px; }
  .scroll-hint { display: none; }

  .foot-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; -webkit-mask: none; mask: none; }
  .marquee-track { animation: none !important; transform: none !important; }
}
