:root {
  --ink: #101816;
  --muted: #66726f;
  --paper: #f7f4ef;
  --paper-2: #ede8df;
  --deep: #071412;
  --deep-2: #102622;
  --accent: #1aa584;
  --accent-strong: #0f8066;
  --line: rgba(16, 24, 22, 0.14);
  --white: #ffffff;
  --header-height: 76px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}

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

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 56px);
  color: var(--white);
  transition:
    background 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(247, 244, 239, 0.9);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.header-right,
.header-action {
  opacity: 0;
  animation: slide-in 620ms ease forwards;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-width: 0;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.brand-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.brand-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  object-position: center;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 0.92rem;
  animation-delay: 90ms;
}

.nav-links a {
  position: relative;
  color: color-mix(in srgb, currentColor 78%, transparent);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.header-right {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  animation-delay: 160ms;
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, currentColor 24%, transparent);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.site-header.is-scrolled .social-links a {
  background: rgba(255, 255, 255, 0.55);
}

.social-links a:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(26, 165, 132, 0.14);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-links a:last-child svg {
  fill: currentColor;
  stroke: none;
}

.header-action {
  padding: 11px 18px;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--deep);
  padding: calc(var(--header-height) + 48px) clamp(20px, 6vw, 84px) 42px;
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  transform: scale(1.02);
  animation: image-settle 1100ms ease forwards;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 12, 11, 0.9) 0%, rgba(4, 12, 11, 0.66) 35%, rgba(4, 12, 11, 0.1) 72%),
    linear-gradient(180deg, rgba(4, 12, 11, 0.4) 0%, rgba(4, 12, 11, 0.04) 44%, rgba(4, 12, 11, 0.76) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 730px;
  padding-bottom: min(8vh, 86px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 700px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 11vw, 9.5rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 570px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.04rem, 1.8vw, 1.28rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--accent-strong);
}

.button.primary:hover {
  background: #0a715a;
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.hero-status {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 5vw, 70px);
  bottom: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(360px, calc(100% - 40px));
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.status-dot {
  width: 11px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(26, 165, 132, 0.7);
  animation: pulse 1800ms ease infinite;
}

.section-band {
  background: var(--paper-2);
}

.intro,
.services,
.showcase,
.process,
.contact {
  padding: clamp(70px, 10vw, 132px) clamp(20px, 6vw, 84px);
}

.intro-grid,
.showcase,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.showcase h2,
.contact h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.intro-grid p,
.showcase-copy p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.75;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.1fr);
  gap: 40px;
  margin-bottom: 54px;
}

.section-heading .section-kicker {
  padding-top: 0.6rem;
}

.service-rows {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(28px, 5vw, 46px) 0;
  border-bottom: 1px solid var(--line);
}

.row-number {
  color: var(--accent-strong);
  font-weight: 900;
  font-size: 0.86rem;
}

.service-row h3 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.6vw, 2.4rem);
  line-height: 1.05;
}

.service-row p {
  max-width: 800px;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.68;
}

.showcase {
  color: var(--white);
  background:
    radial-gradient(circle at 82% 20%, rgba(26, 165, 132, 0.22), transparent 30%),
    linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 100%);
}

.showcase .section-kicker {
  color: #8be2cb;
}

.showcase-copy p {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 24px;
}

.solution-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.solution-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 24px;
  padding: 25px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.solution-item span {
  color: #8be2cb;
  font-weight: 800;
  font-size: 0.86rem;
}

.solution-item strong {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.28;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.timeline-step {
  min-height: 220px;
  padding: 28px 26px 0 0;
  border-right: 1px solid var(--line);
}

.timeline-step:last-child {
  border-right: 0;
}

.timeline-step span {
  display: inline-flex;
  min-height: 35px;
  align-items: center;
  color: var(--accent-strong);
  font-weight: 900;
}

.timeline-step p {
  margin: 36px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.contact {
  background: var(--paper);
}

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

.form-check {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 15px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  outline: 0;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 165, 132, 0.14);
}

.contact-form .button {
  width: fit-content;
  border: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 30px clamp(20px, 6vw, 84px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--deep);
}

.footer-logo {
  display: block;
  width: min(220px, 54vw);
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--white);
}

.footer-logo img {
  width: 100%;
  height: auto;
}

.footer-meta {
  display: grid;
  gap: 6px;
}

.site-footer p {
  margin: 0;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-weight: 800;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.86);
}

.footer-social a:hover {
  color: #8be2cb;
}

.response-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(7, 20, 18, 0.88), rgba(16, 38, 34, 0.82)),
    url("assets/hero-smart-home.webp") center / cover;
}

.response-panel {
  width: min(680px, 100%);
  padding: clamp(30px, 6vw, 56px);
  color: var(--ink);
  background: rgba(247, 244, 239, 0.94);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.response-logo {
  display: block;
  width: min(260px, 70vw);
  margin-bottom: 34px;
}

.response-logo img {
  width: 100%;
  height: auto;
}

.response-panel h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 0.98;
}

.response-panel p:not(.section-kicker) {
  margin: 20px 0 30px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.reveal,
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
}

.reveal {
  animation: reveal-up 720ms ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 120ms;
}

.reveal:nth-child(3) {
  animation-delay: 220ms;
}

.reveal:nth-child(4) {
  animation-delay: 320ms;
}

.reveal-on-scroll.is-visible {
  animation: reveal-up 640ms ease forwards;
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes image-settle {
  to {
    transform: scale(1);
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(26, 165, 132, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(26, 165, 132, 0);
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .header-action {
    padding: 9px 14px;
  }

  .social-links {
    display: none;
  }

  .hero {
    min-height: 94svh;
    padding: calc(var(--header-height) + 54px) 20px 28px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(4, 12, 11, 0.9), rgba(4, 12, 11, 0.42)),
      linear-gradient(180deg, rgba(4, 12, 11, 0.16), rgba(4, 12, 11, 0.78));
  }

  .hero h1 {
    font-size: clamp(3.6rem, 17vw, 6.4rem);
  }

  .hero-status {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 10px;
  }

  .intro-grid,
  .showcase,
  .contact,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .solution-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .timeline-step {
    min-height: auto;
    padding: 26px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline-step p {
    margin-top: 12px;
  }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 480px) {
  .brand {
    gap: 7px;
  }

  .brand-logo {
    width: 34px;
    height: 30px;
  }

  .brand span:last-child {
    max-width: 118px;
    line-height: 1.05;
  }

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

  .button {
    width: 100%;
  }
}

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

  .reveal,
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
