@font-face {
  font-family: "Inter Fallback";
  font-style: normal;
  font-weight: 400;
  src: local("Arial");
  ascent-override: 90.2%;
  descent-override: 22.48%;
  line-gap-override: 0%;
  size-adjust: 107.4%;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./assets/fonts/inter-latin.woff2?v=1") 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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./assets/fonts/inter-latin-ext.woff2?v=1") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0e0d0a;
  --muted: #72726d;
  --faint: rgba(14, 13, 10, 0.3);
  --yellow: #f9e97d;
  --yellow-glow-core: rgba(249, 233, 125, 0.38);
  --yellow-glow-blur: 96px;
  --glow-frame-width: 18px;
  --glow-frame-color: rgba(249, 233, 125, 0.45);
  --glow-frame-radius: 38px;
  --what-stack-width: 970px;
  --what-cards-gap: 28px;
  --what-card-width: calc((var(--what-stack-width) - var(--what-cards-gap)) / 2);
  --what-outer-gap: 240px;
  --what-services-gap: var(--what-outer-gap);
  --what-heading-cards-gap: 72px;
  --what-cards-cta-gap: var(--what-outer-gap);
  --dark: #0f0e0b;
  --white: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main {
  position: relative;
}

/* Jeden společný glow: hero spodní část + celý Service stack (viz desktop reference) */
main::before {
  content: "";
  position: absolute;
  top: 520px;
  left: clamp(80px, 16vw, 260px);
  z-index: 0;
  width: min(640px, 62vw);
  height: min(640px, 62vw);
  border-radius: 50%;
  pointer-events: none;
  background: var(--yellow-glow-core);
  filter: blur(var(--yellow-glow-blur));
  transform: translate3d(0, 0, 0);
}

main > section {
  position: relative;
  z-index: 1;
}

.section-glow {
  position: relative;
  overflow: visible;
  background: var(--white);
}

.section-glow::before {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  background: var(--yellow-glow-core);
  filter: blur(var(--yellow-glow-blur));
  transform: translate3d(-50%, 0, 0);
}

.section-glow > * {
  position: relative;
  z-index: 1;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Inter Fallback", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.partner-list button:focus-visible,
.project-card:focus-visible,
.dark a:focus-visible {
  outline-color: var(--yellow);
}

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

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

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

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto 42px;
  align-items: center;
  gap: 32px;
  box-sizing: border-box;
  height: 86px;
  padding: 0 56px;
  background: var(--white);
}

.brand {
  grid-column: 1;
}

.brand img {
  width: 192px;
  height: 19px;
  aspect-ratio: 192 / 19;
}

.nav {
  grid-column: 2;
  display: flex;
  justify-content: flex-end;
  gap: 64px;
  padding-right: 36px;
  font-size: 16px;
  white-space: nowrap;
}

.site-header > .pill {
  grid-column: 3;
}

.nav a,
.pill,
.service-item,
.partner-list button,
.project-card,
.social-link,
.submit-button {
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 0.55;
}

@keyframes lrFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lr-anim {
  animation: lrFade 260ms ease;
}

.menu-toggle {
  grid-column: 4;
  display: grid;
  gap: 7px;
  width: 42px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  visibility: hidden;
  pointer-events: none;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill-small {
  min-width: 144px;
  min-height: 34px;
  padding: 5px 6px 5px 20px;
  font-size: 14px;
}

.pill-large {
  min-width: 212px;
  min-height: 56px;
  padding: 8px 10px 8px 30px;
  font-size: 14px;
}

.pill-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 50%;
  font-size: 0;
  line-height: 0;
}

.pill-icon::before {
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 16H27M17 6L27 16L17 26' stroke='%230E0D0A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.pill-small .pill-icon {
  width: 25px;
  height: 25px;
}

.pill-small .pill-icon::before {
  width: 20px;
  height: 20px;
}

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

.pill:hover .pill-icon,
.pill:focus-visible .pill-icon {
  background: #fff19a;
}

.section {
  padding: 0 56px;
}

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

h1,
h2 {
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 1328px;
  font-size: clamp(48px, 5.55vw, 80px);
  font-weight: 500;
  line-height: 1.475;
}

h2 {
  font-size: clamp(42px, 4.2vw, 62px);
  font-weight: 400;
  line-height: 1.05;
}

.hero {
  position: relative;
  min-height: 820px;
  display: flex;
  align-items: flex-start;
  padding-top: 188px;
  overflow: hidden;
  background: transparent;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  min-height: 2.95em;
}

.hero p {
  max-width: 560px;
  margin: 72px 0 70px;
  font-size: 18px;
  line-height: 1.489;
}

.lab-a {
  display: inline-block;
  height: 0.72em;
  width: calc(0.72em * 46.93 / 41.41);
  margin: 0 0.09em 0 0.02em;
  vertical-align: baseline;
  line-height: 0;
}

.lab-a svg {
  display: block;
  width: 100%;
  height: 100%;
}

.dotted-mark {
  position: absolute;
  right: -24px;
  bottom: 48px;
  width: 520px;
  opacity: 0.34;
}

.services {
  min-height: auto;
  padding-top: 94px;
  padding-bottom: var(--what-services-gap);
}

.services h2 {
  white-space: nowrap;
  width: max-content;
  max-width: none;
}

.section-grid {
  display: grid;
  grid-template-columns: 410px 1fr;
  gap: 235px;
  align-items: start;
}

.service-list {
  margin-top: 70px;
}

.service-entry {
  display: contents;
}

.service-panel {
  display: none;
}

.service-item {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  color: #727272;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(14, 13, 10, 0.28);
  cursor: pointer;
  font-size: 24px;
  text-align: left;
}

.service-item span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  color: var(--ink);
  background: var(--white);
  border-radius: 50%;
  font-size: 0;
  line-height: 0;
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.service-item span::before {
  content: "";
  display: block;
  width: 21px;
  height: 21px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 16H27M17 6L27 16L17 26' stroke='%230E0D0A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.service-item.is-active {
  color: var(--ink);
}

.service-item.is-active span {
  opacity: 1;
}

.service-item:hover,
.service-item:focus-visible {
  color: var(--ink);
}

.service-copy {
  max-width: 520px;
  padding-top: 210px;
}

.service-copy,
.service-panel,
.team-lead {
  font-family: Inter, "Inter Fallback", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 32px;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
}

.service-copy strong,
.service-panel strong,
.team-lead strong {
  font-weight: 700;
}

.service-copy > * + * {
  margin-top: 54px;
}

.service-copy p + p {
  margin-top: 54px;
}

.service-points {
  padding-left: 1.15em;
  list-style: disc;
}

.service-points li + li {
  margin-top: 0.35em;
}

.what-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 56px;
}

.what {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--what-heading-cards-gap);
  width: min(100%, var(--what-stack-width));
  min-height: auto;
  padding: 0;
}

.what-heading {
  margin: 0;
  width: 100%;
  padding: 0;
  color: #0e0d0a;
  font-family: Inter, "Inter Fallback", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(42px, 6vw, 74px);
  font-weight: 400;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
}

.what-heading-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: 0.22em;
  row-gap: 0;
}

.what-heading-lab {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.lab-cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--what-cards-gap);
  padding: 0;
}

.lab-card {
  position: relative;
  width: 100%;
  min-height: 455px;
  padding: 48px 44px 52px;
  color: var(--white);
  background: var(--dark);
  border: 18px solid #e7e7e7;
  border-radius: 38px;
  overflow: hidden;
}

.lab-card h3 {
  font-size: 30px;
  line-height: 1.1;
}

.lab-card p {
  position: relative;
  z-index: 1;
  max-width: 330px;
  margin-top: 40px;
  font-size: 36px;
  line-height: 1.06;
}

.lab-card img {
  position: absolute;
  left: 44px;
  right: 44px;
  bottom: 52px;
  width: calc(100% - 88px);
}

.lab-card p strong {
  font-weight: 800;
}

.glow-frame {
  padding: var(--glow-frame-width);
  background: var(--glow-frame-color);
  border-radius: calc(var(--glow-frame-radius) + var(--glow-frame-width));
}

.cta-strip-shell {
  position: relative;
  z-index: 2;
  width: min(100%, var(--what-stack-width));
  margin: var(--what-cards-cta-gap) auto 170px;
}

.cta-strip {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "copy logo action";
  align-items: center;
  column-gap: 38px;
  padding: 29px 42px;
  background: var(--yellow);
  border: 0;
  border-radius: var(--glow-frame-radius);
}

.cta-strip p {
  grid-area: copy;
  justify-self: start;
  align-self: center;
  max-width: 260px;
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
}

.cta-strip img {
  grid-area: logo;
  justify-self: center;
  align-self: center;
  display: block;
  width: 160px;
  height: auto;
}

.cta-strip .pill {
  grid-area: action;
  justify-self: end;
  align-self: center;
}

.dark {
  color: var(--white);
  background: var(--dark);
}

.partners-section {
  min-height: 1180px;
  padding-top: 120px;
}

.partners-section h2,
.projects h2 {
  color: var(--white);
}

.partner-layout {
  display: grid;
  grid-template-columns: 410px 600px;
  gap: 290px;
  margin-top: 86px;
  align-items: start;
}

.partner-list {
  display: grid;
}

.partner-entry {
  display: contents;
}

.partner-panel {
  display: none;
}

.partner-list button span {
  display: none;
}

.partner-list button {
  min-height: 78px;
  color: rgba(255, 255, 255, 0.28);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.23);
  text-align: left;
  font-size: 25px;
  cursor: pointer;
}

.partner-list .is-active {
  color: var(--white);
}

.partner-list button:hover,
.partner-list button:focus-visible {
  color: rgba(255, 255, 255, 0.82);
}

.partner-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  width: 100%;
  max-width: 390px;
  padding-top: 20px;
}

.partner-logo {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.partner-logo img {
  display: block;
  width: auto;
  max-width: 160px;
  max-height: 96px;
  object-fit: contain;
}

.partner-logo-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 96px;
  max-width: 280px;
  color: var(--white);
  font-size: clamp(20px, 4.8vw, 26px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.partner-logo-fallback[hidden],
.partner-logo img[hidden] {
  display: none;
}

.partner-copy {
  min-width: 0;
  padding-top: 0;
}

.partner-copy p,
.project-caption,
.project-panel-caption {
  font-family: Inter, "Inter Fallback", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 400;
  font-style: normal;
  line-height: 26.8px;
  letter-spacing: 0;
}

.partner-copy p {
  max-width: none;
}

.team-section {
  min-height: 1180px;
  padding-top: 126px;
}

.team-section::before {
  top: 120px;
  left: 50%;
  width: min(720px, 82vw);
  height: min(720px, 82vw);
}

.contact-section {
  min-height: 820px;
  padding-top: 90px;
  padding-bottom: 120px;
}

.contact-section::before {
  top: 60px;
  left: 50%;
  width: min(560px, 78vw);
  height: min(560px, 78vw);
}

.team-lead {
  max-width: 1130px;
  margin: 36px 0 92px;
}

.team-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 52px 92px;
}

.person {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  align-items: center;
}

.person img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.person h3 {
  color: #05080c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 28.8px;
  letter-spacing: -0.48px;
}

.person p {
  margin-top: 6px;
  color: #727272;
  font-family: Inter, "Inter Fallback", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 19.2px;
  letter-spacing: -0.32px;
}

.projects {
  min-height: 1120px;
  padding-top: 126px;
}

.projects h2 {
  text-align: left;
  font-size: 58px;
}

.projects-board {
  width: 1328px;
  min-height: 430px;
  margin: 154px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-radius: 8px;
}

.project-entry {
  display: contents;
}

.project-panel {
  display: none;
}

.project-card span {
  display: none;
}

.project-card {
  display: grid;
  place-items: center;
  min-height: 176px;
  padding: 34px;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.08), transparent 60%),
    #171613;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  cursor: pointer;
}

.project-card img {
  max-width: 86%;
  max-height: 84px;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.14));
}

.project-card:hover,
.project-card:focus-visible,
.project-card.is-active {
  border-color: rgba(249, 233, 125, 0.55);
  box-shadow: inset 0 0 0 1px rgba(249, 233, 125, 0.18);
  transform: translateY(-2px);
}

.project-caption {
  width: min(760px, 100%);
  margin: 38px auto 0;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.project-link-wrap {
  margin: 14px auto 0;
  text-align: center;
}

.project-link {
  color: var(--yellow);
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.project-link:hover,
.project-link:focus-visible {
  color: #fff6b0;
}

.contact-section h2 {
  margin-left: 0;
}

#contact-form {
  scroll-margin-top: 32px;
}

.contact-card {
  width: 558px;
  margin: 54px auto 0;
  padding: 42px;
  background: var(--white);
  border: var(--glow-frame-width) solid var(--glow-frame-color);
  border-radius: var(--glow-frame-radius);
}

.form-fields h3 {
  margin-bottom: 36px;
  font-size: 27px;
  font-weight: 400;
}

label {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 700;
}

.form-label-note {
  font-weight: 400;
}

input,
textarea {
  width: 100%;
  border: 1px solid #dadada;
  border-radius: 8px;
  padding: 13px 17px;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(14, 13, 10, 0.4);
}

input:hover,
textarea:hover {
  border-color: #bcbcbc;
}

input:focus,
textarea:focus,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(249, 233, 125, 0.55);
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.submit-button {
  min-width: 98px;
  min-height: 44px;
  margin-top: 10px;
  color: var(--white);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.consent-field {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.consent-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  padding: 0;
}

.consent-field label {
  display: block;
  margin: 0;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
}

.consent-field label a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-field--error label {
  color: #9c2a2a;
}

.form-msg {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
}

.form-msg.error {
  color: #9c2a2a;
}

.form-msg.success {
  color: #2f6b32;
}

.footer {
  padding: 0 56px 42px;
  background: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr 0.8fr;
  gap: 145px;
  padding-top: 34px;
  border-top: 1px solid rgba(14, 13, 10, 0.55);
}

.footer p {
  font-size: 16px;
  line-height: 1.24;
}

.footer .muted {
  margin-bottom: 18px;
  color: var(--muted);
}

.footer .pill {
  margin-top: 30px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  margin-top: 14px;
  font-size: 16px;
  font-weight: 800;
}

.social-link span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--yellow);
  border-radius: 50%;
  font-size: 0;
  line-height: 0;
}

.social-link span::before {
  content: "";
  display: block;
  width: 17px;
  height: 17px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 16H27M17 6L27 16L17 26' stroke='%230E0D0A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.footer-logo {
  width: 100%;
  margin-top: 62px;
}

.powered-logo {
  width: 130px;
  margin: 22px auto 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(14, 13, 10, 0.45);
  color: var(--muted);
  font-size: 12px;
}

.legal-page {
  padding: 48px 56px 120px;
  max-width: 820px;
}

.legal-page h1 {
  margin-bottom: 12px;
  font-size: 42px;
  line-height: 1.1;
}

.legal-page .legal-meta {
  margin-bottom: 40px;
  color: var(--muted);
  font-size: 14px;
}

.legal-page h2 {
  margin: 36px 0 12px;
  font-size: 22px;
}

.legal-page p,
.legal-page li {
  font-size: 16px;
  line-height: 1.55;
}

.legal-page p {
  margin-bottom: 14px;
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 14px;
  padding-left: 1.35rem;
}

.legal-page a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.legal-back:hover,
.legal-back:focus-visible {
  color: var(--ink);
}

@media (max-width: 980px) {
  :root {
    --yellow-glow-blur: 72px;
    --what-outer-gap: 120px;
  }

  main::before {
    top: 360px;
    left: 24px;
    width: min(480px, 88vw);
    height: min(480px, 88vw);
  }

  .team-section::before,
  .contact-section::before {
    width: min(520px, 92vw);
    height: min(520px, 92vw);
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    grid-template-columns: 1fr 42px;
    align-items: center;
    height: 76px;
    padding: 0 24px;
    gap: 16px;
    width: 100%;
    background: var(--white);
  }

  .brand {
    grid-column: 1;
  }

  .nav,
  .site-header > .pill {
    display: none;
  }

  .menu-toggle {
    grid-column: 2;
    visibility: visible;
    pointer-events: auto;
  }

  .site-header.is-open .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 51;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: 8px 24px 24px;
    padding-right: 24px;
    background: var(--white);
    border-bottom: 1px solid rgba(14, 13, 10, 0.16);
    box-shadow: 0 16px 40px rgba(14, 13, 10, 0.08);
  }

  .site-header.is-open .nav a {
    display: block;
    width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid rgba(14, 13, 10, 0.1);
    font-size: 18px;
    text-align: left;
  }

  .site-header.is-open .nav a:last-child {
    border-bottom: 0;
  }

  .section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero {
    min-height: 770px;
    padding-top: 130px;
  }

  .dotted-mark {
    right: -42vw;
    bottom: 10px;
    width: 108vw;
  }

  .section-grid,
  .partner-layout,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .services,
  .what,
  .partners-section,
  .team-section,
  .projects,
  .contact-section {
    min-height: auto;
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .service-copy {
    display: none;
  }

  .service-entry {
    display: block;
    border-bottom: 1px solid rgba(14, 13, 10, 0.28);
  }

  .service-item {
    min-height: 72px;
    font-size: 22px;
    border-bottom: 0;
  }

  .service-item span {
    opacity: 0.45;
  }

  .service-item.is-active span {
    opacity: 1;
    transform: rotate(90deg);
  }

  .service-panel {
    display: block;
    padding: 0 0 22px;
    color: var(--ink);
  }

  .service-panel[hidden] {
    display: none;
  }

  .service-panel-lead {
    margin: 0 0 12px;
  }

  .service-panel-body {
    margin: 0;
    color: #727272;
  }

  .service-panel-body strong {
    color: var(--ink);
  }

  .service-panel .service-points {
    margin: 0;
    padding-left: 1.15em;
    color: #727272;
  }

  .partner-layout {
    gap: 0;
    margin-top: 48px;
  }

  .partner-detail {
    display: none;
  }

  .partner-entry {
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.23);
  }

  .partner-list button {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    font-size: 22px;
    border-bottom: 0;
  }

  .partner-list button span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    font-size: 0;
    line-height: 0;
    opacity: 0;
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  .partner-list button span::before {
    content: "";
    display: block;
    width: 21px;
    height: 21px;
    background: no-repeat center / contain
      url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 16H27M17 6L27 16L17 26' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }

  .partner-list button.is-active span {
    opacity: 1;
    transform: rotate(90deg);
  }

  .partner-panel {
    display: block;
    padding: 4px 0 28px;
  }

  .partner-panel[hidden] {
    display: none;
  }

  .partner-panel .partner-logo {
    margin-bottom: 20px;
  }

  .partner-panel .partner-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
  }

  .project-caption,
  .project-link-wrap {
    display: none;
  }

  .projects-board {
    width: 100%;
    height: auto;
    min-height: 0;
    margin-top: 48px;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .project-entry {
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.23);
  }

  .project-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 72px;
    padding: 18px 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .project-card img {
    flex: 0 1 auto;
    max-width: min(200px, 58vw);
    max-height: 44px;
    margin: 0;
    filter: none;
  }

  .project-card span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    font-size: 0;
    line-height: 0;
    opacity: 0;
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  .project-card span::before {
    content: "";
    display: block;
    width: 21px;
    height: 21px;
    background: no-repeat center / contain
      url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 16H27M17 6L27 16L17 26' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }

  .project-card.is-active span {
    opacity: 1;
    transform: rotate(90deg);
  }

  .project-card:hover,
  .project-card:focus-visible,
  .project-card.is-active {
    border-color: transparent;
    box-shadow: none;
    transform: none;
  }

  .project-panel {
    display: block;
    padding: 4px 0 28px;
  }

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

  .project-panel-caption {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    text-align: left;
  }

  .project-panel-link-wrap {
    margin: 14px 0 0;
    text-align: left;
  }

  .what-stack {
    padding: 0 24px;
  }

  .what {
    gap: 56px;
    width: min(100%, 455px);
  }

  .what-heading {
    font-size: clamp(38px, 8vw, 74px);
  }

  .lab-cards {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .lab-card {
    min-height: 420px;
  }

  .lab-card p {
    max-width: none;
    font-size: clamp(28px, 7vw, 36px);
  }

  .cta-strip-shell {
    width: min(100%, 455px);
    margin: var(--what-cards-cta-gap) auto 90px;
  }

  .cta-strip {
    width: 100%;
    column-gap: 24px;
    padding: 24px 32px;
  }

  .cta-strip p {
    font-size: clamp(22px, 2.8vw, 28px);
    max-width: min(240px, 34vw);
  }

  .cta-strip img {
    width: clamp(100px, 14vw, 140px);
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .contact-card {
    margin-top: 80px;
  }
}

@media (max-width: 620px) {
  :root {
    --what-outer-gap: 80px;
  }

  .brand img {
    width: 168px;
    height: 17px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  h2 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .services h2 {
    white-space: normal;
    width: auto;
  }

  .services,
  .what,
  .partners-section,
  .team-section,
  .projects,
  .contact-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero {
    min-height: 600px;
    padding-top: 112px;
  }

  .hero p {
    margin-top: 40px;
    margin-bottom: 44px;
    font-size: 18px;
  }

  .team-lead {
    margin-bottom: 56px;
  }

  .pill-large {
    min-width: 178px;
  }

  .service-item {
    min-height: 72px;
    font-size: 22px;
  }

  .what-stack {
    padding: 0 24px;
  }

  .what {
    gap: 40px;
    width: 100%;
  }

  .lab-cards {
    gap: 24px;
  }

  .lab-card {
    min-height: 380px;
    border-width: 12px;
    border-radius: 28px;
    padding: 36px 28px;
  }

  .lab-card p {
    margin-top: 32px;
    font-size: clamp(24px, 6.8vw, 30px);
  }

  .lab-card img {
    left: 28px;
    right: 28px;
    width: calc(100% - 56px);
  }

  .glow-frame {
    padding: 12px;
    border-radius: calc(28px + 12px);
  }

  .cta-strip {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "logo"
      "action";
    row-gap: 28px;
    border-radius: 28px;
    padding: 24px;
    justify-items: center;
    text-align: center;
  }

  .cta-strip p {
    justify-self: center;
    max-width: min(280px, 100%);
  }

  .cta-strip img {
    justify-self: center;
  }

  .cta-strip .pill {
    justify-self: center;
  }

  .contact-card {
    width: 100%;
    padding: 24px;
    border-width: 12px;
    border-radius: 28px;
  }

  .footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .footer-logo {
    margin-top: 72px;
  }

  .footer-legal {
    display: grid;
    gap: 16px;
  }

  .legal-page {
    padding: 32px 24px 90px;
  }

  .legal-page h1 {
    font-size: 32px;
  }
}
