/* ============================================================
   טלי יפת — עיצוב פנים והום־סטיילינג · עמוד אחד
   ============================================================ */

:root{
  --bg:#FBFAF7;
  --sand:#F3EFE9;
  --sand-deep:#ECE5DA;
  --line:#E6E0D6;
  --ink:#2C2A26;
  --muted:#6B6459;
  --faint:#8A8275;
  --clay:#B08463;
  --clay-dark:#96694B;
  --white:#FFFFFF;

  --header-h:76px;
  --wrap:1180px;
  --pad:clamp(20px,5vw,64px);
  --section:clamp(76px,11vw,150px);
  --radius:14px;
  --shadow:0 24px 60px -34px rgba(44,42,38,.42);
  --shadow-sm:0 12px 30px -20px rgba(44,42,38,.4);
  --ease:cubic-bezier(.2,.7,.2,1);

  --font:"Assistant","Segoe UI",Arial,"Helvetica Neue",sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:var(--header-h);-webkit-text-size-adjust:100%;overflow-x:hidden}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font);
  font-size:18px;
  line-height:1.75;
  font-weight:400;
  overflow-x:hidden;
  overflow-x:clip; /* clip doesn't make body a scroll container, so position:sticky keeps working */
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img{max-width:100%;display:block}
a{color:var(--clay-dark);text-decoration:none}
a:hover{color:var(--clay)}
button{font-family:inherit}
h1,h2,h3{font-weight:700;letter-spacing:-.02em;line-height:1.12;margin:0}
p{margin:0 0 1.1em}
p:last-child{margin-bottom:0}

.wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:var(--pad)}
.section{padding-block:var(--section)}
.section--sand{background:var(--sand)}
.section--line{border-top:1px solid var(--line)}

.eyebrow{
  font-size:13px;font-weight:700;letter-spacing:.18em;
  color:var(--clay-dark);margin:0 0 18px;
}
.section-head{max-width:640px;margin-bottom:clamp(38px,6vw,68px)}
.section-head h2{font-size:clamp(2rem,4.6vw,3.3rem)}
.section-head p{margin-top:18px;color:var(--muted);font-size:1.05rem}

.btn{
  display:inline-flex;align-items:center;gap:10px;
  padding:15px 28px;border-radius:999px;
  font-weight:700;font-size:15px;letter-spacing:.02em;
  border:1px solid transparent;cursor:pointer;
  transition:transform .25s var(--ease),background .25s var(--ease),color .25s var(--ease);
}
.btn--clay{background:var(--clay);color:#fff}
.btn--clay:hover{background:var(--clay-dark);color:#fff;transform:translateY(-2px)}
.btn--ghost{background:transparent;border-color:var(--ink);color:var(--ink)}
.btn--ghost:hover{background:var(--ink);color:var(--bg)}
.btn svg{width:19px;height:19px;flex:none}

/* reveal on scroll */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .8s var(--ease),transform .8s var(--ease)}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}}

/* ================= HEADER / NAV ================= */
/* floating centered glass pill (styles come from .glass) */
.header{
  position:fixed;inset-block-start:14px;inset-inline:0;z-index:50;
  display:flex;justify-content:center;pointer-events:none;
}
.header__inner.glass{
  pointer-events:auto;display:flex;align-items:center;gap:4px;
  padding:6px;border-radius:12px;
}
.nav{display:flex;align-items:center;gap:2px}
.nav a{
  font-size:14.5px;font-weight:600;color:rgb(44 42 38 / .82);line-height:1;
  padding:10px 16px;border-radius:8px;
  transition:color .2s var(--ease),background .2s var(--ease);
}
.nav a:hover{color:var(--ink);background:rgb(255 255 255 / .4)}
.nav a.active{color:var(--ink);background:rgb(255 255 255 / .55)}
.nav a.nav__cta{background:var(--clay);color:#fff;margin-inline-start:6px}
.nav a.nav__cta:hover{background:var(--clay-dark);color:#fff}

/* same pill on every screen size: only tighten spacing on very narrow phones */
@media (max-width:420px){
  .header{inset-block-start:10px}
  .nav a{padding:10px 12px;font-size:14px}
  .nav a.nav__cta{margin-inline-start:4px}
}

/* ================= HERO (full-bleed uncropped image bleeding into the page) ================= */
.hero{
  /* overflow:clip, not hidden: hidden would turn the hero into a scroll container and break the sticky box */
  position:relative;background:var(--bg);overflow:clip;
}
.hero__bg{
  position:relative;z-index:0;width:100%;pointer-events:none;font-size:0;line-height:0;
}
.hero__bg img{width:100%;height:auto;display:block}
/* layer over the whole image; the box sits at its bottom-left and sticks to the viewport bottom */
.hero__inner{
  position:absolute;inset:0;z-index:1;
  display:flex;flex-direction:column;justify-content:flex-end;
  /* bottom padding = where the box stops at the end of the hero (100px above the photo bottom) */
  padding:calc(var(--header-h) + 20px) var(--pad) calc(clamp(20px,4vw,40px) + 100px);
}
.hero__box.glass{
  /* whole-pixel offset: a fractional sticky position made the edges shimmer while scrolling */
  position:sticky;bottom:32px;
  margin-right:auto;width:min(540px,100%);
  min-height:min(440px,calc(100svh - var(--header-h) - 60px));
  /* centered card; space-evenly with no vertical padding: top edge, logo, title, text, bottom edge all get the same gap */
  display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;
  gap:20px;text-align:center;
  padding:20px clamp(28px,3.4vw,44px);
  /* the blur lives on an oversized ::before that this box clips. Blurring on the box itself only samples
     pixels inside its own rectangle, which leaves hard lines/halos where photo detail crosses the edges */
  overflow:hidden;
  -webkit-backdrop-filter:none;backdrop-filter:none;
  /* the hero photo is a cutout with a hard dark-to-white edge right under this box; a light tint that
     thickens toward the bottom hides that seam without changing the look at the top */
  background:linear-gradient(to bottom,
    lch(var(--glass-l) var(--glass-c) var(--glass-h) / var(--glass-a)) 0%,
    lch(var(--glass-l) var(--glass-c) var(--glass-h) / calc(var(--glass-a) + .22)) 100%);
}
.hero__box.glass::before{
  content:"";position:absolute;inset:-60px;z-index:-1;pointer-events:none;
  /* stronger blur than the other glass boxes: 10px can't melt the photo's cutout edge */
  -webkit-backdrop-filter:blur(calc(var(--glass-blur) * 2.4)) saturate(var(--glass-saturate)) brightness(var(--glass-bright));
  backdrop-filter:blur(calc(var(--glass-blur) * 2.4)) saturate(var(--glass-saturate)) brightness(var(--glass-bright));
}
/* brand zone: logo as a masthead
   (frameless crop — the original PNG's 2px frame shimmered when scaled) */
.hero__brand{display:flex;flex-direction:column;align-items:center}
.hero__logo{width:min(250px,64%);height:auto;display:block;margin:0}
.hero h1{
  font-size:clamp(2rem,3.5vw,2.85rem);color:var(--ink);line-height:1.16;
  max-width:14ch;text-wrap:balance;
}
.hero__lead{
  margin:0;max-width:44ch;line-height:1.75;
  font-size:clamp(1rem,1.4vw,1.1rem);color:rgb(44 42 38 / .78);text-wrap:balance;
}
@media (max-width:700px),(max-aspect-ratio:1/1){
  /* the photo is too short on phones to hold the box: it drops below and overlaps the image edge */
  .hero__inner{position:relative;inset:auto;display:block;padding:0 var(--pad) 32px;margin-top:-196px}
  .hero__logo{width:min(190px,60%)}
  .hero__box.glass{position:relative;bottom:auto;width:auto;min-height:0;gap:20px;background:rgb(255 255 255 / .75);color:var(--ink);border-color:var(--line)}
  .hero__box.glass::before{display:none}
  .hero h1{font-size:clamp(1.7rem,7vw,2.2rem)}
  .hero__lead{color:var(--muted)}
}

/* ================= ABOUT (large photo beside the full story) ================= */
.about2{
  display:flex;align-items:flex-start;gap:clamp(32px,6vw,80px);
}
.about2__photo{flex:0 0 44%;min-width:0}
.about2__photo img{
  border-radius:var(--radius);box-shadow:var(--shadow);
  aspect-ratio:4/5;object-fit:cover;width:100%;display:block;
}

.about2__body{flex:1;min-width:0;padding-top:6px}

.about2__more{margin:0}
.about2__more p{color:var(--muted)}
.about2__more .about2__sign{
  margin-top:22px;font-weight:700;font-size:15px;letter-spacing:.04em;color:var(--clay-dark);
}

@media (max-width:820px),(max-aspect-ratio:1/1){
  .about2{flex-direction:column}
  .about2__photo{flex-basis:auto;max-width:420px;margin-inline:auto}
}

/* ================= SPECIALTIES (auto-cycling, Duna-style) ================= */
/* the image column carries inner padding so the grid row is always taller than the list in any state;
   the list only changes inside that fixed row, so switching items never moves the page */
#specialties{padding-bottom:calc(var(--section) + clamp(24px,4vw,56px))}
.spec{
  display:grid;grid-template-columns:1fr 1.05fr;
  gap:clamp(30px,5vw,72px);align-items:stretch;
}
.spec__list{align-self:center}
.spec__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.spec__item{
  position:relative;width:100%;text-align:start;cursor:pointer;
  display:flex;align-items:flex-start;gap:16px;
  padding:18px 20px;border:0;border-radius:8px;overflow:hidden;
  background:transparent;color:var(--ink);
  transition:background .45s var(--ease);
}
.spec__item:hover{background:rgba(236,229,218,.5)}
.spec__item.is-active{background:var(--sand)}
.spec__item.is-active:hover{background:var(--sand)}
.spec__ico{flex:none;width:26px;height:26px;margin-top:2px;color:var(--faint);transition:color .4s var(--ease)}
.spec__ico svg{width:100%;height:100%;display:block}
.spec__item.is-active .spec__ico{color:var(--clay-dark)}
.spec__body{display:flex;flex-direction:column;min-width:0}
.spec__title{font-weight:700;font-size:1.12rem;line-height:1.45}
/* animate the real height (grid 0fr -> 1fr) instead of max-height: the closing and opening
   descriptions then move with the same timing, so the list never grows mid-switch and the page doesn't jump */
.spec__desc{
  display:grid;grid-template-rows:0fr;
  color:var(--muted);font-size:.97rem;line-height:1.65;
  opacity:0;margin-top:0;
  transition:grid-template-rows .5s var(--ease),margin-top .5s var(--ease),opacity .35s var(--ease);
}
.spec__desc > span{overflow:hidden;min-height:0}
.spec--measure .spec__desc{transition:none}
.spec__item.is-active .spec__desc{grid-template-rows:1fr;opacity:1;margin-top:8px}

.spec__media{position:relative;padding-block:clamp(28px,4vw,56px);display:flex;flex-direction:column;justify-content:center}
.spec__frame{
  position:relative;border-radius:8px;overflow:hidden;
  aspect-ratio:4/3;background:var(--sand);box-shadow:var(--shadow);
}
/* the new photo fades in ON TOP of the previous one, which stays fully visible underneath,
   so a click looks exactly like the automatic change (no dip to the empty frame when clicking fast) */
.spec__frame img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:0;z-index:0;transform:scale(1);
  transition:opacity 1.5s cubic-bezier(.45,0,.55,1);
}
.spec__frame img.is-prev{opacity:1;z-index:1;transition:none}
.spec__frame img.is-active{opacity:1;z-index:2}
@media (prefers-reduced-motion:reduce){
  .spec__frame img{transition:opacity .25s linear}
}
@media (max-width:820px),(max-aspect-ratio:1/1){
  .spec{grid-template-columns:1fr;gap:26px}
  .spec__media{order:-1;width:100%;max-width:520px;margin-inline:auto;padding-block:0}
}

/* ================= PROJECTS (picker card <-> in-place gallery) ================= */
/* the beige panel is painted by ::before, inset 200px from each side.
   NOTE: the section keeps its own size and layout, so nothing inside it (gallery, text) changes size. */
.proj-section{
  /* 1 : 10 : 1 horizontally -> each side gutter is 1/12 of the section width (not 100vw: that ignores the scrollbar) */
  --proj-inset:8.3333%;
  --proj-inset-block:50px;
  /* same page background as the section above it */
  position:relative;overflow:clip;background:var(--bg);
  margin:0;
}
.proj-section::before{
  content:"";position:absolute;z-index:0;pointer-events:none;
  inset:var(--proj-inset-block) var(--proj-inset);
  background:var(--sand);border-radius:clamp(18px,2vw,28px);
  box-shadow:0 0 0 1px rgb(44 42 38 / .08);
}
@media (max-width:1200px),(max-aspect-ratio:1/1){
  .proj-section{--proj-inset:max(10px,8.3333%);--proj-inset-block:24px}
}
.proj-section .wrap{position:relative;z-index:1}

/* the open project's photo, blurred and dimmed, fills the panel behind everything */
.proj-bg{
  position:absolute;inset:var(--proj-inset-block) var(--proj-inset);z-index:0;
  border-radius:clamp(18px,2vw,28px);overflow:hidden;
  background-size:cover;background-position:center;
  opacity:0;
  transition:opacity 1s var(--ease);
  pointer-events:none;
}
/* the blur lives on an oversized inner layer that the panel clips, so the panel's own
   edges stay crisp instead of fading out (edge softness cut by ~80%) */
.proj-bg::before{
  content:"";position:absolute;inset:-18px;
  background-image:inherit;background-size:cover;background-position:center;
  filter:blur(22px) brightness(.5);
}
.proj-section.is-open .proj-bg{opacity:1}


/* desktop: heading beside the gallery, whole section = viewport minus 100px */
/* desktop projects grid: wide enough AND wider than tall (1:1 exactly counts as mobile) */
@media (min-width:901px) and (min-aspect-ratio:1001/1000){
  .proj-section.section{
    --proj-pad:clamp(20px,3.5vh,40px);
    height:calc(100svh - 100px);min-height:520px;
    padding-block:var(--proj-pad);
    display:flex;align-items:center;
  }
  .proj-section .wrap{
    width:100%;
    /* grid is centered in the section; both columns start at the same top line */
    display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,2fr);
    align-items:start;gap:clamp(28px,4vw,64px);
  }
  /* eyebrow's line-height leaves a gap above the glyphs; pull it up so the text top meets the box top */
  .proj-section #projHead{margin-bottom:0;margin-top:-26px}
  .proj-section #projHead h2{font-size:clamp(1.9rem,3.4vw,2.8rem)}
  /* image width derived from the available height: section - padding - box padding - title row - thumbs row - gaps, x 3/2 */
  .proj-section .proj-carousel{
    width:100%;justify-self:center;
    max-width:calc(max(360px, (100svh - 100px - 2 * var(--proj-pad) - 44px - 40px - 52px - 36px) * 1.5) + 46px);
  }
  /* title row and thumbs keep their space when closed, so opening a project never moves the image */
  .proj-section .proj-title-float{display:flex;visibility:hidden;min-height:40px}
  .proj-section .proj-thumbs{display:flex;visibility:hidden;min-height:52px}
  .proj-section.is-open .proj-title-float,.proj-section.is-open .proj-thumbs{visibility:visible}
}
.proj-section.is-open{cursor:zoom-out}
.proj-section.is-open .proj-carousel{cursor:auto}

/* header stays in the layout when a project opens (collapsing it made the page jump); only recolor it */
#projHead :is(.eyebrow,h2,p){transition:color .5s var(--ease)}
.proj-section.is-open #projHead :is(.eyebrow,h2,p){color:rgba(255,255,255,.92)}

.proj-title-float{display:none;align-self:stretch;align-items:center;gap:10px;direction:ltr}
.proj-title-float .proj-back{margin-left:auto}
.proj-section.is-open .proj-title-float{display:flex}
.proj-title-float span{display:inline-block;direction:rtl;font-size:clamp(1.3rem,3vw,1.8rem);font-weight:700;color:#fff;line-height:1.2;text-shadow:0 1px 10px rgb(0 0 0 / .45)}

/* padding is constant so the card never shifts sideways; the box only becomes visible when open */
.proj-carousel{
  display:flex;flex-direction:column;align-items:center;gap:18px;
  max-width:724px;margin-inline:auto;padding:22px;
  border:1px solid transparent;border-radius:14px;
  transition:background .5s var(--ease),border-color .5s var(--ease),box-shadow .5s var(--ease);
}
/* glass look (see .glass) only while a project is open */
.proj-section:not(.is-open) .proj-carousel.glass{
  background:transparent;border-color:transparent;box-shadow:none;
  -webkit-backdrop-filter:none;backdrop-filter:none;
}
/* while a title flies between the card corner and the row above, it must sit above everything
   and not be cut off by the image's rounded clip */
.proj-slide__title span.is-flying,.proj-title-float span.is-flying{position:relative;z-index:40}
.proj-section.is-flying .proj-visual{overflow:visible}
/* keep the photos' rounded corners while the frame is temporarily unclipped
   (border-radius:inherit resolved to 0 here, which flashed sharp corners mid-transition) */
.proj-section.is-flying .proj-slide__frame,
.proj-section.is-flying .proj-slide__frame img,
.proj-section.is-flying .proj-detail,
.proj-section.is-flying .proj-detail img{
  border-radius:var(--proj-img-radius);overflow:hidden;
}
.proj-section.is-flying .proj-slide{z-index:30}
.proj-section.is-flying .proj-title-float{position:relative;z-index:40}

/* thin grey outline on the gallery box once a project is open (the photos have no border) */
.proj-section.is-open .proj-carousel.glass{border:1px solid rgb(158 158 158 / .85)}

/* the card itself */
.proj-visual{
  --proj-img-radius:10px;
  position:relative;width:100%;
  aspect-ratio:3/2;border-radius:var(--proj-img-radius);overflow:hidden;
  background:var(--sand-deep);box-shadow:var(--shadow);
}

/* projects crossfade: slides are stacked; the outgoing one fades out while the next fades in,
   over 0.5s on a soft ease-in-out curve (no hard cut, no instant pop-in) */
.proj-slide{
  position:absolute;inset:0;display:block;
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .5s cubic-bezier(.45,0,.55,1),visibility 0s linear .5s;
}
.proj-slide.is-active{
  opacity:1;visibility:visible;pointer-events:auto;z-index:1;
  transition:opacity .5s cubic-bezier(.45,0,.55,1),visibility 0s;
}
@keyframes projFade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.proj-slide,.proj-slide.is-active{transition:none}}
/* when a project opens, the browsing photo stays fully visible UNDER the project view, which fades in/out
   on top. (Fading both at once made the picture dip to the empty card colour mid-transition.) */
.proj-section.is-open .proj-slide{pointer-events:none}
.proj-section.is-open .proj-slide__title{visibility:hidden}

.proj-slide__frame{
  position:relative;display:block;width:100%;height:100%;border:0;padding:0;margin:0;cursor:pointer;background:none;
}
.proj-slide__frame--soon{cursor:default}
.proj-slide__frame img{width:100%;height:100%;object-fit:cover;display:block;transition:filter .5s var(--ease)}
.proj-slide__frame--soon img{filter:grayscale(.5) brightness(.92)}
.proj-slide__title{
  position:absolute;top:16px;left:18px;z-index:2;pointer-events:none;margin:0;
  font-size:clamp(1.2rem,2.6vw,1.6rem);font-weight:700;color:#fff;line-height:1.2;
  text-shadow:0 1px 10px rgba(0,0,0,.45);
  display:flex;align-items:center;gap:8px;direction:ltr;
}
.proj-slide__title span{direction:rtl}
.proj-slide__arrow{width:22px;height:22px;flex:none;filter:drop-shadow(0 1px 4px rgba(0,0,0,.45))}
.project__badge{
  position:absolute;inset-block-start:16px;inset-inline-start:16px;z-index:2;
  background:rgba(251,250,247,.94);color:var(--ink);
  font-size:12px;font-weight:700;letter-spacing:.08em;
  padding:7px 13px;border-radius:999px;
}

/* in-place detail viewer, overlays the whole card */
.proj-detail{
  position:absolute;inset:0;z-index:3;
  opacity:0;pointer-events:none;transition:opacity .5s var(--ease);
}
.proj-section.is-open .proj-detail{opacity:1;pointer-events:auto}
.proj-detail img{width:100%;height:100%;object-fit:cover;display:block}

.proj-back{
  flex:none;
  width:40px;height:40px;border-radius:50%;border:1px solid rgba(44,42,38,.14);cursor:pointer;
  background:var(--white);color:var(--ink);
  display:flex;align-items:center;justify-content:center;
  opacity:0;pointer-events:none;
  transition:opacity .3s var(--ease),background .2s var(--ease);
}
.proj-section.is-open .proj-back{opacity:1;pointer-events:auto}
.proj-back:hover{background:var(--white)}
.proj-back svg{width:18px;height:18px}

/* nav + dots: rounded-square buttons bottom-left, dots bottom-right - as in the reference card */
.proj-nav-group{position:absolute;bottom:18px;left:18px;z-index:5;display:flex;gap:8px}
.proj-nav{
  width:44px;height:44px;border-radius:12px;border:0;cursor:pointer;
  background:rgba(255,255,255,.92);color:var(--ink);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 14px -6px rgba(0,0,0,.35);
  transition:background .2s var(--ease),transform .15s var(--ease);
}
.proj-nav:hover{background:var(--white)}
.proj-nav:active{transform:scale(.94)}
.proj-nav svg{width:17px;height:17px}

.proj-dots{
  position:absolute;bottom:30px;right:18px;z-index:5;display:flex;gap:7px;
  filter:drop-shadow(0 1px 3px rgba(0,0,0,.45));
  transition:opacity .3s var(--ease),transform .3s var(--ease);
}
.proj-dots button{width:7px;height:7px;border-radius:50%;border:0;padding:0;background:rgba(255,255,255,.6);cursor:pointer;transition:background .2s var(--ease),transform .2s var(--ease)}
.proj-dots button.is-active{background:var(--clay);transform:scale(1.35)}
.proj-section.is-open .proj-dots{opacity:0;transform:translateY(6px);pointer-events:none}

/* mini gallery thumbnail strip, below the card in the open state */
.proj-thumbs{
  display:none;align-items:center;gap:8px;max-width:100%;
  overflow-x:auto;flex-wrap:nowrap;padding-block:2px;
  scrollbar-width:none;-ms-overflow-style:none;
}
.proj-thumbs::-webkit-scrollbar{display:none}
.proj-section.is-open .proj-thumbs{display:flex;animation:projFade .5s var(--ease)}
.proj-thumbs > :first-child{margin-inline-start:auto}
.proj-thumbs > :last-child{margin-inline-end:auto}
.proj-thumb{
  flex:none;width:48px;height:48px;border-radius:8px;padding:0;border:0;
  overflow:hidden;cursor:pointer;opacity:.6;transition:opacity .2s var(--ease),border-color .2s var(--ease);
}
.proj-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.proj-thumb:hover{opacity:.9}
.proj-thumb.is-active{opacity:1}

@media (max-width:600px){
  .proj-carousel{padding:12px}
  .proj-visual{aspect-ratio:4/3;--proj-img-radius:8px}
  .proj-nav{width:38px;height:38px;border-radius:10px}
  .proj-nav svg{width:15px;height:15px}
}

/* ================= GLASS PANEL (frosted box that takes its colour from whatever is behind it) =================
   usage: <div class="glass">…</div> placed over an image/background.
   tune per use with the custom properties, e.g. style="--glass-blur:30px"
   .glass--light = milky white glass with dark text (for bright photos) */
/* settings live on :root so one place drives every glass box.
   default: pure blur, tint opacity 0 = no colour of its own */
:root{
  --glass-blur:10px;
  --glass-saturate:65%;
  --glass-bright:1.04;
  --glass-l:100;           /* tint colour in LCH: lightness 0-100 */
  --glass-c:3;             /* chroma 0-150 */
  --glass-h:79;            /* hue 0-360 (warm off-white) */
  --glass-a:.29;           /* tint opacity 0-1 */
  --glass-border-a:0;
  --glass-highlight-a:0;
}
.glass{
  position:relative;isolation:isolate;
  color:var(--ink);border-radius:14px;
  background:lch(var(--glass-l) var(--glass-c) var(--glass-h) / var(--glass-a));
  -webkit-backdrop-filter:blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-bright));
  backdrop-filter:blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-bright));
  border:1px solid rgb(255 255 255 / var(--glass-border-a));
  box-shadow:inset 0 1px 0 rgb(255 255 255 / var(--glass-highlight-a));
}
.glass--light{background:rgb(255 255 255 / .55)}
/* optional: the white-to-gold tinted version */
.glass--gold{
  --glass-gold:201 164 106;--glass-saturate:140%;--glass-bright:1.12;
  background:
    radial-gradient(120% 80% at 100% 100%, rgb(var(--glass-gold) / .38) 0%, transparent 70%),
    linear-gradient(160deg, rgb(255 255 255 / .36) 0%, rgb(255 255 255 / .15) 55%, rgb(var(--glass-gold) / .3) 100%);
  border-color:rgb(var(--glass-gold) / .45);
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .35),inset 0 -20px 40px -30px rgb(var(--glass-gold) / .5),0 10px 30px -22px rgb(150 116 76 / .35);
}
/* browsers without backdrop-filter: fall back to a more opaque tint so text stays readable */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .glass{background:rgb(255 255 255 / .85)}
  .glass--light{background:rgb(255 255 255 / .88)}
}

/* ================= PRESS / HOME STAGING ================= */
.press{background:var(--white)}
.press .wrap{position:relative}
.press__figure{
  margin:0;border-radius:10px;overflow:hidden;
}
.press__figure img{width:100%;height:auto;display:block}
/* text card overlaps the bottom of the article image */
.press__card{
  position:relative;z-index:1;
  width:min(560px,92%);margin:-90px 0 0 auto;margin-inline-start:clamp(0px,4vw,48px);
  background:var(--sand);border:1px solid var(--line);border-radius:12px;
  padding:clamp(24px,4vw,40px);box-shadow:var(--shadow);
}
.press__card .eyebrow{margin-bottom:12px}
.press__card h2{font-size:clamp(1.6rem,3.4vw,2.3rem);margin-bottom:16px}
.press__card p{color:var(--muted)}
.press__card p + p{margin-top:12px}
@media (max-width:700px),(max-aspect-ratio:1/1){
  .press__card{width:auto;margin:-28px 12px 0}
}

/* ================= BEFORE / AFTER (auto crossfade, no slider) ================= */
#beforeafter{padding-block:clamp(48px,7vw,90px)}
#beforeafter .section-head{margin-bottom:clamp(24px,3.5vw,40px)}
/* 15% smaller images, tighter vertical rhythm */
.ba-list{
  display:grid;grid-template-columns:repeat(2,1fr);
  column-gap:clamp(20px,3vw,36px);row-gap:clamp(14px,1.8vw,22px);
  width:85%;margin-inline:auto;
}
.ba-item:last-child:nth-child(odd){grid-column:1/-1;max-width:544px;margin-inline:auto}
.ba{
  position:relative;overflow:hidden;border-radius:var(--radius);
  aspect-ratio:4/3;box-shadow:var(--shadow-sm);
}
.ba img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.ba__before{opacity:1;transition:opacity .9s var(--ease)}
.ba.is-after .ba__before{opacity:0}
.ba__tag{
  position:absolute;inset-block-end:14px;left:50%;transform:translateX(-50%);
  font-size:12px;font-weight:700;letter-spacing:.1em;
  color:#fff;background:rgba(28,26,23,.55);padding:6px 12px;border-radius:999px;
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
}
@media (max-width:760px),(max-aspect-ratio:1/1){.ba-list{grid-template-columns:1fr;width:100%;max-width:440px}}

.is-placeholder{color:var(--clay-dark);font-weight:700}

/* ================= CONTACT ================= */
#contact{position:relative;overflow:hidden;z-index:0}
/* wider column so the footer row fits on one line; the headline and sub stay narrow */
.contact-cta{position:relative;max-width:1060px;margin-inline:auto;text-align:center}

.contact-cta .eyebrow{text-align:center}
.contact-cta h2{font-size:clamp(2rem,4.8vw,3.4rem);margin:0 auto 16px;max-width:16ch}
.contact-cta__sub{color:var(--muted);max-width:46ch;margin-inline:auto;margin-bottom:36px}
.contact-cta .btn--dark{margin-inline:auto}

.btn--dark{background:var(--ink);color:var(--bg)}
.btn--dark:hover{background:var(--clay-dark);color:#fff;transform:translateY(-2px)}

.contact-cta__divider{border:0;border-top:1px solid var(--line);margin-block:56px 26px}
.contact-cta__foot{
  display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;
  color:var(--faint);font-size:13.5px;
}
.contact-cta__foot-links{display:flex;align-items:center;gap:22px}

.social-ico{
  display:flex;align-items:center;justify-content:center;color:var(--faint);
  transition:color .2s var(--ease),transform .2s var(--ease);
}
.social-ico:hover{color:var(--clay-dark);transform:translateY(-2px)}
.social-ico svg{width:20px;height:20px}

.copy-email{
  display:inline-flex;align-items:center;gap:8px;border:0;background:none;cursor:pointer;
  color:var(--faint);font:inherit;font-size:13.5px;padding:0;direction:ltr;
}
.copy-email:hover{color:var(--clay-dark)}
.copy-ico{width:18px;height:18px;transition:color .2s var(--ease)}
.copy-email.copied .copy-ico{color:#3f8a5c}

@media (max-width:600px){
  .contact-cta__foot{flex-direction:column;text-align:center}
}

/* ================= FOOTER WATERMARK (in-flow, bottom-left of the section only) ================= */
.contact-cta__watermark{
  position:absolute;inset-block-end:-.16em;left:0;z-index:-1;
  direction:ltr;line-height:.8;
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:16vw;font-weight:600;letter-spacing:.01em;
  color:var(--ink);opacity:.07;
  white-space:nowrap;pointer-events:none;user-select:none;
}
@media (min-width:1180px){.contact-cta__watermark{font-size:200px}}

/* ================= FLOATING WHATSAPP ================= */
.wa-fab{
  position:fixed;inset-block-end:22px;inset-inline-start:22px;z-index:60;
  width:58px;height:58px;border-radius:50%;
  background:#25D366;color:#fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 14px 32px -10px rgba(37,211,102,.7),0 4px 12px rgba(0,0,0,.18);
  transition:transform .25s var(--ease),box-shadow .25s var(--ease);
}
.wa-fab svg{width:32px;height:32px}
.wa-fab:hover{transform:translateY(-3px) scale(1.04);color:#fff}
.wa-fab::after{
  content:"";position:absolute;inset:0;border-radius:50%;
  border:1px solid #25D366;animation:pulse 2.6s var(--ease) infinite;
}
@keyframes pulse{0%{transform:scale(1);opacity:.7}70%{transform:scale(1.5);opacity:0}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.wa-fab::after{animation:none}}
@media (max-width:600px){.wa-fab{width:54px;height:54px;inset-block-end:16px;inset-inline-start:16px}}

/* ================= LIGHTBOX ================= */
.lightbox{
  position:fixed;inset:0;z-index:100;display:none;
  background:rgba(24,22,19,.94);
  align-items:center;justify-content:center;
}
.lightbox.open{display:flex}
body.lb-open{overflow:hidden}
.lightbox__stage{
  position:relative;max-width:min(1200px,92vw);max-height:86vh;
  display:flex;align-items:center;justify-content:center;
}
.lightbox__stage img{
  max-width:100%;max-height:86vh;width:auto;height:auto;
  border-radius:8px;box-shadow:0 30px 80px -20px rgba(0,0,0,.6);
}
.lightbox__bar{
  position:absolute;inset-block-start:0;inset-inline:0;
  display:flex;align-items:center;justify-content:space-between;
  padding:22px clamp(16px,4vw,40px);color:#fff;z-index:2;
}
.lightbox__title{font-weight:700;font-size:15px;letter-spacing:.04em}
.lightbox__count{font-size:13px;color:rgba(255,255,255,.7);font-weight:600;direction:ltr}
.lb-btn{
  border:0;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;
  width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  transition:background .2s var(--ease);
}
.lb-btn:hover{background:rgba(255,255,255,.24)}
.lb-btn svg{width:20px;height:20px}
.lightbox__close{position:absolute;inset-block-start:18px;inset-inline-end:clamp(16px,4vw,40px);z-index:3}
.lightbox__nav{
  position:absolute;inset-block-start:50%;transform:translateY(-50%);
  display:flex;justify-content:space-between;width:100%;
  padding-inline:clamp(8px,3vw,28px);pointer-events:none;
}
.lightbox__nav .lb-btn{pointer-events:auto;width:52px;height:52px}
@media (max-width:600px){
  .lightbox__nav{position:static;transform:none;margin-top:16px;padding:0;gap:20px;justify-content:center}
  .lightbox__stage{flex-direction:column}
}

/* ============================================================
   MOBILE LAYER (<=760px) — layout/sizing only; the desktop view above is untouched
   ============================================================ */
@media (max-width:760px),(max-aspect-ratio:1/1){
  :root{
    --section:56px;
    --pad:20px;
  }
  body{font-size:16px;line-height:1.7}

  /* headings */
  .section-head{margin-bottom:26px}
  .section-head h2{font-size:clamp(1.6rem,7vw,2rem)}
  .section-head p{margin-top:12px;font-size:.98rem}
  .eyebrow{font-size:11.5px;letter-spacing:.14em;margin-bottom:12px}

  /* hero */
  .hero__box.glass{padding:26px 22px;gap:16px}
  .hero__logo{width:min(165px,55%)}
  .hero h1{font-size:clamp(1.5rem,6.4vw,1.9rem)}
  .hero__lead{font-size:.98rem;line-height:1.65}

  /* specialties: photo first, then a tighter list */
  .spec{gap:18px}
  .spec__item{padding:13px 14px;gap:12px}
  .spec__ico{width:22px;height:22px}
  .spec__title{font-size:1.02rem}
  .spec__desc{font-size:.92rem;line-height:1.6}
  .spec__frame{border-radius:10px}

  /* projects: full-width panel, bigger tap targets, swipeable photo */
  .proj-section{--proj-inset:12px;--proj-inset-block:16px}
  .proj-section::before{border-radius:14px}
  .proj-section .wrap{padding-inline:22px}
  .proj-section #projHead p{font-size:.92rem;line-height:1.6}
  .proj-carousel{padding:12px;gap:12px}
  .proj-visual{aspect-ratio:4/3}
  .proj-nav{width:42px;height:42px}
  .proj-nav-group{bottom:12px;left:12px;gap:10px}
  .proj-dots{bottom:22px;right:12px}
  .proj-slide__title{top:12px;left:12px;font-size:1.05rem}
  .proj-title-float span{font-size:1.15rem}
  .proj-back{width:36px;height:36px}
  .proj-thumbs{gap:6px}
  .proj-thumb{width:40px;height:40px}

  /* before / after */
  .ba-list{row-gap:16px}
  .ba{border-radius:10px}
  .ba__tag{inset-block-end:10px;font-size:11px;padding:5px 10px}

  /* about */
  .about2{gap:22px}
  .about2__photo{max-width:320px}
  .about2__more p{font-size:.98rem}
  .about2__sign{font-size:14px}

  /* press: the scan is wide, so it pans from right to left as the page scrolls */
  /* full-bleed: the scan runs to the screen edges, so it only disappears at the side of the screen
     (inside the padded column it was being cut off 20px early) */
  .press__figure{overflow:hidden;border-radius:0;margin-inline:calc(-1 * var(--pad))}
  .press__figure img{height:240px;width:auto;max-width:none;will-change:transform}
  /* no card box on phones: the text sits plainly under the scan */
  .press__card{
    margin:18px 0 0;padding:0;width:auto;
    background:none;border:0;box-shadow:none;
  }
  .press__card h2{font-size:clamp(1.45rem,6vw,1.8rem)}
  .press__card p{font-size:.96rem}

  /* contact */
  .contact-cta h2{font-size:clamp(1.7rem,7.4vw,2.1rem)}
  .contact-cta__sub{margin-bottom:26px;font-size:.98rem}
  .contact-cta__divider{margin-block:34px 20px}
  .contact-cta__foot{gap:14px;justify-content:center}
  .contact-cta__foot-links{gap:clamp(18px,7vw,34px)}
  .social-ico svg{width:22px;height:22px}
  .copy-email{font-size:13px}
  .contact-cta__watermark{font-size:88px;letter-spacing:.06em}

  /* floating whatsapp button clear of the thumb strip; it shrinks away inside the contact section */
  .wa-fab{width:52px;height:52px;transition:transform .35s var(--ease),opacity .35s var(--ease)}
  body.at-contact .wa-fab{transform:scale(0);opacity:0;pointer-events:none}
  body.at-contact .wa-fab::after{display:none}
}

/* below the desktop grid breakpoint, keep the title row and the thumb strip in the layout at all
   times, so the beige panel / photo background is exactly the same size in both project modes.
   (must come after the .proj-* rules above, which would otherwise win) */
@media (max-width:900px),(max-aspect-ratio:1/1){
  .proj-section .proj-title-float{display:flex;visibility:hidden;min-height:36px}
  .proj-section .proj-thumbs{display:flex;visibility:hidden;min-height:44px}
  .proj-section.is-open .proj-title-float,.proj-section.is-open .proj-thumbs{visibility:visible}
}

/* mobile hero photo: 60% larger, cropped evenly on both sides */
@media (max-width:760px),(max-aspect-ratio:1/1){
  .hero__bg{overflow:hidden}
  /* max-width:none, otherwise the global img{max-width:100%} caps it back to the screen width */
  .hero__bg img{width:160%;max-width:none;margin-inline-start:-30%}
}

/* specialties on mobile: each item carries its own photo instead of one shared frame */
.spec__photo{display:none}
@media (max-width:760px),(max-aspect-ratio:1/1){
  .spec__media{display:none}
  .spec{display:block}
  .spec__list{min-height:0 !important}
  .spec__item{align-items:flex-start}
  .spec__photo{
    display:block;overflow:hidden;max-height:0;opacity:0;margin-top:0;
    transition:max-height .5s var(--ease),margin-top .5s var(--ease),opacity .35s var(--ease);
  }
  .spec__photo img{
    width:100%;object-fit:cover;aspect-ratio:4/3;
    border-radius:10px;display:block;
  }
  .spec__item.is-active .spec__photo{max-height:60vw;opacity:1;margin-top:12px}
}
