/* ==========================================================================
   ELINHA homepage — "Nexus"-pattern redesign
   Loaded only by index.html, after style.css. Structural pattern (label
   bars with per-section scroll progress, layered dot-pattern hero, service
   detail modals, testimonial/library card grids, dark halftone closing
   CTA) is adapted from the reference layout; all colors/type use ELINHA's
   existing brand tokens (--pine/--cream/--mint/--ink) instead of the
   reference's orange, and all copy is ELINHA/JA-KO specific.
   ========================================================================== */

/* ---------- Section eyebrow ----------
   Was a 3-part "(SECTION) —scroll-progress-fill— [ 0N / 0M ]" bar (a Nexus/
   readdy.cc device — bracket counters and a per-section reading-progress
   line). Linear's own eyebrows are plainer: Inter, small size, a touch of
   positive tracking, no counters or progress meters — see the `eyebrow`
   typography token in design-reference/DESIGN-linear.app.md. The counter
   and progress-fill elements stay in the DOM (main.js still drives them,
   harmlessly) but are hidden; only the tag text renders now. */
.label-bar{
  display:flex;
  align-items:center;
  gap:var(--space-6);
  margin-bottom:var(--space-10);
  padding-bottom:var(--space-4);
  border-bottom:1px solid var(--line);
}
.label-tag{
  font-family:var(--font-sans);
  font-size:var(--v2-eyebrow-size);
  font-weight:var(--font-weight-medium);
  letter-spacing:var(--v2-eyebrow-ls);
  text-transform:uppercase;
  color:var(--ink-subtle);
  white-space:nowrap;
}
.label-progress,
.label-counter{display:none;}
.label-bar-dark{border-bottom-color:var(--line-dark);}

.nx-note{
  font-family:var(--font-sans);
  font-size:var(--text-body-sm-size);
  color:var(--ink-soft);
  text-align:center;
  margin-top:var(--space-10);
  opacity:0.8;
}
.nx-note-dark{color:var(--on-dark-muted);}

/* ---------- Hero ----------
   Was a solid pine-green card floating on a cream dot-grid page — a loud,
   fully-saturated hero block. Linear never fills a hero with a chromatic
   color; the dark canvas itself is the whitespace, lifted at most one
   surface step, with a faint accent glow rather than a color block (see
   Do/Don't in design-reference/DESIGN-linear.app.md). The dot pattern is
   kept (it's this redesign's own texture) but recolored to a faint
   pine-green tint (ELINHA's own chip, not Linear's lavender) instead of
   dark-on-cream. */
.nx-hero{
  position:relative;
  background:var(--canvas);
  padding-top:calc(var(--header-h) + var(--space-12));
  padding-bottom:var(--space-24);
  overflow:hidden;
}
.nx-hero-dots{
  position:absolute;
  inset:0;
  background-image:radial-gradient(circle, rgba(170,208,187,0.35) 1.5px, transparent 1.5px);
  background-size:24px 24px;
  -webkit-mask-image:linear-gradient(to bottom, black 0%, black 45%, transparent 90%);
  mask-image:linear-gradient(to bottom, black 0%, black 45%, transparent 90%);
}
.nx-hero-top{
  position:relative;
  z-index:1;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:var(--space-4);
  flex-wrap:wrap;
  padding-bottom:var(--space-14);
  font-family:var(--font-sans);
  font-size:var(--text-body-sm-size);
  font-weight:var(--font-weight-medium);
  letter-spacing:0.02em;
  color:var(--ink-subtle);
}
/* linear.app's real hero has no bordered box at all — just text flat on
   the canvas, with the accent glow doing the framing. Dropped the
   surface-1/border/shadow "card" look to match. */
.nx-hero-card{
  position:relative;
  z-index:1;
  color:var(--ink);
  padding:var(--space-24) 0 0;
}
.nx-hero-title{
  font-family:var(--font-display);
  font-weight:var(--font-weight-semibold);
  font-size:clamp(2.2rem,6vw,4.4rem);
  line-height:1.06;
  letter-spacing:-0.03em;
}
.nx-hero-title span{display:block;}

/* User-supplied WebGL "liquid glass" hero centerpiece (ported to vanilla
   JS in assets/js/liquid-glass.js) — replaces the flat text headline
   visually; the real <h1> stays in the DOM as .sr-only for a11y/i18n.
   Full-bleed (outside .wrap's max-width) because the baked text plate
   uses a fixed 120px font — it needs the full viewport width to fit
   "Invisible Value" on one line without clipping. */
.nx-glass-hero{
  position:relative;
  width:100%;
  height:clamp(560px, 74vw, 860px);
}
.nx-glass-hero canvas{
  display:block;
  width:100%;
  height:100%;
  touch-action:none;
}
@media (max-width:700px){
  .nx-glass-hero{height:clamp(360px, 105vw, 560px);}
}

.nx-hero-social{
  margin-top:var(--space-8);
  font-family:var(--font-sans);
  font-size:var(--text-body-sm-size);
  letter-spacing:0.06em;
  color:var(--ink-subtle);
}
.nx-hero-divider{height:1px;background:var(--hairline);margin:var(--space-8) 0;}
.nx-hero-bottom{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:var(--space-16);
}
/* linear.app's own manifesto-style statement — one large sentence-case
   paragraph, tight leading, first clause bright/full-strength ink and the
   remainder a muted continuation. */
/* ---------- Video quote ----------
   Modeled on lxlcreative.co.uk's full-bleed background-video statement
   section. Text starts dim and brightens character-by-character as the
   section scrolls through view (vanilla-JS port of their GSAP SplitText
   scroll-reveal — see initVideoQuoteReveal in main.js). No sound toggle:
   the video is muted/ambient, not a media player. */
/* The pin: a plain (non-sticky) wrapper taller than the viewport. As the
   user scrolls through the extra height, .video-quote — sticky at top:0
   — stays glued to the screen; the JS reveal reads scroll progress off
   THIS wrapper's own position (never sticky itself, so its rect keeps
   moving normally) rather than off .video-quote, whose rect.top freezes
   at 0 for the whole time it's stuck. Total height = 100vh (the pinned
   moment itself) + however much extra "hang time" the reveal should get
   before the section releases and scrolls away normally. */
.video-quote-pin{
  position:relative;
  height:260vh;
  margin-top:var(--space-16);
}
.video-quote{
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  background:var(--canvas); /* shows through until a real clip is dropped in */
  transform-origin:center center;
  will-change:transform, border-radius;
  /* Small/rounded resting state — was continuously scrubbed 0.48→1 by
     scroll position (initVideoQuoteReveal's old updateEntry()); per
     explicit request (referencing lusion.co's own hero video, which
     snaps to full-bleed from a single scroll tick instead of growing
     gradually as you scroll) this is a threshold TOGGLE instead: JS
     switches between .is-shrunk/.is-grown once a scroll threshold is
     crossed either direction (see initVideoQuoteReveal's checkEntry()).
     border-radius:40px here is just the pre-JS/no-JS fallback — both
     state classes below set their own via keyframes. */
  border-radius:40px;
}
/* Squash-and-stretch "tension" snap — plain scale(0.48→1) with an
   overshoot EASING read as too smooth/uniform ("사각형 모양이 약간
   변형이 있거나 텐션이 있게 커질 순 없어?"), so scaleX/scaleY diverge
   mid-animation instead of moving in lockstep. rotate()+skewY() (added
   per lusion.co's own trapezoid-tilted cards, then removed again — "각도
   틀어짐은 그냥 빼줘봐 어색하네") are gone; the tension now comes only
   from X/Y scale diverging, not from any rotation/shear. 4 keyframes with
   ONE clean overshoot (not several alternating direction reversals — an
   earlier, busier version of this read as a jittery multi-bounce wobble
   rather than one fluid stretch-and-settle, since CSS only interpolates
   LINEARLY in value-space between any two keyframes). animation (not
   transition) because transform needs independent per-axis keyframes a
   two-value transition can't express; fill-mode:both holds the 0%/100%
   state outside the animation's own run so there's no flash of the plain
   base style before/after. Shrink is the same beat reversed, not just
   scale(1→0.48) — same tension on the way back in per the earlier
   "스크롤을 올리면 반대로" follow-up. */
@keyframes videoSnapGrow{
  0%   { transform:scale(0.48, 0.48); border-radius:40px; }
  40%  { transform:scale(0.68, 0.36); border-radius:30px; }
  72%  { transform:scale(1.08, 0.94); border-radius:8px; }
  100% { transform:scale(1, 1); border-radius:0px; }
}
@keyframes videoSnapShrink{
  0%   { transform:scale(1, 1); border-radius:0px; }
  32%  { transform:scale(1.1, 0.86); border-radius:6px; }
  68%  { transform:scale(0.4, 0.56); border-radius:32px; }
  100% { transform:scale(0.48, 0.48); border-radius:40px; }
}
.video-quote.is-grown{
  animation:videoSnapGrow 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.video-quote.is-shrunk{
  animation:videoSnapShrink 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@media (prefers-reduced-motion: reduce){
  .video-quote.is-grown, .video-quote.is-shrunk{animation:none; transform:scale(1); border-radius:0px;}
}
.video-quote-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
}
.video-quote-overlay{
  position:absolute;
  inset:0;
  background:rgba(10,10,12,0.6);
  z-index:1;
}
/* Vignette so the video blends into the next (plain dark) section instead
   of cutting off on a hard edge when the pin releases — canvas-colored
   gradient over the bottom ~40% of the frame. */
.video-quote-fade{
  position:absolute;
  left:0; right:0; bottom:0;
  height:40%;
  background:linear-gradient(to bottom, rgba(10,10,12,0) 0%, var(--canvas) 100%);
  z-index:1;
  pointer-events:none;
}
.video-quote-inner{
  position:relative;
  z-index:2;
  padding:var(--space-24) 0 var(--space-10);
  text-align:center;
  /* Whole-block rise: on lxlcreative.co.uk the statement text isn't
     revealed char-by-char — it's one mass that rides up from below the
     frame as a unit once the video is fully pinned, and keeps climbing
     as you scroll. initVideoQuoteReveal sets the hidden (opacity:0,
     translateY) starting point itself and then animates it on scroll —
     deliberately NOT set as a CSS default here, so that if JS fails to
     run for any reason the text still shows (visible is the safe
     fallback, not permanently invisible). */
  will-change:transform, opacity;
}
.video-quote-text{
  max-width:1100px;
  margin-left:auto;
  margin-right:auto;
  font-family:var(--font-display);
  font-size:clamp(28px, 4.4vw, 56px);
  font-weight:var(--font-weight-semibold);
  line-height:1.35;
  letter-spacing:-0.02em;
  margin-bottom:var(--space-10);
  color:var(--ink-muted);
}
.video-quote-text .nx-hero-sub-strong{color:var(--primary-hover);}
/* keeps a word together: a long first line breaks only at the <wbr> between two of these, e.g. "インフルエンサー / マーケティングから、" on phones */
.video-quote-text .nx-keep{white-space:nowrap;}
.video-quote-cta{margin-top:var(--space-10);}

@media (max-width:640px){
  .video-quote-pin{height:220vh;margin-top:var(--space-10);}
}

.nx-hero-mockup{padding-bottom:var(--space-24);}
.nx-hero-cta{display:flex;gap:var(--space-4);flex-wrap:wrap;justify-content:center;}

/* ---------- Product mockup ----------
   linear.app's actual identity is "the product IS the marketing" — every
   section pairs one line of copy with a large, detailed live-product UI
   panel. This redesign had none, which is the single biggest reason it
   didn't read as Linear no matter how close the tokens got. Built in CSS
   (no image asset) as a LINKONE analytics-dashboard mockup — ELINHA's own
   actual product, not a generic placeholder. */
.nx-product-frame{
  margin-top:var(--space-16);
  background:var(--surface-1);
  border:1px solid var(--hairline);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md);
  overflow:hidden;
}
.nx-product-topbar{
  display:flex;
  align-items:center;
  gap:var(--space-5);
  padding:var(--space-3) var(--space-5);
  border-bottom:1px solid var(--hairline);
}
.nx-product-dot{width:8px;height:8px;border-radius:50%;background:var(--hairline-strong);}
.nx-product-title{
  font-family:var(--font-sans);
  font-size:12px;
  font-weight:var(--font-weight-medium);
  color:var(--ink-subtle);
}
.nx-product-body{display:flex;min-height:340px;}
.nx-product-sidebar{
  width:168px;
  flex-shrink:0;
  padding:var(--space-5) var(--space-3);
  border-right:1px solid var(--hairline);
  display:flex;
  flex-direction:column;
  gap:2px;
}
.nx-product-nav-item{
  padding:var(--space-2) var(--space-3);
  border-radius:var(--radius-md);
  font-size:13px;
  color:var(--ink-subtle);
}
.nx-product-nav-item.active{background:var(--surface-2);color:var(--ink);font-weight:var(--font-weight-medium);}
.nx-product-main{flex:1;min-width:0;padding:var(--space-6);display:flex;flex-direction:column;gap:var(--space-6);}
.nx-product-stats{display:flex;gap:var(--space-8);flex-wrap:wrap;}
.nx-product-stat{display:flex;flex-direction:column;gap:4px;}
.nx-product-stat-label{font-size:12px;color:var(--ink-subtle);}
.nx-product-stat-value{font-size:var(--text-lg-size);font-weight:var(--font-weight-semibold);letter-spacing:-0.02em;color:var(--ink);}
.nx-product-chart{
  display:flex;
  align-items:flex-end;
  gap:var(--space-3);
  height:96px;
  padding:var(--space-3);
  background:var(--surface-2);
  border-radius:var(--radius-md);
}
.nx-product-bar{
  flex:1;
  height:var(--h);
  background:var(--primary);
  border-radius:3px 3px 0 0;
  opacity:0.85;
}
.nx-product-rows{display:flex;flex-direction:column;}
.nx-product-row{
  display:grid;
  grid-template-columns:72px 1fr auto auto;
  align-items:center;
  gap:var(--space-4);
  padding:var(--space-3) 0;
  border-top:1px solid var(--hairline);
  font-size:13px;
}
.nx-product-id{font-family:var(--font-mono);color:var(--ink-subtle);font-size:11px;}
.nx-product-name{color:var(--ink);}
.nx-product-pill{
  font-size:11px;
  font-weight:var(--font-weight-medium);
  padding:2px var(--space-3);
  border-radius:9999px;
  background:var(--surface-2);
  color:var(--ink-subtle);
  white-space:nowrap;
}
.nx-product-pill--active{background:var(--primary-soft);color:var(--primary-hover);}
.nx-product-roi{font-family:var(--font-mono);font-size:12px;color:var(--primary-hover);text-align:right;}

@media (max-width:700px){
  .nx-product-sidebar{display:none;}
  .nx-product-row{grid-template-columns:56px 1fr auto;}
  .nx-product-roi{display:none;}
}

/* ---------- About ----------
   linear.app's own about-style sections: one short headline, one wide
   sentence-case paragraph. No eyebrow, no card, no all-caps, no counters.
   min-height:100vh (not a width change — that was a misread of the
   original request) gives #about the same full-viewport-tall footprint
   as the site's other full-screen sections, so there's enough vertical
   room for the curve line to actually weave through it the way it does
   in the user's own Figma reference instead of the line's relevant
   portion falling outside a short, content-sized section. */
#about{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
}
/* Matches .video-quote-text's own size (the hero's "インフルエンサー連携
   から..." line) exactly, overriding the shared #about/#services/#news/
   #contact/#company h2 rule in style.css which is otherwise identical
   across all of them. */
/* line-height:1.2, not the shared rule's fixed --text-xl-lh (40px) —
   that was tuned for --text-xl-size (36px) and this h2 clamps up to
   56px, so once the heading wrapped to 2 lines (the explicit <br>) the
   fixed 40px box per line was shorter than the glyphs themselves,
   overlapping the two lines ("글씨가 겹쳐 보여"). A relative line-height
   scales with the font-size instead. */
#about .section-head h2{font-size:clamp(28px, 4.4vw, 56px); line-height:1.2;}
/* width:100% is the actual fix here — #about is a flex container (for
   the vertical align-items:center below the h2 size override), and a
   flex item's default main-axis (horizontal, flex-direction is row)
   sizing is shrink-to-fit-content, not "fill the parent" like a normal
   block child. Without this, .wrap was computing at its own text width
   instead of the section's full width, so `margin:0 auto` centered that
   narrower box and shifted the heading's left edge ~40px right of
   where #news/#company's h2 (same .wrap class, same padding) sits —
   spotted via "입 부분이 다른거에 비해 정렬이 안맞는거같은데". */
#about > .wrap{position:relative; z-index:1; margin-top:-120px; width:100%;}
.section-statement{
  max-width:760px;
  font-size:clamp(17px, 1.6vw, 20px);
  line-height:1.6;
  color:var(--ink-muted);
}

/* ---------- Curve — scroll-drawn SVG line running through About's own
   heading (moved here from #services per explicit request — see the
   HTML comment above .curve-divider in index.html), modeled on
   lusion.co's WebGL tube (see initCurveDraw in main.js for the
   dasharray/dashoffset scroll scrub). Absolutely positioned + behind
   #about's own content (z-index:0 vs. #about > .wrap's z-index:1)
   instead of taking up its own flow height. About now sits directly
   after .nx-hero (was after the much taller video-quote-pin section
   before the reorder that put About first) — top was retuned for that
   much shorter run-up; #about has no overflow:hidden so this is free to
   spill past its own edges either direction. Height (1150px) still runs
   past #about's own bottom into whatever follows (the video-quote
   section now), same carry-over effect as before. ---------- */
#services{position:relative;}
.curve-divider{
  position:absolute;
  top:150px; left:0;
  width:100%;
  height:1050px;
  z-index:0;
  pointer-events:none;
}
.curve-svg{
  width:100%;
  height:100%;
  display:block;
}
.curve-path{
  will-change:stroke-dashoffset;
}
@media (max-width:640px){
  .curve-divider{top:90px; height:750px; overflow:hidden;}
  /* keep the desktop proportions (≈1440×1050) instead of squeezing the
     drawing into the phone width — anchored left like desktop so the
     loop stays on screen, and the right tail just gets clipped */
  .curve-svg{width:calc(750px * 1440 / 1050);}
  .curve-path{stroke-width:19;}
}

/* ---------- Services intro — split layout modeled on lxlcreative.co.uk's
   "Our Services" (heading/lead/CTA left, cycling photo card right). Both
   columns live inside ONE sticky panel (.svc-intro), itself the only
   sticky element inside ONE tall pin wrapper (.svc-intro-pin) — same
   pin-wrapper + sticky-child technique as .video-quote-pin/.video-quote.
   Using two INDEPENDENTLY sticky columns instead (each with a matching
   `top`) looks almost the same but isn't the same thing: they're two
   separate boxes that happen to share a number, not one fixed unit, and
   it reads that way. One shared sticky panel is what actually makes the
   whole intro feel like a single frame while only the photo swaps inside
   it. See initServiceCycle in main.js for the scroll-driven crossfade. */
.svc-intro-pin{
  position:relative;
  height:400vh;
}
.svc-intro{
  position:sticky;
  top:0;
  height:100vh;
  /* Must paint over the first service slide while it releases and
     scrolls away (see the no-fade comment in initServiceCycle) — sticky
     always makes its own stacking context, and later DOM order would
     otherwise let the slide underneath win by default. */
  z-index:10;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--space-16);
  align-items:center;
  will-change:opacity;
}
.svc-intro-left{text-align:center;}
#services .svc-intro-left .section-head{text-align:center;}
.svc-intro-left .section-head{margin-bottom:var(--space-8);}
.svc-intro-cta{display:inline-flex; align-items:center; gap:var(--space-2); width:fit-content; margin-inline:auto;}
/* .svc-cycle is just a sizing reference, NOT a mask — no overflow:hidden.
   Each card (image + label + rounded corners + border) lives entirely on
   .svc-cycle-item and is free to move past this box's edges while
   animating, so cards read as independent objects drifting through open
   space rather than content clipped inside a fixed window. */
.svc-cycle{
  position:relative;
  width:100%;
  max-width:460px;
  aspect-ratio:4/5;
  max-height:70vh;
  margin-inline:auto;
}
/* Cards don't travel in a straight vertical line — each one arcs in from
   the bottom-left, settles dead center, then continues arcing out to the
   top-right as it exits (translate + rotate animated together), instead
   of a flat up/down slide. */
/* the whole card / slide opens its service page (initServiceLinks in main.js) */
.svc-cycle-item[data-href], .svc-slide[data-href]{cursor:pointer;}
.svc-cycle-item{
  position:absolute;
  inset:0;
  z-index:1;
  border-radius:var(--radius-lg, 20px);
  overflow:hidden;
  background:var(--surface-2);
  /* Default (upcoming, not yet active) — stacked directly behind the
     active card, not fanned out at an angle: same alignment, just
     slightly smaller and nudged down so a thin straight sliver peeks
     out along the bottom edge (matches the reference's resting stack —
     the tilt only happens during the actual enter/exit motion below). */
  opacity:0.55;
  transform:translate(0, 5%) scale(0.96);
  /* Opacity is deliberately much faster than the transform: cards fully
     overlap (position:absolute, inset:0), so as long as the incoming
     card is still mid-fade it's translucent and the outgoing card shows
     through underneath/behind it as a ghosted double-exposure. Snapping
     opacity to its target quickly (while the slide/rotate keeps taking
     the full 0.7s for the visual flourish) closes that window almost
     entirely without losing the arcing motion. */
  transition:transform 0.7s cubic-bezier(0.22,1,0.36,1), opacity 0.2s ease;
  will-change:transform, opacity;
}
.svc-cycle-item.is-active{opacity:1; transform:translate(0, 0) rotate(0deg); z-index:2;}
.svc-cycle-item.is-passed{opacity:1; transform:translate(10%, -150%) rotate(7deg); z-index:3;}
/* Cards more than one turn away stay fully invisible — otherwise two
   stacked cards both resting at opacity 0.55 show through each other. */
.svc-cycle-item.is-queued{opacity:0;}
.svc-cycle-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  background:var(--surface-3);
}
.svc-cycle-label{
  position:absolute;
  left:var(--space-6);
  bottom:var(--space-6);
  right:var(--space-6);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--space-4);
  padding:var(--space-4) var(--space-5);
  color:var(--ink-bright);
  font-weight:var(--font-weight-semibold);
  text-shadow:0 1px 8px rgba(0,0,0,0.5);
}
.svc-cycle-arrow{color:var(--primary-hover);}
@media (max-width:900px){
  .svc-intro-pin{height:auto;}
  .svc-intro{position:relative; top:0; height:auto; grid-template-columns:1fr; padding:var(--space-16) 0;}
  /* No pin/sticky here at all on mobile, so there's no scroll-through
     range for initServiceCycle's progress math to work with — it was
     landing on progress:0 forever and freezing on the first card. Turn
     the cycling stack into a plain vertical list of all three cards
     instead, so every image is simply visible (nothing to cycle). The
     three-selector rule matches .is-active/.is-passed too, so it wins
     regardless of which class initServiceCycle happens to be toggling. */
  .svc-cycle{
    aspect-ratio:unset;
    max-height:none;
    display:flex;
    flex-direction:column;
    gap:var(--space-6);
  }
  .svc-cycle-item,
  .svc-cycle-item.is-active,
  .svc-cycle-item.is-passed{
    position:relative;
    inset:auto;
    aspect-ratio:4/5;
    opacity:1;
    transform:none;
    z-index:auto;
  }
}

/* ---------- Service slides — full-viewport pinned slides ----------
   Modeled on GSAP's "Slides Pinning" demo (codepen.io/GreenSock/pen/
   bGRdvMy): each service pins full-screen, then scales down + fades as
   the next slide scrolls up to cover it. See initServiceSlides in
   main.js for the shrink/fade (driven off the same pin-wrapper +
   sticky-child + scroll-progress technique as .video-quote-pin). The
   last slide never shrinks away — nothing scrolls up to replace it, so
   it just releases normally like the GSAP demo's `panels.pop()`. */
/* Layout below is a direct port of the CodePen's own CSS (.section /
   .section-inner / .image / .section h1), pulled straight from its
   CodeMirror editor — single centered column (index/sub → title → image
   → description → link), not a side-by-side split. Title size is our
   own call per the brief: our biggest design-system step (--text-4xl,
   60px) instead of their bespoke max(4rem, min(12vw+1rem,16rem)). */
.svc-slides-wrapper{position:relative;}
.svc-slide-pin{position:relative; height:180vh;}
/* position:sticky lives on this wrapper, never on .svc-slide itself —
   some Chrome builds fail to repaint a scroll-driven transform applied
   directly to a sticky element (computed style updates correctly, but
   the painted layer doesn't), so the scale/fade in main.js targets this
   plain non-sticky child instead. */
/* Sticks right below the fixed header, not at the literal viewport top —
   top:0 here would let the header (higher stacking, since position:sticky
   always creates its own context) permanently cover the slide's top
   header-height once stuck, reading as the slide sliding away under it. */
.svc-slide-sticky{position:sticky; top:var(--header-h); height:calc(100vh - var(--header-h));}
.svc-slide{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  transform-origin:center center;
  will-change:transform, opacity;
}
.svc-slide[data-bg="canvas"]{background:var(--canvas);}
/* Pastel yellow/blue/pink are light backgrounds, so the rest of the
   dark-theme text tokens (ink-bright/ink-soft/primary-hover mint) would
   be nearly invisible on them — override to dark ink + the plain pine
   accent (instead of mint) just for these slides. All three also get
   the same top-only rounding. */
.svc-slide[data-bg="pastel-yellow"]{background:#DFDCFF; border-radius:40px 40px 0 0;}
.svc-slide[data-bg="pastel-yellow"] .svc-slide-inner{color:var(--pine-dark);}
.svc-slide[data-bg="pastel-yellow"] .svc-slide-inner h3{color:var(--inverse-ink);}
.svc-slide[data-bg="pastel-yellow"] .svc-row-index{color:rgba(21,75,62,0.55);}
.svc-slide[data-bg="pastel-yellow"] .svc-row-sub{color:var(--primary);}
.svc-slide[data-bg="pastel-yellow"] .svc-slide-inner p{color:rgba(21,75,62,0.9);}   /* a bit darker for the lavender background (contrast) */
.svc-slide[data-bg="pastel-yellow"] .svc-link{color:#016B35;}   /* darker brand green on lavender (contrast >= 4.5) */
.svc-slide[data-bg="pastel-blue"]{background:#E2FAFF; border-radius:40px 40px 0 0;}
.svc-slide[data-bg="pastel-blue"] .svc-slide-inner{color:var(--pine-dark);}
.svc-slide[data-bg="pastel-blue"] .svc-slide-inner h3{color:var(--inverse-ink);}
.svc-slide[data-bg="pastel-blue"] .svc-row-index{color:rgba(21,75,62,0.55);}
.svc-slide[data-bg="pastel-blue"] .svc-row-sub{color:var(--primary);}
.svc-slide[data-bg="pastel-blue"] .svc-slide-inner p{color:rgba(21,75,62,0.75);}
.svc-slide[data-bg="pastel-blue"] .svc-link{color:#016B35;}
.svc-slide[data-bg="pastel-pink"]{background:#FEF6F3; border-radius:40px 40px 0 0;}
.svc-slide[data-bg="pastel-pink"] .svc-slide-inner{color:var(--pine-dark);}
.svc-slide[data-bg="pastel-pink"] .svc-slide-inner h3{color:var(--inverse-ink);}
.svc-slide[data-bg="pastel-pink"] .svc-row-index{color:rgba(21,75,62,0.55);}
.svc-slide[data-bg="pastel-pink"] .svc-row-sub{color:var(--primary);}
.svc-slide[data-bg="pastel-pink"] .svc-slide-inner p{color:rgba(21,75,62,0.75);}
.svc-slide[data-bg="pastel-pink"] .svc-link{color:#016B35;}
.svc-slide-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  width:100%;
  /* Padding lives here, not on .svc-slide, on purpose: this box's own
     scrollHeight (padding included) is exactly what initServiceSlides
     measures to size the reveal-scroll range, so the breathing room
     automatically gets folded into that math for free — no separate
     adjustment needed. Without it, content could sit flush against the
     very top/bottom edge of the viewport with zero margin, which reads
     as "cut off" even when technically nothing is clipped. */
  /* Extra bottom padding (well past --space-14's 56px) buys more reveal-
     scroll distance after the "more" link so the exit/shrink doesn't
     start clipping the last line the instant it appears — there's room
     to actually finish reading it first. */
  padding:var(--space-14) 0 250px;
  will-change:transform;
}
.svc-slide-inner .svc-row-index{
  display:block;
  font-family:var(--font-mono);
  font-size:15px;
  color:var(--ink-subtle);
  margin-bottom:var(--space-3);
}
.svc-slide-inner .svc-row-sub{
  display:block;
  font-size:12px;
  font-weight:var(--font-weight-medium);
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--primary-hover);
  margin-bottom:var(--space-4);
}
.svc-slide-inner h3{
  /* Same font as the hero's "Discover Invisible Value" canvas text (index.html, liquid-glass backdrop.font):
     Inter, bold 700, 170px, line-height 1.1, letter-spacing 0 — not the site's display stack. */
  font-family:"Inter", system-ui, -apple-system, sans-serif;
  font-size:clamp(32px, 9.0278vw, 130px);   /* same size rule as the "Discover Invisible Value" band (.horizontal-reveal-text): 130px from 1440px wide up, fluid below */
  line-height:1.1;
  font-weight:700;
  letter-spacing:0;
  margin:0 auto var(--space-8);
}
.svc-slide-visual{
  position:relative;
  width:50%;
  aspect-ratio:1/1;
  margin-top:var(--space-6);
  margin-bottom:var(--space-8);
  border-radius:var(--radius-lg, 20px);
  overflow:hidden;
}
.svc-slide-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.svc-slide-subtitle{
  display:block;
  font-family:var(--font-display);
  font-size:20px;
  font-weight:var(--font-weight-semibold);
  letter-spacing:-0.01em;
  margin-bottom:var(--space-3);
}
.svc-slide-inner p{
  font-size:var(--text-sm-size);
  color:var(--ink-soft);
  /* --text-sm-lh's paired 24px is only 1.2x — too tight for a multi-line
     paragraph, so overriding with a relative 1.55x (~31px) instead. */
  line-height:1.55;
  /* Matches .svc-slide-visual's own width:50% so the paragraph can run
     out to the same edges as the image above it, not stay pinched to a
     narrow 40ch column. */
  max-width:50%;
  margin:0 auto var(--space-5);
}
.svc-slide-inner .svc-link{font-size:var(--text-body-md-size);font-weight:var(--font-weight-medium);color:var(--primary-hover);}

@media (max-width:900px){
  .svc-slide-pin{height:auto;}
  .svc-slide-sticky{position:relative; top:0; height:auto;}
  .svc-slide{height:auto; padding:var(--space-20) 0;}
  /* no reveal-scroll here, so the desktop's extra 250px run-out below the link is just empty space */
  .svc-slide-inner{padding-bottom:0;}
  .svc-slide-visual{width:80%;}
  /* The fixed 170px desktop title (matched to the hero's canvas text)
     would overflow a phone-width column, so scale it back down here. */
  .svc-slide-inner h3{font-size:clamp(36px, 12vw, 72px);}
  /* the picture runs (nearly) full width here, so the description follows it instead of keeping the desktop half width */
  .svc-slide-inner p{max-width:none;}
}

/* ---------- News — plain list ----------
   Was a featured-thumbnail-plus-card grid (again a Nexus/readdy.cc
   device — a gradient "image" standing in for a real photo). Linear's own
   /build changelog is a flat divided list, so that's what this is now. */
.news-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:var(--space-4);
  flex-wrap:wrap;
  margin-bottom:var(--space-10);
}
.news-list{display:flex;flex-direction:column;}
.news-row{
  display:grid;
  grid-template-columns:96px 84px 1fr;
  align-items:baseline;
  gap:var(--space-5);
  padding:var(--space-6) 0;
  border-top:1px solid var(--hairline);
}
.news-list li:last-child{border-bottom:1px solid var(--hairline);}
.news-date{font-family:var(--font-mono);font-size:var(--text-body-sm-size);color:var(--ink-subtle);}
.news-tag{
  font-size:12px;
  font-weight:var(--font-weight-medium);
  letter-spacing:0.04em;
  text-transform:uppercase;
  padding:var(--space-2) var(--space-3);
  background:var(--primary-soft);
  color:var(--primary-hover);
  border-radius:9999px;
  justify-self:start;
}
.news-row-title{
  font-size:var(--text-body-lg-size);
  font-weight:var(--font-weight-medium);
  color:var(--ink);
}
a.news-row-title:hover{color:var(--pine);}
.news-row-body{display:flex;flex-direction:column;gap:var(--space-2);}
.news-row-body p{font-size:var(--text-body-md-size);color:var(--ink-soft);line-height:1.6;}

@media (max-width:640px){
  .news-row{grid-template-columns:1fr;gap:var(--space-2);}
}

/* ---------- Join (closing CTA) ----------
   Was --ink (the site's one dark section on an otherwise light page); the
   whole site is dark now, so this lifts one surface step instead, per
   Linear's cta-banner spec (flat surface-1, no color fill). Dot texture
   is ELINHA's own mint, matching the hero's. */
.nx-join{
  position:relative;
  background:var(--surface-1);
  color:var(--ink);
  overflow:hidden;
  padding:var(--space-25) 0 var(--space-16);
}
.nx-join-dots{
  position:absolute;
  inset:0;
  background-image:radial-gradient(circle, rgba(170,208,187,0.45) 1.5px, transparent 1.5px);
  background-size:22px 22px;
  -webkit-mask-image:radial-gradient(ellipse 70% 60% at 50% 20%, black 0%, transparent 75%);
  mask-image:radial-gradient(ellipse 70% 60% at 50% 20%, black 0%, transparent 75%);
  opacity:0.7;
}
.nx-join-top{
  position:relative;
  z-index:1;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:var(--space-10);
  flex-wrap:wrap;
  padding-bottom:var(--space-16);
  border-bottom:1px solid var(--line-dark);
}
.nx-join-title{
  font-family:var(--font-display);
  font-weight:var(--font-weight-semibold);
  font-size:clamp(1.9rem,5vw,3.2rem);
  line-height:1.15;
  letter-spacing:-0.03em;
}
.nx-join-title span{display:block;}
.nx-join-title .accent{color:var(--mint);}
.nx-join-cta{max-width:360px;display:flex;flex-direction:column;gap:var(--space-5);}
.nx-join-cta p{color:var(--on-dark-muted);font-size:var(--text-body-md-size);}
.nx-join-stats{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:var(--space-8);
  padding:var(--space-12) 0 0;
}
.nx-stat{
  display:flex;
  flex-direction:column;
  gap:var(--space-2);
  border-left:1px solid var(--line-dark);
  padding-left:var(--space-6);
}
.nx-stat:first-child{border-left:none;padding-left:0;}
.nx-stat-num{font-family:var(--font-display);font-weight:var(--font-weight-bold);font-size:var(--text-3xl-size);color:var(--mint);}
.nx-stat-label{font-size:var(--text-body-sm-size);color:var(--on-dark-muted);}

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .nx-hero-card{padding:var(--space-16) 0 0;}
  .nx-hero-bottom{gap:var(--space-10);}
  .nx-card-grid{grid-template-columns:1fr;}
  .nx-card{border-right:none;border-bottom:1px solid var(--line);}
  .nx-card:last-child{border-bottom:none;}
  .nx-voice-grid{grid-template-columns:1fr;}
  .nx-library-grid{grid-template-columns:1fr;}
  .nx-join-stats{grid-template-columns:repeat(2,1fr);row-gap:var(--space-8);}
  .nx-stat:nth-child(3){border-left:none;padding-left:0;}
}

@media (max-width:760px){
  .nx-hero{padding-top:calc(var(--header-h) + var(--space-8));}
  .nx-hero-top{padding-bottom:var(--space-8);}
  .nx-hero-card{padding:var(--space-12) 0 0;}
  .nx-hero-bottom{align-items:flex-start;flex-direction:column;gap:var(--space-9);}
  .label-bar{gap:var(--space-3);}
  .modal{padding:var(--space-6);}
  .modal-meta{grid-template-columns:1fr;}
  .nx-join-top{align-items:flex-start;flex-direction:column;}
}

/* ---------- Marquee divider ----------
   Modeled on gsap.com/showcase's "SUBMIT YOUR SITE TO THE SHOWCASE" info
   bar: a full-width, flat (no rotation/skew) band with a diagonal
   gradient fill and an infinite, seamless left-scrolling text loop,
   driven by rAF (not a CSS @keyframe) so the loop point never jumps.
   Recolored to the ELINHA chip and links into #about. */
.marquee-band{
  display:block;
  width:100%;
  height:44px;
  overflow:hidden;
  background:linear-gradient(114deg, var(--pine) 20%, var(--mint) 75%);
}
.marquee-track{
  display:flex;
  height:100%;
  width:max-content;
  will-change:transform;
}
.marquee-group{
  display:flex;
  align-items:center;
  flex-shrink:0;
}
.marquee-item{
  font-family:var(--font-sans);
  font-size:14px;
  font-weight:var(--font-weight-semibold);
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:var(--inverse-ink);
  white-space:nowrap;
  padding:0 var(--space-4);
}
.marquee-sep{
  color:var(--inverse-ink);
  opacity:0.55;
  font-size:12px;
}

@media (max-width:640px){
  .marquee-band{height:36px;}
  .marquee-item{font-size:12px;padding:0 var(--space-3);}
}

/* ---------- Horizontal reveal (between Services and News) ---------- */
.horizontal-reveal{
  height:45vh;
  overflow:hidden;
  display:flex;
  align-items:center;
  background:var(--canvas);
}
.horizontal-reveal-inner{
  display:flex;
  align-items:center;
  width:max-content;
  will-change:transform;
}
.horizontal-reveal-text{
  /* NOT display:flex on the text itself — flex containers drop
     whitespace-only text nodes between inline-block children (the
     spaces between .char spans), collapsing every word together. Plain
     inline/block layout keeps them. flex-shrink:0 here is for its role
     as a flex ITEM of .horizontal-reveal-inner (two copies side by side
     for the seamless loop, same as .marquee-group). */
  flex-shrink:0;
  white-space:nowrap;
  margin:0 6vw 0 0;
  font-family:var(--font-display);
  font-size:clamp(32px, 9.0278vw, 130px);   /* 130px from 1440px wide up, fluid below (same rule as the Service N labels) */
  font-weight:var(--font-weight-semibold);
  line-height:1.1;
  letter-spacing:-0.02em;
  color:var(--ink);
}
.horizontal-reveal-text .char{
  display:inline-block;
  will-change:transform;
}
.horizontal-reveal-sep{
  display:inline-flex;
  align-items:center;
  margin:0 0.4em;
}
.horizontal-reveal-sep img{
  height:0.85em;
  width:auto;
  display:block;
}

@media (max-width:900px){
  .horizontal-reveal{height:30vh;}
}

/* ---------- VOICES — client-quote carousel (lxlcreative.co.uk-style
   avatar row + arc accent + big pull-quote) ---------- */
/* Dark-to-yellow is a real background-color transition, not a sticky-
   cover illusion — checked the reference's live DOM this time instead
   of guessing: their equivalent section carries
   data-animate-theme-to="light" and <body> holds the whole color
   palette as live CSS custom properties, so scrolling into the section
   actually flips the custom property (and everything bound to it)
   between the dark and light theme values. Reproduced minimally here
   as a single background-color transition toggled by initVoicesTheme
   in main.js once the section has scrolled far enough up to start
   being readable — well before the padding-pushed-down quote text
   itself would reach a readable position, same timing relationship the
   reference relies on. */
.voices{
  background:var(--canvas);
  transition:background-color 1s ease;
  min-height:100vh;
  display:flex;
  align-items:center;
  padding:clamp(100px, 12vw, 160px) 0;
}
.voices.is-revealed{
  /* FFFCE1 (back from a brief F9F7E7 detour) matches #news/#company's
     own light-mode --canvas (style.css), so every light section on the
     page shares the same tone. Now white (user request) for this section only. */
  background:#FFFFFF;
}
.voices-inner{
  max-width:900px;
  text-align:center;
}

.voices-avatars{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:var(--space-12);
  margin:0 0 var(--space-10);
}
.voices-avatar-wrap{position:relative;}
/* Shape is the ELINHA symbol mark, not a plain circle, per explicit
   request. The mark is a solid-black silhouette SVG (엘리나_심볼_2_
   Black.svg), so it's applied as a CSS mask (not a background-image or
   <img>) — that lets the actual visible color stay our own
   --pine-dark token instead of being locked to the file's black fill,
   and keeps it a single flat shape instead of a raster/vector image
   asset sitting on top of a separate circle. The mask goes on ::before
   (not the button itself) so the "01/02/03" text — a plain text node,
   not its own element — isn't clipped by the mask along with it; the
   pseudo-element is negative-z-index'd behind that text instead. */
.voices-avatar{
  width:65px;
  height:65px;
  border:none;
  cursor:pointer;
  position:relative;
  /* z-index:0 (not just position:relative) is required so this always
     establishes its OWN stacking context — otherwise only the .is-active
     avatar (which gets one for free from its transform:scale below) was
     containing its ::before's z-index:-1 correctly; the two non-active,
     non-transformed avatars had that negative z-index escape to whatever
     the nearest ANCESTOR stacking context was instead, which happened to
     paint behind it — so only the centered avatar's symbol mask was
     actually visible, confirmed via elementFromPoint + computed-style
     checks on all three showing byte-for-byte identical ::before rules
     despite 2 of 3 rendering invisible. */
  z-index:0;
  background:none;
  color:#FFFCE1;
  font-family:var(--font-display);
  font-weight:var(--font-weight-semibold);
  font-size:12px;
  letter-spacing:0.04em;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.voices-avatar::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background-color:var(--pine-dark);
  /* 90% — first tuned down to 70% to open a gap from the .voices-arc
     ring, then bumped back up per follow-up ("로고 크기가 너무 작아졌어")
     once the 2-2 symbol swap made that smaller size read as too tiny
     overall; still short of contain (100%) so the ring gap survives. */
  -webkit-mask:url(../images/엘리나_심볼_2-2_Black.svg) center/90% no-repeat;
  mask:url(../images/엘리나_심볼_2-2_Black.svg) center/90% no-repeat;
}
/* Only the centered (active) avatar is ever bigger — the side ones stay
   at the base size always, matching the reference's carousel (size is a
   property of the slot, not of "whichever testimonial is current").
   1.38x brings the 65px base up to ~90px centered — the side avatars'
   old size, now themselves shrunk down to read clearly smaller. */
.voices-avatar-wrap.is-active .voices-avatar{transform:scale(1.38);}
/* Full-circle progress ring, not a static decoration — initVoices drives
   .voices-arc-circle's stroke-dasharray frame-by-frame from empty to a
   complete loop over each testimonial's on-screen duration (starting at
   12 o'clock, via the -90deg rotation below), then auto-advances to the
   next avatar. A 0-length dash alone still renders as a small dot with
   round linecaps, so the side rings are additionally hidden with
   opacity — only .is-active ever shows one. Sized around the ~90px
   scaled-up center avatar, not the 65px unscaled wrap it's positioned
   against. */
.voices-arc{
  position:absolute;
  top:-25px;
  left:-25px;
  width:115px;
  height:115px;
  opacity:0;
  pointer-events:none;
}
/* Not just .is-active — the ring stays hidden until initVoices adds
   is-ring-visible too, once the quote's line-by-line reveal has
   actually finished (matches the reference: no ring at all shows up
   while the text is still animating in). */
.voices-avatar-wrap.is-active.is-ring-visible .voices-arc{opacity:1;}
.voices-arc-circle{
  fill:none;
  stroke:var(--pine);
  stroke-width:2.5;
  stroke-linecap:round;
  transform:rotate(-90deg);
  transform-origin:50% 50%;
}

/* Every quote/attribution variant occupies the same grid cell — the
   container auto-sizes to the tallest one and switching which is
   .is-active is a plain opacity crossfade, no JS height measuring or
   position:absolute + reserved-height hacks needed. Opacity is kept
   fast (not the arc's leisurely 0.35s) so two variants are never both
   solidly visible at once — same ghosting lesson as .svc-cycle-item. */
.voices-quotes{display:grid;}
.voices-quote{
  grid-area:1 / 1;
  opacity:0;
  transition:opacity 0.2s ease;
  pointer-events:none;
  margin:0;
}
.voices-quote.is-active{opacity:1; pointer-events:auto;}
.voices-quote p{
  margin:0;
  font-family:var(--font-display);
  font-weight:var(--font-weight-bold);
  font-size:clamp(22px, 3.2vw, 40px);
  line-height:1.3;
  letter-spacing:-0.01em;
  /* Starts white for the section's own dark phase, then follows
     .voices.is-revealed over to dark ink once the background has
     flipped to yellow — same 1s as the background-color transition
     itself (see initVoicesTheme in main.js), so text and background
     cross over together instead of one lagging the other. */
  color:var(--inverse-canvas);
  transition:color 1s ease;
}
.voices.is-revealed .voices-quote p{
  color:var(--inverse-ink);
}
/* Per-line reveal (initVoices splits each quote into .voices-char spans,
   then groups them by offsetTop into one .voices-line-mask per detected
   line — see splitVoiceChars/wrapVoiceLines there). Each line's content
   sits in an overflow:hidden mask, starting pushed below it; adding
   .is-revealed on the quote (staggered per line via each inner's own
   transition-delay, set in JS) slides them up into place one at a time.
   Removing the class has no transition rule to run, so it snaps back
   to hidden instantly — ready to replay clean next time this quote
   becomes active. */
.voices-line-mask{display:block; overflow:hidden;}
.voices-line-inner{
  display:block;
  transform:translateY(115%);
}
.voices-quote.is-revealed .voices-line-inner{
  transform:translateY(0);
  transition:transform 0.75s cubic-bezier(0.22,1,0.36,1);
}

.voices-attributions{display:grid; margin-top:var(--space-6);}
.voices-attribution{
  grid-area:1 / 1;
  opacity:0;
  transition:opacity 0.2s ease, color 1s ease;
  margin:0;
  font-size:var(--text-body-sm-size);
  color:var(--ink-soft);
}
.voices-attribution.is-active{opacity:1;}
.voices.is-revealed .voices-attribution{
  color:var(--pine-dark);
}

@media (max-width:900px){
  .voices{padding:var(--space-18) 0;}
  .voices-avatars{gap:var(--space-8);}
  .voices-avatar{width:50px; height:50px; font-size:11px;}
  .voices-arc{width:88px; height:88px; top:-19px; left:-19px;}
}


/* ================= Page frame, matched to the Chrome page (same as the influencer service page) =================
   Content sits in a box that is max 1440px wide and centred, with side padding 74px (>1200) / 72px (<=1200) /
   40px (<=980) / 28px (<=640). Full-bleed backgrounds (hero, video, coloured bands) are untouched; only the
   .wrap containers inside <main> and the footer follow the frame. The header keeps its own full-width wrap. */
.frame-chrome{--chr-pad:74px;}
@media (max-width:1200px){ .frame-chrome{--chr-pad:72px;} }
@media (max-width:980px){  .frame-chrome{--chr-pad:40px;} }
@media (max-width:640px){  .frame-chrome{--chr-pad:28px;} }
/* .video-quote-inner (small quote card) and .voices-inner (900px centred column) are deliberately narrower than
   the frame and keep their own sizing; they are centred, so they still line up with the frame's centre. */
.frame-chrome main .wrap:not(.video-quote-inner):not(.voices-inner),
.frame-chrome footer .wrap{
  max-width:1440px;
  padding-left:var(--chr-pad);
  padding-right:var(--chr-pad);
}

/* footer divider: the line runs the full width of the screen while the footer text stays inside the frame.
   The wrap itself is only as wide as the 1440px box, so the line is drawn by a pseudo-element that is allowed
   to bleed to both screen edges (the footer clips any overflow, so no horizontal scrollbar appears). */
.frame-chrome .site-footer{overflow-x:clip;}
.frame-chrome footer .footer-bottom{position:relative; border-top:0;}
.frame-chrome footer .footer-bottom::before{
  content:""; position:absolute; top:0;
  left:calc(50% - 50vw); right:calc(50% - 50vw);
  height:1px; background:var(--line-dark); pointer-events:none;
}

/* お知らせ / 会社情報 / お問い合わせ: centred section headings */
#company .section-head,
#contact .section-head{text-align:center;}
#contact .section-head .lead{max-width:640px; margin-left:auto; margin-right:auto;}
#news .news-head{position:relative; justify-content:center;}
#news .news-head .section-head{text-align:center;}
@media (min-width:761px){
  #news .news-head > .btn{position:absolute; right:0; bottom:0;}   /* "すべて見る" stays at the right end of the row */
}

/* お知らせ section: white backdrop (会社情報 keeps the cream) */
#news{--canvas:#FFFFFF; background:#FFFFFF;}


/* ---------- About: small video card that grows into the full-bleed video section ----------
   The card is only a placeholder box (.about-video-slot). The real video is the VIDEO QUOTE section below;
   initVideoQuoteReveal (main.js) moves/scales/clips that section so it sits exactly on this box and then,
   as you scroll, lets it grow into the full-screen section. Without JS the box stays hidden.
   Layout (desktop) follows the lusion.co reference: big heading top-left, the statement on the right just
   below it, and a landscape video card under them on the left. */
#about .about-video-slot{display:none;}
#about.has-morph .about-video-slot{display:block; width:100%; aspect-ratio:16 / 10; border-radius:var(--radius-lg, 20px);}
#about.has-morph > .wrap{
  display:grid; grid-template-columns:repeat(12, minmax(0, 1fr)); column-gap:var(--space-6);
  margin-top:0;   /* the old -120px pull-up would push the heading under the fixed header now that the block is taller */
}
#about.has-morph > .wrap > .section-head{grid-column:1 / -1; grid-row:1;}
#about.has-morph > .wrap > .section-statement{grid-column:7 / -1; grid-row:2; align-self:start; max-width:none;}
#about.has-morph > .wrap > .about-video-slot{grid-column:1 / span 5; grid-row:2 / span 2; align-self:start; margin-top:calc(var(--space-24) + var(--space-12));}   /* clear space (about 48px more down, one more column across) between the statement and the video */
@media (max-width:899px){
  #about.has-morph > .wrap{display:block;}
  #about.has-morph .about-video-slot{margin-top:var(--space-10);}
}
/* the growing video must paint over the About text, and its corners are rounded by the JS clip-path instead */
.video-quote-pin{z-index:2;}
#about.has-morph ~ .video-quote-pin .video-quote{border-radius:0;}

/* the dark overlay / bottom fade are lighter while the video is still a small card (JS sets --vq-dim from 0.2 to 1) */
.video-quote-overlay, .video-quote-fade{opacity:var(--vq-dim, 1);}

/* About heading: same size as the title on the Influencer Marketing service page (.chr-h1) */
#about .section-head h2{font-size:clamp(28px, 4.1176vw, 56px); line-height:1.2; letter-spacing:-0.03em;}

/* all buttons on the home page: 14px text */
.frame-chrome .btn{font-size:14px;}

/* home section titles (事業内容 / お知らせ / 会社情報 / お問い合わせ): 40px */
#services .section-head h2,
#news .section-head h2,
#company .section-head h2,
#contact .section-head h2{font-size:var(--text-2xl-size); line-height:1.2;}

/* former 16px text on the home page -> 18px (section lead, service card label, news titles) */
.frame-chrome .section-head .lead,
.frame-chrome .svc-cycle-label,
.frame-chrome .news-row-title{font-size:18px;}
.frame-chrome .section-head .lead{text-wrap:balance; line-break:strict;}   /* no 3-character last line in the contact lead */

/* About heading: 72px (added to the type scale) */
#about .section-head h2{font-size:clamp(32px, 5.2941vw, 72px);}

/* section lead: 18px */
.frame-chrome .section-head .lead{font-size:18px;}

/* the spring overshoot of the expanding video may be wider than the screen for a moment: clip it (clip, not hidden, keeps position:sticky working) */
.video-quote-pin{overflow-x:clip;}

/* About video card a little larger (desktop): 6 columns wide at 94% (was 5 columns) */
@media (min-width:900px){
  #about.has-morph > .wrap > .about-video-slot{grid-column:1 / span 6; width:94%;}
}


/* ELINHA-green duotone on the small video card (like the blue duotone card on lusion.co): the video turns monochrome,
   a green multiply layer colours the highlights and a deep-green screen layer lifts the blacks. JS sets --vq-tint
   (1 = full tint on the card, 0 = none once it has opened). */
.video-quote{isolation:isolate;}
/* subtle version: only a hint of green (the video keeps most of its own colour) */
.video-quote-bg{filter:grayscale(calc(var(--vq-tint, 0) * 0.47)) contrast(calc(1 + var(--vq-tint, 0) * 0.04));}
.video-quote-tint{position:absolute; inset:0; z-index:1; pointer-events:none;}
.video-quote-tint--mul{background:#9DE7BF; mix-blend-mode:multiply; opacity:calc(var(--vq-tint, 0) * 0.62);}
.video-quote-tint--scr{background:#0B6D3E; mix-blend-mode:screen; opacity:calc(var(--vq-tint, 0) * 0.18);}

/* 事業内容: same sizes as the service pages' "ELINHAが解決します" section — title 56px, body text 18px */
#services .section-head h2{font-size:clamp(28px, 4.1176vw, 56px); line-height:1.2;}
.svc-slide-inner p{font-size:18px;}

/* service name in the slides: 28px (same as the step titles in the service pages' solution section) */
.svc-slide-subtitle{font-size:28px;}

/* all three service slides: the same wide picture box (16:9, like hero-scene1.jpg 1920x1071); slides 2-3 use near-square art, shown cropped to this shape */
.svc-slide .svc-slide-visual{aspect-ratio:1920 / 1071;}
@media (min-width:901px){
  .svc-slide .svc-slide-visual{width:89.6%;}   /* same height as the old square boxes */
}

/* 事業内容 intro card (the one that cycles through the 3 services): a little wider (was max 460px) */
@media (min-width:901px){
  .svc-cycle{max-width:640px; aspect-ratio:1/1;}
  .svc-intro-pin{overflow-x:clip;}
}

/* LinkONE / influencer card images have light backgrounds: dark label instead of the white one */
.svc-cycle-item--light{background:#fff;}
/* 事業内容 cards: pastel gradient per service (same hues as the service slides below) instead of white.
   The tile JPGs have a white backdrop, so they are multiplied onto the gradient and the white falls away;
   a soft white glow behind the tile keeps its white symbol clean. */
.svc-cycle-item--light::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(circle at 50% 46%, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 60%);
}
.svc-cycle-item--light .svc-cycle-img{mix-blend-mode:multiply; background:transparent;}
.svc-cycle-item--light[data-index="0"]{background:linear-gradient(160deg, #1A1230 0%, #0C0814 100%);}   /* influencer: lavender -> pink */
.svc-cycle-item--light[data-index="1"]{background:linear-gradient(160deg, #0F2038 0%, #070D18 100%);}   /* checco: blue */
.svc-cycle-item--light[data-index="2"]{background:linear-gradient(160deg, #2A1512 0%, #0E0807 100%);}   /* LinkONE: peach */
.svc-cycle-item--light .svc-cycle-label{color:#0A0A0C; text-shadow:none;}
.svc-cycle-item--light .svc-cycle-arrow{color:#016B35;}

/* 事業内容「すべてのサービスを見る」: white button */
.svc-intro-cta.btn-primary{background:#fff; border-color:#fff; color:#0A0A0C;}
.svc-intro-cta.btn-primary:hover{background:#E9E9EC; border-color:#E9E9EC; color:#0A0A0C;}

/* ---------- お知らせ / 会社情報 / お問い合わせ: one shared format ----------
   dark backdrop for お知らせ, light green for 会社情報 (お問い合わせ keeps its own background photo), centred heading + short lead,
   same content width, same flat divided look. */
#news{
  --canvas:#0A0A0C; --white:#0A0A0C;
  --surface-1:#131316; --surface-2:#1A1A1E; --surface-3:#202024; --gray:#131316;
  --hairline:rgba(247,248,248,0.14); --hairline-strong:rgba(247,248,248,0.2);
  --ink-bright:#F7F8F8; --ink-muted:rgba(247,248,248,0.62); --ink-subtle:#8A8F98;
  --ink:#F7F8F8; --ink-soft:rgba(247,248,248,0.62);
  --line:rgba(247,248,248,0.14); --line-dark:rgba(247,248,248,0.2);
  background:#0A0A0C;
}
#news .section-head,
#company .section-head,
#contact .section-head{text-align:center;}
#news .section-head .lead,
#company .section-head .lead,
#contact .section-head .lead{max-width:640px; margin-left:auto; margin-right:auto;}

/* same content width for the list, the tables and the form */
#news .news-list,
#company .company-tables,
#contact .contact-form{max-width:1040px; margin-left:auto; margin-right:auto;}

/* お知らせ: flat divided list (dark) + the button under the list */
#news .news-tag{color:var(--primary-hover);}
#news a.news-row-title:hover{color:var(--primary-hover);}
.news-more{display:flex; justify-content:center; margin-top:var(--space-10);}
.news-more .btn-primary{background:#fff; border-color:#fff; color:#0A0A0C;}
.news-more .btn-primary:hover{background:#E9E9EC; border-color:#E9E9EC; color:#0A0A0C;}

/* 会社情報: the same flat divided look instead of raised cards */
#company .company-table{background:none; border:0; border-top:1px solid var(--line); border-radius:0; box-shadow:none; padding:0;}
#company .company-row:last-child{border-bottom:1px solid var(--line);}
#company .company-row dt,
#company .company-block-title{color:#016B35;}

/* 会社情報: light brand-green backdrop so it reads as its own block (light tokens, dark text) */
#company{
  --canvas:#E6F3EC; --white:#FFFFFF;
  --surface-1:#F4F4F5; --surface-2:#EFEFF1; --surface-3:#E4E4E7; --gray:#F4F4F5;
  --hairline:rgba(10,10,12,0.14); --hairline-strong:rgba(10,10,12,0.22);
  --ink-bright:#0A0A0C; --ink-muted:rgba(10,10,12,0.62); --ink-subtle:#6B7280;
  --ink:#0A0A0C; --ink-soft:rgba(10,10,12,0.62);
  --line:rgba(10,10,12,0.14); --line-dark:rgba(10,10,12,0.22);
  background:#E6F3EC;
}

/* "(추가)" review badge for newly written copy (same as the service pages) */
[data-new]::after{
  content:"(추가)"; display:inline-block; margin-left:.45em; padding:.12em .5em .16em; vertical-align:middle;
  border-radius:999px; background:#FFE27A; color:#0A0A0C; font-size:11px; font-weight:700; line-height:1.2; letter-spacing:0;
  font-family:"Noto Sans JP","Noto Sans KR",sans-serif; text-transform:none; white-space:nowrap;
}
body.hide-new-copy [data-new]::after{display:none;}

/* お問い合わせ: the submit button is white like the other section buttons */
.contact-form .submit-btn-full.btn-primary{background:#fff; border-color:#fff; color:#0A0A0C;}
.contact-form .submit-btn-full.btn-primary:hover{background:#E9E9EC; border-color:#E9E9EC; color:#0A0A0C;}

/* お問い合わせ submit button: same size as the お知らせ "すべて見る" button (110 x 32), centred */
.contact-form .submit-btn-full{width:110px; min-width:110px; display:flex; margin-left:auto; margin-right:auto;}
.news-more .btn{width:110px; min-width:110px; justify-content:center;}   /* fixed so it matches the submit button in every language */

/* 事業内容 card whose image has its own white backdrop (influencer glass icon): plain white card, dark label */
.svc-cycle-item--white{background:#fff;}
.svc-cycle-item--white .svc-cycle-label{color:#0A0A0C; text-shadow:none;}

/* 事業内容 cards with the transparent 3D glass icons (Figma "3D Glass Icons Pack"): the icon sits on the pastel gradient as is
   (no multiply blend - the PNGs already have a transparent background), with a soft tinted shadow. */
.svc-cycle-item--icon .svc-cycle-img{
  mix-blend-mode:normal; background:transparent;
  inset:8%; width:84%; height:84%; object-fit:contain;
  filter:drop-shadow(0 26px 28px rgba(40,70,170,0.28));
}

/* 事業内容 cards: near-black backdrop (the glass icons are lit for a dark background) */
.svc-cycle-item--icon{border:1px solid rgba(255,255,255,0.10);}
.svc-cycle-item--icon .svc-cycle-img{filter:drop-shadow(0 0 36px rgba(130,160,255,0.28));}
.svc-cycle-item--icon .svc-cycle-label{color:#F7F8F8; text-shadow:0 1px 8px rgba(0,0,0,0.5);}


/* 事業内容 cards show each service page's own hero visual (instead of the Figma glass icons) */
.svc-cycle-item--visual{border:1px solid rgba(255,255,255,0.10);}
.svc-cycle-item--visual .svc-cycle-label{color:#F7F8F8; text-shadow:0 1px 8px rgba(0,0,0,0.5);}
.svc-cycle-item--visual::before{display:none;}
/* influencer: fanned deck cards */
.svc-deck{position:absolute; inset:0;}
.svc-deck img{position:absolute; left:50%; top:44%; width:38%; aspect-ratio:3/4; object-fit:cover; border-radius:12px; z-index:var(--z,1);
  box-shadow:0 18px 40px rgba(0,0,0,.5); transform:translate(-50%,-50%) translateX(var(--dx,0%)) rotate(var(--r,0deg));}
/* checco: the phones, on the same light grey the photo has */
.svc-cycle-item--checco{background:#F5F5F5 !important;}
.svc-cycle-item--checco .svc-cycle-label{color:#0A0A0C; text-shadow:none;}
.svc-phones{position:absolute; left:50%; top:42%; width:150%; max-width:none; transform:translate(-50%,-50%); display:block; pointer-events:none;}
/* LinkONE: the chrome tile ring */
.svc-ring{position:absolute; inset:0; container-type:size; perspective:1500px; perspective-origin:50% 50%; overflow:hidden;}
.svc-ring .lkr-tile{--s:25cqw;}
.svc-ring .lkr-ring{top:43%;}
/* the fade-in sits on this flat wrapper, not on .lkr-ring: opacity below 1 on a preserve-3d
   element flattens it, so mid-fade the ring showed only 2 tiles and then popped to all 8 */
.lkr-stage{position:absolute; inset:0; perspective:inherit; perspective-origin:inherit; opacity:0; transition:opacity .9s ease .1s;}
.is-in > .lkr-stage{opacity:1;}
.lkr-ring{position:absolute; left:50%; top:45%; width:0; height:0; transform-style:preserve-3d;}
.lkr-tile{--s:19cqw; --t:calc(var(--s) * .12); position:absolute; width:var(--s); height:var(--s); left:calc(var(--s) / -2); top:calc(var(--s) / -2); transform-style:preserve-3d;}
.lkr-face, .lkr-edge{position:absolute; inset:0; border-radius:14%;}
.lkr-face{backface-visibility:hidden; overflow:hidden; background:linear-gradient(158deg,#f4f6f8 0%,#dde2e8 18%,#b4bdc7 36%,#9aa4af 46%,#c3cbd4 56%,#eef1f4 66%,#cfd6dd 80%,#b0b9c3 92%,#e4e8ed 100%);}   /* softened chrome */
.lkr-face::before{content:""; position:absolute; inset:0; border-radius:inherit; box-shadow:inset 0 0 0 2px rgba(255,255,255,.85), inset 0 0 0 4px rgba(90,100,112,.35), inset 0 calc(var(--s) * .02) calc(var(--s) * .03) rgba(255,255,255,.45); pointer-events:none; z-index:2;}
.lkr-face::after{content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; z-index:2; background:linear-gradient(118deg, transparent 14%, rgba(255,255,255,.4) 19%, transparent 25%);}
.lkr-face--front{transform:translateZ(calc(var(--t) / 2));}
.lkr-face--back{transform:rotateY(180deg) translateZ(calc(var(--t) / 2));}
.lkr-edge{filter:brightness(var(--dim,1)); background:linear-gradient(135deg,#f6f8fa 0%,#b3bcc6 30%,#e9edf1 52%,#8f99a4 76%,#d2d9e0 100%); box-shadow:inset 0 0 0 1px rgba(255,255,255,.45);}
.lkr-sheen{position:absolute; inset:0; pointer-events:none; mix-blend-mode:screen; opacity:var(--sheen,0); background:linear-gradient(105deg, transparent 38%, rgba(255,255,255,.7) 50%, transparent 62%); background-size:260% 100%; background-position:var(--sx,50%) 0;}
.lkr-shade{position:absolute; inset:0; pointer-events:none; background:#0d1116; opacity:var(--shade,0);}
.lkr-ico{position:absolute; inset:0; transform-style:preserve-3d; pointer-events:none;}
.lkr-ico--front{transform:translateZ(calc(var(--t) / 2));}
.lkr-ico--back{transform:rotateY(180deg) translateZ(calc(var(--t) / 2));}
.svc-ring .lkr-ico img{position:absolute; inset:0; width:100%; height:100%; object-fit:contain; display:block; backface-visibility:hidden; transform:translateZ(var(--z,0px)); filter:brightness(var(--dim,1));}
.svc-ring .lkr-ico--back img{transform:translateZ(var(--z,0px)) scaleX(-1);}
.svc-ring .lkr-ico img.ex{filter:brightness(calc(.6 * var(--dim,1))) saturate(1.2);}   /* the dark copies underneath = the icon's thick side */
.svc-ring .lkr-ico img.sh{filter:brightness(0) blur(calc(var(--s) * .018)); opacity:.25; transform:translate3d(calc(var(--s) * .02), calc(var(--s) * .03), 0.5px);}
.svc-ring .lkr-ico--back img.sh{transform:translate3d(calc(var(--s) * -.02), calc(var(--s) * .03), 0.5px) scaleX(-1);}
@media (prefers-reduced-motion:reduce){ .lkr-stage{opacity:1; transition:none;} }

/* Service 1: the influencer hero's Deck Carousel fills the picture box (same look as the service page) */
.svc-slide-visual--deck{background:#0E0E16; cursor:grab;}
.svc-slide-visual--deck img{position:static; width:100%; height:100%; object-fit:cover;}


/* Service 2: the checco page hero as is (phones, animated copy, store badges); markup + behaviour from services/checco.html and assets/js/checco-hero-copy.js */
.svc-slide-visual--checco img{position:static; inset:auto;}
/* hero: app mockup photo (two phones on a flat #F5F5F5 backdrop) - shown whole (contain), the box takes the photo's own background colour so it blends in */
.svc-slide-visual--checco{background:linear-gradient(160deg,#EAF7FF 0%,#CBE8FB 55%,#B4DBF5 100%); box-shadow:none;}   /* the phones PNG ("[web]img02") is transparent now: a light checco-sky gradient sits behind it */   /* no card shadow, like the Service 1 and 3 pictures (the hero version had one) */
.svc-slide-visual--checco img{width:auto; max-width:100%; height:100%; margin:0 auto; display:block; object-fit:contain; -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image:linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);}   /* feather the photo's left/right edges so no seam shows against the matching backdrop */

/* hero mockup box: phones nudged to the right, the two store badges sit side by side at the bottom-left (Kream-style) */
/* phones: stage = slide-in entrance, tilt = float (driven by assets/js/checco-hero-copy.js), img = static size/position */
.chr-phones-stage{height:100%; width:fit-content; margin-left:auto; perspective:1100px; opacity:0; transform:translateX(90px); transition:opacity .9s ease .15s, transform 1.1s cubic-bezier(.2,.8,.2,1) .15s;}
.chr-phones-stage.is-in{opacity:1; transform:none;}
.chr-phones-tilt{height:100%; transform-style:preserve-3d; will-change:transform;}
.svc-slide-visual--checco .chr-phones-tilt img.chr-hero-phones{margin:0; transform:translateX(10%) scale(1.3); transform-origin:48% 50%;}   /* bigger phones: scaled around their own centre */
@media (prefers-reduced-motion:reduce){ .chr-phones-stage{opacity:1 !important; transform:none !important; transition:none !important;} }
.svc-slide-visual--checco .chr-store-badges{position:absolute; left:clamp(18px,4vw,56px); bottom:clamp(18px,4.5vw,60px); z-index:2; display:flex; align-items:center; gap:clamp(8px,1vw,14px);}
.svc-slide-visual--checco .chr-store-badges a{display:block; line-height:0; transition:transform .2s ease;}
.svc-slide-visual--checco .chr-store-badges a:hover{transform:translateY(-2px);}
.svc-slide-visual--checco .chr-store-badges img{width:auto; max-width:none; height:clamp(36px,4.2vw,52px); margin:0; display:block; -webkit-mask-image:none; mask-image:none; object-fit:contain;}

/* hero copy inside the mockup box (checco): reveal + "ぴったり" snaps into place */
.chr-hero-copy{position:absolute; left:clamp(18px,4vw,56px); top:50%; transform:translateY(-50%); z-index:2; max-width:min(46%,520px); color:#0A0A0C; text-align:left;}
.chr-copy-tag{margin:0; font-family:var(--font-display); font-weight:800; font-size:clamp(20px,3.3vw,44px); line-height:1.22; letter-spacing:-.02em;}
.chr-copy-sub{margin:clamp(8px,1.4vw,18px) 0 0; font-weight:600; font-size:clamp(12px,1.45vw,19px); line-height:1.5; color:rgba(10,10,12,.78);}
.chr-hero-copy .cw{display:inline-block; opacity:0; transform:translateY(.7em); transition:opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); transition-delay:calc(var(--i) * 90ms);}
.chr-hero-copy.is-in .cw{opacity:1; transform:none;}
/* ぴったり: each kana drops in with a little overshoot (no underline/marker) */
.chr-fit{position:relative; color:#1A86D1;}
.chr-fit > span{display:inline-block; opacity:0; transform:translateY(-.9em) rotate(-10deg) scale(.8); transition:opacity .35s ease, transform .6s cubic-bezier(.34,1.56,.64,1); transition-delay:calc(.45s + var(--k,0) * 80ms);}
.chr-fit > span:nth-child(1){--k:0;} .chr-fit > span:nth-child(2){--k:1;} .chr-fit > span:nth-child(3){--k:2;} .chr-fit > span:nth-child(4){--k:3;}
.chr-hero-copy.is-in .chr-fit > span{opacity:1; transform:none;}
.chr-fit.is-bounce > span{animation:chrFitBounce .6s cubic-bezier(.34,1.56,.64,1) both; animation-delay:calc(var(--k,0) * 60ms);}
@keyframes chrFitBounce{0%{transform:none;} 35%{transform:translateY(-.35em) rotate(-6deg);} 100%{transform:none;}}
.chr-brandname{font-weight:800; color:#1A86D1;}
/* phones / narrow screens: stack copy -> phones -> badges so nothing overlaps (the desktop layout overlays them in one box) */
@media (max-width:760px){
  .svc-slide-visual--checco{aspect-ratio:auto; display:flex; flex-direction:column; align-items:center; padding:clamp(28px,8vw,44px) 20px clamp(22px,6vw,32px);}
  .svc-slide-visual--checco .chr-hero-copy{position:static; transform:none; max-width:none; width:100%; text-align:center;}
  .chr-copy-tag{font-size:clamp(19px,5.5vw,30px); line-height:1.32; word-break:keep-all;}
  .chr-copy-sub{font-size:clamp(13px,3.7vw,16px); margin-top:10px;}
  .svc-slide-visual--checco .chr-phones-stage{height:auto; width:100%; margin:clamp(14px,4vw,22px) 0 0; transform:translateY(40px);}
  .svc-slide-visual--checco .chr-phones-stage.is-in{transform:none;}
  .svc-slide-visual--checco .chr-phones-tilt{height:auto;}
  .svc-slide-visual--checco .chr-phones-tilt img.chr-hero-phones{width:100%; max-width:460px; height:auto; margin:0 auto; transform:scale(1.08); transform-origin:50% 50%;}
  .svc-slide-visual--checco .chr-store-badges{position:static; margin-top:clamp(10px,3vw,18px); justify-content:center;}
  .svc-slide-visual--checco .chr-store-badges img{height:clamp(36px,10vw,46px);}
}
@media (prefers-reduced-motion:reduce){
  .chr-hero-copy .cw,.chr-fit > span{opacity:1 !important; transform:none !important; transition:none !important;}
}
@media (max-width:760px){
  .svc-slide .svc-slide-visual--checco{aspect-ratio:auto; display:flex; flex-direction:column; align-items:center; padding:clamp(24px,7vw,40px) 18px clamp(20px,6vw,28px);}
}

/* the slide's paragraph rules must not leak into the checco hero copy: keep its own colours / sizes */
.svc-slide[data-bg] .svc-slide-inner .svc-slide-visual--checco p.chr-copy-tag{color:#0A0A0C; margin:0; max-width:none; font-size:clamp(20px,3.3vw,44px); line-height:1.22;}
.svc-slide[data-bg] .svc-slide-inner .svc-slide-visual--checco p.chr-copy-sub{color:rgba(10,10,12,.78); margin:clamp(8px,1.4vw,18px) 0 0; max-width:none; font-size:clamp(12px,1.45vw,19px); line-height:1.5;}
@media (max-width:760px){
  .svc-slide[data-bg] .svc-slide-inner .svc-slide-visual--checco p.chr-copy-tag{font-size:clamp(19px,5.5vw,30px); line-height:1.32;}
  .svc-slide[data-bg] .svc-slide-inner .svc-slide-visual--checco p.chr-copy-sub{font-size:clamp(13px,3.7vw,16px); margin-top:10px;}
}

/* 事業内容 checco card: the sky-blue app-screens photo fills the card, centred on the middle phone */
.svc-cycle-item--checco{background:#5CC1F0 !important;}
.svc-cycle-item--checco .svc-cycle-label{color:#fff; text-shadow:0 1px 10px rgba(0,70,130,.45);}
.svc-photo{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:63% 50%; display:block;}

/* Service 2 slide: no copy, the phones sit in the middle of the picture (the copy element stays in the DOM, hidden, so checco-hero-copy.js still drives the phones' entrance) */
.svc-slide-visual--checco .chr-hero-copy{display:none;}
@media (min-width:761px){
  .svc-slide .svc-slide-visual--checco .chr-phones-stage{margin-left:auto; margin-right:auto;}
  .svc-slide .svc-slide-visual--checco .chr-phones-tilt img.chr-hero-phones{transform:scale(1.3); transform-origin:50% 50%;}
}

/* Service 2 slide: store badges hidden for now (markup kept in index.html, remove this rule to bring them back) */
.svc-slide-visual--checco .chr-store-badges{display:none;}


/* Service 2 slide: hand-drawn "Check cosme!" note with a looping arrow (checco blue). It starts when checco-hero-copy.js marks the phones as in (".is-in"):
   the arrow is drawn stroke by stroke, the text fades up, then the arrow nudges toward the phones. */
.svc-slide-visual--checco .dd-note{position:absolute; left:6%; top:26%; z-index:2; display:flex; align-items:center; gap:clamp(4px,.8vw,10px); pointer-events:none;}
.svc-slide-visual--checco .dd-text{font-family:"Mansalva","Comic Sans MS",cursive; font-size:clamp(22px,3.5vw,42px); line-height:1; color:#1A86D1; white-space:nowrap; opacity:0; transform:translateY(6px) rotate(-3deg);
  transition:opacity .5s ease 1.6s, transform .6s cubic-bezier(.22,1,.36,1) 1.6s;}
.svc-slide-visual--checco .dd-arrow{width:clamp(70px,11vw,130px); height:auto; overflow:visible; display:block; animation:none;}
.svc-slide-visual--checco .dd-arrow path{fill:none; stroke:#1A86D1; stroke-width:15; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:1; stroke-dashoffset:1;}
.svc-slide-visual--checco .chr-phones-stage.is-in ~ .dd-note .dd-text{opacity:1; transform:rotate(-3deg);}
.svc-slide-visual--checco .chr-phones-stage.is-in ~ .dd-note .dd-main{animation:ddDraw 1.4s cubic-bezier(.45,.05,.2,1) .5s forwards;}
.svc-slide-visual--checco .chr-phones-stage.is-in ~ .dd-note .dd-h1{animation:ddDraw .22s ease-out 1.85s forwards;}
.svc-slide-visual--checco .chr-phones-stage.is-in ~ .dd-note .dd-h2{animation:ddDraw .22s ease-out 2.02s forwards;}
.svc-slide-visual--checco .chr-phones-stage.is-in ~ .dd-note .dd-arrow{animation:ddNudge 2.6s ease-in-out 2.6s infinite;}
@keyframes ddDraw{to{stroke-dashoffset:0;}}
@keyframes ddNudge{0%,100%{transform:translateX(0);} 50%{transform:translateX(8px);}}
@media (max-width:760px){
  .svc-slide-visual--checco .dd-note{position:static; margin-top:14px; justify-content:center;}
}
@media (prefers-reduced-motion:reduce){
  .svc-slide-visual--checco .dd-text{opacity:1; transform:rotate(-3deg); transition:none;}
  .svc-slide-visual--checco .dd-arrow{animation:none !important;}
  .svc-slide-visual--checco .dd-arrow path{stroke-dashoffset:0 !important; animation:none !important;}
}

/* more doodles from the same pack (BRIX "50+ Hand Drawn Doodles"): three underline strokes under the text (Line 7) and a small burst of sparks at the arrow tip (Highlight 17) */
.svc-slide-visual--checco .dd-text{position:relative; padding-bottom:.18em;}
.svc-slide-visual--checco .dd-under{position:absolute; left:2%; top:100%; width:96%; height:.5em; margin-top:-.12em; overflow:visible; display:block;}
.svc-slide-visual--checco .dd-under path,
.svc-slide-visual--checco .dd-sparks path{fill:none; stroke:#1A86D1; stroke-width:3.4px; stroke-linecap:round; vector-effect:non-scaling-stroke; stroke-dasharray:1; stroke-dashoffset:1;}
.svc-slide-visual--checco .dd-sparks{position:absolute; right:-30%; top:-125%; width:clamp(58px,9vw,124px); height:auto; overflow:visible; display:block;}   /* big burst around the phone's top-left corner: the arrow's target */
.svc-slide-visual--checco .dd-sparks path{stroke-width:4px;}
.svc-slide-visual--checco .chr-phones-stage.is-in ~ .dd-note .dd-under path{animation:ddDraw .45s ease-out forwards;}
.svc-slide-visual--checco .chr-phones-stage.is-in ~ .dd-note .dd-under path:nth-child(1){animation-delay:2.1s;}
.svc-slide-visual--checco .chr-phones-stage.is-in ~ .dd-note .dd-under path:nth-child(2){animation-delay:2.28s;}
.svc-slide-visual--checco .chr-phones-stage.is-in ~ .dd-note .dd-under path:nth-child(3){animation-delay:2.46s;}
.svc-slide-visual--checco .chr-phones-stage.is-in ~ .dd-note .dd-sparks path{animation:ddDraw .22s ease-out forwards;}
.svc-slide-visual--checco .chr-phones-stage.is-in ~ .dd-note .dd-sparks path:nth-child(1){animation-delay:2.7s;}
.svc-slide-visual--checco .chr-phones-stage.is-in ~ .dd-note .dd-sparks path:nth-child(2){animation-delay:2.77s;}
.svc-slide-visual--checco .chr-phones-stage.is-in ~ .dd-note .dd-sparks path:nth-child(3){animation-delay:2.84s;}
.svc-slide-visual--checco .chr-phones-stage.is-in ~ .dd-note .dd-sparks path:nth-child(4){animation-delay:2.91s;}
.svc-slide-visual--checco .chr-phones-stage.is-in ~ .dd-note .dd-sparks path:nth-child(5){animation-delay:2.98s;}
.svc-slide-visual--checco .chr-phones-stage.is-in ~ .dd-note .dd-sparks path:nth-child(6){animation-delay:3.05s;}
.svc-slide-visual--checco .chr-phones-stage.is-in ~ .dd-note .dd-sparks{animation:ddTwinkle 2.4s ease-in-out 3.4s infinite;}
@keyframes ddTwinkle{0%,100%{opacity:1; transform:scale(1);} 50%{opacity:.55; transform:scale(.92);}}
@media (max-width:760px){
  .svc-slide-visual--checco .dd-sparks{right:-6%; top:-100%; width:clamp(48px,14vw,80px);}
}
@media (prefers-reduced-motion:reduce){
  .svc-slide-visual--checco .dd-under path,
  .svc-slide-visual--checco .dd-sparks path{stroke-dashoffset:0 !important; animation:none !important;}
  .svc-slide-visual--checco .dd-sparks{animation:none !important;}
}

/* the burst of sparks around the phone is off for now (markup kept in index.html; remove this rule to bring it back) */
.svc-slide-visual--checco .dd-sparks{display:none;}

/* Service 2 slide: faster sequence - phones in ~0.6s, then the arrow is drawn in ~0.85s, text and underline follow right behind */
.svc-slide-visual--checco .chr-phones-stage{transition:opacity .5s ease 0s, transform .65s cubic-bezier(.2,.8,.2,1) 0s;}
.svc-slide-visual--checco .dd-text{transition:opacity .35s ease .95s, transform .45s cubic-bezier(.22,1,.36,1) .95s;}
.svc-slide-visual--checco .chr-phones-stage.is-in ~ .dd-note .dd-main{animation:ddDraw .85s cubic-bezier(.45,.05,.2,1) .25s forwards;}
.svc-slide-visual--checco .chr-phones-stage.is-in ~ .dd-note .dd-h1{animation:ddDraw .15s ease-out 1.05s forwards;}
.svc-slide-visual--checco .chr-phones-stage.is-in ~ .dd-note .dd-h2{animation:ddDraw .15s ease-out 1.17s forwards;}
.svc-slide-visual--checco .chr-phones-stage.is-in ~ .dd-note .dd-arrow{animation:ddNudge 2.6s ease-in-out 1.6s infinite;}
.svc-slide-visual--checco .chr-phones-stage.is-in ~ .dd-note .dd-under path{animation-duration:.3s;}
.svc-slide-visual--checco .chr-phones-stage.is-in ~ .dd-note .dd-under path:nth-child(1){animation-delay:1.25s;}
.svc-slide-visual--checco .chr-phones-stage.is-in ~ .dd-note .dd-under path:nth-child(2){animation-delay:1.35s;}
.svc-slide-visual--checco .chr-phones-stage.is-in ~ .dd-note .dd-under path:nth-child(3){animation-delay:1.45s;}
@media (prefers-reduced-motion:reduce){ .svc-slide-visual--checco .chr-phones-stage{transition:none;} }


/* Service 2 slide, app-showcase layout (like the Sape / Knockknock / Swimie references): a vivid sky-blue field, the big white checco wordmark behind,
   the phones in front, larger and cropped by the bottom edge so they overlap the logo. */
.svc-slide-visual--checco{background:linear-gradient(165deg,#86D6F7 0%,#4DB8EE 55%,#2E9FE0 100%);}
.svc-slide-visual--checco .svc-logo{position:absolute; left:50%; top:9%; width:60%; max-width:none; height:auto; transform:translateX(-50%); z-index:0; filter:brightness(0) invert(1); opacity:.97; pointer-events:none; object-fit:contain;}
.svc-slide-visual--checco .chr-phones-stage{position:relative; z-index:1;}
@media (min-width:761px){
  .svc-slide .svc-slide-visual--checco .chr-phones-tilt img.chr-hero-phones{transform:translateY(15%) scale(1.5); transform-origin:50% 50%;}
}
/* the note now sits on vivid blue: white instead of checco blue */
.svc-slide-visual--checco .dd-text{color:#fff;}
.svc-slide-visual--checco .dd-arrow path,
.svc-slide-visual--checco .dd-under path,
.svc-slide-visual--checco .dd-sparks path{stroke:#fff;}
.svc-slide-visual--checco .dd-note{left:5%; top:44%;}
@media (max-width:760px){
  .svc-slide .svc-slide-visual--checco .svc-logo{position:static; transform:none; width:74%; margin:0 0 -6%; align-self:center;}
  .svc-slide .svc-slide-visual--checco .dd-note{left:auto; top:auto;}
}

/* the side-fade mask copied from the checco hero (it blended the opaque phones photo into its grey box) is not needed any more:
   it was fading the left/right ends of the logo and of the phones picture */
.svc-slide .svc-slide-visual--checco img{-webkit-mask-image:none; mask-image:none;}

/* the transparent phones picture carries a wide grey floor reflection: fade out everything below the phones so it does not smear across the sides */
.svc-slide .svc-slide-visual--checco img.chr-hero-phones{-webkit-mask-image:linear-gradient(to bottom,#000 0,#000 76%,transparent 82%); mask-image:linear-gradient(to bottom,#000 0,#000 76%,transparent 82%);}

/* desktop: make room on the left so "Check cosme!" does not run over the phone (phones a little smaller, note stacked: text, then the arrow under it) */
@media (min-width:761px){
  .svc-slide .svc-slide-visual--checco .chr-phones-tilt img.chr-hero-phones{transform:translateY(12%) scale(1.32);}
  .svc-slide-visual--checco .dd-note{flex-direction:column; align-items:flex-start; gap:2px; left:3.5%; top:42%;}
  .svc-slide-visual--checco .dd-text{font-size:clamp(20px,3vw,34px);}
  .svc-slide-visual--checco .dd-arrow{width:clamp(54px,8vw,96px); margin-left:34%;}
}

/* Service 2: white picture box again. The wordmark goes back to its own colours and the note back to checco blue (white would vanish on white). */
.svc-slide-visual--checco{background:#fff;}
.svc-slide-visual--checco .svc-logo{filter:none; opacity:1;}
.svc-slide-visual--checco .dd-text{color:#1A86D1;}
.svc-slide-visual--checco .dd-arrow path,
.svc-slide-visual--checco .dd-under path,
.svc-slide-visual--checco .dd-sparks path{stroke:#1A86D1;}

/* Service 2: blue-to-white vertical gradient (saturated sky blue on top, fading to almost white at the bottom, a faint floor grid) like the "From Paper to Digital" reference.
   On the blue part the wordmark and the note are white again. */
.svc-slide-visual--checco{background:linear-gradient(180deg,#2C98EA 0%,#4DB0F1 30%,#8CCDF7 62%,#D3ECFC 86%,#F1F9FF 100%);}
.svc-slide-visual--checco::before{content:""; position:absolute; inset:38% 0 0 0; z-index:0; pointer-events:none;
  background-image:repeating-linear-gradient(0deg, rgba(255,255,255,.55) 0 1px, transparent 1px 38px), repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 1px, transparent 1px 38px);
  -webkit-mask-image:linear-gradient(to bottom, transparent 0%, #000 55%, #000 100%); mask-image:linear-gradient(to bottom, transparent 0%, #000 55%, #000 100%);}
.svc-slide-visual--checco .svc-logo{filter:brightness(0) invert(1); opacity:.98;}
.svc-slide-visual--checco .dd-text{color:#fff;}
.svc-slide-visual--checco .dd-arrow path,
.svc-slide-visual--checco .dd-under path,
.svc-slide-visual--checco .dd-sparks path{stroke:#fff;}

/* Service 2 gradient from the checco colour guide: Turquoise #13C6D0 at the top flowing into Blue #37AFF0 through the middle, then fading to white at the bottom */
.svc-slide-visual--checco{background:linear-gradient(175deg,#13C6D0 0%,#2BB6E4 26%,#37AFF0 48%,#8DD0F7 70%,#DDF1FD 88%,#FFFFFF 100%);}

/* Service 2: the big wordmark is off for now (markup kept; remove this rule to bring it back) and the white floor grid is fainter */
.svc-slide-visual--checco .svc-logo{display:none;}
.svc-slide-visual--checco::before{
  background-image:repeating-linear-gradient(0deg, rgba(255,255,255,.22) 0 1px, transparent 1px 38px), repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 1px, transparent 1px 38px);}

/* the white grid now covers the whole picture (top included), a little stronger toward the bottom */
.svc-slide-visual--checco::before{
  inset:0;
  -webkit-mask-image:linear-gradient(to bottom, rgba(0,0,0,.7) 0%, #000 100%); mask-image:linear-gradient(to bottom, rgba(0,0,0,.7) 0%, #000 100%);}

/* the grid is barely there: lines at 9% white */
.svc-slide-visual--checco::before{
  background-image:repeating-linear-gradient(0deg, rgba(255,255,255,.09) 0 1px, transparent 1px 38px), repeating-linear-gradient(90deg, rgba(255,255,255,.09) 0 1px, transparent 1px 38px);}

/* the white grid ("tile") pattern is removed; the "타일 배경" snapshot in _backup/tile-background/ still has it */
.svc-slide-visual--checco::before{display:none;}

/* Service 2: soft mesh / aurora gradient (like the "Clarity Engine" reference) in the checco colours: deep blue top-left, Blue and Turquoise glows, pale blobs, white bottom-right */
.svc-slide-visual--checco{
  background:
    radial-gradient(62% 72% at 6% 6%, #1C7BDC 0%, rgba(28,123,220,0) 72%),
    radial-gradient(52% 60% at 38% 34%, #37AFF0 0%, rgba(55,175,240,0) 72%),
    radial-gradient(46% 56% at 88% 22%, #C4E8FA 0%, rgba(196,232,250,0) 72%),
    radial-gradient(48% 62% at 16% 104%, #13C6D0 0%, rgba(19,198,208,0) 72%),
    radial-gradient(64% 66% at 94% 100%, #FFFFFF 0%, rgba(255,255,255,0) 68%),
    #8CCFF0;
}

/* Service 2 mesh: the white glow on the right is larger (it now reaches up the right side and further into the middle) */
.svc-slide-visual--checco{
  background:
    radial-gradient(62% 72% at 6% 6%, #1C7BDC 0%, rgba(28,123,220,0) 72%),
    radial-gradient(52% 60% at 36% 34%, #37AFF0 0%, rgba(55,175,240,0) 72%),
    radial-gradient(48% 62% at 16% 104%, #13C6D0 0%, rgba(19,198,208,0) 72%),
    radial-gradient(70% 92% at 100% 62%, #FFFFFF 0%, rgba(255,255,255,.92) 34%, rgba(255,255,255,0) 78%),
    radial-gradient(54% 56% at 88% 18%, #C4E8FA 0%, rgba(196,232,250,0) 72%),
    #8CCFF0;
}

/* the white glow on the right sits lower (its centre moved from 62% down to 94% of the height) */
.svc-slide-visual--checco{
  background:
    radial-gradient(62% 72% at 6% 6%, #1C7BDC 0%, rgba(28,123,220,0) 72%),
    radial-gradient(52% 60% at 36% 34%, #37AFF0 0%, rgba(55,175,240,0) 72%),
    radial-gradient(48% 62% at 16% 104%, #13C6D0 0%, rgba(19,198,208,0) 72%),
    radial-gradient(70% 92% at 100% 94%, #FFFFFF 0%, rgba(255,255,255,.92) 34%, rgba(255,255,255,0) 78%),
    radial-gradient(54% 56% at 88% 18%, #C4E8FA 0%, rgba(196,232,250,0) 72%),
    #8CCFF0;
}

/* the big white checco wordmark is back */
.svc-slide-visual--checco .svc-logo{display:block;}

/* desktop: the phones sit on the right side of the picture */
@media (min-width:761px){
  .svc-slide .svc-slide-visual--checco .chr-phones-tilt img.chr-hero-phones{transform:translate(24%, 12%) scale(1.32);}
}

/* desktop: the wordmark moves to the left and "Check cosme!" sits right under it, the phones are on the right */
@media (min-width:761px){
  .svc-slide .svc-slide-visual--checco .svc-logo{left:6%; top:13%; width:39%; transform:none;}
  .svc-slide .svc-slide-visual--checco .dd-note{left:7%; top:40%;}
}

/* desktop: smaller wordmark, vertically centred on the left, "Check cosme!" right under it */
@media (min-width:761px){
  .svc-slide .svc-slide-visual--checco .svc-logo{left:7%; top:32%; width:31%; transform:none;}
  .svc-slide .svc-slide-visual--checco .dd-note{left:7.5%; top:48%;}
}

/* desktop: the phones sit higher (down-shift 12% -> 1%) */
@media (min-width:761px){
  .svc-slide .svc-slide-visual--checco .chr-phones-tilt img.chr-hero-phones{transform:translate(24%, 1%) scale(1.32);}
}

/* desktop: "Check cosme!" is bigger and sits at the bottom-left of the phones (text, then the arrow pointing at them) */
@media (min-width:761px){
  .svc-slide .svc-slide-visual--checco .dd-note{flex-direction:row; align-items:center; gap:8px; left:6%; top:73%;}
  .svc-slide .svc-slide-visual--checco .dd-text{font-size:clamp(26px,4.1vw,50px);}
  .svc-slide .svc-slide-visual--checco .dd-arrow{margin-left:0; width:clamp(64px,9vw,110px);}
}

/* desktop: "Check cosme!" a bit smaller and a bit further right, the arrow unchanged */
@media (min-width:761px){
  .svc-slide .svc-slide-visual--checco .dd-note{left:10%;}
  .svc-slide .svc-slide-visual--checco .dd-text{font-size:clamp(22px,3.4vw,41px);}
}

/* desktop: the phones moved a little further right (24% -> 30%) */
@media (min-width:761px){
  .svc-slide .svc-slide-visual--checco .chr-phones-tilt img.chr-hero-phones{transform:translate(30%, 1%) scale(1.32);}
}

/* Service 2 slide: the tagline is back in the same place as on the checco page hero (left, vertically centred); the wordmark is small in the top-left corner;
   on this blue picture the copy is dark navy with white accents */
.svc-slide-visual--checco .chr-hero-copy{display:block;}
.svc-slide[data-bg] .svc-slide-inner .svc-slide-visual--checco p.chr-copy-tag{color:#0B2A4A;}
.svc-slide[data-bg] .svc-slide-inner .svc-slide-visual--checco p.chr-copy-sub{color:rgba(11,42,74,.82);}
.svc-slide-visual--checco .chr-fit,
.svc-slide-visual--checco .chr-brandname{color:#fff;}
@media (min-width:761px){
  .svc-slide .svc-slide-visual--checco .svc-logo{left:4.5%; top:6%; width:19%;}
  .svc-slide .svc-slide-visual--checco .dd-note{left:14%; top:76%;}
}

/* Service 2 slide: the second line ("コスメ買う前に check cosme! checco") is off - the hand-drawn "Check cosme!" says it */
.svc-slide-visual--checco .chr-copy-sub{display:none;}

/* desktop: the wordmark is smaller still */
@media (min-width:761px){
  .svc-slide .svc-slide-visual--checco .svc-logo{width:13.5%;}
}

/* desktop: "Check! Cosme" moved right so the arrow touches the phone */
@media (min-width:761px){
  .svc-slide .svc-slide-visual--checco .dd-note{left:19%;}
}

/* desktop: the top-left wordmark is smaller again (13.5% -> 9.5%) */
@media (min-width:761px){
  .svc-slide .svc-slide-visual--checco .svc-logo{width:9.5%;}
}

/* desktop: the tagline ("自分にぴったりを見つける、体験型コスメアプリ" / "나에게 딱 맞는 화장품을 찾아주는 앱") is larger */
@media (min-width:761px){
  .svc-slide[data-bg] .svc-slide-inner .svc-slide-visual--checco p.chr-copy-tag{font-size:clamp(26px,4.3vw,56px);}
}

/* keep "体験型コスメアプリ" on one line at the larger size */
@media (min-width:761px){
  .svc-slide[data-bg] .svc-slide-inner .svc-slide-visual--checco p.chr-copy-tag{font-size:clamp(24px,3.75vw,48px);}
  .svc-slide-visual--checco .chr-hero-copy{max-width:50%;}
}

/* desktop: tagline at exactly 40px (smaller on narrow windows) and a bit higher */
@media (min-width:761px){
  .svc-slide[data-bg] .svc-slide-inner .svc-slide-visual--checco p.chr-copy-tag{font-size:min(40px,3.75vw);}
  .svc-slide .svc-slide-visual--checco .chr-hero-copy{top:42%;}
}

/* desktop: tagline at 48px (the next step of the site's title scale); the copy area is wide enough that no line wraps inside a phrase */
@media (min-width:761px){
  .svc-slide[data-bg] .svc-slide-inner .svc-slide-visual--checco p.chr-copy-tag{font-size:min(48px,4.5vw);}
  .svc-slide .svc-slide-visual--checco .chr-hero-copy{max-width:62%;}
}

/* keep the original line structure at 48px: width just enough for "体験型コスメアプリ" (one line), phrases never wrap inside themselves */
@media (min-width:761px){
  .svc-slide .svc-slide-visual--checco .chr-hero-copy{max-width:52%;}
  .svc-slide-visual--checco .chr-copy-tag .cw{white-space:nowrap;}
}

/* Service 3: a few chrome tiles with the red icons, overlapped and tilted in 3D, swaying slowly (like the glass-tile reference clip) */
.svc-slide-visual--sway{background:linear-gradient(165deg,#FFF3EF 0%,#FFE0D8 55%,#FFC9BC 100%);}
.svc-sway{position:absolute; inset:0; container-type:size; perspective:850px; perspective-origin:62% 30%;}
.svc-sway .sw-tile{--t:calc(var(--s) * .12); left:var(--x); top:var(--y); width:var(--s); height:var(--s);
  transform:translate(-50%,-50%) rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)); animation:swSway 7s ease-in-out var(--d) infinite;}
@keyframes swSway{
  0%,100%{transform:translate(-50%,-50%) rotateX(var(--rx)) rotateY(calc(var(--ry) - 7deg)) rotateZ(var(--rz));}
  50%{transform:translate(-50%,-50%) rotateX(calc(var(--rx) + 4deg)) rotateY(calc(var(--ry) + 7deg)) rotateZ(var(--rz));}
}
.svc-sway .lkr-ico img{position:absolute; inset:0; width:100%; height:100%; object-fit:contain; display:block; backface-visibility:hidden; transform:translateZ(var(--z,0px));}
.svc-sway .lkr-ico--back img{transform:translateZ(var(--z,0px)) scaleX(-1);}
.svc-sway .lkr-ico img.ex{filter:brightness(.6) saturate(1.2);}
.svc-sway .lkr-ico img.sh{filter:brightness(0) blur(calc(var(--s) * .018)); opacity:.25; transform:translate3d(calc(var(--s) * .02), calc(var(--s) * .03), 0.5px);}
.svc-sway .lkr-ico--back img.sh{transform:translate3d(calc(var(--s) * -.02), calc(var(--s) * .03), 0.5px) scaleX(-1);}
@media (prefers-reduced-motion:reduce){ .svc-sway .sw-tile{animation:none;} }

/* Service 3 background: concentric soft domes rising from the bottom (Conversly-style), in LinkONE orange */
.svc-slide-visual--sway{background:linear-gradient(180deg,#FFF8F5 0%,#FFEDE6 45%,#FFE3D9 100%);overflow:hidden;}
.svc-domes{position:absolute; inset:0; pointer-events:none;}
.svc-domes .dm{position:absolute; left:50%; aspect-ratio:1; border-radius:50%; transform:translateX(-50%);
  box-shadow:inset 0 2px 0 rgba(255,255,255,.75), inset 0 18px 40px -18px rgba(255,255,255,.9);}
.svc-domes .dm1{width:150%; top:50%; background:linear-gradient(160deg,rgba(255,255,255,.55) 0%,#FFCFC8 38%,#FF9C94 100%);}
.svc-domes .dm2{width:98%; top:68%; background:linear-gradient(155deg,rgba(255,255,255,.7) 0%,#FFB0A6 42%,#FF6F63 100%);}
.svc-domes .dm3{width:50%; top:86%; background:linear-gradient(150deg,rgba(255,255,255,.85) 0%,#FFA295 45%,#FF4F46 100%);}
.svc-slide-visual--sway .svc-sway{z-index:1;}

/* Service 3 background v2: blurred mesh (Clarity Engine ref) in LinkONE red-orange; domes hidden; glossier tiles */
.svc-slide-visual--sway{background:
  radial-gradient(75% 85% at 0% 0%, #9E1B1B 0%, rgba(158,27,27,0) 70%),
  radial-gradient(60% 70% at 18% 8%, #D93A22 0%, rgba(217,58,34,0) 70%),
  radial-gradient(55% 60% at 45% 55%, #FF7A4E 0%, rgba(255,122,78,0) 72%),
  radial-gradient(70% 75% at 100% 100%, #E9D8D2 0%, rgba(233,216,210,0) 70%),
  radial-gradient(60% 55% at 78% 82%, #FFE9DF 0%, rgba(255,233,223,0) 70%),
  radial-gradient(45% 55% at 100% 15%, #F0725A 0%, rgba(240,114,90,0) 70%),
  #F2D9D0;}
.svc-domes{display:none;}
.svc-sway .lkr-face::after{background:
  linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.12) 38%, rgba(255,255,255,0) 48%),
  linear-gradient(118deg, transparent 14%, rgba(255,255,255,.55) 19%, transparent 26%);}
.svc-sway .lkr-face::before{box-shadow:inset 0 0 0 2px rgba(255,255,255,.95), inset 0 0 0 4px rgba(90,100,112,.3), inset 0 calc(var(--s) * .035) calc(var(--s) * .05) rgba(255,255,255,.8), inset 0 calc(var(--s) * -.03) calc(var(--s) * .05) rgba(60,70,85,.28);}

/* Service 3: light streak sweeping over every tile (keeps looping), tiles keep a short pause between sweeps */
.svc-sway .lkr-sheen{background-position:100% 0; animation:swSheen 3.4s ease-in-out infinite;}
@keyframes swSheen{0%,35%{background-position:100% 0;} 80%,100%{background-position:0% 0;}}
@media (prefers-reduced-motion:reduce){ .svc-sway .lkr-sheen{animation:none; --sheen:0;} }

/* Service 3 v3: no tiles, just the raised 3D icons floating and bumping (linkone-slide-gravity.js) */
.svc-sway{perspective:900px; perspective-origin:50% 50%; touch-action:pan-y;}
.sg-icon{position:absolute; left:0; top:0; width:var(--s); height:var(--s); margin:calc(var(--s) / -2) 0 0 calc(var(--s) / -2); transform-style:preserve-3d; will-change:transform; --t:0px; pointer-events:none;}
.svc-sway .lkr-ico--front, .svc-sway .lkr-ico--back{--t:0px;}

/* Home services: the service name, description and "more" link use the same colour as the big "Service N" title (--inverse-ink) */
.svc-slide[data-bg] .svc-slide-inner > .svc-slide-subtitle,
.svc-slide[data-bg] .svc-slide-inner > p,
.svc-slide[data-bg] .svc-slide-inner > .svc-link{color:var(--inverse-ink);}

/* Service 3 v4: a simple sales dashboard panel on a gradient card (reference: rounded gradient card with an inset UI panel at the lower left) */
.svc-slide-visual--dash{
  container-type:inline-size; position:relative; overflow:hidden; border-radius:clamp(20px,4vw,40px);
  background:
    radial-gradient(62% 72% at 100% 0%, rgba(255,255,255,.7) 0%, rgba(255,255,255,0) 64%),
    linear-gradient(150deg, #F58A6B 0%, #F24A40 100%);   /* LINKONE red (same palette as the LINKONE page) with only a soft white glow at the top right */
}
.dash-panel{
  --u:clamp(9px,1.85cqw,15px);
  position:absolute; left:0; bottom:0; width:77%; height:80%;
  box-sizing:border-box; padding:2.1em 2.4em 1.8em; font-size:var(--u); color:#0A0A0C; text-align:left;
  background:#FEF6F3; border-top-right-radius:clamp(18px,3.6cqw,38px);
  display:flex; flex-direction:column; gap:1.5em; line-height:1.25;
  box-shadow:0 0 0 1px rgba(255,255,255,.5);
}
.dash-head{display:flex; align-items:center; justify-content:space-between; gap:1em;}
.dash-title{font-size:1.2em; font-weight:700; letter-spacing:-.01em;}
.dash-chip{font-size:.85em; padding:.3em .85em; border-radius:99px; background:#fff; border:1px solid rgba(10,10,12,.12); color:rgba(10,10,12,.7);}
.dash-kpis{display:grid; grid-template-columns:repeat(3,1fr); gap:1.2em;}
.dash-kpi{display:flex; flex-direction:column; gap:.25em; min-width:0;}
.dash-lbl{font-size:.8em; color:rgba(10,10,12,.55);}
.dash-val{font-size:1.9em; font-weight:700; letter-spacing:-.02em; font-variant-numeric:tabular-nums; white-space:nowrap;}
.dash-delta{font-size:.8em; font-style:normal; font-weight:600; color:#4A36EE;}
.dash-body{flex:1; min-height:0; display:grid; grid-template-columns:1.25fr 1fr; gap:2.2em;}
.dash-chart{min-height:0; display:flex;}
.dash-bars{flex:1; display:flex; align-items:stretch; gap:.7em; padding-top:.2em;}
.dash-bar{flex:1; display:flex; flex-direction:column; align-items:center; gap:.4em; min-width:0;}
.dash-bar em{font-style:normal; font-size:.75em; color:rgba(10,10,12,.45);}
.dash-fill{flex:1; width:100%; display:flex; align-items:flex-end; position:relative;}
.dash-fill::before{content:""; width:100%; height:100%; border-radius:.5em .5em .2em .2em; background:linear-gradient(180deg,#FFC08A 0%,#FF8A3D 100%); opacity:.55; transform:scaleY(0); transform-origin:50% 100%; transition:transform .9s cubic-bezier(.25,1,.5,1), opacity .4s ease;}
.dash-panel.is-in .dash-fill::before{transform:scaleY(var(--h,0));}
.dash-bar.is-top .dash-fill::before{opacity:1; background:linear-gradient(180deg,#A592FF 0%,#4A36EE 100%);}   /* the best day = the purple accent */
.dash-rank{display:flex; flex-direction:column; gap:.9em; min-width:0;}
.dash-rows{display:flex; flex-direction:column; gap:.95em;}
.dash-row{display:grid; grid-template-columns:auto 1fr auto; grid-template-rows:auto auto; column-gap:.7em; row-gap:.35em; align-items:center; font-size:.85em;}
.svc-slide-visual .dash-dot{position:static; inset:auto; grid-row:1 / 3; width:3em; height:3em; border-radius:50%; object-fit:cover; display:block; background:#FDECE6; box-shadow:0 0 0 .15em #fff, 0 .2em .6em rgba(10,10,12,.15);}   /* model photo avatar */
.dash-name{grid-column:2; font-weight:600;}
.dash-row b{grid-column:3; grid-row:1; font-weight:700; font-variant-numeric:tabular-nums;}
.dash-meter{grid-column:2 / 4; grid-row:2; height:.5em; border-radius:99px; background:rgba(10,10,12,.08); overflow:hidden; display:block;}
.dash-meter i{display:block; height:100%; width:100%; border-radius:inherit; background:linear-gradient(90deg,#FFC08A,#FF8A3D); transform:scaleX(0); transform-origin:0 50%; transition:transform .9s cubic-bezier(.25,1,.5,1);}
.dash-panel.is-in .dash-meter i{transform:scaleX(var(--w,0));}
@container (max-width:800px){
  .dash-rank .dash-lbl{display:none;}
  .svc-slide-visual .dash-dot{width:2.5em; height:2.5em;}
  .dash-rows{gap:.8em;}
}
@container (max-width:520px){
  .dash-panel{width:88%; height:84%; padding:1.7em 1.7em 1.4em;}
  .dash-body{grid-template-columns:1fr;}
  .dash-rank{display:none;}
  .dash-val{font-size:1.6em;}
}
@media (prefers-reduced-motion:reduce){ .dash-fill::before, .dash-meter i{transition:none;} }
@media (max-width:700px){
  .svc-slide .svc-slide-visual--dash{aspect-ratio:1 / .95;}   /* the 16:9 card is too short on phones for the panel's content */
}

/* Service 2 v2: Service 1's Deck Carousel dealt with checco app screens, each card a phone (dark bezel, camera pill) on the checco blue mesh */
.svc-slide-visual--deckapp{
  cursor:grab;
  background:
    radial-gradient(62% 72% at 6% 6%, #1C7BDC 0%, rgba(28,123,220,0) 72%),
    radial-gradient(52% 60% at 36% 34%, #37AFF0 0%, rgba(55,175,240,0) 72%),
    radial-gradient(48% 62% at 16% 104%, #13C6D0 0%, rgba(19,198,208,0) 72%),
    radial-gradient(70% 92% at 100% 94%, #FFFFFF 0%, rgba(255,255,255,.92) 34%, rgba(255,255,255,0) 78%),
    radial-gradient(54% 56% at 88% 18%, #C4E8FA 0%, rgba(196,232,250,0) 72%),
    #8CCFF0;
}
.svc-slide-visual--deckapp img{position:static; width:100%; height:100%; object-fit:cover;}
.svc-slide-visual--deckapp > div > div > div{box-sizing:border-box; border:5px solid #0F1115; background:#0F1115; box-shadow:0 22px 44px -14px rgba(6,40,90,.5);}
.svc-slide-visual--deckapp > div > div > div::before{content:""; position:absolute; top:8px; left:50%; width:26%; height:9px; border-radius:99px; background:#0F1115; transform:translateX(-50%); z-index:2;}
@media (max-width:700px){
  .svc-slide .svc-slide-visual--deckapp{aspect-ratio:1 / .95;}
}
