/* Shared tokens, header, footer, forms, and buttons. */

:root {
  --ink: #0c0d0e;
  --ink-raised: #111111;
  --ink-soft: #1a1a1a;
  --ink-card: #161616;
  --ink-line: rgba(255, 255, 255, 0.1);
  --cream: #fff6f0;
  --cream-deep: #f3e6dc;
  --paper: #f7f1eb;
  --accent: #dc5930;
  --accent-hover: #c8451c;
  --accent-soft: rgba(220, 89, 48, 0.14);
  --text: #f6f3ef;
  --text-muted: #b8b0a8;
  --text-dim: #8a827a;
  --text-ink: #1a1614;
  --text-ink-muted: #5c544e;
  --white: #ffffff;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --header-h: 76px;
  --util-h: 44px;
  --max: 1180px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body.is-nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  padding: 8px 12px;
  background: var(--accent);
  color: var(--white);
  border-radius: 4px;
}

.skip-link:focus {
  top: 12px;
}

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

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 36px;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ink {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.btn-ink:hover {
  background: #000;
}

.util-bar {
  background: #090909;
  border-bottom: 1px solid var(--ink-line);
  color: var(--text-dim);
  font-size: 13px;
}

.util-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--util-h);
}

.util-list,
.util-aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
}

.util-list a,
.util-aside span {
  color: var(--text-muted);
  text-decoration: none;
}

.util-list a:hover {
  color: var(--cream);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 13, 14, 0.92);
  border-bottom: 1px solid var(--ink-line);
  backdrop-filter: blur(16px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--white);
}

.brand:hover {
  color: var(--white);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--white);
}

.brand-mark svg {
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.brand-text span {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ink-line);
  border-radius: 4px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

body.is-nav-open .nav-toggle span {
  background: transparent;
}

body.is-nav-open .nav-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

body.is-nav-open .nav-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1;
}

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

.nav-list > li {
  position: relative;
}

.nav-list > li > a,
.nav-list > li > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.nav-list > li > a:hover,
.nav-list > li > button:hover,
.nav-list > li.is-open > button {
  color: var(--white);
}

.nav-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}

.mega {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  display: none;
  min-width: 280px;
  padding: 18px 20px 20px;
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.nav-list > li.is-open > .mega {
  display: grid;
  gap: 8px;
}

.mega a {
  display: block;
  padding: 7px 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}

.mega a:hover {
  color: var(--cream);
}

.mega-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.header-cta {
  margin-left: 12px;
  min-height: 44px;
  padding: 10px 18px;
}

.page-main {
  overflow: clip;
}

.site-footer {
  background: #090909;
  border-top: 1px solid var(--ink-line);
  color: var(--text-muted);
}

.footer-cta {
  padding: 88px 0 72px;
  background:
    radial-gradient(circle at 12% 20%, rgba(220, 89, 48, 0.16), transparent 28%),
    linear-gradient(180deg, #111 0%, #090909 100%);
}

.footer-cta .section-title {
  max-width: 16ch;
}

.footer-cta .btn {
  margin-top: 8px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px 28px;
  padding: 56px 0 40px;
}

.footer-brand p,
.footer-col p {
  margin: 12px 0 0;
  font-size: 14px;
}

.footer-col h2 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
}

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

.footer-col li + li {
  margin-top: 8px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--white);
}

.operator-slot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-line);
  font-size: 13px;
  color: var(--text-dim);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--ink-line);
  font-size: 13px;
  color: var(--text-dim);
}

.footer-base nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-base a {
  color: var(--text-dim);
  text-decoration: none;
}

.footer-base a:hover {
  color: var(--cream);
}

.float-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  box-shadow: var(--shadow);
}

.page-hero-mini {
  padding: 72px 0 48px;
  background:
    radial-gradient(circle at 80% 0%, rgba(220, 89, 48, 0.18), transparent 32%),
    var(--ink);
}

.page-hero-mini h1 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.12;
}

.page-hero-mini p {
  margin: 0;
  max-width: 40rem;
  color: var(--text-muted);
}

.inner-section {
  padding: 28px 0 88px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-ink-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #d7cfc7;
  border-radius: 4px;
  background: var(--white);
  color: var(--text-ink);
  font: inherit;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-ink-muted) 50%),
    linear-gradient(135deg, var(--text-ink-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-ink-muted);
}

.directory-select-wrap {
  position: relative;
}

.directory-select.is-enhanced > select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.directory-select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  padding: 12px 40px 12px 14px;
  border: 1px solid var(--ink-line);
  border-radius: 4px;
  background: var(--ink-raised);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.directory-select-wrap .directory-select-button {
  position: relative;
}

.directory-select-button::after {
  content: "";
  position: absolute;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.18s ease;
}

.field .directory-select-button .directory-select-value {
  font-size: inherit;
  font-weight: 500;
  color: var(--cream);
}

.directory-select.is-open .directory-select-button {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.directory-select.is-open .directory-select-button::after {
  transform: translateY(2px) rotate(225deg);
}

.directory-select-button:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.directory-select-button:focus-visible {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.directory-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 24;
  display: none;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #1c1917;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-height: min(320px, 60vh);
  overflow: auto;
}

.directory-select.is-open .directory-select-menu {
  display: block;
}

.directory-select-option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.directory-select-option:hover,
.directory-select-option.is-active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.directory-select-option.is-selected {
  background: var(--accent-soft);
  color: var(--cream);
}

.directory-select-option.is-selected.is-active,
.directory-select-option.is-selected:hover {
  background: rgba(220, 89, 48, 0.22);
  color: var(--cream);
}

.finder-card .directory-select-button,
.tool-panel .directory-select-button,
.tool-room .directory-select-button {
  background: var(--white);
  border-color: #d7cfc7;
  color: var(--text-ink);
}

.finder-card .directory-select-button::after,
.tool-panel .directory-select-button::after,
.tool-room .directory-select-button::after {
  border-right-color: var(--text-ink-muted);
  border-bottom-color: var(--text-ink-muted);
}

.finder-card .field .directory-select-button .directory-select-value,
.tool-panel .field .directory-select-button .directory-select-value,
.tool-room .field .directory-select-button .directory-select-value {
  color: var(--text-ink);
}

.finder-card .directory-select-button:hover,
.tool-panel .directory-select-button:hover,
.tool-room .directory-select-button:hover {
  border-color: #c4bbb3;
}

@media (max-width: 980px) {
  html {
    overflow-x: clip;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 2;
    display: block;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: calc(100vh - 100%);
    height: calc(100dvh - 100%);
    padding: 12px 20px 28px;
    overflow: auto;
    background: var(--ink);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    overscroll-behavior: contain;
    transition: transform 0.24s ease, visibility 0.24s ease;
  }

  body.is-nav-open .site-nav {
    transform: none;
    visibility: visible;
    pointer-events: auto;
  }

  body.is-nav-open .float-cta {
    visibility: hidden;
  }

  .nav-list,
  .header-cta {
    display: block;
    width: 100%;
    margin: 0;
  }

  .nav-list > li > a,
  .nav-list > li > button {
    width: 100%;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--ink-line);
  }

  .mega {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 12px 8px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-list > li.is-open > .mega {
    display: grid;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  .util-aside {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .float-cta {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .float-cta .btn {
    width: 100%;
  }
}
