:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --surface: #fbfcfe;
  --surface-strong: #f1f5fa;
  --text: #111827;
  --text-muted: #4b5b6b;
  --text-soft: #6b7886;
  --line: rgba(17, 24, 39, 0.08);
  --line-strong: rgba(17, 24, 39, 0.14);
  --accent: #0a68d8;
  --accent-strong: #084fb2;
  --accent-soft: rgba(10, 104, 216, 0.1);
  --shadow-soft: 0 22px 70px rgba(17, 24, 39, 0.07);
  --max-width: 1240px;
  --wide-width: 1380px;
  --section-space: clamp(4.5rem, 7.5vw, 7.25rem);
  --header-height: 4.75rem;
  --radius-large: 30px;
  --radius-medium: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family:
    "SF Pro Display",
    "SF Pro Text",
    "Helvetica Neue",
    "Segoe UI Variable",
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

a,
button {
  font: inherit;
}

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

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

main,
section,
header,
footer {
  overflow-x: clip;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.wide-container {
  width: min(calc(100% - 2rem), var(--wide-width));
}

.section {
  padding: var(--section-space) 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid transparent;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-open {
  border-bottom-color: var(--line);
  box-shadow: 0 14px 42px rgba(17, 24, 39, 0.045);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  flex: 0 1 auto;
  min-width: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.7rem);
  min-width: 0;
}

.site-nav a {
  position: relative;
  color: var(--text-muted);
  font-size: 0.97rem;
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.36rem;
  width: 100%;
  height: 1px;
  transform: scaleX(0.32);
  transform-origin: left center;
  opacity: 0;
  background: var(--accent);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"],
.brand:hover,
.brand:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.7rem;
  max-width: 100%;
  padding: 0.66rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--line-strong);
  background: var(--bg-soft);
  transform: translateY(-1px);
}

.nav-toggle-label {
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-toggle-icon {
  position: relative;
  width: 1rem;
  height: 0.9rem;
  flex: 0 0 auto;
}

.nav-toggle-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition:
    top 180ms ease,
    transform 180ms ease;
}

.nav-toggle-icon span:first-child {
  top: 0.2rem;
}

.nav-toggle-icon span:last-child {
  top: 0.62rem;
}

.site-header.nav-open .nav-toggle-icon span:first-child {
  top: 0.42rem;
  transform: rotate(45deg);
}

.site-header.nav-open .nav-toggle-icon span:last-child {
  top: 0.42rem;
  transform: rotate(-45deg);
}

.app-hero {
  padding: clamp(1.4rem, 3.2vw, 3.2rem) 0 0;
}

.carousel {
  width: 100%;
  min-width: 0;
  animation: fade-up 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.carousel-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  transform: translate3d(0, 0, 0);
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  min-width: 0;
  background: var(--surface-strong);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.carousel-control:hover,
.carousel-control:focus-visible {
  border-color: rgba(10, 104, 216, 0.22);
  background: #ffffff;
  color: var(--accent-strong);
  transform: translateY(-50%) scale(1.03);
}

.carousel-control-prev {
  left: clamp(0.75rem, 1.8vw, 1.35rem);
}

.carousel-control-next {
  right: clamp(0.75rem, 1.8vw, 1.35rem);
}

.carousel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.95rem;
  min-width: 0;
}

.carousel-status {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
  min-width: 0;
}

.carousel-dot {
  width: clamp(1.15rem, 2vw, 1.8rem);
  height: 0.16rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.16);
  cursor: pointer;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.carousel-dot:hover,
.carousel-dot:focus-visible,
.carousel-dot.is-active {
  background: var(--accent);
}

.carousel-dot.is-active {
  transform: scaleX(1.08);
}

.app-summary {
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
}

.app-summary-inner {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--text);
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-wrap: balance;
}

.app-summary h1,
.page-hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 5.8rem);
}

.lead,
.page-hero p:last-child {
  color: var(--text-muted);
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
  text-wrap: pretty;
}

.lead {
  max-width: 48rem;
  margin: 1.35rem auto 0;
}

.download-block {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.download-note {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 3.25rem;
  padding: 0.85rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-align: center;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(10, 104, 216, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-strong);
  box-shadow: 0 16px 34px rgba(10, 104, 216, 0.2);
}

.page-hero {
  padding: clamp(4.6rem, 8vw, 7.4rem) 0 clamp(3rem, 5vw, 4.7rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.page-hero-inner {
  max-width: 880px;
}

.page-hero p:last-child {
  max-width: 48rem;
  margin-top: 1.35rem;
}

.services-grid,
.work-grid,
.about-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.about-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
}

.service-card,
.work-card,
.about-card,
.quiet-card,
.contact-card,
.split-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 252, 0.96));
}

.service-card,
.work-card,
.about-card,
.quiet-card {
  padding: clamp(1.5rem, 3vw, 2.2rem);
}

.service-card h2,
.work-card h2,
.quiet-card h2,
.contact-copy h2,
.split-panel h2 {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.service-card p,
.work-card p,
.quiet-card p,
.about-card p,
.contact-copy p,
.split-panel p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  text-wrap: pretty;
}

.service-card,
.work-card {
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.service-card:hover,
.work-card:hover {
  border-color: rgba(10, 104, 216, 0.18);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.06);
  transform: translateY(-2px);
}

.work-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.work-card-muted {
  background: #ffffff;
}

.text-link {
  display: inline-flex;
  margin-top: 1.35rem;
  color: var(--accent);
  font-weight: 650;
  letter-spacing: -0.02em;
  transition: color 180ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent-strong);
}

.about-lead {
  color: var(--text);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.36;
}

.section-muted {
  border-top: 1px solid var(--line);
  background: #fbfcfe;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  padding: clamp(1.7rem, 4vw, 3rem);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  padding: clamp(1.7rem, 4vw, 3rem);
}

.contact-copy,
.contact-actions {
  min-width: 0;
}

.contact-actions {
  display: grid;
  justify-items: start;
  gap: 1rem;
}

.contact-email {
  max-width: 100%;
  color: var(--text);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  transition: color 180ms ease;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--accent-strong);
}

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.footer-inner > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-footer a {
  transition: color 180ms ease;
}

:focus-visible {
  outline: 2px solid rgba(10, 104, 216, 0.32);
  outline-offset: 3px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-layout,
  .contact-card,
  .split-panel,
  .work-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .header-inner {
    min-height: auto;
    padding: 0.9rem 0;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    width: 100%;
    display: grid;
    gap: 0.3rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    border-top: 1px solid transparent;
    transition:
      max-height 250ms ease,
      opacity 180ms ease,
      padding 180ms ease,
      visibility 180ms step-end,
      border-color 180ms ease;
  }

  .site-header.nav-open .site-nav {
    max-height: 19rem;
    opacity: 1;
    visibility: visible;
    padding-top: 0.85rem;
    padding-bottom: 0.15rem;
    border-top-color: var(--line);
    transition:
      max-height 260ms ease,
      opacity 180ms ease,
      padding 180ms ease,
      visibility 0ms step-start,
      border-color 180ms ease;
  }

  .site-nav a {
    padding: 0.58rem 0;
    font-size: 1rem;
  }

  .site-nav a::after {
    bottom: 0.32rem;
  }
}

@media (max-width: 720px) {
  .container,
  .wide-container {
    width: min(calc(100% - 1.4rem), var(--max-width));
  }

  .app-hero {
    padding-top: 1rem;
  }

  .carousel-frame,
  .service-card,
  .work-card,
  .about-card,
  .quiet-card,
  .contact-card,
  .split-panel {
    border-radius: 22px;
  }

  .carousel-frame {
    aspect-ratio: 4 / 3;
  }

  .carousel-control {
    width: 2.4rem;
    height: 2.4rem;
  }

  .carousel-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .carousel-dots {
    justify-content: flex-start;
  }

  .app-summary h1,
  .page-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.75rem);
  }

  .lead,
  .page-hero p:last-child,
  .service-card p,
  .work-card p,
  .quiet-card p,
  .about-card p,
  .contact-copy p,
  .split-panel p {
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
