:root {
  --bg: #111418;
  --bg-soft: #1b2027;
  --panel: rgba(28, 33, 40, 0.68);
  --panel-strong: rgba(39, 45, 54, 0.88);
  --text: #f7f9fb;
  --muted: #bcc5d1;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --chrome: #e4e9f0;
  --chrome-shadow: rgba(214, 220, 229, 0.2);
  --accent: #9eabbf;
  --glow: radial-gradient(circle at top, rgba(228, 233, 240, 0.22), transparent 42%);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(214, 220, 229, 0.3), transparent 30%),
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #1b2027 0%, #2b313c 42%, #171b21 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.35));
}

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

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 80px;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(16, 19, 24, 0.52), rgba(20, 24, 30, 0.7)),
    linear-gradient(90deg, rgba(17, 21, 26, 0.72), rgba(17, 21, 26, 0.28) 38%, rgba(17, 21, 26, 0.58) 100%),
    url("https://images.pexels.com/photos/4792501/pexels-photo-4792501.jpeg?cs=srgb&dl=pexels-anete-lusina-4792501.jpg&fm=jpg");
  background-size: cover;
  background-position: center center;
}

.backdrop-glow,
.backdrop-grid,
.backdrop-paper,
.backdrop-tools {
  position: absolute;
  inset: 0;
}

.backdrop-glow {
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.12), transparent 20%),
    radial-gradient(circle at 76% 26%, rgba(255, 255, 255, 0.08), transparent 18%);
}

.backdrop-grid {
  display: none;
}

.backdrop-paper {
  display: none;
}

.backdrop-paper::before {
  content: "";
  position: absolute;
  right: 8%;
  top: 18%;
  width: min(34vw, 470px);
  height: min(48vw, 620px);
  border-radius: 22px;
  transform: rotate(-8deg);
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.92), rgba(228, 235, 244, 0.78)),
    linear-gradient(90deg, rgba(120, 134, 156, 0.12), transparent 28%);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.16),
    inset 0 0 0 1px rgba(82, 98, 122, 0.12);
}

.paper-lines,
.paper-roll {
  position: absolute;
  display: block;
}

.paper-lines {
  right: 11%;
  top: 23%;
  width: min(29vw, 400px);
  height: min(39vw, 500px);
  transform: rotate(-8deg);
  opacity: 0.5;
  background-image:
    linear-gradient(transparent 0, transparent calc(100% - 2px), rgba(78, 99, 127, 0.24) calc(100% - 2px)),
    linear-gradient(90deg, transparent 0, transparent calc(100% - 2px), rgba(78, 99, 127, 0.24) calc(100% - 2px)),
    linear-gradient(90deg, transparent 12%, rgba(78, 99, 127, 0.24) 12%, rgba(78, 99, 127, 0.24) 12.5%, transparent 12.5%),
    linear-gradient(transparent 18%, rgba(78, 99, 127, 0.18) 18%, rgba(78, 99, 127, 0.18) 18.4%, transparent 18.4%),
    linear-gradient(90deg, transparent 68%, rgba(78, 99, 127, 0.18) 68%, rgba(78, 99, 127, 0.18) 68.35%, transparent 68.35%),
    linear-gradient(transparent 58%, rgba(78, 99, 127, 0.18) 58%, rgba(78, 99, 127, 0.18) 58.35%, transparent 58.35%);
  background-size: 310px 190px, 310px 190px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-repeat: no-repeat;
}

.paper-roll {
  right: 30%;
  top: 14%;
  width: min(18vw, 240px);
  height: 44px;
  border-radius: 999px;
  transform: rotate(18deg);
  background:
    linear-gradient(180deg, rgba(251, 252, 255, 0.95), rgba(215, 223, 234, 0.8));
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.14),
    inset -16px 0 20px rgba(109, 126, 150, 0.16);
}

.paper-roll::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 45%, rgba(205, 214, 226, 0.95) 0 32%, rgba(156, 171, 191, 0.7) 32% 56%, rgba(242, 245, 249, 0.95) 56% 100%);
}

.backdrop-tools {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 10px 30px rgba(0, 0, 0, 0.2);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.brand-mark span {
  margin: 0 3px;
  color: var(--chrome);
}

.brand-text {
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--chrome), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

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

.section {
  padding: 72px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  min-height: calc(100vh - 86px);
  padding-top: 24px;
}

.hero-copy {
  display: grid;
  justify-items: center;
  max-width: 100%;
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--chrome);
}

h1,
h2,
h3,
.brand-mark {
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.1rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

h1 span {
  display: block;
  color: #abb4c1;
}

.hero-text,
.section-heading p,
.about-copy p,
.contact-copy p,
.card p,
.timeline-item p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 980px;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 32px 0 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

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

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button-primary {
  background: linear-gradient(135deg, #eef2f6 0%, #9aa7b8 100%);
  color: #060708;
  box-shadow: 0 10px 24px var(--chrome-shadow);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-metrics li,
.timeline-item,
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-metrics li {
  padding: 20px;
}

.hero-metrics strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero-metrics span {
  color: var(--muted);
  line-height: 1.5;
}

.chrome-card::before,
.hero-metrics li::before,
.timeline-item::before,
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--glow);
  opacity: 0.8;
  pointer-events: none;
}

.hero-card {
  padding: 26px;
}

.card-label {
  margin: 0 0 18px;
  color: var(--chrome);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
}

.service-stack {
  display: grid;
  gap: 16px;
}

.service-stack article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}

.service-stack article span,
.timeline-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-bottom: 12px;
  border: 1px solid var(--line-strong);
  color: var(--chrome);
}

.service-stack h2,
.section-heading h2,
.about-copy h2,
.contact-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.service-stack article h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

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

.card {
  min-height: 100%;
  padding: 24px;
}

.card h3,
.timeline-item h3 {
  margin: 0 0 12px;
  font-size: 1.28rem;
}

.accent-card {
  background: linear-gradient(135deg, rgba(201, 210, 222, 0.12), rgba(83, 91, 104, 0.18));
}

.gallery-card {
  min-height: 260px;
  display: grid;
  align-content: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at top right, rgba(214, 220, 229, 0.2), transparent 30%),
    var(--panel);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.about-section,
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.about-panel,
.contact-form {
  padding: 28px;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.feature-list li:last-child {
  border-bottom: 0;
}

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

.timeline-item {
  padding: 24px;
}

.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-details a {
  font-size: 1.05rem;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 15px 16px;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(214, 220, 229, 0.6);
  box-shadow: 0 0 0 4px rgba(214, 220, 229, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.form-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(8, 10, 14, 0.94);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

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

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

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

.reveal-delay {
  transition-delay: 120ms;
}

.reveal-delay-2 {
  transition-delay: 220ms;
}

@media (max-width: 1080px) {
  .hero,
  .service-stack-grid,
  .about-section,
  .contact-section,
  .timeline,
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .backdrop-paper::before {
    width: min(42vw, 380px);
    height: min(58vw, 500px);
    right: 4%;
    top: 22%;
  }

  .paper-lines {
    width: min(36vw, 320px);
    height: min(48vw, 420px);
    right: 7%;
    top: 26%;
  }

  .paper-roll {
    right: 24%;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1240px);
  }

  .site-header,
  .hero,
  .service-stack-grid,
  .about-section,
  .contact-section,
  .timeline,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    gap: 12px 16px;
  }

  .section {
    padding: 54px 0;
  }

  h1 {
    font-size: clamp(2.6rem, 16vw, 4.1rem);
  }

  .service-stack h2,
  .section-heading h2,
  .about-copy h2,
  .contact-copy h2 {
    font-size: clamp(1.8rem, 9vw, 2.7rem);
  }

  .site-backdrop {
    background-position: 62% center;
  }
}

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

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

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