:root {
  --ink: #1d2422;
  --muted: #66706b;
  --paper: #f7f4ef;
  --surface: #ffffff;
  --line: rgba(29, 36, 34, 0.12);
  --deep: #17201d;
  --green: #0f766e;
  --green-soft: #dff1ec;
  --gold: #b98936;
  --coral: #cf6f4f;
  --shadow: 0 22px 60px rgba(25, 31, 29, 0.14);
  --radius: 8px;
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.8;
  text-rendering: geometricPrecision;
}

body::selection {
  background: var(--green);
  color: #fff;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: clip;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 58px);
  color: #fff;
  transition: background 220ms ease, box-shadow 220ms ease, height 220ms ease;
}

.site-header.is-elevated {
  height: 70px;
  background: rgba(247, 244, 239, 0.92);
  color: var(--ink);
  box-shadow: 0 12px 35px rgba(29, 36, 34, 0.1);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.site-header.is-elevated .brand-mark {
  border-color: rgba(15, 118, 110, 0.22);
  background: var(--green-soft);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.brand-mark::before {
  width: 9px;
  height: 30px;
  background: var(--gold);
  transform: rotate(30deg);
}

.brand-mark::after {
  width: 11px;
  height: 11px;
  top: 8px;
  right: 10px;
  background: var(--green);
  box-shadow: -13px 17px 0 var(--coral);
}

.brand-mark span {
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.site-header.is-elevated .brand-mark span {
  border-color: rgba(15, 118, 110, 0.18);
}

.brand-copy {
  display: grid;
  gap: 0;
  line-height: 1.25;
}

.brand-copy strong {
  font-size: 1rem;
  font-weight: 800;
}

.brand-copy small {
  color: currentColor;
  opacity: 0.7;
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 0.94rem;
}

.main-nav a {
  position: relative;
  opacity: 0.8;
  transition: opacity 180ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 -8px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  opacity: 1;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-action {
  min-width: 132px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  text-align: center;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
}

.site-header.is-elevated .header-action {
  border-color: rgba(15, 118, 110, 0.22);
  background: #fff;
}

.hero {
  position: relative;
  min-height: 94vh;
  padding: calc(var(--header-height) + 34px) clamp(18px, 4vw, 58px) 82px;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 78% 18%, rgba(185, 137, 54, 0.24), transparent 24rem),
    radial-gradient(circle at 18% 68%, rgba(207, 111, 79, 0.18), transparent 21rem),
    linear-gradient(135deg, #111815 0%, #1c2b26 54%, #173c37 100%);
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 132px;
  background: linear-gradient(180deg, rgba(247, 244, 239, 0), var(--paper));
  pointer-events: none;
}

.motion-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.82;
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(310px, 0.68fr);
  align-items: center;
  gap: clamp(30px, 5vw, 68px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1,
.section-heading h2,
.intro h2,
.contact h2 {
  margin: 0;
  line-height: 1.18;
  font-weight: 850;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(3rem, 6.4vw, 5.55rem);
}

.hero-lead {
  max-width: 690px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.6vw, 1.26rem);
}

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

.button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--gold), #e1bd7a);
  color: #1d1811;
  box-shadow: 0 16px 38px rgba(185, 137, 54, 0.24);
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  margin-top: 30px;
}

.metric-strip span {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
}

.metric-strip strong,
.metric-strip small {
  display: block;
}

.metric-strip strong {
  color: #fff;
  font-size: clamp(1.25rem, 2.3vw, 2rem);
  line-height: 1.1;
}

.metric-strip small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
}

.hero-visual {
  position: relative;
  min-height: 465px;
  display: grid;
  place-items: center;
}

.signal-orbit {
  position: relative;
  width: min(372px, 82vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.orbit-ring {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  animation: rotateSoft 16s linear infinite;
}

.ring-two {
  inset: 0;
  border-style: dashed;
  border-color: rgba(185, 137, 54, 0.36);
  animation-duration: 24s;
  animation-direction: reverse;
}

.orbit-core {
  position: relative;
  width: 168px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.34), transparent 38%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 44px rgba(255, 255, 255, 0.08), 0 28px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.orbit-core strong,
.orbit-core small {
  position: relative;
  z-index: 2;
  line-height: 1;
}

.orbit-core strong {
  margin-top: 14px;
  color: #fff;
  font-size: 2.72rem;
  font-weight: 900;
}

.orbit-core small {
  margin-top: -34px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 800;
}

.bolt-line {
  position: absolute;
  width: 14px;
  height: 106px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4d79a, var(--gold) 46%, var(--coral));
  transform: rotate(28deg);
  box-shadow: 0 0 28px rgba(244, 215, 154, 0.45);
  animation: pulseBolt 2.6s ease-in-out infinite;
}

.orbit-node {
  position: absolute;
  width: 14px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.75);
}

.node-a {
  top: 11%;
  right: 22%;
  background: var(--gold);
}

.node-b {
  left: 9%;
  top: 42%;
  background: var(--green);
}

.node-c {
  bottom: 18%;
  right: 12%;
  background: var(--coral);
}

.floating-panel {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 114px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(14px);
  animation: floatPanel 5.6s ease-in-out infinite;
}

.floating-panel span {
  width: 12px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
}

.floating-panel strong {
  font-size: 0.94rem;
}

.panel-one {
  top: 16%;
  left: 1%;
}

.panel-two {
  right: 4%;
  bottom: 23%;
  animation-delay: -1.2s;
}

.panel-two span {
  background: var(--green);
}

.panel-three {
  left: 13%;
  bottom: 10%;
  animation-delay: -2.6s;
}

.panel-three span {
  background: var(--coral);
}

.band {
  background: var(--surface);
}

.section-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 116px) 0;
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: start;
}

.intro h2,
.section-heading h2,
.contact h2 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.intro p:last-child,
.contact-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 34px;
}

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

.service-card {
  position: relative;
  min-height: 255px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 38px rgba(29, 36, 34, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto 24px 22px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--coral));
  transform: scaleX(0.18);
  transform-origin: right;
  transition: transform 240ms ease;
}

.service-card:hover {
  border-color: rgba(15, 118, 110, 0.22);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

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

.service-icon {
  display: inline-grid;
  width: 44px;
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 42px;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
}

.service-card h3,
.timeline-item h3,
.project-row span {
  margin: 0;
  font-size: 1.17rem;
  line-height: 1.35;
}

.service-card p,
.timeline-item p,
.project-row p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.workflow {
  position: relative;
}

.workflow::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(185, 137, 54, 0.08) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}

.workflow .section-inner {
  position: relative;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.timeline-item {
  position: relative;
  min-height: 244px;
  padding: 28px;
  border-inline-start: 1px solid var(--line);
}

.timeline-item:last-child {
  border-inline-start: 0;
}

.timeline-item span {
  display: block;
  width: 12px;
  aspect-ratio: 1;
  margin-bottom: 44px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 9px rgba(185, 137, 54, 0.12);
}

.timeline-item:nth-child(2) span {
  background: var(--green);
  box-shadow: 0 0 0 9px rgba(15, 118, 110, 0.12);
}

.timeline-item:nth-child(3) span {
  background: var(--coral);
  box-shadow: 0 0 0 9px rgba(207, 111, 79, 0.12);
}

.projects-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.project-stack {
  display: grid;
  gap: 12px;
}

.project-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.project-row:first-child {
  border-top: 1px solid var(--line);
}

.project-row span {
  color: var(--green);
  font-weight: 850;
}

.contact {
  background:
    radial-gradient(circle at 18% 12%, rgba(185, 137, 54, 0.2), transparent 18rem),
    linear-gradient(135deg, #fff, #eef6f3);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.72fr);
  gap: clamp(32px, 7vw, 90px);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 750;
}

.contact-form span {
  font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 112px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(15, 118, 110, 0.52);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.site-footer {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 26px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--green);
  font-weight: 800;
}

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

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

@keyframes rotateSoft {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseBolt {
  0%,
  100% {
    opacity: 0.72;
    transform: rotate(28deg) scaleY(0.94);
  }

  50% {
    opacity: 1;
    transform: rotate(28deg) scaleY(1.05);
  }
}

@keyframes floatPanel {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -12px, 0);
  }
}

@media (max-width: 1020px) {
  .site-header {
    gap: 12px;
  }

  .main-nav {
    display: none;
  }

  .hero-grid,
  .intro-layout,
  .projects-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: calc(var(--header-height) + 34px);
  }

  .hero-visual {
    min-height: 420px;
    order: -1;
  }

  .service-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-item:nth-child(2) {
    border-inline-start: 0;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 74px;
  }

  .site-header {
    padding: 13px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand-copy small {
    display: none;
  }

  .header-action {
    min-width: auto;
    padding: 9px 12px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: auto;
    padding-bottom: 46px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 15vw, 4.2rem);
  }

  .hero-visual {
    min-height: 320px;
  }

  .signal-orbit {
    width: min(320px, 88vw);
  }

  .orbit-core {
    width: 144px;
  }

  .orbit-core strong {
    font-size: 2.25rem;
  }

  .floating-panel {
    min-width: 94px;
    padding: 9px 11px;
  }

  .metric-strip,
  .service-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .metric-strip span,
  .service-card,
  .timeline-item {
    min-height: auto;
  }

  .timeline-item,
  .timeline-item:nth-child(2),
  .timeline-item:last-child {
    border-inline-start: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline-item:last-child {
    border-bottom: 0;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    display: grid;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
