:root {
  --bg: #1c1b19;
  --bg-elevated: #252320;
  --text: #e6e4e0;
  --text-muted: #8c8984;
  --accent: #b89b6c;
  --accent-teal: #6b8f7a;
  --accent-dim: rgba(184, 155, 108, 0.18);
  --border: #3d3a36;
  --font-heading: "Bitter", serif;
  --font-body: "DM Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #c9ad7a;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(28, 27, 25, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.2s ease;
}

.header--scrolled {
  padding: 0.65rem 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  color: inherit;
}

.logo-link:hover {
  color: inherit;
  opacity: 0.9;
}

.logo-img {
  height: 2.25rem;
  width: auto;
  display: block;
}

.header--scrolled .logo-img {
  height: 1.85rem;
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

@media (max-width: 639px) {
  .header {
    padding: 0.75rem 1rem;
  }

  .header--scrolled {
    padding: 0.5rem 1rem;
  }

  .nav {
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 60%;
  }

  .nav a {
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .logo-img {
    height: 1.9rem;
  }

  .header--scrolled .logo-img {
    height: 1.6rem;
  }
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse at center, var(--accent-dim) 0%, transparent 55%);
  pointer-events: none;
}

.hero__logo {
  position: relative;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.5rem, 10vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  position: relative;
}

.hero__word {
  display: block;
}

.hero__word--sub {
  color: var(--accent);
  font-weight: 600;
}

.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0 0 2rem;
  position: relative;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.15s ease;
  position: relative;
}

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

.btn--primary:hover {
  color: #1c1b19;
  background: #c9ad7a;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.section {
  max-width: 52rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section[id] {
  scroll-margin-top: 5rem;
}

.section__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.section__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section__text--wide {
  max-width: 42rem;
}

.section--about {
  padding-top: 2rem;
}

.section--services {
  background: var(--bg-elevated);
  margin: 0;
  max-width: none;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section--services .section__title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 52rem;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .services {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim);
}

.service__icon {
  display: inline-block;
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.service__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.section--contact {
  text-align: center;
  padding-bottom: 5rem;
}

.contact-email {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  display: inline-block;
  margin-top: 0.75rem;
}

.footer {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer__text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__text a {
  color: var(--text-muted);
}

.footer__text a:hover {
  color: var(--accent);
}

.privacy-page .privacy-main {
  padding-top: 5rem;
  padding-bottom: 3rem;
}

.privacy-article {
  max-width: 52rem;
  margin: 0 auto;
}

.privacy-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
  color: var(--text);
}

.privacy-updated {
  margin: 0 0 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.privacy-block {
  margin-bottom: 2rem;
}

.privacy-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.privacy-block p,
.privacy-block ul {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.privacy-block ul {
  padding-left: 1.25rem;
}

.privacy-block li {
  margin-bottom: 0.5rem;
}

.nav__current {
  color: var(--text);
}

.work-page .work-main {
  position: relative;
  padding-top: 5rem;
  overflow: hidden;
  min-height: 100vh;
}

.work-page .work-main::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse at center, var(--accent-dim) 0%, transparent 55%);
  pointer-events: none;
}

.work-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.work-hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin: 0 0 0.5rem;
  color: var(--text);
}

.work-hero__subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

.work-project {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin: 0 auto;
  padding-top: 1rem;
  padding-bottom: 4rem;
}

.work-project__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 1rem;
  color: var(--accent);
}

.work-project__desc {
  margin: 0 0 2.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 42rem;
}

.phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

.phone-frame {
  width: min(280px, 85vw);
  aspect-ratio: 9 / 19.5;
  background: #1a1917;
  border-radius: 2.25rem;
  padding: 0.65rem;
  box-shadow:
    0 0 0 2px var(--border),
    0 0 0 4px #0c0c0a,
    0 25px 60px rgba(0, 0, 0, 0.5);
}

.phone-frame__screen {
  width: 100%;
  height: 100%;
  border-radius: 1.75rem;
  overflow: hidden;
  background: #000;
}

.phone-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.phone-carousel__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.phone-carousel__img--active {
  opacity: 1;
  z-index: 1;
}

@media (max-width: 639px) {
  .hero__logo {
    width: 120px;
    height: auto;
  }

  .phone-frame {
    border-radius: 1.75rem;
    padding: 0.5rem;
  }

  .phone-frame__screen {
    border-radius: 1.4rem;
  }
}
