/* Atomic Field — Living System
   Option B landing page for Atomic Studio.
   Monochrome, one continuous scroll, organism canvas fixed behind content. */

@font-face{
  font-family:'Switzer';
  src:url('../fonts/Switzer-Regular.woff2') format('woff2');
  font-weight:400; font-style:normal; font-display:swap;
}
@font-face{
  font-family:'Switzer';
  src:url('../fonts/Switzer-Medium.woff2') format('woff2');
  font-weight:500; font-style:normal; font-display:swap;
}
@font-face{
  font-family:'Switzer';
  src:url('../fonts/Switzer-Semibold.woff2') format('woff2');
  font-weight:600; font-style:normal; font-display:swap;
}
@font-face{
  font-family:'Switzer';
  src:url('../fonts/Switzer-Bold.woff2') format('woff2');
  font-weight:700; font-style:normal; font-display:swap;
}

:root{
  --black:#050505;
  --white:#F5F2EC;
  --white-dim:rgba(245,242,236,0.55);
  --white-faint:rgba(245,242,236,0.32);
  --bone:#F4F1EA;
  --ink:#171715;
  --ink-dim:rgba(23,23,21,0.6);
  --ink-faint:rgba(23,23,21,0.38);
  --ease:cubic-bezier(0.16,1,0.3,1);
}

*{box-sizing:border-box;margin:0;padding:0;}

html{
  background:var(--black);
}

body{
  font-family:'Switzer','Neue Montreal',-apple-system,'Helvetica Neue',Arial,sans-serif;
  background:var(--black);
  color:var(--white);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  transition:background 1.1s var(--ease), color 1.1s var(--ease);
  overflow-x:hidden;
}

body.light-zone{
  background:var(--bone);
  color:var(--ink);
}

a{color:inherit;text-decoration:none;}

/* Skip link for keyboard/screen reader users — organism canvas has no semantic content */
.skip-link{
  position:absolute;left:-9999px;top:0;
  background:var(--white);color:var(--black);
  padding:12px 20px;z-index:100;
}
.skip-link:focus{left:16px;top:16px;}

/* Language switch — plain text, no chrome. Fixed so it reads on every
   section; color:inherit follows body's existing dark/light transition
   (see body.light-zone) so it never needs its own light/dark handling. */
.lang-switch{
  position:fixed;
  top:24px;
  right:24px;
  z-index:3;
  font-size:11px;
  font-weight:500;
  letter-spacing:0.1em;
  color:inherit;
  opacity:0.6;
}
.lang-btn{
  font:inherit;
  letter-spacing:inherit;
  color:inherit;
  background:none;
  border:0;
  padding:4px;
  margin:-4px;
  cursor:pointer;
  opacity:0.55;
  transition:opacity 0.3s var(--ease);
}
.lang-btn:hover{ opacity:0.85; }
.lang-btn.is-active{ opacity:1; }

/* Organism — three takes stacked as fixed background video, behind all
   content. js/main.js crossfades their opacity by scroll position (one
   continuous organism, not a hard cut per section) and mutes them all
   out during the light-bg "build" section. Base opacity 0 here; JS
   drives the real value so the crossfade has something to animate. */
.organism-video{
  position:fixed;
  inset:0;
  width:100vw;
  height:100vh;
  object-fit:cover;
  z-index:1;
  pointer-events:none;
  opacity:0;
  transition:opacity 1.8s var(--ease);
}

/* soft dark vignette so hero/contact text stays legible over the footage */
.organism-overlay{
  position:fixed;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:radial-gradient(ellipse at center, rgba(5,5,5,0) 30%, rgba(5,5,5,0.55) 100%);
  transition:opacity 1.1s var(--ease);
}

body.light-zone .organism-overlay{
  opacity:0;
}

main{
  position:relative;
  z-index:2;
}

.wrap{
  max-width:1280px;
  margin:0 auto;
  padding:0 32px;
}

.eyebrow{
  font-size:12px;
  font-weight:500;
  letter-spacing:0.14em;
  text-transform:uppercase;
  opacity:0.55;
}

/* ---------- Section 01 — Hero ---------- */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:0 24px;
}

.hero-content{
  transition:opacity 0.3s linear, transform 0.3s linear;
  will-change:opacity, transform;
}

.hero h1{
  font-weight:700;
  font-size:clamp(30px, 6.5vw, 84px);
  line-height:0.94;
  letter-spacing:-0.03em;
}

.hero .eyebrow{
  margin-top:28px;
  letter-spacing:0.28em;
}

/* ---------- Scroll-pinned narrative sections (02, 03) ---------- */
.pin-wrapper{
  position:relative;
  /* height set inline per-section via data attribute driven CSS var, see below */
}

#idea{ height:320vh; }
#system{ height:380vh; }

.pin-inner{
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  padding:0 24px;
}

.reveal-stack{
  position:relative;
  width:100%;
  max-width:1000px;
  text-align:center;
}

.reveal-line{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transform:translateY(18px);
  will-change:opacity, transform;
}

.reveal-line h2{
  font-weight:700;
  font-size:clamp(20px, 4.25vw, 54px);
  line-height:1.0;
  letter-spacing:-0.02em;
}

/* System section labels */
.system-label{
  position:absolute;
  top:-64px;
  left:50%;
  transform:translateX(-50%);
  font-size:12px;
  font-weight:500;
  letter-spacing:0.14em;
  text-transform:uppercase;
  opacity:0.5;
  white-space:nowrap;
}

/* ---------- Section 04 — What We Build ---------- */
.build{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  padding:160px 0;
}

.build h2{
  font-weight:700;
  font-size:clamp(22px, 4.5vw, 58px);
  line-height:0.98;
  letter-spacing:-0.025em;
  margin-bottom:56px;
}

.build-list{
  display:flex;
  flex-wrap:wrap;
  gap:16px 40px;
}

.build-list span{
  font-size:clamp(16px, 2vw, 20px);
  font-weight:500;
  color:var(--ink-dim);
  position:relative;
  padding-left:20px;
}

.build-list span::before{
  content:'';
  position:absolute;
  left:0; top:50%;
  width:6px; height:6px;
  border-radius:50%;
  background:var(--ink-faint);
  transform:translateY(-50%);
}

/* ---------- Section 05 — Contact ---------- */
.contact{
  position:relative;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:120px 24px;
}

.contact h2{
  font-weight:700;
  font-size:clamp(22px, 4.75vw, 64px);
  line-height:0.96;
  letter-spacing:-0.025em;
  margin-bottom:56px;
}

.contact-meta{
  display:flex;
  flex-direction:column;
  gap:14px;
  align-items:center;
}

.contact-email{
  font-size:clamp(18px, 2.4vw, 24px);
  font-weight:500;
  border-bottom:1px solid var(--white-faint);
  padding-bottom:2px;
  transition:opacity 0.4s var(--ease), border-color 0.4s var(--ease);
}
.contact-email:hover{
  opacity:0.7;
  border-color:var(--white-dim);
}

.contact-location{
  font-size:13px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  opacity:0.45;
}

/* Scaffolded, inactive CTA — see js/main.js SHOW_EXPERIENCES_CTA */
.pill-cta{
  display:inline-block;
  margin-top:40px;
  padding:14px 30px;
  border-radius:999px;
  border:1px solid var(--white-faint);
  font-size:13px;
  font-weight:500;
  letter-spacing:0.02em;
  transition:opacity 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pill-cta:hover{ opacity:0.75; border-color:var(--white-dim); }
.pill-cta[hidden]{ display:none; }

/* ---------- Section 06 — Experiences (reached via the Contact CTA) ---------- */
.experiences{
  position:relative;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:120px 24px;
}

.experiences .eyebrow{ margin-bottom:28px; }

.experiences h2{
  font-weight:700;
  font-size:clamp(22px, 4.75vw, 64px);
  line-height:0.96;
  letter-spacing:-0.025em;
}

footer{
  position:relative;
  z-index:2;
  padding:32px 24px 40px;
  text-align:center;
  font-size:11px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  opacity:0.32;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; transition-duration:0.01ms !important; }
}

/* ---------- Mobile ---------- */
@media (max-width:760px){
  .wrap{ padding:0 20px; }

  .hero h1{ font-size:clamp(24px, 8vw, 38px); }

  #idea{ height:260vh; }
  #system{ height:320vh; }

  .reveal-line h2{ font-size:clamp(16px, 5vw, 28px); }

  .system-label{ top:-48px; font-size:11px; }

  .build{ padding:120px 0; }
  .build h2{ font-size:clamp(17px, 5.5vw, 30px); margin-bottom:40px; }
  .build-list{ flex-direction:column; gap:16px; }

  .contact{ padding:100px 20px; }
  .contact h2{ font-size:clamp(17px, 5.5vw, 30px); }

  .experiences{ padding:100px 20px; }
  .experiences h2{ font-size:clamp(17px, 5.5vw, 30px); }
}

@media (max-width:400px){
  .hero h1{ font-size:26px; }
}
