/* Studio Nieto — site styles.
   Tokens match the original site design tokens. */
:root {
  --bg: rgb(210, 207, 195);
  --black: rgb(0, 0, 0);
  --green: rgb(181, 209, 185);
  --bluegray: rgb(182, 189, 208);
  --yellow: rgb(219, 191, 69);
  --font: "Syne", "Syne Placeholder", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--black);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* Type presets */
h2 {
  font-family: var(--font);
  font-size: 72px;
  font-weight: 600;
  letter-spacing: -2.5px;
  line-height: 1.2em;
  color: var(--black);
}
h3, .hero__tagline, .contact__title {
  font-family: var(--font);
  font-size: 35px;
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.4em;
  text-align: center;
  color: var(--black);
}
.about__copy p, .service p, .fun__copy p {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.6em;
  color: var(--black);
}
.service .service__name {
  text-align: left;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 2em;
  color: #333333;
}

/* Page frame: a 1200px column with 60px gaps */
.page {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  overflow: hidden;
  background: var(--bg);
}
.page > * { width: 100%; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 30px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  font-size: 18px;
  letter-spacing: -0.3px;
  line-height: 1.4em;
}
.nav a { text-decoration: none; color: var(--black); white-space: nowrap; }
.nav a:hover { color: #fff; }
.nav__logo { flex: 1 0 0; height: 32px; }
.nav__logo img { width: 32px; height: 32px; object-fit: cover; }

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  height: 421px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px;
  scroll-margin-top: 100px;
  background: radial-gradient(50% 50% at 50% 50%, var(--yellow) 0%, var(--bg) 100%);
}
.hero__wordmark {
  position: relative;
  width: 100%;
  max-width: 1080px;
  height: 253px;
}
.hero__wordmark > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.hero__asterisk {
  position: absolute;
  left: -67px;
  bottom: 26px;
  width: 214px;
  height: 160px;
  z-index: 1;
  --rot: -15deg;
}
.hero__zigzag {
  position: absolute;
  right: -34px;
  top: -28px;
  width: 188px;
  height: 184px;
  z-index: 1;
  --rot: 0deg;
}
.hero__asterisk img, .hero__zigzag img { width: 100%; height: 100%; object-fit: contain; }
.hero__tagline { width: 742px; max-width: 100%; }

/* About */
.about {
  display: flex;
  align-items: flex-start;
  padding: 50px 100px;
  scroll-margin-top: 100px;
  background: radial-gradient(47% 50% at 50% 50%, var(--bluegray) 0%, var(--bg) 100%);
}
.about__video { width: 30%; height: 550px; flex: none; }
.about__video video {
  width: 100%;
  height: 100%;
  border-radius: 300px;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  background: transparent;
}
.about__text { flex: 1 0 0; padding-left: 140px; }
.about__copy {
  height: 550px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* What we do */
.services {
  height: 1127px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 30px;
  padding: 50px 100px 0;
  scroll-margin-top: 100px;
  background: radial-gradient(50% 50% at 50% 50%, var(--green) 0%, var(--bg) 100%);
}
.services__title { width: 516px; }
.services__grid {
  width: 100%;
  height: 86%;
  display: grid;
  grid-template-columns: repeat(2, minmax(50px, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 28px;
  overflow: hidden;
}

/* Clients */
.clients {
  display: flex;
  align-items: flex-start;
  padding: 50px 100px;
  scroll-margin-top: 100px;
  background: radial-gradient(50% 50% at 50% 50%, var(--yellow) 0%, var(--bg) 100%);
}
.clients__title { flex: 1 0 0; text-align: left; }
.clients__logos {
  width: 526px;
  height: 237px;
  flex: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(50px, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 38px;
  align-items: center;
}
.clients__logos img { width: 100%; height: 100%; object-fit: contain; }

/* Just for fun */
.fun {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 50px 100px;
  scroll-margin-top: 100px;
  background: radial-gradient(50% 50% at 50% 50%, var(--bluegray) 0%, var(--bg) 100%);
}
.fun__head { width: 524px; height: 295px; flex: none; }
.fun__head h2 { text-align: left; }
.fun__copy { flex: 1 0 0; height: 295px; }
.fun__copy a { text-decoration: underline; }
.fun__copy a:hover { color: rgba(255, 255, 255, .5); text-decoration: none; }
.fun__chair {
  position: absolute;
  left: 262px;
  bottom: 34px;
  width: 114px;
  height: 190px;
  z-index: 1;
  --rot: 0deg;
}
.fun__chair img { width: 100%; height: 100%; object-fit: contain; }

/* Contact */
.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 81px 100px;
  border-radius: 50px 100px;
  scroll-margin-top: 100px;
  background: radial-gradient(50% 50% at 50% 50%, var(--green) 0%, var(--bg) 100%);
}
.contact__hello {
  position: relative;
  width: 672px;
  height: 103px;
  flex: none;
  display: flex;
  align-items: center;
  padding-left: 103px;
}
.contact__hello .contact__title {
  font-size: 29px;
  font-weight: 400;
  letter-spacing: -0.3px;
  text-align: left;
}
.contact__hello a { text-decoration: underline; }
.contact__hello a:hover { color: rgba(255, 255, 255, .5); text-decoration: none; }
.contact__arrow {
  position: absolute;
  left: 42px;
  top: 22px;
  width: 46px;
  height: 40px;
}
.contact__arrow img { width: 45px; height: 50px; object-fit: contain; }
.contact__social {
  flex: 1 0 0;
  display: flex;
  align-items: center;
  gap: 70px;
}
.contact__social a { display: block; width: 37px; height: 37px; color: var(--black); }
.contact__social a:hover { color: #fff; }
.contact__social svg { width: 100%; height: 100%; fill: currentColor; }

/* Footer */
.footer {
  padding: 0 100px 40px;
  font-size: 14px;
  letter-spacing: -0.2px;
  line-height: 1.6em;
  color: rgba(0, 0, 0, .75);
}
.footer p { margin: 0; }
.footer a { color: inherit; }
.footer a:hover { color: #fff; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Appear animations */
.appear--pop {
  opacity: 0.001;
  transform: perspective(1200px) scale(0.5) rotate(var(--rot, 0deg));
  animation: pop 1.85s cubic-bezier(.44, 0, .56, 1) forwards;
}
@keyframes pop {
  to { opacity: 1; transform: perspective(1200px) scale(1) rotate(var(--rot, 0deg)); }
}
.appear--rise {
  opacity: 0;
  transform: translateY(60px);
  animation: rise 1s cubic-bezier(.44, 0, .56, 1) forwards;
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}
.reveal { opacity: 0; transition: opacity 1s ease; }
.reveal.is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .appear--pop, .appear--rise { animation: none; opacity: 1; transform: perspective(1200px) rotate(var(--rot, 0deg)); }
  .reveal { opacity: 1; transition: none; }
  html { scroll-behavior: auto; }
}

/* Tablet type scale (810–1199px) */
@media (max-width: 1199px) {
  h2 { font-size: 46px; }
  h3, .hero__tagline { font-size: 32px; }
  .service .service__name {
  text-align: left; font-size: 24px; }
}

/* Mobile layout (below 1200px) */
@media (max-width: 1199px) {
  .desktop-only { display: none; }
  .page { gap: 0; }
  .nav { display: none; }

  .hero { height: 457px; padding: 20px 30px 0; gap: 0; }
  .hero__wordmark { height: 50%; padding-bottom: 43px; }
  .hero__asterisk { left: -33px; top: -24px; bottom: auto; width: 126px; height: 94px; }
  .hero__zigzag { right: -21px; top: 23px; width: 80px; height: 78px; }
  .hero__tagline { width: 330px; }

  .about { flex-direction: column; padding: 0 30px 30px; }
  .about__video { width: 100%; height: 579px; }
  .about__text { padding: 30px 0 0; width: 100%; flex: none; }
  .about__copy { height: auto; }
  .about__copy p { font-size: 18px; letter-spacing: -0.3px; line-height: 1.4em; }

  .services { height: auto; flex-direction: column; gap: 24px; padding: 30px 30px 0; }
  .services__title { width: auto; }
  .services__grid { display: block; height: auto; width: auto; }
  .service { margin-bottom: 20px; }

  .clients { flex-direction: column; gap: 40px; padding: 30px; }
  .clients__title { flex: none; width: 100%; }
  .clients__logos {
    width: 100%;
    height: auto;
    grid-template-columns: repeat(2, minmax(50px, 1fr));
    grid-template-rows: none;
    grid-auto-rows: 60px;
    gap: 30px;
  }

  .fun { flex-direction: column; align-items: flex-start; gap: 24px; padding: 30px; border-radius: 30px; }
  .fun__head { width: 100%; height: auto; }
  .fun__copy { height: auto; }
  .fun__copy p { font-size: 18px; letter-spacing: -0.3px; line-height: 1.4em; }
  .fun__chair { position: relative; left: auto; bottom: auto; width: 54px; height: 90px; }

  .contact { flex-direction: column; align-items: flex-start; gap: 29px; padding: 40px 30px 30px; border-radius: 0; }
  .contact__hello { width: 100%; height: auto; padding: 0; }
  .contact__hello .contact__title { font-size: 24px; font-weight: 500; letter-spacing: -1px; }
  .contact__hello a { text-decoration: none; }
  .contact__arrow { display: none; }
  .contact__social { flex: none; width: 100%; gap: 60px; }
  .contact__social a { width: 28px; height: 28px; }
  .footer { padding: 0 30px 30px; }
}

@media (max-width: 809px) {
  h2 { font-size: 40px; letter-spacing: -1px; }
  h3, .hero__tagline { font-size: 24px; }
  .service p { font-size: 14px; letter-spacing: -0.3px; line-height: 1.3em; }
}
