/* =========================================================
   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%; }
body {
  margin: 0;
  background: var(--bg);
  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%; }
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(17, 17, 17, .86);
  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 at 50% 38%, #1d1d1d 0%, var(--obsidian) 62%);
  overflow: hidden;
}
.hero__grain {
  position: absolute; inset: 0; opacity: .07; pointer-events: none;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.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: var(--bg-alt); }
.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); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.value { background: var(--bg); padding: 44px 36px 40px; transition: background .4s var(--ease); }
.value:hover { background: #151515; }
.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 clamp(70px, 9vw, 110px); 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; }
.divisions__intro { color: var(--muted); margin-bottom: 32px; max-width: 560px; }
.division-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.division { border: 1px solid var(--line); padding: 28px 24px 26px; min-height: 200px; display: flex; flex-direction: column; }
.division h3 { font-size: 19px; letter-spacing: .04em; margin: auto 0 8px; }
.division p { color: var(--muted); font-size: 15px; margin: 0; }
.division__status { align-self: flex-start; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); padding: 4px 9px; }
.division--active { background: var(--ivory); color: var(--obsidian); border-color: var(--ivory); }
.division--active p { color: #4a4740; }
.division--active .division__status { color: var(--obsidian); border-color: rgba(17,17,17,.35); }

/* 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; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(7, 1fr); }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line-strong); }
.timeline__item { position: relative; padding: 34px 18px 0 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.timeline__dot { position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--bg-alt); border: 1px solid var(--stone); }
.timeline__n { display: block; font-size: 12px; letter-spacing: .2em; margin-bottom: 10px; }
.timeline__item.is-current { color: var(--ivory); }
.timeline__item.is-current .timeline__dot { background: var(--ivory); border-color: var(--ivory); box-shadow: 0 0 0 6px rgba(232,227,217,.1); }

/* 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; }
.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) {
  .division-grid { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { left: 6px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .timeline__item { padding: 0 0 26px 40px; }
  .timeline__n { display: inline; margin: 0 14px 0 0; }
}
@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; }
  .division-grid, .principles { grid-template-columns: 1fr; }
  .division { min-height: 160px; }
  .value { padding: 34px 26px; }
  .contact__card { padding: 28px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .brand__logo { height: 36px; }
}
