/* ===========================
   GRW+ — Global Styles
   Design reference: studio-ato.com
   =========================== */

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

:root {
  --black: #0a0a0a;
  --white: #f5f5f2;
  --grey-light: #e8e8e4;
  --grey-mid: #b0b0aa;
  --grey-dark: #555550;
  --accent: #0a0a0a;
  --font-main: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --page-padding: 2.5vw;
  --nav-height: 64px;
  --transition: 0.25s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--white);
  color: var(--black);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===========================
   NAVIGATION
   =========================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-padding);
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid var(--grey-light);
  mix-blend-mode: normal;
}

.nav__logo {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.nav__links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--grey-dark);
}

.nav__links .nav-instagram svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* ===========================
   LAYOUT
   =========================== */

.page-wrapper {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

.section {
  padding: 6rem var(--page-padding);
}

.section--hero {
  padding: 10vh var(--page-padding) 8vh;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

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

.section--grey {
  background: var(--grey-light);
}

/* ===========================
   TYPOGRAPHY
   =========================== */

.heading-xl {
  font-size: clamp(3rem, 8vw, 10rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.heading-l {
  font-size: clamp(2rem, 4.5vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.heading-m {
  font-size: clamp(1.4rem, 2.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.heading-s {
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0em;
}

.label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-dark);
}

.label--light {
  color: var(--grey-mid);
}

.body-text {
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1.7;
  color: var(--grey-dark);
  max-width: 50ch;
}

.body-text--light {
  color: var(--grey-mid);
}

/* ===========================
   HERO
   =========================== */

.hero__eyebrow {
  margin-bottom: 1.5rem;
}

.hero__headline {
  margin-bottom: 2rem;
}

.hero__headline .rotating-word {
  display: inline-block;
  position: relative;
  overflow: hidden;
  min-width: 3ch;
}

.hero__sub {
  max-width: 55ch;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  color: var(--grey-dark);
  line-height: 1.65;
  margin-bottom: 3rem;
}

.hero__scroll {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-mid);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__scroll::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--grey-mid);
}

/* ===========================
   SECTION HEADER
   =========================== */

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4rem;
  gap: 2rem;
}

.section-header__left {
  flex: 1;
}

.section-header__right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

/* ===========================
   DIVIDER
   =========================== */

.divider {
  height: 1px;
  background: var(--grey-light);
  margin: 0 var(--page-padding);
}

.divider--dark {
  background: #1f1f1f;
}

/* ===========================
   SERVICES
   =========================== */

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.service-item {
  padding: 3rem 0;
  border-bottom: 1px solid var(--grey-light);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
  cursor: default;
  transition: background var(--transition);
}

.service-item:first-child,
.service-item:nth-child(2) {
  border-top: 1px solid var(--grey-light);
}

.service-item:hover {
  background: var(--grey-light);
  padding-left: 1rem;
  padding-right: 1rem;
  margin: 0 -1rem;
}

.service-item__number {
  font-size: 0.75rem;
  color: var(--grey-mid);
  letter-spacing: 0.08em;
  padding-top: 0.25rem;
}

.service-item__content {}

.service-item__title {
  font-size: clamp(1.1rem, 1.8vw, 1.8rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.service-item__desc {
  font-size: 0.9rem;
  color: var(--grey-dark);
  line-height: 1.65;
  max-width: 42ch;
}

.service-item__tags {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--grey-mid);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  color: var(--grey-dark);
}

/* full-width service layout (Services page) */
.services-list {
  border-top: 1px solid var(--grey-light);
}

.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 2rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--grey-light);
  align-items: start;
  transition: background var(--transition);
}

.service-row:hover {
  background: var(--grey-light);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  margin: 0 -1.5rem;
}

.service-row__num {
  font-size: 0.75rem;
  color: var(--grey-mid);
  letter-spacing: 0.08em;
  padding-top: 0.3rem;
}

.service-row__title {
  font-size: clamp(1.2rem, 2vw, 2.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.service-row__body {
  font-size: 0.9rem;
  color: var(--grey-dark);
  line-height: 1.7;
}

.service-row__body p + p {
  margin-top: 0.75rem;
}

.service-row__body .tag-list {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===========================
   WORK / CASE STUDIES
   =========================== */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}

.work-item {
  position: relative;
  overflow: hidden;
  background: var(--grey-light);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.work-item--wide {
  grid-column: span 2;
  aspect-ratio: 16/7;
}

.work-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.work-item:hover .work-item__image {
  transform: scale(1.03);
}

.work-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.75) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.work-item:hover .work-item__overlay {
  opacity: 1;
}

.work-item__title {
  font-size: clamp(0.95rem, 1.3vw, 1.3rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
}

.work-item__sub {
  font-size: 0.78rem;
  color: var(--grey-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

/* Work list (on work page) */
.work-list {
  border-top: 1px solid var(--grey-light);
}

.work-list-item {
  display: grid;
  grid-template-columns: 60px 3fr 2fr 80px;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--grey-light);
  align-items: center;
  transition: all var(--transition);
  cursor: pointer;
}

.work-list-item:hover {
  background: var(--grey-light);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  margin: 0 -1.5rem;
}

.work-list-item__num {
  font-size: 0.75rem;
  color: var(--grey-mid);
  letter-spacing: 0.08em;
}

.work-list-item__title {
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  font-weight: 400;
  line-height: 1.25;
}

.work-list-item__type {
  font-size: 0.8rem;
  color: var(--grey-dark);
  letter-spacing: 0.06em;
}

.work-list-item__arrow {
  font-size: 1.2rem;
  color: var(--grey-mid);
  text-align: right;
}

/* ===========================
   ABOUT
   =========================== */

.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: end;
  padding: 10vh var(--page-padding) 8vh;
}

.about-hero__text {}

.about-hero__image {
  aspect-ratio: 3/4;
  background: var(--grey-light);
  overflow: hidden;
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-values {
  margin-top: 5rem;
  border-top: 1px solid var(--grey-light);
}

.value-row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--grey-light);
}

.value-row__num {
  font-size: 0.75rem;
  color: var(--grey-mid);
  letter-spacing: 0.08em;
}

.value-row__title {
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  font-weight: 400;
}

.value-row__text {
  font-size: 0.9rem;
  color: var(--grey-dark);
  line-height: 1.7;
}

/* ===========================
   FAQ
   =========================== */

.faq-item {
  border-bottom: 1px solid var(--grey-light);
  padding: 1.5rem 0;
}

.faq-item__q {
  font-size: clamp(0.95rem, 1.2vw, 1.2rem);
  font-weight: 400;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item__q::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--grey-mid);
  flex-shrink: 0;
}

.faq-item__a {
  font-size: 0.9rem;
  color: var(--grey-dark);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-item__a {
  max-height: 300px;
  padding-top: 1rem;
}

.faq-item.open .faq-item__q::after {
  content: '−';
}

/* ===========================
   CTA SECTION
   =========================== */

.cta-section {
  padding: 8rem var(--page-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.cta-section .heading-l {
  max-width: 20ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  cursor: pointer;
  transition: all var(--transition);
}

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

.btn--filled {
  background: var(--black);
  color: var(--white);
}

.btn--filled:hover {
  background: var(--grey-dark);
  border-color: var(--grey-dark);
}

.btn--white {
  border-color: var(--white);
  color: var(--white);
}

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

/* ===========================
   MARQUEE
   =========================== */

.marquee-section {
  overflow: hidden;
  padding: 3rem 0;
  border-top: 1px solid var(--grey-light);
  border-bottom: 1px solid var(--grey-light);
}

.marquee-track {
  display: flex;
  gap: 4rem;
  animation: marquee 20s linear infinite;
  width: max-content;
}

.marquee-item {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--grey-dark);
}

.marquee-item span {
  color: var(--grey-mid);
  margin-right: 4rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===========================
   STATS
   =========================== */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--grey-light);
}

.stat-item {
  padding: 3rem 0;
  border-right: 1px solid var(--grey-light);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item__number {
  font-size: clamp(2.5rem, 5vw, 6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-item__label {
  font-size: 0.8rem;
  color: var(--grey-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
  padding: 4rem var(--page-padding) 2.5rem;
  border-top: 1px solid var(--grey-light);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--grey-light);
}

.footer__brand {}

.footer__brand-name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--grey-dark);
  line-height: 1.6;
  max-width: 28ch;
}

.footer__nav {}

.footer__nav-title {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 1.25rem;
}

.footer__nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer__nav-links a {
  font-size: 0.9rem;
  color: var(--grey-dark);
  transition: color var(--transition);
}

.footer__nav-links a:hover {
  color: var(--black);
}

.footer__contact {}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--grey-mid);
  letter-spacing: 0.04em;
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer__legal a {
  font-size: 0.78rem;
  color: var(--grey-mid);
  transition: color var(--transition);
}

.footer__legal a:hover {
  color: var(--black);
}

/* ===========================
   INTRO TEXT BLOCK
   =========================== */

.intro-block {
  max-width: 75ch;
}

/* ===========================
   ROTATING TEXT
   =========================== */

#rotating-text {
  display: inline;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1024px) {
  :root {
    --page-padding: 4vw;
  }

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

  .work-item--wide {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }

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

  .about-hero {
    grid-template-columns: 1fr;
  }

  .about-hero__image {
    order: -1;
    aspect-ratio: 16/9;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .service-row {
    grid-template-columns: 60px 1fr;
  }

  .service-row__body {
    grid-column: 2;
  }

  .work-list-item {
    grid-template-columns: 50px 1fr 80px;
  }

  .work-list-item__type {
    display: none;
  }

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

@media (max-width: 768px) {
  :root {
    --page-padding: 5vw;
    --nav-height: 56px;
  }

  .nav__links {
    gap: 1.25rem;
  }

  .nav__links .label-hide {
    display: none;
  }

  .section {
    padding: 4rem var(--page-padding);
  }

  .section--hero {
    padding: 6vh var(--page-padding) 6vh;
    min-height: 80vh;
  }

  .section-header {
    flex-direction: column;
    gap: 1rem;
  }

  .about-intro {
    grid-template-columns: 1fr;
  }

  .value-row {
    grid-template-columns: 40px 1fr;
  }

  .value-row__text {
    grid-column: 2;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .work-list-item {
    grid-template-columns: 40px 1fr 40px;
  }
}
