/* CIELO v4 — /home5 additions.
   Loads after /home2/styles.css, which is the v4 reference implementation.
   Only the rules /home5 needs on top of it live here. */

/* ---- Nav: sizing for the pill links; the mega menu's own styles come
     from /home2/styles.css ---- */
.h3-nav .nav-link{padding:0 14px;font-size:14px}

/* ---- Statement: lighter top spacing, it follows the logo strip ---- */
.h3-statement{padding-top:clamp(56px,7vw,104px)}

/* ============ PACKAGES ============
   Design rule: glass always sits on a photo, never on flat colour.
   Hence the flowers plate behind the grid. */
/* The packages plate sits straight after the dark zone, so its gutter stays
   black rather than dropping back to paper — #111214 is the zone's own dark,
   so Welcome runs into it with no seam. */
.h3-pkgs{position:relative;padding:var(--gutter);overflow:hidden;background:#111214}
.h3-pkgs-bg{position:absolute;inset:var(--gutter);border-radius:32px;
  background:url(/home2/assets/bg-flowers2.jpg) center/cover no-repeat}
.h3-pkgs-veil{position:absolute;inset:var(--gutter);border-radius:32px;
  background:linear-gradient(180deg,rgba(17,18,20,.62),rgba(17,18,20,.48))}
.h3-pkgs-inner{position:relative;max-width:var(--cv4-max,1440px);margin:0 auto;
  padding:clamp(40px,5vw,80px) clamp(20px,3.5vw,56px)}
.h3-pkgs-head{margin-bottom:clamp(28px,3.5vw,48px)}
.h3-pkgs-title{margin:0;font-family:var(--serif);font-weight:400;color:#fff;
  font-size:clamp(38px,4.4vw,64px);line-height:1;letter-spacing:-.02em}

/* .pkg is built for a flex carousel track; re-flow it as a grid. */
.h3-pkg-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.h3-pkg-grid .pkg{flex:initial;width:auto}
.h3-pkg-grid .pkg-t{white-space:normal}

.h3-pkgs-foot{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;
  margin-top:clamp(28px,3.5vw,48px)}

/* ============ ENTRY OFFER ============ */
.h3-entry{padding:var(--gutter)}
.h3-entry-inner{max-width:var(--cv4-max,1440px);margin:0 auto;display:grid;
  grid-template-columns:1.2fr .8fr;gap:clamp(24px,4vw,72px);align-items:center;
  background:#fff;border:1px solid rgba(17,17,17,.12);
  padding:clamp(28px,4vw,64px)}
.h3-entry-copy h2{margin:12px 0 14px;font-family:var(--serif);font-weight:400;
  font-size:clamp(32px,3.4vw,52px);line-height:1;letter-spacing:-.02em}
.h3-entry-copy p{margin:0 0 24px;max-width:46ch;color:#5a5a5a;
  font-size:16px;line-height:1.6;text-wrap:pretty}
.h3-entry-price{display:flex;flex-direction:column;gap:8px;
  border-left:1px solid rgba(17,17,17,.12);padding-left:clamp(20px,3vw,48px)}
.h3-entry-k{font-family:var(--geist);font-size:11px;letter-spacing:.1em;
  text-transform:uppercase;color:#8a8a8a}
.h3-entry-num{font-family:var(--serif);font-size:clamp(48px,6vw,88px);line-height:1}
.h3-entry-note{color:#6b6b6b;font-size:14px;line-height:1.5;max-width:30ch}

/* ============ Breakpoints (matching the v4 spec) ============ */
@media (max-width:1000px){
  .h3-pkg-grid{grid-template-columns:repeat(2,1fr)}
  .h3-entry-inner{grid-template-columns:1fr}
  .h3-entry-price{border-left:0;border-top:1px solid rgba(17,17,17,.12);
    padding-left:0;padding-top:24px}
}
@media (max-width:640px){
  .h3-pkg-grid{grid-template-columns:1fr}
  .h3-pkgs-foot .cta-mono{flex:1 1 100%;text-align:center}
}

/* ============ Results → Find: one continuous surface ============
   .results clipped its own copper glow at the section edge, so the warmth
   stopped dead against the flat white of the search section.
   The two sections now sit in one .warm-zone: .results stops clipping, so the
   real glow carries across the join, and the wrapper does the clipping
   instead — which also keeps the 1400px ellipse from widening the page.
   Nothing is recreated, so the two halves cannot drift apart at any width. */
.warm-zone{position:relative;overflow:hidden;
  background:linear-gradient(180deg,#f3efe2 0%,#f3efe2 55%,#faf8f3 80%,#fff 100%)}
.warm-zone .results{overflow:visible;background:transparent}
.warm-zone .find{background:transparent}

/* The base .find has padding-bottom:0, so the watercolour plate butted
   straight into the dark closing section with no gap at all, and sat tight
   under the search panel on mobile (49px). Give it room below. */
.warm-zone .find{padding-bottom:clamp(56px,7vw,110px)}
.warm-zone .find-box{padding-bottom:clamp(72px,9vw,128px)}

/* ============ FEATURED WORK ============
   Ported from the live homepage (src/app/components/FeaturedWork.tsx), whose
   Tailwind classes are written out here: px-6 py-32, a #1f2228 top hairline,
   max-w-7xl, the Geist Mono kicker at #7d8187, a white 34/50px serif-less
   heading, and the two-column grid whose right column is offset upward
   (md:-mt-32) so the cards interleave. Dark, because it sits between the
   black Welcome zone and the packages plate. */
.fw{background:#0a0a0a;border-top:1px solid #1f2228;
  padding:clamp(72px,9vw,128px) clamp(20px,4vw,24px)}
.fw-inner{max-width:1280px;margin:0 auto}
.fw-head{margin-bottom:clamp(40px,6vw,64px);display:flex;flex-direction:column;gap:16px}
.fw-kicker{margin:0;font-family:var(--geist);font-size:12px;letter-spacing:1.4px;
  text-transform:uppercase;color:#7d8187}
.fw-title{margin:0;color:#fff;font-family:var(--sans);font-weight:400;
  font-size:clamp(34px,4vw,50px);line-height:1.02;letter-spacing:-.02em}

.fw-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 32px;align-items:start}
.fw-col{display:flex;flex-direction:column;gap:32px}
.fw-col-b{margin-top:-128px}

.fw-card{display:flex;flex-direction:column;gap:24px;color:#fff}
.fw-img-wrap{display:block;overflow:hidden}
.fw-img{display:block;width:100%;height:auto;
  transition:transform .7s cubic-bezier(.2,.6,.2,1)}
.fw-card:hover .fw-img{transform:scale(1.05)}
.fw-meta{display:flex;flex-direction:column;gap:8px}
.fw-name{color:#fff;font-size:clamp(18px,1.6vw,21px);letter-spacing:-.01em}
.fw-sub{color:#7d8187;font-size:14px;line-height:1.5}

@media (max-width:760px){
  .fw-grid{grid-template-columns:1fr;gap:32px}
  .fw-col-b{margin-top:0}
}
@media (prefers-reduced-motion:reduce){ .fw-img{transition:none} }

/* ============ CASE STUDIES + REVIEWS ============
   Ported from the live homepage (Home.tsx): px-6 py-20/28 with a #1f2228 top
   hairline, max-w-7xl, three rounded 4:3 cards, then three quotes each with
   their own hairline above and Geist Mono attribution. */
.tm{background:#0a0a0a;border-top:1px solid #1f2228;
  padding:clamp(56px,7vw,112px) clamp(20px,4vw,24px)}
.tm-inner{max-width:1280px;margin:0 auto;display:flex;flex-direction:column;
  gap:clamp(40px,5vw,56px)}
.tm-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.tm-case{display:block;border-radius:16px;overflow:hidden;aspect-ratio:4/3;background:#141414}
.tm-case img{width:100%;height:100%;object-fit:cover;display:block;
  transition:transform .7s cubic-bezier(.2,.6,.2,1)}
.tm-case:hover img{transform:scale(1.04)}
.tm-quotes{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.tm-quote{display:flex;flex-direction:column;gap:20px;
  border-top:1px solid #1f2228;padding-top:24px}
.tm-q{margin:0;color:#7d8187;font-size:14px;line-height:1.7}
.tm-n{margin:0;font-family:var(--geist);font-size:11px;letter-spacing:1.2px;
  text-transform:uppercase;color:#fff}
.tm-r{margin:2px 0 0;font-family:var(--geist);font-size:10px;letter-spacing:1.1px;
  text-transform:uppercase;color:#7d8187}

/* ============ GALLERY ============
   The /gallery page's filter pills and three-column masonry. */
.gal{background:#000;border-top:1px solid #1f2228;
  padding:clamp(48px,6vw,80px) clamp(20px,4vw,32px) clamp(64px,8vw,112px)}
.gal-inner{max-width:1280px;margin:0 auto}
.gal-filters{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
  gap:8px;margin-bottom:40px}
.gal-pill{border:1px solid #fff;background:#000;color:#fff;border-radius:999px;
  padding:6px 12px;font-family:var(--geist);font-size:9px;font-weight:500;
  letter-spacing:1px;text-transform:uppercase;cursor:pointer;
  transition:background .2s ease}
.gal-pill:hover{background:rgba(255,255,255,.1)}
.gal-pill[aria-pressed=true]{box-shadow:0 0 0 1px #fff}
.gal-pill:focus-visible{outline:2px solid #fff;outline-offset:4px}

.gal-grid{columns:3;column-gap:32px}
.gal-card{position:relative;margin:0 0 32px;break-inside:avoid;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);
  border-radius:6px;overflow:hidden}
.gal-card img{display:block;width:100%;height:auto}
.gal-cap{position:absolute;inset:0;display:flex;align-items:flex-end;
  justify-content:center;padding:20px;opacity:0;transition:opacity .5s ease;
  background:linear-gradient(to top,rgba(0,0,0,.6),rgba(96,165,250,.1) 55%,transparent)}
.gal-card:hover .gal-cap{opacity:1}
.gal-cap span{text-align:center;font-family:var(--geist);font-size:14px;
  font-weight:500;text-transform:uppercase;letter-spacing:.16em;line-height:1.35;
  color:#fff;overflow-wrap:break-word}
.gal-note{margin:0;text-align:center;color:rgba(255,255,255,.6);font-size:16px;
  padding:48px 0}

@media (hover:none){ .gal-cap{opacity:1} }
@media (max-width:1000px){ .gal-grid{columns:2} .tm-grid,.tm-quotes{grid-template-columns:repeat(2,1fr)} }
@media (max-width:700px){ .gal-grid{columns:1} .tm-grid,.tm-quotes{grid-template-columns:1fr} }
@media (prefers-reduced-motion:reduce){ .tm-case img,.gal-cap{transition:none} }

/* ============ HERO — angel backdrop + lighter UI ============
   Layout is unchanged: same frame, badge, headline, sub, form and badge strip.
   Only the surface changes. The cherub image sits behind the frame, blurred
   and held back by a veil so the type keeps its contrast; the blur is baked
   into the WebP rather than applied with a CSS filter, which would repaint a
   full-bleed layer on every scroll. */
.hero{background:url(/home5/assets/angels-blur.webp) center/cover}
.hero-frame{background:transparent;box-shadow:0 30px 80px rgba(30,60,120,.22)}

/* The backdrop and its veil, behind everything in the frame. */
.hero-frame::before{content:"";position:absolute;inset:0;z-index:0;
  background:url(/home5/assets/angels-blur.webp) center/cover;
  transform:scale(1.08)}
.hero-frame::after{content:"";position:absolute;inset:0;z-index:0;
  background:linear-gradient(180deg,rgba(247,249,252,.58) 0%,rgba(246,248,251,.70) 42%,rgba(245,246,248,.86) 72%,rgba(244,244,242,.96) 100%)}
.hero-frame > *{position:relative;z-index:1}

/* Softer, lighter controls — closer to the reference sites. */
/* .hero-frame > * above sets z-index:1 on every frame child, which beat the
   base .site-header{z-index:20} and dropped the mega menu behind the
   headline. Put the header back on top. */
.hero .site-header{border-bottom:0;z-index:20}
.hero .pill-nav{background:rgba(255,255,255,.72);border:1px solid rgba(17,17,17,.08);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.hero .btn-pill-dark{padding:9px 18px;border-radius:999px;background:#111;
  transition:background .18s ease}
.hero .btn-pill-dark:hover{background:#2b2b2b;color:#fff}

.hero .hero-badge{border-radius:999px;padding:5px 14px 5px 5px;
  border-color:rgba(42,85,217,.22);background:rgba(255,255,255,.66);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.hero .hero-badge-tag{border-radius:999px}

.hero .hero-form{gap:10px}
.hero .hero-form input{border-radius:999px;padding:14px 20px;
  background:rgba(255,255,255,.88);border-color:rgba(17,17,17,.12);
  transition:border-color .18s ease,background .18s ease}
.hero .hero-form input:focus{border-color:rgba(42,85,217,.55);background:#fff}
.hero .hero-form button{border-radius:999px;padding:14px 24px}

/* The line-scan graphic fought the photograph; let the backdrop carry it. */
.hero .hero-lines{opacity:.5;mix-blend-mode:multiply}

/* ============ FOOTER ============
   The other v4 pages carry a one-line footer; a homepage warrants the full
   set, in the same black / Geist Mono treatment. Service links are rendered
   from the page's own SERVICES array, so they stay in step with the
   packages and the search. */
.ft{background:#000;color:#fff;padding:clamp(56px,7vw,96px) clamp(20px,4vw,48px) 0}
.ft-inner{max-width:1280px;margin:0 auto;display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,2fr);
  gap:clamp(32px,5vw,80px);align-items:start;
  padding-bottom:clamp(40px,5vw,64px)}
.ft-brand img{height:26px;margin-bottom:20px}
.ft-line{margin:0;max-width:34ch;color:#7d8187;font-size:14px;line-height:1.6}
.ft-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(20px,3vw,40px)}
.ft-col{display:flex;flex-direction:column;gap:16px}
.ft-h{font-family:var(--geist);font-size:10px;letter-spacing:.14em;
  text-transform:uppercase;color:#fff}
.ft-links{display:flex;flex-direction:column;gap:10px}
.ft-links a{color:#7d8187;font-size:14px;line-height:1.4;transition:color .18s ease}
.ft-links a:hover{color:#fff}

.ft-base{max-width:1280px;margin:0 auto;display:flex;flex-wrap:wrap;gap:12px;
  justify-content:space-between;border-top:1px solid #1f2228;
  padding:24px 0 clamp(28px,4vw,40px);
  font-family:var(--geist);font-size:10px;letter-spacing:.12em;
  text-transform:uppercase;color:#5b6067}

@media (max-width:860px){
  .ft-inner{grid-template-columns:1fr;gap:40px}
  .ft-cols{grid-template-columns:repeat(2,1fr);gap:32px}
}
@media (max-width:520px){ .ft-cols{grid-template-columns:1fr} }

/* ============================================================
   OUR SKILLS (services grid)
   Ported from "Home Page v4.dc.html" -> [data-screen-label="Services grid"].
   The mockup draws the rules with a top+left border on the grid and a
   right+bottom border on each cell, so interior lines never double up.
   ============================================================ */
.skills{background:#fff;border-top:1px solid rgba(17,17,17,.1);border-bottom:1px solid rgba(17,17,17,.1)}
.skills-inner{max-width:1440px;margin:0 auto;padding:clamp(40px,5vw,72px) clamp(20px,4vw,56px)}
.skills .section-head{display:flex;flex-direction:column;gap:12px;margin-bottom:28px}
.skills-title{margin:0;font-family:var(--serif);font-weight:400;font-size:clamp(38px,4.4vw,64px);letter-spacing:-.025em;line-height:1;color:#111}

.skills-grid{display:grid;grid-template-columns:1fr;
  border-top:1px solid rgba(17,17,17,.12);border-left:1px solid rgba(17,17,17,.12)}
@media (min-width:640px){.skills-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1000px){
  .skills-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  /* The mockup widens the last two cards to fill the second row. */
  .skills-grid .skill:nth-child(5),.skills-grid .skill:nth-child(6){grid-column:span 2}
}

.skill{position:relative;display:flex;flex-direction:column;gap:10px;min-height:280px;
  padding:24px 26px;overflow:hidden;background:#fff;color:#111;
  border-right:1px solid rgba(17,17,17,.12);border-bottom:1px solid rgba(17,17,17,.12);
  transition:background .3s}
.skill:hover{background:#f3f6fd;color:#111}
.skill-n{font-family:var(--mono);font-size:11px;letter-spacing:.1em;color:#8a8a8a}
.skill-t{margin:0;font-family:var(--serif);font-weight:400;font-size:28px;letter-spacing:-.015em}
.skill-d{margin:0;font-size:16px;line-height:1.55;color:#5a5a5a;max-width:340px;text-wrap:pretty}
.skill-icon{position:absolute;right:14px;bottom:60px;width:40%;aspect-ratio:1.4/1;opacity:.5;
  pointer-events:none;background-size:contain;background-repeat:no-repeat;background-position:right bottom;
  -webkit-mask-image:linear-gradient(to bottom,#000 70%,transparent);
  mask-image:linear-gradient(to bottom,#000 70%,transparent)}
.skill-cta{margin-top:auto;position:relative;align-self:flex-start;display:flex;align-items:center;
  white-space:nowrap;gap:10px;padding:10px 14px;border:1px solid rgba(17,17,17,.25);background:#fff;
  font-family:var(--mono);font-size:11px;letter-spacing:.1em}

/* ============================================================
   HOW WE WORK (process)
   Ported from "Home Page v4.dc.html" -> [data-screen-label="Process"].
   .is-dark is set by main.js on scroll; it is scoped to the section so the
   warm results -> find gradient above it is untouched.
   ============================================================ */
.proc{background:#fff;color:#111;padding:clamp(56px,7vw,96px) clamp(16px,3.5vw,48px);
  transition:background-color .8s ease,color .8s ease}
.proc.is-dark{background:#000;color:#fff}
.proc-inner{max-width:1280px;margin:0 auto;display:flex;flex-direction:column;gap:clamp(28px,3.5vw,48px)}
.proc-head{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px}
.proc-kicker{color:#6b6b6b;transition:color .8s ease}
.proc.is-dark .proc-kicker{color:#9a9a9a}
.proc-title{margin:0;font-family:var(--serif);font-weight:400;font-size:clamp(48px,6vw,88px);
  letter-spacing:-.02em;line-height:.95}
.proc-sub{margin:0;max-width:460px;font-size:16px;line-height:1.6;color:#6b6b6b;
  transition:color .8s ease;text-wrap:pretty}
.proc.is-dark .proc-sub{color:#9a9a9a}

.proc-card{position:relative;border-radius:22px;overflow:hidden;min-height:clamp(400px,40vw,500px);
  background-color:#111;background-size:cover;background-position:center;
  transition:background-image .5s;color:#fff}
.proc-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 50%,rgba(0,0,0,.85))}
.proc-top{position:absolute;left:50%;top:clamp(20px,5%,40px);transform:translateX(-50%);
  width:min(1000px,calc(100% - 48px));display:flex;flex-direction:column;gap:18px}
.proc-meta{display:flex;justify-content:space-between;align-items:center;gap:12px}
.proc-label{font-family:var(--mono);font-size:10px;letter-spacing:.14em;color:rgba(255,255,255,.9)}
.proc-status{font-family:var(--mono);font-size:10px;letter-spacing:.12em;padding:3px 8px;
  border:1px solid rgba(255,255,255,.6);border-radius:5px}
.proc-metric{font-size:clamp(28px,3.4vw,44px);letter-spacing:-.015em;text-shadow:0 2px 20px rgba(0,0,0,.25)}

.proc-chart{position:relative;height:clamp(180px,24vw,300px);padding:0 6px}
.proc-line{position:absolute;left:0;right:0;border-top:1px dashed rgba(255,255,255,.6);transition:bottom .4s}
.proc-dot{position:absolute;right:-3px;width:7px;height:7px;border-radius:50%;background:#fff;
  transform:translateY(50%);transition:bottom .4s}
.proc-bars{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:space-between;
  gap:clamp(4px,1vw,18px);padding:0 6px}
.proc-bar{flex:1;max-width:28px;border-radius:8px;transition:all .4s;
  background:linear-gradient(180deg,rgba(255,255,255,.3),rgba(255,255,255,.08))}
.proc-bar.is-on{background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.08))}

.proc-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid rgba(255,255,255,.22)}
.proc-tab{display:flex;flex-direction:column;gap:4px;padding:9px 6px 10px;cursor:pointer;
  margin-top:-1px;border:0;border-top:2px solid transparent;background:transparent;text-align:left;
  font-family:var(--mono);font-size:10px;letter-spacing:.12em;color:rgba(255,255,255,.55)}
.proc-tab.is-on{border-top-color:#fff;color:#fff}
.proc-tab span:last-child{letter-spacing:.1em}

.proc-bottom{position:absolute;left:clamp(20px,3vw,40px);right:clamp(20px,3vw,40px);
  bottom:clamp(20px,3vw,36px);display:flex;justify-content:space-between;align-items:flex-end;
  gap:24px;flex-wrap:wrap}
.proc-step{display:flex;flex-direction:column;gap:6px;max-width:560px}
.proc-step-t{font-size:17px}
.proc-step-d{font-size:15px;line-height:1.5;color:#b5b5b5;text-wrap:pretty}
.proc-nav{display:flex;gap:6px}
.proc-nav button{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;
  justify-content:center;cursor:pointer;font:inherit;font-size:15px}
#procPrev{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3);color:#fff}
#procNext{background:#fff;border:0;color:#111}

.proc-cta{display:flex;justify-content:center}
.proc-call{display:flex;align-items:center;gap:10px;padding:13px 22px;border-radius:999px;
  background:#111;color:#fff;font-size:15px;white-space:nowrap;transition:background .3s,color .3s}
.proc-call:hover{background:#333;color:#fff}
.proc.is-dark .proc-call{background:#fff;color:#111}
.proc.is-dark .proc-call:hover{background:#e8e8e8;color:#111}

/* The card's absolutely-positioned top and bottom blocks would collide on a
   phone, so below 760px the card flows normally instead. */
@media (max-width:760px){
  .proc-card{min-height:0;display:flex;flex-direction:column;gap:18px;padding:20px 16px 22px}
  .proc-top,.proc-bottom{position:static;left:auto;right:auto;top:auto;bottom:auto;
    transform:none;width:100%}
  .proc-chart{height:170px}
  .proc-bars{gap:3px}
}
