@font-face {
  font-family: 'BahnschriftLocal';
  src: url('../fonts/bahnschrift.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #090b0f;
  --bg-elevated: #12161f;
  --surface: rgba(15, 19, 27, 0.78);
  --surface-strong: rgba(12, 15, 22, 0.9);
  --border: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 255, 255, 0.28);
  --text: #f3f5f8;
  --text-muted: #b3bcc9;
  --text-dim: #7f8a9c;
  --red: #e11d2e;
  --red-bright: #ff3144;
  --red-glow: rgba(225, 29, 46, 0.32);
  --tech: #38bdf8;
  --tech-soft: rgba(56, 189, 248, 0.14);
  --green: #34d399;
  --radius: 18px;
  --radius-sm: 10px;
  --font-display: 'BahnschriftLocal', 'Bahnschrift', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --nav-h: 64px;
  --max-w: 1180px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

.container {
  width: min(var(--max-w), calc(100% - 2rem));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===========================
   TOP NAVIGATION (NO IFRAMES)
   =========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: linear-gradient(180deg, rgba(9, 11, 15, 0.88) 0%, rgba(9, 11, 15, 0.58) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.88rem;
  text-transform: uppercase;
  box-shadow: 0 4px 18px var(--red-glow);
  transition: transform 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.brand-pill:hover {
  background: var(--red-bright);
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: rgba(243, 245, 248, 0.86);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(15, 19, 27, 0.9);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.nav-links a.nav-apps {
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.1);
  color: #e0f2fe;
}

.nav-links a.nav-apps:hover,
.nav-links a.nav-apps.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #fff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-private-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.nav-private-btn:hover,
.nav-private-btn.active {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.social-btn:hover {
  border-color: var(--red);
  color: #fff;
  background: var(--red);
}

/* Signature Spinning Earth Mobile Menu Trigger */
.earth-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.earth-globe {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-image: url('../img/earth.png');
  background-size: cover;
  background-color: rgba(59, 130, 246, 0.7);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.55), 0 0 14px rgba(56, 189, 248, 0.35);
  animation: spinEarth 70s linear infinite;
}

@keyframes spinEarth {
  from { background-position: 0 0; }
  to { background-position: 719px 0; }
}

.mobile-drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(11, 14, 20, 0.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem 1.5rem;
  display: none;
  flex-direction: column;
  gap: 0.45rem;
  z-index: 999;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.65);
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
}

.mobile-drawer a:hover,
.mobile-drawer a.active {
  background: rgba(15, 19, 27, 0.95);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.mobile-drawer a.nav-apps {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.1);
}

@media (max-width: 860px) {
  .nav-links,
  .nav-right .nav-private-btn {
    display: none;
  }

  .earth-toggle {
    display: inline-flex;
  }
}

/* ===========================
   HERO & FIXED CURTAIN PARALLAX
   =========================== */
.parallax-section {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.parallax-section > .container {
  position: relative;
  z-index: 1;
}

.parallax-section > .scroll-cue {
  z-index: 1;
}

@media (max-width: 768px) and (pointer: coarse) {
  .parallax-section {
    background-attachment: scroll;
  }
}

.parallax-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Windsurfer sits on the left of ridincropped.jpg — anchor left so surfer + sail stay 100% visible! */
.bg-hero {
  background-color: #05070a;
  background-image: url('../img/hero-windsurf-desktop.jpg');
  background-position: left center;
}

.scrim-hero {
  background: linear-gradient(
    90deg,
    rgba(6, 9, 14, 0.06) 0%,
    rgba(6, 9, 14, 0.14) 38%,
    rgba(6, 9, 14, 0.72) 66%,
    rgba(6, 9, 14, 0.84) 100%
  );
}

@media (max-width: 768px) {
  .bg-hero {
    background-image: url('../img/hero-windsurf-mobile.jpg');
    background-position: center top;
  }
  .scrim-hero {
    background: linear-gradient(180deg, rgba(6, 9, 14, 0.35) 0%, rgba(6, 9, 14, 0.78) 100%);
  }
}

.bg-two-sides {
  background-image: url('../img/travel-spain.jpg');
}

.bg-gallery {
  background-image: url('../img/bg-galaxy.jpg');
}

.bg-about {
  background-image: url('../img/bg-sunset.jpg');
}

.bg-howl {
  background-image: url('../img/bg-howl.jpg');
}

.scrim-dark {
  background: linear-gradient(180deg, rgba(7, 10, 15, 0.56) 0%, rgba(7, 10, 15, 0.52) 100%);
}

.scrim-about {
  background: linear-gradient(180deg, rgba(7, 10, 15, 0.35) 0%, rgba(7, 10, 15, 0.55) 100%);
}

.scrim-howl {
  background: linear-gradient(120deg, rgba(7, 10, 15, 0.62) 0%, rgba(7, 10, 15, 0.42) 100%);
}

/* Floating Right-Side Section Dots */
.parallax-dots {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.6rem 0.45rem;
  border-radius: 999px;
  background: rgba(9, 11, 15, 0.48);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.p-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.p-dot:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.25);
}

.p-dot.active {
  background: var(--red-bright);
  transform: scale(1.3);
  box-shadow: 0 0 12px var(--red-glow);
}

@media (max-width: 760px) {
  .parallax-dots {
    display: none;
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
}

.hero-layout {
  display: flex;
  justify-content: flex-end;
}

.hero-content {
  max-width: 600px;
}

@media (max-width: 860px) {
  .hero-layout {
    justify-content: flex-start;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(9, 11, 15, 0.55);
  backdrop-filter: blur(8px);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.25rem;
}

.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}

.reveal-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.4vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: rgba(245, 247, 250, 0.94);
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.65);
}

.reveal-title .char {
  display: inline-block;
  opacity: 0;
  animation: letterReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 65ms);
}

.reveal-title .accent {
  color: var(--red-bright);
  font-weight: 700;
}

@keyframes letterReveal {
  0% {
    opacity: 0;
    transform: rotateY(80deg) translateY(8px);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg) translateY(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-title .char {
    opacity: 1;
    animation: none;
  }
  .earth-globe {
    animation: none;
  }
}

.hero-subtitle {
  margin: 0.75rem 0 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 1.9rem);
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.85);
}

.hero-subtitle .accent {
  color: var(--red-bright);
  font-weight: 700;
}

.hero-lead {
  max-width: 58ch;
  color: rgba(235, 240, 247, 0.88);
  font-size: 1.05rem;
  margin: 0 0 2rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.cta-stack-right {
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.cta-stack-right .btn {
  min-width: 235px;
  padding: 0.68rem 1.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.45rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 26px var(--red-glow);
}

.btn-primary:hover {
  background: var(--red-bright);
}

.btn-tech {
  background: rgba(14, 165, 233, 0.18);
  border-color: rgba(56, 189, 248, 0.6);
  color: #e0f2fe;
  backdrop-filter: blur(8px);
}

.btn-tech:hover {
  background: #0284c7;
  color: #fff;
  border-color: #38bdf8;
}

.btn-ghost {
  background: rgba(15, 19, 27, 0.62);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

/* ===========================
   TWO SIDES GATEWAY SECTION
   =========================== */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 2.4rem;
}

.section-kicker {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin: 0 0 0.4rem;
}

.section-kicker.tech {
  color: var(--tech);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.section-desc {
  margin: 0.6rem 0 0;
  color: var(--text-muted);
  max-width: 62ch;
}

.two-sides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.side-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.side-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
}

.side-card.commercial::before {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.side-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}

.side-badge {
  align-self: flex-start;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(225, 29, 46, 0.16);
  color: #fda4af;
  border: 1px solid rgba(225, 29, 46, 0.35);
}

.side-card.commercial .side-badge {
  background: var(--tech-soft);
  color: #bae6fd;
  border-color: rgba(56, 189, 248, 0.35);
}

.side-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
}

.side-card p {
  margin: 0;
  color: var(--text-muted);
}

.side-list {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0.75rem;
  display: grid;
  gap: 0.5rem;
  color: #dbe3ee;
  font-size: 0.95rem;
}

.side-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.side-list li::before {
  content: '→';
  color: var(--red-bright);
  font-weight: 700;
}

.side-card.commercial .side-list li::before {
  color: var(--tech);
}

.side-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* ===========================
   PARALLAX BANDS (HOME)
   =========================== */
.parallax-band {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2.5rem) 0 4.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* Home Gallery Preview Cards */
.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.1rem;
  margin-top: 1.75rem;
}

.cat-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  isolation: isolate;
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.5s ease;
}

.cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 25%, rgba(0, 0, 0, 0.82) 100%);
  z-index: -1;
}

.cat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.5);
}

.cat-card:hover img {
  transform: scale(1.06);
}

.cat-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: #fff;
}

.cat-card span {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
}

/* About Prose */
#about > .container {
  width: min(1340px, calc(100% - 3rem));
}

.about-panel {
  margin-left: auto;
  width: min(35vw, 460px);
  min-width: 330px;
  background: rgba(15, 19, 27, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: clamp(1.4rem, 2.5vw, 2.1rem);
}

.about-panel p {
  font-size: 0.98rem;
  line-height: 1.72;
  color: #f3f6fb;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.72);
  margin: 0 0 1rem;
}

.about-panel p:last-child {
  margin-bottom: 0;
}

.about-quote {
  border-left: 3px solid var(--red);
  padding-left: 1rem;
  margin: 1.15rem 0;
  font-style: italic;
  color: #fff;
  font-size: 1.02rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}

@media (max-width: 820px) {
  .about-panel {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }
}

/* Howl Contact Form */
.howl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2.25rem;
  align-items: start;
}

.howl-artwork {
  margin: 1.15rem 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #000;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

.howl-artwork img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 780px) {
  .howl-grid {
    grid-template-columns: 1fr;
  }
}

.form-stack {
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.78rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(9, 11, 15, 0.68);
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--red-bright);
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.22);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}

.form-status.show {
  display: block;
}

.form-status.success {
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #a7f3d0;
}

.form-status.error {
  background: rgba(225, 29, 46, 0.16);
  border: 1px solid rgba(225, 29, 46, 0.45);
  color: #fecdd3;
}

/* ===========================
   INNER PAGE HERO BANNER
   =========================== */
.page-hero {
  padding: calc(var(--nav-h) + 3.5rem) 0 3rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 340px at 15% 0%, rgba(225, 29, 46, 0.16), transparent 65%),
    linear-gradient(180deg, #0d1118 0%, var(--bg) 100%);
}

.page-hero.tech-hero {
  background:
    radial-gradient(900px 360px at 15% 0%, rgba(56, 189, 248, 0.18), transparent 65%),
    linear-gradient(180deg, #0b1320 0%, var(--bg) 100%);
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.page-hero h1 .accent {
  color: var(--red-bright);
  font-weight: 700;
}

.page-hero.tech-hero h1 .accent {
  color: var(--tech);
}

.page-hero p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  max-width: 66ch;
  font-size: 1.04rem;
}

/* Filter Pills & Search Bar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill-btn {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-btn:hover {
  border-color: var(--border-hover);
  color: #fff;
}

.pill-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.pill-btn.tech-pill.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #fff;
}

.sub-filters {
  padding: 0.5rem 0.7rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.pill-btn.sub-pill {
  padding: 0.34rem 0.82rem;
  font-size: 0.82rem;
}

.search-input {
  min-width: 240px;
  padding: 0.52rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: #fff;
  outline: none;
}

.search-input:focus {
  border-color: var(--red-bright);
}

/* ===========================
   WORDS (PROSE) PAGE
   =========================== */
.prose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.35rem;
}

.prose-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.prose-card:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 46, 0.55);
}

.prose-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prose-tag {
  color: #fda4af;
}

.prose-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.28;
}

.prose-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.prose-read-more {
  margin-top: auto;
  padding-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--red-bright);
}

/* Reader Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.88);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-backdrop.open {
  display: flex;
}

.reader-modal {
  width: min(760px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: #11151e;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3rem);
  position: relative;
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(17, 21, 30, 0.9);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--red);
  border-color: var(--red);
}

.reader-body {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.85;
  color: #e6ebf2;
  margin-top: 1.5rem;
}

.reader-body p {
  margin: 0 0 1.2rem;
}

/* ===========================
   GALLERY & LIGHTBOX
   =========================== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 1.15rem;
}

.media-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.media-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.media-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #06080c;
  position: relative;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.media-card:hover .media-thumb img {
  transform: scale(1.05);
}

.media-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(9, 11, 15, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.media-caption {
  padding: 0.9rem 1rem 1rem;
}

.media-caption h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
}

.media-caption p {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #131926 0%, #090c12 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  position: relative;
  padding: 1rem;
  text-align: center;
}

.play-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(225, 29, 46, 0.9);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  box-shadow: 0 8px 26px var(--red-glow);
}

/* Lightbox */
.lightbox-content {
  width: min(1020px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.lightbox-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-stage img {
  max-height: 75vh;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

#painting-lightbox .lightbox-stage img {
  min-width: min(460px, 78vw);
  max-width: min(860px, 86vw);
  max-height: 72vh;
  object-fit: contain;
  padding: 14px;
  background: #141923;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  background: rgba(15, 19, 27, 0.85);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}

.lb-nav:hover {
  background: var(--red);
  border-color: var(--red);
}

.lb-prev { left: 0.75rem; }
.lb-next { right: 0.75rem; }

.lightbox-meta {
  text-align: center;
}

.lightbox-meta h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.lightbox-meta p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
}

/* ===========================
   APPS & UTILITIES STOREFRONT
   =========================== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.4rem;
}

.app-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.5);
}

.app-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.app-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0369a1 0%, #38bdf8 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35);
}

.app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.chip {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

.chip-free {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
}

.chip-ver {
  background: var(--tech-soft);
  border-color: rgba(56, 189, 248, 0.35);
  color: #bae6fd;
}

.app-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 500;
}

.app-tagline {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.app-features {
  margin: 0;
  padding-left: 1.1rem;
  color: #d7e0ec;
  font-size: 0.92rem;
  display: grid;
  gap: 0.35rem;
}

.app-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.app-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.app-changelog {
  display: none;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: rgba(9, 11, 15, 0.7);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text-muted);
}

.app-changelog.open {
  display: block;
}

.info-banner {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.26);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.coffee-banner {
  margin-top: 2.5rem;
  padding: 1.65rem 1.85rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(18, 22, 31, 0.92) 65%);
  border: 1px solid rgba(251, 191, 36, 0.34);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.btn-coffee {
  background: #d97706;
  border-color: #f59e0b;
  color: #fff;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.3);
}

.btn-coffee:hover {
  background: #f59e0b;
  border-color: #fbbf24;
  color: #090b0f;
}

/* ===========================
   PRIVATE PORTAL PAGE
   =========================== */
.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.35rem;
}

.vault-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.vault-card h2,
.vault-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
}

.note-list {
  display: grid;
  gap: 0.65rem;
}

.note-item {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.note-item button {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.9rem;
}

.note-item button:hover {
  color: var(--red-bright);
}

/* ===========================
   MUSIC PLAYER PAGE
   =========================== */
.music-deck {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}

@media (max-width: 720px) {
  .music-deck {
    grid-template-columns: 1fr;
  }
}

.music-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-hover);
  background: #05070a;
}

.music-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eq-bars {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(9, 11, 15, 0.78);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.eq-bars.active {
  opacity: 1;
}

.eq-bars span {
  width: 4px;
  height: 6px;
  background: var(--red-bright);
  border-radius: 2px;
  animation: eqBounce 0.75s ease-in-out infinite alternate;
}

.eq-bars span:nth-child(2) { animation-delay: 0.18s; }
.eq-bars span:nth-child(3) { animation-delay: 0.36s; }
.eq-bars span:nth-child(4) { animation-delay: 0.1s; }

@keyframes eqBounce {
  from { height: 4px; }
  to { height: 15px; }
}

.music-controls-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.music-now-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.music-controls-wrap h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.95rem);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-controls-wrap audio {
  width: 100%;
  height: 42px;
  border-radius: 999px;
}

.deck-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.deck-buttons .btn {
  padding: 0.56rem 1.05rem;
  font-size: 0.88rem;
}

.deck-buttons .btn.shuffle-on {
  border-color: var(--red-bright);
  background: rgba(225, 29, 46, 0.2);
  color: #fff;
}

.track-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (max-width: 900px) {
  .track-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .track-list {
    grid-template-columns: 1fr;
  }
}

.track-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.track-row:hover {
  border-color: var(--border-hover);
  background: #171c27;
  transform: translateY(-1px);
}

.track-row.playing {
  border-color: var(--red-bright);
  background: rgba(225, 29, 46, 0.14);
}

.track-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.track-row.playing .track-num {
  background: var(--red);
  color: #fff;
}

.track-info {
  min-width: 0;
  flex: 1;
}

.track-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-size {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.track-dl {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.track-dl:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ===========================
   OIL PAINTINGS STUDIO GALLERY
   =========================== */
.paintings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
}

.painting-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.painting-card.clickable {
  cursor: pointer;
}

.painting-card.clickable:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 29, 46, 0.55);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5);
}

.painting-frame {
  aspect-ratio: 4 / 3;
  background: #06080c;
  position: relative;
  overflow: hidden;
  padding: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.painting-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  transition: transform 0.4s ease;
}

.painting-card.clickable:hover .painting-frame img {
  transform: scale(1.03);
}

.canvas-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: radial-gradient(circle at 50% 45%, rgba(225, 29, 46, 0.1), rgba(9, 11, 15, 0.85));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--text-dim);
  text-align: center;
  padding: 1rem;
}

.canvas-placeholder strong {
  color: var(--text-muted);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-weight: 500;
}

.painting-plaque {
  padding: 1.25rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.painting-plaque h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 500;
}

.painting-specs {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fda4af;
}

.painting-plaque p {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: #07090d;
  padding: 2.4rem 0;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-links a:hover {
  color: #fff;
}
