/* ---------- Base ---------- */
:root {
  --gold: #ebbb45;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.16);
  --glass-border: rgba(255, 255, 255, 0.45);
  --shadow-text: 0 1px 2px rgba(0, 0, 0, 0.28);
  --radius: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  position: relative;
  background: var(--gold);
  color: var(--white);
  text-shadow: var(--shadow-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

/* ---------- Scroll progress bar ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 20;
}

/* ---------- Abstract background ---------- */
.bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  will-change: translate;
}

.blob {
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  animation: drift 18s ease-in-out infinite alternate;
}

.blob-1 {
  width: clamp(280px, 42vw, 560px);
  top: -4%;
  left: -12%;
  background: #f8dc8c;
  opacity: 0.6;
}

.blob-2 {
  width: clamp(300px, 46vw, 620px);
  top: 20%;
  right: -16%;
  background: #d9981a;
  opacity: 0.5;
  animation-duration: 22s;
}

.blob-3 {
  width: clamp(260px, 38vw, 520px);
  top: 46%;
  left: -14%;
  background: #f0a23e;
  opacity: 0.45;
  animation-duration: 20s;
}

.blob-4 {
  width: clamp(280px, 42vw, 560px);
  top: 68%;
  right: -12%;
  background: #f8dc8c;
  opacity: 0.55;
  animation-duration: 24s;
}

.blob-5 {
  width: clamp(240px, 34vw, 460px);
  top: 88%;
  left: 8%;
  background: #d9981a;
  opacity: 0.4;
  animation-duration: 19s;
}

.ring {
  height: auto;
}

.ring-1 {
  width: clamp(150px, 22vw, 300px);
  top: 9%;
  right: 7%;
  animation: spin 60s linear infinite;
}

.ring-2 {
  width: clamp(90px, 12vw, 160px);
  top: 36%;
  left: 5%;
  animation: spin 45s linear infinite reverse;
}

.ring-3 {
  width: clamp(220px, 32vw, 440px);
  top: 60%;
  right: -4%;
  animation: spin 90s linear infinite;
}

.ring-4 {
  width: clamp(80px, 10vw, 140px);
  top: 82%;
  left: 12%;
  animation: spin 50s linear infinite;
}

.dots {
  width: 200px;
  height: 200px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.7) 2px, transparent 2.5px);
  background-size: 24px 24px;
  opacity: 0.6;
}

.dots-1 { top: 18%; left: 4%; }
.dots-2 { top: 55%; right: 5%; }
.dots-3 { top: 90%; right: 14%; }

.sq {
  border-radius: 28px;
  animation: spinFrom 50s linear infinite;
}

.sq-1 {
  --r: 18deg;
  width: 150px;
  height: 150px;
  top: 44%;
  right: 14%;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.sq-2 {
  --r: -12deg;
  width: 110px;
  height: 110px;
  top: 72%;
  left: 6%;
  background: rgba(255, 255, 255, 0.14);
  animation-direction: reverse;
}

.wave {
  left: 0;
  width: 100%;
  height: 180px;
}

.wave-1 { top: 31%; }
.wave-2 { top: 76%; }

.band {
  left: -10%;
  width: 120%;
  height: 140px;
  top: 58%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: rotate(-8deg);
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 6vw;
  background: rgba(235, 187, 69, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
  animation: fadeDown 0.7s ease both;
}

.nav.scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.nav nav {
  display: flex;
  gap: 28px;
}

.nav nav a {
  position: relative;
  font-size: 0.95rem;
  padding: 4px 0;
}

.nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav nav a:hover::after,
.nav nav a.active::after {
  transform: scaleX(1);
}

/* ---------- Layout ---------- */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 6vw;
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 40px;
}

.section h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 14px;
  background: var(--white);
  border-radius: 2px;
  transform-origin: left;
  transition: transform 0.8s ease 0.3s;
}

html.js .section h2::after {
  transform: scaleX(0);
}

html.js .section h2.in-view::after {
  transform: scaleX(1);
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  min-height: calc(100vh - 70px);
  padding: 60px 6vw;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-text > * {
  animation: fadeUp 0.8s ease both;
}

.eyebrow {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  animation-delay: 0.1s;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  margin-bottom: 16px;
  animation-delay: 0.25s;
}

.tagline {
  font-size: 1.2rem;
  max-width: 480px;
  margin-bottom: 32px;
  animation-delay: 0.4s;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation-delay: 0.55s;
}

.hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 1s ease 0.4s both;
}

.hero-photo::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(420px, 100%);
  aspect-ratio: 1;
  border: 2px dashed rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  animation: spinCentered 40s linear infinite;
}

.hero-photo .photo-placeholder,
.hero-photo img {
  position: relative;
  width: min(340px, 80%);
  animation: float 6s ease-in-out infinite;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--white);
  color: var(--gold);
  text-shadow: none;
  font-weight: 600;
  transition: translate 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  translate: 0 -3px;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  text-shadow: var(--shadow-text);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--gold);
  text-shadow: none;
}

/* ---------- Scrolling words ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.marquee-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  margin-left: -60vw;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  will-change: translate;
}

.marquee-row span::after {
  content: "\2022";
  margin-left: 2.5rem;
}

.marquee-row.alt {
  opacity: 0.55;
}

/* ---------- Photo placeholders ---------- */
.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--glass);
  border: 2px dashed var(--glass-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.photo-placeholder.round {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

.photo-wrap .photo-placeholder {
  aspect-ratio: 4 / 5;
}

/* Styles for real images when you swap placeholders out */
.hero-photo img,
.photo-wrap img,
.card img {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-photo img {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

.photo-wrap img {
  aspect-ratio: 4 / 5;
}

.card img {
  aspect-ratio: 4 / 3;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: center;
}

.about-text p {
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 28px;
}

.stats li {
  display: flex;
  flex-direction: column;
}

.stats strong {
  font-size: 2rem;
  line-height: 1.1;
}

.stats li > span {
  font-size: 0.9rem;
}

/* ---------- Work cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: translate 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  translate: 0 -6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.card .photo-placeholder {
  border: none;
  border-bottom: 2px dashed var(--glass-border);
  border-radius: 0;
}

.card-body {
  padding: 22px;
}

.card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.service {
  padding: 20px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: translate 0.3s ease, background 0.3s ease;
}

.service:hover {
  background: var(--glass);
  translate: 0 -4px;
}

.num {
  display: block;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.service h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

/* ---------- Contact ---------- */
.contact {
  text-align: center;
}

.contact h2::after {
  margin-left: auto;
  margin-right: auto;
  transform-origin: center;
}

.contact p {
  max-width: 520px;
  margin: 0 auto 28px;
}

.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

.socials a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.socials a:hover {
  border-color: var(--white);
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 28px 6vw;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* ---------- Scroll reveal (class added by script.js) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.9s ease var(--d, 0s), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s);
}

html.js .reveal[data-reveal="left"] {
  transform: translateX(-56px);
}

html.js .reveal[data-reveal="right"] {
  transform: translateX(56px);
}

html.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Cards and services keep their hover motion after they reveal */
html.js .card.reveal,
html.js .service.reveal {
  transition:
    opacity 0.9s ease var(--d, 0s),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s),
    translate 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

/* ---------- Keyframes ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -24px) scale(1.08); }
  100% { transform: translate(-20px, 20px) scale(0.96); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spinFrom {
  from { transform: rotate(var(--r, 0deg)); }
  to { transform: rotate(calc(var(--r, 0deg) + 360deg)); }
}

@keyframes spinCentered {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .nav {
    flex-direction: column;
    gap: 10px;
    padding: 14px 5vw;
  }

  .nav nav {
    gap: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding-top: 40px;
  }

  .hero-text {
    order: 2;
  }

  .hero-photo {
    order: 1;
  }

  .tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 6vw;
  }

  .dots-2,
  .sq-1 {
    display: none;
  }
}

/* Respect users who turn off motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }

  html.js .section h2::after {
    transform: none;
  }
}