/* ============================================================
   Studio North - design & development studio
   Example project by Zenbyte
   ============================================================ */

:root {
  --bg: #0d0d0f;
  --surface: #151517;
  --surface-2: #1c1c1f;
  --text: #f4f4f0;
  --muted: #8d8d88;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #d8f24a;
  --accent-dim: #b9d139;
  --radius: 14px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4 {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}

.section {
  padding-block: clamp(70px, 10vw, 140px);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-head {
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
}
.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease);
}
.btn-accent {
  background: var(--accent);
  color: #14150a;
}
.btn-accent:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
}
.btn-line {
  border-color: var(--line);
  color: var(--text);
}
.btn-line:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 18px;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.scrolled {
  background: rgba(13, 13, 15, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.02rem;
}
.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.25s var(--ease);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-cta {
  padding: 10px 22px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ===== Hero ===== */
.hero {
  padding-top: clamp(130px, 18vw, 200px);
  padding-bottom: 0;
}
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(1.9rem, 5vw, 3.6rem);
  font-weight: 700;
}
.hero-title .accent {
  color: var(--accent);
}
.hero-foot {
  margin-top: 44px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 60px;
}
.hero-foot p {
  max-width: 440px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Marquee */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 22px;
}
.marquee-track {
  display: flex;
  gap: 30px;
  white-space: nowrap;
  width: max-content;
  animation: scrollX 26s linear infinite;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}
.marquee-track .sep {
  color: var(--accent);
}
@keyframes scrollX {
  to {
    transform: translateX(-50%);
  }
}

/* ===== Work ===== */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
}
.work-card {
  display: block;
}
.work-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface);
}
.work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
  filter: grayscale(0.2);
}
.work-card:hover .work-img img {
  transform: scale(1.05);
  filter: grayscale(0);
}
.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 18px;
}
.work-cat {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}
.work-meta h3 {
  font-size: 1.5rem;
}
.work-year {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== Services ===== */
.services {
  background: var(--surface);
}
.service-list {
  border-top: 1px solid var(--line);
}
.service-row {
  display: grid;
  grid-template-columns: 80px 280px 1fr;
  gap: 24px;
  align-items: baseline;
  padding-block: 34px;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease);
}
.service-row:hover {
  padding-left: 14px;
}
.service-no {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
}
.service-row h3 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}
.service-row p {
  color: var(--muted);
  font-size: 1rem;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.about-text h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 22px;
}
.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 1.05rem;
}
.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.about-stats strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 2.4rem;
  color: var(--text);
}
.about-stats span {
  font-size: 0.85rem;
  color: var(--muted);
}
.about-media img {
  width: 100%;
  height: 100%;
  max-height: 540px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ===== Process ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  padding-top: 24px;
  border-top: 2px solid var(--accent);
}
.p-no {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.95rem;
}
.process-step h3 {
  font-size: 1.5rem;
  margin: 14px 0 10px;
}
.process-step p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* ===== Quote ===== */
.quote {
  background: var(--surface);
}
.quote blockquote {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 980px;
}
.quote-author {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
}
.quote-author strong {
  font-size: 1rem;
}
.quote-author span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== Contact ===== */
.contact {
  text-align: center;
}
.contact-inner h2 {
  font-size: clamp(2.4rem, 7vw, 5rem);
  margin-bottom: 24px;
}
.contact-sub {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 36px;
  font-size: 1.1rem;
}
.contact-mail {
  display: inline-block;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 3.5vw, 2.2rem);
  color: var(--accent);
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.contact-mail:hover {
  border-color: var(--accent);
}
.contact-meta {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 30px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(48px, 6vw, 72px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 44px;
}
.footer-brand p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 260px;
}
.footer-col h4 {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 9px;
  transition: color 0.25s var(--ease);
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-bottom strong {
  color: var(--accent);
}

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    background: var(--surface);
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    padding: 40px;
    margin: 0;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a {
    font-size: 1.2rem;
  }
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
    z-index: 110;
  }
  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .work-grid {
    grid-template-columns: 1fr;
  }
  .service-row {
    grid-template-columns: 50px 1fr;
    gap: 8px 18px;
  }
  .service-row p {
    grid-column: 2;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .process-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .marquee-track {
    animation: none;
  }
}
