:root {
  --bg: #0c0d10;
  --bg-2: #121317;
  --ink: #14151a;
  --paper: #faf9f6;
  --paper-2: #f1efe9;
  --amber: #f5b81c;
  --amber-light: #ffd34d;
  --amber-dark: #c98c06;
  --muted: #6b7280;
  --muted-light: rgba(255, 255, 255, 0.62);
  --line: rgba(20, 21, 26, 0.12);
  --line-dark: rgba(255, 255, 255, 0.1);
  --shadow: 0 30px 80px rgba(10, 12, 16, 0.22);
  --shadow-soft: 0 18px 44px rgba(10, 12, 16, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open,
body.is-loading {
  overflow: hidden;
}

::selection {
  background: rgba(245, 184, 28, 0.32);
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  margin-top: 0;
  letter-spacing: -0.02em;
}

/* ============ PRELOADER ============ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  background: var(--bg);
  transition: opacity 600ms var(--ease), visibility 600ms var(--ease);
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
}

.pl-shield {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: draw 1.4s var(--ease) forwards;
}

.pl-bolt {
  opacity: 0;
  transform-origin: center;
  animation: boltPop 0.6s var(--ease) 0.7s forwards;
}

.preloader-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.34em;
  font-size: 15px;
  color: #fff;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.9s forwards;
}

.preloader-text i {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5em;
  color: var(--amber);
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes boltPop {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  60% {
    opacity: 1;
    transform: scale(1.12);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* ============ SCROLL PROGRESS / CURSOR ============ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--amber), var(--amber-light));
  box-shadow: 0 0 16px rgba(245, 184, 28, 0.6);
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  width: 460px;
  height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(245, 184, 28, 0.16), transparent 62%);
  transition: opacity 400ms var(--ease);
  mix-blend-mode: screen;
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(18px, 4vw, 56px);
  color: #fff;
  transition: background 320ms var(--ease), box-shadow 320ms var(--ease), padding 320ms var(--ease), border-color 320ms var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.nav-active {
  background: rgba(12, 13, 16, 0.82);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line-dark);
  padding-block: 13px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  transition: transform 400ms var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.06);
}

.brand-text strong,
.brand-text small {
  display: block;
  line-height: 1;
  font-family: var(--font-display);
}

.brand-text strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--amber);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  font-size: 14px;
  font-weight: 600;
}

.site-nav > a:not(.nav-cta) {
  position: relative;
  opacity: 0.78;
  transition: color 200ms var(--ease), opacity 200ms var(--ease);
}

.site-nav > a:not(.nav-cta):hover {
  color: var(--amber);
  opacity: 1;
}

.site-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}

.site-nav > a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--amber);
  color: #15140f;
  font-weight: 700;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), background 240ms var(--ease);
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: var(--amber-light);
  box-shadow: 0 12px 26px rgba(245, 184, 28, 0.34);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 260ms var(--ease), opacity 200ms var(--ease);
}

.nav-active .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-active .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav-active .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  padding: 150px clamp(18px, 6vw, 88px) 96px;
  background: var(--bg);
}

.hero-media,
.hero-overlay,
.hero-grid {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-electrical-fitout.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.06);
  animation: heroDrift 22s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-overlay {
  background:
    radial-gradient(circle at 18% 30%, rgba(245, 184, 28, 0.2), transparent 30%),
    linear-gradient(90deg, rgba(8, 9, 12, 0.94) 0%, rgba(8, 9, 12, 0.72) 44%, rgba(8, 9, 12, 0.28) 100%),
    linear-gradient(0deg, rgba(8, 9, 12, 0.96), rgba(8, 9, 12, 0.05) 46%);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 30% 50%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 30% 50%, #000 10%, transparent 72%);
}

.hero-spark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(245, 184, 28, 0.55);
  animation: pulse 2.4s var(--ease) infinite;
}

.intro-band .eyebrow,
.clients .eyebrow,
.contact .eyebrow {
  color: var(--amber);
}

.section .eyebrow {
  color: var(--amber-dark);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 184, 28, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(245, 184, 28, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 184, 28, 0); }
}

.hero-title {
  margin: 0 0 22px;
  font-size: clamp(52px, 10vw, 130px);
  line-height: 0.94;
  font-weight: 800;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: wordUp 0.9s var(--ease-out) forwards;
}

.hero-title .line:nth-child(1) .word:nth-child(1) { animation-delay: 0.15s; }
.hero-title .line:nth-child(1) .word:nth-child(2) { animation-delay: 0.27s; }
.hero-title .line:nth-child(2) .word:nth-child(1) { animation-delay: 0.39s; }
.hero-title .line:nth-child(2) .word:nth-child(2) { animation-delay: 0.51s; }

.hero-title .accent {
  color: var(--amber);
  position: relative;
}

@keyframes wordUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-copy {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), color 260ms var(--ease);
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform 420ms var(--ease);
}

.btn-primary {
  background: var(--amber);
  color: #15140f;
  box-shadow: 0 16px 38px rgba(245, 184, 28, 0.28);
}

.btn-primary::before {
  background: linear-gradient(120deg, var(--amber-light), #fff);
  transform: translateY(101%);
}

.btn-primary:hover::before {
  transform: translateY(0);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn-ghost::before {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(0);
  border-radius: 999px;
}

.btn-ghost:hover::before {
  transform: scale(1);
}

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

.btn-primary:hover {
  box-shadow: 0 22px 50px rgba(245, 184, 28, 0.4);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 52px;
  max-width: 720px;
}

.hero-stats span {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 14px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-scroll {
  position: absolute;
  right: clamp(18px, 6vw, 88px);
  bottom: 36px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-scroll span {
  position: relative;
  width: 26px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}

.hero-scroll span::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--amber);
  animation: scrollDot 1.8s var(--ease) infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(22px, -14px, 0); }
}

/* ============ MARQUEE ============ */
.marquee {
  overflow: hidden;
  padding: 22px 0;
  background: var(--ink);
  color: #fff;
  border-block: 1px solid var(--line-dark);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 3vw, 34px);
  letter-spacing: -0.01em;
}

.marquee-track span {
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.92);
}

.marquee-track i {
  color: var(--amber);
  font-style: normal;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ============ SECTIONS ============ */
.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(80px, 11vw, 140px) clamp(18px, 6vw, 88px);
  background: var(--bg-2);
  color: #fff;
}

.intro-copy {
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.65;
}

.section,
.process {
  padding: clamp(80px, 11vw, 144px) clamp(18px, 6vw, 88px);
}

.section-head,
.intro-head {
  display: flex;
  flex-direction: column;
  margin-bottom: 48px;
}

h2 {
  max-width: 880px;
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 1.04;
  font-weight: 700;
}

h3 {
  font-size: 21px;
  line-height: 1.18;
  font-weight: 600;
}

/* ============ SERVICES ============ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 240px;
  padding: clamp(26px, 3vw, 38px);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 360ms var(--ease), box-shadow 360ms var(--ease), background 360ms var(--ease), border-color 360ms var(--ease);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--amber-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease);
}

.service-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 184, 28, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 420ms var(--ease);
}

.service-card:hover {
  transform: translateY(-8px);
  background: #fff;
  border-color: rgba(245, 184, 28, 0.4);
  box-shadow: var(--shadow-soft);
}

.service-card:hover::before,
.service-card:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.service-no {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--amber-dark);
  letter-spacing: 0.1em;
}

.service-card h3 {
  margin: 16px 0 12px;
}

.service-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.service-arrow {
  position: absolute;
  right: 26px;
  bottom: 24px;
  font-size: 20px;
  color: var(--amber-dark);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}

.service-card:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ============ PROCESS ============ */
.process {
  background: var(--paper-2);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber) 0%, rgba(20, 21, 26, 0.18) 0%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 1.4s var(--ease);
}

.timeline.is-drawn::before {
  background: linear-gradient(90deg, var(--amber), var(--amber-dark));
  background-size: 100% 100%;
}

.step {
  position: relative;
  min-height: 180px;
  padding: 30px 24px;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: none;
}

.step::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 7px rgba(245, 184, 28, 0.16);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}

.step:hover::before {
  transform: scale(1.25);
  box-shadow: 0 0 0 10px rgba(245, 184, 28, 0.22);
}

.step b {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--amber-dark);
  letter-spacing: 0.1em;
}

.step h3 {
  margin: 28px 0 8px;
  font-size: 24px;
}

.step span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* ============ WORKS ============ */
.work-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 18px;
}

.work-card {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg-2);
  color: #fff;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 360ms var(--ease), box-shadow 360ms var(--ease);
}

.work-card:nth-child(2),
.work-card:nth-child(3) {
  min-height: 340px;
}

.work-card img {
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 900ms var(--ease), filter 900ms var(--ease);
}

.work-card:nth-child(2) img { object-position: 64% 50%; }
.work-card:nth-child(3) img { object-position: 82% 50%; }

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 12, 16, 0.92), rgba(10, 12, 16, 0.06) 58%);
}

.work-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.1);
}

.work-meta {
  position: absolute;
  z-index: 1;
  left: 26px;
  right: 26px;
  bottom: 26px;
  transform: translateZ(40px) translateY(8px);
  transition: transform 360ms var(--ease);
}

.work-card:hover .work-meta {
  transform: translateZ(40px) translateY(0);
}

.work-meta small {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(245, 184, 28, 0.16);
  border: 1px solid rgba(245, 184, 28, 0.4);
  color: var(--amber-light);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work-meta h3 {
  font-size: 20px;
}

/* ============ CLIENTS ============ */
.clients {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(80px, 11vw, 140px) clamp(18px, 6vw, 88px);
  background:
    radial-gradient(circle at 80% 20%, rgba(245, 184, 28, 0.1), transparent 40%),
    var(--bg);
  color: #fff;
}

.clients h2 {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.4;
}

.client-list {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 12px;
}

.client-list span {
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  font-size: 15px;
  transition: background 260ms var(--ease), border-color 260ms var(--ease), transform 260ms var(--ease), color 260ms var(--ease);
}

.client-list span:hover {
  border-color: rgba(245, 184, 28, 0.6);
  background: rgba(245, 184, 28, 0.12);
  color: #fff;
  transform: translateY(-3px);
}

/* ============ TEAM ============ */
.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: 44px;
}

.team-copy {
  max-width: 660px;
}

.team-copy p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 17px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--amber-dark);
  font-weight: 700;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
  transition: gap 220ms var(--ease), color 220ms var(--ease);
}

.text-link::after {
  content: "→";
}

.text-link:hover {
  color: var(--ink);
  gap: 14px;
}

.team-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.team-metrics div {
  min-height: 180px;
  padding: 26px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), background 300ms var(--ease);
}

.team-metrics div:hover {
  transform: translateY(-6px);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.team-metrics strong {
  display: block;
  font-family: var(--font-display);
  color: var(--amber-dark);
  font-size: 40px;
  font-weight: 800;
}

.team-metrics span {
  display: block;
  margin-top: 36px;
  font-weight: 600;
}

/* ============ CONTACT ============ */
.contact {
  padding: clamp(80px, 11vw, 144px) clamp(18px, 6vw, 88px);
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 184, 28, 0.16), transparent 40%),
    var(--bg-2);
}

.contact-panel {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 76px);
  background: linear-gradient(160deg, #16181d, #0e0f13);
  color: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 184, 28, 0.28), transparent 65%);
  animation: floatGlow 8s ease-in-out infinite alternate;
}

@keyframes floatGlow {
  from { transform: translate(0, 0); }
  to { transform: translate(-30px, 30px); }
}

.contact-panel h2 {
  position: relative;
  color: #fff;
}

.contact-copy {
  position: relative;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
  font-size: 17px;
}

.contact-actions {
  position: relative;
}

.contact-actions .btn-ghost {
  border-color: rgba(255, 255, 255, 0.2);
}

/* ============ FOOTER ============ */
.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) auto minmax(260px, 0.9fr);
  align-items: start;
  gap: 36px 28px;
  padding: 56px clamp(18px, 6vw, 88px) 36px;
  background: var(--bg);
  color: rgba(255, 255, 255, 0.7);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand .brand-mark {
  margin-bottom: 4px;
}

.footer-brand strong {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.footer-brand p {
  max-width: 360px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.footer-links a {
  opacity: 0.78;
  transition: color 200ms var(--ease), opacity 200ms var(--ease);
}

.footer-links a:hover {
  color: var(--amber);
  opacity: 1;
}

.legal {
  display: grid;
  gap: 10px;
  font-size: 13px;
}

.legal details {
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 10px;
}

.legal summary {
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  list-style: none;
}

.legal summary::after {
  content: "+";
  float: right;
  color: var(--amber);
}

.legal details[open] summary::after {
  content: "−";
}

.legal p {
  margin: 10px 0 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.copyright {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============ TO TOP ============ */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--amber);
  color: #15140f;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(245, 184, 28, 0.34);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: opacity 300ms var(--ease), transform 300ms var(--ease), background 200ms var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.to-top:hover {
  background: var(--amber-light);
  transform: translateY(-3px) scale(1.05);
}

/* ============ REVEAL ============ */
.anim {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
  transition-delay: var(--anim-delay, 0ms);
}

.anim.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: 78px 16px auto 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(14, 15, 19, 0.97);
    border: 1px solid var(--line-dark);
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms var(--ease), transform 260ms var(--ease);
  }

  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav > a {
    padding: 14px 16px;
    border-radius: 12px;
  }

  .site-nav > a:not(.nav-cta):hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-cta {
    text-align: center;
    margin-top: 4px;
  }

  .intro-band,
  .clients,
  .team-layout {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .step:nth-child(2) {
    border-right: none;
  }

  .work-grid {
    grid-template-columns: 1fr 1fr;
  }

  .work-grid .work-card:first-child {
    grid-column: 1 / -1;
  }

  .timeline::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 128px;
  }

  .hero-scroll {
    display: none;
  }

  .service-grid,
  .timeline,
  .work-grid,
  .team-metrics,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .step {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .work-card,
  .work-card:nth-child(2),
  .work-card:nth-child(3) {
    min-height: 300px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  .anim,
  .hero-title .word {
    opacity: 1 !important;
    transform: none !important;
  }
}
