/* OFFSHORE V3 — cinematic scroll · pure black OLED */

:root {
  --black: #000000;
  --muted: #6a6b6c;
  --text-dim: #9c9c9d;
  --text: #ffffff;
  --ember: #ff6363;
  --font-display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --panel-gap: 12vh;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--black);
  color-scheme: dark;
}

body.site-v3 {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-display);
  overflow-x: hidden;
}

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

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* Wave */
.v3-wave {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s ease;
}

.v3-wave canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.v3-wave.is-visible { opacity: 0.32; }

/* Header */
.v3-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  pointer-events: none;
}

.v3-header__logo,
.v3-header__meta { pointer-events: auto; }

.v3-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text);
  text-decoration: none;
}

.v3-header__mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
}

.v3-header__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Scroll container */
.v3-scroll {
  position: relative;
  z-index: 1;
}

.v3-panel {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.v3-panel--slide {
  position: sticky;
  top: 0;
  z-index: 1;
  margin-bottom: -14vh;
  pointer-events: none;
}

.v3-panel--slide:last-of-type {
  margin-bottom: 0;
}

.v3-panel__stage {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(36px) scale(0.97);
  filter: blur(10px);
  will-change: opacity, transform, filter;
  pointer-events: auto;
}

.v3-panel--intro .v3-panel__stage {
  justify-content: center;
}

.v3-panel--gif .v3-panel__stage {
  gap: 32px;
  padding-block: var(--panel-gap);
}

.v3-panel__inner {
  width: min(92vw, 720px);
  text-align: center;
  padding: var(--panel-gap) 16px;
}

.v3-kicker {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.v3-title {
  margin: 0 0 32px;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.v3-hero-media {
  margin: 0 auto 28px;
  width: min(420px, 72vw);
  opacity: 0;
  transform: scale(0.96);
  animation: v3HeroIn 1s cubic-bezier(0.23, 1, 0.32, 1) 0.4s forwards;
}

.v3-hero-media video {
  width: 100%;
  border-radius: 50%;
  filter: contrast(1.05);
}

.v3-lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 28rem;
  margin-inline: auto;
}

.v3-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.v3-scroll-hint span {
  display: block;
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: v3HintPulse 2s ease infinite;
}

@keyframes v3HeroIn {
  to { opacity: 1; transform: scale(1); }
}

@keyframes v3HintPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* GIF panels */
.v3-gif-spot__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.v3-panel--gif img {
  max-height: min(42vh, 400px);
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

/* Content panels */
.v3-panel--services,
.v3-panel--light,
.v3-panel--contact {
  background: transparent;
}

.v3-services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 20px;
}

.v3-services__list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-dim);
}

.v3-services__list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 600;
}

/* LIGHT */
.v3-light {
  display: flex;
  justify-content: center;
  gap: 0.65em;
  margin-bottom: 24px;
  font-size: clamp(2rem, 7vw, 3rem);
  letter-spacing: 0.65em;
  user-select: none;
}

.v3-light > span { opacity: 0.15; }

#v3I {
  opacity: 1;
  position: relative;
  animation: flickerI 3s linear reverse infinite;
}

#v3I::after {
  content: "";
  position: absolute;
  left: -35%;
  top: 50%;
  width: 150%;
  height: 2px;
  box-shadow: -35px 0 60px 8px rgba(255, 255, 255, 1);
}

#v3L, #v3G { animation: flickerLG 3s linear reverse infinite; }
#v3H, #v3T { animation: flickerH 3s linear reverse infinite; }

.v3-manifesto {
  margin: 0;
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
}

@keyframes flickerI {
  0% { opacity: 0.4; } 30% { opacity: 1; } 35% { opacity: 0.1; }
  60% { opacity: 1; } 100% { opacity: 1; }
}

@keyframes flickerLG {
  0% { opacity: 0.19; } 30% { opacity: 0.4; } 100% { opacity: 0.4; }
}

@keyframes flickerH {
  0% { opacity: 0.15; } 30% { opacity: 0.4; } 100% { opacity: 0.3; }
}

/* Contact */
.v3-contact__email {
  display: inline-block;
  margin: 8px 0 20px;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 200ms ease;
}

.v3-contact__email:hover { border-color: var(--text); }

.v3-contact__hub {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-decoration: none;
}

.v3-contact__hub:hover { color: var(--text); }

/* Footer — last on page */
.v3-footer {
  position: relative;
  z-index: 2;
  padding: 48px 16px 64px;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.v3-footer__inner {
  width: min(92vw, 1200px);
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.v3-footer__logo {
  display: block;
  flex-shrink: 0;
  width: 120px;
  height: 40px;
  background: url("assets/images/homepage/offshore_logo_white.svg") center / contain no-repeat;
  opacity: 0.3;
}

.v3-footer__copy {
  margin: 0;
  color: var(--muted);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--muted);
}

.v3-footer__legal {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-align: right;
}

/* Scroll progress */
.v3-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 999;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.v3-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--ember);
  transition: width 80ms linear;
}

@media (max-width: 640px) {
  .v3-header { padding: 10px 16px; }
  .v3-light { letter-spacing: 0.35em; }
  :root { --panel-gap: 10vh; }
  .v3-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .v3-footer__legal { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .v3-hero-media { animation: none; opacity: 1; transform: none; }
  .v3-light > span, #v3I, #v3L, #v3G, #v3H, #v3T { animation: none !important; opacity: 0.5 !important; }
  .v3-scroll-hint span { animation: none; }
  .v3-panel__stage {
    filter: none !important;
    transform: none !important;
  }
}
