/* Self-hosted Montserrat subsets. One cached WOFF2 source covers all used weights. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/Montserrat-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/Montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/Montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --black: #050506;
  --black-soft: #0b0d10;
  --navy: #101620;
  --navy-soft: #131f31;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.69);
  --muted-soft: rgba(255, 255, 255, 0.52);
  --line: rgba(255, 255, 255, 0.22);
  --light-blue: #d5e9f2;
  --radius: 9px;
  --container: 1120px;
  --header-height: 110px;
  --transition: 220ms ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--black);
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--white);
  background: var(--black);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #bce8ff;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 999;
  left: 16px;
  top: 12px;
  padding: 10px 16px;
  color: #000;
  background: #fff;
  border-radius: 6px;
  transform: translateY(-180%);
  transition: transform var(--transition);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  position: relative;
  isolation: isolate;
  scroll-margin-top: 20px;
}

.hero > .container,
.section > .container,
.projects > .project-carousel-wrap {
  position: relative;
  z-index: 1;
}

.centered {
  text-align: center;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
}

h1 {
  margin-bottom: 24px;
  font-size: 43px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 34px;
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

h3 {
  font-size: 22px;
}

.eyebrow {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 32px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  color: #111;
  background: #fff;
  border-color: #fff;
}

.button-light:hover {
  color: #fff;
  background: transparent;
}

.button-dark {
  width: 100%;
  color: #fff;
  background: #030303;
  border-color: #030303;
}

.button-dark:hover {
  color: #050505;
  background: transparent;
}

.site-header {
  position: absolute;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
}

.site-header.is-scrolled {
  background: rgba(5, 5, 6, 0.86);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  width: 112px;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: clamp(24px, 2.5vw, 42px);
}

.desktop-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: #fff;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  min-height: 38px;
  padding-inline: 24px;
  font-size: 12px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px 9px;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-height) 0 0;
  padding: 28px 24px;
  background: rgba(5, 5, 6, 0.98);
  overflow-y: auto;
}

.mobile-nav:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.mobile-nav > a:not(.button) {
  padding: 16px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav .button {
  margin-top: 24px;
}

.hero {
  position: relative;
  min-height: 630px;
  padding: calc(var(--header-height) + 28px) 0 45px;
  background: #060607;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(3, 3, 4, 0.78) 0%, rgba(3, 3, 4, 0.56) 56%, rgba(3, 3, 4, 0.32) 100%), url("../images/team-studio.webp");
  background-position: center;
  background-size: cover;
  filter: saturate(0.72) brightness(0.62);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), #050506 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: start;
  gap: 64px;
}

.hero-copy {
  padding-top: 22px;
}

.hero-lead {
  max-width: 500px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.83);
  font-size: 14px;
  line-height: 1.52;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 56px;
  margin-bottom: 34px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.text-link span {
  font-size: 26px;
  transition: transform var(--transition);
}

.text-link:hover span {
  transform: translateX(7px);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  max-width: 670px;
  margin: 0;
  padding: 0;
  gap: 10px 18px;
  list-style: none;
}

.service-tags li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.service-tags li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  font-size: 9px;
}

.hero-photo {
  position: relative;
  left: 37px;
  margin: 8px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: #eee;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.hero-photo-track {
  position: relative;
  aspect-ratio: 1.35 / 1;
  overflow: hidden;
  background: #eee;
}

.hero-photo-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 700ms ease, transform 5s ease;
}

.hero-photo-slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1.035);
}

.hero-photo-nav {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 16px;
  display: flex;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(7px);
}

.hero-photo-nav button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width var(--transition), background var(--transition);
}

.hero-photo-nav button.is-active {
  width: 22px;
  border-radius: 999px;
  background: #fff;
}

.hero-photo-nav button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.brand-ray {
  position: absolute;
  z-index: -1;
  display: block;
  max-width: none;
  pointer-events: none;
  transform: scale(1.22);
  transform-origin: center center;
}

.hero > .brand-ray-left {
  left: -129px;
  top: 216px;
  width: 229px;
  height: 230px;
}

.founder > .brand-ray-right {
  right: -122.434px;
  top: 102px;
  width: 236.434px;
  height: 238px;
}

.founder {
  overflow: hidden;
  padding: 7px 0 4px;
  background: #050506;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.founder-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  align-items: start;
  max-width: 1060px;
  gap: 28px;
}

.founder-photo {
  align-self: stretch;
  margin: 0;
  overflow: hidden;
  min-height: 384px;
  background: #090909;
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.founder-content h2 {
  margin-top: 8px;
  margin-bottom: 20px;
}

.founder-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  color: rgba(255, 255, 255, 0.69);
  font-size: 12px;
  line-height: 1.42;
}

.founder-columns p {
  margin-bottom: 12px;
}

.founder-columns strong,
.founder-intro {
  color: #fff;
}

.founder-intro {
  max-width: 380px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.34;
}

.team {
  overflow: hidden;
  padding: 38px 0 20px;
  background: linear-gradient(
    180deg,
    #010102 0%,
    #040508 10%,
    #0d131b 30%,
    #111a28 57%,
    #172436 83%,
    #445362 95%,
    #1f2d3f 100%
  );
}

.team h2 {
  margin-bottom: 20px;
  font-size: 42px;
}

.team-copy {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  max-width: 760px;
  margin: 0 auto 27px;
}

.team-copy h3 {
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1.16;
  text-transform: uppercase;
}

.team-copy p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.team-copy .team-emphasis {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.team-video {
  display: block;
  width: 100%;
  max-width: 957px;
  height: auto;
  aspect-ratio: 319 / 180;
  margin-inline: auto;
  background: #0b0b0b;
  border-radius: 23px;
  object-fit: cover;
}

.video-play {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  padding-left: 4px;
  color: #fff;
  background: #23262a;
  border-radius: 50%;
  font-size: 20px;
}

.team-ray {
  left: -91px;
  top: 369px;
  width: 181px;
  height: 182px;
}

.trust {
  padding: 30px 0 18px;
  background: #101620;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.trust h2 {
  margin-bottom: 28px;
  font-size: 28px;
  text-align: center;
}

.logo-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  transform: translateX(192px);
}

.logo-set {
  display: flex;
  align-items: center;
  gap: 42px;
  padding-right: 42px;
}

.logo-set img {
  width: 92px;
  height: 54px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.8;
}

@keyframes logo-scroll {
  to { transform: translateX(-50%); }
}

.projects {
  overflow: hidden;
  padding: 28px 0;
  background: #101620;
}

.projects h2 {
  margin-bottom: 40px;
  font-size: 32px;
}

.project-filters {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  margin: 0 auto 36px;
  gap: 20px;
}

.project-filter-row {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.project-filter-row:last-child {
  gap: 38px;
  transform: translateX(-22px);
}

.project-filters button {
  min-height: 46px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 7px;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.project-filters button:nth-of-type(1) { width: 214px; }
.project-filters button:nth-of-type(2) { width: 298px; }
.project-filters button:nth-of-type(3) { width: 222px; }
.project-filter-row:last-child button:nth-child(1) { width: 144px; }
.project-filter-row:last-child button:nth-child(2) { width: 110px; }
.project-filter-row:last-child button:nth-child(3) { width: 86px; }
.project-filter-row:last-child button:nth-child(4) { width: 98px; }

.project-filters button:hover,
.project-filters button.is-active {
  color: #101722;
  background: #fff;
}

.project-carousel-wrap {
  width: 100%;
  margin-inline: auto;
}

.project-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  gap: 24px;
  padding: 0 0 16px 126px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.project-carousel.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.project-carousel::-webkit-scrollbar {
  display: none;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 255px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #0b0b0c var(--project-image) center / cover no-repeat;
  scroll-snap-align: start;
  isolation: isolate;
  cursor: pointer;
  transition: transform var(--transition), opacity var(--transition);
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
}

.project-card:focus-visible {
  outline-offset: -5px;
}

.project-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 18%, rgba(0, 0, 0, 0.88) 100%);
}

.project-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #101722;
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card[hidden] {
  display: none;
}

.project-card h3 {
  margin-bottom: 2px;
  font-size: 22px;
  text-transform: uppercase;
}

.project-card p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  text-transform: uppercase;
}

.project-card .project-open {
  align-self: flex-start;
  color: #fff;
  font-size: 11px;
  text-decoration: none;
}

.project-empty {
  min-height: 120px;
  margin: 0;
  padding: 42px 24px;
  color: var(--muted);
  text-align: center;
}

.carousel-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3px;
  margin-top: 18px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transform: translateY(-50%);
  transition: color var(--transition), background var(--transition), opacity var(--transition);
}

.carousel-arrow[data-project-prev] {
  right: calc(50% + 132px);
}

.carousel-arrow[data-project-next] {
  left: calc(50% + 132px);
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  color: #101722;
  background: #fff;
  outline: none;
}

.carousel-arrow:disabled {
  opacity: 0.28;
  cursor: default;
}

.carousel-arrow:disabled:hover {
  color: #fff;
  background: transparent;
}

.carousel-progress {
  position: relative;
  width: 210px;
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
}

.carousel-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 24%;
  background: #fff;
  transition: width 120ms linear;
}

.carousel-count {
  position: absolute;
  top: 13px;
  left: 50%;
  min-width: 62px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
  transform: translateX(-50%);
}

.carousel-count [data-project-current] {
  color: #fff;
  font-weight: 600;
}

.faq {
  position: relative;
  z-index: 1;
  padding-top: 40px;
}

.faq h2 {
  margin-bottom: 32px;
  font-size: 30px;
  text-transform: none;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}

.faq-column {
  display: grid;
  align-content: start;
  gap: 12px;
}

.faq details {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 5px;
  background: #101620;
  transition: border-color var(--transition), background var(--transition);
}

.faq details[open] {
  border-color: #fff;
  background: #141e2d;
}

.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 12px 48px 12px 18px;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.faq summary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 17px;
  top: 50%;
  font-size: 24px;
  font-weight: 400;
  transform: translateY(-50%);
  transition: transform var(--transition);
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  overflow: hidden;
}

.faq details[open] .faq-answer {
  animation: faq-answer-in 220ms ease both;
}

@keyframes faq-answer-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq details p {
  margin: 0;
  padding: 2px 48px 18px 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.projects-ray {
  right: -93px;
  top: 676px;
  width: 181px;
  height: 182px;
}

.contact {
  padding: 0 22px 0;
  background: #101620;
}

.contact-card {
  display: grid;
  grid-template-columns: 490px minmax(0, 1fr);
  gap: 40px;
  width: min(1382px, 100%);
  padding: 30px 130px;
  color: #070707;
  background: var(--light-blue);
}

.contact-copy h2 {
  margin-bottom: 12px;
  color: #050505;
  font-size: 32px;
  line-height: 1.08;
  text-transform: none;
}

.contact-copy > p {
  max-width: 520px;
  margin-bottom: 14px;
  color: #292d31;
  font-size: 12px;
  line-height: 1.4;
}

.contact-copy .contact-social-label {
  margin-top: 18px;
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 18px;
}

.contact-channels a {
  display: flex;
  min-width: 0;
  color: #070707;
  font-size: 11px;
  text-decoration: none;
  gap: 6px;
}

.contact-channels a:hover span,
.contact-channels a:focus-visible span {
  text-decoration: underline;
}

.contact-channels strong {
  flex: 0 0 auto;
}

.contact-channels span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-channel-email {
  grid-column: 1 / -1;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.lead-form label {
  display: block;
}

.lead-form label > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  display: block;
  width: 100%;
  color: #121212;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.lead-form input,
.lead-form select {
  min-height: 40px;
  padding: 0 15px;
}

.lead-form textarea {
  min-height: 80px;
  height: 80px;
  padding: 13px 15px;
  resize: vertical;
}

.lead-form .button {
  min-height: 40px;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: #0c6e9a;
  box-shadow: 0 0 0 3px rgba(12, 110, 154, 0.14);
  outline: none;
}

.lead-form [aria-invalid="true"] {
  border-color: #b42318;
}

.form-consent {
  display: grid !important;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 8px;
  margin: 2px 0;
  color: #20252a;
  font-size: 10px;
  line-height: 1.35;
}

.form-consent input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #050505;
}

.lead-form .form-consent > span {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
}

.form-consent a {
  color: inherit;
}

.form-status {
  min-height: 0;
  margin: 0;
  color: #14532d;
  font-size: 12px;
  font-weight: 600;
}

.form-status.is-error {
  color: #9f1f19;
}

.site-footer {
  background: #101620;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr 0.8fr;
  align-items: center;
  gap: 28px;
  min-height: 90px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.footer-inner > a:not(.brand) {
  color: inherit;
  text-decoration: none;
}

.footer-inner > a:not(.brand):hover,
.footer-inner > a:not(.brand):focus-visible {
  color: #fff;
  text-decoration: underline;
}

.legal-page {
  min-height: 100vh;
  background: #101620;
}

.legal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.legal-header-inner {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
}

.legal-back {
  color: #fff;
  font-size: 13px;
  text-decoration: none;
}

.legal-main {
  padding: 72px 0 96px;
}

.legal-content {
  width: min(860px, calc(100% - 48px));
  margin-inline: auto;
}

.legal-content h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 70px);
}

.legal-updated {
  margin-bottom: 52px;
  color: var(--muted);
  font-size: 13px;
}

.legal-content section {
  margin-top: 38px;
}

.legal-content h2 {
  margin-bottom: 14px;
  font-size: 24px;
  letter-spacing: -0.02em;
  text-transform: none;
}

.legal-content p,
.legal-content li {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.7;
}

.legal-content a {
  color: #fff;
}

.legal-content ul {
  padding-left: 22px;
}

.footer-inner p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 1161px) {
  .desktop-nav {
    flex: 0 0 auto;
    margin-left: 116px;
    gap: 50px;
  }

  .header-cta {
    min-width: 200px;
    margin-left: auto;
  }

  .hero-actions .button {
    min-width: 260px;
  }

  .hero { height: 630px; }
  .founder { height: 395px; }
  .team {
    height: auto;
    min-height: 753px;
  }
  .trust { height: 162px; }
  .projects {
    height: auto;
    min-height: 857px;
  }
  .contact { height: auto; }
  .contact-card {
    height: auto;
    min-height: 335px;
  }
  .site-footer,
  .footer-inner { min-height: 99px; }
}

@media (max-width: 1399px) {
  .brand-ray {
    display: none;
  }
}

@media (max-width: 1160px) {
  :root { --container: 980px; }

  .desktop-nav {
    gap: 22px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(370px, 0.9fr);
    gap: 42px;
  }

  .logo-track {
    transform: none;
    animation: logo-scroll 28s linear infinite;
  }

  .project-carousel {
    scroll-snap-type: inline mandatory;
  }

  .contact-card {
    padding-inline: 58px;
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 70px;
  }

  .container {
    width: min(100% - 36px, 760px);
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 42px) 0 62px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-copy {
    padding-top: 16px;
  }

  .hero-photo {
    left: 0;
    width: min(650px, 100%);
    margin-inline: auto;
  }

  .founder-grid {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 34px;
  }

  .founder-columns,
  .team-copy {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .faq-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-card {
    gap: 34px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block: 28px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 540px);
  }

  .brand img {
    width: 98px;
  }

  h1 {
    margin-bottom: 22px;
    font-size: clamp(30px, 8.2vw, 32px);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(29px, 8.6vw, 40px);
  }

  .hero {
    padding-bottom: 48px;
  }

  .hero-bg {
    background-position: 52% center;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .text-link {
    justify-content: center;
  }

  .service-tags {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 8px;
  }

  .service-tags li {
    font-size: 9px;
  }

  .hero-photo img {
    aspect-ratio: 1.18 / 1;
  }

  .founder {
    padding-block: 62px 50px;
  }

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

  .founder-photo {
    width: min(330px, 100%);
    min-height: 430px;
    margin-inline: auto;
  }

  .founder-content h2 {
    text-align: center;
  }

  .founder-columns {
    font-size: 13px;
  }

  .team {
    padding-block: 62px 48px;
  }

  .team h2 {
    font-size: 34px;
  }

  .team-copy {
    text-align: center;
  }

  .team-copy h3 {
    font-size: 18px;
  }

  .team-copy p {
    font-size: 14px;
    line-height: 1.5;
  }

  .team-copy .team-emphasis {
    font-size: 15px;
  }

  .team-video {
    border-radius: 12px;
  }

  .trust h2 {
    font-size: 24px;
  }

  .logo-set {
    gap: 34px;
    padding-right: 34px;
  }

  .logo-set img {
    width: 82px;
    height: 44px;
  }

  .projects {
    padding-top: 54px;
  }

  .project-filters {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 10px;
    margin-inline: -14px;
    padding: 0 14px 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .project-filter-row {
    display: contents;
  }

  .project-filters::-webkit-scrollbar {
    display: none;
  }

  .project-filters button {
    flex: 0 0 auto;
    width: auto;
    min-height: 38px;
    padding-inline: 16px;
    font-size: 12px;
    transform: none;
  }

  .project-carousel {
    grid-auto-columns: minmax(280px, 84vw);
    padding-inline: 14px;
  }

  .project-card {
    min-height: 300px;
  }

  .faq {
    padding-top: 54px;
  }

  .faq h2 {
    font-size: 25px;
  }

  .faq-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .faq-column {
    display: contents;
  }

  .faq-column:first-child details:nth-child(1) { order: 1; }
  .faq-column:last-child details:nth-child(1) { order: 2; }
  .faq-column:first-child details:nth-child(2) { order: 3; }
  .faq-column:last-child details:nth-child(2) { order: 4; }
  .faq-column:first-child details:nth-child(3) { order: 5; }
  .faq-column:last-child details:nth-child(3) { order: 6; }

  .faq summary {
    font-size: 13px;
  }

  .contact {
    padding-inline: 0;
  }

  .contact-card {
    width: 100%;
    padding: 38px 20px;
  }

  .contact-copy h2 {
    font-size: 31px;
  }

  .contact-copy > p {
    font-size: 15px;
    line-height: 1.5;
  }

  .contact-copy .contact-social-label {
    font-size: 14px;
  }

  .contact-channels {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .contact-channel-email {
    grid-column: auto;
  }

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

  .lead-form input,
  .lead-form select {
    min-height: 50px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }

  .footer-inner .brand {
    justify-self: center;
  }

  .legal-header-inner {
    min-height: 70px;
  }

  .legal-main {
    padding: 48px 0 72px;
  }

  .legal-content {
    width: min(100% - 28px, 540px);
  }

  .legal-content h1 {
    font-size: 36px;
  }

  .brand-ray {
    transform: scale(0.9);
  }
}

@media (max-width: 380px) {
  .service-tags {
    grid-template-columns: 1fr;
  }

  .hero-photo-track {
    aspect-ratio: 1 / 1;
  }

  .project-carousel {
    grid-auto-columns: 88vw;
  }
}

body.case-open {
  overflow: hidden;
}

.case-modal {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #0f1723;
  border: 0;
}

.case-modal::backdrop {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
}

.case-modal[open] {
  animation: case-modal-in 260ms ease both;
}

@keyframes case-modal-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.case-modal-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
  isolation: isolate;
}

.case-modal-shell::before,
.case-modal-shell::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 210px;
  height: 310px;
  opacity: 0.34;
  background: url("../images/ray-faq-right.svg") center / contain no-repeat;
  pointer-events: none;
}

.case-modal-shell::before {
  top: 18%;
  left: -92px;
  transform: rotate(180deg);
}

.case-modal-shell::after {
  right: -82px;
  bottom: 5%;
}

.case-modal-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1320px, calc(100% - 64px));
  min-height: 88px;
  margin-inline: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.case-modal-header > img {
  width: 116px;
  height: auto;
}

.case-modal-count {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.case-modal-count [data-case-current] {
  color: #fff;
}

.case-modal-close {
  position: relative;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 50%;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.case-modal-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 1px;
  background: currentColor;
}

.case-modal-close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.case-modal-close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

.case-modal-close:hover,
.case-modal-close:focus-visible {
  color: #0f1723;
  background: #fff;
  outline: none;
}

.case-modal-content {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(42px, 6vw, 96px);
  align-items: center;
  width: min(1220px, calc(100% - 96px));
  margin-inline: auto;
  padding: 30px 0 24px;
}

.case-modal-copy {
  min-width: 0;
}

.case-kicker {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.case-client-logo {
  width: auto;
  max-width: min(250px, 72%);
  height: 72px;
  margin-bottom: 22px;
  object-fit: contain;
  object-position: left center;
}

.case-modal-copy h2 {
  margin: 0 0 6px;
  font-size: clamp(36px, 4.4vw, 66px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.case-category {
  margin: 0 0 clamp(28px, 4vh, 48px);
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.case-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.case-details h3 {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.case-details ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.45;
  list-style: none;
}

.case-details li {
  position: relative;
  padding-left: 13px;
}

.case-details li::before {
  content: "";
  position: absolute;
  top: 0.66em;
  left: 0;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
}

.case-external-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
}

.case-external-link[hidden] {
  display: none;
}

.case-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 570px);
  margin: 0;
}

.case-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -18px 18px 18px -18px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 10px;
}

.case-visual img {
  width: 100%;
  max-height: min(68vh, 710px);
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

.case-visual figcaption {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-align: right;
  text-transform: uppercase;
}

.case-modal-nav {
  display: grid;
  grid-template-columns: auto minmax(120px, 280px) auto;
  gap: 24px;
  align-items: center;
  width: min(1220px, calc(100% - 96px));
  min-height: 72px;
  margin-inline: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.case-modal-nav button {
  padding: 0;
  color: rgba(255, 255, 255, 0.78);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.case-modal-nav button:last-child {
  text-align: right;
}

.case-modal-nav button:hover,
.case-modal-nav button:focus-visible {
  color: #fff;
}

.case-modal-progress {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.case-modal-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(100% / 14);
  background: #fff;
  transition: width 260ms ease;
}

@media (max-width: 900px) {
  .projects-ray {
    opacity: 0.42;
  }

  .case-modal {
    overflow-y: auto;
  }

  .case-modal-shell {
    display: block;
    min-height: 100dvh;
  }

  .case-modal-header {
    position: sticky;
    top: 0;
    width: calc(100% - 36px);
    min-height: 70px;
    background: rgba(15, 23, 35, 0.94);
    backdrop-filter: blur(12px);
  }

  .case-modal-header > img {
    width: 94px;
  }

  .case-modal-close {
    width: 38px;
    height: 38px;
  }

  .case-modal-content {
    grid-template-columns: 1fr;
    gap: 38px;
    width: calc(100% - 36px);
    padding: 34px 0 42px;
  }

  .case-client-logo {
    height: 56px;
    margin-bottom: 18px;
  }

  .case-modal-copy h2 {
    font-size: clamp(36px, 12vw, 54px);
  }

  .case-category {
    margin-bottom: 28px;
  }

  .case-details {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .case-details ul {
    font-size: 13px;
  }

  .case-visual {
    justify-self: stretch;
    width: 100%;
  }

  .case-visual::before {
    inset: -10px 10px 10px -10px;
  }

  .case-visual img {
    max-height: none;
  }

  .case-modal-nav {
    position: sticky;
    bottom: 0;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    width: 100%;
    min-height: 66px;
    padding-inline: 18px;
    background: rgba(15, 23, 35, 0.96);
    backdrop-filter: blur(12px);
  }

  .case-modal-nav button {
    font-size: 0;
  }

  .case-modal-nav button span {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo-slide,
  .faq details[open] .faq-answer {
    transition: none;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .logo-track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
