@font-face {
  font-family: Onest;
  src: url("assets/fonts/onest-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Onest;
  src: url("assets/fonts/onest-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Material Symbols Outlined";
  src: url("assets/fonts/material-symbols.woff2") format("woff2");
  font-weight: 400;
  font-display: block;
}

:root {
  color-scheme: dark;
  --background: #0c0d10;
  --surface: #121317;
  --surface-strong: #17181d;
  --foreground: #f6f4ee;
  --muted: #adadb4;
  --subtle: #9697a1;
  --line: #292a31;
  --line-soft: #222329;
  --gold: #e0bf78;
  --gold-strong: #f0d395;
  --gold-border: #5d4b2e;
  --gold-wash: #231c13;
  --action-gold: #dfba73;
  --action-gold-hover: #edcc88;
  --action-gold-border: #dbb56b;
  --confirmed-ink: #aadbbb;
  --confirmed-fill: #142820;
  --confirmed-border: #365341;
  --unconfirmed-ink: #ffc0bc;
  --unconfirmed-fill: #361d20;
  --unconfirmed-border: #79464a;
  --wordmark-ink: #fff;
  --wordmark-gold: #e0b96c;
  --dialog-shadow: #0008;
  --theme-speed: .26s;
  --easing: cubic-bezier(.2, .7, .25, 1);
  --container: 1200px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --background: #faf7f1;
  --surface: #fffdfa;
  --surface-strong: #f4efe6;
  --foreground: #211c15;
  --muted: #5d5347;
  --subtle: #655b4f;
  --line: #dfd5c4;
  --line-soft: #ebe3d7;
  --gold: #775119;
  --gold-strong: #603e0a;
  --gold-border: #c7a76b;
  --gold-wash: #f6e9cc;
  --action-gold: #d8b16a;
  --action-gold-hover: #e6c382;
  --action-gold-border: #bd934f;
  --confirmed-ink: #246240;
  --confirmed-fill: #e5f3e9;
  --confirmed-border: #adcdb5;
  --unconfirmed-ink: #8b2e32;
  --unconfirmed-fill: #fbe9e7;
  --unconfirmed-border: #e5b3b1;
  --wordmark-ink: #101010;
  --wordmark-gold: #8a611c;
  --dialog-shadow: #2c241b44;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 290px;
  background: var(--background);
  color: var(--foreground);
  font: 400 1rem/1.55 Onest, system-ui, sans-serif;
  transition: background-color .26s, color .26s;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
p, h1, h2, dl, dd { margin: 0; }
section[id] { scroll-margin-top: 1.5rem; }
.container { width: min(var(--container), calc(100% - 96px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: absolute;
  z-index: 10;
  top: .75rem;
  left: .75rem;
  padding: .6rem 1rem;
  background: var(--surface);
  border: 1px solid var(--gold);
}
.icon {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  overflow: hidden;
  font-family: "Material Symbols Outlined";
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 400;
  font-feature-settings: "liga";
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
}

.header { position: relative; z-index: 2; background: var(--background); border-bottom: 1px solid var(--line-soft); }
.nav-shell { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 75px; gap: 24px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(6px, .65vw, 12px);
  width: clamp(153px, 16vw, 218px);
  min-width: 0;
  padding: 6px 0;
}
.brand::before, .brand::after {
  content: "";
  width: 14.5%;
  height: 1px;
  background: var(--wordmark-gold);
  transform: translateY(1px);
  transition: background-color var(--theme-speed);
}
.brand-wordmark {
  position: relative;
  flex: 1;
  min-width: 0;
  aspect-ratio: 1038 / 110;
}
.brand-wordmark::before, .brand-wordmark::after {
  content: "";
  position: absolute;
  inset: 0;
  mask: var(--wordmark-mask) center / 100% 100% no-repeat;
  background: var(--wordmark-color);
  transition: background-color var(--theme-speed);
}
.brand-wordmark::before {
  --wordmark-mask: url("/assets/sharia-lettering.svg");
  --wordmark-color: var(--wordmark-ink);
}
.brand-wordmark::after {
  --wordmark-mask: url("/assets/sharia-lettering-accent.svg");
  --wordmark-color: var(--wordmark-gold);
}
.heading-wordmark {
  display: inline-block;
  inline-size: 3.65em;
  max-inline-size: 100%;
  vertical-align: .09em;
}
.heading-wordmark .brand-wordmark { display: block; }
.nav-links { display: flex; align-items: center; gap: clamp(20px, 3.1vw, 42px); }
.nav-links a { color: var(--muted); font-size: .875rem; white-space: nowrap; transition: color .2s; }
.nav-links a:hover, .nav-links .nav-primary { color: var(--gold); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.language-switch {
  display: flex;
  gap: 1px;
  padding: 3px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
}
.language-switch button {
  display: grid;
  place-items: center;
  width: 33px;
  min-height: 32px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
}
.language-switch button:hover, .language-switch button[aria-pressed="true"] {
  background: var(--gold-wash);
  color: var(--gold);
}
.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  transition: border-color .2s, color .2s, background .2s;
}
.icon-button:hover { border-color: var(--gold-border); color: var(--gold); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .65rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .9375rem;
  line-height: 1.25;
  font-weight: 650;
  text-align: center;
  transition: color .2s, border-color .2s, background .2s, box-shadow .2s, transform .2s var(--easing);
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-gold {
  border-color: var(--action-gold-border);
  background: var(--action-gold);
  color: #20170d;
  box-shadow: inset 0 1px #f4d99970;
}
.button-gold:hover { background: var(--action-gold-hover); box-shadow: 0 7px 24px #b28a3b30, inset 0 1px #ffecbeb0; }
.button-outline { border-color: var(--line); background: var(--surface); color: var(--foreground); }
.button-outline:hover { border-color: var(--gold-border); color: var(--gold); }

.hero {
  --hero-gold: #e8ca8a;
  --hero-ink: #fff;
  --hero-copy: #e0dcd4;
  --hero-link: #eee1c7;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #09090a;
  color: var(--hero-ink);
  transition: color var(--theme-speed);
}
:root[data-theme="light"] .hero {
  --hero-gold: #6f4916;
  --hero-ink: #211c15;
  --hero-copy: #514b43;
  --hero-link: #493514;
  background: #faf7f1;
}
.hero-visual, .hero-picture, .hero-shade { position: absolute; inset: 0; pointer-events: none; }
.hero-visual {
  --hero-veil: 9 9 10;
  background: rgb(var(--hero-veil));
}
.hero-visual[data-hero-theme="light"] {
  --hero-veil: 250 247 241;
  opacity: 0;
  transition: opacity var(--theme-speed) ease-in-out;
}
:root[data-theme="light"] .hero-visual[data-hero-theme="light"] { opacity: 1; }
.hero-picture { left: auto; width: min(78vw, 1440px); }
.hero-picture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right 44%; }
.hero-shade {
  background:
    linear-gradient(90deg, rgb(var(--hero-veil)) 16%, rgb(var(--hero-veil) / .97) 28%, rgb(var(--hero-veil) / .72) 47%, rgb(var(--hero-veil) / .15) 68%, transparent 86%),
    linear-gradient(0deg, rgb(var(--hero-veil) / .58), transparent 24%);
}
.hero-inner { position: relative; display: flex; align-items: center; min-height: clamp(540px, 48vw, 710px); padding-block: 82px 96px; }
.hero-content { max-width: min(760px, 66vw); animation: enter .72s var(--easing) both; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .17em;
  line-height: 1.3;
}
.eyebrow > span:first-child { width: 21px; height: 1px; background: currentColor; }
.hero h1 {
  font-size: clamp(2.5rem, 4.65vw, 4.5rem);
  font-weight: var(--weight-display);
  line-height: 1.11;
  letter-spacing: -.043em;
}
.hero h1 > span, .hero h1 em { display: block; }
.hero-name { color: var(--wordmark-ink); white-space: nowrap; }
.hero-name-accent { color: var(--wordmark-gold); }
.hero h1 em {
  margin-top: .1em;
  color: var(--hero-gold);
  font-size: .93em;
  font-style: normal;
  font-weight: inherit;
  line-height: 1.14;
  letter-spacing: inherit;
}
.hero-description { max-width: 490px; margin-top: 27px; color: var(--hero-copy); font-size: clamp(1.03rem, 1.5vw, 1.15rem); line-height: 1.65; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions { flex-direction: column; align-items: flex-start; margin-top: 34px; }
.hero .button { min-height: 52px; padding-inline: 19px; }
.hero-registry {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 44px;
  color: var(--hero-link);
  font-size: .9375rem;
  font-weight: var(--weight-action);
  transition: color var(--theme-speed);
}
.hero-registry::after {
  content: "";
  width: 20px;
  height: 10px;
  background: currentColor;
  clip-path: polygon(0 45%, 89% 45%, 69% 7%, 72% 0, 100% 50%, 72% 100%, 69% 93%, 89% 55%, 0 55%);
  transition: transform .2s var(--easing);
}
.hero-registry:hover { color: var(--hero-gold); }
.hero-registry:hover::after { transform: translateX(4px); }
.hero :is(a, button):focus-visible { outline-color: var(--hero-gold); }
.directory { padding-top: 53px; }
.section-heading h2, .contact h2 {
  color: var(--foreground);
  font-size: clamp(1.8rem, 3.05vw, 2.6rem);
  line-height: 1.13;
  font-weight: 500;
  letter-spacing: -.054em;
}
.section-heading > p, .contact p { margin-top: 10px; color: var(--muted); max-width: 680px; }
.directory-controls { margin-top: 23px; margin-bottom: 10px; }
.filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 5px 4px 8px;
  margin-inline: -4px;
  scrollbar-width: thin;
}
.filters button {
  flex: none;
  min-height: 43px;
  padding: .4rem .85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s, background-color .2s, border-color .2s;
}
.filters button:hover { color: var(--gold); border-color: var(--gold-border); }
.filters button[aria-pressed="true"] { background: var(--gold-wash); border-color: var(--gold-border); color: var(--gold); }
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: min(100%, 285px);
}
.search-box .icon { position: absolute; left: 13px; color: var(--subtle); pointer-events: none; }
.search-box input {
  width: 100%;
  height: 44px;
  padding: 0 12px 0 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--foreground);
}
.search-box input::placeholder { color: var(--subtle); opacity: 1; font-size: .875rem; }
.search-box input:focus { border-color: var(--gold-border); }
.directory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.view-switch { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.view-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 .7rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
  transition: color .2s, background-color .2s, border-color .2s;
}
.view-switch button:hover { color: var(--gold); }
.view-switch button[aria-pressed="true"] { color: var(--gold); background: var(--gold-wash); border-color: var(--gold-border); }
.view-icon { position: relative; display: inline-block; flex: none; width: 14px; height: 14px; }
.view-icon-grid::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: currentColor;
  box-shadow: 8px 0, 0 8px, 8px 8px;
}
.view-icon-list {
  background: repeating-linear-gradient(to bottom, currentColor 0 2px, transparent 2px 6px) right / 9px 100% no-repeat,
              repeating-linear-gradient(to bottom, currentColor 0 2px, transparent 2px 6px) left / 3px 100% no-repeat;
}
.developer-directory { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.developer-directory[data-layout="grid"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.developer-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  transition: border-color .23s, background-color .23s, box-shadow .23s;
}
.developer-card:is(:hover, :focus-within) { border-color: var(--gold-border); box-shadow: 0 5px 22px #00000016; }
.card-profile { display: grid; grid-template-rows: auto auto 1fr; align-content: start; gap: 11px; min-width: 0; }
.card-profile::after { position: absolute; inset: 0; border-radius: inherit; content: ""; }
.card-profile:focus-visible { outline: none; }
.card-profile:focus-visible::after { outline: 2px solid var(--gold); outline-offset: -2px; }
.card-profile:hover .company-name { color: var(--gold); }
.card-response { position: relative; z-index: 1; justify-self: start; min-height: 42px; color: var(--gold); border-color: var(--gold-border); }
.company-logo {
  min-width: 0;
  height: 202px;
  overflow: hidden;
  outline: 1px solid var(--line-soft);
  outline-offset: -1px;
  border-radius: 8px;
  background: #f7f6f3;
}
.company-logo[data-tone="dark"] { background: #17181b; outline-color: #37373c; }
.company-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.company-info { min-width: 0; }
.company-name { margin: 0; font-size: 1.04rem; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.company-region { margin-top: 4px; color: var(--gold); font-size: .875rem; }
.company-description { margin-top: 8px; color: var(--muted); font-size: .92rem; line-height: 1.48; }
.registry-availability { margin-top: 14px; color: var(--muted); font-size: .875rem; }
.company-overview { min-width: 0; }
.card-facts { display: grid; gap: 4px; margin-top: 9px; line-height: 1.28; }
.card-facts:empty { display: none; }
.card-facts > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px; }
.card-facts dt { color: var(--muted); font-size: .8125rem; }
.card-facts dd { margin: 0; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.card-metric-coverage { margin-top: 5px; color: var(--muted); font-size: .8125rem; }
.developer-directory[data-layout="list"] {
  overflow: hidden;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
[data-layout="list"] .developer-card {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  column-gap: 18px;
  padding: 13px 16px;
  border: 0;
  border-radius: 0;
}
[data-layout="list"] .card-profile { grid-template-columns: 192px minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto; align-items: center; gap: 18px; }
[data-layout="list"] .developer-card + .developer-card { border-top: 1px solid var(--line-soft); }
[data-layout="list"] .developer-card:is(:hover, :focus-within) { background: var(--surface-strong); box-shadow: none; }
[data-layout="list"] .company-logo { height: 114px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: .47rem;
  width: fit-content;
  min-height: 28px;
  padding: .13rem .60rem;
  border: 1px solid var(--confirmed-border);
  border-radius: 99px;
  background: var(--confirmed-fill);
  color: var(--confirmed-ink);
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
}
.badge-unconfirmed {
  border-color: var(--unconfirmed-border);
  background: var(--unconfirmed-fill);
  color: var(--unconfirmed-ink);
}
.badge::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.export, .profile-back {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--muted);
  font-size: .875rem;
  transition: color .2s;
}
.export:hover, .profile-back:hover { color: var(--gold); }
.empty-state {
  display: grid;
  justify-items: center;
  gap: .65rem;
  padding: 2rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-align: center;
  color: var(--muted);
}
.empty-state > .icon { font-size: 1.7rem; color: var(--gold); }
.empty-state .button { margin-top: .3rem; min-height: 40px; }

.about { padding-top: 34px; }
.about-inner {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.85fr);
  gap: 26px;
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.about-copy { color: var(--muted); font-size: 1.0625rem; line-height: 1.65; }
.about-copy p + p { margin-top: .95rem; }
.contact { padding-block: 64px; }
.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: clamp(20px, 4vw, 45px);
  border: 1px solid var(--gold-border);
  border-radius: 13px;
  background: radial-gradient(ellipse at 90% 100%, var(--gold-wash), transparent 66%), var(--surface);
}
.contact h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
.social-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.social-links a { color: var(--gold); text-decoration: underline; text-underline-offset: .2em; }

.profile-page { padding-block: clamp(36px, 6.5vw, 90px); }
.profile-back { min-height: 34px; text-decoration: underline; text-underline-offset: .22em; }
.profile-header {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(226px, .7fr);
  align-items: center;
  gap: clamp(20px, 4vw, 52px);
  padding-block: 23px 33px;
}
.profile-intro h1 { margin: 0 0 16px; font-size: clamp(2.4rem, 5.4vw, 4.625rem); font-weight: 500; line-height: 1.08; letter-spacing: -.061em; overflow-wrap: anywhere; }
.profile-intro p { max-width: 650px; margin-top: 16px; color: var(--muted); font-size: 1.125rem; }
.profile-logo { height: clamp(260px, 40vw, 472px); border-radius: 13px; }
.profile-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.profile-facts > div { padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.profile-facts dt { color: var(--muted); font-size: .9375rem; }
.profile-facts dd { display: grid; gap: 6px; margin-top: 6px; }
.profile-facts strong { color: var(--foreground); font-weight: 650; font-size: 1.18rem; }
.profile-facts small { color: var(--muted); font-size: .8125rem; }
.profile-response { margin-top: 26px; }
.footer { border-top: 1px solid var(--line-soft); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; min-height: 106px; padding-block: 22px; }
.footer .brand { width: clamp(132px, 14vw, 177px); }
.footer-identity p { margin-top: 5px; color: var(--muted); font-size: .88rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 19px; }
.footer-links a { color: var(--muted); font-size: .875rem; }
.footer-links a:hover { color: var(--gold); }

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

@media (max-width: 1000px) {
  .container { width: calc(100% - 64px); }
  .nav-shell { gap: 16px; }
  .hero-inner { min-height: 500px; }
  .developer-directory[data-layout="grid"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 810px) {
  .hero-picture { width: 85%; }
  [data-layout="list"] .card-profile { grid-template-columns: 150px minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 36px); }
  .nav-shell { min-height: 64px; grid-template-columns: minmax(0, 1fr) auto; }
  .brand { width: clamp(127px, 35vw, 179px); }
  .nav-actions { gap: 7px; }
  .language-switch button { width: 35px; min-height: 36px; }
  .icon-button { width: 44px; height: 44px; }
  .nav-links {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--background);
  }
  .nav-links[data-open="true"] { display: grid; gap: 0; }
  .nav-links a { padding: 11px 0; font-size: 1rem; }
  .hero-inner { min-height: 520px; padding-block: 60px 68px; }
  .directory { padding-top: 38px; }
  .directory-controls { margin-top: 20px; }
  .search-box { flex: 1; min-width: 0; }
  .developer-directory[data-layout="grid"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  [data-layout="list"] .card-profile { grid-template-columns: 144px minmax(0, 1fr); gap: 7px 12px; }
  [data-layout="list"] .company-logo { grid-row: 1 / span 2; align-self: start; }
  [data-layout="list"] .company-overview { grid-column: 2; }
  .about-inner { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .contact { padding-top: 48px; }
  .contact { padding-bottom: 48px; }
  .profile-header { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hero-inner { min-height: 590px; padding-block: 53px 188px; align-items: flex-start; }
  .hero-picture { inset: auto 0 0; width: 100%; height: 67%; }
  .hero-picture img { object-position: center 44%; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgb(var(--hero-veil)) 27%, rgb(var(--hero-veil) / .89) 45%, rgb(var(--hero-veil) / .4) 64%, transparent 82%),
      linear-gradient(90deg, rgb(var(--hero-veil) / .36), transparent 65%),
      linear-gradient(0deg, rgb(var(--hero-veil) / .55), transparent 16%);
  }
  .hero-content { max-width: 500px; }
  .hero-description { max-width: 31rem; }
  .hero-actions { margin-top: 23px; }
}
@media (max-width: 540px) {
  .directory-toolbar { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  .search-box { flex: 0 0 100%; }
  .developer-directory[data-layout="grid"] { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .developer-card { padding: 12px; gap: 11px; }
  .card-profile { gap: 8px; }
  .card-response { width: 100%; padding-inline: 6px; gap: 5px; font-size: .875rem; }
  .card-response .icon { font-size: 1.0625rem; }
  .company-logo { height: 148px; }
  .company-name { font-size: .98rem; }
  .view-switch button { min-height: 40px; padding-inline: .53rem; }
  [data-layout="list"] .developer-card { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 11px; }
  [data-layout="list"] .card-profile { grid-template-columns: 128px minmax(0, 1fr); gap: 6px 10px; }
  [data-layout="list"] .card-response { width: auto; margin-left: 138px; padding-inline: 13px; }
  .profile-logo { height: 292px; }
  .profile-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-facts > div { padding: 12px; }
}
@media (max-width: 410px) {
  .nav-shell { gap: 8px; }
  .hero h1 { font-size: clamp(2.14rem, 9.25vw, 2.6rem); }
  .hero .button { padding-inline: 12px; }
  .hero-actions, .contact-actions { gap: 8px; }
  .filters { gap: 6px; }
  .filters button { padding-inline: .52rem; }
}
@media (max-width: 350px) {
  .container { width: calc(100% - 28px); }
  .nav-shell { width: calc(100% - 24px); gap: 4px; }
  .nav-shell .brand { width: clamp(94px, calc(100vw - 195px), 139px); gap: 5px; }
  .nav-actions { gap: 4px; }
  .language-switch { gap: 0; padding: 2px; }
  .language-switch button { width: 30px; min-height: 38px; }
  .directory-toolbar { gap: 5px; }
  .view-switch button { gap: 4px; padding-inline: .42rem; }
  .view-icon { scale: .85; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

.action-section { margin-top: 38px; }
.action-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 24px;
  align-items: center;
  padding: clamp(20px, 4vw, 43px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.action-panel .section-heading { margin: 0; }
.action-panel .section-heading p + p { margin-top: .65em; }
.action-panel > .button { white-space: normal; text-align: center; }
.action-panel-secondary { background: var(--surface-strong); }
@media (max-width: 810px) {
  .action-panel { grid-template-columns: minmax(0, 1fr); }
  .action-panel > .button { justify-self: start; }
}

.subpage-nav { grid-template-columns: minmax(0, 1fr) auto; }
.subpage-links { display: flex; align-items: center; gap: 14px; font-size: .9rem; }
.subpage { padding-block: clamp(26px, 6vw, 75px); }
.form-panel { max-width: 760px; margin: 0 auto; padding: clamp(16px, 4vw, 40px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.form-panel h1, .crm h1 { font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.16; letter-spacing: -.045em; }
.form-panel p + p { margin-top: .65em; }
.form-panel p { color: var(--muted); margin-top: .85em; overflow-wrap: anywhere; }
.form-panel > .button { margin-top: 18px; }
.site-form { display: grid; gap: 14px; margin-top: 20px; }
.site-form label { display: grid; gap: 6px; }
.site-form label.form-check { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; }
.site-form :is(input:not([type=checkbox]), textarea, select) {
  color: var(--foreground); background: var(--surface-strong); border: 1px solid var(--line);
  padding: .72em .82em; border-radius: 8px; width: 100%; font: inherit;
}
.site-form :is(input, textarea, select):focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.site-form .button { justify-self: start; white-space: normal; text-align: center; }
.form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.crm { display: grid; gap: 18px; }
.crm-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.crm-list { display: grid; gap: 12px; }
.crm-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--surface); overflow-wrap: anywhere; }
.crm-card h2 { font-size: 1.04rem; margin: 0 0 8px; }
.crm-card p { margin: 6px 0; }
.crm-card small, .crm-meta { color: var(--muted); }
.crm-details { white-space: pre-wrap; }
.crm-card .site-form { max-width: 550px; }
.crm-alert { color: var(--gold-strong); }
@media (max-width: 560px) {
  .form-fields { grid-template-columns: minmax(0, 1fr); }
  .subpage-links { gap: 9px; }
}

.card-response { max-width: 100%; white-space: normal; text-align: center; }
.badge { max-width: 100%; white-space: normal; }
@media (min-width: 811px) {
  .developer-directory[data-layout="grid"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

:where(.header, .footer, .nav-links, .language-switch, .language-switch button,
  .search-box, .view-switch, .view-switch button, .empty-state, .badge,
  .about-inner, .contact-inner, .action-panel, .profile-facts > div, .form-panel, .crm-card,
  .site-form label :is(input, textarea, select)) {
  transition: background-color var(--theme-speed), border-color var(--theme-speed), color var(--theme-speed), box-shadow var(--theme-speed);
}
:where(.hero-content, .hero-content h1 em, .hero-description) {
  transition: color var(--theme-speed), text-shadow var(--theme-speed), text-decoration-color var(--theme-speed);
}

.crm-filter { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); align-items: end; }
.crm-filter .button { justify-self: stretch; }
.crm-table-scroll {
  max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px;
}
.crm-table-scroll:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.crm-data-table {
  min-width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface);
  font-size: .9rem; text-align: left;
}
.crm-data-table[data-sized] { min-width: auto; table-layout: fixed; }
.crm-data-table :is(th, td) {
  min-width: 128px; padding: .75rem .875rem; border-block-end: 1px solid var(--line);
  border-inline-end: 1px solid var(--line-soft); vertical-align: top; overflow-wrap: anywhere;
}
.crm-data-table thead { color: var(--gold-strong); }
.crm-data-table thead th { position: relative; padding-inline-end: 1.25rem; background: var(--surface-strong); }
.crm-data-table th a, .crm-data-table td a { text-decoration: underline; text-underline-offset: 3px; }
.crm-data-table tbody tr:last-child > * { border-block-end: 0; }
.crm-data-table[data-sized] .crm-pin { position: sticky; left: var(--pin-start, 0px); z-index: 1; background: var(--surface); }
.crm-data-table[data-sized] thead .crm-pin { background: var(--surface-strong); z-index: 2; }
.crm-field-origin { display: block; margin-top: .2rem; color: var(--muted); }
.crm-inline-edit { display: grid; gap: .35rem; }
.crm-inline-edit :is(select, textarea) {
  min-width: 0; width: 100%; padding: .38rem; color: var(--foreground); background: var(--surface-strong);
  border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: .8rem;
}
.crm-inline-edit textarea { resize: vertical; }
.crm-inline-edit .button { justify-self: start; min-height: 30px; padding: .24rem .5rem; font-size: .72rem; }
.crm-inline-edit output { color: var(--gold-strong); font-size: .72rem; }
.crm-inline-edit output:empty { display: none; }
.crm-unread-count, .crm-new-label {
  display: inline-block; padding: .08rem .42rem; border: 1px solid var(--gold-border);
  border-radius: 4px; color: var(--gold-strong); background: var(--surface-strong); font-size: .72rem;
}
.crm-new-label { margin-inline-start: .35rem; }
.crm-data-table tbody tr.crm-new-lead > td { background: color-mix(in srgb, var(--gold) 13%, var(--surface)); }
.crm-resize {
  touch-action: none; position: absolute; inset: 0 0 0 auto; width: 12px; border: 0;
  background: transparent; padding: 0; cursor: col-resize;
}
.crm-resize:hover, .crm-resize:focus-visible { background: var(--gold-border); }
.crm-permission-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: .75rem; }
.crm-account-form, .crm-lead-record { max-width: 840px; }
.crm-account-form details { margin-top: 16px; }
.crm-account-form fieldset { min-inline-size: 0; border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
.crm-lead-record dl { display: grid; grid-template-columns: minmax(120px, .5fr) minmax(0, 1fr); gap: .6rem 1rem; }
.crm-lead-record dt { color: var(--muted); }
@media (max-width: 540px) {
  .crm-data-table[data-sized] .crm-pin + .crm-pin { position: static; }
  .crm-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-filter label:first-of-type { grid-column: 1 / -1; }
}

.crm-column-help {
  display: grid; place-items: center; width: 32px; height: 32px; margin: -.4rem 0 .16rem -.45rem;
  padding: 0; color: var(--gold-strong); border: 0; border-radius: 5px; background: transparent;
}
.crm-column-help span {
  display: grid; place-items: center; width: 1rem; height: 1rem;
  border: 1px solid currentColor; border-radius: 50%; font-size: .72rem; line-height: 1;
}
.crm-column-help:is(:hover, [aria-expanded="true"]) { background: var(--gold-wash); }
.crm-help-popover {
  position: fixed; z-index: 30; width: max-content; max-width: min(18rem, calc(100vw - 16px));
  padding: .65rem .8rem; border: 1px solid var(--gold-border); border-radius: 6px;
  background: var(--surface-strong); color: var(--foreground); box-shadow: 0 8px 20px var(--dialog-shadow);
  font-size: .875rem; line-height: 1.45;
}
