/* =========================================================
   Atlas Entertainment — Brand tokens
   Palette: Obsidian #111111 · Graphite #292929 · Ivory #E8E3D9 · Stone #A69F93
   Identity (Charter §9.1): minimalism, sobriety, timelessness
   ========================================================= */
:root {
  --obsidian: #111111;
  --graphite: #292929;
  --ivory: #E8E3D9;
  --stone: #A69F93;

  --bg: var(--obsidian);
  --bg-alt: #161616;
  --surface: var(--graphite);
  --text: var(--ivory);
  --muted: var(--stone);
  --line: rgba(232, 227, 217, 0.12);
  --line-strong: rgba(232, 227, 217, 0.28);

  --font: "Jost", "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--obsidian); }
body {
  margin: 0;
  background: transparent;
  position: relative;
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }

/* Backdrop: graphite depth with a soft silver light, plus fine film grain */
body::before, body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
}
body::before {
  background:
    radial-gradient(1100px 720px at 12% -8%, rgba(200, 194, 183, .13), transparent 62%),
    radial-gradient(900px 640px at 100% 105%, rgba(166, 159, 147, .10), transparent 60%),
    radial-gradient(700px 500px at 85% 30%, rgba(232, 227, 217, .035), transparent 70%),
    linear-gradient(160deg, #222222 0%, #181818 38%, #121212 72%, #151515 100%);
}
body::after {
  opacity: .085; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1.1em; }
::selection { background: var(--ivory); color: var(--obsidian); }
:focus-visible { outline: 1px solid var(--ivory); outline-offset: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Brand lockup ---------- */
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 44px; width: auto; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(24, 24, 24, .78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav { display: flex; gap: 34px; }
.nav a {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  transition: color .25s;
  position: relative;
}
.nav a:hover, .nav a.is-active { color: var(--ivory); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: .22em; bottom: -6px; height: 1px; background: var(--ivory);
}
.header__actions { display: flex; align-items: center; gap: 18px; }
.lang {
  background: none; border: 1px solid var(--line-strong); color: var(--muted);
  font: inherit; font-size: 11px; letter-spacing: .18em; padding: 6px 10px; cursor: pointer;
  transition: border-color .25s;
}
.lang:hover { border-color: var(--ivory); }
.lang [data-lang].is-on { color: var(--ivory); }
.lang__sep { margin: 0 4px; opacity: .5; }
.menu-btn { display: none; background: none; border: 0; width: 32px; height: 32px; padding: 0; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 4px; right: 4px; height: 1px; background: var(--ivory); transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 12px; }
.menu-btn span:last-child { top: 20px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background:
    radial-gradient(ellipse 60% 55% at 50% 40%, rgba(232, 227, 217, .085), transparent 70%),
    linear-gradient(180deg, transparent 70%, rgba(17, 17, 17, .35) 100%);
  overflow: hidden;
}
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 76px; padding-bottom: 40px; }
.hero__title { margin: 0; }
.hero__logo { width: clamp(260px, 44vw, 560px); height: auto; }
.hero__tagline {
  margin: 36px 0 12px; font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--muted);
}
.hero__motto { font-size: clamp(13px, 1.4vw, 15px); letter-spacing: .42em; margin-right: -.42em; text-transform: uppercase; color: var(--ivory); }
.hero__scroll {
  margin-top: 54px; display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted);
}
.hero__line { width: 1px; height: 54px; background: linear-gradient(var(--stone), transparent); animation: drip 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: clamp(90px, 13vw, 160px) 0; border-top: 1px solid var(--line); }
.section--alt {
  background: linear-gradient(180deg, rgba(41, 41, 41, .42) 0%, rgba(41, 41, 41, .14) 100%);
  box-shadow: inset 0 1px 0 rgba(232, 227, 217, .06);
}
.eyebrow { display: block; font-size: 12px; letter-spacing: .3em; color: var(--muted); margin-bottom: 18px; }
.section__title { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.12; letter-spacing: .01em; }
.section__head { margin-bottom: clamp(48px, 7vw, 80px); max-width: 720px; }
.section__sub { color: var(--muted); margin-top: 20px; max-width: 560px; }
.lead { font-size: clamp(20px, 2.2vw, 25px); line-height: 1.5; color: var(--ivory); }

.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 8vw, 120px); }
.split__body p:not(.lead) { color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 48px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 22px 18px 0 0; }
.facts dt { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.facts dd { margin: 0; font-size: 16px; line-height: 1.4; }

/* Purpose pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.pillar { padding: 36px 36px 0 0; }
.pillar + .pillar { padding-left: 36px; border-left: 1px solid var(--line); }
.pillar h3 { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 22px; }
.pillar p { color: var(--muted); }

/* Values */
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.value { padding: 44px 36px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(160deg, rgba(232, 227, 217, .025), transparent 60%); transition: background .4s var(--ease); }
.value:hover { background: linear-gradient(160deg, rgba(232, 227, 217, .065), rgba(232, 227, 217, .01) 70%); }
.value__num { display: block; font-size: 13px; letter-spacing: .2em; color: var(--muted); margin-bottom: 30px; }
.value h3 { font-size: 23px; margin-bottom: 14px; }
.value p { color: var(--muted); margin: 0; font-size: 16px; }

/* What we do */
.focus { list-style: none; margin: 0 0 36px; padding: 0; border-top: 1px solid var(--line); }
.focus li {
  padding: 24px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(20px, 2.6vw, 30px); display: flex; align-items: baseline; gap: 22px;
  transition: padding-left .4s var(--ease);
}
.focus li::before { content: ""; flex: none; width: 22px; height: 1px; background: var(--stone); transform: translateY(-.35em); }
.focus li:hover { padding-left: 10px; }
.division-note { color: var(--muted); margin: 0; font-size: 15px; letter-spacing: .02em; }
.division-note strong { color: var(--ivory); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; margin-right: 4px; }

/* Philosophy */
.quote { margin: 0 auto clamp(70px, 9vw, 110px); max-width: 900px; text-align: center; }
.quote p { font-size: clamp(24px, 3.4vw, 40px); line-height: 1.35; font-weight: 300; margin: 0; }
.quote p::before { content: "“"; display: block; font-size: 1.8em; line-height: .7; color: var(--stone); margin-bottom: 14px; }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; border-top: 1px solid var(--line); padding-top: 40px; }
.principles h3 { font-size: 17px; margin-bottom: 12px; }
.principles p { color: var(--muted); font-size: 15px; margin: 0; }


/* Contact */
.contact__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 8vw, 110px); align-items: end; }
.contact .lead { margin-top: 26px; color: var(--muted); font-size: clamp(18px, 1.8vw, 21px); }
.contact__card { border: 1px solid var(--line-strong); padding: 40px; display: flex; flex-direction: column; background: linear-gradient(145deg, rgba(232, 227, 217, .07), rgba(232, 227, 217, .01) 65%); }
.contact__label { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.contact__mail { font-size: clamp(18px, 2vw, 22px); margin-bottom: 34px; word-break: break-all; border-bottom: 1px solid var(--line-strong); padding-bottom: 6px; align-self: flex-start; transition: border-color .25s; }
.contact__mail:hover { border-color: var(--ivory); }
.social { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.social a { font-size: 14px; color: var(--muted); transition: color .25s; }
.social a:hover { color: var(--ivory); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 54px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__motto { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .38em; text-transform: uppercase; }
.footer__copy { margin: 0; font-size: 13px; color: var(--muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__line { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .principles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1120px) {
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--obsidian); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  .nav a.is-active::after { display: none; }
  .menu-btn { display: block; }
  .header.menu-open { background: var(--obsidian); }
  .split, .contact__inner { grid-template-columns: 1fr; }
  .pillars, .values { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .facts { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .value { padding: 34px 26px; }
  .contact__card { padding: 28px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .brand__logo { height: 36px; }
}
