/* Reference lock: Fantasy's full-screen project stage and media-led case studies.
   HVBIB supplies the condensed display face, Inter, black and red. */
.fx { --portfolio-accent: var(--red); font-family: var(--sans); }
.fx h1, .fx h2, .fx h3, .fx .fx-alt {
  font-family: var(--dsp); font-weight: 400; text-transform: uppercase;
  letter-spacing: -.015em;
}
.fx .fx-max { max-width: 1680px; padding-inline: var(--pad); }
.fx .fx-idx { font-family: var(--sans); font-size: 16px; letter-spacing: 0; opacity: .8; }
.fx .fx-alt { font-size: clamp(76px, 11vw, 176px); line-height: .9; }
.fx .fx-name__box { height: clamp(110px, 14vw, 220px); }
.fx .fx-bg__copy { padding: 0 var(--pad) 48px; gap: 24px; }
.fx .fx-line { color: #fff; opacity: .86; max-width: 34ch; font: 400 18px/1.5 var(--sans); }
.fx .fx-view {
  height: 48px; padding: 0 24px; border-radius: 0;
  background: var(--portfolio-accent); color: #fff;
  font: 500 15px/1 var(--sans); backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: transform 160ms cubic-bezier(.23, 1, .32, 1), background-color 160ms ease;
}
.fx .fx-view::before, .fx .fx-view::after { content: none; }
.fx .fx-view:active { transform: scale(.97); }
.fx .fx-view svg { height: 16px; }
.fx-cases { content-visibility: visible; contain-intrinsic-size: none; }
.fx-cases .fx-bg::before { background: rgba(0, 0, 0, .12); }
.fx-cases .fx-bg::after { height: 62%; background: linear-gradient(transparent, rgba(0, 0, 0, .84)); }
.fx-cases .fx-bg img { object-position: center; }
.fx .fx-logo { display: none; }
.fx-studies { padding-block: 120px; }
.fx-studies h3 { margin-top: 20px; font-size: 32px; }

/* Kinetic introduction: three readable actions, then the business outcome. */
.growth-kinetic { position: relative; color: var(--fg); background: var(--bg); }
.growth-stage {
  display: grid; grid-template-columns: minmax(250px, .85fr) minmax(0, 1.5fr);
  grid-template-rows: 1fr auto; column-gap: clamp(40px, 8vw, 128px); row-gap: 40px;
  align-items: center; padding: 120px var(--pad) 64px;
}
.growth-intro { align-self: start; padding-top: 12px; }
.growth-intro h2 { font: 400 clamp(40px, 4.2vw, 68px)/.98 var(--dsp); text-transform: uppercase; letter-spacing: 0; }
.growth-intro p { margin-top: 28px; max-width: 23ch; font-size: 18px; line-height: 1.5; }
.growth-type { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.growth-type li { font: 400 clamp(100px, 13.5vw, 210px)/.9 var(--dsp); letter-spacing: -.025em; text-transform: uppercase; }
.growth-type span { display: block; color: var(--fg); transform-origin: left center; }
.growth-type li.is-active span { color: var(--red); }
.growth-result { grid-column: 2; display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.growth-result p { font-size: clamp(20px, 2vw, 28px); line-height: 1.25; letter-spacing: -.02em; }
.growth-result a { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font-size: 16px; text-decoration: none; }
.growth-result a span { font-size: 26px; color: var(--red); }
.growth-kinetic.is-kinetic { height: 170svh; }
.is-kinetic .growth-stage { position: sticky; top: 0; height: 100svh; }

/* Case-study structure follows the reference: full-bleed cover, concise thesis,
   offset narrative, large project media, impact and the next project. */
.case-study { background: #000; color: #fff; }
.case-container { width: 100%; max-width: 1680px; margin-inline: auto; padding-inline: var(--pad); }
.case-hero { min-height: 620px; }
.case-hero .fx-hero__media img { object-position: center; }
.fx-hero__media picture { width: 100%; height: 100%; }
.case-hero-copy { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 80px; }
.case-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 20px; font-size: 16px; text-decoration: none; }
.case-hero h1 { max-width: 12ch; font-size: clamp(88px, 13.5vw, 220px); line-height: .9; }
.case-hero-copy>p { margin-top: 28px; max-width: 44ch; font-size: 20px; line-height: 1.4; }
.case-scroll { position: absolute; z-index: 2; bottom: 24px; left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; font-size: 14px; text-decoration: none; }
.case-summary { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(48px, 8vw, 128px); padding-block: 144px; align-items: end; }
.case-summary h2 { max-width: 20ch; font-size: clamp(44px, 5.5vw, 88px); line-height: 1; }
.case-summary .fx-meta { margin: 0; padding: 0; border: 0; gap: 32px; }
.case-summary .fx-meta dt { font: 400 14px/1.3 var(--sans); text-transform: none; letter-spacing: 0; color: #a8a8a8; }
.case-summary .fx-meta dd { margin-top: 8px; font-size: 18px; line-height: 1.4; }
.case-media { margin: 0; overflow: hidden; border-radius: 0; background: #111; }
.case-media picture { width: 100%; aspect-ratio: var(--media-ratio, 16/9); }
.case-media img { width: 100%; height: 100%; object-fit: cover; }
.case-media figcaption { padding: 16px 0; color: #aaa; font-size: 14px; background: #000; }
.case-overview { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 128px); padding-block: 144px; }
.case-overview h2, .case-section-title, .case-results>h2 { font-size: clamp(56px, 7.5vw, 120px); line-height: .95; }
.case-prose { display: grid; gap: 24px; }
.case-prose p, .case-chapter-copy p { max-width: 58ch; font-size: 20px; line-height: 1.6; color: #e4e4e4; }
.case-section-title { margin: 0 0 64px; }
.case-chapter { margin-bottom: 120px; }
.case-chapter-copy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 128px); margin-bottom: 48px; }
.case-chapter-copy h3 { font-size: clamp(36px, 4vw, 64px); line-height: 1; }
.case-approach>.case-media { margin-bottom: 120px; }
.case-results { padding-block: 24px 144px; }
.case-results>ul { margin: 64px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.case-results li { display: flex; flex-direction: column; justify-content: end; gap: 20px; }
.case-results li strong { font: 400 clamp(56px, 6vw, 96px)/.95 var(--dsp); color: var(--portfolio-accent); white-space: nowrap; }
.case-results li p { font-size: 22px; line-height: 1.4; max-width: 27ch; }
.case-testimonial { margin: 112px 0 0 auto; max-width: 900px; }
.case-testimonial blockquote { font-size: clamp(28px, 3vw, 48px); line-height: 1.25; letter-spacing: -.025em; }
.case-testimonial figcaption { margin-top: 28px; color: #aaa; font-size: 16px; }
.case-next { position: relative; display: block; min-height: 560px; height: 80svh; max-height: 960px; overflow: hidden; color: #fff; text-decoration: none; }
.case-next>picture { position: absolute; inset: 0; }
.case-next img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.23, 1, .32, 1); }
.case-next::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0,0,0,.8)); }
.case-next-copy { position: absolute; z-index: 2; bottom: 56px; left: var(--pad); right: var(--pad); display: grid; gap: 24px; }
.case-next-copy>span:first-child { font-size: 18px; }
.case-next-copy strong { font: 400 clamp(80px, 11vw, 176px)/.9 var(--dsp); text-transform: uppercase; }
.case-next-arrow { position: absolute; right: 0; bottom: 0; color: var(--portfolio-accent); font-size: 80px; line-height: 1; }
.case-contact { padding-block: 144px; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 64px; }
.case-contact h2 { font-size: clamp(64px, 10vw, 160px); line-height: .9; }
.case-contact p { font-size: 20px; line-height: 1.5; margin-bottom: 32px; }
html:is([data-page="case"], [data-page="work"]) .foot { padding-top: 80px; }
html:is([data-page="case"], [data-page="work"]) .nav { background: transparent; }

@media (hover: hover) and (pointer: fine) {
  .fx-bg__hit:hover .fx-view, .fx-card:hover .fx-view { background: #fff; color: #000; }
  .case-next:hover img { transform: scale(1.035); }
  .growth-result a:hover { color: var(--red); }
}
@media (max-width: 900px) {
  .growth-stage { grid-template-columns: .85fr 1.2fr; column-gap: 40px; }
  .growth-type li { font-size: clamp(96px, 14vw, 140px); }
  .growth-intro h2 { font-size: 44px; }
  .growth-result { grid-column: 1 / -1; }
  .case-summary, .case-overview, .case-chapter-copy { gap: 40px; }
  .case-summary { padding-block: 96px; }
  .case-summary h2 { font-size: 56px; }
  .case-overview { padding-block: 96px; }
  .case-prose p, .case-chapter-copy p { font-size: 18px; }
  .case-results>ul { gap: 32px; }
  .case-results li p { font-size: 20px; }
  .case-results li strong { font-size: 56px; }
}
@media (max-width: 649px) {
  .fx .fx-alt { font-size: clamp(56px, 16vw, 96px); }
  .fx .fx-bg__copy { padding-bottom: 36px; gap: 20px; }
  .fx .fx-line { font-size: 16px; max-width: 29ch; }
  .fx .fx-name__box { height: 130px; }
  .fx .fx-name .fx-alt { display: none; }
  .fx .fx-logo { display: block; width: auto; max-width: 78vw; height: 64px; max-height: 90px; object-fit: contain; object-position: left center; }
  .fx .fx-logo--tall { height: 82px; }
  .fx-cases .fx-bg img { object-position: var(--mo, 50%) center; }
  .growth-stage { padding: 100px var(--pad) 36px; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; gap: 28px; }
  .growth-intro { padding: 0; display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: end; }
  .growth-intro h2 { font-size: 32px; line-height: 1; }
  .growth-intro p { font-size: 15px; line-height: 1.4; margin: 0; }
  .growth-type { align-self: center; }
  .growth-type li { font-size: clamp(88px, 25vw, 142px); }
  .growth-result { grid-column: 1; gap: 20px; align-items: end; }
  .growth-result p { font-size: 20px; }
  .growth-result a { font-size: 14px; gap: 8px; }
  .case-hero { min-height: 620px; }
  .case-hero-copy { bottom: 88px; }
  .case-hero h1 { font-size: clamp(72px, 20vw, 112px); }
  .case-hero-copy>p { font-size: 18px; margin-top: 24px; }
  .case-summary, .case-overview, .case-chapter-copy { grid-template-columns: 1fr; }
  .case-summary { padding-block: 80px; gap: 40px; }
  .case-summary h2 { font-size: 48px; }
  .case-summary .fx-meta { gap: 28px 20px; }
  .case-summary .fx-meta dd { font-size: 16px; }
  .case-overview { padding-block: 80px; gap: 32px; }
  .case-overview h2, .case-section-title, .case-results>h2 { font-size: 64px; }
  .case-section-title { margin-bottom: 40px; }
  .case-chapter { margin-bottom: 80px; }
  .case-chapter-copy { gap: 24px; margin-bottom: 32px; }
  .case-chapter-copy h3 { font-size: 40px; }
  .case-prose p, .case-chapter-copy p { font-size: 17px; line-height: 1.6; }
  .case-approach>.case-media { margin-bottom: 80px; }
  .case-results { padding-bottom: 80px; }
  .case-results>ul { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
  .case-results li { gap: 16px; }
  .case-results li strong { font-size: 72px; }
  .case-testimonial { margin-top: 80px; }
  .case-next { min-height: 520px; height: 75svh; }
  .case-next-copy { bottom: 36px; padding-right: 40px; }
  .case-next-copy strong { font-size: 72px; }
  .case-next-arrow { font-size: 48px; }
  .case-contact { padding-block: 80px; grid-template-columns: 1fr; gap: 32px; }
  .case-contact h2 { font-size: 88px; }
  .case-contact p { font-size: 18px; }
}
@media (max-height: 739px) {
  .growth-kinetic.is-kinetic { height: auto; }
  .is-kinetic .growth-stage { position: relative; height: auto; min-height: 660px; }
}
@media (prefers-reduced-motion: reduce) {
  .growth-kinetic.is-kinetic { height: auto; }
  .is-kinetic .growth-stage { position: relative; height: auto; }
  .growth-type span { transform: none !important; opacity: 1 !important; }
  .growth-type li:last-child span { color: var(--red); }
  .case-next img { transition: none; }
}
html:not(.js) .fx-sticky { position: relative; }
html:not(.js) .fx-stage { position: relative; height: auto; overflow: visible; }
html:not(.js) .fx-bg { position: relative; height: 100svh; opacity: 1; }
html:not(.js) .fx-bg__copy { opacity: 1; }
html:not(.js) .fx-bg__name { position: static; width: auto; height: auto; clip: auto; font-size: 64px; }
html:not(.js) .fx-names { display: none; }

/* Restore the original introduction and the word-by-word kinetic sentence. */
.growth-sentence .growth-stage{display:block;height:auto;position:relative;padding-block:120px 80px}
.growth-sentence .growth-intro{display:grid;grid-template-columns:.8fr 1.2fr;gap:clamp(40px,8vw,128px);padding:0;align-items:start}
.growth-sentence .growth-intro p{max-width:52ch;margin:0;font-size:18px;line-height:1.6}
.growth-sentence .statement{margin:80px 0 0;max-width:25ch;font:500 clamp(38px,5.2vw,80px)/1.12 var(--sans);letter-spacing:-.03em}
.growth-sentence .statement .wd{color:#888}
.growth-sentence .statement .wd.lit{color:var(--fg)}
@media(max-width:649px){
 .growth-sentence .growth-stage{padding-block:80px 64px}
 .growth-sentence .growth-intro{grid-template-columns:1fr;gap:28px}
 .growth-sentence .growth-intro h2{font-size:44px}
 .growth-sentence .growth-intro p{font-size:17px}
 .growth-sentence .statement{margin-top:48px;font-size:38px}
}
html:not(.anim) .growth-sentence .statement .wd{color:var(--fg)}

@media(max-width:649px){.fx .fx-logo--text{height:auto;max-height:none;font:400 clamp(52px,13vw,82px)/.95 var(--dsp);text-transform:uppercase}}

.case-feedback-label{font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:var(--mute);margin:0 0 22px}
.case-feedback-copy{font-size:clamp(28px,3vw,48px);line-height:1.25;letter-spacing:-.025em;margin:0}

/* Shared case-study narrative and results, including longer project writeups. */
.case-study .case-chapter-copy > .case-prose { min-width: 0; }
.case-study .case-project-link { margin-bottom: 120px; }
.case-study .case-results-title { margin-top: 48px; font-size: clamp(32px, 4vw, 56px); line-height: 1.1; }
.case-study .case-results > .case-prose { margin-top: 48px; }
.case-study .case-results > ul { row-gap: 64px; }
.case-study .case-results li { min-width: 0; }
.case-study .case-results li strong { white-space: normal; overflow-wrap: anywhere; }
.case-study .case-chapter-copy ul { list-style: disc; padding-left: 1.2em; font-size: 20px; line-height: 1.6; color: #e4e4e4; }
@media (max-width: 649px) {
  .case-study .case-project-link { margin-bottom: 80px; }
  .case-study .case-chapter-copy ul { font-size: 17px; }
}
