/* ==================================================================
   KLOQ — Advanced Smart Home Systems
   Design system v4 — DARK ARCHITECTURAL LUXURY
   Graphite darkness · warm white editorial type · restrained bronze
   Type: Archivo (display) · Inter (body) · IBM Plex Mono (labels)
   ================================================================== */

:root {
  /* palette */
  --black:       #0a0a0c;
  --graphite:    #101013;
  --graphite-2:  #16161a;
  --surface:     #1c1c21;
  --warm-white:  #f2efe9;
  --warm-white-2:#e6e2d8;
  --paper:       #f4f1ea;
  --paper-2:     #ece8df;
  --ink:         #141310;
  --accent:      #c2a468;   /* champagne bronze — use sparingly */
  --accent-dim:  #8f7a4f;

  /* contextual tokens — dark by default, .light flips them */
  --s-bg:        var(--black);
  --s-bg-2:      var(--graphite);
  --s-surface:   var(--graphite-2);
  --s-text:      #ece9e1;
  --s-body:      #a9a8a3;
  --s-mut:       #7c7b78;
  --s-line:      rgba(242, 239, 233, 0.1);
  --s-line-2:    rgba(242, 239, 233, 0.18);

  /* type */
  --font-d: "Archivo", "Inter", system-ui, sans-serif;
  --font-b: "Inter", system-ui, -apple-system, sans-serif;
  --font-m: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  /* scale */
  --t-hero: clamp(42px, 7vw, 100px);
  --t-d1:   clamp(34px, 4.6vw, 62px);
  --t-d2:   clamp(26px, 3.2vw, 42px);
  --t-d3:   clamp(20px, 2.2vw, 26px);

  --radius:     3px;
  --radius-img: 4px;
  --maxw:       1240px;
  --maxw-wide:  1420px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.light {
  --s-bg:      var(--paper);
  --s-bg-2:    var(--paper-2);
  --s-surface: #ffffff;
  --s-text:    var(--ink);
  --s-body:    #55524a;
  --s-mut:     #8a8579;
  --s-line:    rgba(20, 19, 16, 0.12);
  --s-line-2:  rgba(20, 19, 16, 0.22);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  background: var(--black);
  color: var(--s-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(194, 164, 104, 0.3); color: var(--warm-white); }

img, svg, video { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--font-d);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--s-text);
}

section { background: var(--s-bg); color: var(--s-body); position: relative; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.container.wide { max-width: var(--maxw-wide); }

/* ---------- utilities ---------- */
.muted { color: var(--s-mut); }
.center { text-align: center; }
.grad-text { color: var(--accent); }

.section { padding: 140px 0; }
.section.tight { padding: 84px 0; }
.section.alt { background: var(--s-bg-2); }

.rule { height: 1px; background: var(--s-line); border: none; }

/* mono eyebrow label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-m);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--s-mut);
  margin-bottom: 26px;
}
.eyebrow::before {
  content: ""; width: 34px; height: 1px;
  background: var(--accent);
}
.eyebrow em { font-style: normal; color: var(--accent); }

.section-head { max-width: 860px; margin-bottom: 72px; }
.section-head h2 { font-size: var(--t-d1); margin-bottom: 22px; }
.section-head p { color: var(--s-body); font-size: 18px; max-width: 620px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }

.lead { font-size: 19px; line-height: 1.7; }

/* ---------- buttons ---------- */
.btn, .btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--font-d); font-weight: 600; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 19px 36px; border-radius: var(--radius);
  cursor: pointer; position: relative; overflow: hidden;
  transition: color 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.3s var(--ease);
  will-change: transform;
}
.btn {
  background: var(--warm-white); color: var(--ink);
  border: 1px solid var(--warm-white);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.light .btn { background: var(--ink); color: var(--warm-white); border-color: var(--ink); }
.light .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.btn-line {
  background: transparent; color: var(--s-text);
  border: 1px solid var(--s-line-2);
}
.btn-line:hover { border-color: var(--accent); color: var(--accent); }

.btn svg, .btn-line svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg, .btn-line:hover svg { transform: translateX(5px); }

.btn-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

/* text link with underline draw */
.tlink {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-d); font-weight: 600; font-size: 13.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--s-text); position: relative; padding-bottom: 6px;
}
.tlink::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--s-line-2);
}
.tlink::before {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); z-index: 1;
  transition: width 0.45s var(--ease);
}
.tlink:hover::before { width: 100%; }
.tlink svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.tlink:hover svg { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 12, 0.78);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom-color: rgba(242, 239, 233, 0.08);
}
.nav-inner {
  max-width: var(--maxw-wide); margin: 0 auto; padding: 0 28px;
  height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px;
  transition: height 0.35s ease;
}
.nav.scrolled .nav-inner { height: 70px; }

.logo { display: flex; align-items: center; gap: 12px; color: var(--warm-white); }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-word {
  font-family: var(--font-d); font-weight: 700; font-size: 22px;
  letter-spacing: 0.22em; color: var(--warm-white);
}
.logo-word span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-family: var(--font-d);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(242, 239, 233, 0.62);
  padding: 8px 0; position: relative;
  transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--warm-white); }
.nav-links a.active { color: var(--warm-white); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--accent);
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 14px 26px; font-size: 12px; }

.nav-burger {
  display: none; background: transparent;
  border: 1px solid rgba(242, 239, 233, 0.25);
  border-radius: var(--radius); width: 46px; height: 46px; cursor: pointer;
  align-items: center; justify-content: center; color: var(--warm-white);
}

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(10, 10, 12, 0.97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  padding: 130px 30px 48px;
  flex-direction: column; gap: 0;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-d); font-size: 26px; font-weight: 600;
  letter-spacing: 0.02em;
  padding: 20px 0; border-bottom: 1px solid rgba(242, 239, 233, 0.1);
  color: var(--warm-white);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu a::after { content: "→"; color: var(--accent); font-size: 20px; }
.mobile-menu .btn { margin-top: 34px; }
.mobile-menu .btn::after { content: none; }

/* ---------- cinematic hero ---------- */
.hero-cine {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--black);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  animation: heroDrift 24s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroDrift {
  0%   { transform: scale(1.08) translateY(0); }
  100% { transform: scale(1.16) translateY(-2.5%); }
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.55) 0%, rgba(10, 10, 12, 0.1) 32%, rgba(10, 10, 12, 0.25) 58%, rgba(10, 10, 12, 0.92) 100%);
}
.hero-content {
  position: relative; z-index: 2; width: 100%;
  padding: 180px 0 0;
}
.hero-title {
  font-family: var(--font-d);
  font-size: var(--t-hero);
  font-weight: 650;
  line-height: 0.99;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--warm-white);
  margin-bottom: 34px;
  max-width: 1000px;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 18.5px; color: rgba(242, 239, 233, 0.72);
  max-width: 520px; margin-bottom: 44px; line-height: 1.75;
}
.hero-proof {
  margin-top: 88px;
  border-top: 1px solid rgba(242, 239, 233, 0.16);
  display: flex; gap: 0; flex-wrap: wrap;
  padding-bottom: 46px;
}
.hero-proof div {
  padding: 26px 56px 0 0; margin-right: 56px;
}
.hero-proof b {
  display: block; font-family: var(--font-d); font-weight: 650;
  font-size: 30px; color: var(--warm-white); letter-spacing: -0.01em;
}
.hero-proof span {
  font-family: var(--font-m); font-size: 10.5px; letter-spacing: 0.24em;
  text-transform: uppercase; color: rgba(242, 239, 233, 0.5);
}
.hero-tag {
  font-family: var(--font-m); font-size: 11px; letter-spacing: 0.34em;
  text-transform: uppercase; color: rgba(242, 239, 233, 0.65);
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 30px;
}
.hero-tag::before { content: ""; width: 34px; height: 1px; background: var(--accent); }

/* line reveal */
.lr span { display: block; overflow: hidden; }
.lr span i {
  display: block; font-style: normal;
  transform: translateY(112%);
  transition: transform 1.1s var(--ease);
}
.lr.in span i { transform: translateY(0); }
.lr span:nth-child(2) i { transition-delay: 0.1s; }
.lr span:nth-child(3) i { transition-delay: 0.2s; }

/* ---------- manifesto flow ---------- */
.flow {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
  margin-top: 70px;
}
.flow-item {
  font-family: var(--font-m); font-size: 12px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--s-text);
  padding: 16px 26px; border: 1px solid var(--s-line-2); border-radius: var(--radius);
  white-space: nowrap;
}
.flow-item.last { color: var(--accent); border-color: var(--accent); }
.flow-sep {
  flex: 1 1 40px; min-width: 40px; height: 1px; background: var(--s-line-2); position: relative;
  overflow: visible;
}
.flow-sep::after {
  content: ""; position: absolute; top: -2.5px; left: 0;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: flowDot 3s linear infinite;
}
@keyframes flowDot { to { left: calc(100% - 6px); } }

/* ---------- numbered story ---------- */
.story { border-top: 1px solid var(--s-line); }
.story-row {
  display: grid; grid-template-columns: 140px 1fr 1.1fr; gap: 40px;
  padding: 54px 0; border-bottom: 1px solid var(--s-line);
  align-items: baseline;
}
.story-row .num {
  font-family: var(--font-m); font-size: 13px; letter-spacing: 0.2em;
  color: var(--accent);
}
.story-row h3 { font-size: var(--t-d2); font-weight: 600; letter-spacing: -0.01em; }
.story-row p { color: var(--s-body); font-size: 16.5px; max-width: 520px; }

/* ---------- systems showcase ---------- */
.showcase { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 80px; align-items: start; }
.sys-list { border-top: 1px solid var(--s-line); }
.sys-item {
  border-bottom: 1px solid var(--s-line);
  padding: 34px 8px;
  cursor: pointer;
  transition: background 0.3s ease, padding 0.3s var(--ease);
  position: relative;
}
.sys-item:hover, .sys-item.active { background: rgba(242, 239, 233, 0.03); padding-left: 22px; }
.sys-item .sys-top { display: flex; align-items: baseline; gap: 22px; }
.sys-item .idx {
  font-family: var(--font-m); font-size: 12px; color: var(--s-mut);
  letter-spacing: 0.14em;
  transition: color 0.3s ease;
}
.sys-item.active .idx, .sys-item:hover .idx { color: var(--accent); }
.sys-item h3 {
  font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}
.sys-item p {
  margin-top: 12px; font-size: 15.5px; color: var(--s-body); max-width: 480px;
  display: none;
}
.sys-item.active p { display: block; }
.sys-item .sys-tags { margin-top: 16px; display: none; flex-wrap: wrap; gap: 8px; }
.sys-item.active .sys-tags { display: flex; }
.sys-tag {
  font-family: var(--font-m); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--s-mut); border: 1px solid var(--s-line-2); border-radius: 2px;
  padding: 6px 12px;
}
.sys-inline { display: none; }

.showcase-media {
  position: sticky; top: 110px;
  aspect-ratio: 4 / 4.6; border-radius: var(--radius-img); overflow: hidden;
  background: var(--graphite-2);
}
.showcase-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 0.7s ease, transform 1.2s var(--ease);
}
.showcase-media img.active { opacity: 1; transform: scale(1); }
.showcase-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 10, 12, 0.55));
  pointer-events: none;
}

/* ---------- scenes (scroll experience) ---------- */
.scenes-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 90px; }
.scenes-sticky {
  position: sticky; top: 110px; align-self: start;
  height: calc(100svh - 160px); min-height: 480px;
  border-radius: var(--radius-img); overflow: hidden; background: var(--graphite-2);
}
.scenes-sticky img {
  width: 100%; height: 100%; object-fit: cover;
  transition: filter 1.2s ease, transform 1.2s ease;
}
.scenes-sticky .scene-shade {
  position: absolute; inset: 0; pointer-events: none;
  transition: background 1.2s ease, opacity 1.2s ease;
}
.scenes-sticky .scene-label {
  position: absolute; left: 28px; bottom: 24px;
  font-family: var(--font-m); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--warm-white);
  display: flex; align-items: center; gap: 12px;
}
.scenes-sticky .scene-label::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 14px var(--accent);
}
.scenes-wrap[data-scene="arrive"] .scenes-sticky img { filter: brightness(0.95) saturate(1); }
.scenes-wrap[data-scene="arrive"] .scene-shade { background: linear-gradient(180deg, transparent 55%, rgba(10,10,12,0.5)); }
.scenes-wrap[data-scene="evening"] .scenes-sticky img { filter: brightness(0.72) saturate(1.08) sepia(0.14); }
.scenes-wrap[data-scene="evening"] .scene-shade { background: linear-gradient(200deg, rgba(194,164,104,0.16), rgba(10,10,12,0.55) 75%); }
.scenes-wrap[data-scene="night"] .scenes-sticky img { filter: brightness(0.38) saturate(0.72); }
.scenes-wrap[data-scene="night"] .scene-shade { background: linear-gradient(180deg, rgba(8,10,18,0.35), rgba(6,7,12,0.72)); }

.scene-step { padding: 20vh 0; opacity: 0.28; transition: opacity 0.5s ease; }
.scene-step.active { opacity: 1; }
.scene-step:first-child { padding-top: 6vh; }
.scene-step:last-child { padding-bottom: 10vh; }
.scene-step .num {
  font-family: var(--font-m); font-size: 11px; letter-spacing: 0.3em;
  color: var(--accent); text-transform: uppercase; display: block; margin-bottom: 14px;
}
.scene-step h3 { font-size: var(--t-d3); font-weight: 600; margin-bottom: 12px; }
.scene-step p { font-size: 15px; color: var(--s-body); }

/* ---------- projects ---------- */
.proj-feature { margin-bottom: 26px; }
.proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.proj-card { display: block; position: relative; }
.proj-card .media {
  aspect-ratio: 16 / 10.5; border-radius: var(--radius-img); overflow: hidden;
  background: var(--graphite-2); position: relative;
}
.proj-feature .proj-card .media { aspect-ratio: 21 / 10; }
.proj-card .media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s ease;
}
.proj-card:hover .media img { transform: scale(1.05); filter: brightness(0.85); }
.proj-card .media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(10, 10, 12, 0.6));
}
.proj-card .meta {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-m); font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--s-mut);
  margin: 22px 0 10px;
}
.proj-card .meta em { font-style: normal; color: var(--accent); }
.proj-card .meta i { font-style: normal; opacity: 0.5; }
.proj-card h3 {
  font-size: clamp(20px, 2.2vw, 28px); font-weight: 600;
  display: inline; background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 0.5s var(--ease);
  padding-bottom: 3px;
}
.proj-card:hover h3 { background-size: 100% 1px; }
.proj-card .sys-line {
  margin-top: 12px; font-family: var(--font-m); font-size: 11px;
  letter-spacing: 0.12em; color: var(--s-mut); text-transform: uppercase;
}

/* ---------- case study ---------- */
.case-hero { position: relative; min-height: 78svh; display: flex; align-items: flex-end; overflow: hidden; }
.case-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0.5) 0%, rgba(10,10,12,0.08) 35%, rgba(10,10,12,0.9) 100%);
}
.case-hero .container { position: relative; z-index: 2; padding-bottom: 70px; padding-top: 180px; }
.case-hero h1 { font-size: var(--t-d1); text-transform: none; color: var(--warm-white); max-width: 800px; }

.case-meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--s-line); border-bottom: 1px solid var(--s-line);
}
.case-meta > div { padding: 30px 26px 30px 0; border-right: 1px solid var(--s-line); }
.case-meta > div:last-child { border-right: none; }
.case-meta > div + div { padding-left: 26px; }
.case-meta span {
  display: block; font-family: var(--font-m); font-size: 10px;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--s-mut); margin-bottom: 10px;
}
.case-meta b { font-family: var(--font-d); font-size: 16.5px; font-weight: 600; color: var(--s-text); }

.case-body { max-width: 740px; }
.case-body h2 { font-size: var(--t-d2); margin: 64px 0 20px; }
.case-body p { font-size: 17px; color: var(--s-body); margin-bottom: 18px; }

.case-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.case-gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-img);
}
.case-gallery img:first-child:last-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }

.case-next {
  display: block; border-top: 1px solid var(--s-line);
  padding: 70px 0;
}
.case-next .mono-label {
  font-family: var(--font-m); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--s-mut); display: block; margin-bottom: 18px;
}
.case-next h3 { font-size: var(--t-d1); transition: color 0.3s ease; }
.case-next:hover h3 { color: var(--accent); }

/* ---------- process line ---------- */
.steps-line { display: grid; grid-template-columns: repeat(5, 1fr); }
.step-cell {
  border-top: 1px solid var(--s-line-2);
  padding: 30px 26px 10px 0; margin-right: 26px;
  position: relative;
}
.step-cell::before {
  content: ""; position: absolute; top: -3px; left: 0;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.step-cell .num {
  font-family: var(--font-m); font-size: 11px; letter-spacing: 0.26em;
  color: var(--accent); display: block; margin-bottom: 16px;
}
.step-cell h3 {
  font-size: 17px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.step-cell p { font-size: 14px; color: var(--s-body); }

/* ---------- stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell {
  border-left: 1px solid var(--s-line);
  padding: 10px 0 10px 34px;
}
.stat-cell b {
  display: block; font-family: var(--font-d); font-weight: 650;
  font-size: clamp(52px, 6vw, 92px); line-height: 1;
  color: var(--s-text); letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.stat-cell b em { font-style: normal; color: var(--accent); }
.stat-cell span {
  font-family: var(--font-m); font-size: 10.5px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--s-mut);
}

/* ---------- ecosystem diagram ---------- */
.eco-diagram { position: relative; }
.eco-diagram svg { width: 100%; height: auto; }
.eco-node { transition: opacity 0.3s ease; }
.eco-line { stroke-dasharray: 4 6; animation: ecoFlow 4s linear infinite; }
@keyframes ecoFlow { to { stroke-dashoffset: -40; } }

.eco-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--s-line); margin-top: 60px; }
.eco-cell {
  border-bottom: 1px solid var(--s-line); border-right: 1px solid var(--s-line);
  padding: 30px 24px; display: flex; align-items: center; gap: 16px;
  transition: background 0.3s ease;
}
.eco-cell:nth-child(4n) { border-right: none; }
.eco-cell:hover { background: rgba(242, 239, 233, 0.03); }
.eco-cell img { height: 26px; width: auto; opacity: 0.85; }
.eco-cell span { font-family: var(--font-d); font-size: 14.5px; font-weight: 600; color: var(--s-text); }

.brands-note { margin-top: 26px; font-family: var(--font-m); font-size: 10.5px; letter-spacing: 0.08em; color: var(--s-mut); }

/* ---------- audience blocks ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.aud-card { display: block; position: relative; }
.aud-card .media {
  aspect-ratio: 4 / 4.8; border-radius: var(--radius-img); overflow: hidden; position: relative;
  background: var(--graphite-2);
}
.aud-card .media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s ease;
}
.aud-card:hover .media img { transform: scale(1.05); filter: brightness(0.8); }
.aud-card .media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 10, 12, 0.82));
}
.aud-card .overlay {
  position: absolute; left: 26px; right: 26px; bottom: 26px; z-index: 2;
}
.aud-card .overlay .mono-label {
  font-family: var(--font-m); font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 10px;
}
.aud-card .overlay h3 { font-size: 24px; color: var(--warm-white); margin-bottom: 8px; }
.aud-card .overlay p { font-size: 14px; color: rgba(242, 239, 233, 0.72); }

/* ---------- CTA final ---------- */
.cta-final { position: relative; overflow: hidden; }
.cta-final .bg { position: absolute; inset: 0; }
.cta-final .bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.32); }
.cta-final .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--black) 0%, rgba(10,10,12,0.35) 45%, var(--black) 100%);
}
.cta-final .container { position: relative; z-index: 2; }
.cta-final h2 {
  font-size: var(--t-d1); text-transform: uppercase; color: var(--warm-white);
  max-width: 800px; margin-bottom: 26px;
}
.cta-final p { max-width: 480px; margin-bottom: 44px; color: rgba(242, 239, 233, 0.7); font-size: 17.5px; }

/* ---------- forms ---------- */
.form-panel {
  background: var(--s-surface);
  border: 1px solid var(--s-line);
  border-radius: var(--radius-img); padding: 52px;
}
.light .form-panel { background: #ffffff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: block; font-family: var(--font-m); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  margin-bottom: 12px; color: var(--s-mut);
}
.field label b { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; background: transparent;
  border: 1px solid var(--s-line-2);
  border-radius: var(--radius); padding: 16px 18px; color: var(--s-text);
  font-family: var(--font-b); font-size: 15.5px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--s-mut); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  background: rgba(194, 164, 104, 0.04);
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--s-mut) 50%), linear-gradient(135deg, var(--s-mut) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--graphite-2); color: var(--s-text); }
.light .field select option { background: #fff; color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.field .err { color: #d98a80; font-size: 13px; margin-top: 8px; font-family: var(--font-b); }

.check-row { display: flex; flex-wrap: wrap; gap: 10px; }
.check-pill { position: relative; }
.check-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check-pill span {
  display: inline-block; padding: 12px 20px; border-radius: var(--radius);
  border: 1px solid var(--s-line-2);
  font-family: var(--font-m); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--s-body);
  transition: all 0.25s ease; cursor: pointer;
}
.check-pill input:checked + span {
  border-color: var(--accent); color: var(--ink); background: var(--accent);
}

.alert-ok {
  border: 1px solid rgba(194, 164, 104, 0.5); background: rgba(194, 164, 104, 0.08);
  color: var(--s-text); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 30px;
  display: flex; gap: 14px; align-items: center; font-size: 15px;
}
.alert-ok svg { width: 21px; height: 21px; color: var(--accent); flex: none; }
.alert-ok.error { border-color: rgba(217, 138, 128, 0.5); background: rgba(217, 138, 128, 0.07); }
.alert-ok.error svg { color: #d98a80; }

/* multi-step form */
.msf-progress {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 40px;
}
.msf-progress .count {
  font-family: var(--font-m); font-size: 12px; letter-spacing: 0.26em; color: var(--s-mut);
}
.msf-progress .count b { color: var(--accent); font-weight: 500; }
.msf-bar { flex: 1; height: 1px; background: var(--s-line); margin-left: 30px; position: relative; }
.msf-bar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); transition: width 0.5s var(--ease); }
.msf-step { display: none; }
.msf-step.active { display: block; animation: msfIn 0.45s var(--ease); }
@keyframes msfIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.msf-step h3 { font-size: var(--t-d3); margin-bottom: 28px; }
.msf-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; gap: 16px; }
.msf-back {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-m); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--s-mut); padding: 10px 0;
}
.msf-back:hover { color: var(--s-text); }

.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span {
  display: block; padding: 22px 24px;
  border: 1px solid var(--s-line-2); border-radius: var(--radius);
  font-family: var(--font-d); font-size: 15px; font-weight: 600; color: var(--s-text);
  transition: all 0.25s ease; cursor: pointer;
}
.opt small { display: block; font-family: var(--font-b); font-weight: 400; font-size: 13px; color: var(--s-mut); margin-top: 4px; }
.opt input:checked + span { border-color: var(--accent); background: rgba(194, 164, 104, 0.08); }
.opt input:checked + span::after { content: "—"; color: var(--accent); float: right; }

/* ---------- info cards (contact) ---------- */
.info-card {
  border: 1px solid var(--s-line); border-radius: var(--radius-img);
  padding: 30px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.3s ease;
}
.info-card:hover { border-color: var(--s-line-2); }
.info-card .mono-label {
  font-family: var(--font-m); font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--s-mut); margin-bottom: 8px;
}
.info-card a.val, .info-card p { font-family: var(--font-d); font-size: 18px; font-weight: 600; color: var(--s-text); }
.info-card a.val:hover { color: var(--accent); }
.info-card .sub { font-size: 13.5px; color: var(--s-mut); font-family: var(--font-b); font-weight: 400; }

/* ---------- footer ---------- */
.footer {
  background: var(--black); color: #8f8e89;
  border-top: 1px solid rgba(242, 239, 233, 0.08);
  padding: 90px 0 0; position: relative; overflow: hidden;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 80px; }
.footer h4 {
  font-family: var(--font-m); font-size: 10.5px; letter-spacing: 0.3em;
  text-transform: uppercase; color: #6b6a66; margin-bottom: 24px; font-weight: 500;
}
.footer-links { list-style: none; display: grid; gap: 13px; }
.footer-links a { color: #b5b3ac; font-size: 14.5px; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--warm-white); }
.footer-links .foot-text { color: #8f8e89; font-size: 14px; }
.footer-links .foot-sub { color: #6b6a66; font-size: 13px; }
.footer-about p { color: #8f8e89; font-size: 14.5px; margin-top: 20px; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid rgba(242, 239, 233, 0.08); padding: 26px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  color: #6b6a66; font-size: 13px;
  font-family: var(--font-m); letter-spacing: 0.04em;
}
.footer-watermark {
  font-family: var(--font-d); font-weight: 700;
  font-size: clamp(120px, 22vw, 320px); line-height: 0.8;
  letter-spacing: 0.06em; color: rgba(242, 239, 233, 0.035);
  text-align: center; user-select: none; pointer-events: none;
  margin-top: 20px; margin-bottom: -0.06em;
}

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 210px 0 90px; background: var(--s-bg); }
.page-hero h1 {
  font-size: var(--t-d1); font-weight: 650; text-transform: uppercase;
  margin-bottom: 24px; max-width: 900px; letter-spacing: -0.01em;
}
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero p { color: var(--s-body); font-size: 18.5px; max-width: 620px; }

/* ---------- feature list ---------- */
.feature-list { list-style: none; display: grid; gap: 15px; margin-top: 24px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--s-body); font-size: 15.5px; }
.feature-list li svg { width: 17px; height: 17px; flex: none; margin-top: 5px; color: var(--accent); }
.feature-list li b { color: var(--s-text); font-weight: 600; }

/* ---------- media frame ---------- */
.media-frame { border-radius: var(--radius-img); overflow: hidden; position: relative; }
.media-frame img { width: 100%; display: block; object-fit: cover; }
.media-frame.ratio-43 img { aspect-ratio: 4 / 3; }
.media-frame.ratio-169 img { aspect-ratio: 16 / 9; }
.media-frame .cap {
  position: absolute; left: 22px; bottom: 18px; z-index: 2;
  font-family: var(--font-m); font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--warm-white);
}
.media-frame.capped::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 12, 0.62));
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 84px; align-items: center; }
.split h2 { font-size: var(--t-d2); margin-bottom: 20px; }

/* ---------- inbox ---------- */
.inbox-table {
  width: 100%; border-collapse: collapse;
  background: var(--s-surface);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--s-line);
}
.inbox-table th {
  text-align: left; font-family: var(--font-m); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--s-mut); padding: 16px;
  border-bottom: 1px solid var(--s-line-2); background: rgba(242, 239, 233, 0.03);
}
.inbox-table td { padding: 16px; border-bottom: 1px solid var(--s-line); font-size: 14px; vertical-align: top; color: var(--s-body); }
.inbox-table tr:last-child td { border-bottom: none; }
.inbox-table strong { color: var(--s-text); }
.badge-type {
  font-family: var(--font-m); font-size: 10px; font-weight: 500; letter-spacing: 0.14em;
  padding: 5px 12px; border-radius: 2px; text-transform: uppercase;
  border: 1px solid var(--s-line-2); color: var(--s-body);
}
.badge-type.rfq { border-color: rgba(194, 164, 104, 0.5); color: var(--accent); }
.badge-type.project { border-color: rgba(194, 164, 104, 0.8); color: var(--accent); }

/* ---------- reveal motion ---------- */
.reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

.reveal-img { overflow: hidden; }
.reveal-img img { transform: scale(1.08); transition: transform 1.4s var(--ease); }
.reveal-img.in img { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-img img, .lr span i { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; }
  .flow-sep::after, .eco-line { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .showcase { grid-template-columns: 1fr; gap: 40px; }
  .showcase-media { display: none; }
  .sys-inline { display: block; margin-top: 20px; border-radius: var(--radius-img); overflow: hidden; }
  .sys-inline img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
  .sys-item p, .sys-item .sys-tags { display: block; }
  .sys-item .sys-tags { display: flex; }
  .scenes-wrap { grid-template-columns: 1fr; gap: 0; }
  .scenes-sticky { position: relative; top: 0; height: 52svw; min-height: 320px; margin-bottom: 40px; }
  .scene-step { padding: 34px 0; opacity: 1; border-bottom: 1px solid var(--s-line); }
  .steps-line { grid-template-columns: repeat(2, 1fr); gap: 0 26px; }
  .step-cell { margin-right: 0; margin-bottom: 34px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 44px 0; }
  .aud-grid { grid-template-columns: 1fr; gap: 22px; }
  .aud-card .media { aspect-ratio: 16 / 9; }
  .case-meta { grid-template-columns: repeat(2, 1fr); }
  .case-meta > div:nth-child(2n) { border-right: none; }
  .case-meta > div { border-bottom: 1px solid var(--s-line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .eco-list { grid-template-columns: repeat(2, 1fr); }
  .eco-cell:nth-child(2n) { border-right: none; }
  .story-row { grid-template-columns: 70px 1fr; }
  .story-row p { grid-column: 2; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-burger { display: inline-flex; }
  .split { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 640px) {
  .section { padding: 90px 0; }
  .section.tight { padding: 60px 0; }
  .hero-content { padding-top: 150px; }
  .hero-proof div { padding: 22px 30px 0 0; margin-right: 30px; }
  .hero-proof b { font-size: 24px; }
  .page-hero { padding: 160px 0 64px; }
  .proj-grid, .form-grid, .opt-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .form-panel { padding: 32px 24px; }
  .steps-line { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .stat-cell { padding-left: 22px; }
  .stat-cell b { font-size: 44px; }
  .btn, .btn-line { width: 100%; }
  .btn-row { width: 100%; }
  .flow { gap: 12px; }
  .flow-sep { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .case-gallery { grid-template-columns: 1fr; }
  .story-row { padding: 40px 0; gap: 18px; }
  .sys-item h3 { font-size: 21px; }
  .eco-list { grid-template-columns: 1fr; }
  .eco-cell { border-right: none; }
}

/* print: never hide revealed content */
@media print {
  .reveal, .reveal-img img, .lr span i { opacity: 1 !important; transform: none !important; }
}
