/* Spike company site. Visual language taken from the Stack site (bystack.co): sand paper, black ink,
   Mozilla Headline, glass nav bar, black sheets with rounded tops sliding over the section before them. */

/* ---------- Fonts (metric overrides as measured on the Stack site, so lines sit where Figma draws them) ---------- */
@font-face {
  font-family: "Mozilla Headline";
  src: url("/assets/fonts/mozilla-headline-latin.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
  ascent-override: 94.5%;
  descent-override: 24%;
  line-gap-override: 0%;
  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;
}
@font-face {
  font-family: "Mozilla Headline";
  src: url("/assets/fonts/mozilla-headline-latin-ext.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
  ascent-override: 94.5%;
  descent-override: 24%;
  line-gap-override: 0%;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+A720-A7FF;
}
@font-face {
  font-family: "Work Sans";
  src: url("/assets/fonts/work-sans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Work Sans";
  src: url("/assets/fonts/work-sans-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+A720-A7FF;
}
@font-face {
  font-family: "Zagel Arabic";
  src: url("/assets/fonts/zagel-arabic.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  ascent-override: 79.1%;
  descent-override: 47.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Zagel Latin Fallback";
  src: url("/assets/fonts/noto-sans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  ascent-override: 79.1%;
  descent-override: 47.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Thmanyah Sans";
  src: url("/assets/fonts/thmanyah-sans.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --font-head: "Mozilla Headline", "Work Sans", system-ui, sans-serif;
  --font-body: "Work Sans", system-ui, sans-serif;
  --font-ar: "Zagel Arabic", "Zagel Latin Fallback", system-ui, sans-serif;
  --font-ar-display: "Thmanyah Sans", "Zagel Arabic", serif;

  --sand: #efeae0;
  --sand-deep: #e9e2d5;
  --paper: #f8f5f2;
  --ink: #000;
  --grey: #262626;
  --card: #4a4a4a;
  --backing: #d9d9d9;
  --bubble: rgb(199 199 199 / 0.45);
  --muted: rgb(0 0 0 / 0.56);
  --rule: rgb(0 0 0 / 0.16);
  --on-dark: #efeae0;
  --on-dark-muted: rgb(239 234 224 / 0.62);
  --on-dark-rule: rgb(255 255 255 / 0.3);

  --gutter: clamp(16px, 5.5vw, 80px);
  --max: 1280px;
  --sheet: clamp(36px, 6.25vw, 90px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

html[lang="zh-Hans"] {
  --font-head: "Mozilla Headline", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-body: "Work Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

html[lang="ja"] {
  --font-head: "Mozilla Headline", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
  --font-body: "Work Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
}

html[lang="ko"] {
  --font-head: "Mozilla Headline", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --font-body: "Work Sans", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

html[lang="ko"] body {
  word-break: keep-all;
}

html[lang="zh-Hans"] body,
html[lang="ja"] body {
  line-break: strict;
}

/* Japanese headings break between phrases, not inside a word (browsers without it keep the usual breaks). */
html[lang="ja"] h1,
html[lang="ja"] h2 {
  word-break: auto-phrase;
}

/* Long German and Polish words break at syllables rather than run off the page. */
html[lang="de"] .body-copy,
html[lang="de"] .doc__body,
html[lang="pl"] .body-copy,
html[lang="pl"] .doc__body,
html[lang="de"] .brand__desc,
html[lang="pl"] .brand__desc {
  hyphens: auto;
}

h1,
h2,
.done__title {
  overflow-wrap: break-word;
}

html[lang="ar"] body,
html[lang="ar"] .body-copy,
html[lang="ar"] .lede {
  font-family: var(--font-ar);
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
  font-weight: 400;
}

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

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

[hidden] {
  display: none !important;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 4px;
}

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

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sand);
}

.skip:focus {
  top: 16px;
}

.arrow {
  width: 0.62em;
  height: 0.62em;
  flex: none;
}

[dir="rtl"] .arrow {
  transform: scaleX(-1);
}

.num {
  font-size: 0.62em;
  vertical-align: 0.9em;
  line-height: 0;
  margin-inline-start: 0.28em;
  font-feature-settings: "tnum";
}

/* ---------- Nav bar ---------- */
.bar {
  display: flex;
  align-items: center;
  gap: 15px;
  height: 61px;
  margin-top: clamp(16px, 4.7vw, 68px);
  padding-inline: 21px;
  border-radius: 15px;
  background: rgb(255 255 255 / 0.04);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.81);
}

.mark {
  display: block;
  aspect-ratio: 437 / 123;
  background: currentColor;
  -webkit-mask: url("/assets/img/logo-spike.png") center / contain no-repeat;
  mask: url("/assets/img/logo-spike.png") center / contain no-repeat;
}

.bar__brand .mark {
  width: 85px;
}

.bar__tagline {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
}

.bar__links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.2vw, 46px);
  margin-inline-start: auto;
  font-size: 20px;
  line-height: 1.2;
  white-space: nowrap;
}

.bar__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s ease;
}

.bar__links a:hover {
  opacity: 0.6;
}

.bar__links .arrow {
  width: 12.5px;
  height: 12.5px;
}

/* The language menu: a <details>, so it opens without script; menu.js closes it on a click outside. */
.langs {
  position: relative;
}

.langs summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

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

.langs summary:hover {
  opacity: 0.6;
}

.langs summary svg {
  width: 21.5px;
  height: 21.5px;
  flex: none;
}

.langs__list {
  position: absolute;
  top: calc(100% + 18px);
  inset-inline-end: -14px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  width: 320px;
  padding: 8px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08), 0 18px 44px rgb(0 0 0 / 0.14);
  font-size: 16px;
  animation: rise 0.25s var(--ease) both;
}

.langs__list a {
  display: block;
  padding: 9px 14px;
  border-radius: 11px;
  transition: background 0.15s ease;
}

.langs__list a:hover {
  background: var(--sand-deep);
  opacity: 1;
}

.langs__list a[aria-current] {
  background: var(--ink);
  color: var(--sand);
}

.langs__list a[lang="ar"] {
  font-family: var(--font-ar);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--sand);
}

.hero__stage {
  display: grid;
  grid-template-columns: 1fr minmax(0, 600px) 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding-top: clamp(48px, 7vw, 100px);
}

.hero__title {
  font-size: clamp(38px, 4.65vw, 67px);
  line-height: 1.12;
  text-align: center;
  text-wrap: balance;
}

html[lang="ar"] .hero__title {
  font-family: var(--font-ar);
  line-height: 1.35;
}

.photo {
  position: relative;
  width: min(100%, 261px);
  aspect-ratio: 261 / 334;
  justify-self: center;
  animation: settle 1.1s var(--ease) both;
}

.photo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12%/9.5%;
  background: var(--backing);
  transform: rotate(var(--back));
}

.photo img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12%/9.5%;
  transform: rotate(var(--tilt));
}

.photo--a {
  --tilt: -5.34deg;
  --back: -4.76deg;
  justify-self: start;
  margin-top: calc(-1 * clamp(0px, 4vw, 56px));
}

.photo--b {
  --tilt: 10.68deg;
  --back: 10.21deg;
  justify-self: end;
  margin-top: clamp(0px, 8vw, 112px);
  animation-delay: 0.12s;
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(24px) rotate(-3deg);
  }
}

.lede {
  max-width: 600px;
  margin: clamp(24px, 3vw, 36px) auto 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
  text-wrap: pretty;
}

/* Brand chips under the headline, after the Stack site's message bubbles. */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
  padding-block: clamp(48px, 6vw, 88px) clamp(72px, 9vw, 130px);
}

.chip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  padding: 9px 18px 9px 10px;
  border-radius: 16px;
  background: var(--bubble);
  transition: background 0.25s ease, transform 0.35s var(--ease);
  animation: rise 0.8s var(--ease) both;
  animation-delay: 0.35s;
}

.chip:nth-child(2) { animation-delay: 0.42s; }
.chip:nth-child(3) { animation-delay: 0.49s; }
.chip:nth-child(4) { animation-delay: 0.56s; }
.chip:nth-child(5) { animation-delay: 0.63s; }

[dir="rtl"] .chip {
  padding: 9px 10px 9px 18px;
}

.chip:nth-child(even) {
  translate: 0 18px;
}

.chip:hover {
  background: rgb(199 199 199 / 0.75);
  transform: translateY(-3px);
}

.chip__thumb {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  background: var(--grey);
}

.chip__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chip__thumb--logo img {
  width: 74%;
  height: auto;
  object-fit: contain;
}

.chip__thumb--dark img {
  filter: invert(1);
}

.chip__thumb--light {
  background: var(--paper);
}

.chip__text {
  display: grid;
  line-height: 1.25;
}

.chip__name {
  font-size: 16px;
}

.chip__cat {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--muted);
}

html[lang="ar"] .chip__cat {
  font-family: var(--font-ar);
}

.chip__num {
  margin-inline-start: auto;
  align-self: start;
  padding-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ---------- About ---------- */
.about {
  background: var(--sand-deep);
  padding-block: clamp(56px, 6.4vw, 92px) calc(clamp(64px, 7vw, 110px) + var(--sheet));
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
}

.about__title {
  font-size: clamp(42px, 6.25vw, 90px);
  line-height: 1.04;
  text-wrap: balance;
}

html[lang="ar"] .about__title {
  font-family: var(--font-ar);
  line-height: 1.3;
}

.body-copy {
  max-width: 620px;
  margin-top: clamp(20px, 2.4vw, 32px);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
  color: var(--muted);
}

.list {
  display: grid;
  gap: clamp(12px, 1.5vw, 22px);
  padding-top: clamp(6px, 1.2vw, 20px);
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.2;
}

.list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.list .arrow {
  width: 16.5px;
  height: 16.5px;
  align-self: center;
}

/* ---------- Sheets ---------- */
.sheet {
  position: relative;
  margin-top: calc(-1 * var(--sheet));
  border-radius: var(--sheet) var(--sheet) 0 0;
}

.sheet--dark {
  background: var(--ink);
  color: var(--on-dark);
}

.sheet--sand {
  background: var(--sand);
}

/* ---------- Brands ---------- */
.brands {
  padding-block: clamp(56px, 6vw, 92px) calc(clamp(72px, 8vw, 120px) + var(--sheet));
}

.heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 32px;
}

.heading__title {
  font-size: clamp(44px, 5.4vw, 78px);
  line-height: 1.05;
  text-transform: uppercase;
}

html[lang="ar"] .heading__title {
  font-family: var(--font-ar);
  line-height: 1.3;
}

.heading__tag {
  font-size: 16px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
  margin-top: clamp(40px, 5vw, 72px);
}

.brand {
  scroll-margin-top: 24px;
}

.card {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 520 / 672;
  overflow: hidden;
  border-radius: clamp(20px, 2.1vw, 30px);
  background: var(--card);
}

.card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.brand:hover .card > img {
  transform: scale(1.04);
}

.card--logo > img {
  position: static;
  width: 64%;
  height: auto;
  object-fit: contain;
}

.brand:hover .card--logo > img {
  transform: scale(1.06);
}

.card--allen {
  background: var(--grey);
}

.card--allen > img {
  width: 58%;
  filter: invert(1);
}

.card--blend {
  background: var(--sand);
}

.card--blend > img {
  width: 70%;
}

.pill {
  position: absolute;
  inset-inline: 0;
  bottom: 18px;
  width: max-content;
  max-width: calc(100% - 24px);
  margin-inline: auto;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.9);
  background: rgb(0 0 0 / 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
}

.card--blend .pill {
  border-color: rgb(0 0 0 / 0.7);
  background: transparent;
  color: var(--ink);
}

.brand__name {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
  font-size: clamp(22px, 1.8vw, 26px);
  line-height: 1.2;
}

.brand__by {
  font-size: 13px;
  color: var(--on-dark-muted);
}

.brand__desc {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--on-dark-muted);
}

html[lang="ar"] .brand__desc {
  font-family: var(--font-ar);
}

/* ---------- Company details ---------- */
.company {
  padding-block: clamp(56px, 6vw, 92px) clamp(72px, 8vw, 120px);
}

.company__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

.company__title span {
  display: block;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.12;
}

.company__title .strong {
  font-weight: 600;
  text-transform: uppercase;
}

.company__title .light {
  font-weight: 200;
}

.company__title .ar {
  margin-top: 10px;
  font-family: var(--font-ar);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.4;
}

html[lang="ar"] .company__title span {
  font-family: var(--font-ar);
  line-height: 1.35;
}

html[lang="ar"] .company__title .en {
  font-family: var(--font-head);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 300;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 48px);
}

.fact {
  padding-block: 18px 22px;
  border-top: 1px solid var(--rule);
}

.fact--wide {
  grid-column: 1 / -1;
}

.fact dt {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

html[lang="ar"] .fact dt {
  font-family: var(--font-ar);
  font-size: 14px;
  letter-spacing: 0;
}

.fact dd {
  margin-top: 6px;
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.fact dd .sub {
  display: block;
  margin-top: 4px;
  font-family: var(--font-ar);
  font-size: 0.9em;
}

html[lang="ar"] .fact dd .sub {
  font-family: var(--font-head);
}

.fact a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.digits {
  font-family: var(--font-head);
  font-feature-settings: "tnum";
  letter-spacing: 0.01em;
  direction: ltr;
  unicode-bidi: isolate;
}

/* ---------- Contact form (outlined pills, after the Stack careers form) ---------- */
.contact {
  background: var(--sand-deep);
  padding-block: clamp(56px, 6vw, 92px) calc(clamp(72px, 8vw, 120px) + var(--sheet));
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

.contact__title {
  font-size: clamp(42px, 5.4vw, 78px);
  line-height: 1.05;
}

html[lang="ar"] .contact__title {
  font-family: var(--font-ar);
  line-height: 1.3;
}

.contact__direct {
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--muted);
}

html[lang="ar"] .contact__direct,
html[lang="ar"] .form,
html[lang="ar"] .done {
  font-family: var(--font-ar);
}

.contact__direct a,
.form__note a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.trap {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form {
  display: grid;
  gap: 14px;
  font-family: var(--font-body);
}

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

.field {
  position: relative;
  display: block;
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  height: 58px;
  padding: 0 26px;
  border: 0;
  border-radius: 29px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--ink);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  outline: none;
  transition: box-shadow 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea {
  height: auto;
  min-height: 168px;
  padding: 18px 26px;
  border-radius: 26px;
  line-height: 1.55;
  resize: vertical;
}

.field ::placeholder {
  color: var(--muted);
  opacity: 1;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  background: rgb(255 255 255 / 0.4);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.field [aria-invalid="true"] {
  box-shadow: inset 0 0 0 1.5px #c62020;
}

.field--select::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: 26px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field select {
  padding-inline-end: 52px;
  cursor: pointer;
}

[dir="rtl"] .field input[dir="ltr"] {
  text-align: right;
}

.form__note {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 6px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 30px;
  border: 0;
  border-radius: 29px;
  background: var(--ink);
  color: var(--sand);
  font-family: var(--font-head);
  font-size: 19px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

html[lang="ar"] .button {
  font-family: var(--font-ar);
}

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

.button:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}

.button .arrow {
  width: 13px;
  height: 13px;
}

.form__status {
  font-size: 15px;
  color: var(--muted);
}

.form--problem .form__status {
  color: #c62020;
}

.done {
  padding: clamp(28px, 4vw, 48px);
  border-radius: 30px;
  box-shadow: inset 0 0 0 1px var(--ink);
  outline: none;
  animation: rise 0.6s var(--ease) both;
}

.done__title {
  font-family: var(--font-head);
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.2;
}

html[lang="ar"] .done__title {
  font-family: var(--font-ar);
  line-height: 1.4;
}

.done__text {
  margin-top: 12px;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.foot {
  padding-block: clamp(56px, 6vw, 93px) 36px;
}

.foot__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.2;
  transition: opacity 0.2s ease;
}

.foot__cta:hover {
  opacity: 0.6;
}

.foot__cta .arrow {
  width: 16.5px;
  height: 16.5px;
}

.foot__rule {
  height: 1px;
  margin-top: clamp(28px, 3vw, 44px);
  background: rgb(255 255 255 / 0.56);
}

.foot__main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  padding-top: clamp(48px, 5vw, 72px);
}

.foot__mark {
  width: min(100%, 520px);
  color: var(--on-dark);
}

.foot__line {
  margin-top: 22px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--on-dark-muted);
}

html[lang="ar"] .foot__line,
html[lang="ar"] .foot__contact,
html[lang="ar"] .foot__bottom {
  font-family: var(--font-ar);
}

.foot__contact {
  display: grid;
  font-style: normal;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--on-dark-muted);
}

.foot__contact a {
  color: var(--on-dark);
  font-size: 20px;
  font-family: var(--font-head);
}

.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 32px;
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: 22px;
  border-top: 1px solid var(--on-dark-rule);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--on-dark-muted);
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.foot__links a {
  color: var(--on-dark);
  transition: opacity 0.2s ease;
}

.foot__links a:hover {
  opacity: 0.6;
}

/* ---------- Legal pages ---------- */
.doc {
  padding-block: clamp(56px, 7vw, 100px) calc(clamp(72px, 8vw, 120px) + var(--sheet));
}

.doc__head {
  max-width: 900px;
}

.doc__kicker {
  font-size: 16px;
  color: var(--muted);
}

.doc__title {
  margin-top: 10px;
  font-size: clamp(44px, 6.25vw, 90px);
  line-height: 1.04;
}

html[lang="ar"] .doc__title {
  font-family: var(--font-ar);
  line-height: 1.3;
}

.doc__note {
  max-width: 620px;
  margin-top: 14px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--sand-deep);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.doc__date {
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--muted);
}

.doc__body {
  max-width: 760px;
  margin-top: clamp(40px, 5vw, 64px);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
}

html[lang="ar"] .doc__body,
html[lang="ar"] .doc__date {
  font-family: var(--font-ar);
}

html[lang="ar"] .doc__body {
  font-size: 18px;
  line-height: 1.85;
}

.doc__body section {
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 24px;
}

.doc__body section:first-child {
  margin-top: 0;
}

.doc__body h2 {
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.2;
}

html[lang="ar"] .doc__body h2 {
  font-family: var(--font-ar);
  line-height: 1.4;
}

.doc__body p + p,
.doc__body p + ul,
.doc__body ul + p {
  margin-top: 12px;
}

.doc__body ul {
  display: grid;
  gap: 8px;
  padding-inline-start: 22px;
  list-style: disc;
}

.doc__body strong {
  font-weight: 600;
}

.doc__body a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- Not found ---------- */
.lost {
  min-height: 60vh;
  padding-block: clamp(64px, 10vw, 140px);
  text-align: center;
}

.lost p {
  margin-top: 20px;
  font-family: var(--font-body);
  color: var(--muted);
}

.lost a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Smaller screens ---------- */
@media (max-width: 1080px) {
  .cards {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 30%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .cards::-webkit-scrollbar {
    display: none;
  }

  .brand {
    scroll-snap-align: start;
  }

  .about__grid,
  .company__grid,
  .contact__grid,
  .foot__main {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .bar {
    height: 56px;
    padding-inline: 16px;
    border-radius: 14px;
  }

  .bar__brand .mark {
    width: 72px;
  }

  .bar__tagline {
    margin-top: 6px;
    font-size: 12px;
  }

  .bar__links {
    gap: 18px;
    font-size: 15px;
  }

  .bar__links .opt {
    display: none;
  }

  .langs summary svg {
    width: 16px;
    height: 16px;
  }

  .langs__list {
    position: fixed;
    top: 84px;
    inset-inline: 16px;
    width: auto;
  }

  .hero__stage {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "title title"
      "a b";
    row-gap: 40px;
    padding-top: 44px;
  }

  .hero__title {
    grid-area: title;
  }

  .photo--a {
    grid-area: a;
    width: 78%;
    margin-top: 0;
    justify-self: center;
  }

  .photo--b {
    grid-area: b;
    width: 78%;
    margin-top: 28px;
    justify-self: center;
  }

  .lede {
    margin-top: 40px;
  }

  .chip {
    min-width: 0;
    flex: 1 1 100%;
    max-width: 380px;
  }

  .chip:nth-child(even) {
    translate: none;
  }

  .cards {
    grid-auto-columns: 68%;
  }

  .facts,
  .form__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .foot__bottom {
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  .bar__tagline {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
