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

:root {
  --red: #ff1a1a;
  --dark: #080808;
  --text: #e4e4e4;
  --dim: #707070;
  --header-h: 4.5rem;
  --accent: #ff1a1a;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(8,8,8,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #161616;
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  color: var(--text);
  text-decoration: none;
}
.logo em { color: var(--accent); font-style: normal; }

.site-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.contact-link, .back-link {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-link:hover, .back-link:hover { color: var(--text); }

/* ── PROJECTS LIST (homepage) ── */
main { padding-top: 0; }

.project {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  border-bottom: 1px solid #141414;
  overflow: hidden;
  height: 100vh;
}

.project-image {
  flex: 1;
  min-height: 0;
  background: #0f0f0f;
  overflow: hidden;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.75;
  transition: opacity 0.5s ease, transform 0.6s ease;
}

.project-image .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-image .placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.08;
}

.project:hover .project-image img {
  opacity: 0.9;
  transform: scale(1.02);
}

.project-image::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(8,8,8,0.85), transparent);
  pointer-events: none;
}

.project-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  mix-blend-mode: color;
  transition: opacity 0.4s;
  z-index: 1;
}
.project:hover .project-image::before { opacity: 0.12; }

.project-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 2.5rem;
  gap: 2rem;
}

.project-left {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
}

.project-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--dim);
  flex-shrink: 0;
}

.project-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0.07em;
  line-height: 1;
  color: var(--text);
  transition: color 0.2s;
}
.project:hover .project-title { color: var(--accent); }

.project-right {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-shrink: 0;
}

.badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border: 1px solid #2a2a2a;
  color: #707070;
}

.project-arrow {
  font-size: 1rem;
  color: var(--dim);
  transition: color 0.2s, transform 0.2s;
  font-family: 'Share Tech Mono', monospace;
}
.project:hover .project-arrow {
  color: var(--accent);
  transform: translateX(5px);
}

/* first project fills the viewport — image sits behind the translucent fixed header */
.project:first-child {
  height: 100vh;
  margin-top: 0;
}

/* ── SITE FOOTER (homepage style) ── */
.site-footer {
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: #3a3a3a;
}
.footer-logo em { color: #662222; font-style: normal; }

.footer-copy {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #3a3a3a;
}

.footer-nav {
  display: flex;
  gap: 2rem;
}
.footer-nav a {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4a4a4a;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: #999; }

/* ── CANVAS BACKGROUND ── */
#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.site-header, main, .site-footer {
  position: relative;
  z-index: 1;
}

/* ── MOBILE ── */
@media (max-width: 600px) {
  .project-bar { padding: 1.2rem 1.2rem; flex-direction: column; align-items: flex-start; gap: 1rem; }
  .project-right { justify-content: flex-start; }
  .site-header { padding: 0 1.2rem; }
  .site-footer { padding: 1.5rem 1.2rem; flex-direction: column; gap: 0.6rem; }
}

/* ── PAGE HERO (used by Press / generic) ── */
.page-hero {
  height: calc(100vh - var(--header-h));
  margin-top: var(--header-h);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 2.5rem;
  border-bottom: 1px solid #141414;
}
.page-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 12vw, 10rem);
  letter-spacing: 0.05em;
  line-height: 0.9;
  color: var(--text);
}
.page-hero h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px #333;
}
.page-hero p {
  margin-top: 1.2rem;
  font-size: 1rem;
  font-weight: 300;
  color: #888;
  letter-spacing: 0.04em;
  max-width: 460px;
  line-height: 1.75;
}
.page-hero p a { color: #b0b0b0; text-decoration: none; border-bottom: 1px dotted #777; }

/* ── PRESS ITEMS ── */
.press-item {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 2.5rem;
  border-bottom: 1px solid #141414;
  position: relative;
}
.press-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.press-item:hover::before { opacity: 0.5; }

.press-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
}
.press-num, .press-date {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--dim);
}

.press-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 820px;
}
.press-outlet {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.press-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 1.6rem;
}
.press-excerpt {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.75;
  color: #9a9a9a;
  max-width: 640px;
}
.press-excerpt strong { color: #d0d0d0; font-weight: 500; }

.press-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.press-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.press-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border: 1px solid #2a2a2a;
  color: #6a6a6a;
}
.press-link {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.press-link:hover { color: var(--text); }

@media (max-width: 600px) {
  .page-hero { padding: 2rem 1.2rem; }
  .press-item { padding: 2rem 1.2rem; }
  .press-bottom { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ── CONTACT PAGE ── */
.contact-page {
  height: calc(100vh - var(--header-h));
  margin-top: var(--header-h);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 2.5rem;
}
.contact-top {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
}
.contact-mid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
.contact-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1rem;
  display: block;
}
.contact-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 6vw, 5rem);
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}
a.contact-value:hover { color: var(--accent); }
.contact-address {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--text);
  font-style: normal;
}
.contact-address span { display: block; }
.contact-address span + span { color: #555; }
.contact-bottom {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #4a4a4a;
}
@media (max-width: 600px) {
  .contact-page { padding: 2rem 1.2rem; }
  .contact-mid { gap: 2.5rem; }
}

/* ── GENERIC PAGE / POST CONTENT ── */
.entry-content {
  max-width: 720px;
  margin: calc(var(--header-h) + 4rem) auto 4rem;
  padding: 0 2.5rem;
  font-size: 1.08rem;
  line-height: 1.75;
  color: #c8c8c8;
}
.entry-content h1, .entry-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
  color: var(--text);
  margin: 1.6em 0 0.6em;
}
.entry-content h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.entry-content h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.entry-content p { margin-bottom: 1.2em; }
.entry-content a { color: var(--accent); }

/* ── SHOP GRID (archive) ── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0;
  border-top: 1px solid #141414;
}

.shop-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid #141414;
  border-bottom: 1px solid #141414;
  position: relative;
  background: #0a0a0a;
  transition: background 0.3s;
}
.shop-card:hover { background: #0f0f0f; }
.shop-card.is-oos { opacity: 0.45; }

.shop-card-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0f0f0f;
}
.shop-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.78;
  transition: opacity 0.4s, transform 0.6s ease;
}
.shop-card:hover .shop-card-img img {
  opacity: 0.95;
  transform: scale(1.03);
}
.shop-card-img .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2a2a2a;
}
.shop-card-img .placeholder svg { width: 56px; height: 56px; }

.shop-card-flag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  padding: 0.3rem 0.6rem;
  background: rgba(8,8,8,0.85);
  border: 1px solid var(--accent);
  color: var(--accent);
}

.shop-card-meta {
  padding: 1.4rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid #141414;
}

.shop-card-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--dim);
}

.shop-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--text);
  transition: color 0.2s;
}
.shop-card:hover .shop-card-title { color: var(--accent); }

.shop-card-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 0.4rem;
  gap: 1rem;
}
.shop-card-sku {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: #555;
}
.shop-card-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

.shop-empty {
  grid-column: 1 / -1;
  padding: 6rem 2.5rem;
  text-align: center;
  color: var(--dim);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ── SINGLE PRODUCT ── */
.product-page {
  margin-top: var(--header-h);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: calc(100vh - var(--header-h));
  border-bottom: 1px solid #141414;
}
.product-media {
  position: relative;
  background: #0a0a0a;
  overflow: hidden;
  border-right: 1px solid #141414;
  min-height: 60vh;
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
}
.product-media .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #1c1c1c;
}
.product-media .placeholder svg { width: 96px; height: 96px; }

.product-info {
  padding: 3rem 3rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  max-width: 640px;
}

.product-eyebrow {
  display: flex;
  gap: 1.4rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
}

.product-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  letter-spacing: 0.05em;
  line-height: 0.95;
  color: var(--text);
}

.product-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.product-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: #b0b0b0;
}
.product-desc p { margin-bottom: 1em; }
.product-desc p:last-child { margin-bottom: 0; }

.product-stock {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}

/* ── ORDER FORM ── */
.order-form {
  margin-top: 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid #1a1a1a;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.order-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.order-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.order-field > span {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}
.order-field > span em { font-style: normal; color: #444; text-transform: none; letter-spacing: 0.05em; }

.order-field input[type=text],
.order-field input[type=email],
.order-field input[type=number],
.order-field textarea {
  width: 100%;
  background: #050505;
  border: 1px solid #1e1e1e;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  resize: vertical;
  transition: border-color 0.2s;
}
.order-field input:focus,
.order-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.order-field.has-error input,
.order-field.has-error textarea {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255,26,26,0.2);
}

.order-form-bottom {
  grid-template-columns: 90px 1fr;
  align-items: end;
  margin-top: 0.4rem;
}
.order-field-qty input { text-align: center; }

.order-submit {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.95rem 1.2rem;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.order-submit:hover { background: var(--accent); color: #fff; }

.order-fineprint {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: #555;
  text-transform: uppercase;
  line-height: 1.6;
  margin-top: 0.4rem;
}

.order-error {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.8rem 1rem;
  background: rgba(255,26,26,0.05);
}

/* ── THANK YOU / SOLD OUT ── */
.order-thanks, .order-oos {
  margin-top: 1rem;
  padding: 2rem;
  border: 1px solid #1e1e1e;
  background: rgba(20,8,4,0.3);
}
.order-thanks-eyebrow {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.order-thanks h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.order-thanks p, .order-oos p {
  font-size: 1rem;
  line-height: 1.7;
  color: #b0b0b0;
}
.order-thanks-back {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}
.order-thanks-back:hover { color: var(--text); }
.order-oos a { color: var(--accent); text-decoration: none; }

@media (max-width: 900px) {
  .product-page {
    grid-template-columns: 1fr;
  }
  .product-media { border-right: none; border-bottom: 1px solid #141414; min-height: 50vh; }
  .product-info { padding: 2rem 1.5rem 3rem; }
}
@media (max-width: 600px) {
  .order-form-row { grid-template-columns: 1fr; }
  .order-form-bottom { grid-template-columns: 90px 1fr; }
  .shop-card-meta { padding: 1.2rem 1.2rem 1.4rem; }
}
