/* ── Local fonts ─────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/Onest-Ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/Onest.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
==========================================================================
   CSS VERSION CONTROL
   ========================================================================== 
   Version: 0.1.0
   Description: Main stylesheet for interaktif.space
   Changelog:    
   - v0.1.0: Homepage alive with core sections, dark mode, and responsive design.
========================================================================== 
*/

:root {
  --bg: #f7f6f2;
  --ink: #0a0a0a;
  --soft: #666660;
  --line: #e2e0d8;
  --max: 1240px;
  --pad: 44px;
}
@media (max-width: 600px) {
  :root {
    --pad: 22px;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Onest", "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  font-optical-sizing: auto;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* THE ONE RULE — every content element uses this */
.w {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* TOPBAR */
.topbar {
  background: var(--ink);
  color: #f7f6f2;
  font-size: 13px;
}
.topbar .w {
  padding-top: 10px;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar a {
  color: #f7f6f2;
  text-decoration: none;
  opacity: 0.7;
  font-size: 12px;
}
.topbar a:hover {
  opacity: 1;
}

/* NAV */
nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: calc(100% - 2 * var(--pad));
  max-width: calc(var(--max) - 2 * var(--pad));
  margin: 0 auto;
  background: rgba(247, 246, 242, 0.88);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(226, 224, 216, 0.55);
  border-radius: 100px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
  font-size: 14px;
}
nav .w {
  padding-top: 10px;
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  height: 38px;
  width: auto;
  display: block;
}
.logo-for-dark {
  display: none;
}
[data-theme="dark"] .logo-for-light {
  display: none;
}
[data-theme="dark"] .logo-for-dark {
  display: block;
}
.xmark {
  display: inline-block;
  width: 18px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
}
.xmark::before,
.xmark::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1.8px;
  background: var(--ink);
  top: 50%;
  left: 0;
  transform-origin: center;
}
.xmark::before {
  transform: translateY(-50%) rotate(45deg);
}
.xmark::after {
  transform: translateY(-50%) rotate(-45deg);
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
nav a {
  color: var(--ink);
  text-decoration: none;
}
nav a:hover {
  opacity: 0.55;
}
.nav-cta {
  border: 1px solid var(--ink);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 13px;
}
.nav-cta:hover {
  background: var(--ink);
  color: var(--bg) !important;
  opacity: 1 !important;
}
@media (max-width: 820px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* HERO */
.hero-section {
  padding-top: 80px;
}
.hero {
  padding-bottom: 52px;
}
h1 {
  font-size: clamp(28px, 4.8vw, 72px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.hero .btn {
  margin-top: 28px;
  display: inline-block;
}

.btn {
  display: inline-block;
  font-size: 13px;
  padding: 10px 22px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
}
.btn:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn.solid {
  background: var(--ink);
  color: var(--bg);
}
.btn.solid:hover {
  opacity: 0.82;
}

/* REEL — full bleed, interactive canvas */
.reel {
  width: 100%;
  aspect-ratio: 16/7;
  background: linear-gradient(
    120deg,
    #c8cfe8 0%,
    #e8d8c4 35%,
    #f0c4a0 65%,
    #d4a8bc 100%
  );
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  cursor: crosshair;
}
.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
#reel-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.reel-label {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 22px;
  font-size: 12px;
  color: rgba(10, 10, 10, 0.4);
  letter-spacing: 0.06em;
  pointer-events: none;
}

/* SECTIONS — all use .w for padding */
.section {
  padding: 84px 0;
  border-top: 1px solid var(--line);
}
.eyebrow {
  font-size: 12px;
  color: var(--soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.sec-title {
  font-size: clamp(28px, 4.2vw, 50px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 46px;
}
.sec-intro {
  font-size: 16px;
  color: var(--soft);
  line-height: 1.5;
  margin-top: -18px;
  margin-bottom: 44px;
  text-wrap: pretty;
}

/* BRIDGE */
.bridge {
  padding: 84px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 760px) {
  .bridge {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
.bridge h2 {
  font-size: clamp(24px, 3.6vw, 42px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.bridge p {
  font-size: 18px;
  color: var(--soft);
  line-height: 1.5;
  padding-top: 6px;
}

/* LAYER STACK */
.stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 680px;
}
.layer {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  background: #faf9f5;
}
.layer.you {
  background: var(--ink);
  color: #f7f6f2;
  border-color: var(--ink);
}
.layer .lt {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.layer .ld {
  font-size: 14px;
  color: var(--soft);
  text-align: right;
  max-width: 48%;
}
.layer.you .ld {
  color: rgba(247, 246, 242, 0.65);
}
.stack-note {
  margin-top: 22px;
  font-size: 16px;
  color: var(--soft);
  max-width: 58ch;
  line-height: 1.55;
}

/* PROOF */
.proof {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 52px;
  align-items: start;
}
@media (max-width: 820px) {
  .proof {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}
.proof .vis {
  aspect-ratio: 16/11;
  border-radius: 4px;
  background: linear-gradient(
    135deg,
    #1e2a3a 0%,
    #3a2848 45%,
    #c87850 85%,
    #e8a060 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.proof .vis::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 70% 25%,
    rgba(200, 120, 80, 0.35),
    transparent 60%
  );
}
.proof .vis span {
  color: rgba(247, 246, 242, 0.82);
  font-size: 11px;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 2;
}
.pill {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: 100px;
  padding: 5px 12px;
  margin-bottom: 16px;
}
.proof h3 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 8px;
}
.proof .credit {
  font-size: 13px;
  color: var(--soft);
  margin-bottom: 24px;
}
.proof .credit a {
  color: var(--ink);
}
.para {
  margin-bottom: 18px;
}
.para .ph {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
  display: block;
  margin-bottom: 5px;
}
.para p {
  font-size: 15px;
  line-height: 1.55;
}

/* TILES */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
@media (max-width: 760px) {
  .tiles {
    grid-template-columns: 1fr;
  }
}
.tile {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  text-decoration: none;
  color: #f7f6f2;
  position: relative;
}
.tile:hover {
  opacity: 0.92;
}
.tile .c {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 7px;
}
.tile .t {
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.tile .cap {
  font-size: 12px;
  opacity: 0.72;
  margin-top: 7px;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(0, 0, 0, 0.45) 100%
  );
}
.tile > * {
  position: relative;
  z-index: 2;
}
.tile.a {
  background: linear-gradient(135deg, #1e2c3a, #2a4060, #4a7090);
}
.tile.b {
  background: linear-gradient(135deg, #2a1e30, #4a2848, #8a4060);
}
.tile.c2 {
  background: linear-gradient(135deg, #1a2418, #2e3e28, #506040);
}
.tile.d {
  background: linear-gradient(135deg, #281e14, #483828, #786048);
}

/* PROCESS CARDS */
.proc-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .proc-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .proc-cards {
    grid-template-columns: 1fr;
  }
}
.pcard {
  border-radius: 16px;
  padding: 28px 26px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
.pcard .pw {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.pcard .pd {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 16px;
  opacity: 0.8;
}
.pcard .pa {
  font-size: 18px;
  margin-top: 16px;
  opacity: 0.6;
}
.pcard.green {
  background: #9ee08a;
  color: #122e0a;
}
.pcard.pink {
  background: #e9a8c4;
  color: #3e1828;
}
.pcard.yellow {
  background: #f4d35e;
  color: #3a2e08;
}
.pcard.black {
  background: #161614;
  color: #f7f6f2;
}
.pcard.black .pd {
  opacity: 0.65;
}


/* CAPABILITIES */
.caps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 900px) {
  .caps {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}
@media (max-width: 640px) {
  .caps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cap {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .cap:last-child {
    border-bottom: 1px solid var(--line);
  }
}
.cap h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cap p {
  font-size: 14px;
  color: var(--soft);
  line-height: 1.55;
  text-wrap: pretty;
}

/* STABILITY */
.stability {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 44px;
}
@media (max-width: 720px) {
  .stability {
    grid-template-columns: 1fr;
  }
}
.scell {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 24px;
  background: #faf9f5;
}
.scell h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.scell p {
  font-size: 14px;
  color: var(--soft);
  line-height: 1.5;
}

/* STUDIO */
.relation {
  background: var(--ink);
  color: #f7f6f2;
  border-radius: 12px;
  padding: 52px;
}
@media (max-width: 600px) {
  .relation {
    padding: 34px 28px;
  }
}
.relation .rlabel {
  font-size: 12px;
  color: rgba(247, 246, 242, 0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.relation p.big {
  font-size: clamp(19px, 2.6vw, 27px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.45;
  max-width: 46ch;
  margin: 18px 0 26px;
}
.relation .rl a {
  color: #f7f6f2;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 246, 242, 0.3);
  padding-bottom: 2px;
}

/* CONTACT */
.contact-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  max-width: 640px;
}

.contact-grid h2 {
  font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.contact-grid p {
  font-size: 18px;
  color: var(--soft);
  line-height: 1.5;
}
.actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--line);
}
.foot-card {
  background: #f7f6f2;
  border: 1px solid rgba(226, 224, 216, 0.55);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
  border-radius: 14px;
  margin: 36px 0;
  padding: 46px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
@media (max-width: 760px) {
  .foot-card {
    gap: 20px;
    padding: 32px 28px;
  }
}
.foot-brand {
  display: flex;
  align-items: center;
}
.foot-brand img {
  height: 56px;
  width: auto;
  display: block;
}
.foot-address {
  font-size: 12px;
  color: var(--soft);
  line-height: 1.6;
  margin: 0;
}
.foot-legal {
  border-top: 1px solid rgba(10, 10, 10, 0.1);
  padding-top: 20px;
  font-size: 12px;
  color: var(--soft);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(13px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* THEME TOGGLE BUTTON */
.theme-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  opacity: 0.55;
  flex-shrink: 0;
}
.theme-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}

/* DARK MODE */
[data-theme="light"] .logo-for-dark {
  display: none;
}
[data-theme="light"] .logo-for-light {
  display: block;
}

[data-theme="dark"] {
  --bg: #111110;
  --ink: #f0efe9;
  --soft: #888882;
  --line: #252521;
}
[data-theme="dark"] body {
  background: var(--bg);
  color: var(--ink);
}
[data-theme="dark"] .topbar {
  background: #1c1c1a;
}
[data-theme="dark"] nav {
  background: rgba(20, 20, 18, 0.88);
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .theme-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .layer {
  background: #1c1c19;
  border-color: var(--line);
}
[data-theme="dark"] .layer.you {
  background: #f0efe9;
  color: #0a0a0a;
  border-color: #f0efe9;
}
[data-theme="dark"] .layer.you .ld {
  color: rgba(10, 10, 10, 0.65);
}
[data-theme="dark"] .scell {
  background: #1c1c19;
  border-color: var(--line);
}
[data-theme="dark"] .relation {
  background: #1e1e1b;
}
[data-theme="dark"] .pcard.black {
  border: 1px solid var(--line);
}
[data-theme="dark"] .foot-card {
  background: #141412;
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .foot-legal {
  border-top: 1px solid rgba(10, 10, 10, 0.1);
  padding-top: 20px;
  font-size: 12px;
  color: var(--soft);
}
body,
nav,
.topbar,
.layer,
.scell,
.foot-card,
.relation {
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
/* ── MOBILE ──────────────────────────────────────── */
@media (max-width: 600px) {
  .topbar {
    display: none;
  }
  .brand img {
    height: 34px;
  }
  nav .w {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .reel {
    aspect-ratio: 4 / 3;
  }
  .hero-section {
    padding-top: 44px;
  }
  .hero {
    padding-bottom: 36px;
  }
  .section {
    padding: 52px 0;
  }
  .bridge {
    padding: 52px 0;
  }
  .sec-title {
    margin-bottom: 28px;
  }
  .pcard {
    min-height: 0;
  }
  .relation {
    border-radius: 10px;
  }
  .foot-card {
    border-radius: 10px;
  }
}
