:root {
  --bg: #f4f1eb;
  --bg-strong: #f8f5ef;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #f6f1e9;
  --text: #1f1b16;
  --muted: #655b52;
  --accent: #ff7a1a;
  --accent-deep: #de5f05;
  --line: rgba(255, 122, 26, 0.18);
  --shadow-soft: 18px 18px 40px rgba(194, 176, 155, 0.55), -14px -14px 32px rgba(255, 255, 255, 0.82);
  --shadow-inset: inset 8px 8px 16px rgba(209, 195, 178, 0.55), inset -8px -8px 16px rgba(255, 255, 255, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.56);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 26, 0.18), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.9), transparent 20%),
    linear-gradient(145deg, #efe7db 0%, #f7f3ed 46%, #efe7db 100%);
  color: var(--text);
  overflow-x: hidden;
}

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

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

.page-shell {
  position: relative;
  isolation: isolate;
  padding: 24px;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.6;
  pointer-events: none;
  z-index: -3;
}

.ambient-one {
  top: 8%;
  left: -8%;
  width: 340px;
  height: 340px;
  background: rgba(255, 122, 26, 0.28);
  animation: floatAmbient 9s ease-in-out infinite;
}

.ambient-two {
  right: -10%;
  bottom: 6%;
  width: 420px;
  height: 420px;
  background: rgba(255, 255, 255, 0.8);
  animation: floatAmbient 12s ease-in-out infinite reverse;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 122, 26, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 122, 26, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 85%);
  pointer-events: none;
  z-index: -2;
}

.topbar,
main {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
  padding: 16px 22px;
  position: sticky;
  top: 24px;
  z-index: 10;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Syne", sans-serif;
  font-weight: 700;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9d54, var(--accent));
  box-shadow: 0 0 20px rgba(255, 122, 26, 0.45);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topnav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.glass-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.3));
  border: var(--glass-border);
  box-shadow: 0 12px 40px rgba(123, 98, 74, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.soft-panel {
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  min-height: calc(100vh - 140px);
  padding-bottom: 48px;
}

.eyebrow,
.section-kicker,
.project-type,
.service-index {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 14px 18px;
  border-radius: 999px;
  margin-bottom: 20px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Syne", sans-serif;
  line-height: 1.02;
}

h1 {
  font-size: clamp(3.2rem, 7vw, 6.3rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  max-width: 14ch;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 60ch;
  font-size: 1.06rem;
  margin-top: 20px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #ff9c50, var(--accent));
  color: white;
  box-shadow: 0 18px 30px rgba(255, 122, 26, 0.28);
}

.btn-secondary {
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
  color: var(--text);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.stat-card,
.service-card,
.project-card,
.contact-card,
.expertise-panel,
.timeline {
  border-radius: 28px;
  padding: 24px;
}

.stat-value {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.orbital-card {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1 / 1.06;
  border-radius: 36px;
  display: grid;
  place-items: center;
  overflow: hidden;
  transform-style: preserve-3d;
}

.hud-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 122, 26, 0.28);
  animation: spinRing linear infinite;
}

.ring-one {
  width: 72%;
  height: 72%;
  animation-duration: 14s;
}

.ring-two {
  width: 94%;
  height: 94%;
  border-style: dashed;
  animation-duration: 22s;
  animation-direction: reverse;
}

.profile-frame {
  position: relative;
  z-index: 2;
  width: 62%;
  aspect-ratio: 0.88;
  border-radius: 34px;
  padding: 14px;
  overflow: hidden;
  box-shadow:
    0 18px 40px rgba(132, 102, 73, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.profile-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  filter: saturate(1.02) contrast(1.03);
}

.floating-tag {
  position: absolute;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 30px rgba(132, 102, 73, 0.15);
  font-weight: 500;
}

.tag-one {
  top: 14%;
  left: 8%;
  animation: drift 6s ease-in-out infinite;
}

.tag-two {
  top: 22%;
  right: 10%;
  animation: drift 7s ease-in-out infinite reverse;
}

.tag-three {
  bottom: 13%;
  left: 16%;
  animation: drift 8s ease-in-out infinite;
}

section {
  padding: 56px 0;
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 30px;
}

.service-grid,
.project-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card,
.project-card {
  position: relative;
  overflow: hidden;
}

.service-card {
  isolation: isolate;
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease,
    background 260ms ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: -35% auto auto -15%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.2), transparent 68%);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 260ms ease, transform 260ms ease;
  pointer-events: none;
  z-index: 0;
}

.service-card::after,
.project-card::after,
.contact-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -45% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.22), transparent 65%);
  pointer-events: none;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 28px 44px rgba(132, 102, 73, 0.2);
}

.service-card:hover::before {
  opacity: 1;
  transform: scale(1.08);
}

.service-card:nth-child(1) {
  animation: serviceFloat 5.8s ease-in-out infinite;
}

.service-card:nth-child(2) {
  animation: serviceFloat 6.6s ease-in-out infinite 0.4s;
}

.service-card:nth-child(3) {
  animation: serviceFloat 6.1s ease-in-out infinite 0.8s;
}

.service-card:nth-child(4) {
  animation: serviceFloat 6.9s ease-in-out infinite 0.2s;
}

.service-card:nth-child(5) {
  animation: serviceFloat 5.9s ease-in-out infinite 0.7s;
}

.service-card:nth-child(6) {
  animation: serviceFloat 6.4s ease-in-out infinite 1s;
}

.service-index,
.project-type {
  display: inline-block;
  color: var(--accent-deep);
  margin-bottom: 12px;
}

.service-card h3 {
  max-width: 10ch;
  margin-bottom: 8px;
  line-height: 1.02;
}

.service-card p {
  font-size: 1.08rem;
  line-height: 1.9;
}

.expertise-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
}

.expertise-panel ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.expertise-panel li {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.timeline {
  display: grid;
  gap: 22px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 16px;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-top: 6px;
  background: linear-gradient(135deg, #ffb47d, var(--accent));
  box-shadow: 0 0 20px rgba(255, 122, 26, 0.45);
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 720ms ease, transform 720ms ease;
}

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

@keyframes floatAmbient {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -22px, 0) scale(1.06);
  }
}

@keyframes spinRing {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes drift {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
}

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

@media (max-width: 1080px) {
  .hero,
  .expertise-layout,
  .service-grid,
  .project-showcase,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 16px;
  }

  .topbar {
    position: static;
    padding: 18px;
    margin-bottom: 28px;
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.7rem, 15vw, 4.5rem);
  }

  h2 {
    max-width: 100%;
  }

  .orbital-card {
    aspect-ratio: 1 / 1;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .floating-tag {
    font-size: 0.82rem;
    padding: 12px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
