/* Homepage bands below the Signal hero (index.html only; loaded after hero.css).
   Every band is ONE SCREEN: it is exactly the viewport tall, its content is
   centred in the space below the fixed header, and every size inside is tied to
   the viewport height so nothing spills past the screen (checked at 1920x1080,
   1440x900, 1366x680, 390x844 and 375x667). One idea per band: a short
   headline, a lead of two lines at most, one visual (Resend / Apple patterns,
   not their branding). Written directly in the Hammer Brand Identity palette,
   outside the generated theme-dark.css: ground #161B1E, cards Tertiary BG
   #0D2031, text #F2F2F2, muted #84909C, accents Hammer Secondary #2E8ED1. */
[data-page="home"]{--h-max:1232px;--h-gutter:max(24px,4vw);--h-hdr:102px;--h-pad:clamp(18px,3.4vh,44px);--h-line:rgba(242,242,242,.08);--h-card:#0d2031}
@media (max-width:900px){[data-page="home"]{--h-hdr:84px}}
.h-wrap{width:min(var(--h-max),100% - 2 * var(--h-gutter));margin-inline:auto}
.h-band{position:relative;isolation:isolate;min-height:100svh;display:flex;flex-direction:column;justify-content:center;
  padding:calc(var(--h-hdr) + var(--h-pad)) 0 var(--h-pad)}
/* light on the top edge: a 1px beam and a soft brand-blue half-glow below it */
.h-band::before{content:"";position:absolute;top:0;left:50%;width:min(440px,64%);height:1px;transform:translateX(-50%);
  background:linear-gradient(90deg,transparent,rgba(242,242,242,.3) 50%,transparent)}
.h-band::after{content:"";position:absolute;z-index:-1;top:0;left:50%;width:min(680px,92%);height:200px;transform:translateX(-50%);pointer-events:none;
  background:radial-gradient(50% 100% at 50% 0%,rgba(46,142,209,.11),transparent 72%)}

/* band headers: centred, one headline, one lead */
.h-head{max-width:1100px;margin:0 auto clamp(18px,3.6vh,48px);text-align:center}
.h-title{margin:0;font:700 clamp(2rem,min(4vw,6.6vh),3.6rem)/1.04 var(--heading);letter-spacing:-.035em;color:#f2f2f2;text-wrap:balance}
.h-title--lg{font-size:clamp(2.3rem,min(5.2vw,8.4vh),4.6rem)}
.h-lede{margin:clamp(8px,1.4vh,16px) auto 0;max-width:760px;font:400 clamp(15px,min(1.2vw,2vh),18px)/1.6 var(--sans);color:rgba(242,242,242,.64);text-wrap:balance}
.h-more{margin:clamp(20px,3.4vh,40px) 0 0;text-align:center}

/* the method: one cinematic screen that fades into the page above and below */
.h-film{position:relative;isolation:isolate;overflow:hidden;display:grid;place-items:center;min-height:100svh;
  padding:calc(var(--h-hdr) + var(--h-pad)) var(--h-gutter) var(--h-pad);text-align:center;background:var(--h-card)}
.h-film .factory-bg-video{z-index:-2}
.h-film-shade{position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,#161b1e 0%,rgba(22,27,30,0) 20%,rgba(22,27,30,0) 80%,#161b1e 100%),radial-gradient(70% 70% at 50% 50%,rgba(16,19,21,.5),rgba(16,19,21,.84))}
.h-film-copy{max-width:920px}
.h-film .h-lede{color:rgba(242,242,242,.8)}

/* services: the seven services as cards, three large over four, like the
   client's reference. Each picture is a real photo (Hammer's own work, or an openly
   licensed photo credited on credits.html); it fades into the glass toward the copy. */
.h-services .h-head{max-width:none}
.svc-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:clamp(10px,1.4vh,16px)}
.svc{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;
  padding:clamp(16px,2.6vh,28px) clamp(18px,1.8vw,28px);border-radius:clamp(18px,2.4vh,24px);
  background:linear-gradient(160deg,#122133 0%,#0e1a26 55%,#0b141d 100%);
  border:1px solid rgba(242,242,242,.07);box-shadow:inset 0 1px 0 rgba(242,242,242,.08),0 24px 60px rgba(0,0,0,.25);transition:border-color .5s var(--ease)}
.svc:hover{border-color:rgba(46,142,209,.32)}
.svc--lg{grid-column:span 5}
.svc--md{grid-column:span 4}
.svc--sm{grid-column:span 3}
.svc--row{grid-column:span 3}
.svc--lg,.svc--md,.svc--sm{height:clamp(200px,33vh,370px)}
.svc--row{height:clamp(142px,22vh,250px)}
.svc-art{position:absolute;z-index:-1;inset:0;pointer-events:none;
  /* the render fades in from the copy's corner, so the text sits on clear glass */
  -webkit-mask-image:linear-gradient(118deg,transparent 0%,transparent 30%,rgba(0,0,0,.5) 50%,#000 72%);mask-image:linear-gradient(118deg,transparent 0%,transparent 30%,rgba(0,0,0,.5) 50%,#000 72%)}
.svc--lg .svc-art{-webkit-mask-image:linear-gradient(108deg,transparent 0%,transparent 30%,rgba(0,0,0,.5) 46%,#000 64%);mask-image:linear-gradient(108deg,transparent 0%,transparent 30%,rgba(0,0,0,.5) 46%,#000 64%)}
.svc-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%;filter:saturate(.92) brightness(.84);transition:transform 1.2s var(--ease)}
.svc--mall .svc-art img{object-position:30% 50%}
.svc--print .svc-art img{object-position:60% 55%}
.svc:hover .svc-art img{transform:scale(1.04)}
/* a soft wash over the render on the copy's side keeps the words legible */
.svc::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(100deg,rgba(13,24,36,.94) 0%,rgba(13,24,36,.66) 36%,rgba(13,24,36,0) 64%)}

.svc-copy{position:relative;max-width:min(320px,76%)}
.svc--lg .svc-copy{max-width:min(300px,48%)}
.svc-icon{display:block;width:clamp(22px,3vh,30px);height:clamp(22px,3vh,30px);margin-bottom:clamp(10px,2.4vh,28px);color:#f2f2f2}
.svc h3{margin:0;font:600 clamp(19px,min(2vw,3.4vh),30px)/1.15 var(--heading);letter-spacing:-.02em;color:#f2f2f2;text-shadow:0 1px 18px rgba(11,20,29,.6)}
.svc--row h3{font-size:clamp(16.5px,min(1.5vw,2.6vh),23px)}
.svc p{margin:clamp(6px,1.2vh,12px) 0 0;font:400 clamp(13px,1.65vh,15px)/1.5 var(--sans);color:#a3adb7;text-shadow:0 1px 14px rgba(11,20,29,.8);
}
.svc-go{position:absolute;top:clamp(14px,2.2vh,22px);right:clamp(14px,1.4vw,22px);display:grid;place-items:center;width:44px;height:44px;border-radius:50%;
  border:1px solid rgba(242,242,242,.34);background:rgba(11,20,29,.35);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#f2f2f2;
  font:500 16px/1 var(--sans);transition:border-color .35s var(--ease),background-color .35s var(--ease)}
.svc-go:hover{border-color:#2e8ed1;background:rgba(46,142,209,.2)}
.svc-go:focus-visible{outline:2px solid #2e8ed1;outline-offset:3px}

/* stats: four facts in big type, hairlines between them */
.h-stat-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.h-stat{display:flex;flex-direction:column;align-items:center;gap:clamp(8px,1.6vh,16px);padding:clamp(18px,4vh,40px) 12px;text-align:center}
.h-stat+.h-stat{border-left:1px solid var(--h-line)}
/* every figure sits in a box as tall as the numbers, so the labels share one line;
   the two word figures are set smaller so they fit their column */
.h-stat strong{--n:clamp(2.4rem,min(4.6vw,9vh),4.8rem);display:flex;align-items:flex-end;justify-content:center;height:var(--n);
  font:700 var(--n)/1 var(--heading);letter-spacing:-.04em;color:#f2f2f2;white-space:nowrap}
.h-stat--word strong{font-size:clamp(1.6rem,min(2.5vw,5.6vh),2.9rem);letter-spacing:-.03em;padding-bottom:.08em}
.h-stat span{max-width:20ch;font:400 clamp(14px,min(1.15vw,2vh),17px)/1.5 var(--sans);color:#84909c}

/* portfolio: four real projects in one row, the photos carry the band */
.h-work-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,1.4vw,20px)}
.h-work-tile{display:block;color:inherit;border-radius:22px}
.h-work-media{display:block;height:clamp(190px,42vh,470px);overflow:hidden;border-radius:20px;background:var(--h-card);box-shadow:0 0 0 1px var(--h-line)}
.h-work-media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform 1s var(--ease)}
.h-work-tile:hover .h-work-media img{transform:scale(1.04)}
.h-work-tile:focus-visible{outline:2px solid #2e8ed1;outline-offset:6px}
.h-work-meta{display:flex;flex-direction:column;gap:2px;margin-top:clamp(8px,1.4vh,14px)}
.h-work-meta strong{font:600 clamp(15px,1.2vw,18px)/1.3 var(--heading);letter-spacing:-.01em;color:#f2f2f2}
.h-work-meta span{font:400 13px/1.4 var(--sans);color:#84909c}

/* Hammer AI: copy and the orb side by side */
.h-split{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);align-items:center;gap:clamp(32px,6vw,96px)}
.h-split .h-title{text-align:left}
.h-split .h-lede{margin-left:0;text-align:left}
.h-ai-visual{position:relative;justify-self:center;width:100%;max-width:min(480px,58vh);aspect-ratio:1}
.h-ai-visual .thinking-orb{position:absolute;inset:0;display:block;width:100%;height:100%}

/* clients: one swipeable row of quotes, three visible on desktop */
.h-quote-row{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 2 * 16px) / 3);gap:16px;overflow-x:auto;
  scroll-snap-type:x mandatory;scrollbar-width:none;outline:0;border-radius:22px}
.h-quote-row::-webkit-scrollbar{display:none}
.h-quote-row:focus-visible{outline:2px solid #2e8ed1;outline-offset:6px}
.h-quote{margin:0;scroll-snap-align:start;display:flex;flex-direction:column;justify-content:space-between;gap:20px;height:clamp(210px,34vh,320px);
  padding:clamp(20px,3.2vh,32px) clamp(20px,2vw,28px);border-radius:20px;background:var(--h-card);border:1px solid var(--h-line);box-shadow:inset 0 1px 0 rgba(242,242,242,.06)}
.h-quote blockquote{margin:0;overflow:hidden}
.h-quote blockquote p{margin:0;font:500 clamp(15px,min(1.3vw,2.2vh),19px)/1.55 var(--heading);letter-spacing:-.005em;color:#f2f2f2}
.h-quote figcaption{display:flex;flex-direction:column;gap:2px}
.h-quote figcaption strong{font:600 14px/1.4 var(--sans);color:#f2f2f2}
.h-quote figcaption span{font:400 13px/1.4 var(--sans);color:#84909c}
.h-quotes-nav{display:flex;justify-content:center;gap:10px;margin-top:clamp(16px,3vh,28px)}
.h-quotes-nav[hidden]{display:none}
.h-arrow{width:46px;height:46px;border-radius:50%;border:1px solid rgba(242,242,242,.16);background:transparent;color:#f2f2f2;cursor:pointer;
  font:500 17px/1 var(--sans);transition:background-color .3s var(--ease),border-color .3s var(--ease)}
.h-arrow:hover:not(:disabled){border-color:#2e8ed1;background:rgba(46,142,209,.12)}
.h-arrow:focus-visible{outline:2px solid #2e8ed1;outline-offset:3px}
.h-arrow:disabled{opacity:.32;cursor:default}

/* closing call to action: the hero's bookend, on a soft field of LED dots */
.h-cta{overflow:hidden;text-align:center}
.h-cta-dots{position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.6;
  background-image:radial-gradient(circle,rgba(46,142,209,.6) 0 1.2px,transparent 1.7px);background-size:9px 9px;
  -webkit-mask-image:radial-gradient(56% 66% at 50% 50%,#000 0%,rgba(0,0,0,.35) 45%,transparent 76%);
  mask-image:radial-gradient(56% 66% at 50% 50%,#000 0%,rgba(0,0,0,.35) 45%,transparent 76%)}
.h-cta .h-title{max-width:13ch;margin:0 auto}
.h-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:16px 28px;margin-top:clamp(22px,4vh,36px)}
.h-actions .text-link{margin-top:9px}

/* short laptop screens: the small cards put their icon beside the title */
@media (min-width:761px) and (max-height:760px){
  .svc--row .svc-copy{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center}
  .svc--row .svc-icon{margin:0;width:22px;height:22px}
  .svc--row p{grid-column:1 / -1}
}
@media (max-width:1100px) and (min-width:761px){
  .svc--lg{grid-column:span 6}
  .svc--md,.svc--sm{grid-column:span 3}
  .svc--row{grid-column:span 3}
  .svc--lg .svc-copy{max-width:min(290px,54%)}
  .h-quote-row{grid-auto-columns:calc((100% - 16px) / 2)}
  .h-work-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .h-work-media{height:clamp(150px,24vh,300px)}
}
@media (max-width:760px){
  /* each band still fits one screen: the services and the quotes become
     swipeable strips that bleed to the screen edges */
  .svc-grid,.h-quote-row{grid-template-columns:none;grid-auto-flow:column;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;
    margin-inline:calc(-1 * var(--h-gutter));padding-inline:var(--h-gutter);scroll-padding-inline:var(--h-gutter)}
  .svc-grid{grid-auto-columns:84%}
  .h-work-grid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:78%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;
    margin-inline:calc(-1 * var(--h-gutter));padding-inline:var(--h-gutter);scroll-padding-inline:var(--h-gutter)}
  .h-work-grid::-webkit-scrollbar{display:none}
  .h-work-tile{scroll-snap-align:start}
  .h-work-media{height:clamp(200px,40svh,420px)}
  .h-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .h-stat:nth-child(3){border-left:0}
  .h-stat:nth-child(n+3){border-top:1px solid var(--h-line)}
  .h-stat strong{--n:clamp(1.9rem,9vw,2.8rem)}
  .h-stat--word strong{font-size:clamp(1.3rem,6vw,1.9rem)}
  .svc-grid::-webkit-scrollbar{display:none}
  .svc,.svc--lg,.svc--md,.svc--sm,.svc--row{grid-column:auto;height:clamp(240px,46svh,440px);scroll-snap-align:start}
  .svc-copy,.svc--lg .svc-copy{max-width:80%}
  .svc--row h3{font-size:clamp(19px,5.4vw,23px)}
  .h-quote-row{grid-auto-columns:86%}
  .h-quote{height:auto;min-height:clamp(220px,36svh,320px)}
  .h-split{grid-template-columns:1fr;gap:20px}
  .h-ai-visual{grid-row:1;max-width:min(280px,34svh)}
  .h-split .h-title,.h-split .h-lede{text-align:center}
  .h-split .h-lede{margin-left:auto}
}
@media (prefers-reduced-motion:reduce){
  .svc,.svc-art img,.h-arrow,.h-work-media img{transition:none}
  .h-work-tile:hover .h-work-media img{transform:none}
  .svc:hover .svc-art img{transform:none}
}

/* ── Spacing: Apple's web rhythm ───────────────────────────────────────────
   Measured on apple.com (iPhone, MacBook Air and home pages, 10 Nov 2026) at
   1440, 1000 and 390px wide, and set here as tokens. Apple's HIG gives the
   logic but no web numbers: related items sit close, unrelated groups get
   clear space, one consistent margin, restricted text width.
   Large (1069px and up): 144px above and below each section, 48px from a
   section headline to its content, 12px between tiles, 12-24px inside a
   group (headline, lead, buttons), content 87.5% of the screen up to 1260px.
   Medium (735-1068px): 120px sections, 40px to content.
   Small (734px and down): 112px sections, 32px to content, 24px margins.
   Bands take their content's height (no scroll snapping); the hero and the
   film stay full-screen. Headline sizes already match Apple's
   (56-58 / 40 / 32px). */
[data-page="home"]{--h-gutter:max(24px,6.25vw);--h-max:1260px;--h-section:144px;--h-to-content:48px;--h-group:18px;--h-tight:12px;--h-tile:12px}
@media (max-width:1068px){[data-page="home"]{--h-section:120px;--h-to-content:40px}}
@media (max-width:734px){[data-page="home"]{--h-section:112px;--h-to-content:32px}}
.h-band{min-height:0;padding:var(--h-section) 0}
.h-head{margin-bottom:var(--h-to-content)}
.h-lede{margin-top:var(--h-tight)}
.h-more{margin-top:var(--h-to-content)}
.h-actions{gap:var(--h-group);margin-top:calc(var(--h-group) + 6px)}
.svc-grid,.h-work-grid{gap:var(--h-tile)}
.h-work-meta{margin-top:var(--h-tight)}
.h-quote-row{gap:var(--h-tile);grid-auto-columns:calc((100% - 2 * var(--h-tile)) / 3)}
.h-quotes-nav{margin-top:calc(var(--h-group) + 6px)}
@media (max-width:1100px) and (min-width:761px){.h-quote-row{grid-auto-columns:calc((100% - var(--h-tile)) / 2)}}
@media (max-width:760px){.h-quote-row{grid-auto-columns:86%}}

/* Stats bar copied from about.html (12 Nov 2026), placed under the client quotes.
   Same markup; these rules mirror the [data-page="about"] .about-stats rules in
   style.css + theme-dark.css (final dark look) so it looks exactly as on About. */
[data-page="home"] .about-stats{grid-template-columns:repeat(3,1fr);row-gap:clamp(40px,5vw,64px);position:relative;overflow:hidden;background:linear-gradient(140deg,#0d2031 0%,#113855 45%,#101315 100%);color:#f2f2f2;border-color:rgba(255,255,255,.12)}
[data-page="home"] .about-stats-glow{position:absolute;inset:0;pointer-events:none;background:radial-gradient(60% 90% at 84% 8%,rgba(95,179,224,.3),transparent 60%),radial-gradient(50% 80% at 4% 96%,rgba(46,142,209,.22),transparent 62%)}
[data-page="home"] .about-stats .metric{position:relative;z-index:1;border-left-color:rgba(255,255,255,.14)}
[data-page="home"] .about-stats .metric:nth-child(3n+1){border-left:0;padding-left:0}
[data-page="home"] .about-stats .metric strong{font-size:clamp(2.4rem,4.4vw,4.4rem);background:linear-gradient(120deg,#f2f2f2 25%,var(--accent-inv));-webkit-background-clip:text;background-clip:text;color:transparent}
[data-page="home"] .about-stats .metric span{color:var(--muted-inv)}
@media (max-width:900px){[data-page="home"] .about-stats{grid-template-columns:1fr}}
