*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --yellow: #f5c518;
  --orange: #e8853d;
  --white: #ffffff;
  --dark: #050508;
  --dark-card: #0d0d18;
  --gold: #c8922a;
  --text-muted: rgba(255, 255, 255, 0.55);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark);
  color: var(--white);
  font-family: "Barlow", sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* Custom Cursor */
.cursor {
  width: 12px;
  height: 12px;
  background: var(--yellow);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--white);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transition:
    transform 0.18s ease,
    width 0.2s,
    height 0.2s;
  opacity: 0.6;
}

/* Stars background */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.stars span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: twinkle var(--d, 4s) var(--delay, 0s) infinite;
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.6);
  }
  20% {
    opacity: calc(var(--op, 0.7) * 0.5);
  }
  50% {
    opacity: var(--op, 0.7);
    transform: scale(1.25);
  }
  80% {
    opacity: calc(var(--op, 0.7) * 0.4);
  }
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  gap: 10px;
}
.nav-logo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}
nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 5, 8, 0.95), transparent);
  pointer-events: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  position: relative;
  z-index: 1;
}
.nav-links li a {
  text-decoration: none;
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--white);
  padding: 8px 22px;
  border-radius: 4px;
  transition: color 0.2s;
  position: relative;
}
.nav-links li a:hover {
  color: var(--yellow);
}
.nav-links li.active a {
  background: var(--orange);
  color: var(--white);
  clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
  padding: 8px 28px;
}
.nav-menu {
  width: 36px;
  height: 36px;
  display: none; /* hidden on desktop; shown on mobile via media query */
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  margin-left: 16px;
}
.nav-menu span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}
.nav-menu span:nth-child(1) {
  width: 100%;
}
.nav-menu span:nth-child(2) {
  width: 70%;
}
.nav-menu span:nth-child(3) {
  width: 85%;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 120px 60px 80px;
  overflow: hidden;
}

/* Globe visual */
.globe-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-30%, -43%);
  width: 480px;
  height: 480px;
  pointer-events: none;
  z-index: 1;
}
.globe {
  --tile: 960px; /* width of one full wrap of the 2:1 map at this globe height */
  width: 100%;
  height: 100%;
  background-image: url("assets/earth-map.jpg");
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: 0 center;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  /* blue atmospheric glow + dark rim so the flat map reads as a round planet */
  box-shadow:
    0 0 120px rgba(60, 130, 230, 0.35),
    inset 0 0 50px 8px rgba(0, 0, 0, 0.55),
    inset -22px -18px 70px rgba(0, 0, 0, 0.5);
  animation: globeSpin 30s linear infinite;
}
/* faint cool curvature glow — kept subtle so city lights stay the focus */
.globe::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 34% 28%,
    rgba(120, 160, 220, 0.18),
    transparent 50%
  );
  pointer-events: none;
  z-index: 2;
}
/* thin atmosphere ring around the edge */
.globe::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 26px rgba(90, 140, 220, 0.5);
  pointer-events: none;
  z-index: 2;
}
.globe-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 40px;
  background: rgba(30, 100, 200, 0.3);
  filter: blur(30px);
  border-radius: 50%;
}
@keyframes globeFloat {
  0%,
  100% {
    transform: translateX(-30%) translateY(0);
  }
  50% {
    transform: translateX(-30%) translateY(-14px);
  }
}
@keyframes globeSpin {
  from {
    background-position-x: 0;
  }
  to {
    background-position-x: calc(-1 * var(--tile));
  }
}

/* Gold ring */
.gold-ring {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  border: 18px solid var(--gold);
  border-radius: 50%;
  opacity: 0.3;
  animation: ringPulse 4s ease-in-out infinite;
}

@keyframes ringPulse {
  0%,
  100% {
    opacity: 0.2;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 0.4;
    transform: translateY(-50%) scale(1.04);
  }
}

/* Hero card */
.hero-card {
  position: relative;
  z-index: 2;
  background: rgba(13, 13, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 36px 46px 38px;
  max-width: 620px;
  margin-top: -20px;
  backdrop-filter: blur(6px);
  animation: fadeUp 1s ease both;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title-techno {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(80px, 12vw, 140px);
  line-height: 0.9;
  color: var(--yellow);
  letter-spacing: 0.02em;
  display: block;
  animation: fadeUp 1s 0.15s ease both;
}
.hero-title-studio {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(80px, 12vw, 140px);
  line-height: 0.9;
  color: var(--white);
  letter-spacing: 0.02em;
  display: block;
  animation: fadeUp 1s 0.25s ease both;
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  animation: fadeUp 1s 0.35s ease both;
}
.logo-icon {
  width: 56px;
  height: 56px;
}

.hero-tagline {
  font-family: "Barlow", sans-serif;
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.05em;
  animation: fadeUp 1s 0.45s ease both;
}
.hero-tagline span {
  color: var(--orange);
  font-weight: 600;
}

.hero-footer {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  padding: 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  animation: fadeUp 1s 0.55s ease both;
}
.hero-estd {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 400;
  color: var(--white);
}
.rocket-icon {
  font-size: 22px;
}
.hero-social {
  font-size: 15px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* SCROLL CTA */
.scroll-cta {
  position: absolute;
  bottom: 90px;
  right: 56px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 1s 0.8s ease both;
}
.scroll-cta span {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--yellow), transparent);
  animation: scrollDrop 1.8s ease-in-out infinite;
}
@keyframes scrollDrop {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 1;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 0;
  }
}

/* SERVICES */
.section {
  padding: 100px 60px;
  position: relative;
  z-index: 2;
}
.section-label {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
  font-weight: 600;
}
.section-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(48px, 7vw, 90px);
  line-height: 0.95;
  margin-bottom: 60px;
}
.section-title em {
  color: var(--yellow);
  font-style: normal;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.service-card {
  background-color: var(--dark-card);
  background-repeat: no-repeat, no-repeat;
  background-position:
    center,
    right -8px center;
  background-size: cover, 46%;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.35s ease,
    background-color 0.35s ease;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
/* layer 1 = dimming gradient (keeps the title readable), layer 2 = the logo */
/* All three logo cards share the SAME gradient and sizing. Only a per-image
   brightness correction differs — the source Trésor art is lighter than the
   other two, so it's toned down to make the three render equally bright. */
.service-card--design,
.service-card--culture,
.service-card--tresor {
  background-image: none;
}
.service-card--design::after,
.service-card--culture::after,
.service-card--tresor::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 13, 28, 0.55), rgba(13, 13, 28, 0.78)), var(--logo);
  background-position: center, center;
  background-size: cover, contain;
  background-repeat: no-repeat, no-repeat;
  filter: brightness(var(--logo-bright, 1));
  z-index: 0;
  pointer-events: none;
}
.service-card--design {
  --logo: url("assets/svc-design.png");
  --logo-bright: 1.04;
}
.service-card--culture {
  --logo: url("assets/svc-culture.png");
  --logo-bright: 1.1;
}
.service-card--tresor {
  --logo: url("assets/svc-tresor.png");
}
/* keep the title, badge and details crisp above the logo layer */
.service-card--design > *,
.service-card--culture > *,
.service-card--tresor > * {
  position: relative;
  z-index: 1;
}
.service-card--design::before,
.service-card--culture::before,
.service-card--tresor::before {
  z-index: 2;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--yellow);
  transition: height 0.4s ease;
}
.service-card:hover {
  background-color: #111124;
  transform: translateY(-4px);
}
.service-card:hover::before {
  height: 100%;
}

/* number badge — tucked in the corner, appears on hover */
.service-num {
  position: absolute;
  top: 32px;
  left: 40px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 22px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}
.service-card:hover .service-num {
  opacity: 1;
  transform: translateY(0);
}

/* title: large and centered by default, shrinks and moves up on hover */
.service-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  transition:
    font-size 0.35s ease,
    color 0.35s ease;
}
.service-card:hover .service-name {
  font-size: 26px;
  color: var(--yellow);
}

/* details: hidden until hover */
.service-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.45s ease,
    opacity 0.4s ease,
    margin-top 0.4s ease;
}
.service-card:hover .service-body {
  max-height: 260px;
  opacity: 1;
  margin-top: 16px;
}
.service-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 10px;
}
.service-tags {
  font-size: 14px;
  font-weight: 600;
  color: var(--yellow);
  line-height: 1.7;
  margin: 0;
}

/* ABOUT */
.about-section {
  padding: 100px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.about-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(245, 197, 24, 0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.about-visual {
  position: relative;
}
.about-box {
  background: var(--dark-card);
  border: 1px solid rgba(245, 197, 24, 0.12);
  border-radius: 12px;
  padding: 50px 40px;
  position: relative;
  overflow: hidden;
}
.about-box::after {
  content: "TA";
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 120px;
  color: rgba(245, 197, 24, 0.04);
  line-height: 1;
}
.stat-row {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}
.stat {
}
.stat-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 56px;
  color: var(--yellow);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 4px;
}
.about-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 20px;
}
.about-text p strong {
  color: var(--white);
  font-weight: 600;
}
/* Mission & Vision */
.mv-block {
  display: grid;
  gap: 22px;
  margin: 8px 0 28px;
}
.mv-item {
  padding-left: 18px;
  border-left: 3px solid var(--yellow);
}
.mv-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 8px;
}
.mv-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  color: var(--dark);
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  clip-path: polygon(6% 0%, 100% 0%, 94% 100%, 0% 100%);
  transition:
    background 0.2s,
    transform 0.2s;
}
.btn:hover {
  background: var(--orange);
  transform: translateX(4px);
}
.btn-outline {
  background: transparent;
  color: var(--yellow);
  border: 1.5px solid var(--yellow);
  clip-path: none;
  border-radius: 3px;
}
.btn-outline:hover {
  background: var(--yellow);
  color: var(--dark);
}

/* PORTFOLIO */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 3px;
}
.port-item {
  background: var(--dark-card);
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.port-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}
.port-item:hover .port-bg {
  transform: scale(1.06);
}
.port-bg-1 {
  background: linear-gradient(135deg, #2b2b2e 0%, #161618 100%);
}
.port-bg-2 {
  background: linear-gradient(135deg, #202023 0%, #313135 100%);
}
.port-bg-3 {
  background: linear-gradient(135deg, #1b1b1e 0%, #2d2d31 100%);
}
.port-bg-4 {
  background: linear-gradient(135deg, #34343a 0%, #19191c 100%);
}
.port-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(5, 5, 8, 0.95) 0%,
    rgba(5, 5, 8, 0.4) 55%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}
.port-item:hover .port-overlay {
  opacity: 1;
}
.port-tag {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 6px;
}
.port-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
}
/* logo centered in the card with the title directly below it */
.port-logo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  z-index: 1;
  transition:
    filter 0.4s ease,
    opacity 0.4s ease,
    transform 0.5s ease;
}
.port-item:hover .port-logo-wrap {
  filter: blur(4px);
  opacity: 0.3;
}
.port-logo {
  display: block;
  max-width: 70%;
  max-height: 44%;
  width: auto;
  object-fit: contain;
  z-index: 1;
}
.port-title {
  z-index: 2;
  padding: 0 14px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
  color: var(--white);
}
.port-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 6px;
}
.port-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--yellow);
}
/* linked cards behave like the rest of the grid, no underline */
.port-item--link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.port-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  opacity: 0.15;
}

/* CONTACT */
.contact-section {
  padding: 100px 60px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 400px;
}
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.contact-item:hover {
  color: var(--white);
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(245, 197, 24, 0.08);
  border: 1px solid rgba(245, 197, 24, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.form-group input,
.form-group textarea {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: "Barlow", sans-serif;
  font-size: 15px;
  padding: 14px 18px;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--yellow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-status {
  margin: 4px 0 0;
  min-height: 1.2em;
  font-size: 14px;
  font-weight: 600;
}
.form-status.ok {
  color: #46d369;
}
.form-status.err {
  color: #ff5c5c;
}

/* FOOTER */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 40px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.footer-logo {
  background-image: asset("assets/logo.png");
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  letter-spacing: 0.08em;
}

.footer-logo span {
  color: var(--yellow);
}
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  color: var(--text-muted);
  transition:
    border-color 0.2s,
    color 0.2s;
}
.footer-socials a:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(245, 197, 24, 0.3),
    transparent
  );
  margin: 0 60px;
  position: relative;
  z-index: 2;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  nav {
    padding: 20px 24px;
    justify-content: flex-end;
  }

  /* Show hamburger, collapse links into a dropdown */
  .nav-menu {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    min-width: 200px;
    background: rgba(10, 10, 14, 0.97);
    border: 1px solid rgba(245, 197, 24, 0.18);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition:
      opacity 0.25s ease,
      transform 0.25s ease;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links li a {
    display: block;
  }
  .nav-links li.active a {
    clip-path: none;
    border-radius: 4px;
  }

  /* Hamburger morphs into an X when open */
  .nav-menu.open span {
    width: 100%;
  }
  .nav-menu.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-menu.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-menu.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero {
    padding: 100px 24px 60px;
    justify-content: flex-start; /* stack from the top */
    align-items: center; /* center the card + planet */
    overflow: visible; /* let the stacked content grow instead of clipping */
  }
  .hero-card {
    order: 1; /* card on top … */
    margin-top: 0;
    padding: 36px 28px 38px;
  }
  .hero-footer {
    padding: 20px 28px;
  }
  .section,
  .contact-section {
    padding: 70px 24px;
  }
  .about-section {
    grid-template-columns: 1fr;
    padding: 70px 24px;
    gap: 40px;
  }
  .contact-section {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }
  footer {
    flex-direction: column;
    gap: 20px;
    padding: 30px 24px;
    text-align: center;
  }
  .gold-ring {
    width: 180px;
    height: 180px;
    right: -40px;
    border-width: 10px;
  }
  .globe-wrap {
    /* Drop out of absolute positioning and into the flow, placed AFTER the card
       (order: 2) so the planet always sits below the TechnoArt Studio card,
       however tall the card gets. position: relative keeps the glow anchored. */
    order: 2;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 40px 0 0;
    width: 300px;
    height: 300px;
  }
  .globe {
    --tile: 600px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .divider {
    margin: 0 24px;
  }
}

/* Narrow phones: shrink the planet and re-seat the card just below it. */
@media (max-width: 480px) {
  .globe-wrap {
    width: 240px;
    height: 240px;
    margin-top: 32px;
  }
  .globe {
    --tile: 480px;
  }
}
