/* ideAs Productions — one pager */
:root {
  --bg: #EEF1F4;
  --bg-alt: #F6F7F9;
  --ink: #0E1116;
  --ink-soft: #2A2F38;
  --muted: #6B7280;
  --line: rgba(14, 17, 22, 0.12);
  --line-soft: rgba(14, 17, 22, 0.06);
  --cobalt: #5C6B86;
  --cobalt-deep: #3E4A63;
  --cream: #E8E1CE;
  --accent: var(--cobalt);
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body { overflow-x: hidden; }

::selection { background: var(--ink); color: var(--bg); }

.mono {
  font-family: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

.display {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.92;
  font-stretch: 100%;
}

/* Layout */
.page {
  position: relative;
  min-height: 100vh;
  padding: 0 clamp(20px, 4vw, 56px);
}

.section {
  position: relative;
  padding-top: 120px;
  padding-bottom: 120px;
  border-top: 1px solid var(--line);
}

.section:first-of-type { border-top: 0; }

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(238, 241, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  pointer-events: none;
  /* hidden by default — JS adds .nav-visible after scroll */
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.nav.nav-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav > * { pointer-events: auto; }
.nav .brand {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.nav .brand i {
  font-style: normal;
  color: var(--cobalt);
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}
.nav-links a:hover {
  opacity: 1;
}

.lang-toggle {
  display: flex;
  gap: 0;
  align-items: center;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
}
.lang-toggle button {
  background: none;
  border: none;
  color: var(--ink);
  padding: 4px 8px;
  cursor: pointer;
  font: inherit;
  opacity: 0.4;
  text-transform: none;
}
.lang-toggle button.active { opacity: 1; }
.lang-toggle .sep { opacity: 0.2; }

/* Hero — dark cinematic zone */
.hero {
  padding-top: 0;
  padding-bottom: 0;
  display: block;
  background: var(--ink);
  margin: 0 calc(-1 * clamp(20px, 4vw, 56px));
}

.hero-dark-bottom {
  padding: 36px clamp(20px, 4vw, 56px) 64px;
  background: linear-gradient(to bottom, var(--ink) 0%, var(--ink) 60%, var(--bg) 100%);
}
.hero-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) brightness(0.95) contrast(1.05);
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}
.hero-corners {
  position: absolute;
  inset: 16px;
  pointer-events: none;
  z-index: 2;
}
.hero-corners > div {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255,255,255,0.55);
}
.hero-corners .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hero-corners .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hero-corners .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hero-corners .br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.hero-meta {
  position: absolute;
  z-index: 3;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.hero-meta.tl { top: 28px; left: 28px; }
.hero-meta.tr { top: 28px; right: 28px; text-align: right; }
.hero-meta.bl { bottom: 28px; left: 28px; }
.hero-meta.br { bottom: 28px; right: 28px; text-align: right; }
.hero-meta .blink {
  display: inline-block;
  width: 6px; height: 6px;
  background: #e63946;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%, 60% { opacity: 1; } 70%, 100% { opacity: 0.2; } }

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 32px;
}

.hero-headline {
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin: 0;
  color: rgba(255,255,255,0.82);
  display: block;
  width: 100%;
}

.hero-headline .a-mark {
  display: inline-block;
  position: relative;
}
.hero-headline .a-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.18em;
  width: 0.18em;
  height: 0.18em;
  border-radius: 50%;
  background: var(--cream);
  transform: translateX(-50%);
}
.hero-headline .a-tri {
  color: var(--cobalt);
}

.hero-subline {
  max-width: 420px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(16px, 2vw, 32px);
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  color: rgba(255,255,255,0.55);
  text-transform: none;
  font-variant: normal;
}

.hero-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  text-align: right;
}

/* Marquee */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  margin: 0 calc(-1 * clamp(20px, 4vw, 56px));
}
.marquee-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track span {
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marquee-track span::after {
  content: "✦";
  font-size: 0.5em;
  color: var(--cobalt);
  display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Manifesto */
.manifesto-body {
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 400;
  max-width: 22ch;
  text-wrap: pretty;
}
.manifesto-body em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.manifesto-body .quiet { color: var(--muted); }

.manifesto-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.manifesto-meta .item .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}
.manifesto-meta .item h4 {
  font-size: clamp(24px, 2.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.manifesto-meta .item p {
  font-size: clamp(16px, 1.6vw, 24px);
  line-height: 1.5;
  color: var(--ink-soft);
}


/* Works */
.works-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 28px;
}
.gallery-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 20px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
}
.gallery-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateX(-101%);
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
  z-index: 0;
}
.gallery-btn:hover::before { transform: translateX(0); }
.gallery-btn:hover { color: var(--bg); border-color: var(--ink); }
.gallery-btn-cube {
  position: relative; z-index: 1; display: flex; align-items: center;
  animation: cube-spin 4s ease-in-out infinite;
}
.gallery-btn-text { position: relative; z-index: 1; }
@keyframes cube-spin {
  0%,100% { transform: rotate(0deg) scale(1); }
  25%      { transform: rotate(14deg) scale(1.12); }
  75%      { transform: rotate(-14deg) scale(1.12); }
}

.works {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.work {
  position: relative;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}
.work .frame {
  position: relative;
  width: 100%;
  background: #d8dde6;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.work .frame img,
.work .frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work .frame .placeholder {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(14,17,22,0.04) 0 1px,
    transparent 1px 8px
  );
}
.work .frame .placeholder::after {
  content: attr(data-type);
  position: absolute;
  bottom: 14px; left: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.work .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.work:hover .frame::after { opacity: 0.04; }
.work .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  gap: 16px;
}
.work .meta h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.work .meta .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.work .index {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.85);
  z-index: 2;
}

/* asymmetric work spans */
.work.w-1 { grid-column: 1 / span 7; }
.work.w-1 .frame { aspect-ratio: 572/1024; }
.work.w-2 { grid-column: 9 / span 4; align-self: end; }
.work.w-2 .frame { aspect-ratio: 4032/2268; }
.work.w-3 { grid-column: 1 / span 4; }
.work.w-3 .frame { aspect-ratio: 1280/720; }
.work.w-4 { grid-column: 6 / span 7; }
.work.w-4 .frame { aspect-ratio: 1600/738; }
.work.w-5 { grid-column: 3 / span 5; }
.work.w-5 .frame { aspect-ratio: 720/1280; }
.work.w-6 { grid-column: 9 / span 4; align-self: start; margin-top: 80px; }
.work.w-6 .frame { aspect-ratio: 572/1024; }

/* Locations */
.locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
}
.locations:has(.loc:only-child) {
  grid-template-columns: 1fr;
  max-width: min(720px, 50%);
  margin-inline: auto;
}
.loc {
  padding: 48px;
  position: relative;
  border-right: 1px solid var(--line);
  min-height: 480px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 32px;
}
.loc:last-child { border-right: 0; }
.loc-header { display: flex; justify-content: space-between; align-items: start; }
.loc-name { font-size: clamp(32px, 4vw, 56px); font-weight: 500; letter-spacing: -0.04em; line-height: 0.95; }
.loc-name small {
  display: block;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 12px;
  font-weight: 400;
}
.loc-coord {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-align: right;
  line-height: 1.7;
}

.loc-map-leaflet {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--bg-alt);
  overflow: hidden;
  filter: grayscale(100%) contrast(1.08) brightness(1.04);
}
.leaflet-container { background: var(--bg-alt) !important; }

.map-marker {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.map-label {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #3E4A63;
  text-shadow: 0 0 10px rgba(238,241,244,1), 0 0 6px rgba(238,241,244,1);
}

.map-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5C6B86;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.map-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5C6B86;
  flex-shrink: 0;
  opacity: 0.6;
  position: absolute;
  animation: map-pulse 2.4s ease-out infinite;
}
@keyframes map-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(5);   opacity: 0; }
}

.loc-foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}
.loc-foot p {
  font-size: clamp(16px, 1.8vw, 28px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 28ch;
}
.loc-foot .role {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(14px, 1.4vw, 20px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  padding-bottom: 48px;
}
.contact-headline {
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 400;
}
.contact-headline em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.contact-headline a {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.05em;
}
.contact-headline a:hover { color: var(--cobalt-deep); border-color: var(--cobalt-deep); }

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-info a {
  font-size: clamp(18px, 2vw, 28px);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  width: fit-content;
  transition: border-color 0.2s ease;
}
.contact-info a:hover { border-color: var(--ink); }
.contact-info .tel {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(14px, 1.6vw, 22px);
  color: var(--muted);
  letter-spacing: 0.08em;
}
.contact-socials {
  display: flex;
  gap: 20px;
  align-items: center;
  padding-top: 8px;
}
.contact-socials a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}
.contact-socials a:hover { color: var(--ink); }
.contact-socials svg {
  width: 44px;
  height: 44px;
  fill: currentColor;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer .brand-mini { color: var(--ink); font-weight: 500; }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--rd, 0s);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

.split-line {
  display: block;
  overflow: hidden;
  width: 100%;
  white-space: nowrap;
}
.split-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--rd, 0s);
}
.split-line.in > span { transform: translateY(0); }

@media (max-width: 880px) {
  .manifesto-meta { grid-template-columns: 1fr; gap: 24px; }
  .works { grid-template-columns: repeat(6, 1fr); }
  .work.w-1, .work.w-2, .work.w-3, .work.w-4, .work.w-5, .work.w-6 {
    grid-column: 1 / -1;
    margin-top: 0;
  }
  .locations { grid-template-columns: 1fr; }
  .loc { border-right: 0; border-bottom: 1px solid var(--line); }
  .loc:last-child { border-bottom: 0; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .hero-bottom { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
