:root {
  --ink: #12151a;
  --ink-2: #1c222b;
  --paper: #f3efe6;
  --muted: #c4cad3;
  --line: rgba(243, 239, 230, 0.16);
  --accent: #e4572e;
  --accent-2: #f0a202;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --max: 1120px;
  --pad: clamp(1rem, 4vw, 1.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--paper);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(228, 87, 46, 0.18), transparent 55%),
    radial-gradient(900px 600px at -10% 20%, rgba(240, 162, 2, 0.1), transparent 50%),
    linear-gradient(165deg, #0e1116 0%, var(--ink) 45%, #171c24 100%);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--pad);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-decoration: none;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--paper);
}

.nav-cta {
  color: var(--paper) !important;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.1rem;
}

.hero {
  position: relative;
  min-height: calc(100vh - 4.25rem);
  min-height: calc(100dvh - 4.25rem);
  display: flex;
  align-items: flex-end;
  padding: 1.75rem var(--pad) 3.25rem;
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  transform: scale(1.04);
  animation: hero-ken 28s ease-in-out alternate infinite;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 12, 16, 0.72) 0%, rgba(10, 12, 16, 0.55) 28%, rgba(10, 12, 16, 0.88) 68%, rgba(10, 12, 16, 0.97) 100%),
    linear-gradient(90deg, rgba(10, 12, 16, 0.75) 0%, rgba(10, 12, 16, 0.35) 55%, rgba(10, 12, 16, 0.55) 100%);
}

@keyframes hero-ken {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.2%, -0.6%, 0); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
  animation: grid-drift 28s linear infinite;
  opacity: 0.4;
}

@keyframes grid-drift {
  from { background-position: 0 0; }
  to { background-position: 64px 64px; }
}

.hero-inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  animation: rise 0.9s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.brand-mark {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--paper);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-services .section-head {
  margin-bottom: 1.5rem;
}

.hero-services .section-head h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.hero-services .section-head p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff8f5;
}

.btn-primary:hover {
  background: #cf4a24;
}

.btn-ghost {
  color: var(--paper);
  border: 1px solid var(--line);
  background: transparent;
}

.btn-ghost:hover {
  border-color: rgba(243, 239, 230, 0.35);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) var(--pad);
}

.section-alt {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(28, 34, 43, 0.55), transparent);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.75rem;
}

.section-head h2,
.contact-panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p,
.contact-panel > p {
  margin: 0;
  color: var(--muted);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 46rem;
}

.service-list li {
  display: grid;
  grid-template-columns: minmax(9rem, 0.38fr) 1fr;
  gap: 0.75rem 1.5rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.service-list li.is-in {
  opacity: 1;
  transform: none;
}

.service-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.service-list h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.service-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-2);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.contact {
  padding-bottom: clamp(4rem, 10vw, 6rem);
}

.contact-panel {
  max-width: 40rem;
  padding: 0;
}

.contact-panel .btn {
  margin-top: 1.75rem;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem var(--pad) calc(1.25rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Tablet */
@media (max-width: 900px) {
  .service-list li {
    grid-template-columns: minmax(8rem, 0.42fr) 1fr;
    gap: 0.5rem 1.1rem;
  }
}

/* Mobile */
@media (max-width: 720px) {
  body {
    font-size: 1rem;
  }

  .site-header {
    padding-top: calc(0.85rem + env(safe-area-inset-top, 0px));
  }

  .nav {
    gap: 0.35rem 0.85rem;
  }

  .nav a {
    font-size: 0.88rem;
  }

  .hero {
    min-height: 0;
    align-items: stretch;
    padding:
      1.15rem
      var(--pad)
      calc(2.25rem + env(safe-area-inset-bottom, 0px));
  }

  .hero-media img {
    object-position: 62% 30%;
    animation: none;
    transform: scale(1.02);
  }

  .hero-media::after {
    background:
      linear-gradient(
        180deg,
        rgba(8, 10, 14, 0.82) 0%,
        rgba(8, 10, 14, 0.78) 35%,
        rgba(8, 10, 14, 0.92) 70%,
        rgba(8, 10, 14, 0.98) 100%
      );
  }

  .hero-grid {
    opacity: 0.22;
    background-size: 48px 48px;
  }

  .brand-mark {
    margin-bottom: 0.9rem;
    font-size: clamp(2rem, 11vw, 2.85rem);
  }

  .hero-services .section-head {
    margin-bottom: 1.1rem;
  }

  .hero-services .section-head h1 {
    font-size: clamp(1.45rem, 6.5vw, 1.85rem);
  }

  .hero-services .section-head p {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .service-list {
    max-width: none;
  }

  .service-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.8rem 0;
  }

  .service-list h2 {
    font-size: 1.02rem;
  }

  .service-list p {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .cta-row {
    margin-top: 1.35rem;
  }

  .cta-row .btn,
  .contact-panel .btn {
    width: 100%;
  }

  .section-head {
    margin-bottom: 1.75rem;
  }

  .steps {
    gap: 1.35rem;
  }

  .steps li {
    gap: 0.85rem;
  }

  .steps h3 {
    font-size: 1.1rem;
  }

  .contact-panel .btn {
    word-break: break-word;
  }
}

/* Small phones */
@media (max-width: 400px) {
  .nav a:not(.nav-cta) {
    display: none;
  }

  .brand-mark {
    font-size: 1.85rem;
  }

  .service-list p {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-grid,
  .hero-media img { animation: none; }
  .hero-inner,
  .service-list li {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}
