/* Icons */
body .material-symbols-outlined {
  display: inline-block;
  direction: ltr;
  font-family: 'Material Symbols Outlined';
  font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

body .material-symbols-outlined.icon-filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Base and tokens */
:root {
  --color-bg: #F6F7FB;
  --color-white: #fff;
  --color-dark: #181A1F;
  --color-darkest: #0C0D0F;
  --color-gray: #9EA3B0;
  --color-border: #E0E3EA;
  --color-light: #F6F7FB;
  --color-accent: #f6b51e;
  --color-copy: #727785;
  --color-grid-fade-edge: rgba(255, 255, 255, 0.9);
  --color-grid-fade-center: rgba(255, 255, 255, 0.6);
  --grid-cell-size: 56px;
  --layout-max-width: 1140px;
  --layout-gutter: 16px;
  --layout-section-gap: 16px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-56: 56px;
  --space-64: 64px;
  --space-80: 80px;
  --radius-card: 24px;
  --radius-btn: 8px;
  --radius-badge: 96px;
  --radius-faq: 12px;
  --font-heading: 'Oswald';
  --font-body: 'Poppins';
  --header-h: auto;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
  background: var(--color-bg);
  color: var(--color-copy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
}

h1 { font-size: 64px; line-height: 1; letter-spacing: -0.04em; }
h2 { font-size: 40px; line-height: 50px; letter-spacing: -0.04em; }
h3 { font-size: 36px; line-height: 1.2; letter-spacing: -0.04em; }
h4 { font-size: 32px; line-height: 38px; letter-spacing: -0.04em; }
h5 { font-size: 24px; line-height: 32px; letter-spacing: -0.04em; }
h6 { font-size: 20px; line-height: 26px; letter-spacing: -0.04em; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { border: 0; background: none; color: inherit; cursor: pointer; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Badges and buttons */
.studio-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  height: 40px;
  padding: 0 var(--space-16);
  border-radius: var(--radius-badge);
  background: var(--color-accent);
  flex-shrink: 0;
  align-self: center;
}

.studio-badge span {
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  height: 56px;
  padding: var(--space-16) var(--space-24);
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(0) scale(1); }
.btn-primary { background: var(--color-dark); color: var(--color-white); }
.btn-outline { border: 2px solid #C8CCD6; background: var(--color-white); color: var(--color-dark); }
.button-icon { display: block; width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 16px max(var(--layout-gutter), calc((100% - var(--layout-max-width)) / 2 + var(--layout-gutter)));
  background: var(--color-white);
}

.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-logo-image { display: block; width: 128px; height: auto; }
.site-nav { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: var(--space-8); height: 100%; }
.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 var(--space-16);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
  white-space: nowrap;
  transition: opacity 0.18s ease;
}
.nav-link:hover { opacity: 0.6; }
.hamburger-btn { display: none; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; color: var(--color-dark); }
.hamburger-btn:hover { background: var(--color-light); }

/* Page and hero */
.landing-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 0 24px;
}

.hero-card, .capabilities-panel {
  background-color: var(--color-white);
  background-image:
    linear-gradient(to bottom, var(--color-grid-fade-edge) 0%, var(--color-grid-fade-center) 50%, var(--color-grid-fade-edge) 100%),
    linear-gradient(to right, #C8CCD6 1px, transparent 1px),
    linear-gradient(to bottom, #C8CCD6 1px, transparent 1px),
    linear-gradient(to right, transparent calc(100% - 1px), #C8CCD6),
    linear-gradient(to bottom, transparent calc(100% - 1px), #C8CCD6);
  background-position: center, left top, left top, right top, left bottom;
  background-size: 100% 100%, var(--grid-cell-size) var(--grid-cell-size), var(--grid-cell-size) var(--grid-cell-size), 100% 100%, 100% 100%;
  background-repeat: no-repeat, round, round, no-repeat, no-repeat;
}

.hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 503px;
  margin: var(--layout-gutter);
  padding: var(--space-64) var(--space-32);
  gap: var(--space-24);
  border-radius: var(--radius-card);
  text-align: center;
}

.hero-copy-group, .hero-actions-group { display: flex; flex-direction: column; align-items: center; width: 100%; gap: var(--space-8); }
.hero-highlight { color: var(--color-accent); }
.hero-subtitle { max-width: 640px; }
.hero-cta { display: flex; flex-direction: row; justify-content: center; gap: var(--space-16); }
.hero-cta .btn { min-height: 56px; padding: 14px 24px; font-size: 16px; }
.hero-note { width: 100%; text-align: center; }

/* Section labels and content grids */
.content-section {
  display: flex;
  flex-direction: column;
  gap: var(--layout-section-gap);
  padding: var(--layout-gutter);
  scroll-margin-top: calc(var(--header-h) + var(--space-24));
}

.section-label { display: flex; align-items: center; gap: var(--space-16); height: 28px; }
.section-label-text { color: var(--color-copy); font-size: 16px; line-height: 1.8; white-space: nowrap; }
.section-label-line { flex: 1; min-width: 0; height: 1px; background: var(--color-border); }
.section-label-arrow { flex-shrink: 0; color: #C8CCD6; font-size: 24px; line-height: 1; }
.steps-grid, .benefits-grid, .work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--layout-section-gap);
}

.step-card, .benefit-card, .work-card { min-width: 0; border-radius: var(--radius-card); background: var(--color-white); }
.step-card, .benefit-card { display: flex; flex-direction: column; align-items: flex-start; padding: var(--space-32); gap: var(--space-16); }
.step-icon, .benefit-icon { display: block; width: 64px; height: 64px; color: var(--color-accent); font-size: 64px; line-height: 1; flex: 0 0 64px; }

.capabilities-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 348px;
  padding: var(--space-64) var(--space-32);
  gap: var(--space-16);
  border-radius: var(--radius-card);
  text-align: center;
}

.capabilities-copy { display: flex; flex-direction: column; width: 100%; gap: var(--space-8); }
.capabilities-copy > p { max-width: 800px; margin-inline: auto; }
.capability-tags { display: flex; flex-wrap: wrap; justify-content: center; width: 100%; gap: var(--space-8); color: var(--color-dark); list-style: none; }
.capability-tags li { height: 40px; padding: 4px 15px; border: 2px solid #C8CCD6; border-radius: 999px; background: var(--color-white); font-weight: 600; }

/* Portfolio cards */
.work-card { display: flex; flex-direction: column; align-items: flex-start; padding: var(--space-24); gap: var(--space-16); }
.work-visual { width: 100%; height: 216px; border-radius: var(--radius-card); background: var(--color-bg); }
.work-tag, .pricing-badge { display: inline-flex; align-items: center; width: fit-content; min-height: 40px; padding: 6px 16px; border-radius: 999px; background: var(--color-accent); color: var(--color-dark); font-weight: 500; }
.work-card h4 { margin-top: -2px; }
.work-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; color: var(--color-dark); font-weight: 600; }
.work-link .material-symbols-outlined { font-size: 22px; }

/* Testimonials */
.carousel-wrapper { display: flex; flex-direction: column; gap: var(--space-16); }
.testimonials-scroll {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-16);
  overflow: hidden;
  overflow-y: hidden;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.testimonials-scroll::-webkit-scrollbar { display: none; }
.testimonial-card { display: flex; flex-direction: column; flex-shrink: 0; width: clamp(280px, calc(100vw - 80px), 400px); padding: var(--space-24); gap: var(--space-16); border-radius: var(--radius-card); background: var(--color-white); scroll-snap-align: start; }
.testimonial-video-card { position: relative; align-items: center; justify-content: flex-end; width: auto; height: auto; min-height: 464px; min-width: 0; padding: var(--space-32); gap: var(--space-40); overflow: hidden; border-radius: var(--radius-card); background: var(--color-bg); }
.tv-bg { position: absolute; inset: 0; overflow: hidden; }
.tv-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: brightness(0.8); }
.tv-overlay { display: none; }
.tv-play { position: relative; display: flex; align-items: center; justify-content: center; width: auto; height: auto; padding: 16px; border-radius: 9999px; background: rgba(246, 181, 30, 0.6); flex-shrink: 0; }
.tv-play .material-symbols-outlined { display: block; width: 32px; height: 32px; color: var(--color-darkest); font-size: 32px; line-height: 1; font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.tv-equalizer { position: absolute; top: var(--space-24); right: var(--space-24); display: flex; align-items: flex-end; height: 20px; gap: 3px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.tv-equalizer span { width: 3px; height: 4px; border-radius: 2px; background: var(--color-accent); transform-origin: bottom; animation: eq-bar 0.5s ease-in-out infinite alternate; }
.tv-equalizer span:nth-child(1) { animation-duration: 0.45s; }
.tv-equalizer span:nth-child(2) { animation-duration: 0.6s; animation-delay: 0.1s; }
.tv-equalizer span:nth-child(3) { animation-duration: 0.38s; animation-delay: 0.05s; }
.tv-equalizer span:nth-child(4) { animation-duration: 0.55s; animation-delay: 0.18s; }
.tv-equalizer span:nth-child(5) { animation-duration: 0.5s; animation-delay: 0.08s; }
@keyframes eq-bar { from { height: 3px; } to { height: 20px; } }
.testimonial-video-card.is-playing .tv-equalizer { opacity: 1; }
.tv-info { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; text-align: center; }
.tv-info h5 { color: #fff; }
.tv-company { color: #fff; font-family: var(--font-body); font-size: 16px; line-height: 1.8; }
a.tv-company:hover { text-decoration: underline; }
.carousel-nav { display: none; align-items: center; justify-content: center; gap: var(--space-16); }
.carousel-btn:focus-visible { outline: 2px solid var(--color-dark); outline-offset: 2px; }
.carousel-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid var(--color-border); border-radius: 50%; background: var(--color-white); color: var(--color-dark); flex-shrink: 0; transition: transform 0.12s ease; }
.carousel-btn:hover:not(:disabled) { transform: translateY(-2px) scale(1.02); }
.carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* Pricing */
.pricing-section > h2 { text-align: center; }
.pricing-card { width: min(100%, 460px); margin: 0 auto; padding: var(--space-32); border-radius: var(--radius-card); background: var(--color-dark); color: #fff; }
.pricing-card h4 { color: #fff; }
.pricing-badge { margin-top: 20px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-8); margin: var(--space-16) 0 var(--space-24); color: #c8cad2; }
.price strong { color: #fff; font-family: var(--font-heading); font-size: 40px; line-height: 1; letter-spacing: -0.04em; }
.price del { color: #858894; font-family: var(--font-heading); font-size: 24px; font-weight: 700; }
.pricing-features { display: flex; flex-direction: column; gap: var(--space-8); color: #c8cad2; list-style: none; }
.pricing-features li { display: flex; align-items: flex-start; gap: var(--space-12); }
.pricing-features li::before { content: 'check'; display: block; width: 24px; height: 24px; color: var(--color-accent); font-family: 'Material Symbols Outlined'; font-size: 20px; line-height: 1.4; flex: 0 0 24px; }
.pricing-cta { width: 100%; margin-top: 28px; background: var(--color-accent); color: var(--color-dark); }
.pricing-note { margin-top: var(--space-12); color: #c8cad2; text-align: center; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: var(--space-16); }
.faq-item { overflow: hidden; border-radius: var(--radius-faq); background: var(--color-white); }
.faq-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: var(--space-16) var(--space-24); gap: var(--space-24); text-align: left; transition: background 0.15s ease; }
.faq-trigger:focus-visible { outline: 2px solid var(--color-dark); outline-offset: -2px; }
.faq-icon { color: var(--color-dark); font-size: 32px; line-height: 1; flex-shrink: 0; user-select: none; }
.faq-answer { padding: 0 var(--space-24) var(--space-16); }
.faq-answer[hidden] { display: none; }

/* Contact and footer */
.contact-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; margin: var(--layout-gutter); padding: var(--space-64) var(--space-32); gap: var(--space-16); border-radius: var(--radius-card); background: var(--color-dark); color: #c8cad2; text-align: center; }
.contact-panel h2 { color: #fff; }
.contact-cta { margin: 4px 0; background: var(--color-accent); color: var(--color-dark); }
.contact-email { width: 100%; text-align: center; }
.contact-email a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer { display: grid; align-items: center; width: 100%; max-width: var(--layout-max-width); margin: 0 auto; padding: 0 var(--layout-gutter) 24px; grid-template-columns: 1fr 1fr; gap: 12px; }
.footer-bottom { display: flex; align-items: center; justify-content: flex-start; gap: var(--space-24); flex-wrap: wrap; }
.footer-privacy-link { margin: 0; color: var(--color-gray); font-size: 16px; transition: color 0.15s; }
.footer-privacy-link:hover { color: var(--color-dark); text-decoration: underline; }
.footer-copy { justify-self: end; margin: 0; color: var(--color-gray); text-align: center; white-space: nowrap; }

/* Legal dialogs */
body.modal-open { overflow: hidden; }
.site-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: var(--space-16); background: rgba(12, 13, 15, 0.6); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.24s ease, visibility 0.24s ease; }
.site-modal[hidden] { display: none; }
.site-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.site-modal__dialog { position: relative; width: 100%; max-width: 700px; max-height: calc(100vh - 40px); overflow: auto; padding: var(--space-40); border-radius: var(--radius-card); background: var(--color-white); opacity: 0; transform: translateY(12px) scale(0.985); transition: transform 0.26s ease, opacity 0.26s ease; }
.site-modal.is-open .site-modal__dialog { opacity: 1; transform: translateY(0) scale(1); }
.site-modal__dialog--wide { max-width: 480px; padding: 0; overflow: visible; background: transparent; }
.site-modal__dialog--legal { max-width: min(980px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); padding: 0; overflow: hidden; background: transparent; }
.case-study-popup-card { display: flex; flex-direction: column; width: 100%; padding: var(--space-24); gap: var(--space-24); border-radius: var(--radius-card); background: var(--color-white); }
.legal-popup-card { max-height: calc(100dvh - 48px); }
.case-study-popup-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); }
.project-case-badge { display: inline-flex; align-items: center; width: fit-content; height: 40px; padding: 0 var(--space-16); border-radius: var(--radius-badge); background: var(--color-accent); color: var(--color-dark); font-size: 16px; font-weight: 600; line-height: 1.8; white-space: nowrap; }
.case-study-popup-close { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px; background: #eceff5; color: var(--color-dark); font-size: 24px; line-height: 1; }
.legal-popup-content { display: flex; flex-direction: column; min-height: 0; padding-right: 12px; gap: var(--space-24); overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; }
.prv-section { display: flex; flex-direction: column; gap: var(--space-8); }
.legal-popup-content > div:first-child small { display: block; margin-top: 6px; }
.legal-popup-content a { color: var(--color-dark); text-decoration: underline; text-underline-offset: 2px; }
.prv-divider { height: 1px; background: var(--color-border); }

/* Keyboard focus */
.nav-link:focus-visible, .btn:focus-visible { outline: 2px solid var(--color-dark); outline-offset: 2px; border-radius: var(--radius-btn); }
.mobile-heading-break { display: none; }

/* Responsive layout */
@media (max-width: 826px) {
  :root { --header-h: 64px; --layout-max-width: 768px; }
  .site-header { height: 64px; padding: 16px max(var(--layout-gutter), calc((100% - var(--layout-max-width)) / 2 + var(--layout-gutter))); }
  .site-nav { display: none; }
  .site-nav.is-open { position: fixed; top: var(--header-h); right: 0; left: 0; z-index: 99; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; height: auto; padding: var(--space-8) 0 var(--space-16); border-top: 1px solid var(--color-border); background: var(--color-white); box-shadow: 0 8px 32px rgba(14, 18, 27, 0.1); animation: menu-slide-in 0.18s ease; }
  .site-nav.is-open .nav-link { justify-content: flex-start; width: 100%; height: 48px; padding: var(--space-12) var(--space-24); }
  .hamburger-btn { display: flex; }
  .landing-main { max-width: var(--layout-max-width); }
  .capabilities-panel { min-height: 313px; padding: var(--space-32); text-align: center; }
  .capabilities-copy > p { width: 100%; }
  .testimonials-scroll, .work-grid { display: flex; grid-template-columns: none; gap: var(--space-16); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .testimonials-scroll::-webkit-scrollbar, .work-grid::-webkit-scrollbar { display: none; }
  .testimonial-video-card, .work-card { width: calc((100% - var(--space-16)) / 2); flex: 0 0 calc((100% - var(--space-16)) / 2); scroll-snap-align: start; }
  .testimonial-video-card { height: 364px; padding: var(--space-32); }
  .testimonial-nav, .work-nav { display: flex; }
  .hero-headline-break { display: none; }
}

@media (max-width: 639.98px) {
  .site-modal__dialog--wide { max-width: 100%; max-height: calc(100vh - var(--space-24)); border-radius: var(--radius-card); }
  .site-modal__dialog--legal { max-width: calc(100vw - 32px); max-height: calc(100dvh - 40px); }
  .legal-popup-card { max-height: calc(100dvh - 40px); padding: var(--space-24); }
  .legal-popup-content { padding: 0 var(--space-8); }
}

@media (max-width: 559.98px) {
  :root { --grid-cell-size: 41px; }
  .mobile-heading-break { display: block; }
  .hero-headline-break { display: none; }
  .hero-card {
    min-height: 0;
    align-items: flex-start;
    padding: var(--space-40) var(--space-24);
    text-align: left;
  }
  .studio-badge { align-self: flex-start; }
  h1 { font-size: 48px; line-height: 56px; }
  .hero-cta { width: 100%; flex-direction: column; gap: var(--space-16); }
  .hero-cta .btn { width: 100%; }
  .hero-copy-group, .hero-actions-group { align-items: flex-start; }
  .pricing-section > h2 { text-align: left; }
  .steps-grid, .benefits-grid { grid-template-columns: 1fr; gap: var(--space-16); }
  .step-card, .benefit-card { padding: var(--space-24); }
  .capabilities-panel {
    min-height: 0;
    align-items: flex-start;
    padding: var(--space-40) var(--space-24);
    gap: var(--space-24);
    text-align: left;
  }
  .capability-tags { justify-content: flex-start; }
  .work-grid { margin-right: 0; padding-right: 0; }
  .work-card { width: 100%; padding: var(--space-24); flex-basis: 100%; }
  .testimonial-video-card { width: 100%; height: 416px; padding: var(--space-24); flex-basis: 100%; }
  .faq-trigger { gap: var(--space-16); padding: var(--space-16); }
  .contact-panel { align-items: flex-start; padding: var(--space-32) var(--space-24); text-align: left; }
  .contact-panel .contact-cta { width: 100%; }
  .site-footer { padding: 0 var(--space-16) var(--space-16); grid-template-columns: 1fr; justify-items: center; gap: var(--space-8); }
  .footer-bottom { justify-content: center; gap: var(--space-16); }
  .footer-copy { justify-self: center; font-size: 12px; white-space: normal; }
  .footer-privacy-link { font-size: 12px; }
}

@media (max-width: 379.98px) {
  .site-modal { padding: 12px; }
  .site-modal__dialog--legal { max-width: calc(100vw - 24px); max-height: calc(100dvh - 28px); }
  .legal-popup-card { max-height: calc(100dvh - 28px); padding: 18px; gap: var(--space-16); }
  .legal-popup-content { padding: 0 6px; gap: var(--space-16); }
}

@media (max-width: 339.98px) {
  :root { --grid-cell-size: 39px; }
}

@media (min-width: 1200px) {
  .testimonials-scroll { overflow: hidden; }
}
