/* Effka s.r.o. — main stylesheet */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  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;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  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 {
  --ink: #0b1a2b;
  --ink-2: #13263c;
  --ink-3: #1d3550;
  --paper: #f2f4f6;
  --surface: #ffffff;
  --blue: #0082d3;
  --blue-text: #006aad;
  --blue-light: #4fb3f2;
  --steel: #4f6073;
  --steel-light: #a9b8c8;
  --line: #d5dce3;
  --line-dark: rgba(255, 255, 255, 0.12);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --max: 1200px;
  --cut: 14px;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}
@media (min-width: 1100px) {
  :root { --gutter: 48px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--blue-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 640;
  color: inherit;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 1.4rem + 4.6vw, 4.9rem);
  line-height: 1.02;
  font-stretch: 125%;
  letter-spacing: -0.012em;
}

h2 {
  font-size: clamp(1.7rem, 1.25rem + 2vw, 2.7rem);
  line-height: 1.08;
  font-stretch: 120%;
  letter-spacing: -0.008em;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.2;
  font-stretch: 112%;
  font-weight: 620;
}

p { margin: 0 0 1em; max-width: 66ch; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  line-height: 1.55;
  max-width: 58ch;
}

.muted { color: var(--steel); }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px 12px 22px;
  color: var(--btn-fg);
  font-weight: 600;
  font-stretch: 108%;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  background: none;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-bg);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background-color 160ms ease;
}
.btn:hover { text-decoration: none; }
.btn:hover::before { --btn-bg: #0072ba; background: #0072ba; }

.btn-ghost {
  --btn-bg: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1px currentColor;
}
.btn-ghost::before { display: none; }
.btn-ghost:hover { background: rgba(127, 160, 200, 0.12); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.text-link {
  font-weight: 600;
  font-stretch: 108%;
  color: var(--blue-text);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.text-link:hover { border-bottom-width: 2px; }
.on-ink .text-link { color: var(--blue-light); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid var(--line-dark);
}

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

.brand { display: block; flex: none; }
.brand img { width: 118px; height: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 10px 14px;
  color: var(--steel-light);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
  font-stretch: 106%;
}
.nav-menu a:hover { color: #fff; }
.nav-menu a[aria-current="page"] {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--blue);
}
.nav-menu .btn { margin-left: 12px; padding-inline: 18px 22px; min-height: 42px; color: #fff; }
.nav-menu .btn[aria-current="page"] { box-shadow: none; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899px) {
  .menu-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 1.1rem; }
  .nav-menu a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); padding-left: 14px; }
  .nav-menu .btn { margin: 20px 0 0; justify-content: center; border: 0; }
}

/* ---------- Ink sections ---------- */

.on-ink {
  background: var(--ink);
  color: #fff;
}
.on-ink .muted,
.on-ink p { color: #c3cfdc; }
.on-ink a:not(.btn) { color: var(--blue-light); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 104px);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 40px;
}

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

.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 28px; color: #c3cfdc; }

.hero-place {
  margin: 0 0 22px;
  color: var(--blue-light);
  font-weight: 560;
  font-stretch: 112%;
}

.delta {
  position: absolute;
  right: -3%;
  top: 50%;
  width: min(560px, 42vw);
  transform: translateY(-50%);
  color: var(--blue);
  pointer-events: none;
}
.delta .outline {
  fill: none;
  stroke: currentColor;
  stroke-width: 24;
  stroke-linejoin: miter;
  stroke-miterlimit: 10;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw 1.6s cubic-bezier(.6, .05, .25, 1) both;
}
.delta .inner { fill: url(#scan); opacity: 0.9; animation: fade 1.2s ease 0.9s both; }
.delta .inner-line { fill: none; stroke: var(--ink-3); stroke-width: 1; }

@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes fade { from { opacity: 0; } }

@media (max-width: 899px) {
  .delta { position: relative; right: auto; top: auto; transform: none; width: min(380px, 80%); margin: 8px 0 0 auto; opacity: 0.85; }
}
@media (min-width: 900px) {
  .hero-copy { max-width: 60%; }
  .hero .lead { max-width: 46ch; }
}

/* ---------- Client wall ---------- */

.logo-wall {
  padding: 0 0 clamp(56px, 7vw, 88px);
}
.logo-wall h2 {
  font-size: 1.05rem;
  font-stretch: 108%;
  font-weight: 560;
  color: var(--steel-light);
  margin-bottom: 20px;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.logo-grid li {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 22px 16px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.logo-grid img {
  max-height: 40px;
  max-width: min(150px, 100%);
  width: auto;
  object-fit: contain;
}
.logo-grid a { display: grid; place-items: center; width: 100%; height: 100%; }

@media (min-width: 720px) { .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Generic sections ---------- */

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section + .section { padding-top: 0; }
.on-ink + .section,
.section + .on-ink { padding-top: clamp(64px, 9vw, 120px); }

.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head p { color: var(--steel); }
.on-ink .section-head p { color: #c3cfdc; }

@media (min-width: 900px) {
  .section-head.split {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 48px;
  }
}

/* ---------- Services list ---------- */

.svc-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.svc-row {
  display: grid;
  gap: 16px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.svc-row h3 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); font-stretch: 122%; }
.svc-row h3 a { color: inherit; text-decoration: none; }
.svc-row h3 a:hover { color: var(--blue-text); }
.svc-row p { color: var(--steel); }
.svc-row .text-link { justify-self: start; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--steel);
}
.on-ink .tags li { background: transparent; border-color: var(--line-dark); color: #c3cfdc; }

@media (min-width: 900px) {
  .svc-row {
    grid-template-columns: 5fr 6fr 3fr;
    gap: 40px;
    align-items: start;
    padding: 40px 0;
  }
  .svc-row .text-link { justify-self: end; margin-top: 6px; }
}

/* ---------- Process ---------- */

.steps {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px 28px 36px;
  background: var(--surface);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 40px;
  color: var(--blue);
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 700;
  font-stretch: 125%;
}
.step h3 { margin-bottom: 12px; }
.step p { color: var(--steel); }
.step .tags { margin-top: 20px; }
.on-ink .step { background: var(--ink-2); }
.on-ink .step p { color: #c3cfdc; }

@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Featured work ---------- */

.feature-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }

.feature {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(28px, 4vw, 44px);
  background: var(--ink);
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
.feature-logo { height: 44px; display: flex; align-items: center; margin-bottom: 28px; }
.feature-logo img { max-height: 44px; width: auto; max-width: 220px; }
.feature h3 { font-size: 1.6rem; font-stretch: 118%; }
.feature p { color: #c3cfdc; }
.feature .status { color: var(--blue-light); font-weight: 560; font-stretch: 108%; font-size: 0.95rem; margin: 0; }
.feature .text-link { color: var(--blue-light); margin-top: auto; align-self: flex-start; }

/* ---------- Values ---------- */

.values {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.values li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.values h3 { margin-bottom: 8px; }
.values p { color: var(--steel); }
@media (min-width: 720px) {
  .values { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}
@media (min-width: 1100px) {
  .values { grid-template-columns: repeat(4, 1fr); column-gap: 32px; }
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  display: grid;
  gap: 28px;
  padding: clamp(36px, 6vw, 72px);
  background: var(--surface);
  border-left: 6px solid var(--blue);
}
.cta-band h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.2rem); font-stretch: 125%; max-width: 16ch; }
.cta-band p { color: var(--steel); }
.cta-contact { display: grid; gap: 6px; font-size: 1.15rem; font-weight: 560; font-stretch: 108%; }
.cta-contact a { color: var(--ink); text-decoration: none; }
.cta-contact a:hover { color: var(--blue-text); }
@media (min-width: 900px) {
  .cta-band { grid-template-columns: 3fr 2fr; align-items: end; gap: 48px; }
}

/* ---------- Page heads (inner pages) ---------- */

.page-head {
  padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px);
  position: relative;
  overflow: hidden;
}
.page-head h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.2rem); max-width: 18ch; }
.page-head .lead { margin-top: 24px; color: #c3cfdc; }
.page-head::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -1px;
  width: 360px;
  height: 312px;
  background: linear-gradient(to top left, rgba(0, 130, 211, 0.22), rgba(0, 130, 211, 0) 60%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--steel-light);
}
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.breadcrumb a { color: var(--steel-light); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: #fff; }

/* ---------- Prose / two-column content ---------- */

.cols {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .cols { grid-template-columns: 4fr 7fr; gap: 72px; }
  .cols > .sticky { position: sticky; top: 112px; align-self: start; }
}

.prose h2 { margin: 56px 0 18px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 10px; }
.prose ul { padding-left: 1.2em; max-width: 64ch; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--blue); }

.checklist { list-style: none; padding: 0 !important; margin: 0 0 1.2em; }
.checklist li {
  position: relative;
  padding: 14px 0 14px 32px;
  margin: 0 !important;
  border-bottom: 1px solid var(--line);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 12px;
  height: 11px;
  background: var(--blue);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.aside-box {
  padding: 28px;
  background: var(--surface);
  border-top: 3px solid var(--blue);
}
.aside-box h2,
.aside-box h3 { font-size: 1.2rem; margin: 0 0 12px; }
.aside-box p { color: var(--steel); }
.aside-box .btn { margin-top: 18px; }

/* ---------- Service overview cards ---------- */

.svc-cards { display: grid; gap: 20px; }
@media (min-width: 900px) { .svc-cards { grid-template-columns: repeat(3, 1fr); } }
.svc-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: border-color 160ms ease;
}
.svc-card:hover { border-bottom-color: var(--blue); }
.svc-card h2 { font-size: 1.55rem; font-stretch: 122%; }
.svc-card p { color: var(--steel); }
.svc-card .text-link { margin-top: auto; align-self: flex-start; }
.svc-card svg { width: 40px; height: 40px; color: var(--blue); margin-bottom: 12px; }

/* ---------- Work / clients list ---------- */

.client-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.client {
  display: grid;
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.client-logo {
  display: grid;
  place-items: center;
  height: 96px;
  padding: 18px 24px;
  background: var(--ink);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.client-logo img { max-height: 38px; max-width: 100%; width: auto; }
.client h3 { font-size: 1.45rem; font-stretch: 120%; }
.client p { color: var(--steel); margin-top: 6px; }
.client-status {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 560;
  font-stretch: 108%;
  color: var(--steel);
}
.client-status.current { color: var(--blue-text); }
.client-status.current::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--blue);
  border-radius: 50%;
  vertical-align: 1px;
}
@media (min-width: 900px) {
  .client { grid-template-columns: 240px 1fr auto; gap: 40px; }
}

/* ---------- Team ---------- */

.team { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .team { grid-template-columns: repeat(3, 1fr); } }
.person {
  padding: 28px;
  background: var(--surface);
}
.person .initials,
.founder .initials {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  background: var(--ink);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 640;
  font-stretch: 125%;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.person h3 { margin-bottom: 4px; }
.person .role { color: var(--steel); margin-bottom: 18px; }
.person a { display: block; width: fit-content; color: var(--ink); text-decoration: none; padding: 3px 0; font-weight: 500; }
.person a:hover { color: var(--blue-text); text-decoration: underline; }

/* ---------- Sponsoring ---------- */

.ambassador {
  display: grid;
  gap: 40px;
  align-items: center;
}
.ambassador figure { margin: 0; }
.ambassador img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
.ambassador figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--steel); }
@media (min-width: 900px) { .ambassador { grid-template-columns: 7fr 5fr; gap: 64px; } }

.facts { display: grid; gap: 0; margin: 28px 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--steel); }
.facts dd { margin: 0; font-weight: 560; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }

.company { font-style: normal; }
.company dl { margin: 0; }
.company div { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; }
.company dt { color: var(--steel); }
.company dd { margin: 0; }

/* ---------- Language switch ---------- */

.nav-menu .lang-switch {
  margin-left: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line-dark);
  font-size: 0.86rem;
  font-weight: 600;
  font-stretch: 112%;
  color: var(--steel-light);
}
.nav-menu .lang-switch:hover { color: #fff; border-color: var(--steel-light); }
@media (max-width: 899px) {
  .nav-menu .lang-switch { margin: 16px 0 0; width: fit-content; padding: 8px 14px; border-bottom: 1px solid var(--line-dark); }
}

/* ---------- Contact form ---------- */

.contact-layout { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 7fr 4fr; gap: 64px; align-items: start; }
  .contact-layout > aside { position: sticky; top: 112px; }
}

.form { display: grid; gap: 20px; padding: clamp(24px, 4vw, 40px); background: var(--surface); border-top: 3px solid var(--blue); }
.form h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: 4px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-stretch: 106%; font-size: 0.97rem; }
.field .opt { font-weight: 400; color: var(--steel); }
.field .hint { margin: 0; font-size: 0.9rem; color: var(--steel); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #b9c4cf;
  border-radius: 0;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%), linear-gradient(135deg, var(--steel) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); background: #fff; }
.field input:user-invalid,
.field textarea:user-invalid { border-color: #c0392b; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-foot p { margin: 0; font-size: 0.9rem; color: var(--steel); max-width: 42ch; }
.form .btn[disabled] { opacity: 0.6; cursor: progress; }

.form-status {
  padding: 14px 16px;
  font-weight: 560;
  border-left: 4px solid var(--blue);
  background: #e7f2fb;
}
.form-status.is-success { border-color: #1e8e5a; background: #e6f4ec; color: #145c3b; }
.form-status.is-error { border-color: #c0392b; background: #fbeaea; color: #8a2a1f; }
.form-status:focus { outline: none; }

/* ---------- What happens next ---------- */

.next-steps { margin: 0; padding: 0; list-style: none; counter-reset: next; }
.next-steps li {
  position: relative;
  padding: 0 0 26px 52px;
  counter-increment: next;
}
.next-steps li::before {
  content: counter(next);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-stretch: 125%;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.next-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 38px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}
.next-steps h3 { font-size: 1.1rem; margin-bottom: 6px; }
.next-steps p { color: var(--steel); font-size: 0.98rem; }

.subhead { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); margin-bottom: 28px; }

/* ---------- Support / maintenance ---------- */

.support { display: grid; gap: 32px; padding: clamp(28px, 5vw, 56px); background: var(--ink); color: #fff; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); }
.support p { color: #c3cfdc; }
.support .checklist li { border-color: var(--line-dark); color: #e3eaf2; }
@media (min-width: 900px) { .support { grid-template-columns: 5fr 6fr; gap: 64px; } }

.svc-note { margin-top: 28px; color: var(--steel); }

/* ---------- Teaser (About -> Sponsoring) ---------- */

.teaser { display: grid; gap: 28px; align-items: center; }
.teaser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%); }
@media (min-width: 900px) { .teaser { grid-template-columns: 5fr 6fr; gap: 56px; } }

/* ---------- Legal text ---------- */

.legal { max-width: 72ch; }
.legal h2 { margin: 44px 0 14px; font-size: 1.45rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: #2a3a4c; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }

/* ---------- Case studies (dropdowns) ---------- */

.cases { border-top: 1px solid var(--ink); }
.cases-hint { max-width: none; margin: 0; padding: 14px 0; color: var(--steel); font-size: 0.95rem; border-bottom: 1px solid var(--line); }
.case { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.case > summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
}
.case > summary::-webkit-details-marker { display: none; }
.case > summary:hover .case-title { color: var(--blue-text); }
.case-logo {
  display: grid;
  place-items: center;
  width: 128px;
  height: 64px;
  padding: 10px 14px;
  background: var(--ink);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.case-logo img { max-height: 28px; max-width: 100%; width: auto; }
.case-sum { display: grid; gap: 2px; min-width: 0; }
.case-client { font-size: 0.88rem; font-weight: 560; color: var(--steel); }
.case-title { margin: 0; letter-spacing: 0; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); font-weight: 640; font-stretch: 116%; line-height: 1.2; transition: color 160ms ease; }
.case-meta { font-size: 0.88rem; color: var(--steel); }
.case-toggle { position: relative; width: 36px; height: 36px; border: 1px solid var(--line); background: var(--surface); }
.case-toggle::before,
.case-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--ink); transition: transform 200ms ease; }
.case-toggle::after { transform: rotate(90deg); }
.case[open] .case-toggle::after { transform: rotate(0deg); }
.case[open] .case-toggle { background: var(--ink); border-color: var(--ink); }
.case[open] .case-toggle::before,
.case[open] .case-toggle::after { background: #fff; }

.case::details-content { block-size: 0; overflow: hidden; transition: block-size 320ms ease, content-visibility 320ms allow-discrete; }
.case[open]::details-content { block-size: auto; }

.case-body { display: grid; gap: 28px; padding: 4px 4px 32px; }
.case-intro { color: var(--steel); }
.case h3 { margin: 20px 0 2px; font-size: 1rem; }
.case .checklist li { padding-top: 10px; padding-bottom: 10px; font-size: 0.97rem; }
.case .checklist li::before { top: 17px; }
.case .facts { margin: 18px 0; }
.case .facts div { grid-template-columns: 7rem 1fr; padding: 8px 0; font-size: 0.95rem; }
.case .text-link { display: inline-block; }

.case-media { display: flex; flex-wrap: wrap; gap: 12px; align-content: start; }
.case-media figure { margin: 0; }
.case-media a { display: block; }
.case-media img { display: block; height: auto; transition: transform 160ms ease; }
.case-media a:hover img { transform: translateY(-2px); }
.case-media figcaption { margin-top: 6px; font-size: 0.78rem; line-height: 1.35; color: var(--steel); max-width: 18ch; }
.case-credit { margin: 0; flex-basis: 100%; font-size: 0.78rem; color: var(--steel); }
.gallery-phones figure { width: 104px; }
.gallery-phones img { width: 104px; filter: drop-shadow(0 8px 14px rgba(11, 26, 43, 0.16)); }
.gallery-wide figure { width: 176px; }
.gallery-wide img { width: 176px; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-web figure { width: 92px; }
.gallery-web img { width: 92px; filter: drop-shadow(0 8px 14px rgba(11, 26, 43, 0.16)); }
.gallery-web figure:first-child { width: 300px; }
.gallery-web figure:first-child img { width: 300px; }

@media (min-width: 900px) {
  .case-body { grid-template-columns: 6fr 5fr; gap: 48px; padding-left: 148px; }
}
@media (max-width: 559px) {
  .case > summary { grid-template-columns: 1fr auto; gap: 14px; }
  .case-logo { grid-column: 1 / -1; width: 112px; height: 52px; }
  .case-sum { grid-column: 1; }
  .case-toggle { grid-column: 2; grid-row: 2; }
  .gallery-phones figure, .gallery-phones img { width: 92px; }
  .gallery-wide figure, .gallery-wide img { width: 148px; }
  .gallery-web figure:first-child, .gallery-web figure:first-child img { width: 100%; }
}

/* ---------- Earlier work list ---------- */

.earlier { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.earlier li { display: grid; gap: 4px 24px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.earlier strong { font-stretch: 112%; font-weight: 620; }
.earlier span { color: var(--steel); }
.earlier .yr { font-size: 0.9rem; }
@media (min-width: 720px) { .earlier li { grid-template-columns: 148px 1fr auto; align-items: baseline; } }

/* ---------- Homepage feature cards as links ---------- */

a.feature { text-decoration: none; transition: transform 160ms ease; }
a.feature:hover { transform: translateY(-3px); }
a.feature h3 { color: #fff; }
a.feature .text-link { color: var(--blue-light); margin-top: auto; align-self: flex-start; }
@media (min-width: 900px) { .feature-grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 96 Sim Racing logo glow (dark crimson on navy) ---------- */

img[src$="96-sim-racing.png"] {
  filter: drop-shadow(0 0 0.5px rgba(255, 255, 255, 0.55)) drop-shadow(0 0 4px rgba(255, 45, 95, 0.25));
}

/* ---------- Pricing ---------- */

.pricing { display: grid; gap: 36px; align-items: center; }
.price-card { padding: clamp(28px, 4vw, 44px); background: var(--surface); border-top: 3px solid var(--blue); }
.price-label { margin: 0 0 8px; color: var(--steel); font-weight: 560; }
.price-value { margin: 0; white-space: nowrap; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); line-height: 1; font-weight: 700; font-stretch: 125%; color: var(--ink); }
.price-value small { font-size: 0.4em; font-weight: 560; margin-right: 10px; color: var(--steel); }
.price-value span { font-size: 0.4em; font-weight: 560; margin-left: 8px; color: var(--steel); }
.price-note { margin: 10px 0 0; color: var(--steel); font-size: 0.95rem; }
@media (min-width: 900px) { .pricing { grid-template-columns: 4fr 7fr; gap: 72px; } }
.svc-note + .svc-note { margin-top: 8px; }

.rate-note { margin-top: 8px; padding: 18px 20px; background: var(--surface); border-left: 3px solid var(--blue); }
.rate-note p { margin: 0 0 8px; font-size: 0.97rem; }

/* ---------- Instagram links ---------- */

.ig-link { display: inline-flex; align-items: center; gap: 8px; }
.ig-icon { flex: none; }
.ig-note { margin-top: 18px; font-weight: 560; }
.ig-note a { color: var(--ink); text-decoration: none; }
.ig-note a:hover { color: var(--blue-text); text-decoration: underline; }

/* ---------- Founder ---------- */

.founder { display: grid; gap: 40px; padding: clamp(28px, 5vw, 56px); background: var(--surface); border-top: 3px solid var(--blue); }
.founder-id h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
.founder-id .role { color: var(--steel); margin-top: 6px; }
.initials-lg { width: 96px !important; height: 96px !important; font-size: 2rem !important; margin-bottom: 24px; }
.founder .prose h3 { margin-top: 28px; }
@media (min-width: 900px) { .founder { grid-template-columns: 4fr 7fr; gap: 72px; } }

/* ---------- Sponsoring: Oliver's #96 look ---------- */

.theme-96 { --c96: #a30037; --c96-hover: #c2003f; --c96-text: #ff2d5f; --y96: #fcff00; --k96: #0a0a0a; }

.o96-hero {
  position: relative;
  overflow: hidden;
  background: var(--k96);
  color: #fff;
  padding: clamp(32px, 5vw, 56px) 0 0;
}
.o96-hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -10%;
  width: 52%;
  background: var(--c96);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
}
.o96-hero::after {
  content: "96";
  position: absolute;
  right: 2%;
  bottom: 8%;
  font-size: clamp(10rem, 28vw, 26rem);
  line-height: 0.8;
  font-weight: 800;
  font-stretch: 125%;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.14);
  transform: skewX(-10deg);
  pointer-events: none;
}
.o96-hero .breadcrumb a,
.o96-hero .breadcrumb ol { color: #a0a0a0; }
.o96-hero-grid { position: relative; z-index: 1; display: grid; gap: 24px; align-items: end; }
.o96-hero-copy { padding-bottom: clamp(32px, 5vw, 64px); }
.o96-kicker { margin: 0 0 14px; color: var(--y96); font-weight: 600; font-stretch: 112%; }
.o96-hero h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5.2rem); line-height: 0.98; max-width: 11ch; }
.o96-num { display: inline-block; color: var(--c96-text); transform: skewX(-10deg); }
.o96-hero .lead { margin-top: 22px; color: #d4d4d4; max-width: 44ch; }
.btn-96 { --btn-bg: var(--c96); }
.btn-96::before { background: var(--c96); }
.btn-96:hover::before { background: var(--c96-hover); }
.o96-hero .btn-ghost { color: #fff; }
.o96-cutout { justify-self: center; width: min(240px, 60vw); filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5)); }
@media (min-width: 900px) {
  .o96-hero-grid { grid-template-columns: 7fr 5fr; }
  .o96-cutout { justify-self: end; width: min(400px, 100%); margin-right: 4%; }
}

.o96-results {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  background: #141414;
  border-top: 3px solid var(--y96);
}
.o96-results li { padding: 20px 18px 22px; border-right: 1px solid #2b2b2b; border-bottom: 1px solid #2b2b2b; }
.o96-results strong { display: block; font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); line-height: 1; font-weight: 800; font-stretch: 125%; font-style: italic; color: #fff; }
.o96-results span { display: block; margin-top: 8px; font-size: 0.92rem; color: #a0a0a0; }
@media (min-width: 900px) { .o96-results { grid-template-columns: repeat(4, minmax(0, 1fr)); } .o96-results li { border-bottom: 0; } }

.o96-career { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.o96-career li { background: var(--surface); border-top: 3px solid var(--c96, #a30037); }
.o96-career img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.o96-career li > div { padding: 20px 22px 26px; }
.o96-career .year { display: block; font-size: 1.6rem; line-height: 1; font-weight: 800; font-stretch: 125%; font-style: italic; color: var(--c96, #a30037); margin-bottom: 10px; }
.o96-career h3 { margin-bottom: 8px; }
.o96-career p { color: var(--steel); font-size: 0.98rem; }
@media (min-width: 640px) { .o96-career { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .o96-career { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.o96-why { display: grid; gap: 36px; align-items: center; }
.o96-why img { width: min(100%, 380px); aspect-ratio: 3 / 4; object-fit: cover; clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%); }
.theme-96 .text-link { color: var(--c96); }
@media (min-width: 900px) { .o96-why { grid-template-columns: 4fr 7fr; gap: 64px; } }
.theme-96 .cta-band { border-left-color: var(--c96); }
.theme-96 .cta-band .btn::before { background: var(--c96); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #c3cfdc;
  padding: 64px 0 32px;
  font-size: 0.97rem;
}
.footer-grid {
  display: grid;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-grid h2 {
  font-size: 1rem;
  font-stretch: 108%;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.site-footer a { color: #c3cfdc; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { width: 132px; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.88rem;
  color: var(--steel-light);
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }

/* ---------- 404 ---------- */

.notfound { min-height: 60vh; display: grid; align-content: center; }
.notfound .code { font-size: clamp(5rem, 18vw, 12rem); line-height: 1; font-weight: 700; font-stretch: 125%; color: var(--blue); margin-bottom: 16px; }

/* ---------- Page transitions (cross-document View Transitions) ---------- */

@view-transition { navigation: auto; }

.site-header { view-transition-name: site-header; }

::view-transition-group(site-header) { animation-duration: 0s; }
::view-transition-old(site-header) { animation: none; opacity: 0; }
::view-transition-new(site-header) { animation: none; }

::view-transition-old(root) {
  animation: vt-out 240ms cubic-bezier(.4, 0, 1, 1) both;
}
::view-transition-new(root) {
  animation: vt-in 560ms cubic-bezier(.7, 0, .2, 1) 60ms both;
}

/* The incoming page sweeps in behind an edge cut at the angle of the logo's delta */
@keyframes vt-in {
  from { clip-path: polygon(0 0, 0 0, -30% 100%, -30% 100%); }
  to { clip-path: polygon(0 0, 130% 0, 100% 100%, -30% 100%); }
}
@keyframes vt-out {
  to { opacity: 0; transform: translateX(-24px); }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
