:root { --nav-h: 4.25rem; }
@media (min-width: 1024px) { :root { --nav-h: 4.75rem; } }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: #111315;
  color: #F4F3EF;
  font-family: Inter, system-ui, sans-serif;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
.font-display { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; }
section[id], [data-anchor] { scroll-margin-top: var(--nav-h); }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: #F5B800;
  color: #111315;
  padding: 0.7rem 1rem;
  font-weight: 600;
}
.skip:focus { top: 0.75rem; }
#navbar {
  height: var(--nav-h);
  background: rgba(17, 19, 21, 0.42);
  border-bottom: 1px solid transparent;
  box-shadow: inset 0 3px 0 #F5B800;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
#navbar.is-solid {
  background: #111315;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.line-mask { display: block; overflow: hidden; }
.hero-line { display: block; white-space: nowrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.1rem;
  padding: 0.75rem 1.25rem;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid transparent;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  text-decoration: none;
  cursor: pointer;
}
.btn-yellow { background: #F5B800; color: #111315; }
.btn-yellow:hover { background: #FFC928; }
.btn-ghost { background: transparent; color: #F4F3EF; border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost:hover { border-color: #F5B800; color: #F5B800; }
.btn-dark { background: #111315; color: #F4F3EF; }
.btn-dark:hover { background: #2a2e32; }
.btn-line { background: transparent; color: #111315; border-color: rgba(17, 19, 21, 0.25); }
.btn-line:hover { border-color: #111315; }
.index-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #90969C;
  font-weight: 600;
}
.tech-line {
  display: block;
  height: 2px;
  width: 3.25rem;
  background: #F5B800;
  transform-origin: left center;
  transition: width 0.45s ease;
}
.selector-panel:hover .tech-line,
.selector-panel:focus-visible .tech-line { width: 7.5rem; }
.selector-panel .arrow { transition: transform 0.35s ease; }
.selector-panel:hover .arrow,
.selector-panel:focus-visible .arrow { transform: translateX(7px); }
.selector-photo { transition: transform 0.8s ease; }
.selector-panel:hover .selector-photo,
.selector-panel:focus-visible .selector-photo { transform: scale(1.03); }
.selector-shade {
  background: linear-gradient(180deg, rgba(17, 19, 21, 0.05) 10%, rgba(17, 19, 21, 0.28) 42%, rgba(17, 19, 21, 0.88) 100%);
  transition: background 0.45s ease;
}
.selector-panel:hover .selector-shade,
.selector-panel:focus-visible .selector-shade {
  background: linear-gradient(180deg, rgba(17, 19, 21, 0.02) 8%, rgba(17, 19, 21, 0.22) 40%, rgba(17, 19, 21, 0.78) 100%);
}
.choice {
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #F4F3EF;
  background: transparent;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.choice:hover { border-color: rgba(245, 184, 0, 0.7); }
.choice.is-selected {
  background: #F5B800;
  border-color: #F5B800;
  color: #111315;
  font-weight: 600;
}
.field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5c636a;
  font-weight: 600;
}
.field {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(17, 19, 21, 0.22);
  border-radius: 0;
  padding: 0.85rem 0;
  font-size: 16px;
  color: #111315;
  font-family: Inter, system-ui, sans-serif;
}
.field:focus { outline: none; border-bottom-color: #F5B800; }
.field[aria-invalid="true"] { border-bottom-color: #9a3412; }
.field-error { color: #9a3412; font-size: 0.8rem; min-height: 1rem; margin-top: 0.3rem; }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #111315 50%), linear-gradient(135deg, #111315 50%, transparent 50%); background-position: calc(100% - 14px) 1.15rem, calc(100% - 8px) 1.15rem; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
textarea.field { border: 1px solid rgba(17, 19, 21, 0.22); padding: 0.85rem; min-height: 8.5rem; resize: vertical; }
textarea.field:focus { border-color: #F5B800; }
.menu-panel { transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.22, 0.8, 0.2, 1); }
#mobileMenu.is-open .menu-panel { transform: translateX(0); }
.float-wa {
  position: fixed;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: #F5B800;
  color: #111315;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  animation: float-in 0.6s ease 0.7s both;
}
.float-wa:hover { background: #FFC928; }
.float-label { display: none; }
@media (min-width: 768px) {
  .float-wa { width: auto; height: 3.15rem; padding: 0 1.15rem; gap: 0.55rem; }
  .float-label { display: inline; font-family: "Barlow Condensed", sans-serif; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 1.05rem; }
}
@keyframes float-in { from { transform: translateY(14px); } to { transform: none; } }
body.scroll-locked .float-wa { visibility: hidden; }
body.form-in-view #contactForm .form-actions { padding-right: 4.5rem; }
@media (min-width: 768px) {
  body.form-in-view #contactForm .form-actions { padding-right: 11rem; }
}
::selection { background: #F5B800; color: #111315; }
:focus-visible { outline: 2px solid #F5B800; outline-offset: 3px; }
.alert { padding: 0.9rem 1rem; margin-bottom: 1.25rem; font-size: 0.95rem; }
.alert-ok { background: #F5B800; color: #111315; }
.alert-err { background: #fff; color: #9a3412; border: 1px solid #9a3412; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.crumbs a { color: #5c636a; text-decoration: none; }
.crumbs a:hover { color: #111315; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.gallery button { border: 1px solid transparent; padding: 0; background: transparent; cursor: pointer; }
.gallery button.is-active { border-color: #F5B800; }
.detail-copy { white-space: pre-line; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
