:root {
  color-scheme: dark;
  --page-gutter: clamp(1rem, 3vw, 2.5rem);
  --section-space: clamp(3rem, 6vw, 5rem);
  --header-height: 5rem;
  --body-font: "Inter", Arial, sans-serif;
  --heading-font: "Hanken Grotesk", Arial, sans-serif;
  --label-font: "Geist", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; scroll-padding-top: calc(var(--header-height) + 1rem); }
body {
  margin: 0;
  background: #0b1326;
  color: #dae2fd;
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; }
/* Component wrappers preserve the existing page and flex layouts. */
site-header, site-footer { display: contents; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #82cfff; outline-offset: 4px; }
[hidden] { display: none !important; }
.grid > *, .flex > * { min-width: 0; }
h1, h2, h3, h4, p, li, dd { overflow-wrap: break-word; }
h1, h2, h3, h4 { text-wrap: balance; }

body .font-body-md, body .font-body-lg { font-family: var(--body-font); }
body .font-display-xl, body .font-headline-lg, body .font-headline-md,
body .font-headline-lg-mobile { font-family: var(--heading-font); }
body .text-body-md { font-size: 1rem; line-height: 1.5; }
body .text-body-lg { font-size: clamp(1rem, .95rem + .25vw, 1.125rem); line-height: 1.6; }
body .font-label-sm, body .text-label-sm {
  font-family: var(--label-font);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .05em;
}
body .text-headline-lg, body .section-heading {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  font-family: var(--heading-font);
  font-weight: 600;
}
body .text-headline-md { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.3; }
body .page-title {
  font-family: var(--heading-font);
  font-size: clamp(2.25rem, 1.5rem + 3.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}
body label[class], body label {
  display: block;
  font-family: var(--label-font);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .02em;
  text-transform: none;
}
body input:not([type="checkbox"]):not([type="radio"]), body select, body textarea {
  min-width: 0;
  font-size: 1rem;
  line-height: 1.5;
}
.material-symbols-outlined { flex-shrink: 0; line-height: 1; vertical-align: middle; }

body .site-container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}
body .section-space { padding-block: var(--section-space); }
body .section-intro { margin-bottom: clamp(2rem, 4vw, 3rem); }
body .page-main {
  padding-top: calc(var(--header-height) + var(--section-space));
  padding-bottom: var(--section-space);
}
body .about-main { padding-bottom: 0; }
body .content-card { padding: clamp(1.5rem, 3vw, 3rem); }

/* Shared action dimensions keep equal labels and different button styles aligned. */
body .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-shrink: 0;
  width: 14rem;
  max-width: 100%;
  min-height: 3rem;
  padding: .6875rem 1.25rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  transition: background-color .2s, border-color .2s, opacity .2s;
}
body .btn-primary { background: #00aeef; color: #003e58; }
body .btn-primary:hover { background: #35bff3; }
body .btn-secondary { border-color: #82cfff; color: #82cfff; background: transparent; }
body .btn-secondary:hover { background: rgb(130 207 255 / 10%); }
body .btn-block { width: 100%; }
body .btn.hidden { display: none; }
body .action-group { display: flex; flex-wrap: wrap; gap: 1rem; align-items: stretch; }
body .action-group > .btn { width: 14rem; }

/* The fixed header and dropdown never change document flow or scrollbar width. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  background: rgb(11 19 38 / 96%);
  border-bottom: 1px solid rgb(62 72 80 / 30%);
  backdrop-filter: blur(20px);
}
.site-header .header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 100%;
}
.site-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.site-logo img { display: block; width: 146.286px; height: 32px; object-fit: contain; object-position: left center; }
.site-menu { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: clamp(2rem, 5vw, 5rem); }
.nav-links, .nav-actions { display: flex; align-items: center; gap: 2rem; }
.nav-actions { gap: .75rem; }
.site-header .nav-link {
  display: inline-flex;
  position: relative;
  align-items: center;
  min-height: 3rem;
  padding-block: .75rem;
  color: #bdc8d1;
  font: 600 1rem/1.5 var(--body-font);
  white-space: nowrap;
  width: 5rem;
  justify-content: center;
}
.site-header .nav-link::after {
  content: "";
  position: absolute;
  inset: auto 0 .375rem;
  height: 2px;
  background: transparent;
}
.site-header .nav-link:hover, .site-header .nav-link[aria-current="page"] { color: #82cfff; }
.site-header .nav-link[aria-current="page"]::after { background: #82cfff; }
.nav-login { display: inline-flex; align-items: center; justify-content: center; width: 6rem; min-height: 3rem; padding: .75rem 1rem; font-weight: 600; }
.nav-login:hover { color: #82cfff; }
.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #3e4850;
  border-radius: .5rem;
  color: #dae2fd;
}
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 1.375rem; height: 2px; background: currentColor; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 60; padding: .75rem 1rem; background: #82cfff; color: #00344b; border-radius: .5rem; }
.skip-link:focus { top: .75rem; }

.site-footer { background: #060e20; border-top: 1px solid rgb(62 72 80 / 30%); padding-block: var(--section-space); }
.footer-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: clamp(2rem, 4vw, 4rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.footer-brand { max-width: 20rem; }
.footer-brand img { display: block; width: 120px; height: 24px; object-fit: contain; object-position: left center; margin-bottom: 1.5rem; }
.footer-brand p { margin: 0; color: #bdc8d1; }
.footer-links { display: grid; grid-template-columns: 1fr 1.2fr 1.8fr 1.3fr; gap: 1.5rem; }
.footer-links > div { min-width: 0; }
.footer-links h2 { margin: 0 0 .75rem; font: 600 1rem/1.5 var(--heading-font); }
.footer-links ul { margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-block; padding-block: .375rem; color: #bdc8d1; overflow-wrap: anywhere; }
.footer-links a:hover { color: #82cfff; }
.footer-copyright { border-top: 1px solid rgb(62 72 80 / 30%); padding-top: 1.5rem; }
.footer-copyright p { margin: 0; color: #bdc8d1; font: 500 .8125rem/1.6 var(--label-font); letter-spacing: .05em; }

/* Landing page: cards retain readable columns throughout the tablet range. */
.home-main { padding-top: var(--header-height); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: clamp(2rem, 4vw, 3rem); }
.hero-copy { min-width: 0; }
.hero-media { min-width: 0; width: 100%; max-width: 48rem; margin-inline: auto; }
.hero-media img { display: block; width: 100%; height: auto; }
.studio-strip { padding-block: clamp(2rem, 4vw, 3rem); }
.studio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 1.5rem; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.feature-grid > div { padding: clamp(1.5rem, 2.5vw, 2.5rem); }
.process-steps { --step-gap: clamp(1.5rem, 4vw, 4rem); display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.process-step { position: relative; min-width: 0; text-align: center; }
.process-step .step-number { position: relative; z-index: 1; width: 4rem; height: 4rem; margin-inline: auto; font: 600 1.5rem/1 var(--heading-font); }
.process-step h3 { margin-top: 1.5rem; margin-bottom: .75rem; }
.process-step p { max-width: 24rem; margin-inline: auto; }
.testimonial-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.testimonial-card { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; padding: clamp(1.5rem, 3vw, 3rem); text-align: center; }
.testimonial-card > div:last-child { flex: 1; min-width: 0; }
.testimonial-stars { display: flex; justify-content: center; gap: .25rem; }
.final-cta { position: relative; padding-top: 0; padding-bottom: var(--section-space); }
.final-cta .content-card { padding-block: clamp(2rem, 4vw, 4rem); }

@media (min-width: 640px) {
  .studio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid h3 { min-height: 2.6em; }
  .testimonial-card { flex-direction: row; text-align: left; }
  .testimonial-stars { justify-content: flex-start; }
}
@media (min-width: 768px) {
  .process-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--step-gap); }
  /* Each connector begins and ends at adjacent circle centers, irrespective of copy height. */
  .process-step:not(:last-child)::after { content: ""; position: absolute; top: 2rem; left: 50%; width: calc(100% + var(--step-gap)); height: 1px; background: rgb(130 207 255 / 30%); }
}
@media (min-width: 1100px) {
  .hero-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonial-card { flex-direction: column; text-align: center; }
  .testimonial-stars { justify-content: center; }
}
@media (min-width: 1360px) {
  .testimonial-card { flex-direction: row; text-align: left; }
  .testimonial-stars { justify-content: flex-start; }
}
@media (max-width: 1099px) {
  .nav-toggle { display: inline-flex; }
  .site-menu {
    display: none;
    position: absolute;
    inset: var(--header-height) 0 auto;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem var(--page-gutter) 1.5rem;
    background: #0b1326;
    border-bottom: 1px solid #3e4850;
    box-shadow: 0 1rem 2rem rgb(0 0 0 / 20%);
  }
  .site-menu.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 1rem; }
  .nav-links { flex-direction: column; align-items: stretch; gap: .25rem; }
  .site-header .nav-link { width: 100%; justify-content: flex-start; padding-inline: .75rem; border-radius: .5rem; }
  .site-header .nav-link::after { display: none; }
  .site-header .nav-link[aria-current="page"] { background: rgb(130 207 255 / 8%); }
  .nav-actions { border-top: 1px solid #3e4850; padding-top: 1rem; }
  .nav-actions > a { flex: 1; }
  .footer-main { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { max-width: 28rem; }
}
@media (max-width: 639px) {
  :root { --header-height: 4.5rem; }
  .site-logo img { width: 128px; height: 28px; }
  body .action-group { flex-direction: column; }
  body .action-group > .btn { width: 100%; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
