:root {
  --ink: #0b0f0e;
  --paper: #f8faf7;
  --muted: #66706a;
  --line: rgba(11, 15, 14, 0.14);
  --brand: #29f55b;
  --brand-dark: #10862f;
  --sun: #f4c84f;
  --coral: #ef755f;
  --blue: #245b82;
  --white: #ffffff;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 64px);
  color: var(--white);
  transition: background 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(248, 250, 247, 0.94);
  color: var(--ink);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong {
  font-size: 1rem;
  text-transform: uppercase;
}

.brand small {
  margin-top: 5px;
  color: currentColor;
  opacity: 0.72;
  font-size: 0.78rem;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-panel a {
  padding: 10px 14px;
  border-radius: 999px;
  color: currentColor;
  font-size: 0.92rem;
}

.nav-panel a:hover {
  background: rgba(41, 245, 91, 0.15);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: currentColor;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  padding: 148px clamp(18px, 6vw, 90px) 28px;
  overflow: hidden;
  color: var(--white);
}

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

.hero-media {
  background-color: #0b0f0e;
  background-image: url("data:image/webp;base64,UklGRqoAAABXRUJQVlA4IJ4AAADwBACdASogABUAPzGKvlYuqSajqAqp0CYJZQDIXDBkJIHYQYOaS2yY/G15DsalDnAA/ujviW+xVr/WYHBo0q5Ytpg9Zv0bz3WYoaqmisWxH/88XanBuXzGmNzHWvjQS+5pUalbt85pteRyXSRj6KKcE/8lA3/EXHcCO7ZMXGxs6JtX66ifjuqMn0Sxu+RCLImBlGHVhfJaNhqXzA4AAA==");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-media img {
  object-fit: cover;
  object-position: 0% 50%;
  transform: translateX(20%) scale(1.4);
  transform-origin: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 8, 7, 0.88), rgba(5, 8, 7, 0.52), rgba(5, 8, 7, 0.22)),
    linear-gradient(0deg, rgba(5, 8, 7, 0.84), transparent 52%);
}

.hero-content {
  position: relative;
  max-width: 900px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 8.4vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.36rem);
}

.hero-actions,
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

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

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

.button-primary {
  background: var(--brand);
  color: #051007;
}

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

.button-dark {
  background: var(--ink);
  color: var(--white);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.05em;
  height: 1.05em;
  display: block;
  flex-shrink: 0;
}

.icon-wrap {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(41, 245, 91, 0.16);
  color: var(--brand-dark);
}

.icon-wrap .icon {
  width: 20px;
  height: 20px;
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-line .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--brand);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  color: var(--white);
}

.stats-band div {
  padding: clamp(24px, 4vw, 46px);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stats-band .icon {
  width: 22px;
  height: 22px;
  margin-bottom: 10px;
  color: var(--brand);
}

.stats-band strong {
  display: block;
  color: var(--brand);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1;
}

.stats-band span {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
}

.section {
  padding: clamp(74px, 10vw, 132px) clamp(18px, 6vw, 90px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: clamp(30px, 8vw, 110px);
}

.split h2,
.section-heading h2,
.footer h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.split p,
.section-heading p {
  color: var(--muted);
  font-size: 1.08rem;
}

.intro .section-kicker {
  margin-bottom: 18px;
}

.intro .split {
  align-items: start;
  gap: clamp(24px, 5vw, 48px);
}

.intro .split h2 {
  margin: 0 0 28px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.intro .split p {
  margin: 0 0 16px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.intro .split p:last-child {
  margin-bottom: 0;
}

.services {
  background: #edf2ef;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 42px;
}

.section-heading p {
  max-width: 430px;
  margin-bottom: 0;
}

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

.service-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.09);
}

.service-card span {
  color: var(--brand-dark);
  font-weight: 900;
}

.service-card h3 {
  margin: auto 0 14px;
  font-size: 1.45rem;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.work .section-heading {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.filter .icon {
  width: 14px;
  height: 14px;
}

.filter.active,
.filter:hover {
  background: var(--ink);
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.folio {
  position: relative;
  min-height: 320px;
  grid-column: span 4;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #101010;
  color: var(--white);
  cursor: pointer;
}

.folio:nth-child(1),
.folio:nth-child(6) {
  grid-column: span 8;
}

.folio picture,
.folio img {
  width: 100%;
  height: 100%;
  display: block;
}

.folio img {
  object-fit: cover;
  transition: transform 420ms ease, opacity 220ms ease;
}

.folio::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent 60%);
}

.folio span {
  position: absolute;
  z-index: 1;
  left: 20px;
  right: 20px;
  bottom: 18px;
  font-size: 1.2rem;
  font-weight: 900;
  text-align: left;
}

.folio:hover img {
  transform: scale(1.045);
}

.folio.is-hidden {
  display: none;
}

.process {
  background: #101312;
  color: var(--white);
}

.process .section-heading p,
.process .section-kicker {
  color: var(--brand);
}

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

.timeline-item {
  min-height: 240px;
  padding: 30px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.timeline-item .icon-wrap {
  margin-bottom: 16px;
  background: rgba(41, 245, 91, 0.14);
  color: var(--brand);
}

.timeline-item > span:not(.icon-wrap) {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--brand);
  font-weight: 900;
}

.timeline-item p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

.packages {
  background: #f7f3e9;
}

.planner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.planner-controls,
.planner-result {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(80, 69, 41, 0.16);
  border-radius: 8px;
  background: var(--white);
}

.planner-controls {
  display: grid;
  gap: 22px;
}

.planner label {
  display: grid;
  gap: 10px;
  color: #534a35;
  font-weight: 800;
}

.planner select,
.planner input[type="range"] {
  width: 100%;
}

.planner select {
  height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(80, 69, 41, 0.22);
  border-radius: 8px;
  background: #fbfaf4;
}

.planner output {
  color: var(--brand-dark);
}

.toggle-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.toggle-list label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(80, 69, 41, 0.16);
  border-radius: 8px;
  background: #fbfaf4;
}

.planner-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.planner-result span {
  color: var(--brand-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.planner-result strong {
  display: block;
  margin: 14px 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.planner-result p {
  color: var(--muted);
}

.footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  padding: clamp(64px, 9vw, 110px) clamp(18px, 6vw, 90px) 34px;
  background: var(--ink);
  color: var(--white);
}

.footer address {
  display: grid;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-style: normal;
}

.footer address a {
  color: var(--white);
  font-weight: 800;
}

.social-row,
.copyright {
  grid-column: 1 / -1;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.copyright {
  margin: 28px 0 0;
  color: var(--brand);
  font-size: 0.92rem;
}

.lightbox {
  width: min(960px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.74);
}

.lightbox img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #000;
}

.lightbox h3 {
  margin: 0;
  padding: 18px 22px 24px;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.reveal,
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@supports (content-visibility: auto) {
  .stats-band,
  .section {
    content-visibility: auto;
    contain-intrinsic-size: auto 640px;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: 86vh;
  }

  .hero-media img {
    object-position: 30% 40%;
    transform: none;
    filter: none;
  }

  .section {
    padding: 56px 20px;
  }

  .footer {
    padding: 48px 20px 28px;
    gap: 28px;
  }

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

  .split,
  .section-heading {
    display: block;
  }

  .intro .split h2 {
    margin-bottom: 28px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-heading p,
  .filter-bar {
    margin-top: 12px;
  }

  .service-card {
    min-height: 0;
  }

  .folio,
  .folio:nth-child(1),
  .folio:nth-child(6) {
    grid-column: span 6;
    min-height: 220px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-panel {
    position: fixed;
    top: 84px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 14px;
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .nav-panel.is-open {
    display: grid;
  }

  .hero {
    min-height: auto;
    padding-top: 126px;
    padding-bottom: 24px;
  }

  h1 {
    max-width: 10ch;
  }

  h2,
  .section-heading h2,
  .footer h2 {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
    line-height: 1.08;
  }

  .intro .split h2 {
    margin-bottom: 28px;
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .intro .split p {
    margin-bottom: 14px;
    font-size: 1rem;
    line-height: 1.6;
  }

  .intro .split p:last-child {
    margin-bottom: 0;
  }

  .section-heading p {
    font-size: 0.95rem;
  }

  .section {
    padding: 36px 16px;
  }

  .section-heading {
    margin-bottom: 18px;
  }

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

  .planner,
  .footer,
  .toggle-list {
    grid-template-columns: 1fr;
  }

  .stats-band div {
    padding: 16px 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  .stats-band div:nth-child(1),
  .stats-band div:nth-child(3) {
    padding-left: 28px;
  }

  .stats-band div:nth-child(2n) {
    border-right: 0;
  }

  .stats-band div:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .stats-band strong {
    font-size: 1.8rem;
  }

  .service-card {
    min-height: 0;
    padding: 16px;
  }

  .service-card h3 {
    margin: 10px 0 8px;
    font-size: 1.12rem;
  }

  .timeline-item {
    min-height: 0;
    padding: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
  }

  .timeline-item:nth-child(2n) {
    border-right: 0;
  }

  .timeline-item:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .timeline-item span {
    margin-bottom: 10px;
  }

  .folio,
  .folio:nth-child(1),
  .folio:nth-child(6) {
    grid-column: 1 / -1;
    min-height: 170px;
  }

  .footer {
    padding: 36px 16px 24px;
    gap: 22px;
  }

  .copyright {
    margin-top: 16px;
  }
}

@media (min-width: 981px) {
  .section {
    padding: 64px clamp(18px, 6vw, 90px);
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .stats-band div {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .intro .split h2 {
    margin-bottom: 0;
  }

  .service-card {
    min-height: 0;
  }

  .service-card h3 {
    margin: 14px 0 10px;
  }

  .timeline-item {
    min-height: 0;
    padding: 24px 22px 28px;
  }

  .folio {
    min-height: 260px;
  }

  .planner-controls,
  .planner-result {
    padding: 28px;
  }

  .footer {
    padding: 56px clamp(18px, 6vw, 90px) 32px;
  }
}

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

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