/* ═══════════════════════════════════════════════════
   STEN VENTURE CAPITAL — Institutional Website
   Font: Josefin Sans (matches logo identity)
   Primary: #213D4D | Accent: #C9A96E
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300&display=swap');

/* ── VARIABLES ── */
:root {
  --sten-deep: #213D4D;
  --sten-primary: #2B6B7F;
  --sten-light: #3A8DA5;
  --sten-accent: #C9A96E;
  --sten-gold: #D4B87A;
  --sten-cream: #F5F0E8;
  --sten-white: #FAFAFA;
  --sten-dark: #182E38;
  --font: 'Josefin Sans', 'Helvetica Neue', Arial, sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font);
  font-weight: 300;
  background: #131f26;
  color: var(--sten-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── MAX-WIDTH WRAPPER ── */
.site-wrapper {
  max-width: 1600px;
  margin: 0 auto;
  background: var(--sten-deep);
  position: relative;
  box-shadow: 0 0 80px rgba(0,0,0,0.4);
}

/* ══════════════════════════════════════════════════
   NAVIGATION — previous sizes
   ══════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1600px;
  z-index: 1000;
  padding: 30px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

nav.scrolled {
  background: rgba(33, 61, 77, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 18px 60px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.1);
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
  align-items: center;
}

.nav-logo-picto {
  display: none;
  width: 32px;
  height: 32px;
}

.nav-logo-main {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 10px;
  color: #fff;
  padding-right: 10px;
}

.nav-logo-sub {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 4.5px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  padding-right: 4.5px;
}

.nav-links {
  display: flex;
  gap: 48px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 1px;
  background: var(--sten-accent);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

/* ══════════════════════════════════════════════════
   HERO — new (bigger) sizes
   ══════════════════════════════════════════════════ */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--sten-deep);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-canvas canvas { width: 100%; height: 100%; }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 35%, rgba(43, 107, 127, 0.18), transparent 55%),
    radial-gradient(ellipse at 75% 65%, rgba(201, 169, 110, 0.07), transparent 50%);
  z-index: 2;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to top, var(--sten-deep), transparent);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  pointer-events: none;
}

.hero-logo-main {
  font-size: 96px;
  font-weight: 200;
  letter-spacing: 28px;
  color: #fff;
  margin-bottom: 8px;
  animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.hero-logo-sub {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 14px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 52px;
  animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.hero-tagline {
  font-size: 20px;
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.55);
  letter-spacing: 4px;
  animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
}

.typing-cursor {
  display: inline;
  color: var(--sten-accent);
  font-weight: 200;
  font-style: normal;
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-scroll-cta {
  position: absolute;
  bottom: 50px;
  left: 0; right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1.2s both;
}

.hero-scroll-cta span {
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
}

.scroll-line {
  width: 1px; height: 40px;
  background: var(--sten-accent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero-keywords {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.floating-word {
  position: absolute;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.09);
  white-space: nowrap;
  animation: floatWord linear infinite;
}

/* ── KEYFRAMES ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes floatWord {
  0% { transform: translateX(-120px); opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translateX(calc(100vw + 120px)); opacity: 0; }
}

/* ══════════════════════════════════════════════════
   SECTIONS — BASE (previous sizes by default)
   ══════════════════════════════════════════════════ */
.section {
  padding: 105px 80px;
  position: relative;
}

.section-label {
  font-size: 11px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--sten-accent);
  font-weight: 400;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-title {
  font-size: 48px;
  font-weight: 200;
  line-height: 1.25;
  margin-bottom: 36px;
  color: #fff;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.section-body {
  font-size: 17px;
  line-height: 1.9;
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  max-width: 600px;
  letter-spacing: 0.3px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.visible .section-label,
.visible .section-title,
.visible .section-body {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════
   PRESENCE — all previous sizes
   ══════════════════════════════════════════════════ */
.presence {
  background: var(--sten-deep);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  min-height: 80vh;
}

.presence-text {
  padding: 105px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Presence uses base section sizes (previous) — no overrides needed */

.presence-visual {
  display: flex;
  flex-direction: column;
}

.presence-card {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 40px;
}

.presence-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.85);
  transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.presence-card:hover img {
  filter: brightness(0.6) saturate(1);
  transform: scale(1.04);
}

.presence-card-content { position: relative; z-index: 2; }

.presence-card-city {
  font-size: 30px;
  font-weight: 200;
  letter-spacing: 3px;
  margin-bottom: 4px;
  color: #fff;
}

.presence-card-region {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sten-accent);
  font-weight: 400;
}

.presence-stats {
  display: flex;
  gap: 60px;
  margin-top: 60px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.45s;
}

.visible .presence-stats { opacity: 1; transform: translateY(0); }

.stat-number {
  font-size: 46px;
  font-weight: 200;
  color: var(--sten-accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
}

/* ══════════════════════════════════════════════════
   PHILOSOPHY — mixed sizes
   ══════════════════════════════════════════════════ */
.philosophy {
  background: var(--sten-cream);
  color: var(--sten-deep);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
}

/* "Our Philosophy" label → new size */
.philosophy .section-label {
  font-size: 13px;
}

/* "Conviction-driven capital..." title → previous size */
.philosophy .section-title {
  color: var(--sten-deep);
  max-width: 780px;
  font-size: 44px;
}

/* Body text → new size */
.philosophy .section-body {
  color: rgba(33, 61, 77, 0.65);
  max-width: 660px;
  text-align: center;
  font-size: 19px;
}

.philosophy-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-top: 70px;
  max-width: 940px;
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.45s;
}

.visible .philosophy-pillars { opacity: 1; transform: translateY(0); }

.pillar { text-align: center; }

.pillar-icon {
  width: 48px; height: 48px;
  border: 1px solid rgba(43, 107, 127, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 16px;
  font-weight: 300;
  color: var(--sten-primary);
  letter-spacing: 1px;
}

/* Pillar headings → previous size */
.pillar h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--sten-deep);
  margin-bottom: 14px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

/* Pillar body text → new size */
.pillar p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(33, 61, 77, 0.6);
  font-weight: 300;
}

/* ══════════════════════════════════════════════════
   PORTFOLIO — mixed sizes
   ══════════════════════════════════════════════════ */
.portfolio {
  background: var(--sten-deep);
  padding: 105px 0;
}

.portfolio-header { padding: 0 80px; margin-bottom: 80px; }

/* "Portfolio" label → new size */
.portfolio .section-label {
  font-size: 13px;
}

/* "Companies we believe in" → previous size */
.portfolio .section-title {
  font-size: 48px;
}

/* ── SPOTLIGHT (Rotating Featured) ── */
.portfolio-spotlight {
  position: relative;
  min-height: 440px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

.spotlight-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.spotlight-slide.active { opacity: 1; pointer-events: auto; }

.spotlight-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(43, 107, 127, 0.1), rgba(33, 61, 77, 0.4));
}

.spotlight-bg-text {
  position: absolute;
  font-size: 140px;
  font-weight: 100;
  color: rgba(255,255,255,0.035);
  letter-spacing: 12px;
  text-transform: uppercase;
  white-space: nowrap;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.spotlight-icon {
  position: relative;
  z-index: 2;
  width: 110px; height: 110px;
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 200;
  color: var(--sten-accent);
  letter-spacing: 2px;
}

.spotlight-content {
  padding: 70px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Spotlight sector/domain → new size */
.spotlight-sector {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sten-accent);
  font-weight: 400;
  margin-bottom: 18px;
}

/* Spotlight company name → previous size */
.spotlight-name {
  font-size: 40px;
  font-weight: 200;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

/* Spotlight descriptions → between old and new (17px) */
.spotlight-desc {
  font-size: 17px;
  line-height: 1.85;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  max-width: 460px;
  margin-bottom: 22px;
}

.spotlight-detail {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  max-width: 460px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
}

.spotlight-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: var(--sten-accent);
  z-index: 10;
  animation: spotlightProgress 7s linear infinite;
}

@keyframes spotlightProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

.spotlight-dots {
  position: absolute;
  bottom: 22px; right: 60px;
  z-index: 10;
  display: flex;
  gap: 10px;
}

.spotlight-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.spotlight-dot.active {
  background: var(--sten-accent);
  transform: scale(1.4);
}

/* ── PORTFOLIO GRID — previous sizes for sector/name, in-between for desc ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.portfolio-item {
  position: relative;
  padding: 52px 46px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-right: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-item:nth-child(3n) { border-right: none; }

.portfolio-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(43, 107, 127, 0.5), rgba(33, 61, 77, 0.85));
  opacity: 0;
  transition: opacity 0.5s ease;
}

.portfolio-item:hover::before { opacity: 1; }

.portfolio-item-content { position: relative; z-index: 2; }

/* Sector → previous */
.portfolio-item-sector {
  font-size: 10px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--sten-accent);
  font-weight: 400;
  margin-bottom: 16px;
  transition: color 0.4s ease;
}

.portfolio-item:hover .portfolio-item-sector { color: rgba(255,255,255,0.55); }

/* Company name → previous */
.portfolio-item-name {
  font-size: 28px;
  font-weight: 200;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 1.5px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-item:hover .portfolio-item-name { transform: translateX(6px); }

/* Description → between (15px) */
.portfolio-item-desc {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  max-width: 310px;
  transition: color 0.4s ease;
}

.portfolio-item:hover .portfolio-item-desc { color: rgba(255,255,255,0.8); }

.portfolio-item-arrow {
  position: absolute;
  top: 46px; right: 46px;
  color: rgba(255,255,255,0.15);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 3;
  line-height: 1;
}

.portfolio-item:hover .portfolio-item-arrow {
  color: var(--sten-white);
  transform: translate(3px, -3px);
}

/* ══════════════════════════════════════════════════
   COMPANY DETAIL PANEL — harmonized
   ══════════════════════════════════════════════════ */
.company-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 30, 38, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.company-panel-overlay.open { opacity: 1; pointer-events: auto; touch-action: none; }

.company-panel {
  position: fixed;
  top: 0; right: 0;
  width: 85vw;
  max-width: 1100px;
  height: 100vh;
  background: var(--sten-deep);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.company-panel.open { transform: translateX(0); }

.company-panel-close {
  position: absolute;
  top: 30px; right: 40px;
  font-size: 24px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  z-index: 10;
  background: none;
  border: none;
  font-family: var(--font);
  font-weight: 200;
  transition: color 0.3s ease;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-panel-close:hover { color: #fff; }

.company-panel-visual {
  position: relative;
  background: linear-gradient(160deg, rgba(43, 107, 127, 0.25), rgba(33, 61, 77, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.company-panel-visual-bg {
  position: absolute;
  font-size: 170px;
  font-weight: 100;
  color: rgba(255,255,255,0.035);
  letter-spacing: 14px;
  text-transform: uppercase;
  white-space: nowrap;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.company-panel-visual-icon {
  position: relative;
  z-index: 2;
  text-align: center;
}

.company-panel-visual-icon .icon-circle {
  width: 130px; height: 130px;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
  font-weight: 200;
  color: var(--sten-accent);
  letter-spacing: 2px;
}

.company-panel-visual-label {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  font-weight: 400;
}

.company-panel-info {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.company-panel-sector {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sten-accent);
  font-weight: 400;
  margin-bottom: 18px;
}

.company-panel-name {
  font-size: 42px;
  font-weight: 200;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.15;
  letter-spacing: 2px;
}

.company-panel-desc {
  font-size: 17px;
  line-height: 1.85;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  margin-bottom: 28px;
}

.company-panel-details {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
}

.company-panel-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.company-panel-detail-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
}

.company-panel-detail-value {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  font-weight: 300;
}

.company-panel-detail-text {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
}

.company-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  color: var(--sten-accent);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.3s ease;
}

.company-panel-link:hover { color: #fff; }

/* ══════════════════════════════════════════════════
   CONTACT — replaces Team section
   ══════════════════════════════════════════════════ */
.contact {
  background: var(--sten-cream);
  color: var(--sten-deep);
  padding: 105px 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.contact .section-label { font-size: 13px; }

.contact .section-title {
  color: var(--sten-deep);
  font-size: 48px;
  max-width: 700px;
}

.contact .section-body {
  color: rgba(33, 61, 77, 0.6);
  font-size: 17px;
  text-align: center;
  max-width: 580px;
}

.contact-cta {
  margin-top: 50px;
  background: none;
  border: 1px solid var(--sten-primary);
  color: var(--sten-deep);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 18px 52px;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.45s;
}

.visible .contact-cta {
  opacity: 1;
  transform: translateY(0);
}

.contact-cta:hover {
  background: var(--sten-deep);
  border-color: var(--sten-deep);
  color: #fff;
}

/* ══════════════════════════════════════════════════
   DECK FORM MODAL
   ══════════════════════════════════════════════════ */
.deck-form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 30, 38, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.deck-form-overlay.open { opacity: 1; pointer-events: auto; }

.deck-form-panel {
  position: fixed;
  top: 0; right: 0;
  width: 620px;
  max-width: 100vw;
  height: 100vh;
  background: var(--sten-cream);
  color: var(--sten-deep);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 50px 44px 60px;
}
.deck-form-panel.open { transform: translateX(0); }

.deck-form-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 20px;
  color: rgba(33, 61, 77, 0.4);
  cursor: pointer;
  background: none; border: none;
  font-family: var(--font);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.3s ease;
}
.deck-form-close:hover { color: var(--sten-deep); }

.deck-form-header { margin-bottom: 36px; }

.deck-form-label {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--sten-accent);
  font-weight: 400;
  margin-bottom: 16px;
}

.deck-form-title {
  font-size: 30px;
  font-weight: 200;
  color: var(--sten-deep);
  letter-spacing: 1px;
  line-height: 1.3;
}

.deck-form-section-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sten-primary);
  margin: 32px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(33, 61, 77, 0.1);
}

.deck-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 4px;
}

.deck-form-field {
  margin-bottom: 14px;
}

.deck-form-field label {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(33, 61, 77, 0.55);
  margin-bottom: 8px;
}

.deck-form-field input,
.deck-form-field select,
.deck-form-field textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 300;
  color: var(--sten-deep);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(33, 61, 77, 0.15);
  border-radius: 4px;
  transition: all 0.3s ease;
  outline: none;
  letter-spacing: 0.3px;
}

.deck-form-field input:focus,
.deck-form-field select:focus,
.deck-form-field textarea:focus {
  border-color: var(--sten-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(43, 107, 127, 0.08);
}

.deck-form-field input::placeholder,
.deck-form-field textarea::placeholder {
  color: rgba(33, 61, 77, 0.3);
  font-weight: 300;
}

.deck-form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23213D4D' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.deck-form-field textarea {
  resize: vertical;
  min-height: 70px;
}

/* Dropzone */
.deck-form-dropzone {
  border: 1px dashed rgba(33, 61, 77, 0.18);
  border-radius: 4px;
  padding: 16px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgba(33, 61, 77, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.deck-form-dropzone:hover,
.deck-form-dropzone.dragover {
  border-color: var(--sten-primary);
  background: rgba(43, 107, 127, 0.04);
  color: var(--sten-primary);
}

.deck-form-dropzone.has-file {
  border-color: var(--sten-accent);
  color: var(--sten-deep);
}

.deck-form-dropzone span {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.deck-form-remove-file {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  color: rgba(33, 61, 77, 0.45);
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.3s ease;
}
.deck-form-remove-file:hover { color: #c0392b; }

/* Submit button */
.deck-form-recaptcha {
  margin: 24px 0 8px;
  display: flex;
  justify-content: center;
}

.deck-form-submit {
  width: 100%;
  margin-top: 28px;
  padding: 16px 32px;
  background: var(--sten-deep);
  color: #fff;
  border: none;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.deck-form-submit:hover {
  background: var(--sten-primary);
}

.deck-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success message */
.deck-form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 80px 20px;
}

.deck-form-success.show {
  display: flex;
  min-height: 70vh;
  justify-content: center;
}

.success-checkmark {
  width: 64px;
  height: 64px;
}

.success-checkmark svg {
  width: 64px;
  height: 64px;
}

.success-circle {
  stroke: var(--sten-accent);
  stroke-width: 1.5;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: circleDraw 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.success-check {
  stroke: var(--sten-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: checkDraw 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

@keyframes circleDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}

.success-title {
  font-size: 24px;
  font-weight: 200;
  color: var(--sten-deep);
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.5s ease 1s forwards;
}

.deck-form-success span {
  font-size: 15px;
  font-weight: 300;
  color: rgba(33, 61, 77, 0.6);
  line-height: 1.7;
  letter-spacing: 0.3px;
  max-width: 380px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.5s ease 1.2s forwards;
}

/* ══════════════════════════════════════════════════
   FOOTER — new sizes + reinforced contrast
   ══════════════════════════════════════════════════ */
footer {
  background: var(--sten-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo { display: flex; flex-direction: column; gap: 3px; }

.footer-logo-main {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 7px;
  color: rgba(255,255,255,0.5);
}

.footer-logo-sub {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 5px;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.28);
  letter-spacing: 1px;
  margin-top: 18px;
  font-weight: 300;
}

.footer-info { display: flex; gap: 60px; }

.footer-location { text-align: right; }

.footer-location-city {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  margin-bottom: 3px;
  letter-spacing: 1px;
}

.footer-location-detail {
  font-size: 12px;
  color: rgba(255,255,255,0.32);
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════════
   GRAIN OVERLAY
   ══════════════════════════════════════════════════ */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}

/* ══════════════════════════════════════════════════
   STATUS BADGE
   ══════════════════════════════════════════════════ */
.company-panel-status { font-weight: 400; }
.status-active { color: #6BCB7F; }
.status-exit { color: var(--sten-accent); }

/* ══════════════════════════════════════════════════
   COMPANY IMAGES (Spotlight + Panel)
   ══════════════════════════════════════════════════ */
.spotlight-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.9);
}

.panel-visual-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.85) saturate(0.9);
}
.company-panel-visual.has-img {
  background: linear-gradient(160deg, #1a2e3a, #16252f);
}
.company-panel-visual.has-img .company-panel-visual-bg,
.company-panel-visual.has-img .company-panel-visual-icon { display: none; }

/* ══════════════════════════════════════════════════
   HIDDEN COMPANIES + VOIR PLUS
   ══════════════════════════════════════════════════ */
.portfolio-item.hidden-company { display: none; }
.portfolio-item.hidden-company.show { display: block; }

.voir-plus-wrap { display: flex; justify-content: center; padding: 50px 0 10px; }
.voir-plus-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 40px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.voir-plus-btn:hover { border-color: var(--sten-accent); color: var(--sten-accent); }
.voir-plus-wrap.hidden { display: none; }

/* ══════════════════════════════════════════════════
   HAMBURGER + MOBILE NAV
   ══════════════════════════════════════════════════ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 40px; height: 40px;
  cursor: pointer;
  background: none; border: none; padding: 4px;
  z-index: 1010;
  overflow: visible;
}
.hamburger span {
  display: block; width: 24px; height: 1px;
  background: rgba(255,255,255,0.7);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
  flex-shrink: 0;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed; inset: 0;
  background: rgba(33, 61, 77, 0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 40px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav a {
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-family: var(--font);
  font-size: 16px; font-weight: 300;
  letter-spacing: 6px; text-transform: uppercase;
  transition: color 0.3s ease;
}
.mobile-nav a:hover { color: #fff; }

/* ══════════════════════════════════════════════════
   FOOTER STRUCTURE
   ══════════════════════════════════════════════════ */
.footer-left { display: flex; flex-direction: column; }

/* ══════════════════════════════════════════════════
   RESPONSIVE — TABLET
   ══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .presence { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item:nth-child(3n) { border-right: 1px solid rgba(255,255,255,0.06); }
  .portfolio-item:nth-child(2n) { border-right: none; }
  .section { padding: 75px 40px; }
  .company-panel { width: 95vw; }
  .portfolio-header { padding: 0 40px; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── NAV: single-line logo + hamburger ── */
  nav { padding: 18px 20px; }
  nav.scrolled { padding: 14px 20px; }

  .nav-logo {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }
  .nav-logo-main {
    font-size: 18px;
    letter-spacing: 6px;
    padding-right: 0;
  }
  .nav-logo-sub {
    font-size: 8px;
    letter-spacing: 3px;
    padding-right: 0;
  }

  /* ── NAV: auto-hide on scroll down ── */
  nav.nav-hidden {
    transform: translate(-50%, -100%);
    pointer-events: none;
  }

  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }

  /* ── HERO — fits screen with Discover visible ── */
  .hero { height: 100svh; padding-bottom: 8vh; }
  .hero-logo-main { font-size: 48px; letter-spacing: 16px; padding-left: 16px; }
  .hero-logo-sub { font-size: 12px; letter-spacing: 7px; margin-bottom: 32px; padding-left: 7px; }
  .hero-tagline { font-size: 15px; letter-spacing: 2px; }
  .hero-scroll-cta { bottom: 15px; }

  /* ── SECTIONS BASE ── */
  .section { padding: 75px 28px; }
  .section-title { font-size: 32px; }
  .section-body { font-size: 15px; }

  /* ── PRESENCE: margins reduced ~30%, images full-width ── */
  .presence { grid-template-columns: 1fr; min-height: auto; padding-bottom: 0; }
  .presence-text { padding: 0; }
  .presence-visual {
    margin-left: -28px;
    margin-right: -28px;
    width: calc(100% + 56px);
  }
  .presence-card {
    min-height: 200px;
    flex: none;
    padding-left: 28px;
  }
  .presence-card-city { font-size: 19px; letter-spacing: 2px; }
  .presence-card-region { font-size: 8px; letter-spacing: 3px; }
  .presence-stats { gap: 24px; flex-wrap: wrap; margin-bottom: 42px; }
  .stat-number { font-size: 34px; }
  .stat-label { font-size: 10px; }

  /* ── PHILOSOPHY ── */
  .philosophy .section-title { font-size: 30px; }
  .philosophy .section-body { font-size: 16px; }
  .philosophy-pillars { grid-template-columns: 1fr; gap: 40px; }

  /* ── PORTFOLIO ── */
  .portfolio { padding: 75px 0; }
  .portfolio-header { padding: 0 28px; margin-bottom: 30px; }
  .portfolio .section-title { font-size: 28px; }

  /* Spotlight: full-width, touch edges */
  .portfolio-spotlight { margin: 0; }
  .spotlight-slide { grid-template-columns: 1fr; }
  .spotlight-visual { min-height: 224px; }
  .spotlight-img { object-fit: cover; filter: brightness(0.55) saturate(0.9); }
  .spotlight-content { padding: 32px 28px 48px; }
  .spotlight-sector { margin-bottom: 10px; }
  .spotlight-name { font-size: 28px; margin-bottom: 12px; }
  .spotlight-desc { font-size: 14px; }
  .spotlight-detail { display: none; }
  .spotlight-dots { right: 28px; }

  /* Grid: full-width, 1 column, touch edges */
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item {
    border-right: none !important;
    padding: 40px 24px;
  }
  .portfolio-item-name { font-size: 24px; }
  .portfolio-item-desc { font-size: 14px; }
  .portfolio-item-arrow { top: 36px; right: 24px; }

  .voir-plus-wrap { padding: 36px 0 8px; }

  /* ── COMPANY PANEL ── */
  .company-panel { grid-template-columns: 1fr; width: 100vw; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .company-panel-close { top: 12px; right: 14px; }
  .company-panel-visual { min-height: 260px; }
  .panel-visual-img { object-fit: cover; object-position: center top; }
  .company-panel-info { padding: 7px 24px 120px; }
  .company-panel-name { font-size: 30px; }
  .company-panel-desc { display: none; }

  /* ── CONTACT ── */
  .contact { padding: 75px 28px; min-height: auto; }
  .contact .section-title { font-size: 28px; }
  .contact .section-body { font-size: 15px; }
  .contact-cta { padding: 16px 40px; font-size: 12px; letter-spacing: 3px; }

  /* ── DECK FORM ── */
  .deck-form-panel { width: 100vw; padding: 40px 24px 120px; }
  .deck-form-title { font-size: 24px; }
  .deck-form-row { grid-template-columns: 1fr; gap: 0; }
  .deck-form-recaptcha { transform: scale(0.9); transform-origin: center; }

  /* ── FOOTER: logo, then offices row, then copyright ── */
  footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
    padding: 50px 28px;
  }
  .footer-left { align-items: center; order: 1; }
  .footer-left .footer-copy { display: none; }
  .footer-info { order: 2; gap: 28px; flex-wrap: wrap; justify-content: center; }
  .footer-location { text-align: center; }
  footer::after {
    content: '© 2018 – 2026 STEN Venture Capital. All rights reserved.';
    order: 3;
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.28);
    letter-spacing: 1px;
    font-weight: 300;
    font-family: var(--font);
    text-align: center;
  }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — MOBILE LANDSCAPE
   ══════════════════════════════════════════════════ */
@media (max-width: 960px) and (orientation: landscape) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .portfolio-item { border-right: 1px solid rgba(255,255,255,0.06) !important; }
  .portfolio-item:nth-child(2n) { border-right: none !important; }

  /* Spotlight: 2-col layout in landscape like portfolio grid */
  .spotlight-slide { grid-template-columns: 1fr 1fr !important; }
  .spotlight-visual { min-height: unset !important; }
  .spotlight-img { object-fit: cover !important; filter: brightness(0.55) saturate(0.9) !important; }
  .spotlight-content { padding: 28px 28px 40px !important; }
  .spotlight-detail { display: block !important; }
  .spotlight-dots { position: relative !important; bottom: auto !important; right: auto !important; margin-top: 18px; }

  /* Panel: desktop-like 2-col layout in landscape */
  .company-panel { grid-template-columns: 1fr 1fr !important; width: 100vw; }
  .company-panel-visual { min-height: unset; height: 100vh; }
  .panel-visual-img { object-fit: cover; object-position: center center; }
  .company-panel-info { padding: 32px 28px 120px; overflow-y: auto; }
  .company-panel-desc { display: block !important; }
}
