/* ===========================================================
   PATRA — Custom CSS
   =========================================================== */

:root {
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --vnav-w: 80px;
  --ink: #0A0E1F;
  --ink-2: #161B33;
  --paper: #F5F4EF;
  --paper-2: #ECEAE2;
  --lime: #D4FF3D;
  --rust: #E55B2B;
  --line: rgba(10,14,31,0.08);
  --line-2: rgba(10,14,31,0.14);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-feature-settings: 'ss01' 1, 'cv11' 1; padding-right: var(--vnav-w); }
@media (max-width: 1023px) { body { padding-right: 0; } }

.serif {
  font-family: ui-serif, Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* ===========================================================
   NOISE GRAIN
   =========================================================== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ===========================================================
   MOBILE BRAND + TOGGLE
   =========================================================== */
.mobile-brand {
  position: fixed;
  top: 24px; left: 24px;
  z-index: 65;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.mobile-toggle {
  position: fixed;
  top: 24px; right: 24px;
  z-index: 65;
  width: 44px; height: 44px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: #0A0E1F;
  border-radius: 50%;
}
.mobile-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: #F5F4EF;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
  position: absolute;
  left: 50%; margin-left: -9px;
}
.mobile-toggle span:nth-child(1) { top: 15px; }
.mobile-toggle span:nth-child(2) { top: 22px; }
.mobile-toggle.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.mobile-toggle.is-open span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* ===========================================================
   RIGHT VERTICAL NAV
   =========================================================== */
#vnav {
  position: fixed;
  top: 0; right: 0;
  width: var(--vnav-w);
  height: 100dvh;
  background: var(--ink);
  z-index: 65;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 28px;
  border-left: 1px solid rgba(245,244,239,0.05);
}
.vnav__toggle {
  width: 44px; height: 44px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: #F5F4EF;
  margin-top: 4px;
}
.vnav__toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: #F5F4EF;
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.vnav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.vnav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.vnav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.vnav__spacer { flex: 1; }
.vnav__lang {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}
.vnav__lang-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(245,244,239,0.5);
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px;
  transition: color 0.25s var(--ease);
}
.vnav__lang-item:hover { color: rgba(245,244,239,0.9); }
.vnav__lang-item.is-active { color: #F5F4EF; }
.vnav__flag {
  width: 24px; height: 24px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 1.5px solid rgba(245,244,239,0.35);
  display: block;
}
.vnav__lang-item.is-active .vnav__flag { border-color: #F5F4EF; }
.vnav__logo {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  font-size: 26px;
  transition: transform 0.4s var(--ease);
}
.vnav__logo--rust { background: var(--rust); color: #F5F4EF; }
.vnav__logo:hover { transform: rotate(18deg) scale(1.05); }

/* ===========================================================
   SIDE MENU OVERLAY
   =========================================================== */
#sideMenu {
  position: fixed;
  inset: 0;
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s 0.4s;
}
#sideMenu.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.4s var(--ease), visibility 0s 0s;
}
.sidemenu__backdrop {
  position: absolute; inset: 0;
  background: rgba(10,14,31,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
.sidemenu__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 720px;
  max-width: 100%;
  background: var(--ink);
  padding: 100px 80px 60px 80px;
  color: #F5F4EF;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
#sideMenu.is-open .sidemenu__panel { transform: translateX(0); }
.sidemenu__close {
  position: absolute;
  top: 30px; right: 30px;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #F5F4EF;
  transition: transform 0.3s var(--ease);
}
.sidemenu__close:hover { transform: rotate(90deg); }
.sidemenu__search {
  position: relative;
  margin-bottom: 60px;
  max-width: 280px;
}
.sidemenu__search input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(245,244,239,0.4);
  color: #F5F4EF;
  padding: 10px 0;
  font-size: 15px;
  outline: none;
  font-family: 'Geist', sans-serif;
}
.sidemenu__search input::placeholder { color: rgba(245,244,239,0.45); }
.sidemenu__nav { display: flex; flex-direction: column; gap: 18px; }
.sidemenu__link {
  font-family: 'Geist', sans-serif;
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: rgba(245,244,239,0.32);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
  display: inline-block;
  width: fit-content;
}
.sidemenu__link:hover { color: rgba(245,244,239,0.7); transform: translateX(8px); }
.sidemenu__link.is-active { color: #F5F4EF; }
.sidemenu__bottom {
  margin-top: auto;
  padding-top: 60px;
  border-top: 1px solid rgba(245,244,239,0.1);
}

/* ===========================================================
   PILL BUTTONS
   =========================================================== */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}
.hero__bg-img,
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 80% center;
  filter: saturate(0.85) contrast(1.05) brightness(0.95);
  transform: scale(1.04);
  animation: heroBreath 16s var(--ease) infinite alternate;
}
/* ===========================================================
   HERO
   =========================================================== */
.hero { position: relative; }
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__bg-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: 80% center;
  filter: saturate(0.85) contrast(1.05) brightness(0.95);
  transform: scale(1.04);
  animation: heroBreath 16s var(--ease) infinite alternate;
}
@keyframes heroBreath {
  from { transform: scale(1.04) translateY(0); }
  to   { transform: scale(1.08) translateY(-12px); }
}
.hero__bg-veil {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(245,244,239,1) 0%, rgba(245,244,239,0.92) 40%, rgba(245,244,239,0.45) 72%, rgba(245,244,239,0.1) 100%),
    linear-gradient(180deg, rgba(245,244,239,0.4) 0%, rgba(245,244,239,0) 30%);
  pointer-events: none;
}
.hero__grid-overlay {
  position: absolute; inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(to right, rgba(10,14,31,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,14,31,0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
  pointer-events: none;
}
.marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, #0A0E1F, transparent); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, #0A0E1F, transparent); }
.marquee__track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  padding: 4px 0;
  will-change: transform;
  animation: marquee 65s linear infinite;
}
.marquee__track.is-paused { animation-play-state: paused; }
.marquee__label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,244,239,0.55);
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee__logo {
  font-family: 'Geist', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #F5F4EF;
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee__logo-img {
  height: 36px;
  width: auto;
  max-width: none;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  flex-shrink: 0;
  transition: opacity 0.3s var(--ease);
}
.marquee__logo-img:hover { opacity: 1; }
.marquee__sep {
  color: var(--lime);
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ===========================================================
   BENTO
   =========================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 18px;
}
.bento__tile {
  position: relative;
  padding: 32px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  transition: transform 0.5s var(--ease);
}
.bento__tile:hover { transform: translateY(-4px); }
.bento__tile--lg { grid-column: span 4; grid-row: span 2; }
.bento__tile--md { grid-column: span 3; grid-row: span 2; }
.bento__tile--sm { grid-column: span 2; grid-row: span 1; }
.bento__icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--rust);
  color: #F5F4EF;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
}
.bento__icon--rust { background: #F5F4EF; color: var(--ink); }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__tile--lg, .bento__tile--md { grid-column: span 2; grid-row: auto; }
  .bento__tile--sm { grid-column: span 1; }
}

/* ===========================================================
   SECTOR LIST
   =========================================================== */
.sector-list {
  position: relative;
  border-top: 1px solid rgba(10,14,31,0.14);
}
.sector {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr 320px 120px;
  align-items: center;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(10,14,31,0.14);
  cursor: pointer;
  transition: padding 0.4s var(--ease);
  z-index: 2;
}
.sector:hover { padding-left: 16px; }
.sector:hover .sector__name { color: var(--ink); transform: translateX(8px); }
.sector:hover .sector__cta { color: var(--ink); opacity: 1; }
.sector__index {
  font-size: 13px;
  color: rgba(10,14,31,0.4);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.4s var(--ease);
}
.sector:hover .sector__index { color: var(--lime); background: var(--ink); padding: 2px 6px; border-radius: 2px; }
.sector__name {
  font-family: 'Geist', sans-serif;
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--ink);
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}
.sector__meta {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10,14,31,0.5);
  transition: color 0.4s var(--ease);
}
.sector:hover .sector__meta { color: var(--ink); }
.sector__cta {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: right;
  color: rgba(10,14,31,0.4);
  opacity: 0;
  transition: opacity 0.4s var(--ease), color 0.4s var(--ease);
}
.sector:hover .sector__cta { opacity: 1; }
.sector__image {
  position: absolute;
  top: 0; right: 0;
  width: 380px; height: 260px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  z-index: 1;
  box-shadow: 0 24px 60px rgba(10,14,31,0.18);
}
.sector__image.is-on { opacity: 1; transform: translateY(0); }
@media (max-width: 900px) {
  .sector { grid-template-columns: 50px 1fr; gap: 16px; }
  .sector__meta, .sector__cta { display: none; }
  .sector__image { display: none; }
}

/* ===========================================================
   SUSTAINABILITY PARALLAX
   =========================================================== */
.sustain__bg {
  position: absolute;
  inset: -10% 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
  filter: saturate(0.9) brightness(0.6);
}
@media (max-width: 768px) { .sustain__bg { background-attachment: scroll; } }
.sustain__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,14,31,0.5) 0%, rgba(10,14,31,0.85) 100%);
  z-index: 0;
}

/* ===========================================================
   SOCIAL CHIPS
   =========================================================== */
.social-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(245,244,239,0.08);
  color: #F5F4EF;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.social-chip:hover { background: var(--lime); color: var(--ink); }

/* ===========================================================
   REVEAL
   =========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===========================================================
   MAGNETIC
   =========================================================== */
.magnetic { will-change: transform; transition: transform 0.3s var(--ease); }

/* ===========================================================
   REDUCED MOTION
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .sustain__bg { background-attachment: scroll; }
  .hero__bg-img { animation: none; }
  .marquee__track { animation: none; }
}
