/* ──────────────────────────────────────────
   Team 4 Gears — style.css
   ────────────────────────────────────────── */

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

:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #181818;
  --surface: #1e1e1e;
  --border: #2a2a2a;
  --text: #f0f0f0;
  --text-muted: #888888;
  --accent: #ff6b35;
  --accent2: #ff9a5c;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --font-head: "Syne", sans-serif;
  --font-body: "Inter", sans-serif;
  --nav-h: 72px;
  --max-w: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body.menu-open {
  overflow: hidden;
}

a,
button,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
ul {
  list-style: none;
}
input,
textarea,
button {
  font-family: var(--font-body);
}

button,
a,
input,
textarea {
  touch-action: manipulation;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 13px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition:
    background var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.35);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  transition:
    border-color var(--transition),
    color var(--transition);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--transition),
    background var(--transition);
  overflow: hidden;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 10, 10, 0.95);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 62px;
  width: auto;
  max-width: 160px;
  display: block;
}
.logo-gear {
  width: 32px;
  height: 32px;
  color: var(--accent);
  animation: spin-slow 12s linear infinite;
}
@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}
.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.logo-text .accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--white);
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  font-size: 0.85rem;
  padding: 10px 22px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 60px) 40px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  gap: 60px;
}

.hero-bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 107, 53, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 53, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}
.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 107, 53, 0.12) 0%,
    transparent 70%
  );
  top: -100px;
  right: -100px;
}
.hero-orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(
    circle,
    rgba(255, 154, 92, 0.07) 0%,
    transparent 70%
  );
  bottom: 0;
  left: -80px;
}

.hero-content {
  flex: 1;
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent2);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}
.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.line-reveal {
  display: block;
  animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.line-reveal.delay-1 {
  animation-delay: 0.12s;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}
.hero-sub strong {
  color: var(--text);
  font-weight: 500;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition:
    border-color var(--transition),
    color var(--transition);
}
.pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* hero visual */
.hero-visual {
  flex: 0 0 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gear-ring {
  position: absolute;
  animation: spin-slow 20s linear infinite;
}
.gear-ring-1 {
  width: 340px;
  height: 340px;
}
.gear-ring-2 {
  width: 420px;
  height: 420px;
  animation-direction: reverse;
  animation-duration: 30s;
}

.gear-center {
  position: relative;
  z-index: 2;
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, var(--surface), var(--bg3));
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(255, 107, 53, 0.12);
}
.gear-center img {
  max-width: 80%;
  height: auto;
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-drop 1.8s ease-in-out infinite;
}
@keyframes scroll-drop {
  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;
  }
}

/* === WORKS === */
.works-section {
  padding: 100px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.work-card--wide {
  grid-column: span 2;
}

.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}
.work-card:hover {
  border-color: rgba(255, 107, 53, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.work-thumb {
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.work-card--wide .work-thumb {
  height: 260px;
}

.work-mock {
  width: 85%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  backdrop-filter: blur(4px);
}
.mock-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.mock-bar span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.mock-hero {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 12px;
}
.mock-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mock-line {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.w40 {
  width: 40%;
}
.w45 {
  width: 45%;
}
.w50 {
  width: 50%;
}
.w55 {
  width: 55%;
}
.w60 {
  width: 60%;
}
.w65 {
  width: 65%;
}
.w70 {
  width: 70%;
}
.w75 {
  width: 75%;
}
.w80 {
  width: 80%;
}
.w85 {
  width: 85%;
}
.w90 {
  width: 90%;
}

.work-info {
  padding: 24px;
}
.work-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.work-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.work-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.work-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: letter-spacing var(--transition);
}
.work-link:hover {
  letter-spacing: 0.04em;
}

/* === WHY === */
.why-section {
  padding: 100px 40px;
  display: flex;
  gap: 80px;
  align-items: flex-start;
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.why-left {
  flex: 0 0 380px;
}
.why-left .section-eyebrow {
  display: block;
  margin-bottom: 12px;
}
.why-left .section-title {
  margin-bottom: 20px;
}
.why-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}
.why-right {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.why-subtitle {
  grid-column: 1 / -1;
  font-family: var(--font-head);
  font-size: 1.55rem;
  margin-bottom: 16px;
  color: var(--white);
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition:
    border-color var(--transition),
    transform var(--transition);
}
.why-card:hover {
  border-color: rgba(255, 107, 53, 0.3);
  transform: translateY(-3px);
}
.why-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.why-card h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.why-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === TEAM === */
.team-section {
  padding: 100px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}
.team-card:hover {
  border-color: rgba(255, 107, 53, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}
.team-photo {
  height: 240px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(0, 0, 0, 0.15)
  );
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-info {
  padding: 24px;
}
.team-info h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.team-role {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}
.team-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}
.team-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--accent);
  transition:
    color var(--transition),
    letter-spacing var(--transition);
}
.team-link:hover {
  letter-spacing: 0.04em;
}

/* === CONTACT === */
.contact-section {
  padding: 100px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.contact-top {
  text-align: center;
  margin-bottom: 60px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-val {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 500;
  transition: color var(--transition);
}
a.contact-val:hover {
  color: var(--accent);
}

.contact-socials {
  display: flex;
  gap: 16px;
}
.social-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition:
    color var(--transition),
    border-color var(--transition);
}
.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #555;
}

.btn-submit {
  align-self: flex-start;
}
.form-success {
  display: none;
  font-size: 0.9rem;
  color: #69f0ae;
  background: rgba(105, 240, 174, 0.07);
  border: 1px solid rgba(105, 240, 174, 0.2);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.form-success.visible {
  display: block;
}

/* === FOOTER === */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 40px 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.footer-brand {
  flex: 0 0 240px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col h5 {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-link {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-link:hover {
  color: var(--accent);
}
.legal-toggle {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.legal-toggle:hover {
  color: var(--accent2);
}
.contact-legal-links {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.contact-legal-links span {
  color: var(--text-muted);
}
.contact-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.legal-card {
  display: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 24px;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height var(--transition),
    opacity var(--transition);
  opacity: 0;
}
.legal-card--visible {
  display: block;
  max-height: 480px;
  opacity: 1;
}
.legal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.legal-card-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
}
.legal-close {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}
.legal-card-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.footer-bottom {
  max-width: var(--max-w);
  margin: 28px auto 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === EMAIL FLOAT === */
.wa-float {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  right: max(24px, env(safe-area-inset-right));
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  /* Prevent button from ever causing horizontal overflow */
  max-width: 56px;
  box-sizing: content-box;
}

@media (hover: hover) and (pointer: fine) {
  .wa-float:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
  }
}

.wa-float:active {
  transform: scale(0.95);
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 768px) {
  .wa-float {
    bottom: max(16px, env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
    width: 50px;
    height: 50px;
  }
  .wa-float svg {
    width: 24px;
    height: 24px;
  }
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
  .hero {
    padding: calc(var(--nav-h) + 50px) 30px 70px;
  }
  .works-section,
  .why-section,
  .team-section,
  .contact-section,
  .footer {
    padding-left: 30px;
    padding-right: 30px;
  }
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    gap: 40px;
    padding: calc(var(--nav-h) + 40px) 30px 80px;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-pills,
  .hero-actions {
    justify-content: center;
  }
  .hero-sub {
    max-width: 720px;
    margin: 0 auto 28px;
  }
  .hero-visual {
    display: none;
  }
  .why-section {
    flex-direction: column;
    gap: 40px;
  }
  .why-left {
    flex: none;
    max-width: 100%;
  }
  .why-right {
    grid-template-columns: 1fr;
  }
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Hide desktop nav links and CTA from 900px down; show hamburger instead */
@media (max-width: 900px) {
  .navbar {
    padding: 0 20px;
  }
  .nav-logo-img {
    height: 52px;
  }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100dvh - var(--nav-h));
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    padding: 28px 24px 36px;
    transform: translateX(100%);
    transition:
      transform var(--transition),
      opacity var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1100;
    overflow-y: auto;
  }
  .nav-links.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-link {
    display: block;
    width: 100%;
    font-size: 1.05rem;
    padding: 10px 0;
  }
  .nav-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

@media (max-width: 850px) {
  .hero {
    padding: calc(var(--nav-h) + 35px) 24px 60px;
  }
  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }
  .hero-sub {
    font-size: 1rem;
  }
  .hero-pills {
    justify-content: center;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .work-thumb {
    height: 200px;
  }
  .work-card--wide .work-thumb {
    height: 220px;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .why-right {
    gap: 18px;
  }
  .contact-grid {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-logo-img {
    height: 48px;
  }

  .hero {
    padding: calc(var(--nav-h) + 30px) 18px 50px;
  }
  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }
  .hero-sub {
    font-size: 0.98rem;
    line-height: 1.75;
  }
  .hero-actions {
    width: 100%;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }
  .work-card--wide {
    grid-column: span 1;
  }

  .why-right {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-top {
    flex-direction: column;
    gap: 36px;
  }
  .footer-links {
    flex-direction: column;
    gap: 28px;
  }

  .works-section,
  .why-section,
  .team-section,
  .contact-section {
    padding: 60px 18px;
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 0 16px;
  }
  .hero {
    padding: calc(var(--nav-h) + 28px) 16px 48px;
  }
  .hero-badge {
    padding: 6px 14px;
    font-size: 0.75rem;
  }
  .hero-title {
    font-size: clamp(1.9rem, 12vw, 2.6rem);
  }
  .hero-sub {
    font-size: 0.95rem;
  }
  .hero-sub br {
    display: none;
  }
  .hero-pills,
  .hero-actions {
    gap: 12px;
  }
  .work-info {
    padding: 20px;
  }
  .team-photo {
    height: 220px;
  }
  .contact-info {
    gap: 22px;
  }
  .contact-panel {
    width: 100%;
  }
  .btn-primary,
  .btn-ghost {
    font-size: 0.85rem;
    padding: 12px 20px;
  }
  .footer {
    padding: 50px 16px 24px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: calc(var(--nav-h) + 24px) 14px 40px;
  }
  .hero-title {
    font-size: clamp(1.75rem, 14vw, 2.4rem);
  }
  .section-title {
    font-size: 2rem;
  }
  .section-sub,
  .work-desc,
  .why-body,
  .team-info p,
  .contact-val,
  .contact-label,
  .footer-tagline {
    font-size: 0.95rem;
  }
  .nav-link {
    font-size: 1rem;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost,
  .btn-submit {
    width: 100%;
  }
}
