/* ============================================================
   SORA STUDIOS — styles.css
   ============================================================ */

/* ===========================
   FONTS: Gebuk via @font-face
   =========================== */
@font-face {
  font-family: 'Gebuk';
  src: url('fonts/Gebuk-7O7nK.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --clr-bg:        #0d0d1a;
  --clr-surface:   #13131f;
  --clr-nav-bg:    rgba(15, 13, 35, 0.85);
  --clr-white:     #ffffff;
  --clr-text:      #e8e8f0;
  --clr-muted:     #9898b0;

  --clr-pink:      #e8589a;
  --clr-blue:      #4b6ce8;
  --clr-green:     #3db87e;
  --clr-purple:    #9b59d4;
  --clr-orange:    #e8874b;
  

  --tile-overlay:  rgba(29, 29, 29, 0.80);
  --tile-shadow:   0 8px 32px rgba(0,0,0,0.25);
  --tile-shadow-hover: 0 0 28px 4px rgba(255,255,255,0.18);

  --card-shadow:   0 0 18px 2px rgba(255,255,255,0.07);
  --card-shadow-hover: 0 0 36px 8px rgba(255,255,255,0.18);

  --font-body:     'Roboto', sans-serif;
  --font-hero:     'Inria Serif', serif;
  --font-gebuk:    'Gebuk', 'Georgia', serif;

  --nav-h:         70px;
  --transition:    0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  overflow-x: hidden;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; }

/* ============================================================
   GEBUK FONT CLASS
   ============================================================ */
.gebuk {
  font-family: var(--font-gebuk);
  font-style: italic;
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  background-color: #24173E;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  /* Exit: scale up & fade out, revealing the site beneath */
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

#preloader.preloader-exit {
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
}

/* Container holds both circle and star so they scale together on exit */
.loader-assets {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Loading ring — spins continuously */
.loading-circle {
  position: absolute;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.10);
  border-top-color: rgba(255, 255, 255, 0.90);
  border-right-color: rgba(255, 255, 255, 0.35);
  animation: preloader-spin 1s linear infinite;
}

/* Sora Star — rotates 360° over 1.8 s with a subtle pulse */
.sora-star {
  width: 68px;
  height: 68px;
  z-index: 2;
  animation: preloader-star 1.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
}

@keyframes preloader-spin {
  to { transform: rotate(360deg); }
}

/* Star: fade in → spin 360° → slight scale bounce at the end */
@keyframes preloader-star {
  0%   { opacity: 0; transform: rotate(0deg) scale(0.7); }
  12%  { opacity: 1; transform: rotate(0deg) scale(1); }
  80%  { transform: rotate(340deg) scale(1); }
  92%  { transform: rotate(368deg) scale(1.12); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Body locked while preloader is active */
body.preloader-active {
  overflow: hidden;
}

/* ============================================================
   LEGACY / UNUSED PRELOADER HELPERS (kept for safety)
   ============================================================ */
.hidden { visibility: hidden; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 900px;
  z-index: 1000;
  background: rgba(60, 55, 100, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

.nav-logo img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}

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

.nav-links a.active {
  border-bottom: 2px solid #fff;
  padding-bottom: 2px;
}

.hero-tag {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 500;
  color: #fff;
  cursor: default;
  opacity: 0;
  transform: scale(0.6);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease;
}

.nav-links .nav-cta {
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50px;
  color: #fff;
  font-weight: 500;
  transition: background 0.25s, border-color 0.25s;
}

.nav-links .nav-cta:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-close {
  display: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

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

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.40);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  width: 100%;
  will-change: transform;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Stagger animation base */
.animate-stagger {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-stagger.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll down is absolute positioned so only fade, no slide */
#scrollDown.animate-stagger {
  transform: translateX(-50%);
}

#scrollDown.animate-stagger.visible {
  transform: translateX(-50%);
}

.hero-headline {
  font-family: var(--font-hero);
  font-size: clamp(3.2rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 32px;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero-sora {
  font-family: var(--font-gebuk);
  font-style: italic;
  color: #fff;
}

.hero-plain {
  font-family: var(--font-hero);
  font-style: normal;
  font-weight: 400;
}

/* TAGS */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

.hero-tag {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  cursor: default;
  opacity: 0;
  transform: scale(0.6);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease;
}

.hero-tag.tag-visible {
  opacity: 1;
  transform: scale(1);
}

.hero-tag.tag-pulse {
  animation: tagPulse 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes tagPulse {
  0%   { transform: scale(1) rotate(0deg); }
  40%  { transform: scale(1.18) rotate(-4deg); }
  70%  { transform: scale(1.06) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.hero-tag.hovered {
  transform: scale(1.1) rotate(-3deg) !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  animation: none !important;
}

.tag-pink  { background: var(--clr-pink); }
.tag-blue  { background: var(--clr-blue); }
.tag-green { background: var(--clr-green); }
.tag-purple { background: var(--clr-purple); }
.tag-orange { background: var(--clr-orange); }

/* SCROLL DOWN */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
}

.hero-scroll-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.3s ease;
}

.hero-scroll:hover .hero-scroll-inner {
  transform: scale(1.08);
}

.hero-scroll:hover .scroll-label {
  color: #ffffff;
}

.hero-scroll:hover .scroll-arrow {
  filter: brightness(0) invert(1) brightness(2);
}

.hero-scroll:hover {
  transform: translateX(-50%) scale(1.08);
}

.scroll-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s ease;
}

.scroll-arrow {
  width: 20px;
  height: auto;
  animation: arrowBounce 1.6s ease-in-out infinite;
  filter: brightness(0) invert(1);
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  position: relative;
  padding: 100px 24px;
  background: var(--clr-bg);
  z-index: 2;
}

.services-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-heading {
  font-family: var(--font-hero);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: #fff;
  text-align: center;
  margin-bottom: 52px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-heading.revealed {
  opacity: 1;
  transform: translateY(0);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* SERVICE TILE */
.service-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  min-height: 260px;
  opacity: 0;
  transform: translateY(36px) translateZ(0);
  transition: opacity 0.65s ease,
              transform 0.65s ease,
              box-shadow var(--transition);
  box-shadow: var(--tile-shadow);
  will-change: transform, box-shadow;
}

.service-tile.revealed {
  opacity: 1;
  transform: translateY(0);
}

.service-tile:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--tile-shadow-hover);
  animation: tileFlash 0.5s ease forwards;
}

.tile-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  will-change: transform;
}

.service-tile:hover .tile-img {
  transform: scale(1.07);
}

.tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(29, 29, 29, 0.65); /* slightly lighter base */
  box-shadow: inset 0 0 40px rgba(0,0,0,0.25);
  transition: background var(--transition), opacity var(--transition);
}

.service-tile:hover .tile-overlay {
  background: rgba(255, 255, 255, 0.0) !important; /* fully transparent overlay on hover */
}

.tile-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 260px;
  padding: 22px 24px;
}

.tile-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tile-icon-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Circle ring on hover */
.tile-icon-wrap::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0);
  transition: border-color 0.35s ease, inset 0.35s ease;
}

.service-tile:hover .tile-icon-wrap::after {
  border-color: rgba(255,255,255,0.7);
  inset: -8px;
}

.tile-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.tile-title {
  font-family: var(--font-hero);
  font-size: 1.25rem;
  font-weight: 400;
  color: #fff;
}

.tile-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.tile-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
}

.tile-arrow-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-arrow-wrap img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}

.service-tile:hover .tile-arrow-wrap img {
  transform: rotate(-45deg) scale(1.15);
}

/* ============================================================
   OUR WORK
   ============================================================ */
.work {
  padding: 80px 0 100px;
  background: var(--clr-bg);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.work-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.work-heading {
  text-align: left;
  margin-bottom: 40px;
}

.work-scroll-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.work-track-wrapper {
  flex: 1;
  overflow: hidden;
}

.work-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

/* WORK CARD */
.work-card {
  flex: 0 0 280px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: visible;
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.tag-branding { background: #C83032; }

.work-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

.work-card-img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #1a1a2e;
  border-radius: 16px 16px 0 0;
}

.work-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover .work-card-img-wrap img {
  transform: scale(1.05);
}

.work-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.work-card-title {
  font-family: var(--font-hero);
  font-size: 1.1rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 10px;
}

.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.work-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #fff;
}

.work-card-desc {
  font-size: 0.82rem;
  color: var(--clr-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.work-card-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  transition: color 0.25s;
  margin-top: auto;
}

.work-card-link:hover { color: #fff; }

.work-card-arrow-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-card-arrow-wrap img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}

.work-card-link:hover .work-card-arrow-wrap img {
  transform: rotate(-45deg) scale(1.15);
}

/* SEE MORE CARD */
.work-card-seemore {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: rgba(255,255,255,0.02);
}

.seemore-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s, transform 0.25s;
}

.seemore-link:hover {
  color: #fff;
  transform: scale(1.06);
}

.seemore-text {
  font-family: var(--font-hero);
  font-size: 1rem;
}

.seemore-arrow-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.seemore-arrow-wrap img {
  width: 16px;
  filter: brightness(0) invert(1);
}

.seemore-link:hover .seemore-arrow-wrap {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  transform: scale(1.1);
}

/* ARROW BUTTONS */
.work-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
  flex-shrink: 0;
}

.work-arrow:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.work-arrow:disabled {
  opacity: 0.25;
  pointer-events: none;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--clr-bg);
  z-index: 2;
}

/* Network / circuit board background effect */
.about-network-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.about-network-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../Website Images/About us background image.png') center center / cover no-repeat;
  z-index: 0;
}

.about-network-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1;
}

.about-overlay-panel {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
}

.about-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: rgba(57, 57, 57, 0.548);
  border: 3px solid rgba(192, 192, 192, 0.133);
  border-radius: 20px;
  padding: 48px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-inner.revealed {
  opacity: 1;
  transform: translateY(0);
}

.about-img-wrap {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

.about-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-heading {
  font-family: var(--font-hero);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.25;
}

.about-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--clr-muted);
  line-height: 1.7;
}

.about-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-top: 8px;
  transition: color 0.25s;
}

.about-link:hover { color: #fff; }

.about-arrow-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.about-arrow-wrap img {
  width: 14px;
  filter: brightness(0) invert(1);
}

.about-link:hover .about-arrow-wrap {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  transform: scale(1.1);
}

/* ============================================================
   SERVICE TILE — scroll-triggered overlay flash
   When a tile enters view it flashes the white hover overlay
   then settles back to the default dark overlay.
   ============================================================ */
@keyframes tileFlash {
  0%   { background: var(--tile-overlay); }        /* dark start */
  35%  { background: rgba(29, 29, 29, 0.25); }     /* flash to white-ish (same as hover) */
  100% { background: var(--tile-overlay); }        /* settle back to dark */
}

.service-tile.flash .tile-overlay {
  animation: tileFlash 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ============================================================
   HERO STICKY WRAP
   ============================================================ */
.hero-sticky-wrap {
  position: relative;
  height: 200vh;
  z-index: 0;
}

/* Services slides up over the sticky hero */
.services {
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
  margin-top: -100vh;
}

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

  /* NAV */
  .nav-hamburger { display: flex; }

  /* Mobile menu — top-right corner panel, Kota-inspired */
  .nav-links {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 300px;
    height: auto;
    background: rgba(75, 68, 120, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 56px 32px 36px;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 20px;
    z-index: 998;
    box-shadow: 0 8px 40px rgba(0,0,0,0.45);
    transform-origin: top right;
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1),
                opacity 0.25s ease;
  }

  .nav-links.open {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1.25rem;
    font-family: var(--font-hero);
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    padding: 8px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: color 0.2s;
  }
  

  .nav-links li:last-child a { border-bottom: none; }

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

  .nav-links a.active {
    border-bottom: 2px solid #fff;
    color: #fff;
  }

  /* CTA button inside mobile menu */
  .nav-links .nav-cta {
    margin-top: 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.4) !important;
    border-radius: 50px !important;
    padding: 10px 20px !important;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.4) !important;
  }

  /* X close button inside the menu */
  .nav-close {
    display: flex;
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.3);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    line-height: 1;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
  }

  .nav-close:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,0.08);
  }

  /* Hamburger stays visible but doesn't transform — X replaces it */
  .nav-hamburger.active span:nth-child(1) { opacity: 0; }
  .nav-hamburger.active span:nth-child(2) { opacity: 0; }
  .nav-hamburger.active span:nth-child(3) { opacity: 0; }

  /* HERO */
  .hero-headline { font-size: clamp(2.6rem, 9vw, 3.4rem); }
  .hero-tag { font-size: 0.72rem; padding: 6px 14px; }
  .hero-line { white-space: normal; }

  /* Scroll down — move it higher on mobile */
  .hero-scroll { bottom: 72px; }

  /* SERVICES */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-tile { min-height: 220px; }

  .tile-content { min-height: 220px; }

  /* WORK — full width cards, one at a time */
  .work-inner { padding: 0 12px; }
  .work-track-wrapper { overflow: hidden; }
  .work-card {
    flex: 0 0 calc(100vw - 80px);
    max-width: 340px;
  }
  .work-arrow { display: flex; }

  /* ABOUT */
  .about-inner {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 28px;
  }

  .about-img-wrap { aspect-ratio: 16/9; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .hero-tags { gap: 8px; }
  .hero-tag { font-size: 0.68rem; padding: 5px 12px; }
  .navbar { width: calc(100% - 24px); top: 10px; }
  .services { padding: 70px 16px; }
  .work-card { flex: 0 0 calc(100vw - 72px); }
}
