:root {
  --lilac: #b89bc9;
  --lilac-deep: #9a7aaf;
  --charcoal: #2f2f2f;
  --ink: #1a1a1a;
  --slate: #5c5c5c;
  --silver: #c8c8c8;
  --mist: #f4f3f5;
  --white: #ffffff;
  --line: rgba(47, 47, 47, 0.12);
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
}

p {
  margin: 0;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lilac-deep);
  margin-bottom: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(26, 26, 26, 0.04);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 2.75rem;
  width: auto;
  object-fit: contain;
}

.nav {
  display: none;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a {
  position: relative;
  color: var(--slate);
  transition: color 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: var(--lilac);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header-phone {
  display: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.nav-toggle {
  margin-left: auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 1.35rem;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto;
  z-index: 99;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  gap: 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
}

.mobile-nav[hidden] {
  display: none;
}

@media (min-width: 880px) {
  .nav,
  .header-phone {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }

  .header-phone {
    margin-left: 0.5rem;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 4vw, 3rem) 4rem;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: hero-zoom 18s var(--ease) forwards;
}

@keyframes hero-zoom {
  to {
    transform: scale(1);
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(18, 16, 20, 0.88) 0%, rgba(18, 16, 20, 0.55) 48%, rgba(18, 16, 20, 0.35) 100%),
    linear-gradient(to top, rgba(18, 16, 20, 0.75) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  animation: rise 1s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 4.75rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 1.25rem;
  background: linear-gradient(90deg, var(--lilac) 0%, #e8d6f0 55%, var(--white) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  max-width: 22ch;
  margin-bottom: 1rem;
  color: var(--white);
}

.hero-lead {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-scroll {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: 2.5rem;
  z-index: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.hero-scroll-line {
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(to bottom, var(--lilac), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.85); }
  50% { opacity: 1; transform: scaleY(1); }
}

@media (min-width: 880px) {
  .hero-scroll {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--lilac);
  color: var(--ink);
}

.btn-primary:hover {
  background: #c9aed8;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Services */
.services {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  background: var(--mist);
}

.section-intro {
  max-width: 38rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-intro h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  color: var(--ink);
}

.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.service-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--lilac-deep);
  padding-top: 0.2rem;
}

.service-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.service-item p {
  color: var(--slate);
  max-width: 42rem;
}

@media (min-width: 720px) {
  .service-item {
    grid-template-columns: 4.5rem 1fr;
    gap: 2rem;
    padding: 2rem 0;
  }
}

/* Approach */
.approach {
  display: grid;
  gap: 0;
  background: var(--white);
}

.approach-visual {
  min-height: 320px;
  overflow: hidden;
}

.approach-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.approach-visual.reveal.is-visible img {
  transform: scale(1.04);
}

.approach-copy {
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.approach-copy h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  color: var(--ink);
  margin-bottom: 1.25rem;
  max-width: 18ch;
}

.approach-copy > p {
  color: var(--slate);
  max-width: 38rem;
  margin-bottom: 2rem;
}

.approach-points {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.approach-points li {
  padding-left: 1.25rem;
  border-left: 2px solid var(--lilac);
  color: var(--slate);
}

.approach-points strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

@media (min-width: 960px) {
  .approach {
    grid-template-columns: 1.05fr 1fr;
    min-height: 70vh;
  }

  .approach-visual,
  .approach-visual img {
    min-height: 100%;
    height: 100%;
  }
}

/* Projects */
.projects {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  background: var(--ink);
  color: var(--white);
}

.projects .eyebrow {
  color: var(--lilac);
}

.projects .section-intro h2 {
  color: var(--white);
}

.project-grid {
  display: grid;
  gap: 1rem;
}

.project {
  position: relative;
  overflow: hidden;
  min-height: 260px;
}

.project img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.project:hover img {
  transform: scale(1.05);
}

.project-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(10, 10, 12, 0.85), transparent);
}

.project-caption h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.project-caption p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 800px) {
  .project-grid {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.15rem;
    min-height: 640px;
  }

  .project-featured {
    grid-row: 1 / span 2;
    min-height: 100%;
  }

  .project,
  .project img {
    min-height: 100%;
    height: 100%;
  }
}

/* Contact */
.contact {
  display: grid;
  gap: 3rem;
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(184, 155, 201, 0.18), transparent 55%),
    var(--mist);
}

.contact-intro h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.contact-intro > p {
  color: var(--slate);
  margin-bottom: 2rem;
  max-width: 32rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.contact-details a,
.contact-details > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.detail-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lilac-deep);
}

.detail-value {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
}

.contact-details a:hover .detail-value {
  color: var(--lilac-deep);
}

@media (min-width: 900px) {
  .contact-details {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2.5rem 4rem;
  }
}

/* Footer */
.site-footer {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-brand img {
  height: 3.25rem;
  width: auto;
  margin-bottom: 0.75rem;
}

.footer-brand p,
.footer-meta p {
  color: var(--slate);
  font-size: 0.9rem;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.footer-meta a:hover {
  color: var(--lilac-deep);
}

@media (min-width: 720px) {
  .site-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .footer-meta {
    text-align: right;
    align-items: flex-end;
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-item.reveal:nth-child(2) { transition-delay: 0.08s; }
.service-item.reveal:nth-child(3) { transition-delay: 0.16s; }
.service-item.reveal:nth-child(4) { transition-delay: 0.24s; }
.approach-points .reveal:nth-child(2) { transition-delay: 0.1s; }
.approach-points .reveal:nth-child(3) { transition-delay: 0.2s; }
.project.reveal:nth-child(2) { transition-delay: 0.1s; }
.project.reveal:nth-child(3) { transition-delay: 0.2s; }
