:root {
  color-scheme: dark;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  --bg: #0d1015;
  --panel: rgb(255 255 255 / 6%);
  --panel-strong: rgb(9 11 16 / 78%);
  --border: rgb(255 255 255 / 10%);
  --text: #f7f3ea;
  --muted: rgb(247 243 234 / 70%);
  --accent: #f4ad4c;
  --accent-strong: #ffd48b;
  --shadow: 0 24px 60px rgb(0 0 0 / 28%);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgb(120 78 36 / 28%), transparent 30%),
    radial-gradient(circle at top right, rgb(43 99 78 / 20%), transparent 24%),
    linear-gradient(180deg, #151821 0%, #0f1116 44%, #090a0d 100%);
}

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.page {
  width: min(1240px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 1rem;
  object-fit: cover;
  background: rgb(255 255 255 / 8%);
  box-shadow: var(--shadow);
}

.brand span {
  display: grid;
}

.brand strong {
  font-size: 1rem;
}

.brand span span {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.nav a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  text-decoration: none;
}

.card {
  border-radius: 1.5rem;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  padding: 0.9rem 1.25rem;
  color: inherit;
  background: transparent;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgb(0 0 0 / 22%);
}

.button--primary {
  background: var(--accent);
  color: #24180d;
}

.button--secondary,
.button--ghost {
  background: rgb(255 255 255 / 8%);
  border-color: var(--border);
}

.button--ghost {
  background: transparent;
}

.cart-button {
  white-space: nowrap;
}

.count-pill {
  min-width: 2rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgb(0 0 0 / 22%);
  border: 1px solid var(--border);
  text-align: center;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1rem;
  min-height: 72vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgb(11 10 14 / 10%), rgb(11 10 14 / 80%)),
    url("./gallery_gen/d006a0753d59296d770df4a1cb1264f9.jpg") center/cover;
  padding: 2rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
}

.hero-aside {
  display: grid;
  gap: 1rem;
  align-self: end;
}

.hero .panel {
  padding: 1rem;
  background: rgb(12 14 19 / 72%);
}

.hero .panel img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 0.85rem;
}

.panel--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.panel--split strong {
  display: block;
  font-size: 1.3rem;
  color: var(--accent-strong);
}

.panel--split span {
  display: block;
  color: var(--muted);
  margin-top: 0.2rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: var(--accent-strong);
}

h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
  margin-bottom: 0.3rem;
}

.lede {
  max-width: 41rem;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--muted);
}

.actions,
.hero-notes,
.step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-notes {
  margin-top: 0.25rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
  border: 1px solid var(--border);
}

.section {
  margin-top: 1.35rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin: 2.25rem 0 1rem;
}

.section-head--tight {
  margin: 0 0 1rem;
  align-items: center;
}

.section-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1rem;
}

.timeline-grid,
.gallery-grid,
.hiring-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card-hover {
  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

.card-hover:hover {
  transform: translateY(-3px);
  border-color: rgb(255 255 255 / 18%);
}

.animate-in {
  animation: fadeUp 420ms ease both;
}

.timeline-card,
.hiring-card {
  padding: 1.25rem;
}

.timeline-card strong,
.hiring-card__status {
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gallery-card img,
.gallery-card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.gallery-card .content {
  padding: 1rem 1.1rem 1.15rem;
}

.gallery-card--video video {
  background: #000;
}

.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.95fr);
  gap: 1rem;
  align-items: start;
}

.store-main,
.store-sidebar {
  display: grid;
  gap: 1rem;
}

.store-toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 260px) minmax(180px, 220px);
  gap: 1rem;
  align-items: end;
  padding: 1rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-pill,
.step-tabs button,
.cart-item__controls button,
.link-button {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgb(255 255 255 / 7%);
  color: inherit;
  padding: 0.65rem 0.9rem;
  font: inherit;
}

.filter-pill[aria-pressed="true"],
.step-tabs button[aria-selected="true"] {
  background: var(--accent);
  color: #24180d;
  border-color: transparent;
}

.control {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.control input,
.control select,
.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
}

input,
textarea,
select {
  background: rgb(0 0 0 / 22%);
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  color: inherit;
  padding: 0.86rem 0.95rem;
}

input::placeholder,
textarea::placeholder {
  color: rgb(247 243 234 / 40%);
}

textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.form-grid label {
  display: grid;
  gap: 0.45rem;
}

.form-grid label span {
  color: var(--muted);
  font-size: 0.95rem;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
}

.checkbox-row input {
  width: auto;
}

.product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgb(8 10 14 / 72%);
  border: 1px solid var(--border);
  font-size: 0.8rem;
}

.product-card__body {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1.1rem 1.1rem;
}

.product-card__title-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.product-card__meta {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
}

.price {
  color: var(--accent-strong);
  font-size: 1.15rem;
}

.product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.product-card__action {
  flex: 1 1 7rem;
}

.store-sidebar {
  position: sticky;
  top: 1rem;
}

.cart-panel,
.checkout-panel,
.inquiry-panel,
.journal-panel,
.contact-panel {
  padding: 1.15rem;
}

.cart-summary,
.totals {
  display: grid;
  gap: 0.4rem;
}

.cart-summary {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 1rem;
}

.cart-summary strong {
  font-size: 1.25rem;
}

.totals {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}

.cart-item__thumb {
  width: 72px;
  height: 72px;
  border-radius: 1rem;
  object-fit: cover;
}

.cart-item__title {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.cart-item__meta {
  margin: 0.35rem 0 0.65rem;
  color: var(--muted);
}

.cart-item__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.cart-item__controls input {
  width: 4.5rem;
  text-align: center;
}

.step-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.step-tabs button {
  cursor: pointer;
}

.step-panel[hidden] {
  display: none;
}

.checkout-review {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgb(255 255 255 / 5%);
  color: var(--muted);
}

.form-note {
  color: var(--muted);
}

.journal-item {
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.55rem;
}

.journal-item:first-child {
  border-top: none;
  padding-top: 0;
}

.journal-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.footer {
  margin-top: 2rem;
  padding: 1.5rem 0 0;
  color: var(--muted);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.product-modal {
  width: min(960px, calc(100% - 1rem));
  border: none;
  padding: 0;
  background: transparent;
}

.product-modal::backdrop {
  background: rgb(0 0 0 / 72%);
  backdrop-filter: blur(8px);
}

.product-modal__shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 1.75rem;
  background: #11131b;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.product-modal__close {
  grid-column: 1 / -1;
  justify-self: end;
}

.product-modal__media img {
  width: 100%;
  display: block;
  border-radius: 1.25rem;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-modal__body {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.product-modal__specs {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
}

.toast {
  position: fixed;
  inset: auto 1rem 1rem auto;
  max-width: min(420px, calc(100% - 2rem));
  padding: 0.95rem 1.05rem;
  border-radius: 1rem;
  background: #141923;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .topbar,
  .store-layout,
  .hero,
  .product-modal__shell {
    grid-template-columns: 1fr;
  }

  .store-sidebar {
    position: static;
  }

  .nav {
    justify-content: flex-start;
  }

  .cart-button {
    justify-self: start;
  }
}

@media (max-width: 860px) {
  .page {
    width: min(100% - 1rem, 1240px);
  }

  .hero {
    padding: 1.1rem;
    min-height: auto;
  }

  .store-toolbar {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }

  .panel--split {
    grid-template-columns: 1fr;
  }
}
