/* ==========================================================
   NAMMA SOLUTION v10 — home page
   ========================================================== */
.light { background: var(--white); color: var(--night); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
main { position: relative; }
main h2 { font-weight: 600; line-height: 1.08; letter-spacing: -.015em; }

/* ---------- 1. HERO ---------- */
.hero { position: relative; background: #10151a; }
.hero-stick { position: relative; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::before { content: ""; position: absolute; inset: 0 0 auto; height: 16%; z-index: 1; background: linear-gradient(rgba(8,11,14,.35), transparent); }
/* the dark left side is baked into the video, so no extra overlay here: the picture stays clear */
.hero-media::after { content: none; }
.hero-dim { position: absolute; inset: 0; background: rgba(8,11,14,.78); opacity: 0; pointer-events: none; }
.hero-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--col); }
.hero .label { margin-bottom: clamp(14px, 3vh, 28px); }
.hero h1 { font-weight: 600; font-size: clamp(42px, min(4.8vw, 9vh), 120px); line-height: 1.07; letter-spacing: -.005em; }
.h-line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.h-line > span { display: block; }
.step-2 { margin-top: 28px; }
.hero-sub { font-size: clamp(18px, 1.35vw, 22px); line-height: 1.5; max-width: 21em; }
.step-2 .line-link { margin-top: 18px; }
/* with motion on, the video stays pinned and the two text steps swap as you scroll */
.motion .hero { height: 230vh; }
.motion .hero-stick { position: sticky; top: 0; }
.motion .step-2 { position: absolute; left: var(--col); right: var(--col); top: 50%; translate: 0 -50%; margin: 0; visibility: hidden; opacity: 0; }
.motion .step-2 .hero-sub { max-width: 19em; text-wrap: balance; font-size: clamp(24px, min(2.9vw, 5.4vh), 54px); font-weight: 500; line-height: 1.28; }
.hero-toggle { position: absolute; left: var(--gut); bottom: 36px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; }
.hero-toggle span { width: 10px; height: 12px; border-inline: 3px solid #fff; }
.hero-toggle.paused span { width: 0; height: 0; border-block: 6px solid transparent; border-inline: 10px solid transparent; border-left-color: #fff; border-right-width: 0; margin-left: 3px; }

/* ---------- 2. ABOUT ---------- */
.about { padding: clamp(100px, 18vh, 190px) var(--col) 0; position: relative; z-index: 1; }
.about .label { margin-bottom: 32px; }
.about h2 { font-size: clamp(40px, 5.6vw, 108px); }
.rotator { display: grid; overflow: hidden; padding-bottom: .14em; color: #8a8a8a; }
.rotator span { grid-area: 1 / 1; }
.rotator span + span { visibility: hidden; }
.about-body { display: grid; grid-template-columns: 1fr 1fr; margin-top: 56px; }
.about-body > div { grid-column: 2; }
.about-body p { font-size: 18px; color: #555; margin-bottom: 18px; max-width: 30em; }
.about-body .line-link { margin-top: 8px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(80px, 13vh, 140px) calc(var(--gut) - var(--col)) 0; border-top: 1px solid rgba(0,0,0,.14); }
.facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 44px 24px 60px 0; }
.facts dd { font-size: clamp(52px, 6.4vw, 112px); font-weight: 500; line-height: 1; letter-spacing: -.03em; }
.facts dt { font-size: 15px; color: #666; margin-top: 10px; }

/* ---------- shared section head ---------- */
.sec-head { padding: 0 var(--col); }
.sec-head .label { margin-bottom: 30px; }
.sec-head h2 { font-size: clamp(34px, 4.4vw, 82px); max-width: 15em; }
.sec-side { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 30px; }
.sec-side p { font-size: 18px; opacity: .7; }

/* ---------- 3. MODULES ---------- */
.modules { padding: clamp(100px, 18vh, 190px) 0; position: relative; z-index: 1; background: var(--night); }
.mod-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 80px var(--gut) 0; border-left: 1px solid rgba(255,255,255,.14); border-top: 1px solid rgba(255,255,255,.14); }
.mod-grid li { border-right: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.mod-grid a { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; font-size: clamp(18px, 2vw, 34px); font-weight: 600; text-align: center; }
.mod-grid img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transform: scale(1.12); transition: opacity .5s, transform .9s var(--ease); }
.mod-grid a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10,10,10,.74); opacity: 0; transition: opacity .5s; }
.mod-grid a:hover img, .mod-grid a:focus-visible img { opacity: 1; transform: none; }
.mod-grid a:hover::after, .mod-grid a:focus-visible::after { opacity: 1; }

/* ---------- 4. WORK ---------- */
.work { padding: clamp(100px, 18vh, 190px) 0; position: relative; z-index: 1; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 80px 32px; padding: 80px var(--gut) 0; }
.w-card:nth-child(3n+2) { margin-top: 60px; }
.w-img { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(160deg, var(--c) -20%, #14202c 62%, #050607); color: var(--white); }
.w-img img { position: absolute; width: 112%; max-width: none; right: -48%; top: -18%; opacity: .6; transition: transform 1s var(--ease); }
.w-card:hover .w-img img { transform: rotate(24deg) scale(1.1); }
.w-img b { position: relative; padding: 0 28px; text-align: center; font-size: clamp(24px, 2.4vw, 42px); font-weight: 700; line-height: 1.15; }
.w-cat { display: block; margin-top: 26px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #777; }
.w-card h3 { font-size: clamp(19px, 1.55vw, 26px); font-weight: 500; line-height: 1.3; margin-top: 10px; max-width: 18em; }

/* ---------- 5. SEE IT RUN ---------- */
.run { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 7vw; background: var(--night); padding: clamp(90px, 16vh, 170px) var(--gut); }
.run-img { overflow: hidden; aspect-ratio: 5 / 4; }
.run-img img { width: 100%; height: 116%; object-fit: cover; object-position: top left; margin-top: -4%; }
.run-text .label { margin-bottom: 30px; }
.run-lead { text-wrap: balance; font-size: clamp(24px, 2.5vw, 46px); line-height: 1.3; font-weight: 500; margin-bottom: 30px; max-width: 18em; }

/* ---------- 6. CLOSING BANNER ---------- */
.reach { position: relative; z-index: 1; min-height: 92vh; display: flex; align-items: center; overflow: hidden; background: #10151a; }
.reach > img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; opacity: .55; }
.reach::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,11,14,.82), rgba(8,11,14,.3)); }
.reach-text { position: relative; z-index: 1; padding: 100px var(--col); }
.reach h2 { font-size: clamp(46px, 7vw, 132px); max-width: 8em; }
.reach p { font-size: clamp(18px, 1.5vw, 24px); margin: 26px 0 30px; }
.reach .line-link { display: flex; width: max-content; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .about-body { grid-template-columns: 1fr; }
  .about-body > div { grid-column: 1; }
  .facts { grid-template-columns: 1fr 1fr; }
  .mod-grid { grid-template-columns: repeat(3, 1fr); }
  .work-grid { grid-template-columns: 1fr 1fr; gap: 56px 20px; }
  .w-card:nth-child(3n+2) { margin-top: 0; }
  .run { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-aspect-ratio: 1 / 1) {
  /* portrait screens: keep the devices in view and put the text low */
  .hero-media::after { background: linear-gradient(to top, rgba(8,11,14,.94) 6%, rgba(8,11,14,.72) 40%, rgba(8,11,14,.05) 68%); }
  .hero-copy { justify-content: flex-end; padding-bottom: 112px; }
  .motion .step-2 { top: auto; bottom: 112px; translate: none; }
  .hero-toggle { bottom: 28px; }
}
@media (max-width: 720px) {
  .hero h1 { font-size: clamp(40px, 12.4vw, 76px); }
  .hero-toggle { left: auto; right: 20px; bottom: 80px; }
  .label { font-size: 13px; }
  .mod-grid { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .work-grid { grid-template-columns: 1fr; padding-top: 48px; }
  .facts dt { font-size: 13.5px; }
}

/* ---------- 2b. SLIDESHOW (one hook per module) ----------
   Without motion or on small screens it is a swipe row; with motion on wide screens
   home.js pins it and scrolling moves the slides sideways. */
.tour { position: relative; z-index: 1; background: var(--night); padding-top: clamp(100px, 18vh, 190px); overflow: hidden; }
.tour-pin { position: relative; padding: clamp(48px, 8vh, 90px) 0 clamp(70px, 12vh, 120px); }
.tour-track { display: flex; gap: clamp(20px, 2.4vw, 40px); padding: 0 var(--gut); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tour-track::-webkit-scrollbar { display: none; }
.t-slide { flex: 0 0 min(1180px, 84vw); scroll-snap-align: center; display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: clamp(24px, 3.4vw, 64px);
  background: #f5f6f8; color: var(--night); border-radius: 22px; padding: clamp(26px, 3vw, 52px); }
.t-no { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6b6b6b; }
.t-no b { color: #16a34a; }
.t-slide h3 { margin-top: 16px; font-size: clamp(30px, 3.2vw, 60px); font-weight: 700; line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
.t-slide h3 em { font-style: normal; color: #16a34a; }
.t-slide p { margin-top: 18px; font-size: clamp(16px, 1.2vw, 19px); color: #4b4b4b; max-width: 26em; }
.t-img { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 30px 70px rgba(15,23,42,.16); }
.t-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.tour-bar { position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(30px, 5vh, 56px); height: 2px; background: rgba(255,255,255,.14); }
.tour-bar i { position: absolute; inset: 0; background: #4ade80; transform-origin: 0 50%; transform: scaleX(0); }
.tour.pinned .tour-track { overflow: visible; scroll-snap-type: none; }

/* ---------- 3b. NAMMAPOS VIDEO ---------- */
.posvid { position: relative; z-index: 1; padding: clamp(100px, 18vh, 190px) 0; background: #f5f6f8; }
.pv-frame { position: relative; margin: clamp(48px, 8vh, 80px) var(--gut) 0; border-radius: 22px; overflow: hidden; background: #fff; aspect-ratio: 16 / 9;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 40px 100px rgba(15,23,42,.18); }
.pv-frame video { width: 100%; height: 100%; object-fit: cover; }
.pv-play { position: absolute; left: 50%; top: 50%; width: clamp(76px, 8vw, 120px); aspect-ratio: 1; margin: 0; translate: -50% -50%; border-radius: 50%; background: #16a34a; display: grid; place-items: center;
  box-shadow: 0 0 0 14px rgba(22,163,74,.18), 0 20px 50px rgba(22,163,74,.35); transition: transform .4s var(--ease); }
.pv-play:hover { transform: scale(1.08); }
.pv-play span { width: 0; height: 0; border-block: 16px solid transparent; border-left: 26px solid #fff; margin-left: 8px; }
.pv-frame.playing .pv-play { display: none; }

/* ---------- 4b. CUSTOM WORK band ---------- */
.custom { position: relative; z-index: 1; background: var(--night); padding: clamp(100px, 18vh, 190px) 0; overflow: hidden; }
.cu-band { margin-top: clamp(48px, 8vh, 80px); display: flex; flex-direction: column; gap: 18px; }
.cu-row { display: flex; gap: 18px; width: max-content; animation: cu-move 46s linear infinite; }
.cu-row.rev { animation-direction: reverse; animation-duration: 54s; }
.cu-row span { white-space: nowrap; font-size: clamp(20px, 2.2vw, 38px); font-weight: 600; padding: .55em 1.1em; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; }
.cu-row span:nth-child(3n+1) { background: #4ade80; color: #052e16; border-color: #4ade80; }
@keyframes cu-move { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .cu-row { animation: none; flex-wrap: wrap; width: auto; padding: 0 var(--gut); } .cu-row.rev { display: none; } }

@media (max-width: 1000px) {
  .t-slide { grid-template-columns: 1fr; flex-basis: 86vw; }
  .t-img { order: -1; }
}

/* ---------- polish: progress line, ticker, hover lift ---------- */
.sprog { position: fixed; left: 0; top: 0; z-index: 1200; height: 3px; width: 100%; background: linear-gradient(90deg, #4ade80, #16a34a); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.wd { display: inline; }
.ticker { position: relative; z-index: 1; background: #4ade80; color: #052e16; overflow: hidden; padding: clamp(18px, 3vh, 30px) 0; }
.tk-row { display: flex; width: max-content; }
.tk-row span { white-space: nowrap; font-size: clamp(30px, 4.6vw, 84px); font-weight: 800; letter-spacing: -.03em; padding: 0 .5em; }
.tk-row span::after { content: "✦"; margin-left: 1em; font-weight: 400; opacity: .55; }
.t-slide { transition: transform .6s var(--ease), box-shadow .6s; }
.t-slide:hover { transform: translateY(-8px); box-shadow: 0 40px 90px rgba(0,0,0,.45); }
.mod-grid a { transition: background .4s, color .4s; }
.mod-grid a:hover { background: #4ade80; color: #052e16; }
.w-card:hover h3 { text-decoration: underline; text-decoration-color: #16a34a; text-underline-offset: 6px; }
@media (prefers-reduced-motion: reduce) { .tk-row { flex-wrap: wrap; width: auto; } }
