:root {
  --ws-paper: #f8fafc;
  --ws-white: #ffffff;
  --ws-panel: #e8ecf1;
  --ws-ink: #020617;
  --ws-muted: #334155;
  --ws-soft: #64748b;
  --ws-line: #e2e8f0;
  --ws-blue: #0369a1;
  --ws-blue-deep: #0f172a;
  --ws-blue-light: #38bdf8;
  --ws-teal: #0f766e;
  --ws-mustard: #e8a33d;
  --ws-mustard-text: #a3540c;
  --ws-term-muted: #94a3b8;
  --ws-pen: #1e3a8a;
  --ws-font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --ws-font-mono:
    "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ws-header-height: 4.25rem;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--ws-paper);
  height: 100%;
}
body {
  margin: 0;
  height: 100%;
  min-width: 320px;
  overflow: hidden;
  overscroll-behavior: none;
  color: var(--ws-ink);
  font-family: var(--ws-font);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  background-color: var(--ws-paper);
  background-image: linear-gradient(
    to right,
    rgba(220, 38, 38, 0.22) 1px,
    transparent 1px
  );
  background-size: 100% 100%;
  background-position: 3.4rem 0;
  background-repeat: no-repeat;
}
/* The notebook margin line ran through the text on narrow screens. */
@media (max-width: 720px) {
  body {
    background-image: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
::selection {
  background: var(--ws-mustard);
  color: var(--ws-ink);
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ws-mustard-text);
  outline-offset: 3px;
}
.site-skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ws-ink);
  color: var(--ws-paper);
  font-family: var(--ws-font-mono);
  font-size: 0.85rem;
}
.site-skip:focus {
  top: 1rem;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--ws-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: var(--ws-paper);
  border-bottom: 1px solid var(--ws-line);
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-header__brand img {
  height: 1.5rem;
  width: auto;
  display: block;
}
.site-language {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
  font-family: var(--ws-font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}
.site-language a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ws-line);
  color: var(--ws-muted);
  text-align: center;
  text-decoration: none;
}
.site-language a[aria-current="true"] {
  border-color: var(--ws-ink);
  color: var(--ws-ink);
  box-shadow: 0 2px 0 var(--ws-mustard-text);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-family: var(--ws-font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ws-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.15rem;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}
.site-nav a:hover {
  color: var(--ws-ink);
  border-color: var(--ws-mustard-text);
}
.site-nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--ws-line);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  font-family: var(--ws-font-mono);
}
.site-main {
  position: relative;
  height: calc(100dvh - (var(--ws-header-height) * 2));
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 clamp(2rem, 5vw, 4rem);
  /* Hidden sections sit 18px to the right for their entry animation. With
     `hidden`, jumping to an anchor scrolled this frame sideways by that much;
     `clip` makes it impossible to scroll at all. */
  overflow: hidden;
  overflow: clip;
}
.site-section {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: 100%;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--ws-line);
  display: flex;
  flex-direction: column;
  /* Plain `center` makes a section taller than the viewport overflow upwards
     too, where scrolling cannot reach it. `safe` falls back to the top. */
  justify-content: center;
  justify-content: safe center;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translate(18px);
  transition:
    opacity 0.18s linear,
    transform 0.18s linear,
    visibility 0ms linear 0.18s;
  scrollbar-width: none;
}
.site-section::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.site-section.is-active {
  opacity: 1;
  visibility: visible;
  transform: translate(0);
  transition-delay: 0ms;
}
html {
  scroll-behavior: auto;
}
.site-dots {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  height: var(--ws-header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--ws-paper);
  border-top: 2px solid var(--ws-ink);
}
.site-dots__list {
  display: none;
}
.site-dots__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  flex-shrink: 0;
  border: 2px solid var(--ws-blue-deep);
  background: var(--ws-blue);
  color: var(--ws-white);
  font-family: var(--ws-font-mono);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ws-blue-deep);
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.site-dots__arrow:hover {
  background: var(--ws-blue-deep);
  color: var(--ws-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--ws-mustard-text);
}
.site-dots [data-dot] {
  display: block;
  width: 0.6rem;
  height: 0.6rem;
  border: 1px solid var(--ws-ink);
  background: var(--ws-paper);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}
.site-dots [data-dot].is-active {
  background: var(--ws-ink);
  transform: scale(1.3);
}
@media (min-width: 721px) {
  .site-dots {
    transform: none;
  }
  .site-dots__list {
    display: none;
  }
}
@media (max-width: 720px) {
  .site-section {
    justify-content: flex-start;
    padding-top: 2rem;
    padding-bottom: 1rem;
  }
  .site-dots {
    transform: none;
    gap: 0.5rem;
  }
  .site-dots__list {
    flex-direction: row;
    gap: 0.6rem;
  }
  .site-dots__arrow {
    display: flex;
  }
  .site-dots__arrow:active {
    color: var(--ws-white);
    transform: translateY(1px);
    box-shadow: 0 1px 0 var(--ws-blue-deep);
  }
}
@media (min-width: 721px) {
  .site-section {
    padding-left: clamp(2.5rem, 5vw, 4.5rem);
    padding-right: clamp(2.5rem, 5vw, 4.5rem);
  }
}
.site-section:last-of-type {
  border-bottom: none;
}
.site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.site-hero__copy {
  min-width: 0;
}
.site-hero-stack {
  border-top: 1px solid var(--ws-line);
  border-bottom: 1px solid var(--ws-line);
  padding: 0.35rem 0;
  font-family: var(--ws-font-mono);
  color: var(--ws-ink);
}
.site-hero-stack span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--ws-line);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.site-hero-stack span:before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  flex-shrink: 0;
  background: var(--ws-mustard-text);
}
.site-hero-stack span:last-child {
  border-bottom: 0;
}
.site-kicker {
  position: relative;
  font-family: var(--ws-font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ws-blue);
  margin: 0 0 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  width: fit-content;
}
.site-kicker:before {
  content: "";
  position: absolute;
  left: -0.3rem;
  right: -0.3rem;
  bottom: 0.1rem;
  height: 0.6em;
  background: #e8a33d66;
  transform: rotate(-0.6deg);
  z-index: -1;
}
.site-kicker span {
  color: var(--ws-muted);
}
.site-h1 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  max-width: 22ch;
  color: var(--ws-blue);
}
.site-h2 {
  font-family: var(--ws-font-mono);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 1.75rem;
}
.site-lede {
  font-size: 1.14rem;
  line-height: 1.65;
  color: var(--ws-muted);
  max-width: 46rem;
  margin: 0 0 1rem;
}
.site-p {
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--ws-muted);
  max-width: 46rem;
  margin: 0 0 1rem;
}
.site-p:last-child {
  margin-bottom: 0;
}
.site-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ws-line);
}
.site-item {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0;
  padding: 1.75rem 0.85rem;
  margin: 0 -0.85rem;
  border-bottom: 1px solid var(--ws-line);
  border-left: 3px solid transparent;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}
.site-item:hover {
  background-color: #0369a10b;
  border-left-color: var(--ws-blue);
}
.site-item__index {
  font-family: var(--ws-font-mono);
  font-size: 0.85rem;
  color: var(--ws-muted);
  padding-top: 0.2rem;
  text-align: center;
}
.site-item > :not(.site-item__index) {
  min-width: 0;
  padding-left: 1.5rem;
}
.site-item__title {
  font-family: var(--ws-font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  margin: 0 0 0.55rem;
  color: var(--ws-blue-deep);
}
.site-item__body {
  font-size: 1.01rem;
  line-height: 1.65;
  color: var(--ws-muted);
  margin: 0;
  max-width: 54rem;
}
.site-item__action {
  margin: 1rem 0 0;
}
.site-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ws-line);
}
.site-list li {
  padding: 1.1rem 0.85rem;
  margin: 0 -0.85rem;
  border-bottom: 1px solid var(--ws-line);
  border-left: 3px solid transparent;
  color: var(--ws-muted);
  font-size: 1.01rem;
  line-height: 1.6;
  display: flex;
  gap: 0.9rem;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}
.site-list li:hover {
  background-color: #0369a10b;
  border-left-color: var(--ws-blue);
}
.site-list li:before {
  content: "→";
  color: var(--ws-mustard-text);
  font-family: var(--ws-font-mono);
  font-weight: 700;
  flex-shrink: 0;
}
.site-linkcard {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--ws-line);
  padding: 1.5rem;
}
.site-linkcard__text {
  max-width: 34rem;
  line-height: 1.6;
  color: var(--ws-muted);
  margin: 0;
}
.site-linkarrow {
  display: inline-block;
  font-family: var(--ws-font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ws-ink);
  background: var(--ws-paper);
  border: 1px solid var(--ws-ink);
  padding: 0.7rem 1.1rem;
  white-space: nowrap;
  box-shadow: 0 3px 0 var(--ws-ink);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.site-linkarrow:hover {
  background: var(--ws-ink);
  color: var(--ws-paper);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--ws-mustard-text);
}
.site-linkarrow:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 var(--ws-mustard-text);
}
.site-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.site-linkarrow--ghost {
  border-color: var(--ws-line);
  color: var(--ws-muted);
  box-shadow: 0 3px 0 var(--ws-line);
}
.site-linkarrow--ghost:hover {
  background: transparent;
  border-color: var(--ws-ink);
  color: var(--ws-ink);
  box-shadow: 0 5px 0 var(--ws-mustard-text);
}
.site-linkarrow[aria-disabled="true"] {
  color: var(--ws-soft);
  border-color: var(--ws-line);
  cursor: not-allowed;
  pointer-events: none;
}
/* Contact: pitch and WhatsApp on the left, every channel listed on the right. */
.site-contact-block {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.site-contact-block__title {
  margin: 0 0 0.9rem;
  font-family: var(--ws-font);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ws-blue-deep);
}
.site-linkarrow--whatsapp {
  margin-top: 0.4rem;
  background: #25d366;
  border-color: var(--ws-ink);
  color: var(--ws-ink);
}
.site-contact-block__note {
  margin: 1.1rem 0 0;
  font-family: var(--ws-font-mono);
  font-size: 0.78rem;
  color: var(--ws-soft);
}
.site-contact-list {
  margin: 0;
  border-top: 1px solid var(--ws-line);
}
.site-contact-list > div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--ws-line);
}
.site-contact-list dt {
  padding-top: 0.2rem;
  font-family: var(--ws-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ws-soft);
}
.site-contact-list dd {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ws-ink);
  overflow-wrap: anywhere;
}
.site-contact-list a {
  font-weight: 600;
  color: var(--ws-blue);
  text-decoration: none;
}
.site-contact-list a:hover,
.site-contact-list a:focus-visible {
  text-decoration: underline;
}
.site-contact-list small {
  display: block;
  font-size: 0.8rem;
  color: var(--ws-soft);
}
.site-contact-block__more {
  margin: 0.6rem 0 0;
  font-family: var(--ws-font-mono);
  font-size: 0.8rem;
}
.site-contact-block__more a {
  color: var(--ws-muted);
}
@media (max-width: 720px) {
  .site-contact-block {
    grid-template-columns: 1fr;
  }
  .site-contact-list > div {
    grid-template-columns: 5.5rem minmax(0, 1fr);
  }
}
.site-footer {
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 6rem;
  max-width: 56rem;
  margin: 0 auto;
  display: none;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-family: var(--ws-font-mono);
  font-size: 0.78rem;
  color: var(--ws-muted);
}
.site-footer__status:before {
  content: "●";
  color: var(--ws-teal);
  margin-right: 0.4rem;
}
.site-term-dock {
  position: fixed;
  right: 1.25rem;
  bottom: calc(var(--ws-header-height) + 1rem);
  z-index: 40;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}
.site-term-dock__mascot {
  width: 3.1rem;
  height: 3.1rem;
  object-fit: contain;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  animation: site-term-dock-float 3.2s ease-in-out infinite;
}
@keyframes site-term-dock-float {
  0%,
  to {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
.site-term-dock__hint {
  position: absolute;
  right: 3.6rem;
  bottom: 0.5rem;
  white-space: nowrap;
  background: var(--ws-ink);
  color: var(--ws-paper);
  font-family: var(--ws-font-mono);
  font-size: 0.72rem;
  padding: 0.4rem 0.6rem;
  opacity: 0;
  transform: translate(4px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.site-term-dock__hint[data-show="true"] {
  opacity: 1;
  transform: none;
}
.site-term-trigger {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ws-ink);
  color: var(--ws-paper);
  border: none;
  font-family: var(--ws-font-mono);
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--ws-mustard-text);
}
.site-term-trigger:hover {
  background: var(--ws-blue-deep);
}
.site-term {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1.25rem;
  background: #02061759;
}
.site-term[data-open="true"] {
  display: flex;
}
.site-term__panel {
  width: min(30rem, 100%);
  max-height: min(28rem, 80vh);
  display: flex;
  flex-direction: column;
  background: var(--ws-blue-deep);
  color: #e2e8f0;
  font-family: var(--ws-font-mono);
  font-size: 0.85rem;
  border: 1px solid var(--ws-ink);
  box-shadow: 0 12px 40px #02061759;
}
.site-term__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.15);
  color: var(--ws-term-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.site-term__close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}
.site-term__body {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.site-term__mascot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.85rem 0.6rem;
}
.site-term__mascot img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  flex-shrink: 0;
}
.site-term__bubble {
  color: #cbd5e1;
  font-size: 0.8rem;
}
.site-term__line {
  white-space: pre-wrap;
  word-break: break-word;
}
.site-term__line--cmd:before {
  content: "guest@webskill ~ $ ";
  color: #fbbf6a;
}
.site-term__line--err {
  color: #f87171;
}
.site-term__line--ok {
  color: #34d399;
}
.site-term__form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-top: 1px solid rgba(226, 232, 240, 0.15);
}
.site-term__form span {
  color: #fbbf6a;
}
.site-term__input {
  flex: 1;
  background: none;
  border: none;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.85rem;
}
.site-term__input:focus {
  outline: none;
}
.projects-page {
  min-height: 100%;
  overflow: auto;
}
.projects-page .site-main {
  height: auto;
  min-height: calc(100dvh - var(--ws-header-height));
  overflow: visible;
}
.projects-page .site-section {
  position: relative;
  inset: auto;
  height: auto;
  min-height: auto;
  overflow: visible;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: none;
}
.projects-page .site-section:first-child {
  min-height: clamp(18rem, 45dvh, 28rem);
}
.projects-page .site-section + .site-section {
  padding-top: 0;
}
.project-card {
  border: 1px solid var(--ws-line);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.project-card:hover {
  border-color: var(--ws-ink);
  box-shadow: 4px 4px 0 var(--ws-line);
}
.project-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.1rem;
}
.project-card__name {
  font-family: var(--ws-font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0;
}
.project-card__sector {
  font-family: var(--ws-font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ws-blue);
}
.project-card__row {
  margin: 0 0 0.85rem;
  line-height: 1.6;
  color: var(--ws-muted);
}
.project-card__row:last-of-type {
  margin-bottom: 0;
}
.project-card__row strong {
  color: var(--ws-ink);
  font-weight: 700;
}
.project-card__pdf {
  margin: 0 0 1.25rem;
}
.project-card__pdf .site-linkarrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ws-ink);
  color: var(--ws-paper);
  border-color: var(--ws-ink);
  box-shadow: 0 3px 0 var(--ws-mustard-text);
}
.project-card__pdf .site-linkarrow:hover {
  background: var(--ws-blue-deep);
  color: var(--ws-paper);
  box-shadow: 0 5px 0 var(--ws-mustard-text);
}
@media (max-width: 900px) {
  .site-header {
    gap: 1rem;
  }
  .site-nav {
    position: fixed;
    inset: var(--ws-header-height) 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ws-paper);
    border-bottom: 1px solid var(--ws-line);
    padding: 0.5rem clamp(1.25rem, 4vw, 3rem) 1rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.15s ease,
      transform 0.15s ease;
  }
  .site-nav[data-open="true"] {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .site-nav a {
    padding: 0.7rem 0;
    width: 100%;
    border-bottom: 1px solid var(--ws-line);
  }
  .site-nav__toggle {
    display: block;
    flex-shrink: 0;
  }
  .site-language {
    margin-left: auto;
    flex-shrink: 0;
  }
}
@media (max-width: 720px) {
  .site-main {
    max-width: 56rem;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
  }
  .site-hero {
    grid-template-columns: 1fr;
  }
  .site-h1 {
    font-size: clamp(1.75rem, 7.6vw, 2rem);
    line-height: 1.12;
  }
  .site-hero-stack {
    margin-top: 0.5rem;
  }
  .site-item {
    grid-template-columns: 4.9rem minmax(0, 1fr);
    gap: 0;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .site-item__index {
    padding-top: 0.12rem;
  }
  .site-item > :not(.site-item__index) {
    padding-left: 1.15rem;
  }
}
/* Four language buttons plus logo and MENU overflowed a phone screen, making
   the whole page scroll sideways. These sizes fit down to 320px. */
@media (max-width: 480px) {
  .site-header {
    gap: 0.5rem;
    padding: 0 1rem;
  }
  .site-header__brand img {
    height: 1.15rem;
  }
  .site-language {
    gap: 0.15rem;
  }
  .site-language a {
    width: 34px;
    height: 40px;
  }
  .site-nav__toggle {
    padding: 0.5rem 0.55rem;
    font-size: 0.72rem;
  }
  /* Long labels ("Смотреть предложение (PDF) →") must wrap, not overflow. */
  .site-linkarrow {
    max-width: 100%;
    white-space: normal;
  }
}
@media (max-width: 360px) {
  .site-header {
    gap: 0.4rem;
    padding: 0 0.75rem;
  }
  .site-header__brand img {
    height: 1rem;
  }
  .site-language a {
    width: 32px;
  }
}
