/* ── Zimula Variable Font ── */
@font-face {
  font-display: swap;
  font-family: Zimula;
  src: url('./Zimula-Variable.ttf') format('truetype');
}

/* Roboto Mono import removed */

/* ── Inter (header font) ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

/* ── Tokens — Light (default) ── */
:root {
  --creme: #f4efd7;
  --ink: #241f21;
  --mid: #7a716d;
  --faint: #988f8b;
  --line: #c3bcbb;
  --ivory: #ebe7df;

  --font: Zimula, system-ui, sans-serif;
  --ui: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: var(--ui);
  --fv-reg: "cnct" 1000, "wght" 400;
  --fv-med: "cnct" 1000, "wght" 500;
  --ls: -0.04em;
  --pad: 1.8vw;
  --accent: #0099ff;

  color-scheme: light dark;
}

/* ── Dark Mode — auto (system preference) ── */
@media (prefers-color-scheme: dark) {
  :root {
    --creme: #16181d;
    --ink: #ffffff;
    --mid: #cbd5e1;
    --faint: #94a3b8;
    --line: #475569;
    --ivory: #2a3140;
    --accent: #5e8cf0;
  }
}

/* ── Dark Mode — manual override via [data-theme] ── */
html[data-theme="light"] {
  --creme: #f4efd7;
  --ink: #241f21;
  --mid: #7a716d;
  --faint: #988f8b;
  --line: #c3bcbb;
  --ivory: #ebe7df;
}

html[data-theme="dark"] {
  --creme: #16181d;
  --ink: #ffffff;
  --mid: #cbd5e1;
  --faint: #94a3b8;
  --line: #475569;
  --ivory: #2a3140;
  --accent: #5e8cf0;
}

/* smooth theme transition */
body,
.header,
footer,
.section,
.page-hero,
.marquee,
.home-cta,
.project-card {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}

/* ── Theme Toggle Button ── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  background: color-mix(in srgb, var(--ivory) 50%, transparent);
  color: var(--mid);
  font-family: var(--ui);
  font-size: 15px;
  flex-shrink: 0;
  transition: color .2s, background-color .2s, transform .2s;
  margin-left: clamp(6px, .8vw, 12px);
}

.theme-toggle:hover {
  color: var(--ink);
  background-color: color-mix(in srgb, var(--ink) 6%, transparent);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

/* rotate icon on toggle */
.theme-toggle.is-dark .theme-toggle__icon {
  transform: rotate(180deg);
}

.theme-toggle__icon {
  display: inline-block;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
  line-height: 1;
}

/* ── Base ── */
html {
  font-size: 16px;
}

body {
  background: var(--creme);
  color: var(--ink);
  font-family: var(--font);
  font-variation-settings: var(--fv-reg);
  letter-spacing: var(--ls);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  /* hide scrollbar while Lenis takes over */
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
}

/* ── Cursor ── */
.cursor-dot,
.cursor-ring {
  display: none !important;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--ink);
  transition: width .25s, height .25s, opacity .25s;
}

.cursor-ring {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(36, 31, 33, .4);
  transition: width .4s cubic-bezier(.23, 1, .32, 1),
    height .4s cubic-bezier(.23, 1, .32, 1),
    border-color .3s, opacity .3s;
}

.cursor-ring.is-hovering {
  width: 64px;
  height: 64px;
  border-color: var(--ink);
}

.cursor-ring.is-hovering+.cursor-dot,
.cursor-dot.is-hovering {
  width: 3px;
  height: 3px;
}

@media (hover: none) {

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ── Page intro overlay ── */
.page-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: #111009;
  /* always dark — never depends on theme */
  transform-origin: top;
  pointer-events: none;
  /* CSS fallback: always animates out even if GSAP/JS fails */
  animation: overlayOut .9s .2s cubic-bezier(.76, 0, .24, 1) forwards;
}

@keyframes overlayOut {
  to {
    transform: scaleY(0);
    pointer-events: none;
  }
}

/* GSAP overrides the CSS animation when it runs */
.page-overlay.js-active {
  animation: none;
}

/* ── Catchy Background Orbs ── */
.hero-orb {
  display: none;
}
.hero-orb--left {
  display: none;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-5%, 10%) scale(1.1); }
}

/* ── Header ── */
.header {
  position: fixed;
  top: clamp(24px, 3vw, 40px);
  left: 0;
  right: 0;
  margin: 0 auto;
  width: calc(100% - clamp(24px, 3vw, 48px));
  max-width: 1400px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(10px, 1.2vw, 16px) clamp(16px, 2vw, 24px);
  border-radius: 100px;
  border: 1px solid transparent;
  transition: background .4s, backdrop-filter .4s, border-color .4s, box-shadow .4s, padding .4s, transform .5s cubic-bezier(.19,1,.22,1);
}

.header.is-scrolled {
  background: color-mix(in srgb, var(--creme) 65%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: color-mix(in srgb, var(--line) 40%, transparent);
  box-shadow: 0 4px 24px -8px rgba(0, 0, 0, 0.08);
  padding-top: clamp(8px, 1vw, 12px);
  padding-bottom: clamp(8px, 1vw, 12px);
}

.header__logo {
  font-family: var(--ui);
  font-size: clamp(14px, 1vw, 16px);
  letter-spacing: -.02em;
  font-weight: 600;
  background: linear-gradient(90deg, var(--ink), var(--mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform .2s;
}

.header__logo:hover {
  transform: scale(1.03);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.5vw, 6px);
}

/* Modern pill nav */
.header__nav a,
.lang-switch {
  font-family: var(--ui);
  font-size: clamp(13px, .88vw, 14px);
  letter-spacing: -.01em;
  font-weight: 500;
  color: var(--mid);
  position: relative;
  padding: .4em .8em;
  border-radius: 100px;
  transition: color .2s, background-color .2s, transform .2s;
}

.header__nav a::before, .header__nav a::after { display: none; }

.header__nav a:hover,
.header__nav a[aria-current],
.lang-switch:hover {
  color: var(--ink);
  background-color: color-mix(in srgb, var(--ink) 6%, transparent);
}

.header__nav a:active {
  transform: scale(0.96);
}

/* status pill removed */

/* ── Hero ── */
.hero {
  height: 100svh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(80px, 9vw, 120px) clamp(20px, 2.5vw, 36px) clamp(20px, var(--pad), 32px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero__title {
  font-variation-settings: var(--fv-med);
  font-size: clamp(56px, 11.5vw, 148px);
  line-height: .98;
  letter-spacing: var(--ls);
  max-width: 18ch;
  margin-top: auto;
  margin-bottom: clamp(28px, 4vw, 52px);
}

/* Text reveal: each line wraps in overflow:hidden */
.reveal-wrap {
  display: block;
  overflow: hidden;
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.hero__sub {
  font-family: var(--mono);
  font-size: clamp(12px, .95vw, 14px);
  color: var(--mid);
  max-width: 40ch;
  line-height: 1.75;
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: clamp(10px, .75vw, 12px);
  color: var(--faint);
  white-space: nowrap;
  flex-shrink: 0;
}

.hero__scroll-line {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--line);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 1;
    transform: scaleX(1);
  }

  50% {
    opacity: .4;
    transform: scaleX(.6);
  }
}

/* ── Marquee ── */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: clamp(12px, 1.2vw, 18px) 0;
  background: var(--ivory);
  flex-shrink: 0;
}

.marquee__track {
  display: flex;
  white-space: nowrap;
  animation: marqueeRoll 22s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  font-family: var(--mono);
  font-size: clamp(10px, .8vw, 12px);
  color: var(--mid);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 0 clamp(24px, 3vw, 48px);
  display: inline-flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
}

.marquee__sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--line);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes marqueeRoll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ── Section ── */
.section {
  display: grid;
  grid-template-columns: clamp(44px, 6vw, 80px) 1fr auto;
  align-items: start;
  column-gap: clamp(16px, 2vw, 32px);
  padding: clamp(28px, 4vw, 60px) clamp(20px, 2.5vw, 36px);
  border-bottom: 1px solid var(--line);
  position: relative;
}

/* animated border line from left */
.section::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--ink);
  transition: width .8s cubic-bezier(.25, .46, .45, .94);
}

.section.is-inview::after {
  width: 100%;
}

.section__num {
  font-family: var(--mono);
  font-size: clamp(11px, .8vw, 12px);
  color: var(--faint);
  padding-top: .3em;
}

.section__label {
  font-family: var(--mono);
  font-size: clamp(10px, .75vw, 12px);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--faint);
  margin-bottom: clamp(10px, 1.2vw, 18px);
}

.section__title {
  font-variation-settings: var(--fv-med);
  font-size: clamp(30px, 5.5vw, 80px);
  line-height: 1.0;
  letter-spacing: var(--ls);
  margin-bottom: clamp(12px, 1.5vw, 22px);
}

.section__title a {
  position: relative;
  display: inline;
}

.section__title a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -.06em;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width .45s cubic-bezier(.25, .46, .45, .94);
}

.section__title a:hover::after {
  width: 100%;
}

.section__desc {
  font-size: clamp(13px, 1.05vw, 15px);
  color: var(--mid);
  max-width: 42ch;
  line-height: 1.65;
}

.section__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: clamp(10px, .78vw, 12px);
  letter-spacing: .04em;
  color: var(--faint);
  align-self: center;
  white-space: nowrap;
  transition: color .2s;
}

.section__cta:hover {
  color: var(--ink);
}

.section__cta-line {
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: width .3s;
}

.section__cta-line::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.section__cta:hover .section__cta-line {
  width: 42px;
}

/* ── Services grid ── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(20px, 2.5vw, 36px);
}

.service-item {
  padding: clamp(16px, 2vw, 28px) 0;
  border-top: 1px solid var(--line);
  transition: background .2s;
}

.service-item:nth-child(odd) {
  padding-right: clamp(16px, 2vw, 28px);
}

.service-item:nth-child(even) {
  padding-left: clamp(16px, 2vw, 28px);
  border-left: 1px solid var(--line);
}

.service-item__title {
  font-variation-settings: var(--fv-med);
  font-size: clamp(14px, 1.2vw, 18px);
  margin-bottom: .5em;
  transition: letter-spacing .3s;
}

.service-item:hover .service-item__title {
  letter-spacing: .01em;
}

.service-item__desc {
  font-size: clamp(12px, .95vw, 14px);
  color: var(--mid);
  line-height: 1.6;
}

/* ── Tags ── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(16px, 2vw, 28px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(11px, .8vw, 13px);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: .42em 1em;
  border-radius: 100px;
  transition: background .25s, border-color .25s, color .25s, transform .2s;
}

.tag:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--creme);
  transform: translateY(-2px);
}

/* ── Footer ── */
footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: clamp(40px, 5.5vw, 80px) clamp(20px, 2.5vw, 36px) clamp(20px, 2vw, 32px);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px, 3vw, 56px);
  margin-bottom: clamp(40px, 5vw, 72px);
}

.footer__brand {
  font-variation-settings: var(--fv-med);
  font-size: clamp(26px, 4vw, 60px);
  line-height: .93;
  letter-spacing: var(--ls);
  margin-bottom: clamp(14px, 1.8vw, 24px);
}

.footer__tagline {
  font-size: clamp(12px, .95vw, 14px);
  color: var(--mid);
  max-width: 34ch;
  line-height: 1.65;
}

.footer__col-title {
  font-family: var(--mono);
  font-size: clamp(10px, .75vw, 12px);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--faint);
  margin-bottom: clamp(12px, 1.5vw, 20px);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, .9vw, 14px);
}

.footer__links a {
  font-size: clamp(13px, 1.05vw, 15px);
  color: var(--mid);
  transition: color .2s, transform .2s;
  display: inline-block;
}

.footer__links a:hover {
  color: var(--ink);
  transform: translateX(4px);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: clamp(14px, 1.8vw, 24px);
}

.footer__copy {
  font-family: var(--mono);
  font-size: clamp(10px, .75vw, 12px);
  color: var(--faint);
}

.footer__legal {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
}

.footer__legal a {
  font-size: clamp(11px, .8vw, 13px);
  color: var(--faint);
  transition: color .2s;
}

.footer__legal a:hover {
  color: var(--ink);
}

/* ── Static pages ── */
.page-hero {
  padding: clamp(100px, 12vw, 160px) clamp(20px, 2.5vw, 36px) clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero__label {
  font-size: clamp(11px, .8vw, 13px);
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: clamp(12px, 1.5vw, 20px);
}

.page-hero__title {
  font-variation-settings: var(--fv-med);
  font-size: clamp(48px, 10vw, 132px);
  line-height: .96;
  letter-spacing: var(--ls);
}

.page-content {
  padding: clamp(40px, 5vw, 72px) clamp(20px, 2.5vw, 36px);
  max-width: 780px;
}

.page-content h2 {
  font-variation-settings: var(--fv-med);
  font-size: clamp(16px, 1.4vw, 22px);
  letter-spacing: var(--ls);
  margin: clamp(32px, 4vw, 56px) 0 clamp(10px, 1vw, 16px);
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p {
  font-size: clamp(13px, 1.05vw, 15px);
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: clamp(10px, 1vw, 16px);
}

.page-content a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: border-color .2s;
}

.page-content a:hover {
  border-color: var(--ink);
}

.page-content address {
  font-style: normal;
  font-size: clamp(13px, 1.05vw, 15px);
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: clamp(10px, 1vw, 16px);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .section {
    grid-template-columns: clamp(40px, 5vw, 56px) 1fr;
  }

  .section__cta {
    display: none;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-item:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }

  .service-item {
    padding-right: 0 !important;
  }
}

@media (max-width: 560px) {
  .hero__title {
    font-size: clamp(44px, 13vw, 68px);
  }

  .section {
    grid-template-columns: 1fr;
  }

  .section__num {
    display: none;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: .75rem;
    align-items: flex-start;
  }

  .hero__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
/* ══════════════════════════════════════════════
   INNER CIRCLE (inner-circle.html)
══════════════════════════════════════════════ */

/* Login View */
.inner-login {
  min-height: 80svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 60px);
}

.inner-login-box {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.inner-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
}

.inner-input-group input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.8rem 1rem;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.inner-input-group input:focus {
  border-color: var(--ink);
}

.inner-input-group button {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 1.2rem;
  font-family: var(--font);
  font-variation-settings: var(--fv-med);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.inner-input-group button:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.inner-error {
  color: #ff4a4a;
  font-size: 12px;
  font-family: var(--mono);
  opacity: 0;
  transition: opacity 0.2s;
  height: 16px;
}

/* Content View */
.inner-content {
  display: none; /* hidden until authenticated */
  padding: clamp(60px, 8vw, 120px) clamp(20px, 4vw, 40px) clamp(80px, 10vw, 140px);
  max-width: 680px;
  margin: 0 auto;
}

.inner-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 60px);
}

.inner-card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inner-card {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(20px, 2.5vw, 28px);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: background 0.2s, border-color 0.2s;
}

.inner-card:hover {
  background: var(--ivory);
  border-color: var(--mid);
}

.inner-card__icon {
  font-size: 20px;
  line-height: 1;
  margin-top: 2px;
}

.inner-card__content h3 {
  font-variation-settings: var(--fv-med);
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 6px;
}

.inner-card__content p {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.5;
}

.inner-video-card {
  margin-top: 32px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.inner-video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.inner-play-btn {
  width: 60px;
  height: 60px;
  background: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
  cursor: pointer;
}

.inner-video-placeholder:hover .inner-play-btn {
  transform: scale(1.05);
}

.inner-play-icon {
  width: 0; 
  height: 0; 
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--bg);
  margin-left: 4px; /* optical center */
}

.inner-video-info {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.2s;
}

.inner-video-info:hover {
  background: var(--ivory);
}

.inner-video-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inner-video-meta img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  opacity: 0.8;
}

.inner-video-meta div h4 {
  font-variation-settings: var(--fv-med);
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}

.inner-video-meta div p {
  font-size: 12px;
  color: var(--mid);
}

.inner-video-arrow {
  color: var(--faint);
  font-size: 16px;
  transition: transform 0.2s, color 0.2s;
}

.inner-video-info:hover .inner-video-arrow {
  transform: translateX(4px);
  color: var(--ink);
}
