/* ==========================================================
   NAMMA SOLUTION v10 — shared design (both pages)
   1 Fonts & tokens  2 Base  3 Links & buttons  4 Header
   5 Menu  6 Cursor, scroll line, intro  7 Footer  8 Responsive
   ========================================================== */

/* ---------- 1. FONTS & TOKENS ---------- */
@font-face { font-family: "Figtree"; font-weight: 300 900; font-display: swap; src: url(../assets/fonts/figtree-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Figtree"; font-weight: 300 900; font-display: swap; src: url(../assets/fonts/figtree-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }
:root {
  --night: #111111; --white: #ffffff; --grey: #999999; --soft: #f4f4f4;
  --font: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1); --ease-io: cubic-bezier(.76, 0, .24, 1);
  --gut: max(20px, 5vw);          /* side margin */
  --col: max(20px, 16.67vw);      /* where headlines and menu start */
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { font-family: var(--font); background: var(--night); color: var(--white); line-height: 1.55; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* ---------- 3. LINKS & BUTTONS ---------- */
.label { display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; }
.label::before { content: ""; width: 36px; height: 1px; background: currentColor; flex-shrink: 0; transform-origin: left; transform: scaleX(var(--draw, 1)); }
.line-link { display: inline-flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 10px 0; }
.line-link::after { content: ""; width: 36px; height: 1px; background: currentColor; transition: width .5s var(--ease); }
.line-link:hover::after, .line-link:focus-visible::after { width: 72px; }

/* ---------- 4. HEADER ---------- */
.logo { display: block; height: 38px; width: auto; aspect-ratio: 1180 / 380; }
.bar { position: fixed; inset: 0 0 auto; height: 84px; z-index: 900; background: var(--night); border-bottom: 1px solid rgba(255,255,255,.08); transform: translateY(-100%); pointer-events: none; transition: transform .6s var(--ease); }
.bar.solid { transform: none; pointer-events: auto; }
.bar.solid.hide { transform: translateY(-100%); }
.nav { position: fixed; z-index: 1000; left: 0; right: 0; top: clamp(18px, 9.2vh, 80px); padding: 0 var(--gut); display: flex; align-items: center; color: var(--white); transition: top .6s var(--ease), transform .6s var(--ease); }
.nav.compact { top: 20px; }
.nav.hide { transform: translateY(-120px); }
.nav .home { margin-right: auto; display: flex; align-items: center; height: 44px; }
.nav-link { font-size: 15px; margin-right: clamp(22px, 3vw, 46px); padding: 10px 0; background: linear-gradient(currentColor, currentColor) left bottom 6px / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.nav-link:hover { background-size: 100% 1px; }
.burger { display: flex; align-items: center; gap: 20px; height: 44px; padding-left: 8px; }
.b-close { display: none; font-size: 15px; }
.b-ico { position: relative; width: 24px; height: 12px; display: block; }
.b-ico i { position: absolute; right: 0; height: 2px; background: currentColor; transition: width .4s var(--ease), top .4s var(--ease); }
.b-ico i:first-child { top: 2px; width: 24px; }
.b-ico i:last-child { top: 9px; width: 18px; }
.burger:hover .b-ico i { width: 24px; }
.menu-open .b-close { display: block; }
.menu-open .nav-link { display: none; }
.menu-open .nav .home + .burger { margin-left: auto; }
.menu-open .b-ico i { top: 5px !important; width: 20px !important; }

/* ---------- 5. MENU ---------- */
.overlay { position: fixed; inset: 0; z-index: 950; background: var(--night); color: var(--white); overflow-y: auto; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .8s var(--ease-io), visibility 0s .8s; }
.menu-open .overlay { clip-path: inset(0); visibility: visible; transition: clip-path .8s var(--ease-io); }
.m-in { min-height: 100%; display: flex; flex-direction: column; width: 66.8vw; margin-left: 16.35vw; padding: min(165px, 18.8vh) 0 clamp(24px, 4.6vh, 40px); }
.m-cols { display: grid; grid-template-columns: 50.8% 1fr; align-items: start; }
.m-nav li { overflow: hidden; }
.m-nav a { display: inline-block; font-size: clamp(22px, 3.7vh, 33px); line-height: clamp(34px, 5.6vh, 49px); color: var(--grey); transition: color .3s; }
.m-nav a span { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease); transition-delay: calc(var(--i) * 40ms); }
.menu-open .m-nav a span { transform: none; transition-delay: calc(var(--i) * 40ms + .3s); }
.m-nav a:hover, .m-nav a:focus-visible, .m-nav a[aria-current] { color: var(--white); }
.m-news { padding-top: 6px; }
.m-news h2 { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 30px; }
.m-cards { display: flex; gap: 32px; }
.m-card { width: clamp(124px, 9.6vw, 150px); opacity: 0; transform: translateY(40px); transition: opacity .5s, transform .7s var(--ease); }
.menu-open .m-card { opacity: 1; transform: none; transition-delay: calc(var(--i) * 90ms + .55s); }
.m-img { position: relative; display: grid; place-items: center; width: 100%; height: clamp(150px, 25vh, 220px); overflow: hidden; background: linear-gradient(160deg, var(--c) -30%, #14202c 60%, #050607); }
.m-img img { position: absolute; width: 130%; max-width: none; right: -55%; top: -22%; opacity: .5; transition: transform .8s var(--ease); }
.m-card:hover .m-img img { transform: rotate(18deg) scale(1.08); }
.m-img b { position: relative; padding: 0 14px; text-align: center; font-size: 17px; font-weight: 700; line-height: 1.2; }
.m-title { display: block; margin-top: min(36px, 4vh); font-size: 15px; line-height: 1.28; color: var(--grey); transition: color .3s; }
.m-card:hover .m-title { color: var(--white); }
.m-foot { margin-top: auto; padding-top: 28px; }
.m-more { display: block; max-width: 270px; font-size: 14.5px; line-height: 2; color: var(--grey); text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
.m-more:hover { color: var(--white); }
.socials { display: flex; gap: 12px; margin-top: min(40px, 4vh); }
.socials a { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; font-size: 12px; font-weight: 700; transition: background .3s, color .3s; }
.socials a:hover { background: var(--white); color: var(--night); }
.socials svg { width: 14px; height: 14px; }
.m-legal { display: flex; justify-content: space-between; align-items: center; gap: 12px 40px; flex-wrap: wrap; margin-top: min(26px, 2.8vh); padding-top: min(24px, 2.6vh); border-top: 1px solid rgba(255,255,255,.18); font-size: 13.5px; color: var(--grey); }
.m-legal ul { display: flex; gap: 12px clamp(22px, 4.2vw, 66px); flex-wrap: wrap; }
.m-legal a:hover { color: var(--white); }

@media (min-width: 1001px) and (max-height: 720px) {
  .m-in { padding-top: 108px; }
  .m-more { line-height: 1.6; }
  .m-foot { padding-top: 16px; }
  .socials { margin-top: 18px; }
}

/* ---------- 6. CURSOR, SCROLL LINE, INTRO ---------- */
.cursor { position: fixed; z-index: 2500; top: 0; left: 0; width: 0; height: 0; pointer-events: none; mix-blend-mode: difference; opacity: 0; }
.cursor.on { opacity: 1; }
.cursor::before { content: ""; position: absolute; width: 24px; height: 24px; margin: -12px; border-radius: 50%; background: #eee; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease); }
.cursor.big::before { width: 68px; height: 68px; margin: -34px; }
.scroller { position: fixed; z-index: 960; right: 14px; bottom: 40px; width: 24px; height: clamp(100px, 20vh, 174px); display: flex; justify-content: center; mix-blend-mode: difference; color: #fff; }
.scroller span { position: relative; width: 2px; height: 100%; background: rgba(255,255,255,.28); overflow: hidden; transition: width .3s; }
.scroller i { position: absolute; left: 0; top: 0; width: 100%; height: 30%; background: #fff; }
.scroller:hover span { width: 4px; }
.menu-open .scroller { visibility: hidden; }
.pre { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: #000; transition: clip-path .9s var(--ease-io); clip-path: inset(0); animation: pre-safety 0s 7s forwards; }
.pre video { width: 100%; height: 100%; object-fit: contain; background: #000; }
@media (max-aspect-ratio: 1/1) { .pre video { width: 165%; max-width: none; height: auto; } }
.pre.out { clip-path: inset(0 0 100% 0); }
@keyframes pre-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes pre-safety { to { visibility: hidden; } }

/* ---------- 7. FOOTER ---------- */
.foot { position: relative; z-index: 2; background: var(--night); color: var(--white); border-top: 1px solid rgba(255,255,255,.12); }
.foot-in { padding: 96px var(--gut) 34px; }
.foot .logo { height: 48px; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr 1.2fr 1.5fr; gap: 40px; margin-top: 60px; }
.foot h3 { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 20px; }
.foot li { font-size: 15px; color: var(--grey); line-height: 2.1; }
.foot li a:hover { color: var(--white); }
.foot-ask p { color: var(--grey); font-size: 15px; margin-bottom: 12px; }
.foot-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 72px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.18); font-size: 13.5px; color: var(--grey); }
.foot-bar .socials { margin: 0; color: var(--white); }
.mbar { display: none; }

/* ---------- 8. RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .m-in { width: auto; margin: 0; padding-inline: var(--gut); }
  .m-cols { grid-template-columns: 1fr; gap: 44px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --gut: 20px; --col: 20px; }
  .nav { top: 20px; }
  .nav.compact { top: 14px; }
  .bar { height: 72px; }
  .logo { height: 28px; }
  .nav-link { display: none; }
  .nav .home { margin-right: auto; }
  .burger { margin-left: auto; }
  .m-in { padding-top: 104px; }
  .m-nav a { font-size: 28px; line-height: 44px; }
  .scroller, .cursor { display: none; }
  .foot-in { padding: 70px 20px 96px; }
  .foot-cols { gap: 34px 20px; margin-top: 40px; }
  .foot-ask { grid-column: 1 / -1; }
  .mbar { position: fixed; z-index: 850; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: 1fr 1fr 1fr; background: var(--white); color: var(--night); box-shadow: 0 14px 40px -12px rgba(0,0,0,.6); transform: translateY(150%); transition: transform .6s var(--ease); }
  .mbar.show { transform: none; }
  .menu-open .mbar { transform: translateY(150%); }
  .mbar a { height: 50px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 13.5px; font-weight: 600; }
  .mbar a + a { border-left: 1px solid rgba(0,0,0,.12); }
  .mbar svg { width: 17px; height: 17px; }
}
@media (hover: none) { .cursor { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}
