:root {
  --ink: #111827;
  --navy: #18264f;
  --blue: #2878ed;
  --cyan: #18b9cf;
  --green: #12b886;
  --yellow: #f4b62b;
  --paper: #ffffff;
  --mist: #f1f6f9;
  --line: #cfdae3;
  --muted: #536273;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body,
button,
input,
select,
textarea {
  letter-spacing: 0;
}

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

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(207, 218, 227, 0.85);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 8px 24px rgba(15, 31, 48, 0.08);
}

.nav-shell {
  width: min(var(--max), calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  width: 190px;
  height: 54px;
  display: flex;
  align-items: center;
}

.brand img {
  width: 190px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

nav {
  display: flex;
  justify-content: center;
  gap: 26px;
}

nav a,
.language-switch a,
.footer-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 750;
}

nav a:hover,
.language-switch a:hover,
.footer-links a:hover {
  color: var(--blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f3f6fa;
}

.language-switch a {
  min-width: 32px;
  min-height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.language-switch a.active {
  background: var(--ink);
  color: var(--paper);
}

.language-switch a.active:hover {
  color: var(--paper);
}

.button {
  min-height: 48px;
  padding: 12px 20px;
  border: 2px solid var(--yellow);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #101827;
  background: var(--yellow);
  text-decoration: none;
  font-weight: 850;
  line-height: 1.2;
  cursor: pointer;
  gap: 12px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease, color 220ms ease;
}

.button::after {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--yellow);
  background: var(--ink);
  content: "\2192";
  font-size: 1rem;
  line-height: 1;
  transition: transform 220ms ease, color 220ms ease, background 220ms ease;
}

.button:active {
  transform: scale(0.98);
  box-shadow: 0 4px 10px rgba(13, 25, 46, 0.18);
}

.button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 3px solid #77d5ff;
  outline-offset: 3px;
}

.button-small {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 0.88rem;
}

.button-small::after {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
  font-size: 0.9rem;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.68);
  color: #fff;
  background: rgba(8, 17, 33, 0.24);
}

.button-dark {
  width: 100%;
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.button-dark::after {
  color: var(--ink);
  background: var(--yellow);
}

@media (hover: hover) {
  .button:hover {
    border-color: var(--ink);
    color: var(--ink);
    background: #fff;
    box-shadow: 0 27px 30px -20px rgba(0, 0, 0, 0.9);
    transform: scale(1.06) rotate(2deg);
  }

  .button:hover::after {
    color: #fff;
    background: var(--ink);
    transform: translateX(2px);
  }
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  display: grid;
  align-items: center;
  color: #fff;
  background: #071124;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(4, 13, 28, 0.97) 0%, rgba(4, 13, 28, 0.91) 41%, rgba(4, 13, 28, 0.47) 70%, rgba(4, 13, 28, 0.22) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 80px;
}

.hero-inner > * {
  animation: hero-enter 640ms both ease-out;
}

.hero-inner > :nth-child(2) {
  animation-delay: 70ms;
}

.hero-inner > :nth-child(3) {
  animation-delay: 140ms;
}

.hero-inner > :nth-child(4) {
  animation-delay: 210ms;
}

.hero-inner > :nth-child(5) {
  animation-delay: 280ms;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  max-width: 820px;
  margin: 14px 0 22px;
  font-size: clamp(3rem, 5.4vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  margin: 0;
  color: #e7edf6;
  font-size: 1.18rem;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-trust {
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  list-style: none;
}

.hero-trust li {
  position: relative;
  padding-left: 18px;
  color: #f5f8fb;
  font-size: 0.94rem;
  font-weight: 750;
}

.hero-trust li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.eyebrow {
  margin: 0 0 10px;
  color: #086aa8;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #64d7ef;
}

.proof-strip {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
}

.proof-strip div {
  min-height: 150px;
  padding: 30px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip strong {
  color: var(--navy);
  font-size: 1.8rem;
  line-height: 1.15;
}

.proof-strip span {
  max-width: 260px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 108px 0;
}

.section.compact {
  padding-top: 86px;
  padding-bottom: 86px;
}

.section-heading {
  margin-bottom: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: 60px;
}

.section-heading h2,
.fit-copy h2,
.team-copy h2,
.playful-copy h2,
.contact-copy h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.section-heading > p,
.team-copy > p,
.playful-copy > p,
.contact-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.service-grid,
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 420px;
  padding: 32px;
  border: 1px solid var(--line);
  border-top-width: 5px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

@media (hover: hover) {
  .service-card:hover,
  .work-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 42px rgba(15, 31, 48, 0.12);
  }
}

.playful-band {
  border-top: 1px solid #bfe8ef;
  border-bottom: 1px solid #bfe8ef;
  background: #eafaff;
}

.playful-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 70px;
}

.playful-copy h2,
.team-copy h2 {
  margin: 0 0 22px;
  max-width: 720px;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1.03;
}

.playful-copy > p:not(.eyebrow),
.team-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.playful-copy > p:not(.eyebrow) + p:not(.eyebrow) {
  margin-top: 14px;
}

.playful-tags,
.team-names {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.playful-tags span,
.team-names span {
  padding: 8px 13px;
  border: 1px solid #9fdde6;
  border-radius: 999px;
  color: #075f70;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 850;
}

.gif-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 48px rgba(20, 78, 92, 0.13);
  animation: gentle-float 4.8s ease-in-out infinite;
}

.gif-frame img {
  width: 100%;
  height: auto;
}

.gif-frame-code span {
  position: absolute;
  right: 18px;
  bottom: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: #0b1e33;
  font-size: 0.75rem;
  font-weight: 850;
}

@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.service-card.accent-blue {
  border-top-color: var(--blue);
}

.service-card.accent-green {
  border-top-color: var(--green);
}

.service-card.accent-yellow {
  border-top-color: var(--yellow);
}

.service-number {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.service-card h3,
.work-card h3,
.delivery-steps h3,
.contact-form-wrap h3 {
  margin: 20px 0 12px;
  font-size: 1.48rem;
  line-height: 1.18;
}

.service-card > p,
.work-card p,
.delivery-steps p {
  margin: 0;
  color: var(--muted);
}

.check-list {
  margin: auto 0 0;
  padding: 26px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 9px 0 9px 23px;
  border-top: 1px solid #e5ebef;
  color: #283747;
  font-size: 0.94rem;
}

.check-list li::before {
  position: absolute;
  top: 16px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.fit-band {
  color: #fff;
  background: var(--navy);
}

.fit-band .section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 80px;
}

.fit-copy h2 {
  font-size: clamp(2.2rem, 3.4vw, 3.7rem);
}

.fit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.fit-list div {
  min-height: 170px;
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.fit-list span {
  color: #64d7ef;
  font-size: 0.76rem;
  font-weight: 900;
}

.fit-list p {
  margin: 16px 0 0;
  color: #f2f6fb;
  font-weight: 700;
  line-height: 1.5;
}

.work-grid {
  align-items: stretch;
}

.work-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.work-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #061226;
}

.work-body {
  flex: 1;
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.work-type {
  color: #0871b2 !important;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work-stack {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.work-stack strong {
  color: var(--ink);
}

.work-card h3 {
  margin-top: 12px;
}

.work-card a,
.text-link {
  margin-top: auto;
  padding-top: 24px;
  color: #075f9c;
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.delivery-band {
  color: #fff;
  background: #101a25;
}

.light-heading h2,
.light-heading > p {
  color: #fff;
}

.light-heading > p {
  color: #c9d4df;
}

.delivery-steps {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}

.delivery-steps li {
  min-height: 240px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 0;
  display: flex;
  flex-direction: column;
}

.delivery-steps li:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.delivery-steps > li > span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #101a25;
  background: var(--yellow);
  font-weight: 900;
}

.delivery-steps h3 {
  color: #fff;
}

.delivery-steps p {
  color: #c9d4df;
}

.team-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: 70px;
}

.team-visual {
  padding: 18px;
  border: 1px solid #bfe8ef;
  border-radius: 8px;
  background: #eafaff;
}

.gif-frame-team {
  box-shadow: none;
}

.team-copy h2 {
  margin-bottom: 24px;
}

.team-copy > p + p {
  margin-top: 16px;
}

.team-profile-note {
  margin-top: 24px !important;
  padding-left: 15px;
  border-left: 4px solid var(--yellow);
  font-size: 0.92rem !important;
}

.text-link {
  display: inline-block;
}

.contact-band {
  color: #fff;
  background: var(--navy);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: 74px;
}

.contact-copy h2 {
  margin-bottom: 22px;
}

.contact-copy > p {
  color: #dce5ef;
}

.contact-direct {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.23);
  display: grid;
  gap: 4px;
}

.contact-direct span {
  color: #83dff0;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-direct a {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 850;
  text-underline-offset: 4px;
}

.contact-note {
  margin-top: 26px !important;
  font-size: 0.9rem !important;
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-form-wrap {
  position: relative;
  min-height: 560px;
  padding: 34px;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  margin-bottom: 14px;
  display: grid;
  gap: 6px;
}

label span {
  color: #344456;
  font-size: 0.82rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #aebdca;
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
}

input,
select {
  min-height: 48px;
  padding: 10px 12px;
}

textarea {
  min-height: 138px;
  padding: 12px;
  resize: vertical;
}

.form-submit {
  margin-top: 6px;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-privacy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.submission-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.form-success {
  min-height: 480px;
  display: grid;
  align-content: center;
}

.form-success h3 {
  margin: 12px 0 16px;
  font-size: 2rem;
}

.form-success p:not(.eyebrow) {
  margin: 0 0 24px;
  color: var(--muted);
}

.is-hidden {
  display: none !important;
}

footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 126px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 28px;
}

.footer-inner img {
  width: 174px;
  height: 50px;
  object-fit: contain;
  object-position: left center;
}

.footer-inner p {
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

@media (max-width: 1020px) {
  .nav-shell {
    grid-template-columns: 180px 1fr auto;
    gap: 14px;
  }

  .brand,
  .brand img {
    width: 168px;
  }

  nav {
    gap: 14px;
  }

  nav a {
    font-size: 0.82rem;
  }

  .section-heading,
  .fit-band .section,
  .contact-layout,
  .playful-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .service-grid,
  .work-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card:last-child,
  .work-card:last-child {
    grid-column: 1 / -1;
  }

  .work-card:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .work-card:last-child img {
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (max-width: 860px) {
  .nav-shell {
    grid-template-columns: 180px 1fr auto;
  }

  nav {
    display: none;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 66px;
  }

  .site-header {
    position: relative;
  }

  .nav-shell {
    width: min(100% - 28px, var(--max));
    min-height: 68px;
    grid-template-columns: 1fr auto;
  }

  .brand,
  .brand img {
    width: 156px;
    height: 48px;
  }

  nav,
  .nav-actions .button-small {
    display: none;
  }

  .language-switch a {
    min-width: 38px;
    min-height: 34px;
  }

  .hero {
    min-height: 660px;
    align-items: end;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(4, 13, 28, 0.98) 0%, rgba(4, 13, 28, 0.9) 62%, rgba(4, 13, 28, 0.42) 100%);
  }

  .hero-inner {
    width: calc(100% - 32px);
    padding: 80px 0 52px;
  }

  .hero h1 {
    font-size: 3.05rem;
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  .hero-actions {
    display: grid;
  }

  .hero-trust {
    display: grid;
    gap: 9px;
  }

  .proof-strip,
  .service-grid,
  .work-grid,
  .fit-list,
  .delivery-steps,
  .team-section,
  .form-row,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .proof-strip div {
    min-height: 112px;
    padding: 24px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-strip div:last-child {
    border-bottom: 0;
  }

  .section {
    width: calc(100% - 32px);
    padding: 76px 0;
  }

  .section.compact {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .section-heading h2,
  .fit-copy h2,
  .team-copy h2,
  .playful-copy h2,
  .contact-copy h2 {
    font-size: 2.45rem;
  }

  .service-grid,
  .work-grid {
    gap: 14px;
  }

  .work-body {
    flex: none;
  }

  .service-card,
  .work-card,
  .service-card:last-child,
  .work-card:last-child {
    grid-column: auto;
  }

  .service-card {
    min-height: 0;
    padding: 26px;
  }

  .check-list {
    margin-top: 16px;
  }

  .fit-band .section {
    gap: 38px;
  }

  .fit-list {
    border-left: 0;
  }

  .fit-list div {
    min-height: 0;
    padding: 22px 0;
    border-right: 0;
  }

  .work-card:last-child {
    display: flex;
  }

  .work-card:last-child img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .delivery-steps li {
    min-height: 0;
    padding: 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 0;
  }

  .delivery-steps li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .team-section,
  .playful-layout {
    gap: 34px;
  }

  .team-visual {
    padding: 10px;
  }

  .reveal-ready [data-reveal] {
    transition-delay: 0ms !important;
  }

  .contact-form-wrap {
    min-height: 0;
    padding: 24px 18px;
  }

  .form-success {
    min-height: 390px;
  }

  .footer-inner {
    padding: 34px 0;
    gap: 12px;
  }

  .footer-links {
    margin-top: 10px;
    flex-wrap: wrap;
  }
}

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

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

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
