/* Ghost of Sahyadri. Dark only by design: a night-mist palette with one saffron accent shared with slmlabs.in. */
@font-face {
  font-family: "Big Shoulders";
  src: url("/fonts/big-shoulders.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ground: #0d1110;
  --raised: #151b1a;
  --ridge: #1d2524;
  --line: #2a3432;
  --text: #eef0ec;
  --muted: #a6aea9;
  --soft: #6e7873;
  --accent: #e0823d; /* saffron */
  --radius: 4px;     /* sharp, carved edges for media and cells; buttons are pills */
  --pill: 999px;
  --gutter: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Big Shoulders", "Arial Narrow", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--text);
  font-family: "Manrope", system-ui, sans-serif; font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* Film grain on a fixed, non-interactive layer only. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--text); color: var(--ground); padding: 10px 16px; border-radius: var(--pill); }
.skip:focus { top: 12px; }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgb(13 17 16 / 0.85), rgb(13 17 16 / 0));
}
.wordmark { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 34px); font-size: 15px; color: var(--muted); }
.nav-links a { padding: 10px 0; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-studio { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 28px; border-radius: var(--pill);
  font-weight: 700; font-size: 16px; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s;
}
.btn-primary { background: var(--accent); color: #1a0f06; }
.btn-primary:hover { background: #ec9150; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

/* Art slots: real images when present, a mist-and-ridges panel until then */
.art-slot {
  position: relative; overflow: hidden; background-color: var(--raised);
  background-image:
    radial-gradient(90% 55% at 72% 22%, rgb(224 130 61 / 0.26), transparent 62%),
    linear-gradient(168deg, transparent 50%, #222c2a 50.3%, #222c2a 61%, transparent 61.3%),
    linear-gradient(194deg, transparent 57%, #18201f 57.3%, #18201f 70%, transparent 70.3%),
    linear-gradient(176deg, transparent 66%, #111716 66.3%),
    linear-gradient(180deg, #34403d 0%, #1f2826 52%, #121817 100%);
}
.art-slot img { width: 100%; height: 100%; object-fit: cover; }
.art-slot.is-empty img { display: none; }

/* Hero */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: flex-end; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(13 17 16 / 0.92) 0%, rgb(13 17 16 / 0.55) 45%, rgb(13 17 16 / 0) 75%),
    linear-gradient(0deg, var(--ground) 0%, rgb(13 17 16 / 0) 40%);
}
.hero-copy { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 12vh, 120px); }
.title {
  font-family: var(--display); font-weight: 850; text-transform: uppercase;
  font-size: clamp(64px, 11vw, 168px); line-height: 0.86; letter-spacing: 0.005em;
}
.hero-sub { margin-top: 26px; max-width: 40ch; color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); }
.hero-copy > div { margin-top: 34px; }

/* Premise */
.premise { max-width: 1440px; margin: 0 auto; padding: clamp(96px, 14vw, 200px) var(--gutter); }
.premise-text {
  max-width: 24ch; margin-left: auto;
  font-size: clamp(30px, 3.8vw, 56px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600;
}

/* Combat split */
.section-title {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(44px, 6vw, 92px); line-height: 0.9; letter-spacing: 0.01em;
}
.combat {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
  max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
}
.moves { margin-top: 48px; display: grid; gap: 34px; }
.move-group { padding-left: 22px; border-left: 2px solid var(--line); transition: border-color .3s; }
.move-group:hover { border-color: var(--accent); }
.move-group h3 { font-size: 20px; letter-spacing: -0.01em; }
.move-group p { margin-top: 6px; color: var(--muted); max-width: 46ch; }
.combat-art { aspect-ratio: 4 / 5; border-radius: var(--radius); }

/* World */
.world { max-width: 1440px; margin: 0 auto; padding: clamp(110px, 15vw, 220px) var(--gutter) 0; }
.art-wide { aspect-ratio: 24 / 11; border-radius: var(--radius); }
.world-copy { display: grid; gap: 18px; max-width: 60ch; margin-top: 40px; }
.world-copy p { color: var(--muted); }

/* Status bento: 3 cells */
.status { max-width: 1440px; margin: 0 auto; padding: clamp(110px, 15vw, 220px) var(--gutter) 0; }
.status-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto;
  gap: 16px; margin-top: 44px;
}
.status-cell { padding: 30px 30px 34px; border-radius: var(--radius); background: var(--raised); border: 1px solid var(--line); }
.status-cell h3 { font-family: var(--display); font-weight: 750; text-transform: uppercase; font-size: clamp(28px, 2.6vw, 38px); line-height: 1; letter-spacing: 0.01em; }
.status-cell p { margin-top: 12px; color: var(--muted); max-width: 44ch; }
.status-main {
  grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px;
  background:
    radial-gradient(80% 70% at 85% 10%, rgb(224 130 61 / 0.22), transparent 60%),
    linear-gradient(160deg, var(--ridge), var(--raised));
}
.status-main h3 { font-size: clamp(36px, 4vw, 60px); }
.status-note { background: repeating-linear-gradient(135deg, var(--raised) 0 14px, #131918 14px 28px); }

/* Follow close */
.follow { text-align: center; padding: clamp(120px, 16vw, 240px) var(--gutter) clamp(90px, 12vw, 160px); }
.follow-title { font-family: var(--display); font-weight: 850; text-transform: uppercase; font-size: clamp(56px, 10vw, 150px); line-height: 0.88; }
.follow-sub { margin-top: 20px; color: var(--muted); }
.follow-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.follow-links a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px;
  border: 1px solid var(--line); border-radius: var(--pill); font-weight: 650;
  transition: border-color .2s, color .2s, transform .25s var(--ease);
}
.follow-links a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding: 28px var(--gutter) 36px; border-top: 1px solid var(--line); color: var(--soft); font-size: 14px;
}
.footer a:hover { color: var(--text); }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .enter { animation: rise 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms + 120ms); }
  .hero-art { animation: settle 2.4s var(--ease) both; }
  .js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Tablet and phone */
@media (max-width: 900px) {
  .combat { grid-template-columns: 1fr; }
  .combat-art { aspect-ratio: 4 / 3; }
  .art-wide { aspect-ratio: 4 / 3; }
  .status-grid { grid-template-columns: 1fr; }
  .status-main { grid-row: auto; min-height: 260px; }
  .premise-text { margin-left: 0; }
}
@media (max-width: 600px) {
  .nav-links li:not(:last-child) { display: none; }
  .hero::before { background: linear-gradient(0deg, var(--ground) 8%, rgb(13 17 16 / 0.55) 60%, rgb(13 17 16 / 0.2) 100%); }
}
