/* Hide .project__meta if empty to prevent extra card space */
.project__meta:empty {
  display: none;
}

/* ========================================================================
   Roaction Studio CSS — Professional Standards
   ------------------------------------------------------------------------
   - Uses CSS custom properties for all theme colors and layout values
   - Responsive units (clamp, vw, vh, %) for scalable design
   - Modern layout: Flexbox, Grid, isolation, z-index layering
   - Accessibility: focus-visible, color contrast, keyboard navigation
   - BEM-inspired class naming for clarity
   - All "magic values" are commented or grouped as variables
   - Ready for future theming (light/dark mode)
   ======================================================================== */

/* ========================================================================
   THEME COLORS & ROOT SETTINGS
   ------------------------------------------------------------------------
   To add a light mode, override these in a .theme-light class or [data-theme="light"]
   Example:
   .theme-light {
     --bg: #fff;
     --muted: #444;
     --accent: #d33;
     ...
   }
   ======================================================================== */
.root,
:root {
  /* Theme colors */
  --bg: #000000;         /* Main background (dark mode) */
  --muted: #bdbdbd;      /* Muted text color */
  --accent: #d33;        /* Accent color (CTA, highlights) */

  /* Layout & sizing */
  --max-width: 2200px;   /* Max container width */
  --header-h: clamp(56px, 8vw, 64px); /* Header height: responsive, matches design */
  --gap: 6px;            /* Projects grid gap */
  --gap-small: 4px;      /* Tighter gap variant */
  --radius: 4px;         /* Card border-radius */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.6); /* Card drop shadow */

  /* Hero section */
  --hero-texture-image: none;
  --hero-logo-center-y: -50%; /* Optical center for logo (not geometric) */
  --hero-logo-width: clamp(320px, 68vw, 1220px); /* Responsive logo width */
  --hero-logo-offset-x-desktop: 0px;
  --hero-logo-offset-y-desktop: 0px;
  --hero-logo-offset-x-mobile: 0px;
  --hero-logo-offset-y-mobile: 0px;
  --hero-logo-offset-x: var(--hero-logo-offset-x-desktop);
  --hero-logo-offset-y: var(--hero-logo-offset-y-desktop);
}

/* ========================================================================
   LIGHT MODE SCAFFOLD (future-ready)
   ------------------------------------------------------------------------
   Uncomment and adjust for a light theme:
   ======================================================================== */
  /*
  .theme-light {
    --bg: #fff;
    --muted: #444;
    --accent: #d33;
    // ...other overrides...
  }
  */
* {
  /* ========================================================================
   GLOBAL RESET & BASE ELEMENTS
   ======================================================================== */
  box-sizing: border-box;
}

html {
  /* ========================================================================
   HTML & BODY BASE STYLES
   ======================================================================== */
  scroll-behavior: smooth;
  overflow-x: clip;
}

html,
body {
  height: 100%;
}

.site-root,
body {
  margin: 0;
}

body {
  font-family: 'Poppins', Inter, system-ui, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: #e8e8e8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  opacity: 1;
  transition: opacity 0.3s cubic-bezier(0.2, 0.75, 0.2, 1);
}

body.page-transition-enter {
  opacity: 0;
}

body.page-transition-ready {
  opacity: 1;
}

body.page-transition-leave {
  opacity: 0;
  pointer-events: none;
}

.container {

  margin-inline: auto;
  padding-block: 0;
  padding-inline: clamp(10px, 2.8vw, 28px);
}

.site-header {
  /* ========================================================================
   HEADER SECTION
   ======================================================================== */
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: var(--header-h);
  /* Grid gives a mathematically true center column regardless of left/right widths */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(14px, 2.8vw, 28px);
  z-index: 60;
  color: var(--muted);
  font-size: 13px;
  pointer-events: auto;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}

.site-header__left a {
  color: var(--muted);
  text-decoration: none;
  opacity: 0.85;
  transition: color 0.2s, opacity 0.2s;
}

.site-header__left a:hover {
  color: #ff7a7a; /* lighter red */
  opacity: 1;
}

.header-contact-btn {
  display: inline-block;
  align-items: center;
  padding: 6px 12px;
  border-radius: 0;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  line-height: 1;
  overflow: visible;
}

.header-contact-btn::before,
.header-contact-btn::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 10px;
  border: 1px solid rgba(221, 51, 51, 0.42);
  opacity: 0;
  transform: scale(1);
  transform-origin: center center;
  pointer-events: none;
}

.header-contact-btn:hover::before {
  animation: ctaEdgeRipple 1.4s linear infinite;
}

.header-contact-btn:hover::after {
  animation: ctaEdgeRipple 1.4s linear 0.35s infinite;
}

.header-contact-btn__base {
  display: inline-block;
  white-space: nowrap;
  color: #d33;
}

.header-contact-btn:focus-visible {
  outline: 2px solid rgba(255, 107, 111, 0.5);
  outline-offset: 4px;
}

.header-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 12px;
  border-radius: 6px;
  border: 1px solid rgba(221, 51, 51, 0.3);
  background: rgba(221, 51, 51, 0.05);
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.header-admin-btn:hover {
  opacity: 1;
  background: rgba(221, 51, 51, 0.15);
  border-color: rgba(221, 51, 51, 0.6);
  transform: translateY(-2px);
}

.header-admin-btn:focus-visible {
  outline: 2px solid rgba(221, 51, 51, 0.5);
  outline-offset: 4px;
}

.site-header__center {
  font-family: 'Poppins', sans-serif;
  color: #ddd;
  letter-spacing: 2px;
  font-size: 12px;
  text-transform: uppercase;
  text-align: center;     /* stays pinned to grid center column */
  white-space: nowrap;
}

.site-header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;   /* push everything to the right edge */
  gap: clamp(6px, 1vw, 12px);
}

.small-logo-anchor {
  width: 120px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.small-logo {
  width: 120px;
  height: auto;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.small-logo.visible {
  opacity: 1;
  transform: scale(1);
}

/* ========================================================================
   HERO SECTION
   ======================================================================== */
.hero {
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: clamp(28vh, 38vw, 45vh);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.01) 20%, rgba(0, 0, 0, 0.06) 35%, rgba(0, 0, 0, 0.18) 50%, rgba(0, 0, 0, 0.45) 70%, rgba(0, 0, 0, 0.8) 85%, #000000 100%);
  z-index: 2;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: #030303;
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  mix-blend-mode: normal;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  will-change: transform, opacity;
}

@keyframes heroTexturePan {
  0% {
    transform: translate3d(-6%, 0, 0);
    background-position: 0% 50%;
  }
  100% {
    transform: translate3d(10%, 0, 0);
    background-position: 120% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg-texture {
    animation: none;
  }
}

.hero__panel {
  position: absolute;
  left: 50%;
  top: calc(50% + min(14vh, 120px));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--gap-small);
  z-index: 5;
  pointer-events: auto;
  max-width: min(640px, 88vw);
  text-align: center;
  will-change: transform, opacity;
}

.hero__panel--stacked {
  position: absolute;
  left: 50%;
  top: 62%;
  transform: translate(-50%, -50%);
  margin-top: 0;
  max-width: min(720px, 88vw);
  width: auto;
  box-sizing: border-box;
  text-align: center;
  will-change: transform, opacity;
  /* Animation handled by GSAP/ScrollTrigger in hero.js */
}

.hero-title {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 6vw, 72px);
  letter-spacing: 1.2px;
  margin-bottom: clamp(10px, 2vw, 18px);
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  text-transform: uppercase;
}

.hero-kicker {
  margin: 0;
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: 2.2px;
  margin-bottom: clamp(10px, 2vw, 18px);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(20px, 2.5vw, 32px);
  line-height: 1.5;
  max-width: 48ch;
  margin: 0 auto;
  color: rgba(255,255,255,0.92);
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-small);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-size: 12px;
  color: #050505;
  background: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  text-align: center;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.hero-cta__label {
  display: block;
  width: 100%;
  text-align: center;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  background: #ffffff;
}

.hero-cta:focus-visible {
  outline: 2px solid rgba(255, 100, 110, 0.6);
  outline-offset: 3px;
}

.hero-cta__note {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.5px;
}

.logo {
  width: 100%;
  max-width: 100%;
  /* Aligned with .logo-wrap max-height (82vh) to prevent img overflowing the
     wrapper and causing translateY(-50%) to mis-calculate the center offset. */
  max-height: 80vh;
  display: block;
  position: relative;
  z-index: 2;
}

.logo {
  will-change: transform, opacity;
  object-fit: contain;
}

.logo-hover-reveal {
  display: none !important;
}

.logo-liquid-shell {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.logo-liquid-canvas {
  position: absolute;
  left: 0;
  top: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  transform: none;
  pointer-events: none;
  display: block;
  will-change: contents;
}

.hero-logo-anim {
  width: 100%;
  display: block;
  transform-origin: center center;
  will-change: transform, opacity;
  background: none;
  outline: none;
}

.logo-wrap {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  /* DESIGN VALUE — optical upper-center. 38% of hero height positions the logo
     in the upper-third of the visual area, creating breathing room below.
     This is intentional: NOT the geometric center. Uses % so it scales
     proportionally at every zoom level. DO NOT replace with px / calc. */
  top: 48%;

  transform: translate3d(
    var(--hero-logo-offset-x),
    calc(var(--hero-logo-center-y) + var(--hero-logo-offset-y)),
    0
  );
  width: var(--hero-logo-width);

  max-width: 92vw;
  max-height: 82vh;
  display: block;
  z-index: 4;
  pointer-events: none;
  isolation: isolate;
  overflow: visible;
  transform-origin: center center;
  will-change: transform, opacity;
  background: none;
  outline: none;
}

.logo-wrap::before,
.logo-wrap::after {
  content: none;
}

.small-logo-anchor {
  position: relative;
}

.logo--liquid,
.logo--liquid.small {
  display: none !important;
}

.portfolio {
  padding: 160px 0 220px;
  background: #000000;
  position: relative;
  overflow: hidden;
/* ========================================================================
   PORTFOLIO SECTION
   ======================================================================== */
}

.portfolio::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
  z-index: 0;
}

/* ─── BACKGROUND PATTERN OVERLAY ────────────────────────────────────
   Managed via admin > Pattern tab.
   To permanently remove: delete this block + the
   <div id="bgPatternOverlay"> element in index.html.
──────────────────────────────────────────────────────────────────── */
.bg-pattern-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-repeat: repeat;
  opacity: 0;
  transition: opacity 0.5s ease;
  /* Fade out toward the top so tiles dissolve seamlessly into the section */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 100%);
}
.bg-pattern-overlay.is-active {
  opacity: 1;
}

.section-title {
  font-weight: 700;
  font-size: clamp(32px, 6vw, 52px);
  margin: 0 0 60px;
  color: #fff;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  transition: color 0.35s ease;
  cursor: default;
}

.section-title:hover {
  color: #ff2a2a;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  margin: 20px auto 0;
}

.portfolio .container {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  position: relative;
  z-index: 1;
}

.projects {
  display: grid;
  /* Auto-fill: naturally finds correct column count at every zoom level.
     Column min = 22vw so ~4 columns at 100% zoom on widescreen,
     fewer columns automatically as viewport shrinks. */
  grid-template-columns: repeat(auto-fill, minmax(clamp(180px, 22vw, 500px), 1fr));
  /* Fine-grained row unit for true masonry — JS sets grid-row: span N per card */
  grid-auto-rows: 10px;
  grid-auto-flow: dense;
  gap: var(--gap);
  padding: 0 8px;
}

.project {
  --project-glow: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.55s cubic-bezier(0.2, 0.5, 0.2, 1);
  background: #000;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border: none;
  box-shadow: var(--shadow-card);
}

.project.visible {
  opacity: 1;
  transform: none;
}

.project::before,
.project::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.6s ease;
}

.project::before {
  border-radius: inherit;
  background: none;
  opacity: 0;
  z-index: 0;
}

.project::after {
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.88) 100%),
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120"%3E%3Cpath fill="rgba(255,255,255,0.08)" d="M0 118h2v2H0zm60-60h2v2h-2zm60 60h2v2h-2z"/%3E%3C/svg%3E');
  background-size:
    100% 100%,
    140px;
  mix-blend-mode: screen;
  opacity: 0.08;
  z-index: 1;
}

.project.visible::before {
  opacity: 0;
}

.project__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 0;
  transform-style: preserve-3d;
  z-index: 2;
}

/* Four auto-buckets — heights set via JS grid-row: span N (grid-auto-rows: 10px)
   aspect-ratio is kept as a hint for browsers/fallback but row-span controls actual height */
/* default .project__media  { aspect-ratio: 4/5 }  — portrait, 1 column */
.project--span2 .project__media       { aspect-ratio: 8/5; }   /* 8:5 = 4:5×2cols → same height as portrait */
.project--tall-portrait .project__media { aspect-ratio: 3/4; } /* tall portrait — slightly taller than 4:5 */
.project--tall .project__media         { aspect-ratio: 9/16; } /* very tall / poster */
.project--square .project__media       { aspect-ratio: 1/1;  } /* square */
.project--landscape .project__media    { aspect-ratio: 4/3;  } /* manual admin override */

.hero__bg-slider {
  position: absolute;
  inset: -14% -8% -8% -8%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
  will-change: transform;
  -webkit-mask-image: radial-gradient(130% 105% at 50% 50%, #000 58%, rgba(0, 0, 0, 0.72) 78%, transparent 100%);
  mask-image: radial-gradient(130% 105% at 50% 50%, #000 58%, rgba(0, 0, 0, 0.72) 78%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: cover;
  mask-size: cover;
}

.hero__bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: brightness(0.96) contrast(1.02);
  will-change: opacity;
}

.hero__bg-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.project__media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.project__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.03);
  transition: transform 0.85s cubic-bezier(0.16, 0.84, 0.24, 1);
  filter: saturate(1.15) contrast(1.03) brightness(0.98);
  will-change: transform;
}

.project__meta {
  position: absolute;
  inset-inline: clamp(12px, 2vw, 28px);
  inset-block-end: clamp(12px, 2vw, 32px);
  z-index: 3;
  padding: 0;
  background: transparent;
  border-radius: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: #fff;
  text-shadow: 0 12px 50px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  border: 0;
  opacity: 0;
  transform: translateY(18px);
  transition: transform 0.38s cubic-bezier(0.2, 0.6, 0.2, 1), opacity 0.38s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.project__title {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.6px;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.project__desc {
  font-size: 12px;
  color: rgba(242, 242, 242, 0.75);
  margin: 0;
  letter-spacing: 0.4px;
}

.project__media img {
  transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.project:hover .project__media img {
  transform: scale(1.04);
}

.project:hover .project__media::after {
  opacity: 0;
}

.project:hover .project__meta {
  transform: translateY(0);
  opacity: 1;
}

.project:hover::before {
  opacity: 0.65;
  transform: scale(1.08);
}

.project:hover::after {
  opacity: 0.2;
}

.project:hover {
  box-shadow:
    0 20px 80px rgba(0, 0, 0, 0.9),
    0 0px 40px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.15);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 4, 4, 0.85);
  z-index: 120;
  padding: 40px;
}

.lightbox[aria-hidden='false'] {
  display: flex;
}

.lightbox__content {
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.lightbox__meta {
  position: absolute;
  left: 28px;
  bottom: 22px;
  color: #fff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.lightbox__title {
  font-size: 22px;
  margin: 0;
}

.lightbox__desc {
  font-size: 13px;
  margin: 6px 0 0;
  color: var(--muted);
}

.lightbox__close {
  position: fixed;
  top: 22px;
  right: 22px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 130;
}

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: #fff;
  font-size: clamp(22px, 5vw, 34px);
  cursor: pointer;
  z-index: 130;
  padding: clamp(8px, 2vw, 12px);
  width: clamp(40px, 7vw, 48px);
  height: clamp(40px, 7vw, 48px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox__prev {
  left: 18px;
}

.lightbox__next {
  right: 18px;
}

@media (max-width: 720px) {
  .lightbox {
    padding: 12px;
  }
  .lightbox__meta {
    left: 16px;
    bottom: 14px;
  }
}

.project {
  grid-column: span 1;
}

.project--wide {
  grid-column: span 2;
}

.project--small {
  grid-column: span 1;
}
@media (max-width: 900px) {

  .portfolio .container {
    width: 100%;
  }
  .projects {
    /* On tablet let columns shrink to min 160px */
    grid-template-columns: repeat(auto-fill, minmax(clamp(140px, 40vw, 360px), 1fr));
    grid-auto-rows: auto;
    gap: var(--gap);
  }
  .project {
    grid-column: auto !important;
    grid-row-end: auto !important;
  }
  /* On mobile all cards collapse to portrait 4:5 */
  .project__media,
  .project--tall .project__media,
  .project--tall-portrait .project__media,
  .project--square .project__media,
  .project--landscape .project__media,
  .project--span2 .project__media {
    aspect-ratio: 4 / 5;
  }
  .portfolio {
    padding: 118px 0 160px;
  }
  .section-title {
    margin: 0 0 34px;
    font-size: 26px;
  }
}

@media (max-width: 600px) {
  .project__meta {
    inset-inline: 12px;
    inset-block-end: 12px;
    padding-block: 10px;
    padding-inline: 12px;
  }
}

@media (max-width: 480px) {
  .projects {
    grid-template-columns: 1fr;
    gap: var(--gap);
  }
  .project {
    grid-column: auto !important;
    grid-row-end: auto !important;
  }
}
@media (max-width: 720px) {

  :root {
    --hero-logo-offset-x: var(--hero-logo-offset-x-mobile);
    --hero-logo-offset-y: var(--hero-logo-offset-y-mobile);
  }
  .logo {
    width: 100%;
  }
  .logo-wrap {
    /* Optical upper-center on mobile — same pattern as desktop 38% */
    top: 35%;
    width: min(92vw, 520px);
    max-height: 52vh;
  }
  .logo {
    max-height: 48vh;
  }
  .site-header {
    height: 52px;
    padding: 0 14px;
    /* Keep 3-col grid on mobile, collapse center text via font-size */
  }
  .site-header__center {
    font-size: 9px;
    letter-spacing: 1.2px;
  }
  .header-admin-btn {
    width: 36px;
    height: 36px;
  }
  .social-links--header .social-link {
    width: 30px;
    height: 30px;
  }
  .container {
    padding: 0 14px;
  }
  .portfolio .container {
    width: calc(100% - 8px);
  }
  .small-logo {
    width: 72px;
  }
  .hero__panel {
    top: calc(50% + min(12vh, 96px));
    width: min(560px, calc(100vw - 24px));
    max-width: none;
    padding: 0 6px;
    gap: 10px;
  }
  .hero-kicker {
    font-size: 11px;
    letter-spacing: 1.5px;
  }
  .hero-title {
    font-size: 17px;
    letter-spacing: 0.7px;
  }
  .hero-subtitle {
    font-size: 14px;
    line-height: 1.5;
    max-width: 36ch;
    margin: 0 auto;
  }
  .hero-cta {
    width: 100%;
    justify-content: center;
  }
  .lightbox__nav {
    top: auto;
    bottom: 16px;
    transform: none;
  }
  .lightbox__prev {
    left: 16px;
  }
  .lightbox__next {
    right: 16px;
  }
  .cta-final {
    padding: 82px 0 102px;
  }
}

.cta-final {
  padding: 140px 0 180px;
  text-align: center;
  background: transparent;
  border-top: 0;
  border-bottom: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
  z-index: 0;
}

.cta-final__eyebrow {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(18px);
}

.cta-final__title {
  margin: 0 0 20px;
  font-size: clamp(32px, 6vw, 52px);
  letter-spacing: 0.8px;
  color: #fff;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(22px);
}

.cta-final__subtitle {
  margin: 0 auto 40px;
  max-width: 680px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(24px);
}

.cta-final .hero-cta {
  --cta-red: #ff1a1a;
  background: var(--cta-red);
  color: #fff;
  border: 1px solid rgba(221, 51, 51, 0.88);
  padding: clamp(16px, 2.4vw, 24px) clamp(28px, 5.5vw, 56px);
  min-width: 0;
  width: min(100%, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: clamp(16px, 3.8vw, 26px);
  letter-spacing: 2px;
  line-height: 1;
  text-align: center;
  box-shadow: none;
  position: relative;
  overflow: visible;
  z-index: 1;
  opacity: 1;
  transform: none;
  transition: none;
  animation: none;
}

.cta-final .hero-cta:hover {
  transform: none;
  background: var(--cta-red);
    border: 3px solid rgba(255, 26, 26, 0.82);
  box-shadow: none;
}

.cta-final .hero-cta:focus,
.cta-final .hero-cta:active {
  transform: none;
  transition: none;
  animation: none;
}

.cta-final .hero-cta::before,
.cta-final .hero-cta::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 2.5px solid rgba(255, 26, 26, 0.72);
  opacity: 0;
  transform: scale(1);
  transform-origin: center center;
  pointer-events: none;
}

.cta-final .hero-cta:hover::before {
  animation: ctaEdgeRipple 1.8s linear infinite;
}

.cta-final .hero-cta:hover::after {
  animation: ctaEdgeRipple 1.8s linear 0.45s infinite;
}

.cta-final.is-visible .cta-final__eyebrow {
  animation: ctaRevealUp 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.cta-final.is-visible .cta-final__title {
  animation: ctaRevealUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.08s forwards;
}

.cta-final.is-visible .cta-final__subtitle {
  animation: ctaRevealUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.16s forwards;
}

@keyframes ctaRevealUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ctaEdgeRipple {
  0% {
    opacity: 0.62;
    transform: scale(1);
  }
  70% {
    opacity: 0.2;
  }
  100% {
    opacity: 0;
    transform: scale(1.26);
  }
}

@media (max-width: 720px) {
  .cta-final .hero-cta {
    width: min(100%, 260px);
    padding: 14px 24px;
    letter-spacing: 1.2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-contact-btn:hover::before,
  .header-contact-btn:hover::after,
  .cta-final .hero-cta:hover,
  .cta-final .hero-cta:hover::before,
  .cta-final .hero-cta:hover::after {
    animation: none !important;
  }
}

/* ========================================================================
   CONTACT MODAL
   ======================================================================== */
.cmodal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.32s ease;
}

.cmodal.is-open {
  opacity: 1;
  pointer-events: all;
}

.cmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.cmodal__panel {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  overflow-y: auto;
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: clamp(28px, 4vw, 44px);
  transform: translateY(32px) scale(0.96);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.cmodal.is-open .cmodal__panel {
  transform: translateY(0) scale(1);
}

.cmodal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cmodal__close:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.cmodal__eyebrow {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 10px;
}

.cmodal__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 28px;
  line-height: 1.2;
}

.cmodal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cmodal__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cmodal__field span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.3px;
}

.cmodal__field input,
.cmodal__field select,
.cmodal__field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 14px;
  padding: 12px 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cmodal__field input::placeholder,
.cmodal__field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.cmodal__field input:focus,
.cmodal__field select:focus,
.cmodal__field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.cmodal__field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.7) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.7) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 10px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.05);
}

.cmodal__field select option {
  background-color: #151515;
  color: #ffffff;
}

.cmodal__field select option[value=''] {
  color: rgba(255, 255, 255, 0.4);
}

.cmodal__field textarea {
  resize: none;
  min-height: 110px;
}

.cmodal__submit {
  width: 100%;
  margin-top: 6px;
  padding: 14px 24px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.cmodal__submit:hover:not(:disabled) {
  background: #e8e8e8;
  transform: translateY(-1px);
}

.cmodal__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cmodal__status {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  min-height: 18px;
}

.cmodal__status.error { color: #ff8b8e; }
.cmodal__status.success { color: #6dffc8; }

.cmodal__direct {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.cmodal__direct a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 600;
}

.cmodal__direct a:hover { color: #fff; }

/* ── Floating contact trigger button ── */
.contact-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: #e8000d;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  /* Hidden off-screen by default */
  transform: translateY(120px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  pointer-events: none;
}

.contact-fab.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.contact-fab::before,
.contact-fab::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid rgba(232, 0, 13, 0.5);
  opacity: 0;
  transform: scale(1);
  transform-origin: center center;
  pointer-events: none;
}

.contact-fab:hover::before {
  animation: ctaEdgeRipple 1.4s linear infinite;
}

.contact-fab:hover::after {
  animation: ctaEdgeRipple 1.4s linear 0.35s infinite;
}

.contact-fab__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  animation: fab-pulse 1.8s ease-in-out infinite;
}

@keyframes fab-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.4); opacity: 1; }
}

@media (max-width: 600px) {
  .contact-fab {
    bottom: 20px;
    right: 16px;
    padding: 13px 18px;
    font-size: 12px;
  }
}

/* Success state — replaces form with confirmation */
.cmodal__success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 24px 0;
}

.cmodal__success.visible { display: flex; }

.cmodal__success-icon {
  font-size: 40px;
  line-height: 1;
}

.cmodal__success h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.cmodal__success p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

@media (max-width: 600px) {
  .cmodal__panel {
    border-radius: 18px;
    padding: 28px 20px;
  }
}

.site-footer {
  padding: 64px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.social-links--header {
  gap: clamp(4px, 0.6vw, 8px);
  margin-right: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(28px, 2.4vw, 36px);
  height: clamp(28px, 2.4vw, 36px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.social-links--header .social-link {
  width: clamp(26px, 2.2vw, 32px);
  height: clamp(26px, 2.2vw, 32px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255,255,255,0.04);
}

.social-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.85);
  background-color: rgba(255, 255, 255, 0.1);
}

.social-icon {
  width: 16px;
  height: 16px;
  display: block;
  background: currentColor;
  -webkit-mask-image: var(--social-icon);
  mask-image: var(--social-icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.social-links--header .social-icon {
  width: clamp(11px, 1vw, 14px);
  height: clamp(11px, 1vw, 14px);
}

.contact-page {
  background: #030303;
  min-height: 100vh;
}

.contact-header {
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-header__back {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.contact-header__spacer {
  display: inline-block;
  width: 92px;
  height: 1px;
}

.contact-main {
  padding-top: 140px;
  padding-bottom: 120px;
}

.contact-hero {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  padding: 0 24px;
}

.contact-hero__text h1 {
  font-size: clamp(32px, 6vw, 56px);
  margin: 0 0 18px;
  text-transform: uppercase;
}

.contact-hero__text p {
  margin: 0 0 18px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.contact-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 12px;
}

.contact-card {
  background: rgba(8, 8, 8, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.contact-card__header {
  margin-bottom: 24px;
}

.contact-card__eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 6px;
}

.contact-card__header h2 {
  margin: 0 0 6px;
}

.contact-card__header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-field span {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 15px;
  padding: 14px 16px;
  font-family: inherit;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.contact-field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 44px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.86) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 52%,
    calc(100% - 12px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* Force dark dropdown options — system default (white bg) causes invisible text on dark sites */
.contact-field select option {
  background-color: #151515;
  color: #ffffff;
}

.contact-field select option[value=''] {
  color: rgba(255, 255, 255, 0.45);
}

.contact-field textarea {
  resize: none;
  min-height: 150px;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

.contact-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.contact-direct {
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.contact-direct a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.contact-status {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
/* ========================================================================
   FOOTER SECTION
   ======================================================================== */
  min-height: 20px;
}

.contact-status.error {
  color: #ff8b8e;
}

@media (max-width: 720px) {
  .contact-card {
    padding: 24px;
  }
  .contact-main {
    padding-top: 120px;
  }
  .contact-header__back {
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .hero__panel {
    width: calc(100% - 18px);
    gap: 8px;
  }
  .hero-title {
    font-size: 15px;
  }
  .hero-subtitle {
    font-size: 13px;
  }
  .lightbox {
    padding: 10px;
  }
}

a:focus-visible {
  outline: 2px solid rgba(255, 107, 111, 0.6);
  outline-offset: 3px;
}

button:focus-visible {
  outline: 2px solid rgba(255, 107, 111, 0.6);
  outline-offset: 2px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
}

/* ── Large desktop ≥ 1440px ─────────────────────────────────────────── */
@media (min-width: 1440px) {
  :root {
    /* Raise the logo max-width ceiling on larger monitors */
    --hero-logo-width: clamp(320px, 68vw, 1340px);
  }

  .section-title {
    margin-bottom: 72px;
  }
}

/* ── Ultrawide / 4K ≥ 1920px ────────────────────────────────────────── */
@media (min-width: 1920px) {
  :root {
    --hero-logo-width: clamp(1220px, 56vw, 1560px);
  }

  .portfolio {
    padding: 180px 0 260px;
  }

  .section-title {
    margin-bottom: 80px;
  }

  .hero__panel {
    max-width: min(720px, 88vw);
  }
}

/* ========================================================================
   MOBILE FULLSCREEN EXPERIENCE — KNAS-inspired
   Scoped to .has-mobile-fs so contact.html and other pages are unaffected.
   The entire normal page is replaced on mobile by a fast fullscreen
   image slideshow with centered logo and minimal top-right navigation.
   ======================================================================== */

/* Hidden on desktop — JS reveals it only on mobile */
.mobile-fs {
  display: none;
}

@media (max-width: 768px) {
  /* ── Lock the viewport — no scroll on this page on mobile ─────────── */
  .has-mobile-fs,
  .has-mobile-fs body {
    overflow: hidden;
    height: 100%;
    height: 100svh;
  }

  /* ── Hide all normal page chrome ──────────────────────────────────── */
  .has-mobile-fs .site-header,
  .has-mobile-fs main,
  .has-mobile-fs footer.site-footer,
  .has-mobile-fs .contact-fab {
    display: none !important;
  }

  /* ── Mobile fullscreen container ──────────────────────────────────── */
  .mobile-fs {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #000;
    overflow: hidden;
  }

  /* ── Slideshow layer ──────────────────────────────────────────────── */
  .mobile-fs__slides {
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .mobile-fs__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  /* ── Dark vignette — helps logo read over bright images ──────────── */
  .mobile-fs__gradient {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0.30) 0%,
      rgba(0, 0, 0, 0.10) 55%,
      transparent 100%
    );
    pointer-events: none;
  }

  /* ── Logo slot — direct <img> pointing to the logo file ──────────────── */
  .mobile-fs__logo-slot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -54%);
    z-index: 10;
    width: min(78vw, 380px);
    pointer-events: none;
    user-select: none;
  }

  #mobile-fs-logo-img {
    width: 100%;
    display: block;
    filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.6));
  }

  /* ── Top-right navigation ─────────────────────────────────────────── */
  .mobile-fs__nav {
    position: absolute;
    top: max(20px, env(safe-area-inset-top, 20px));
    left: 18px;
    right: 18px;
    z-index: 20;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-fs__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    background: none;
    border: none;
    padding: 12px 0;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
  }

  .mobile-fs__btn:active {
    color: #fff;
  }

  .mobile-fs__btn--join {
    color: #ff1a2e;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75);
    letter-spacing: 2.2px;
  }

  .mobile-fs__btn--join:active {
    color: #ff6070;
  }

  /* ── Intro splash (KNAS-inspired) ────────────────────────────────── */
  .mobile-intro {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: opacity;
  }

  .mobile-intro.is-exiting {
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
  }

  .mobile-intro__logo {
    width: min(80vw, 390px);
    display: block;
    animation: mobileIntroReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes mobileIntroReveal {
    from { opacity: 0; transform: translateY(48px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ── About overlay panel ──────────────────────────────────────────── */
  .mobile-fs__about-panel {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-fs__about-panel.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-fs__about-close {
    position: absolute;
    top: max(18px, env(safe-area-inset-top, 18px));
    right: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    width: 38px;
    height: 38px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    transition: background 0.18s ease, border-color 0.18s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-fs__about-close:active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.7);
  }

  /* About content — kept minimal so it fits any phone without scrolling */
  .mobile-fs__about-content {
    text-align: center;
    padding: 20px 36px 32px;
    max-width: 320px;
  }

  .mobile-fs__about-label {
    margin: 0 0 14px;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
  }

  .mobile-fs__about-title {
    margin: 0 0 22px;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: clamp(42px, 13vw, 64px);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1;
    color: #fff;
    text-transform: uppercase;
  }

  .mobile-fs__about-desc {
    margin: 0 0 36px;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.68);
  }

  .mobile-fs__about-cta {
    display: inline-block;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #ff6b6b;
    text-decoration: none;
    border-bottom: 1px solid rgba(221, 51, 51, 0.4);
    padding-bottom: 3px;
    transition: color 0.18s, border-color 0.18s;
  }

  .mobile-fs__about-cta:active {
    color: #ff9090;
    border-color: rgba(221, 51, 51, 0.85);
  }
}
