/* Homepage flow and card hierarchy, aligned with the Work page. */
.homepage .hero h1 { font-family:var(--display); font-weight:400; font-size:clamp(96px,9vw,144px); line-height:.8; letter-spacing:-.02em; }
.homepage .hero h1 em { font-family:var(--serif); font-weight:400; font-size:1.05em; text-transform:uppercase; color:#fa57ff; line-height:.8; }
.homepage .hero-description { margin-top:34px; }
.homepage .collage-paper { width:38%; height:auto; aspect-ratio:1; right:-7%; bottom:-20%; }
.collage-paper img { width:100%; height:auto; filter:drop-shadow(-10px 8px 18px #201f2126); }
.collage-paint { right:-4%; bottom:-8%; width:26%; height:55%; }
.collage-paint img { width:100%; height:100%; object-fit:contain; object-position:right bottom; filter:drop-shadow(-8px 10px 14px #201f212b); }

.homepage .work { position:relative; isolation:isolate; overflow:clip; }
.work-room-depth {
  position:sticky; top:var(--work-header-height,72px); z-index:-1; pointer-events:none; overflow:hidden;
  height:calc(100svh - var(--work-header-height,72px));
  margin-bottom:calc(var(--work-header-height,72px) - 100svh);
  background:var(--ink);
}
.work-room-image {
  position:absolute; inset:-120px -24px;
  background:linear-gradient(#201f210d,#201f2126),url('/assets/selected-work-room-v2.png') center/cover no-repeat;
  transform:translate3d(0,var(--work-room-y,0px),0);
}
.homepage .work .project-art { box-shadow:0 24px 44px #0008,0 6px 16px #0005; }

.homepage .introduction { padding-block:40px 44px; color:#f4f0e8; }
.introduction-copy { text-align:left; }
.introduction-copy > .eyebrow { margin-bottom:18px; }
.introduction-greeting { font:italic 400 80px/1.15 var(--serif); letter-spacing:-.035em; color:#fa57ff; margin-block:18px 24px; }
.introduction-description { font:400 18px/1.5 var(--body); color:#f4f0e8; }
.introduction-link {
  display:inline-flex; align-items:center; gap:16px; margin-top:22px;
  font:600 var(--eyebrow-size)/1.5 var(--mono); letter-spacing:.12em;
  text-transform:uppercase; text-decoration:none;
}
.introduction-link-label { text-decoration:underline; text-underline-offset:5px; }
.introduction-link:hover { color:var(--magenta); }

.homepage .work .project-meta,
.homepage .work .project-grid .project-meta {
  display:flex; flex-direction:column; align-items:flex-start;
  gap:0; text-align:left; padding-block:14px 28px;
}
.homepage .work .project-meta .eyebrow {
  font:600 10px/1.5 var(--mono);
  font-size:10px !important;
}
.homepage .work .project-meta .project-client {
  color:#f4f0e8; margin:0 0 6px;
}
.homepage .work .project-meta h3 { font:400 30px/1.05 var(--serif); letter-spacing:-.02em; }
.homepage .work .project-meta .project-category {
  margin:6px 0 0; color:#d5ccd7;
  letter-spacing:.06em !important; line-height:1.25 !important;
}
.homepage .work .project-meta .project-link { align-self:flex-start; margin-top:2px; }
.homepage .work .project-link:hover,
.homepage .work .project-link:focus-visible { color:#fa57ff; text-decoration:underline; text-underline-offset:4px; }
.homepage .work-bottom .button { flex-shrink:0; }
.capability-icon { flex-shrink:0; color:var(--plum); margin-top:2px; }

@media(max-width:1000px) {
  .homepage .work .project-meta h3 { font-size:26px; }
}
@media(max-width:750px) {
  .homepage .hero h1 { font-size:clamp(56px,14vw,88px); }
  .homepage .hero-description { margin-top:28px; }
  .homepage .collage-paper { width:55%; right:-10%; bottom:-25%; }
  .collage-paint { width:34%; height:65%; right:-6%; bottom:-20%; }
  .work-room-depth { position:absolute; inset:0; height:auto; margin:0; }
  .work-room-image { transform:none; }
  .homepage .introduction { padding-block:32px; }
  .homepage .work-bottom { align-items:flex-start; }
}
@media(prefers-reduced-motion:reduce) {
  .work-room-depth { position:absolute; inset:0; height:auto; margin:0; }
  .work-room-image { transform:none; }
}

/* Rear palm layer: right-lit foliage behind the existing hero leaves. */
.homepage .collage-palm { right:4%; bottom:5%; height:72%; width:42%; transition:transform 750ms cubic-bezier(.16,1,.3,1); }
.collage-palm img { width:100%; height:100%; object-fit:contain; object-position:right bottom; filter:drop-shadow(-10px 16px 16px #201f2133); }
@media(max-width:750px) { .homepage .collage-palm { right:12%; bottom:4%; width:66%; height:80%; } }
@media(prefers-reduced-motion:reduce) { .homepage .collage-palm { transition:none; } }

/* Portrait fills the approach panel beneath its existing text overlay. */
.homepage .botanical-panel { background-image:url("/assets/home-approach-portrait.png"); background-size:cover; background-position:58% center; }
@media(max-width:750px) { .homepage .botanical-panel { min-height:400px; background-position:center 32%; } }

/* Real paper fibers overlap the preceding section; lower edge blends into ivory. */
.homepage .approach { position:relative; isolation:isolate; background:var(--ivory); }
.homepage .approach::before { content:""; position:absolute; left:0; right:0; top:-132px; height:180px; z-index:1; pointer-events:none; background:linear-gradient(transparent 56%,var(--ivory) 98%),url("/assets/approach-torn-paper.png") center top/100% 100% no-repeat; filter:drop-shadow(0 -4px 5px #201f2159); -webkit-mask-image:linear-gradient(#000 72%,transparent 100%); mask-image:linear-gradient(#000 72%,transparent 100%); }
@media(max-width:750px) { .homepage .approach::before { top:-88px; height:120px; background-size:180% 100%; } }

/* Compact magazine-style composition, with a shared portrait/button baseline. */
.homepage .approach > .section-space { padding-block:72px; }
.homepage .approach-grid { align-items:stretch; }
.homepage .approach-copy { display:flex; flex-direction:column; min-height:340px; }
.homepage .approach-copy .about-button { align-self:flex-start; margin-top:auto; }
.homepage .approach-copy p:not(.eyebrow) { margin-bottom:24px; }
@media(max-width:1100px) { .homepage .approach > .section-space { padding-block:56px; } }
@media(max-width:750px) { .homepage .approach > .section-space { padding-block:44px; } .homepage .approach-copy { min-height:0; } .homepage .approach-copy .about-button { margin-top:0; } }

/* Preserve the torn silhouette while the opaque lower paper merges into the section. */
.homepage .approach::before { background-image:linear-gradient(transparent 60%,var(--ivory) 90%),url("/assets/approach-torn-paper.png"); filter:none; -webkit-mask-image:none; mask-image:none; }
@media(min-width:1101px) { .homepage .approach .capabilities { margin-top:0; align-self:center; } }

/* Tighter spacing matches the supplied magazine-collage reference. */
.homepage .approach > .section-space { padding-top:40px; padding-bottom:58px; }
@media(max-width:750px) { .homepage .approach > .section-space { padding-top:36px; padding-bottom:52px; } }

/* Keep section copy above the decorative paper overlap. */
.homepage .approach > .section-space { position:relative; z-index:2; }

.work-title-group { display:flex; align-items:center; gap:16px; }
.work-title-group h2 { flex:0 1 auto; }
.aha-sticker { width:100px; height:120px; object-fit:contain; flex:none; transform:rotate(-5deg); }
.direction-annotation { position:relative; display:inline-block; }
.direction-underline { position:absolute; left:0; bottom:-10px; width:100%; height:16px; overflow:visible; pointer-events:none; }
.direction-underline path { fill:none; stroke:var(--magenta); stroke-width:3; stroke-linecap:round; stroke-dasharray:1; stroke-dashoffset:0; }
@media(max-width:750px) { .work-title-group { gap:4px; } .aha-sticker { width:66px; height:80px; } .direction-underline { bottom:-8px; height:12px; } }
@media(prefers-reduced-motion:reduce) { .homepage .project { translate:none!important; } }

/* The brand promise pairs Anton with an expressive Bodoni annotation. */
.homepage .hero .hero-brand-headline { font-family:"anton",var(--display); font-size:clamp(82px,8.5vw,132px); line-height:1; text-transform:none; }
.homepage .hero .hero-brand-headline em { display:block; position:relative; font-family:var(--serif); font-style:italic; font-size:clamp(48px,6.5vw,100px); width:max-content; white-space:nowrap; line-height:.96; text-transform:none; margin-top:14px; padding-bottom:16px; }
.hero-drawn-underline { position:absolute; bottom:-4px; left:0; width:96%; height:22px; pointer-events:none; overflow:visible; }
.hero-drawn-underline path { fill:none; stroke:var(--magenta); stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
@media(max-width:750px) { .homepage .hero .hero-brand-headline { font-size:clamp(56px,14vw,98px); } .homepage .hero .hero-brand-headline em { font-size:clamp(24px,8.6vw,64px); margin-top:12px; } .hero-drawn-underline { height:16px; } }

/* Lower the hero message as one group while retaining the eyebrow position. */
.homepage .hero-copy > :not(#hero-introduction) { position:relative; top:40px; }
@media(max-width:750px) { .homepage .hero-copy > :not(#hero-introduction) { top:20px; } .homepage .hero-inner { padding-bottom:44px; } }

/* Ink headline, magenta punctuation, and a more generous introduction entrance. */
.homepage .hero .hero-brand-headline em { color:#201f21; }
.homepage .hero-drawn-underline path { stroke:#fa57ff; }
.homepage .hero-period { color:#fa57ff; }
.homepage .introduction { padding-top:72px; }
@media(max-width:750px) { .homepage .introduction { padding-top:56px; } }

/* Homepage detail refinements: airy copy and precise portfolio alignment. */
.homepage .introduction-description { line-height:2; }
.homepage .introduction-link { gap:6px; }
.homepage .work a:hover,
.homepage .work a:focus-visible { color:#fa57ff; text-decoration:underline; text-underline-offset:4px; }
.homepage .work a.button:hover,
.homepage .work a.button:focus-visible { background:var(--ink); box-shadow:inset 0 0 0 1px #fa57ff; }
.homepage .work .work-bottom p { font-size:24px; }
@media(min-width:751px) {
  .homepage .work-bottom { display:grid; grid-template-columns:1fr 1fr; gap:var(--gap); }
  .homepage .work-bottom .button { justify-self:center; }
}
@media(max-width:750px) { .homepage .work .work-bottom p { font-size:22px; } .homepage .work-bottom .button { align-self:center; } }

/* Word units inherit the greeting typography and wrap naturally on mobile. */
.introduction-greeting .text-motion-word { display:inline-block; }

/* Hero focus glyphs retain the surrounding Bodoni styling. */
.hero-focus-glyph { display:inline-block; transform-origin:center; }
.homepage .hero-word { transform-origin:left center; }

/* Keep the word break visible between individually animated italic glyphs. */
.hero-focus-space { width:.28em; }
.hero-drawn-underline path { stroke-dasharray:1; stroke-dashoffset:0; }


/* Match the introduction paragraph size across desktop and mobile. */
.homepage .introduction-description,
.homepage .approach-copy p:not(.eyebrow) { font-size:18px; }

/* Anchor above the paper artwork that extends into the preceding section. */
.homepage #approach { --paper-tear-rise:132px; scroll-margin-top:calc(var(--anchor-header-height,73px) + var(--paper-tear-rise)); }
@media(max-width:750px) { .homepage #approach { --paper-tear-rise:88px; } }

/* Give the closing work row clearance before the paper-tear anchor landing. */
.homepage .work > .section-space { padding-bottom:calc(var(--section) + 64px); }
@media(max-width:750px) { .homepage .work > .section-space { padding-bottom:calc(var(--section) + 48px); } }

/* Lower only the hero CTA into the remaining open space. */
.homepage .hero-copy > .hero-cta { top:64px; }
@media(max-width:750px) { .homepage .hero-copy > .hero-cta { top:32px; } }
