* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--color-text);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(209, 164, 74, 0.1), transparent 55%),
    url('/mainbackground.png') center top / cover fixed no-repeat,
    linear-gradient(180deg, #090909 0%, #040404 60%, #020202 100%);
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--color-gold-2);
  text-underline-offset: 0.18em;
}

p {
  margin: 0 0 var(--space-4);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  margin: 0 0 var(--space-4);
  font-weight: 700;
  line-height: 1.14;
  color: var(--color-text-strong);
}

h1 {
  font-size: clamp(2rem, 5vw, 4.15rem);
}

h2 {
  font-size: clamp(1.5rem, 3.3vw, 2.6rem);
}

h3 {
  font-size: clamp(1.16rem, 2.3vw, 1.6rem);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style-position: inside;
}

input,
select,
textarea,
button {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

input,
select,
textarea {
  --field-surface: linear-gradient(165deg, rgba(10, 10, 10, 0.86), rgba(4, 4, 4, 0.92));
  --field-texture-image: url('/boxbackground.png');
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  background-image: var(--field-surface), var(--field-texture-image);
  background-position: center center, center center;
  background-size: auto, 100% 100%;
  background-repeat: no-repeat, no-repeat;
  color: var(--color-text);
  padding: 0.66rem 0.75rem;
}

select {
  color-scheme: dark;
}

select:not([multiple]):not([size]) {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.65rem;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(242, 206, 119, 0.92) 50%),
    linear-gradient(135deg, rgba(242, 206, 119, 0.92) 50%, transparent 50%),
    var(--field-surface),
    var(--field-texture-image);
  background-position:
    calc(100% - 1.02rem) calc(50% - 0.12rem),
    calc(100% - 0.76rem) calc(50% - 0.12rem),
    center center,
    center center;
  background-size: 0.44rem 0.44rem, 0.44rem 0.44rem, auto, 100% 100%;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
}

select option,
select optgroup {
  color: var(--color-text);
  background: #090909;
  text-shadow: none;
}

select optgroup {
  font-weight: 700;
}

input::placeholder,
textarea::placeholder {
  color: rgba(231, 188, 98, 0.8);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--color-text);
  caret-color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: 0 0 0 1000px rgba(12, 12, 12, 0.96) inset;
  transition: background-color 9999s ease-in-out 0s;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-gold-2);
  outline-offset: 2px;
}

label {
  display: grid;
  gap: 0.38rem;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

small,
.muted {
  color: var(--color-text-muted);
}

[hidden] {
  display: none !important;
}

.container {
  width: min(100% - 2rem, var(--header-shell-max));
  margin-inline: auto;
}

.section {
  padding: var(--space-7) 0;
}

.section--dark {
  background: linear-gradient(180deg, rgba(2, 2, 2, 0.96), rgba(10, 10, 10, 0.96));
}

.section--light {
  background: linear-gradient(180deg, rgba(31, 24, 10, 0.08), rgba(26, 21, 13, 0.04));
}

.section-eyebrow {
  margin-bottom: 0.48rem;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  color: var(--color-gold-2);
  font-weight: 700;
}

.section-eyebrow--compact {
  letter-spacing: 0.17em;
  font-size: 0.69rem;
}

.section-lead {
  font-size: clamp(1rem, 2vw, 1.24rem);
  color: var(--color-text);
}

.form-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .span-2 {
  grid-column: span 2;
}

.form-status {
  min-height: 1.2rem;
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
}

.form-status.is-success {
  color: #a3f2a0;
}

.form-status.is-error {
  color: #ff9595;
}

.form-status.is-loading {
  color: #ffd67c;
}

.btn,
.btn-outline,
.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-border);
  padding: 0.55rem 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 700;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.btn:hover,
.btn-outline:hover,
.btn-outline-gold:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn {
  background: rgba(8, 8, 8, 0.95);
}

.btn-gold {
  background: linear-gradient(180deg, rgba(53, 38, 11, 0.9), rgba(24, 16, 5, 0.95));
  border-color: var(--color-gold-2);
}

.btn-outline,
.btn-outline-gold {
  background: rgba(9, 9, 9, 0.5);
}

.btn-block {
  width: 100%;
}

.card,
.surface-card,
.content-card {
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.surface-card,
.content-card {
  padding: clamp(1rem, 1.8vw, 1.7rem);
}

.card,
.surface-card--light,
.content-card--light,
.surface-card--dark,
.content-card--dark {
  background:
    linear-gradient(165deg, rgba(12, 12, 12, 0.9), rgba(5, 5, 5, 0.96)),
    url('/mainbackground.png') center center / cover no-repeat;
  background-origin: border-box;
  background-clip: border-box;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: rgba(4, 4, 4, 0.98);
  padding: var(--space-7) 0 var(--space-5);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

.footer-block h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
}

.footer-links,
.footer-contact-list,
.footer-area-list {
  display: grid;
  gap: 0.46rem;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  border-top: 1px solid rgba(209, 164, 74, 0.26);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  font-size: 0.83rem;
}

.footer-bottom-note {
  color: var(--color-gold-2);
}

.site-nav a,
.footer-links a,
.footer-contact-link,
.workspace-contact-link,
.text-link {
  text-decoration: none;
}

.site-nav a:hover,
.footer-links a:hover,
.footer-contact-link:hover,
.workspace-contact-link:hover,
.text-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-gold-2);
}

@media (max-width: 992px) {
  .container {
    width: min(100% - 1.2rem, var(--header-shell-max));
  }

  .section {
    padding: var(--space-6) 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .span-2 {
    grid-column: span 1;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}
