/* ============ Dymond Painting — prototype (findrealestate design language) ============ */
:root{
  /* ==== Dymond brand (from official logo) ==== */
  --navy:#080b2d;             /* logo wordmark navy */
  --blue:#39668b;             /* logo stripe 1 */
  --coral:#fa7554;            /* logo stripe 2 */
  --gold:#faba36;             /* logo stripe 3 */

  --ink:#080b2d;
  --ink-soft:#3c4152;
  --muted:#8b90a0;
  --line:#e4e6ec;
  --bg:#ffffff;
  --bg-alt:#f4f6f9;
  --brand:var(--coral);       /* accent */
  --radius:999px;
  --maxw:1240px;
  /* real sky: blue overhead falling to warm orange at the horizon */
  --sky1:#7fb0dd; --sky2:#cfe0ea; --sky3:#f7d0a4; --sky4:#f6b98a;
  font-synthesis:none;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{
  font-family:"Instrument Sans",system-ui,sans-serif;
  color:var(--ink);background:var(--bg);
  font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 32px}

/* ---- buttons ---- */
.btn{display:inline-flex;align-items:center;gap:.5em;border-radius:var(--radius);
  font-weight:600;font-size:16px;padding:14px 26px;transition:.2s;cursor:pointer;white-space:nowrap}
.btn-dark{background:var(--ink);color:#fff}
.btn-dark:hover{background:#262626;transform:translateY(-1px)}
.btn-light{background:#fff;color:var(--ink)}
.btn-light:hover{transform:translateY(-1px)}
.btn-ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--ink)}
.btn-ghost:hover{background:var(--ink);color:#fff}
.btn-lg{padding:17px 32px;font-size:17px}
.arr{transition:transform .2s}
.btn:hover .arr{transform:translateX(4px)}

/* ---- header ---- */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.7);
  backdrop-filter:blur(12px);transition:box-shadow .3s,background .3s}
.site-header.scrolled{background:rgba(255,255,255,.92);box-shadow:0 1px 0 var(--line)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:58px}
.logo{display:flex;align-items:center;font-weight:700;font-size:20px;letter-spacing:-.02em}
.logo img{height:34px;width:auto;display:block}
.logo span{color:var(--brand)}
.logo--light{color:#fff}
.logo--light img{filter:brightness(0) invert(1)}
.main-nav{display:flex;gap:34px}
.nav-link{font-weight:500;font-size:16px;color:var(--ink-soft);position:relative;display:inline-block;
  height:1.5em;overflow:hidden;line-height:1.5em}
.nav-link span{position:relative;display:inline-block;transition:transform .42s cubic-bezier(.6,.05,.1,1)}
.nav-link span::after{content:attr(data-text);position:absolute;top:100%;left:0;color:var(--ink)}
.nav-link:hover span{transform:translateY(-100%)}
.header-cta{font-size:15px;padding:11px 20px}

/* ---- hero: layered scroll sequence (lerp-smoothed, GPU transforms) ---- */
/* padding:0 is required — the generic `section` rule adds 110px, which pushed the
   sticky stage down and left a white band above the hero. */
/* 300vh, not 500vh — the full sequence still plays, but content starts ~1800px
   sooner. Five screens before a service is a real conversion risk for a
   contractor whose visitor mainly wants a phone number. */
.hero-scroll{position:relative;height:450vh;padding:0}
/* copy sits in the upper third (not centred) so the house is already visible
   in the lower frame before you scroll — matches the reference composition */
.hero-stage{position:sticky;top:0;height:100vh;overflow:hidden;
  display:flex;align-items:flex-start;justify-content:center;background:#0a0d24}
/* A real photographed sky. CSS gradients cannot fake cloud texture — this is
   what the reference uses and why theirs reads as an actual sky. Slightly
   oversized so it can parallax without exposing an edge. */
.hero-sky{position:absolute;inset:-8% -6%;z-index:0;
  background:url('../assets/sky-bg.png') center/cover no-repeat;
  will-change:transform}
.hl{position:absolute;inset:0;will-change:transform,opacity}

/* ---- drifting cloud plates ----
   White clouds on pure black + mix-blend-mode:screen means the black drops
   out completely and only the clouds show — no alpha channel needed. This is
   how wisps can pass IN FRONT of the headline, as they do in the reference. */
.hl-clouds-back,.hl-clouds-mid{pointer-events:none;
  background:url('../assets/clouds-overlay.png') center/cover no-repeat;
  mix-blend-mode:screen}
/* Stacking, low → high:
   0 sky · 1 far clouds · 2 headline · 3 near clouds · 4 house · 5 logo
   The near cloud plate sits at 3 so wisps drift ACROSS the headline but the
   house stays clean in front of them. */
/* The reference uses SMALL discrete cloud objects (843x358, 702x298) parked at
   specific coordinates — NOT full-frame plates. Full-frame + screen blend is
   exactly what turned the whole hero to milk. Sized/placed like theirs. */
/* The plates are rectangles, so cloud content running to the edge produces a
   hard horizontal seam. Feather all four sides with a mask so they dissolve
   into the sky instead of ending on a straight line. */
.hl-clouds-back,.hl-clouds-mid{
  -webkit-mask:radial-gradient(70% 62% at 50% 50%,#000 42%,transparent 78%);
          mask:radial-gradient(70% 62% at 50% 50%,#000 42%,transparent 78%)}
.hl-clouds-back{z-index:1;opacity:.9;inset:auto;
  width:58vw;height:26vw;left:-6vw;top:20%;filter:blur(2px)}
.hl-clouds-mid{z-index:3;opacity:.75;inset:auto;
  width:46vw;height:20vw;right:-4vw;top:14%;transform:scaleX(-1);filter:blur(2px)}

/* Dense cloud BANK across the bottom third — this is what the reference uses to
   ground its wordmark. Without a floor the logo just floats in a pale void.
   Two stacked gradients give it body; the plate on top adds texture. */
/* NB: the cloud plate is white-on-BLACK, so it must stay screen-blended or it
   renders as an opaque black wall. Keep the texture layer and the soft white
   gradients as separate elements — they need different blend modes. */
.hl-smoke{position:absolute;z-index:3;left:-6%;right:-6%;bottom:-10%;height:62%;
  pointer-events:none;opacity:0;
  background:url('../assets/clouds-overlay.png') center 70%/120% auto no-repeat;
  mix-blend-mode:screen;filter:blur(3px)}
/* the soft white bank itself — normal blend, sits just under the texture */
.hl-bank{position:absolute;z-index:2;left:-6%;right:-6%;bottom:-12%;height:58%;
  pointer-events:none;opacity:0;
  background:
    radial-gradient(130% 78% at 50% 108%, rgba(255,255,255,.97) 0%, rgba(255,255,255,.78) 40%, rgba(255,255,255,0) 74%),
    radial-gradient(80% 50% at 16% 106%, rgba(255,244,232,.9), rgba(255,244,232,0) 72%);
  filter:blur(6px)}

/* CTA is absolutely positioned, NOT in the flex column. In-flow it pushed the
   logo above centre while the clip mask stayed centred on the viewport — which
   rendered the wordmark twice at two different heights. */
/* Sits below the logo's real bottom edge, not a guessed vh offset. The logo is
   centred and its height is width * 140/268, so half-height = width * 0.2612.
   Deriving the offset from that keeps the gap correct at every viewport. */
.mark-cta{position:absolute;left:0;right:0;
  top:calc(50% + (min(58vw,720px) * 0.2612) + 44px);
  text-align:center;opacity:0;pointer-events:none;will-change:opacity,transform}
.mark-cta.on{pointer-events:auto}
.mark-cta p{font-size:13px;letter-spacing:.2em;text-transform:uppercase;font-weight:600;
  color:var(--navy);margin-bottom:14px;text-shadow:0 1px 12px rgba(255,255,255,.8)}

/* layer 1 — the transparent cutout. Sits ABOVE the copy, so as it rises it
   genuinely occludes the headline. The alpha channel is what creates the depth;
   a flat video cannot do this because wall and roller are the same pixels. */
.hl-media{z-index:4;transform-origin:center bottom;pointer-events:none}
.hl-media img{position:absolute;left:50%;bottom:-6%;transform:translateX(-50%);
  width:min(112vw,1500px);height:auto;display:block;
  filter:drop-shadow(0 30px 60px rgba(8,11,45,.28))}
/* no dark scrim now that the backdrop is the light sky */
.hl-scrim{display:none}

/* the WINDOW — carries the mask, never transformed, so it holds dead centre */
.hl-media-cut{z-index:5;pointer-events:none;opacity:0;
  -webkit-mask:url('../assets/dymond-logo-header.svg') center/min(58vw,720px) auto no-repeat;
          mask:url('../assets/dymond-logo-header.svg') center/min(58vw,720px) auto no-repeat}
/* the CONTENT — keeps scrolling behind the fixed window */
.cut-inner{position:absolute;inset:0;transform-origin:center bottom}
.cut-inner img{position:absolute;left:50%;bottom:-6%;transform:translateX(-50%);
  width:min(112vw,1500px);height:auto;display:block}


/* layer 2 — opening copy, BELOW the footage so it gets covered as it rises */
.hero-copy{position:relative;z-index:2;text-align:center;width:100%;color:var(--navy);
  padding-top:13vh;will-change:opacity,transform}
.hero-copy .hero-title{color:var(--navy);text-shadow:none}
/* the muted halves were grey-on-sky and barely legible — white with a soft
   shadow so they hold up over both the pale and the deeper parts of the sky */
.hero-copy .hero-sub{color:#ffffff;text-shadow:0 1px 14px rgba(8,11,45,.35)}
.hero-copy .hero-sub strong{color:var(--navy);text-shadow:none}
.hero-copy .eyebrow.light{color:#ffffff;text-shadow:0 1px 12px rgba(8,11,45,.4)}
.hero-copy .btn-light{background:var(--navy);color:#fff}
.hero-copy .btn-ghost-light{color:var(--navy);box-shadow:inset 0 0 0 1.5px rgba(8,11,45,.35)}
.hero-copy .btn-ghost-light:hover{background:var(--navy);color:#fff}

/* layer 3 — giant wordmark, outline → image-filled */
.hero-mark{position:absolute;z-index:5;inset:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center;pointer-events:none;will-change:opacity,transform}
/* Simplified hero lockup: roof + "dymond" only. The small-caps tagline is
   dropped at this scale — it turns to mush when filled with photo texture,
   and the full lockup still lives in the header and footer. */
.mark-line{position:relative;display:block;width:min(58vw,720px);aspect-ratio:268/140}

/* NOTE: stroke-dashoffset tracing is NOT usable on this logo — 25 of its 29 paths
   contain multiple subpaths (letter counters), and a dash pattern restarts on every
   subpath, so it shatters into disconnected strokes. We reveal with a clip wipe
   instead: robust, and it reads like the mark being painted on. */
/* Roof mark drawn line by line. Each path is normalised to pathLength 1 so a
   single dashoffset value traces it, and the paths run in sequence so the mark
   builds piece by piece. The one 25-subpath path (brush detail) fades instead —
   a dash pattern restarts on every subpath and would shatter it. */
.mark-outline{position:absolute;inset:0;width:100%;height:100%;display:block;overflow:visible;
  clip-path:inset(0 100% 0 0)}
/* Stroke every path DIRECTLY. vector-effect does not inherit from <g>, so
   setting it on group wrappers left the letter paths scaling their strokes —
   which is why the wordmark came out chunky while the chevrons stayed thin.
   Targeting `path` guarantees a uniform hairline at any size. */
.mark-outline path{
  fill:none;
  stroke:#ffffff;
  stroke-width:1.25px;
  vector-effect:non-scaling-stroke;
  stroke-linejoin:round;
  stroke-linecap:round;
  paint-order:stroke}

/* final beat — the real brand logo, full colour, resolving in last */
.mark-color{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;
  opacity:0;display:block;
  filter:drop-shadow(0 2px 18px rgba(255,255,255,.55))}

/* the logo shape filled with the HOUSE — as the real house dissolves it reads
   as the building moving into the mark, which is the reference's payoff */
.mark-fill{position:absolute;inset:0;opacity:0;
  /* house-fill.png is the same photo pre-darkened (mean luminance 155 → 96) so
     the letterforms read dense. Sampling the siding band, not the sky. */
  background:url('../assets/house-fill.png') center 78%/150% auto no-repeat;
  -webkit-mask:url('../assets/dymond-logo-header.svg') center/contain no-repeat;
          mask:url('../assets/dymond-logo-header.svg') center/contain no-repeat}

/* layer 4 — foreground clouds */
/* also below the house (z-4) so nothing ever hazes over it */
.hl-clouds{z-index:3;opacity:0;pointer-events:none;
  background:
    radial-gradient(60% 42% at 18% 104%,rgba(255,255,255,.97),rgba(255,255,255,0) 70%),
    radial-gradient(66% 46% at 62% 110%,rgba(255,255,255,.95),rgba(255,255,255,0) 72%),
    radial-gradient(52% 36% at 92% 100%,rgba(255,255,255,.9),rgba(255,255,255,0) 70%);
  filter:blur(2px)}
.eyebrow{text-transform:uppercase;letter-spacing:.18em;font-size:13px;font-weight:600;color:var(--ink-soft)}
.eyebrow.dark{color:var(--brand)}
.eyebrow.light{color:rgba(255,255,255,.85)}
/* one line, like the reference — leaves the lower frame free for the house */
.hero-title{font-weight:700;font-size:clamp(26px,6.1vw,92px);line-height:1;letter-spacing:-.03em;
  margin:16px 0 18px;white-space:nowrap;color:#fff;text-shadow:0 2px 30px rgba(0,0,0,.25)}
.hero-sub{font-size:clamp(18px,2.2vw,26px);color:rgba(255,255,255,.75);max-width:760px;margin:0 auto 34px}
.hero-sub strong{color:#fff;font-weight:600}
.hero-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.btn-ghost-light{background:transparent;color:#fff;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.6)}
.btn-ghost-light:hover{background:#fff;color:var(--ink)}
.scroll-cue{position:absolute;bottom:30px;left:50%;transform:translateX(-50%);z-index:3;
  display:flex;flex-direction:column;align-items:center;gap:10px;color:#fff;
  font-size:12px;text-transform:uppercase;letter-spacing:.2em}
.scroll-cue .cue-line{width:1px;height:46px;background:linear-gradient(#fff,transparent);animation:cue 1.8s ease-in-out infinite}
@keyframes cue{0%,100%{opacity:.3;transform:scaleY(.6)}50%{opacity:1;transform:scaleY(1)}}

/* ---- section basics ---- */
section{padding:110px 0}
.section-title{font-weight:700;font-size:clamp(32px,4.4vw,60px);line-height:1.02;letter-spacing:-.025em;margin-top:10px}
.lead{font-size:19px;color:var(--ink-soft);margin-top:18px;max-width:520px}
.link-arrow{display:inline-block;margin-top:22px;font-weight:600;color:var(--ink);border-bottom:2px solid var(--brand);padding-bottom:2px;transition:.2s}
.link-arrow:hover{gap:.5em;color:var(--brand)}
.link-arrow.sm{font-size:15px;margin-top:14px}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:48px;flex-wrap:wrap}

/* ---- scroll reveal ---- */
.reveal{opacity:0;transform:translateY(34px);transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1)}
.reveal.in{opacity:1;transform:none}

/* ---- why (video panel, asymmetric) ---- */
.why-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:70px;align-items:center}
.why-media{border-radius:22px;overflow:hidden;aspect-ratio:4/5;background:#eee}
.why-media video{width:100%;height:100%;object-fit:cover;display:block}
.why-copy .section-title{max-width:14ch}

/* ---- arrows section ----
   Metrics measured from the reference at 1440px viewport:
   title 54px/500/lh 1.0/-2.16px · note 24px/500/lh 1.3/-0.24px
   arrows 260x330 (ratio .788) overlapping by 50px · section padding 112px  */
.arrows{background:#fff;text-align:center;padding:112px 0}
.arrows-title{
  font-weight:500;                                   /* medium, not bold */
  font-size:clamp(30px,3.75vw,54px);
  line-height:1;letter-spacing:-.04em;
  max-width:700px;margin:0 auto;color:var(--ink)}
.arrows-title span{color:var(--gold)}                /* second half in logo gold */

.arrows-row{--cw:clamp(118px,18vw,260px);
  display:flex;justify-content:center;align-items:center;margin:56px auto 0;padding:0 24px}
.chev{
  position:relative;z-index:1;cursor:pointer;
  width:var(--cw);aspect-ratio:260/330;flex:0 0 auto;
  margin-left:calc(var(--cw) * -0.192);              /* 50px overlap at full size */
  background:var(--img) center/cover,#dfe2e8;
  /* right-pointing chevron ribbon: notch on the left, point on the right */
  clip-path:polygon(0 0, 58% 0, 100% 50%, 58% 100%, 0 100%, 42% 50%);
  /* initial state — matches the reference: scaled down, nudged left, nearly transparent */
  opacity:.1;transform:translateX(-23px) scale(.8);
  filter:saturate(.92);
  transition:opacity .75s cubic-bezier(.2,.7,.2,1),
             transform .5s cubic-bezier(.2,.7,.2,1),
             filter .4s ease;
  will-change:opacity,transform}
.chev:first-child{margin-left:0;
  clip-path:polygon(0 0, 58% 0, 100% 50%, 58% 100%, 0 100%)}   /* flat left edge */
.chev.shown{opacity:1;transform:none}
/* hover: this panel rises above its overlapping neighbours, grows and brightens */
.chev.shown:hover{z-index:5;transform:translateY(-14px) scale(1.06);
  filter:saturate(1.12) brightness(1.04)}
@media(prefers-reduced-motion:reduce){
  .chev{transition:none;opacity:1;transform:none}
}
@media(hover:none){
  .chev.shown:hover{transform:none;filter:saturate(.92)}   /* no lift on touch */
}

.arrows-note{margin:56px auto 0;max-width:620px;font-weight:500;
  font-size:clamp(18px,1.67vw,24px);line-height:1.3;letter-spacing:-.01em;color:var(--ink)}
.arrows-note span{color:var(--gold)}


/* ---- services (pinned reveal stack) ---- */
.services{background:#fff;color:var(--ink);padding:0}
.services-head{padding:100px 32px 60px;margin:0 auto;max-width:var(--maxw)}
.services-head .eyebrow{color:var(--muted)}
.services-title{font-weight:700;font-size:clamp(34px,5vw,64px);line-height:1;letter-spacing:-.025em;margin-top:12px;color:var(--ink)}
/* the hover panels sit in their own dark band (white word on dark, image on hover) */
.svc-stack{display:flex;flex-direction:column;background:var(--ink)}
/* shorter bands; black by default — image, underline & arrow all reveal on HOVER */
.svc-panel{position:relative;min-height:46vh;display:grid;
  grid-template-columns:56px minmax(220px,300px) 1fr auto;
  align-items:center;gap:44px;padding:56px 56px;overflow:hidden;border-top:1px solid #262626}
/* image sits as a zero-width strip at centre, then expands horizontally open on hover */
.svc-panel::before{content:"";position:absolute;inset:0;z-index:0;background:var(--img) center/cover;
  clip-path:inset(0 50% 0 50%);
  transition:clip-path .6s cubic-bezier(.45,.05,.2,1)}
/* legibility veil, fades in with the image */
.svc-panel::after{content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(90deg,rgba(0,0,0,.8),rgba(0,0,0,.45) 55%,rgba(0,0,0,.28));
  opacity:0;transition:opacity .55s ease}
.svc-panel:hover::before{clip-path:inset(0 0 0 0)}
.svc-panel:hover::after{opacity:1}
.svc-num{position:relative;z-index:2;width:52px;height:52px;border:1px solid rgba(255,255,255,.4);border-radius:50%;
  display:grid;place-items:center;font-size:16px;color:#fff}
.svc-desc{position:relative;z-index:2;font-size:18px;line-height:1.5;color:rgba(255,255,255,.9);align-self:center}
/* big word — left-aligned in its column */
.svc-word{position:relative;z-index:2;justify-self:start;
  font-weight:400;font-size:clamp(56px,11vw,150px);line-height:.9;letter-spacing:-.03em;color:#fff;
  padding-bottom:.06em}
/* underline draws in from the left, slightly after the image opens */
.svc-word::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:#fff;
  transform:scaleX(0);transform-origin:left;
  transition:transform .5s .18s cubic-bezier(.2,.7,.2,1)}
.svc-panel:hover .svc-word::after{transform:scaleX(1)}
/* arrow — far right, slides + fades in on hover */
.svc-arrow{position:relative;z-index:2;justify-self:end;width:clamp(52px,6.5vw,120px);height:auto;color:#fff;
  opacity:0;transform:translateX(-24px);transition:opacity .5s .12s ease,transform .5s .12s cubic-bezier(.2,.7,.2,1)}
.svc-panel:hover .svc-arrow{opacity:1;transform:none}
/* touch devices have no hover — show the revealed state so it isn't blank */
@media(hover:none){
  .svc-panel::before{clip-path:inset(0 0 0 0)}
  .svc-panel::after{opacity:1}
  .svc-word::after{transform:scaleX(1)}
  .svc-arrow{opacity:1;transform:none}
}
.services-foot{padding:70px 32px 100px;text-align:center}
/* services on tablet/phone: stack num+desc above the big word, arrow inline at the end */
@media(max-width:820px){
  .svc-panel{grid-template-columns:52px 1fr;grid-template-areas:"num desc" "word word" "arrow arrow";
    gap:22px 20px;min-height:64vh;padding:52px 24px;align-items:start}
  .svc-num{grid-area:num}
  .svc-desc{grid-area:desc}
  .svc-word{grid-area:word;justify-self:start;font-size:clamp(48px,15vw,96px);margin-top:12px}
  .svc-arrow{grid-area:arrow;justify-self:start;width:clamp(46px,12vw,72px)}
}

/* ---- statement band ---- */
.band{background:#fff;padding:60px 0;border-top:1px solid var(--line)}
.band-inner{display:flex;justify-content:space-between;align-items:center;gap:30px;flex-wrap:wrap}
.band-title{color:var(--ink);font-weight:700;font-size:clamp(36px,5vw,72px);line-height:.98;letter-spacing:-.03em}

/* ---- testimonials (carousel) ---- */
.testimonials{background:var(--bg-alt)}
.testimonials .eyebrow{color:var(--muted)}
.testimonials .section-title{color:var(--ink)}
.testimonials .section-title span{color:var(--muted)}   /* second half greys out, like the reference */

.treview{margin-top:52px;display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}

/* left photo — swaps with the active review */
.treview-media{position:relative;aspect-ratio:5/4;border-radius:6px;overflow:hidden;background:#dfe2e8}
.tphoto{position:absolute;inset:0;margin:0;background:var(--img) center/cover;
  opacity:0;transform:scale(1.04);transition:opacity .7s ease,transform 1.1s ease;will-change:opacity,transform}
.tphoto.is-active{opacity:1;transform:none}

/* right column */
.treview-body{position:relative}
.treview-top{display:flex;align-items:flex-start;justify-content:space-between;
  padding-bottom:26px;margin-bottom:34px;border-top:1px solid var(--line);padding-top:30px}
.tnums{display:flex;gap:10px}
.tnum{width:42px;height:42px;border-radius:999px;border:1px solid var(--line);background:transparent;
  color:var(--muted);font:600 15px/1 "Instrument Sans",sans-serif;cursor:pointer;
  display:flex;align-items:center;justify-content:center;transition:.3s;padding:0}
.tnum:hover{border-color:var(--ink);color:var(--ink)}
.tnum.is-active{border-color:var(--ink);color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.tquote-mark{font-family:"Lora",serif;font-size:96px;line-height:.6;color:var(--ink);opacity:.9}

.tslides{position:relative;min-height:280px}
.tslide{position:absolute;inset:0;opacity:0;transform:translateY(12px);transition:.6s;pointer-events:none}
.tslide.is-active{opacity:1;transform:none;pointer-events:auto}
.tslide p{font-family:"Lora",serif;font-size:clamp(21px,1.85vw,28px);line-height:1.4;font-weight:500;color:var(--ink)}
.tmeta{display:flex;align-items:center;gap:16px;margin-top:30px}
.tmeta cite{font-style:normal;color:var(--ink);font-size:14px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.tmeta .tsep{color:var(--line)}
.tmeta .stars{color:var(--gold);letter-spacing:2px;font-size:16px}

/* ---- features (beyond a fresh coat) — white section, expanding accordion cards ---- */
.features{background:var(--bg)}
/* header row: heading left, paragraph + button right */
.features-head{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start;margin-bottom:56px}
.features-head .section-title{color:var(--ink);margin:0}
.features-head .section-title span{color:var(--muted)}
.features-head-right{padding-top:6px}
.features-head-right p{font-size:clamp(18px,1.6vw,23px);line-height:1.42;color:var(--ink);letter-spacing:-.01em}
.features-head-right p span{color:var(--muted)}
.features-head-btn{margin-top:28px}

/* three tall cards — hovering one expands its width, the others shrink (accordion) */
.feature-cards{display:flex;gap:24px}
.fcard-lg{position:relative;flex:1 1 0;min-width:0;height:clamp(420px,42vw,520px);
  border-radius:14px;overflow:hidden;
  display:flex;flex-direction:column;justify-content:flex-start;
  padding:34px;isolation:isolate;cursor:pointer;
  transition:flex-grow .55s cubic-bezier(.2,.7,.2,1)}
.fcard-lg::before{content:"";position:absolute;inset:0;z-index:-2;
  background:var(--img) center/cover,#dfe2e8;transform:scale(1.001);
  transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.fcard-lg::after{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(8,11,45,.30) 0%,rgba(8,11,45,.06) 34%,rgba(8,11,45,.72) 100%);
  transition:background .4s ease}
/* accordion: shrink siblings, expand the hovered card */
.feature-cards:hover .fcard-lg{flex-grow:.72}
.feature-cards .fcard-lg:hover{flex-grow:2}
.fcard-lg:hover::before{transform:scale(1.06)}
.fcard-lg:hover::after{background:linear-gradient(180deg,rgba(8,11,45,.36) 0%,rgba(8,11,45,.2) 30%,rgba(8,11,45,.86) 100%)}
.fcard-lg h3{font-size:clamp(23px,1.9vw,30px);font-weight:600;line-height:1.1;letter-spacing:-.02em;color:#fff;
  white-space:nowrap;overflow:hidden;text-overflow:clip}
/* description + button: revealed on the expanded (hovered) card, from the bottom */
.fcard-lg-body{margin-top:auto;max-height:0;opacity:0;transform:translateY(10px);
  transition:max-height .5s cubic-bezier(.2,.7,.2,1),opacity .4s ease .1s,transform .5s cubic-bezier(.2,.7,.2,1);
  overflow:hidden}
.fcard-lg:hover .fcard-lg-body,.fcard-lg:focus-within .fcard-lg-body{max-height:220px;opacity:1;transform:none}
.fcard-lg-body p{color:rgba(255,255,255,.9);font-size:15.5px;line-height:1.5;margin-bottom:18px;max-width:36ch}
.fcard-lg-btn{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;
  padding:12px 22px;border-radius:999px;border:1.5px solid rgba(255,255,255,.55);
  color:#fff;font-weight:600;font-size:14px;transition:.25s}
.fcard-lg-btn:hover{background:#fff;color:var(--ink);border-color:#fff}
@media(hover:none){
  .fcard-lg-body{max-height:220px;opacity:1;transform:none}   /* always visible on touch */
}

/* ---- latest posts ---- */
.posts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.post-card{display:flex;flex-direction:column}
.post-img{aspect-ratio:4/3;border-radius:16px;background:var(--img) center/cover,#ddd;margin-bottom:16px;transition:.25s}
.post-card:hover .post-img{transform:scale(1.015);filter:brightness(.97)}
.post-cat{font-size:12px;text-transform:uppercase;letter-spacing:.12em;font-weight:600;color:var(--brand)}
.post-card h3{font-size:21px;font-weight:600;line-height:1.25;margin:8px 0 auto}

/* ---- outro ---- */
.outro{background:linear-gradient(180deg,var(--sky3),var(--sky1));text-align:center}
.outro-title{font-size:clamp(40px,6.5vw,92px);font-weight:700;letter-spacing:-.03em;line-height:.98}
.outro-sub{font-size:20px;color:var(--ink-soft);margin:20px 0 32px}

/* ---- footer ---- */
.site-footer{background:var(--ink);color:#cfcfcf;padding:72px 0 30px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:40px}
.footer-brand p{margin-top:14px;color:#9a9a9a;font-size:15px}
.footer-col h4{color:#fff;font-size:14px;text-transform:uppercase;letter-spacing:.1em;margin-bottom:16px}
.footer-col a{display:block;color:#b9b9b9;font-size:15px;margin-bottom:10px}
.footer-col a:hover{color:#fff}
.footer-col p{color:#9a9a9a;font-size:15px;margin-top:6px}
.footer-bottom{margin-top:48px;padding-top:22px;border-top:1px solid #262626}
.footer-bottom p{color:#8a8a8a;font-size:14px}

/* ---- responsive ---- */
/* mobile menu (hidden on desktop; built by assets/site.js) */
.nav-toggle{display:none}
.mobile-menu{display:none}

@media(max-width:960px){
  .main-nav,.header-cta{display:none}
  /* hamburger */
  .nav-toggle{display:flex;flex-direction:column;justify-content:center;gap:5px;
    width:44px;height:44px;padding:0;margin-left:auto;border:none;background:transparent;cursor:pointer}
  .nav-toggle span{display:block;width:24px;height:2px;margin:0 auto;border-radius:2px;background:var(--ink);
    transition:transform .3s ease,opacity .2s ease}
  .nav-toggle.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .nav-toggle.is-open span:nth-child(2){opacity:0}
  .nav-toggle.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  /* full-screen overlay */
  .mobile-menu{display:flex;flex-direction:column;justify-content:center;gap:6px;
    position:fixed;inset:0;z-index:60;background:var(--ink);color:#fff;padding:88px 32px 40px;
    transform:translateX(100%);visibility:hidden;
    transition:transform .4s cubic-bezier(.2,.7,.2,1),visibility .4s}
  body.menu-open{overflow:hidden}
  body.menu-open .mobile-menu{transform:none;visibility:visible}
  .mobile-menu-close{position:absolute;top:18px;right:22px;width:44px;height:44px;
    font-size:40px;line-height:1;color:#fff;background:none;border:none;cursor:pointer}
  .mobile-menu-nav{display:flex;flex-direction:column;gap:2px}
  .mobile-menu-nav a{color:#fff;font-weight:600;font-size:clamp(30px,9vw,42px);letter-spacing:-.02em;
    line-height:1.25;padding:8px 0;text-decoration:none}
  .mobile-menu-nav a:active{color:var(--gold)}
  .mobile-menu-cta{align-self:flex-start;margin-top:30px;background:#fff;color:var(--ink);
    padding:16px 30px;border-radius:999px;font-weight:600;font-size:18px;text-decoration:none}
  .why-grid{grid-template-columns:1fr;gap:36px}
  .why-media{aspect-ratio:16/10}
  .srv-card,.srv-card:nth-child(even){grid-template-columns:1fr}
  .srv-card:nth-child(even) .srv-img{order:0}
  .srv-img{min-height:220px}
  .srv-body{padding:26px 30px 32px}
  .features-head{grid-template-columns:1fr;gap:24px;margin-bottom:40px}
  /* accordion needs mouse hover — stack into a simple grid on tablet/phone */
  .feature-cards{flex-wrap:wrap;gap:18px}
  .fcard-lg{flex:1 1 45%;height:380px}
  .feature-cards:hover .fcard-lg,.feature-cards .fcard-lg:hover{flex-grow:1}
  .posts-grid{grid-template-columns:1fr 1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
  .wrap{padding:0 20px}
  section{padding:72px 0}
  .hero-scroll{height:100svh;min-height:600px}
  .posts-grid,.footer-grid{grid-template-columns:1fr}
  .fcard-lg{flex:1 1 100%;height:340px}
  .arrows{padding:76px 0 70px}
  .arrows-row{flex-wrap:wrap;gap:10px;padding:0 18px}
  .chev{flex:1 1 45%;aspect-ratio:4/5}
  .band-inner{flex-direction:column;align-items:flex-start;gap:22px}
}

/* ================= SHOWCASE — logo centred, cards scattered around ================= */
/* Same sky as the hero so it reads as a continuation — the big logo shrinks to
   the centre here and the cards populate the space around it. */
.showcase{position:relative;background:url('../assets/sky-bg.png') center/cover no-repeat;
  padding:110px 0;overflow:hidden}
/* soft light veil so the centre logo + cards stay legible over the photo */
.showcase::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(58% 55% at 50% 50%, rgba(255,255,255,.72), rgba(255,255,255,0) 70%)}

.float-field{position:relative;max-width:1240px;height:640px;margin:0 auto;padding:0 24px}

/* the centred lockup — logo + rating + CTA */
.showcase-center{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);
  z-index:10;text-align:center;width:min(46vw,440px)}
.showcase-center.in{opacity:1}
.float-field:not(.ready) .showcase-center{opacity:0;transition:opacity .8s}
.showcase-logo{width:100%;height:auto;display:block;margin:0 auto 18px;
  filter:drop-shadow(0 6px 22px rgba(8,11,45,.18))}
.showcase-rating{font-size:16px;color:var(--ink-soft);margin-bottom:20px}
.showcase-rating .stars{color:var(--gold);letter-spacing:2px}
.showcase-rating strong{color:var(--ink)}
.fcard{position:absolute;top:var(--t);left:var(--l);width:var(--w);
  transform:rotate(var(--rot));transform-origin:center;
  border-radius:18px;background:#fff;overflow:hidden;
  box-shadow:0 18px 40px rgba(8,11,45,.14);
  transition:transform .5s cubic-bezier(.2,.7,.2,1),box-shadow .5s,opacity .7s;
  will-change:transform;cursor:default}
.fcard.in{opacity:1}
.float-field:not(.ready) .fcard{opacity:0}

/* hover: straighten, lift, deepen shadow, bring forward */
.fcard:hover{transform:rotate(0deg) translateY(-8px) scale(1.03);
  box-shadow:0 34px 70px rgba(8,11,45,.26);z-index:20}

/* job cards */
.fcard--job .fcard-img{aspect-ratio:4/3;background:var(--img) center/cover,#dfe4ea}
.fcard--job figcaption{padding:12px 16px;font-size:14px;font-weight:600;color:var(--ink)}
.fcard-tag{display:inline-block;font-size:11px;letter-spacing:.12em;text-transform:uppercase;
  font-weight:700;color:var(--brand);margin-right:8px}

/* review cards */
.fcard--review{padding:22px 22px 20px;background:#fff}
.fcard--review .stars{color:var(--gold);letter-spacing:2px;font-size:15px;margin-bottom:10px}
.fcard--review p{font-size:15px;line-height:1.5;color:var(--ink);margin-bottom:14px}
.fcard--review cite{font-style:normal;font-size:13px;font-weight:600;color:var(--muted)}

.showcase-foot{text-align:center;margin-top:44px}

@media(max-width:900px){
  /* scattered layout can't work on a phone — collapse to a clean stack with the
     logo lockup at the top, cards beneath */
  .showcase::before{display:none}
  .float-field{height:auto;display:flex;flex-direction:column;gap:20px;align-items:center}
  .showcase-center{position:static;transform:none;width:min(360px,88%);order:-1;opacity:1}
  .float-field:not(.ready) .showcase-center{opacity:1}
  .fcard{position:static;width:min(420px,92%);transform:none;top:auto;left:auto}
  .fcard:hover{transform:translateY(-4px)}

  /* testimonials: stack photo above the quote */
  .treview{grid-template-columns:1fr;gap:32px;margin-top:38px}
  .treview-media{aspect-ratio:16/11}
  .tslides{min-height:0;position:static}
  .tslide{position:absolute}
  .tslide.is-active{position:static}
  .treview-top{padding-top:24px;margin-bottom:26px}
  .tnum{width:38px;height:38px}
  .tquote-mark{font-size:72px}
}


/* ===== hero showcase phase (logo shrinks, sky→gradient, cards settle in) ===== */
.hero-gradient{position:absolute;inset:0;z-index:4;opacity:0;pointer-events:none;
  background:linear-gradient(180deg,#7fb0dd 0%,#a8c9e2 24%,#cfe0ea 50%,#eddcc8 72%,#f7d0a4 90%,#f6b98a 100%)}
.hero-cards{position:absolute;inset:0;z-index:6;pointer-events:none}
.hero-cards .fcard{position:absolute;top:var(--t);left:var(--l);width:var(--w);opacity:0;
  transform:rotate(var(--rot));transform-origin:center}
.hero-cards.settled .fcard{opacity:1;pointer-events:auto}
.mark-cta{z-index:7}
.mc-rating{font-size:13px;letter-spacing:.06em;text-transform:none;color:var(--ink-soft);margin-bottom:10px}
.mc-rating .stars{color:var(--gold);letter-spacing:1px}

@media(max-width:900px){
  /* SAME desktop scroll morph on mobile (house rises through the logo), just tuned:
     bigger logo so the house reads, and the showcase cards stack instead of scatter. */
  .hero-scroll{height:340vh;min-height:2000px}
  .hero-stage{height:100svh}
  .mark-line{width:min(84vw,360px)}
  /* bigger house so its facade fills the frame and reads on a narrow screen
     (override the global img max-width:100% so it can exceed the stage width) */
  .hl-media img{max-width:none;width:min(215vw,900px);bottom:-2%}
  .cut-inner img{max-width:none;width:min(215vw,900px);bottom:-2%}
  /* clip window must match the (larger) mobile logo so the house lands inside the letters */
  .hl-media-cut{-webkit-mask-size:min(84vw,360px) auto;mask-size:min(84vw,360px) auto}
  /* showcase cards SCATTERED around the shrunk, centred logo — a couple bleed off the edges */
  .hero-cards{position:absolute;inset:0;z-index:6}
  .hero-cards .fcard{position:absolute;top:var(--t);left:var(--l);width:var(--w)}
  .hero-cards .fcard--job figcaption{padding:9px 12px;font-size:12px}
  .hero-cards .fcard--job .fcard-tag{font-size:10px}
  .hero-cards .fcard--review{padding:14px 15px}
  .hero-cards .fcard--review p{font-size:12.5px;line-height:1.34}
  .hero-cards .fcard--review .stars{font-size:12px}
  .hero-cards .fcard--review cite{font-size:11.5px}
  .hero-cards .fcard:nth-child(6),.hero-cards .fcard:nth-child(8){display:none}  /* show 1-5 + 7 */
  .hero-cards .fcard:nth-child(1){top:14%;left:-6%;width:150px}  /* job    — upper left, bleeds */
  .hero-cards .fcard:nth-child(2){top:13%;left:48%;width:180px}  /* review — upper right */
  .hero-cards .fcard:nth-child(3){top:69%;left:0%;width:150px}   /* job    — lower left */
  .hero-cards .fcard:nth-child(4){top:64%;left:42%;width:186px}  /* review — lower right */
  .hero-cards .fcard:nth-child(5){top:41%;left:70%;width:146px}  /* job    — mid right, flanks logo */
  .hero-cards .fcard:nth-child(7){top:43%;left:-17%;width:148px} /* job    — mid left, flanks logo */
  .mark-cta{display:none}
}
