:root {
  --bg: #060606;
  --bg-soft: #0f0f0f;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --text: #f5f5f1;
  --muted: rgba(245, 245, 241, 0.68);
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --shell: min(1120px, calc(100vw - 48px));
  --header-h: 78px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 22%),
    linear-gradient(180deg, #080808 0%, #050505 100%);
  color: var(--text);
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

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

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

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

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  padding: 18px 24px;
}

.header-shell {
  width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: 999px;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.brand,
.site-nav a,
.eyebrow,
.service-number,
.back-to-top {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
}

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

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

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

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

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: clip;
}

.hero-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: #0a1115;
}

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

.hero-media img {
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0.44) 36%, rgba(0, 0, 0, 0.84) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.08) 65%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 72px) 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100svh;
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 0.74rem;
  color: rgba(245, 245, 241, 0.8);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  max-width: none;
  font-size: clamp(2.6rem, 6.8vw, 5.5rem);
  line-height: 0.94;
  letter-spacing: -0.08em;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.34);
  max-width: 12ch;
}

.hero-copy,
.contact-intro,
.about-copy p,
.service-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  max-width: 21rem;
  margin: 0;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-cta {
  width: fit-content;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.26);
}

.hero-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.hero-location {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 245, 241, 0.82);
}

.section {
  padding: 120px 0;
}

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

.section-intro {
  max-width: 40rem;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-values {
  padding: 64px 0 110px;
}

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

.value-card {
  padding: 28px;
  min-height: 260px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.value-number {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 241, 0.55);
}

.value-card h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

h2 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 0.95;
}

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

.service-card,
.contact-links a,
.about-panel {
  background: linear-gradient(180deg, var(--panel), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 260px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.service-number {
  display: inline-block;
  margin-bottom: auto;
  font-size: 0.72rem;
  color: rgba(245, 245, 241, 0.55);
}

.service-card h3 {
  margin-top: 40px;
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.section-gallery {
  padding: 72px 0 96px;
}

.projects-showcase {
  display: grid;
  gap: 18px;
}

.projects-secondary,
.projects-grid {
  display: grid;
  gap: 18px;
}

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

.projects-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.18;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.project-card-featured {
  aspect-ratio: 2.05 / 1;
}

.project-card-compact {
  aspect-ratio: 0.92;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, opacity 300ms ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.68) 100%);
  opacity: 1;
  transition: opacity 250ms ease;
}

.project-card:hover img,
.project-card:focus-within img {
  transform: scale(1.04);
}

.project-card:hover::after,
.project-card:focus-within::after {
  opacity: 0.92;
}

.project-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 22px;
}

.project-category {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 245, 241, 0.68);
}

.project-overlay h3 {
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  line-height: 1;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 48px;
  align-items: stretch;
}

.about-copy p {
  max-width: 56ch;
  margin: 0 0 18px;
}

.about-copy h2 {
  margin-bottom: 18px;
}

.about-visual {
  min-height: 340px;
  max-width: 340px;
  justify-self: end;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-intro {
  max-width: 40rem;
  margin: 18px 0 0;
}

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

.contact-links a {
  padding: 28px;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
  border-radius: 20px;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, var(--panel-strong), rgba(255, 255, 255, 0.03));
}

.contact-links span {
  display: block;
  margin-bottom: 14px;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 241, 0.54);
}

.contact-links strong {
  font-weight: 500;
  word-break: break-word;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 11, 11, 0.88);
  color: var(--text);
  padding: 14px 16px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

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

@media (max-width: 980px) {
  :root {
    --shell: min(1120px, calc(100vw - 32px));
  }

  .services-grid,
  .values-grid,
  .contact-links,
  .about-layout {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid .service-card:last-child,
  .about-visual {
    grid-column: span 2;
  }

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

@media (max-width: 720px) {
  :root {
    --header-h: 114px;
  }

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

  .header-shell {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 24px;
  }

  .site-nav {
    gap: 14px;
  }

  .section {
    padding: 92px 0;
  }

  .hero-frame {
    inset: 0;
  }

  .hero-content {
    padding: calc(var(--header-h) + 56px) 0 56px;
  }

  .hero-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    gap: 18px;
  }

  .services-grid,
  .values-grid,
  .contact-links,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .projects-secondary,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .services-grid .service-card:last-child,
  .about-visual {
    grid-column: auto;
    min-height: 280px;
  }

  .service-card {
    min-height: 220px;
  }

  .about-visual {
    max-width: none;
    min-height: 320px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

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

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

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

}
