/* Shookhy. Bump ?v= in index.html and 404.html after visual edits. */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/InterVariable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #100e0d;
  --surface: #1b1715;
  --raised: #25201c;
  --text: #f7f1ea;
  --muted: #c9b8a8;
  --faint: rgba(247, 241, 234, 0.42);
  --line: rgba(247, 241, 234, 0.1);
  --accent: #ff6a3d;
  --accent-hover: #ff8a63;
  --accent-ink: #1a0e0a;
  --gold: #f3d2b0;
  --icon-light: #f4efe8;
  --radius: 24px;
  --max: 72rem;
  --header-h: 64px;
  --tap: 48px;
  --font-sans: Inter, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-display: Fraunces, "Times New Roman", serif;
}

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

html {
  color-scheme: dark;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: "cv11", "ss01";
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  color: var(--text);
}

body.nav-open { overflow: hidden; }

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--accent-hover); }

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

::selection { background: var(--accent); color: #fff; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--raised);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus { top: 12px; }

.page { position: relative; z-index: 10; background: transparent; }

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

.js-required {
  width: min(100% - 48px, 640px);
  margin: 96px auto;
  color: var(--muted);
}

/* Reveals — same timing as By Jahangiri, ported here. */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Header */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(16, 14, 13, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  min-height: var(--tap);
}
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav-desktop a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-desktop a:hover { color: var(--text); background: rgba(247, 241, 234, 0.06); }

.nav-toggle {
  width: var(--tap);
  height: var(--tap);
  margin-right: -8px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.nav-sheet[hidden],
.nav-backdrop[hidden] { display: none !important; }

.nav-sheet {
  position: fixed;
  z-index: 50;
  top: calc(var(--header-h) + 8px);
  right: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
.nav-sheet a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
}
.nav-sheet a:hover { background: rgba(247, 241, 234, 0.06); }

@media (min-width: 720px) {
  .nav-desktop { display: flex; }
  .nav-toggle,
  .nav-backdrop,
  .nav-sheet { display: none !important; }
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 72vh;
  padding: 8rem 0 5rem;
  overflow: hidden;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 10vw, 8rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144;
}

.hero-accent {
  display: block;
  color: var(--gold);
}

.hero .lead {
  margin: 2rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.1vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.hero-rule {
  margin-top: 2.5rem;
  width: 6rem;
  height: 1px;
  background: var(--accent);
}

.hero .reveal:nth-child(1) { transition-delay: 0ms; }
.hero .reveal:nth-child(2) { transition-delay: 90ms; }
.hero .reveal:nth-child(3) { transition-delay: 160ms; }

@media (min-width: 640px) {
  .hero {
    min-height: 86vh;
    padding: 9rem 0 7rem;
  }
}

/* Product icon marquee — never apply .reveal / opacity to this strip. */
.ic-marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 1.25rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ic-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 2.5rem;
  animation: ic-scroll 50s linear infinite;
  animation-delay: -25s;
}

.ic-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.ic-item:hover { color: var(--text); }

.ic-item .product-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
}
.ic-item .product-icon img {
  width: 48px;
  height: 48px;
}
.ic-item .product-icon-light img {
  width: 34px;
  height: 34px;
}

@keyframes ic-scroll {
  to { transform: translateX(-50%); }
}

/* Sections */

.section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--line);
}

.section-grid {
  display: grid;
  gap: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}

.kicker {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-intro,
.about-text {
  margin: 0;
  max-width: 40rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
}

@media (min-width: 800px) {
  .section { padding: 7.5rem 0; }
  .section-grid {
    grid-template-columns: minmax(10rem, 3fr) 9fr;
    align-items: start;
    margin-bottom: 2.75rem;
  }
  .products .section-grid { margin-bottom: 2.25rem; }
}

/* Products */

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.product-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.product-card:hover {
  border-color: rgba(247, 241, 234, 0.22);
  background: #1f1b18;
}

.product-icon {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--icon-light);
}
.product-icon img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}
.product-icon-dark { background: #0b0d12; }
.product-icon-own { background: transparent; }
.product-icon-fill { background: var(--icon-light); }
.product-icon-fill img { width: 72px; height: 72px; object-fit: cover; }
.product-icon-light {
  background: var(--icon-light);
  display: grid;
  place-items: center;
}
.product-icon-light img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.product-body { min-width: 0; flex: 1; }

.product-card h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.product-status {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px !important;
}

.product-link {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}
.product-link:hover { text-decoration: underline; color: var(--accent-hover); }

.product-link-secondary {
  color: var(--muted);
  font-weight: 500;
}
.product-link-secondary:hover { color: var(--text); }

@media (min-width: 800px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Contact */

.email {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s ease;
}
.email:hover { color: var(--accent-hover); }

.email-note {
  margin-top: 12px !important;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 36rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-bar p { margin: 0; }

/* Error page */

.page-error {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 24px 7rem;
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.page-error h1 {
  margin: 1rem 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.page-error p {
  margin: 0;
  color: var(--muted);
  max-width: 28rem;
  font-size: 1.1rem;
}

.text-back {
  display: inline-block;
  margin-top: 2rem;
  color: var(--text);
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(247, 241, 234, 0.2);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.text-back:hover {
  color: var(--text);
  text-decoration-color: var(--accent);
}

/* Playful confetti background (canvas). */

.site-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: #100e0d;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.site-bg canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero::before {
  content: "";
  position: absolute;
  left: -10%;
  right: 15%;
  top: 18%;
  bottom: 0;
  background: radial-gradient(ellipse 70% 58% at 28% 68%, rgba(16, 14, 13, 0.62), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ic-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .ic-track {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 1rem;
    animation: none;
    animation-delay: 0s;
  }
  .ic-track [data-dup] { display: none; }
  *,
  *::before,
  *::after {
    animation: none !important;
  }
}
