:root {
  --space: #000000;
  --space-soft: #080808;
  --text: #f0f0fa;
  --muted: rgba(240, 240, 250, 0.72);
  --line: rgba(240, 240, 250, 0.22);
  --line-strong: rgba(240, 240, 250, 0.36);
  --ghost: rgba(240, 240, 250, 0.1);
  --ghost-hover: rgba(240, 240, 250, 0.18);
  --surface: #111111;
  --surface-soft: #171717;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--space);
  color: var(--text);
  font-family: "Bahnschrift", "DIN Alternate", "Oswald", sans-serif;
}

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

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

.site-header,
.site-footer,
.shop-main,
.shop-detail,
.cart-shell,
.checkout-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 18px 0;
}

.site-header nav,
.hero-actions,
.product-meta,
.contact-list {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.brand,
.site-header nav a,
.scene-index,
.line-label,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.brand {
  font-size: 0.95rem;
  font-weight: 700;
}

.site-header nav a {
  font-size: 0.76rem;
  font-weight: 700;
  opacity: 0.82;
  transition: opacity 160ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  opacity: 1;
}

.portfolio-home .site-footer {
  width: 100%;
  margin: 0;
  padding: 28px 20px 36px;
  border-top: 1px solid rgba(240, 240, 250, 0.1);
}

.portfolio-home .site-footer > div {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.portfolio-home .site-footer p,
.portfolio-home .contact-list a {
  color: var(--muted);
}

.home-main {
  background:
    radial-gradient(circle at 50% 100%, rgba(240, 240, 250, 0.08), transparent 26%),
    linear-gradient(180deg, #010101 0%, #000000 100%);
}

.scene {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.scene::before,
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
}

.scene::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.3) 26%, rgba(0, 0, 0, 0.78) 100%);
}

.scene::after {
  opacity: 0.95;
}

.scene-hero::after {
  background:
    radial-gradient(circle at 50% 78%, rgba(240, 240, 250, 0.18), transparent 10%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 18%),
    radial-gradient(circle at 50% 112%, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #060606 0%, #020202 50%, #000000 100%);
}

.scene-approach::after {
  background:
    radial-gradient(circle at 18% 26%, rgba(255, 255, 255, 0.06) 0%, transparent 18%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #040404 0%, #000000 100%);
  background-size: auto, 64px 64px, 64px 64px, auto;
  background-position: 0 0, center center, center center, 0 0;
}

.scene-experience::after {
  background:
    radial-gradient(circle at 80% 24%, rgba(255, 255, 255, 0.1) 0%, transparent 12%),
    radial-gradient(circle at 22% 84%, rgba(255, 255, 255, 0.07) 0%, transparent 14%),
    linear-gradient(180deg, #060606 0%, #010101 100%);
}

.scene-projects::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0) 24%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #050505 0%, #000000 100%);
  background-size: auto, 100% 1px, auto;
  background-position: 0 0, 0 76%, 0 0;
}

.scene-contact::after {
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.12) 0%, transparent 14%),
    linear-gradient(180deg, #030303 0%, #000000 100%);
}

.scene-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 112px 0 52px;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 320px);
  gap: 40px;
  align-items: end;
}

.scene-copy h1,
.scene-copy h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scene-copy h2 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.scene-index {
  margin: 0 0 14px;
  font-size: 0.78rem;
  color: var(--muted);
}

.scene-text,
.line-item p,
.shop-intro p,
.product-card p,
.product-content p,
.site-footer p {
  max-width: 42rem;
  margin: 18px 0 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.scene-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.ghost-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  background: var(--ghost);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.ghost-button:hover,
.ghost-button:focus-visible,
.button:hover,
.button:focus-visible {
  background: var(--ghost-hover);
  border-color: rgba(240, 240, 250, 0.46);
}

.text-link {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.82;
  transition: opacity 160ms ease;
}

.scene-stats,
.principles-list,
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.scene-stats {
  display: grid;
  gap: 12px;
  align-self: end;
}

.scene-stats li,
.principles-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.6;
}

.principles-list {
  display: grid;
  gap: 4px;
}

.line-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 0;
}

.line-item {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 18px 28px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.line-item h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.line-body {
  display: grid;
  gap: 10px;
}

.line-item p {
  margin: 0;
}

.line-label {
  margin: 3px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.shop-shell {
  background: var(--space);
}

.shop-shell .site-header {
  position: static;
}

.shop-main,
.shop-detail,
.cart-shell,
.checkout-shell {
  padding-bottom: 56px;
}

.shop-intro,
.product-grid,
.product-detail-layout,
.checkout-grid {
  padding-top: 16px;
}

.shop-intro h1,
.product-content h1,
.cart-shell h1,
.checkout-grid h1 {
  margin: 8px 0 0;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
}

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

.product-card,
.product-detail-layout,
.cart-root,
.checkout-form,
.cart-summary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.product-card,
.checkout-form,
.cart-root {
  padding: 20px;
}

.product-card img,
.product-visual img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: linear-gradient(180deg, #1d1d1d 0%, #0b0b0b 100%);
}

.product-card h2,
.product-content h1 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-meta {
  margin-top: 20px;
  align-items: center;
  justify-content: space-between;
}

.product-detail-layout,
.checkout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.checkout-form {
  display: grid;
  gap: 16px;
}

.checkout-form label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  padding: 20px 0 40px;
}

.contact-list {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    padding-bottom: 0;
  }

  .scene {
    min-height: auto;
  }

  .scene-inner,
  .product-detail-layout,
  .checkout-grid,
  .line-item {
    grid-template-columns: 1fr;
  }

  .scene-inner {
    padding-top: 72px;
    gap: 24px;
  }

  .line-item {
    gap: 10px;
  }

  .scene-copy h1,
  .scene-copy h2 {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  .shop-main,
  .shop-detail,
  .cart-shell,
  .checkout-shell,
  .scene-inner {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    gap: 12px;
    align-items: flex-start;
  }

  .site-header nav,
  .scene-actions,
  .product-meta,
  .contact-list {
    gap: 12px;
  }

  .scene-copy h1,
  .scene-copy h2,
  .shop-intro h1,
  .product-content h1,
  .cart-shell h1,
  .checkout-grid h1 {
    letter-spacing: 0.06em;
  }
}
