/* ==========================================================
   Reuven Blaum — Architecture & Interior Design
   Visual language: the architectural drawing — hairlines,
   dimension lines, sheet numbers, warm lime-plaster tones.
   ========================================================== */

:root {
  --paper: #F2EFE9;
  --paper-2: #E8E3DA;
  --ink: #161614;
  --ink-2: #57544D;
  --ink-3: #8C887F;
  --line: rgba(22, 22, 20, .14);
  --wood: #8B6A52;
  --night: #121210;
  --night-line: rgba(242, 239, 233, .16);

  --serif: "Frank Ruhl Libre", "Times New Roman", serif;
  --sans: "IBM Plex Sans Hebrew", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "IBM Plex Sans Hebrew", monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1520px;
  --ease: cubic-bezier(.77, 0, .18, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --hdr-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--paper); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .03em; text-transform: uppercase; font-weight: 400; }
.serif { font-family: var(--serif); }
em { font-style: normal; font-family: var(--serif); font-weight: 300; color: var(--wood); }

/* ---------- reveal primitives ---------- */
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: block; transform: translateY(105%); transition: transform 1.2s var(--ease-out); }
.line:nth-child(2) > span { transition-delay: .08s; }
.line:nth-child(3) > span { transition-delay: .16s; }
.in .line > span, .line.in > span { transform: none; }

.reveal-up { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.reveal-up.in { opacity: 1; transform: none; }

.reveal-img { overflow: hidden; clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease); background: var(--paper-2); }
.reveal-img.in { clip-path: inset(0 0 0 0); }
.reveal-img img { width: 100%; height: 118%; object-fit: cover; transform: scale(1.12); transition: transform 2s var(--ease-out); will-change: transform; }
.reveal-img.in img { transform: scale(1); }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper);
  display: grid; place-content: center; justify-items: center; gap: 28px;
  transition: transform 1.1s var(--ease);
}
.loader.done { transform: translateY(-100%); }
.loader__draw { width: min(260px, 60vw); stroke: var(--ink); stroke-width: .8; }
.loader__draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease) forwards; }
.loader__draw path:nth-child(2) { animation-delay: .15s; }
.loader__draw path:nth-child(3) { animation-delay: .3s; stroke: var(--wood); }
.loader__draw path:nth-child(4) { animation-delay: .45s; }
.loader__draw path:nth-child(5) { animation-delay: .55s; }
.loader__draw .dim { animation-delay: .7s; stroke-width: .5; stroke: var(--ink-3); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader__name { display: grid; justify-items: center; gap: 6px; opacity: 0; animation: fade .8s .8s forwards; }
.loader__name span:first-child { font: 400 22px/1 var(--serif); }
.loader__name .mono { font-size: 10px; color: var(--ink-3); letter-spacing: .24em; }
@keyframes fade { to { opacity: 1; } }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--hdr-h);
  display: flex; align-items: center; gap: 40px;
  padding-inline: var(--gutter);
  color: var(--paper);
  transition: color .5s, background-color .5s, transform .6s var(--ease), height .5s var(--ease);
}
.hdr::after { content: ""; position: absolute; inset: auto var(--gutter) 0; height: 1px; background: currentColor; opacity: .18; }
.hdr.solid { color: var(--ink); background: rgba(242, 239, 233, .86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); height: 68px; }
.hdr.solid.dark { color: var(--paper); background: rgba(18, 18, 16, .74); }
.hdr.solid.dark .hdr__call:hover span { color: var(--ink); }
.hdr.hide { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 14px; margin-inline-end: auto; }
.brand__mark { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.brand__txt { display: grid; line-height: 1.15; }
.brand__txt b { font: 500 19px/1.1 var(--serif); letter-spacing: .01em; }
.brand__txt small { font-size: 11.5px; opacity: .72; letter-spacing: .02em; }
.nav { display: flex; gap: 34px; font-size: 14.5px; font-weight: 400; }
.nav a, .ftr__nav a { position: relative; }
.nav a::after, .ftr__nav a::after, .link-u::after {
  content: ""; position: absolute; inset: auto 0 -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.nav a:hover::after, .ftr__nav a:hover::after, .link-u:hover::after { transform: scaleX(1); transform-origin: right; }
.hdr__call { border: 1px solid currentColor; border-radius: 99px; padding: 8px 16px; transition: background-color .4s, color .4s; }
.hdr__call:hover { background: currentColor; }
.hdr__call:hover span { color: var(--ink); }
.hdr.solid .hdr__call:hover span { color: var(--paper); }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger i { position: absolute; inset-inline: 10px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger i:first-child { top: 17px; } .burger i:last-child { top: 26px; }
.menu-open .burger i:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger i:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--hdr-h) + 40px) var(--gutter) max(32px, env(safe-area-inset-bottom));
  clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease); visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .hdr { color: var(--ink); background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu__nav { display: grid; }
.menu__nav a { display: flex; align-items: baseline; gap: 16px; font: 300 clamp(40px, 11vw, 64px)/1.25 var(--serif); border-bottom: 1px solid var(--line); padding-block: 6px; opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .8s var(--ease-out); }
.menu__nav a .mono { color: var(--ink-3); }
.menu-open .menu__nav a { opacity: 1; transform: none; }
.menu-open .menu__nav a:nth-child(1) { transition-delay: .25s; } .menu-open .menu__nav a:nth-child(2) { transition-delay: .3s; }
.menu-open .menu__nav a:nth-child(3) { transition-delay: .35s; } .menu-open .menu__nav a:nth-child(4) { transition-delay: .4s; }
.menu-open .menu__nav a:nth-child(5) { transition-delay: .45s; }
.menu__foot { display: flex; justify-content: space-between; font-size: 15px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 52px; padding-inline: 28px; border-radius: 99px;
  font-size: 15px; font-weight: 400; position: relative; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .6s var(--ease); }
.btn:hover::before { transform: none; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light::before { background: var(--wood); }
.btn--light:hover { color: var(--paper); }
.btn--line { border: 1px solid var(--ink); }
.btn--line::before { background: var(--ink); }
.btn--line:hover { color: var(--paper); }
.btn--full { width: 100%; }
.link-u { position: relative; font-size: 15px; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; color: var(--paper); overflow: hidden; background: var(--night); }
.hero__media, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transition: opacity 1.6s ease; }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.hero__slide.is-active img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.hero__shade { position: absolute; inset: 0; z-index: 2; background:
  linear-gradient(180deg, rgba(10,10,9,.45) 0%, rgba(10,10,9,0) 22%, rgba(10,10,9,0) 45%, rgba(10,10,9,.72) 100%); }
.hero__content { position: absolute; inset: auto 0 clamp(96px, 15vh, 150px); z-index: 3; margin-inline: auto; left: 0; right: 0; }
.eyebrow { margin-bottom: 22px; opacity: .85; }
.hero__title { font: 300 clamp(54px, 10.5vw, 168px)/.95 var(--serif); letter-spacing: -.02em; }
.hero__title em { color: #D9C2AE; }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: 34px; }
.hero__lead { max-width: 440px; font-size: 17px; opacity: .9; }
.hero__ctas { display: flex; align-items: center; gap: 28px; }
.reveal-up:nth-of-type(n) { transition-delay: var(--d, 0s); }
.hero__meta { position: absolute; inset: auto 0 0; z-index: 3; margin-inline: auto; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; height: 72px; border-top: 1px solid rgba(242,239,233,.2); }
.hero__counter { display: flex; align-items: center; gap: 14px; }
.hero__bar { width: 90px; height: 1px; background: rgba(242,239,233,.3); position: relative; overflow: hidden; }
.hero__bar i { position: absolute; inset: 0; background: var(--paper); transform: scaleX(0); transform-origin: right; }
.hero__bar i.run { animation: bar 6s linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }
.hero__caption { opacity: .8; }
.hero__name { display: inline-block; transition: opacity .6s, transform .6s var(--ease-out); }
.hero__name.swap { opacity: 0; transform: translateY(6px); }
.hero__scroll { display: flex; align-items: center; gap: 12px; }
.hero__scroll span { width: 1px; height: 30px; background: rgba(242,239,233,.3); position: relative; overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; inset: 0; background: var(--paper); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- marquee ---------- */
.marquee { border-bottom: 1px solid var(--line); overflow: hidden; padding-block: 18px; color: var(--ink-2); }
.marquee__track { display: flex; gap: 28px; width: max-content; animation: marquee 48s linear infinite; }
.marquee__track i { font-style: normal; color: var(--wood); }
@keyframes marquee { to { transform: translateX(50%); } }

/* ---------- sections ---------- */
.sec { padding-block: clamp(96px, 14vw, 200px); }
.sec__label { display: flex; gap: 18px; color: var(--ink-3); align-items: center; }
.sec__label span:first-child { color: var(--ink); }
.sec__label span:first-child::after { content: ""; display: inline-block; width: 36px; height: 1px; background: currentColor; vertical-align: middle; margin-inline-start: 18px; opacity: .5; }
.sec__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: start; margin-bottom: clamp(56px, 8vw, 120px); }
.sec__head .sec__label { grid-column: 1 / 4; padding-top: 1.1em; }
.h2 { grid-column: 4 / 13; font: 300 clamp(42px, 6.6vw, 104px)/1 var(--serif); letter-spacing: -.02em; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; }

/* ---------- about ---------- */
.about .sec__label { grid-column: 1 / 4; padding-top: .9em; }
.statement { grid-column: 4 / 13; font: 300 clamp(28px, 3.7vw, 58px)/1.22 var(--serif); letter-spacing: -.01em; }
.statement .w { opacity: .14; transition: opacity .3s linear; }
.about__img { grid-column: 1 / 5; grid-row: 2 / 4; margin-top: clamp(64px, 9vw, 140px); aspect-ratio: 3 / 4; }
.about__cols { grid-column: 6 / 13; grid-row: 2; margin-top: clamp(64px, 9vw, 140px); display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-self: end; color: var(--ink-2); font-size: 16px; }
.about__sign { grid-column: 1 / -1; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 16px; color: var(--ink); }
.about__sign .serif { font-size: clamp(24px, 2.4vw, 34px); font-weight: 300; line-height: 1.2; }
.about__sign .mono { color: var(--ink-3); }

/* ---------- projects ---------- */
.projects { padding-top: 0; }
.pgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(64px, 9vw, 140px) 24px; }
.pj { display: block; position: relative; }
.pj figure { position: relative; }
.pj figure::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: 0; transition: opacity .8s var(--ease-out); pointer-events: none; }
.pj:hover figure::after { opacity: .08; }
.pj:hover img { transform: scale(1.035) !important; transition-duration: 1.4s; }
.pj__cap { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 18px; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 18px; }
.pj__cap .mono:first-child { color: var(--wood); }
.pj__cap h3 { font: 400 clamp(22px, 2vw, 30px)/1.1 var(--serif); }
.pj__meta { color: var(--ink-3); font-size: 11px; }
.pj--a { grid-column: 1 / 9; } .pj--a figure { aspect-ratio: 3 / 2; }
.pj--b { grid-column: 10 / 13; margin-top: 38%; } .pj--b figure { aspect-ratio: 3 / 4; }
.pj--c { grid-column: 2 / 7; } .pj--c figure { aspect-ratio: 4 / 5; }
.pj--d { grid-column: 8 / 13; margin-top: 24%; } .pj--d figure { aspect-ratio: 1 / 1; }
.pj--e { grid-column: 1 / 13; } .pj--e figure { aspect-ratio: 21 / 9; }
.pj--f { grid-column: 4 / 10; } .pj--f figure { aspect-ratio: 3 / 2; }
.projects__all { display: flex; justify-content: center; margin-top: clamp(72px, 10vw, 140px); }

/* ---------- horizontal interiors ---------- */
.hs { position: relative; background: var(--paper-2); }
.hs__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(32px, 5vh, 64px); }
.hs__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: end; }
.hs__head .sec__label { grid-column: 1 / 4; align-self: start; padding-top: .9em; }
.hs__head .h2 { grid-column: 4 / 10; }
.hs__hint { grid-column: 10 / 13; justify-self: end; color: var(--ink-3); }
.hs__track { display: flex; align-items: flex-end; gap: clamp(16px, 2vw, 32px); padding-inline: var(--gutter); width: max-content; will-change: transform; }
.hs__item { flex: none; height: clamp(260px, 46vh, 520px); aspect-ratio: 4 / 3; }
.hs__item--t { aspect-ratio: 3 / 4; height: clamp(300px, 54vh, 600px); }
.hs__item--s { aspect-ratio: 1 / 1; height: clamp(220px, 36vh, 420px); }
.hs__item img { width: 100%; height: calc(100% - 34px); object-fit: cover; }
.hs__item figcaption { height: 34px; display: flex; align-items: flex-end; gap: 12px; color: var(--ink-2); }
.hs__item figcaption span { color: var(--wood); }

/* ---------- numbers ---------- */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: clamp(80px, 10vw, 140px); }
.num { display: grid; grid-template-columns: auto 1fr; align-items: start; padding-inline: clamp(12px, 2vw, 32px); border-inline-start: 1px solid var(--line); }
.num:first-child { border-inline-start: 0; padding-inline-start: 0; }
.num b { font: 300 clamp(52px, 6.4vw, 104px)/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.num sup { font: 300 clamp(24px, 2.4vw, 40px)/1 var(--serif); color: var(--wood); padding-top: .2em; }
.num span { grid-column: 1 / -1; margin-top: 18px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- services ---------- */
.services { padding-top: 0; }
.svc { border-top: 1px solid var(--ink); }
.svc__row {
  display: grid; grid-template-columns: 1fr 4fr 5fr 1fr; gap: 24px; align-items: center;
  padding-block: clamp(28px, 3.4vw, 48px); border-bottom: 1px solid var(--line);
  position: relative; cursor: default;
}
.svc__row::before { content: ""; position: absolute; inset: 0; background: var(--paper-2); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: -1; }
.svc__row:hover::before { transform: scaleY(1); }
.svc { position: relative; z-index: 0; isolation: isolate; }
.svc__n { color: var(--ink-3); }
.svc__row h3 { font: 300 clamp(36px, 5vw, 76px)/1 var(--serif); letter-spacing: -.02em; transition: transform .7s var(--ease), color .5s; }
.svc__row:hover h3 { transform: translateX(-18px); color: var(--wood); }
.svc__row p { color: var(--ink-2); font-size: 16px; max-width: 520px; }
.svc__arrow { justify-self: end; font-size: 26px; transition: transform .6s var(--ease); }
.svc__row:hover .svc__arrow { transform: translateX(-10px); }
.svc__preview {
  position: fixed; top: 0; left: 0; z-index: 30; width: 300px; aspect-ratio: 4 / 5; pointer-events: none;
  overflow: hidden; clip-path: inset(50% 50% 50% 50%); transition: clip-path .6s var(--ease);
}
.svc__preview.on { clip-path: inset(0 0 0 0); }
.svc__preview img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1s var(--ease-out); }
.svc__preview.on img { transform: scale(1); }

/* ---------- process ---------- */
.process { background: var(--paper-2); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; padding-top: 44px; }
.steps::before { content: ""; position: absolute; top: 6px; inset-inline: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform 2.2s var(--ease); }
.steps.in::before { transform: scaleX(1); }
.step { position: relative; display: grid; gap: 10px; align-content: start; opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.steps.in .step { opacity: 1; transform: none; }
.steps.in .step:nth-child(2) { transition-delay: .3s; } .steps.in .step:nth-child(3) { transition-delay: .6s; }
.steps.in .step:nth-child(4) { transition-delay: .9s; } .steps.in .step:nth-child(5) { transition-delay: 1.2s; }
.step__dot { position: absolute; top: -44px; inset-inline-start: 0; width: 13px; height: 13px; border: 1px solid var(--ink); background: var(--paper-2); border-radius: 50%; }
.step:last-child .step__dot { background: var(--wood); border-color: var(--wood); }
.step .mono { color: var(--wood); }
.step h3 { font: 400 clamp(22px, 1.9vw, 28px)/1.15 var(--serif); }
.step p { font-size: 15px; color: var(--ink-2); max-width: 240px; }

/* ---------- quote ---------- */
.quote { position: relative; min-height: 92vh; min-height: 92svh; display: grid; align-items: center; color: var(--paper); overflow: hidden; background: var(--night); }
.quote__bg { position: absolute; inset: -12% 0; }
.quote__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.quote::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(270deg, rgba(12,12,10,.78) 0%, rgba(12,12,10,.35) 60%, rgba(12,12,10,.15) 100%); }
.quote blockquote { position: relative; z-index: 2; }
.quote__txt { font: 300 clamp(40px, 6.6vw, 112px)/1.04 var(--serif); letter-spacing: -.02em; }
@media (min-width: 861px) { .quote__txt .line > span { white-space: nowrap; } }
.quote__txt em { color: #D9C2AE; }
.quote cite { display: block; margin-top: 32px; font-style: normal; opacity: .8; }

/* ---------- contact ---------- */
.contact { background: var(--night); color: var(--paper); padding-block: clamp(96px, 12vw, 180px) clamp(64px, 8vw, 120px); }
.contact .sec__label { color: rgba(242,239,233,.5); }
.contact .sec__label span:first-child { color: var(--paper); }
.contact__title { font: 300 clamp(60px, 13vw, 220px)/.92 var(--serif); letter-spacing: -.03em; margin-top: 36px; }
.contact__title em { color: #D9C2AE; }
.contact__grid { display: grid; grid-template-columns: 5fr 1fr 6fr; margin-top: clamp(56px, 7vw, 110px); padding-top: 48px; border-top: 1px solid var(--night-line); }
.contact__direct { grid-column: 1; display: grid; gap: 22px; align-content: start; justify-items: start; }
.contact__phone { font: 300 clamp(36px, 4vw, 60px)/1 var(--serif); direction: ltr; letter-spacing: -.01em; transition: color .4s; }
.contact__phone:hover { color: #D9C2AE; }
.contact__direct p { color: rgba(242,239,233,.68); font-size: 16px; }
.form { grid-column: 3; display: grid; gap: 8px; }
.fld { position: relative; display: block; border-bottom: 1px solid var(--night-line); transition: border-color .4s; }
.fld:focus-within { border-color: var(--paper); }
.fld input, .fld select, .fld textarea {
  width: 100%; background: transparent; border: 0; outline: 0; color: var(--paper);
  font: 300 19px/1.4 var(--sans); padding: 30px 0 12px; resize: none; border-radius: 0; appearance: none; -webkit-appearance: none;
}
.fld select option { color: var(--ink); }
.fld span { position: absolute; inset-inline-start: 0; top: 30px; color: rgba(242,239,233,.55); font-size: 17px; pointer-events: none; transform-origin: right top; transition: transform .45s var(--ease-out), color .3s; }
.fld input:focus + span, .fld input:not(:placeholder-shown) + span,
.fld textarea:focus + span, .fld textarea:not(:placeholder-shown) + span,
.fld select:focus + span, .fld select:valid + span { transform: translateY(-22px) scale(.72); color: rgba(242,239,233,.8); }
.fld.err { border-color: #E08B6F; }
.form__err { color: #E8A48D; font-size: 14px; padding-top: 6px; }
.form .btn { margin-top: 26px; }

/* ---------- footer ---------- */
.ftr { background: var(--night); color: var(--paper); padding-bottom: max(28px, env(safe-area-inset-bottom)); overflow: hidden; }
.ftr__big { font-size: clamp(64px, 17vw, 300px); line-height: .8; letter-spacing: -.04em; font-weight: 300; color: rgba(242,239,233,.08); white-space: nowrap; padding-top: 24px; user-select: none; }
.ftr__row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 28px; border-top: 1px solid var(--night-line); color: rgba(242,239,233,.6); flex-wrap: wrap; }
.ftr__nav { display: flex; gap: 28px; font-size: 14px; }

/* ---------- floating WhatsApp + cursor ---------- */
.fab {
  position: fixed; z-index: 40; inset: auto auto max(20px, env(safe-area-inset-bottom)) 20px;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wood); color: var(--paper); box-shadow: 0 10px 30px rgba(18, 18, 16, .22);
  transform: translateY(160%); transition: transform .8s var(--ease), background-color .4s;
}
.fab.show { transform: none; }
.fab:hover { background: var(--ink); }
.fab svg { width: 24px; fill: currentColor; }

.cursor { position: fixed; top: 0; left: 0; z-index: 60; pointer-events: none; }
.cursor span {
  position: absolute; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  background: var(--paper); color: var(--ink); display: grid; place-items: center;
  font: 400 11px/1 var(--mono); letter-spacing: .14em;
  transform: scale(0); transition: transform .5s var(--ease-out);
}
.cursor.on span { transform: scale(1); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .hdr__call { display: none; }
  .about__cols { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 56px; }
  .steps::before { display: none; }
  .step { border-top: 1px solid var(--ink); padding-top: 22px; }
  .step__dot { display: none; }
}

@media (max-width: 860px) {
  :root { --hdr-h: 68px; }
  body { font-size: 16px; }
  .nav { display: none; }
  .burger { display: block; margin-inline-end: -10px; }
  .hdr.solid { height: 60px; }

  .hero__row { flex-direction: column; align-items: flex-start; gap: 26px; }
  .hero__lead { font-size: 16px; }
  .hero__caption { display: none; }
  .hero__content { bottom: 104px; }

  .sec__head, .grid, .hs__head { grid-template-columns: 1fr; }
  .sec__head .sec__label, .h2, .about .sec__label, .statement, .about__img, .about__cols,
  .hs__head .sec__label, .hs__head .h2, .hs__hint { grid-column: 1 / -1; grid-row: auto; }
  .h2 { margin-top: 22px; }
  .statement { margin-top: 26px; }
  .about__img { aspect-ratio: 4 / 5; margin-top: 56px; }
  .about__cols { margin-top: 40px; }

  .pgrid { grid-template-columns: 1fr; gap: 64px; }
  .pj { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .pj--b figure, .pj--c figure { aspect-ratio: 4 / 5; }
  .pj--e figure { aspect-ratio: 4 / 3; }
  .pj--b, .pj--d { width: 86%; margin-inline-start: auto; }
  .pj__cap { grid-template-columns: auto 1fr; }
  .pj__meta { grid-column: 2; }

  /* horizontal strip becomes a native swipe carousel */
  .hs { padding-block: 88px; height: auto !important; }
  .hs__sticky { position: static; height: auto; overflow: visible; gap: 36px; }
  .hs__hint { justify-self: start; margin-top: 14px; }
  .hs__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; scrollbar-width: none; padding-bottom: 4px; align-items: flex-end; }
  .hs__track::-webkit-scrollbar { display: none; }
  .hs__item, .hs__item--t, .hs__item--s { scroll-snap-align: start; height: auto; width: 78vw; aspect-ratio: auto; }
  .hs__item img { height: auto; aspect-ratio: 4 / 5; }
  .hs__item--s img { aspect-ratio: 1 / 1; }

  .nums { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .num:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }

  .svc__row { grid-template-columns: auto 1fr; gap: 10px 18px; }
  .svc__row h3 { grid-column: 2; }
  .svc__row p { grid-column: 2; }
  .svc__arrow { display: none; }
  .svc__row:hover h3 { transform: none; }

  .steps { grid-template-columns: 1fr; row-gap: 0; padding-top: 0; }
  .step { grid-template-columns: 76px 1fr; column-gap: 12px; padding-block: 24px; border-top: 1px solid var(--line); }
  .step .mono { grid-row: 1 / 3; padding-top: 6px; }
  .step p { max-width: none; }

  .quote { min-height: 74svh; }

  .contact__grid { grid-template-columns: 1fr; gap: 56px; }
  .form { grid-column: 1; }
  .ftr__row { flex-direction: column; align-items: flex-start; }
  .ftr__nav { flex-wrap: wrap; gap: 18px; }
}

@media (hover: none), (pointer: coarse) {
  .cursor, .svc__preview { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
