@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/lato-regular.ttf") format("truetype");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/lato-bold.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --page: #fafbfc;
  --surface: #ffffff;
  --surface-soft: #fafbfc;
  --ink: #253746;
  --body: #515f6b;
  --muted: #686e7d;
  --line: #dfe4e8;
  --accent: #3157d5;
  --accent-deep: #2447ba;
  --accent-soft: #e8edff;
  --pill: #dce1e8;
  --active: #636977;
  --dark: #171a1f;
  --radius: 16px;
  --shell: 980px;
  --header-height: 84px;
  --font: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.004em;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid rgba(49, 87, 213, 0.35);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--dark);
  color: var(--surface);
  transform: translateY(-160%);
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid rgba(223, 228, 232, 0.75);
  background: rgba(250, 251, 252, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-nav {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  color: var(--ink);
}

.brand-mark span {
  position: absolute;
  width: 13px;
  height: 13px;
  background: currentColor;
}

.brand-mark span:nth-child(1) { left: 12px; top: 4px; }
.brand-mark span:nth-child(2) { left: 21px; top: 12px; }
.brand-mark span:nth-child(3) { left: 3px; top: 26px; }
.brand-mark span:nth-child(4) { left: 28px; top: 26px; }

.site-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-menu a,
.site-menu .is-disabled,
.nav-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--pill);
  color: var(--body);
  font: 400 16px/24px var(--font);
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.site-menu a:hover,
.nav-toggle:hover {
  background: #d2d8df;
  color: var(--ink);
}

.site-menu .language-link:hover,
.site-menu .language-link:focus-visible {
  background: #cfd5dd;
  color: var(--ink);
  outline: none;
}

.language-switcher {
  position: relative;
  flex: 0 0 auto;
  width: 120px;
}

.language-switcher__trigger {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--pill);
  color: var(--ink);
  font: 400 16px/24px var(--font);
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

.language-switcher__trigger:hover,
.language-switcher__trigger:focus-visible,
.language-switcher__trigger[aria-expanded="true"] {
  background: #cfd5dd;
  outline: none;
}

.language-switcher__menu {
  position: absolute;
  z-index: 110;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: 100%;
  gap: 8px;
}

.language-switcher__menu[hidden] {
  display: none;
}

.language-switcher__option {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--body);
  font: 400 16px/24px var(--font);
  text-decoration: none;
  white-space: nowrap;
}

.language-switcher__option:hover,
.language-switcher__option:focus-visible {
  background: #dce1e8;
  color: var(--ink);
  outline: none;
}

.language-switcher__option.is-current {
  background: var(--active);
  color: #fff;
  font-weight: 500;
}

.site-menu a[aria-current="page"],
.site-menu a.is-active {
  background: var(--active);
  color: #fff;
}

.site-menu .is-disabled {
  cursor: default;
  opacity: 0.58;
  pointer-events: none;
  user-select: none;
}

.nav-toggle {
  display: none;
}

main {
  padding-top: var(--header-height);
}

.hero {
  display: grid;
  min-height: calc(100dvh - var(--header-height));
  grid-template-rows: auto minmax(280px, 1fr);
  align-content: center;
  gap: clamp(28px, 5vh, 48px);
  padding-block: clamp(40px, 6vh, 64px);
}

.hero-copy {
  max-width: 1120px;
}

.eyebrow,
.case-category {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 30ch;
  margin: 0;
  font-size: clamp(42px, 4.2vw, 52px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
  text-wrap: balance;
}

.hero-lead {
  max-width: 66ch;
  margin: 24px 0 0;
  color: var(--body);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  letter-spacing: 0;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  background: var(--accent);
  color: #f8f9ff;
}

.button-primary:hover {
  background: var(--accent-deep);
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button-secondary:hover {
  background: var(--surface-soft);
}

.hero-media {
  min-height: 280px;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--dark);
}

.hero-media video {
  height: 100%;
  object-fit: cover;
}

.section {
  padding-block: clamp(80px, 11vw, 144px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-heading h2,
.about h2,
.contact h2 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
  text-wrap: balance;
}

.section-heading p,
.about-copy > p,
.contact p {
  max-width: 65ch;
  margin: 18px 0 0;
  color: var(--body);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: 0;
}

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

.case-card {
  grid-column: span 6;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.case-card-featured {
  display: grid;
  grid-column: 1 / -1;
  grid-row: auto;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.case-image {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface-soft);
}

.case-card-featured .case-image {
  height: 100%;
  min-height: 440px;
  aspect-ratio: auto;
}

.case-card-featured .case-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.case-card:hover .case-image img {
  transform: scale(1.018);
}

.case-copy {
  padding: clamp(24px, 3.5vw, 42px);
}

.case-copy h3,
.more-item h3,
.capability-grid h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(23px, 2.2vw, 30px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
  text-wrap: balance;
}

.case-copy > p:not(.case-category),
.more-item p,
.capability-grid p {
  margin: 16px 0 0;
  color: var(--body);
}

.case-facts {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
}

.case-facts div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.case-facts dt,
.case-facts dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.case-facts dt {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.case-facts dd {
  color: var(--ink);
}

.case-link {
  display: inline-flex;
  align-items: center;
  margin-top: 28px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.case-link:hover {
  color: var(--accent-deep);
}

.section-capabilities {
  background: var(--page);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.capability-grid article {
  min-height: 230px;
  padding: 32px 32px 32px 0;
  border-bottom: 1px solid var(--line);
}

.capability-grid article:nth-child(odd) {
  padding-right: 8vw;
  border-right: 1px solid var(--line);
}

.capability-grid article:nth-child(even) {
  padding-left: 8vw;
}

.capability-grid h3 {
  max-width: 16ch;
}

.more-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 24px;
}

.more-item {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 0 0 1px transparent;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.more-item:hover,
.more-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(36, 55, 70, 0.10);
}

.more-item:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.more-item-wide {
  grid-row: span 2;
}

.more-item img {
  aspect-ratio: 16 / 9;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
}

.more-item div {
  padding: 24px 26px 28px;
}

.more-item h3 {
  font-size: 25px;
}

.more-item p {
  max-width: 46ch;
  font-size: 15px;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(52px, 9vw, 120px);
  border-top: 1px solid var(--line);
}

.about-copy > p {
  font-size: 17px;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.about-facts {
  margin: 0;
}

.about-facts div {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.about-facts div:first-child {
  padding-top: 0;
}

.about-facts dt {
  color: var(--accent);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
}

.about-facts dd {
  margin: 4px 0 0;
  color: var(--body);
  font-size: 14px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
  margin-bottom: 88px;
  padding: clamp(42px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.contact p {
  font-size: 17px;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
  text-underline-offset: 4px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .work-grid,
  .more-grid,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .case-card,
  .case-card-featured {
    grid-column: auto;
    grid-row: auto;
  }

  .case-card-featured {
    grid-template-columns: 1fr;
  }

  .case-card-featured .case-image {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .more-item-wide {
    grid-row: auto;
  }

  .more-item img {
    max-height: none;
  }

  .contact {
    align-items: start;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 64px;
  }

  .shell {
    width: min(100% - 32px, var(--shell));
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(252, 252, 250, 0.98);
    box-shadow: 0 18px 40px rgba(37, 55, 70, 0.12);
  }

  .site-menu.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-menu a,
  .site-menu .is-disabled {
    justify-content: flex-start;
    border-radius: 10px;
  }

  .hero {
    min-height: auto;
    grid-template-rows: auto auto;
    padding-block: 40px 72px;
  }

  .hero h1 {
    max-width: 14ch;
    font-size: clamp(38px, 10.5vw, 44px);
    line-height: 1.16;
  }

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

  .hero-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
  }

  .section {
    padding-block: 80px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading p,
  .about-copy > p,
  .contact p {
    font-size: 16px;
  }

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

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

  .capability-grid article,
  .capability-grid article:nth-child(odd),
  .capability-grid article:nth-child(even) {
    min-height: 0;
    padding: 28px 0;
    border-right: 0;
  }

  .more-grid {
    display: grid;
  }

  .about {
    gap: 48px;
  }

  .contact {
    gap: 32px;
    margin-bottom: 56px;
    padding: 28px 24px;
    border-radius: var(--radius);
  }

  .contact-actions {
    flex-wrap: wrap;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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