/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #D88D25;
  --gold-hover: #c47d1a;
  --gray-mid: #8A8988;
  --gray-light: #B2B2B2;
  --black: #323030;
  --bg-gray: #f5f5f7;
  --bg-gray-2: #e8e8ed;
  --border: #d2d2d7;
  --white: #ffffff;
  --radius: 18px;
  --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
}

.section--gray {
  background: var(--bg-gray);
}

.section--dark {
  background: var(--black);
  color: var(--white);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 24px;
  border-radius: 980px;
  font-weight: 400;
  font-size: 17px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.btn--primary {
  background: var(--gold);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--gold-hover);
}

.btn--secondary {
  background: transparent;
  color: var(--gold);
  padding: 12px 4px;
}
.btn--secondary:hover {
  text-decoration: underline;
}
.btn--secondary .chevron {
  font-size: 22px;
  line-height: 1;
  transition: transform var(--transition);
}
.btn--secondary:hover .chevron {
  transform: translateX(3px);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background var(--transition);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
}

.nav__inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo-img {
  height: 56px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav__links a {
  font-size: 12px;
  color: var(--black);
  opacity: 0.8;
  transition: opacity var(--transition);
}
.nav__links a:hover { opacity: 1; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 20px;
}
.nav__burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--black);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  gap: 0;
}
.nav__mobile a {
  padding: 12px 0;
  color: var(--black);
  font-size: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: color var(--transition);
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover { color: var(--gold); }
.nav__mobile.open { display: flex; }

/* ===== HERO ===== */
.hero {
  padding: 140px 24px 0;
  text-align: center;
  overflow: hidden;
}

.hero__content {
  max-width: 740px;
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
  color: var(--black);
}

.hero__subtitle {
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 400;
  color: var(--gray-mid);
  line-height: 1.5;
  max-width: 560px;
  margin: 0 auto 28px;
  letter-spacing: -0.01em;
}

.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.hero__visual {
  max-width: 1060px;
  margin: 0 auto;
}

/* ---- Hero SVG entrance animation ---- */
#heroSvg {
  animation: heroSvgIn 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) 0.35s both;
}

@keyframes heroSvgIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* ===== STATS BAND ===== */
.stats-band {
  background: var(--black);
  padding: 56px 0;
}

.stats-band__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat {
  text-align: center;
}

.stat__num {
  display: block;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--gold);
  line-height: 1;
}

.stat__label {
  display: block;
  font-size: 13px;
  color: var(--gray-light);
  margin-top: 8px;
  letter-spacing: -0.01em;
}

/* ===== SECTION COMMON ===== */
.section__center {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 72px;
}

.section__eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.section__eyebrow--light {
  color: var(--gold);
}

.section__headline {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section__headline--light {
  color: var(--white);
}

.section__body {
  font-size: 17px;
  color: var(--gray-mid);
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.section__center--light .section__body {
  color: var(--gray-light);
}

/* ===== ABOUT FEATURES ===== */
.about__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature {
  text-align: center;
}

.feature__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
}

.feature__icon svg {
  width: 100%;
  height: 100%;
}

.feature__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature__desc {
  font-size: 14px;
  color: var(--gray-mid);
  line-height: 1.5;
}

/* ===== CLIENTS TICKER ===== */
.clients-section {
  padding: 56px 0;
  overflow: hidden;
}

.clients__label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.clients__ticker-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients__ticker {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker 60s linear infinite;
  width: max-content;
}

.clients__ticker span {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-mid);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== ACHIEVEMENTS ===== */
.achievements__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 960px;
  margin: 0 auto;
}

.achievement {
  text-align: center;
}

.achievement__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
}

.achievement__icon svg {
  width: 100%;
  height: 100%;
}

.achievement__title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.achievement__desc {
  font-size: 14px;
  color: var(--gray-mid);
  line-height: 1.6;
}

/* ===== SERVICES ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: background var(--transition);
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 14px;
  color: var(--gray-light);
  line-height: 1.5;
}

/* ===== PROJECTS ===== */
.projects__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.project-card--featured {
  grid-column: span 2;
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-gray);
  transition: transform var(--transition);
}

.project-card:hover {
  transform: scale(1.01);
}

.project-card__visual {
  width: 100%;
  overflow: hidden;
}

.project-card__visual svg {
  width: 100%;
  height: auto;
  display: block;
}

.project-card__info {
  padding: 28px 32px 32px;
}

.project-card__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.project-card__info h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.project-card__info p {
  font-size: 15px;
  color: var(--gray-mid);
  line-height: 1.5;
  margin-bottom: 16px;
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-mid);
}

/* ===== TEAM ===== */
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team__grid--three {
  grid-template-columns: repeat(3, 1fr);
  max-width: 860px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
}

.team-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
}

.team-card__avatar svg {
  width: 100%;
  height: 100%;
}

.team-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.team-card__role {
  display: block;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 500;
}

.team-card p {
  font-size: 14px;
  color: var(--gray-mid);
  line-height: 1.5;
  margin-bottom: 12px;
}

.team-card__contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-card__contact a {
  font-size: 12px;
  color: var(--gray-mid);
  transition: color var(--transition);
}

.team-card__contact a:hover {
  color: var(--gold);
}

/* ===== CONTACT ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  max-width: 900px;
  margin: 0 auto;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.contact__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__icon svg {
  width: 100%;
  height: 100%;
}

.contact__item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact__item strong {
  font-size: 15px;
  font-weight: 600;
}

.contact__item span,
.contact__item a {
  font-size: 14px;
  color: var(--gray-mid);
}

.contact__item a:hover {
  color: var(--gold);
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--black);
  font-family: inherit;
  font-size: 15px;
  padding: 12px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(216, 141, 37, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form__success {
  display: none;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: #1d7d3f;
  background: #e8f8ef;
  border-radius: 12px;
  padding: 14px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-gray);
  padding: 0;
}

.footer__inner {
  padding: 0 24px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.footer__brand {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.01em;
}

.footer__nav {
  display: flex;
  gap: 24px;
}

.footer__nav a {
  font-size: 12px;
  color: var(--gray-mid);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--black); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 12px;
  color: var(--gray-mid);
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__links a {
  font-size: 12px;
  color: var(--gray-mid);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--gold); }

/* ===== SVG SCROLL ANIMATIONS ===== */

/* Trees sway */
.svg-tree {
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.svg-tree.sway {
  animation: treeSway 3s ease-in-out infinite;
}

@keyframes treeSway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(1.5deg); }
  75% { transform: rotate(-1.5deg); }
}

/* Stagger tree animations */
.svg-tree:nth-child(odd).sway { animation-delay: 0s; }
.svg-tree:nth-child(even).sway { animation-delay: 0.4s; }

/* Lights switch on */
.svg-light rect,
.svg-light ellipse {
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.svg-light.lit rect {
  opacity: 0.6;
}

.svg-light.lit ellipse {
  opacity: 0.08;
}

/* Project card lights */
.project-card .svg-light-glow {
  opacity: 0;
  transition: opacity 1s ease;
}

.project-card.visible .svg-light-glow {
  opacity: 1;
}

/* Doors opening */
.svg-door {
  transition: transform 1.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.svg-door-handle {
  transition: transform 1.8s cubic-bezier(0.25, 0.1, 0.25, 1),
              opacity 1.2s ease;
}

.svg-door-glow {
  transition: opacity 2.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.doors-open .svg-door--left {
  transform: scaleX(0.15);
}

.doors-open .svg-door--right {
  transform: scaleX(0.15);
}

.doors-open .svg-door-handle--left {
  transform: scaleX(0.15);
  opacity: 0;
}

.doors-open .svg-door-handle--right {
  transform: scaleX(0.15);
  opacity: 0;
}

.doors-open .svg-door-glow {
  opacity: 0.15;
}

/* ===== FADE-IN ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about__features { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .achievements__grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .team__grid, .team__grid--three { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }

  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .hero { padding: 120px 24px 0; }
  .hero__cta { margin-bottom: 48px; }

  .stats-band__inner { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .stat__num { font-size: 36px; }

  .about__features { grid-template-columns: 1fr 1fr; gap: 36px; }
  .achievements__grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .services__grid { grid-template-columns: 1fr; }

  .projects__grid { grid-template-columns: 1fr; }
  .project-card--featured { grid-column: span 1; }

  .team__grid, .team__grid--three { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }

  .footer__top { flex-direction: column; gap: 16px; text-align: center; }
  .footer__nav { flex-wrap: wrap; justify-content: center; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .hero { padding-top: 100px; }
  .hero__title { font-size: 40px; }

  .stats-band__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stat__num { font-size: 32px; }

  .about__features { grid-template-columns: 1fr; }
}
