/* Ratel Apparel — site styles
   Palette comes straight off the logo: black, bone white, and one hit of honey. */

:root {
  --ink: #0a0a0a;
  --coal: #121211;
  --ash: #1c1c1a;
  --line: #2b2b28;
  --bone: #f3f0e9;
  --mute: #96928a;
  --honey: #f2a516;
  --display: "Saira Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --slant: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Fine grain over everything, like the logo's backdrop */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--honey); color: var(--ink); }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--honey); color: var(--ink); padding: 10px 16px; z-index: 200; }
.skip:focus { left: 0; }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.005em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(64px, 12.5vw, 190px); }
h2 { font-size: clamp(44px, 7vw, 104px); }
h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1; }
p { margin: 0 0 1em; max-width: 62ch; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: #d6d2c9; }
.muted { color: var(--mute); }
.honey { color: var(--honey); }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--bone); }
.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 15px;
  color: var(--honey);
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 22px;
}
/* Three claw slashes — the brand's punctuation */
.claws { display: inline-flex; gap: 4px; flex: none; }
.claws i { display: block; width: 5px; height: 20px; background: var(--honey); transform: skewX(-24deg); }
.claws i:nth-child(2) { height: 26px; margin-top: -3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display);
  font-weight: 800; font-style: italic;
  text-transform: uppercase; text-decoration: none;
  letter-spacing: .08em;
  font-size: 19px; line-height: 1;
  padding: 17px 34px;
  border: 0; cursor: pointer;
  background: var(--bone); color: var(--ink);
  clip-path: var(--slant);
  transition: background .18s, color .18s, transform .18s;
}
.btn:hover { background: var(--honey); transform: translateX(4px); }
.btn.honey-btn { background: var(--honey); color: var(--ink); }
.btn.honey-btn:hover { background: var(--bone); }
.btn.ghost { background: var(--ash); color: var(--bone); }
.btn.ghost:hover { background: var(--bone); color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.link-arrow {
  font-family: var(--display); font-weight: 700; font-style: italic;
  text-transform: uppercase; letter-spacing: .14em; font-size: 16px;
  text-decoration: none; border-bottom: 2px solid var(--honey); padding-bottom: 4px;
}
.link-arrow:hover { color: var(--honey); }

/* ---------- Announcement + header ---------- */
.announce {
  background: var(--honey); color: var(--ink);
  font-family: var(--display); font-weight: 700; font-style: italic;
  text-transform: uppercase; letter-spacing: .14em; font-size: 14px;
  text-align: center; padding: 8px var(--gutter);
}
.announce a { text-decoration: underline; text-underline-offset: 3px; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { height: 34px; width: auto; }
.brand .word { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.nav a {
  font-family: var(--display); font-weight: 700; font-style: italic;
  text-transform: uppercase; letter-spacing: .14em; font-size: 17px;
  text-decoration: none; position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--honey); transform: scaleX(0) skewX(-24deg); transform-origin: left;
  transition: transform .2s;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1) skewX(-24deg); }
.menu-btn { display: none; background: none; border: 0; padding: 12px; margin-right: -12px; cursor: pointer; }
.menu-btn span { display: block; width: 26px; height: 3px; background: var(--bone); transform: skewX(-24deg); margin: 5px 0; transition: transform .2s, opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-mark {
  position: absolute; right: -9vw; top: 50%;
  width: min(92vw, 1150px);
  transform: translateY(-56%);
  opacity: .16;
  animation: prowl 1.4s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes prowl { from { transform: translate(-14vw, -56%); opacity: 0; } to { transform: translate(0, -56%); opacity: .16; } }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to top, var(--ink), transparent); pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 120px; padding-bottom: clamp(48px, 8vh, 96px); }
.hero h1 span { display: block; }
.hero h1 .l2 { padding-left: .5em; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: 36px; }
.hero-foot p { margin: 0; max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.rise { animation: rise .9s cubic-bezier(.16, 1, .3, 1) both; }
.rise.d1 { animation-delay: .12s; } .rise.d2 { animation-delay: .24s; } .rise.d3 { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px) skewY(2deg); } to { opacity: 1; transform: none; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--bone); color: var(--ink); overflow: hidden; border-block: 1px solid var(--ink); transform: rotate(-1.2deg) scale(1.02); margin: 10px 0 0; }
.marquee-track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.marquee span {
  font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: clamp(22px, 3vw, 34px); padding: 12px 0; white-space: nowrap;
}
.marquee span::after { content: "///"; color: var(--honey); margin: 0 28px; letter-spacing: -.1em; -webkit-text-stroke: 1px var(--ink); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: clamp(72px, 11vw, 150px) 0; position: relative; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 64px); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.band { background: var(--coal); border-block: 1px solid var(--line); }
.page-hero { padding: clamp(72px, 10vw, 130px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(60px, 10vw, 150px); }
.page-hero .ghost-mark { position: absolute; right: -6vw; top: 50%; transform: translateY(-50%); width: min(60vw, 640px); opacity: .08; pointer-events: none; }

/* Field notes (stats) */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 72px); }
.stat { padding: 28px 24px 0 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(54px, 7vw, 96px); line-height: .9; color: var(--honey); }
.stat span { display: block; margin-top: 10px; color: var(--mute); font-size: 15px; max-width: 26ch; }

/* The code (principles) */
.code { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.code article { background: var(--ink); padding: clamp(26px, 3.4vw, 48px); position: relative; transition: background .25s; }
.code article:hover { background: var(--ash); }
.code .num { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 80px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--honey); margin-bottom: 44px; }
.code h3 { margin-bottom: 14px; }
.code p { margin: 0; color: #c9c5bc; font-size: 16px; }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 26px); }
.card { text-decoration: none; display: block; }
.card-media { position: relative; aspect-ratio: 4 / 5; background: var(--ash); overflow: hidden; }
.card-media img.photo { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.card:hover img.photo { transform: scale(1.05); }
.ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    repeating-linear-gradient(-24deg, transparent 0 22px, rgba(255, 255, 255, .022) 22px 24px),
    radial-gradient(120% 90% at 30% 10%, #262623, var(--coal));
}
.ph img { width: 62%; opacity: .2; transition: opacity .3s, transform .5s cubic-bezier(.16, 1, .3, 1); }
.card:hover .ph img { opacity: .55; transform: translateX(8px); }
.tag {
  position: absolute; left: 0; top: 14px;
  background: var(--honey); color: var(--ink);
  font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 13px; letter-spacing: .14em; padding: 5px 18px 5px 12px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}
.tag.out { background: var(--bone); }
.card-info { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; }
.card-info h3 { font-size: 24px; }
.card-info .price { font-family: var(--display); font-weight: 700; font-style: italic; font-size: 20px; white-space: nowrap; }
.card-cat { color: var(--mute); font-size: 13px; text-transform: uppercase; letter-spacing: .14em; margin-top: 3px; }
.card:hover h3 { color: var(--honey); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip {
  font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase;
  letter-spacing: .12em; font-size: 16px; line-height: 1;
  background: none; color: var(--bone); border: 1px solid var(--line);
  padding: 11px 20px; cursor: pointer; transition: all .15s;
  min-height: 44px;
}
.chip:hover { border-color: var(--bone); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.empty { border: 1px dashed var(--line); padding: 48px 24px; text-align: center; color: var(--mute); grid-column: 1 / -1; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 80px); padding: clamp(28px, 5vw, 64px) 0 clamp(72px, 10vw, 130px); align-items: start; }
.gallery-main { position: relative; aspect-ratio: 4 / 5; background: var(--ash); overflow: hidden; }
.gallery-main img.photo { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 76px; aspect-ratio: 4 / 5; padding: 0; border: 2px solid transparent; background: var(--ash); cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--honey); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { position: sticky; top: 104px; }
.pdp-info h1 { font-size: clamp(48px, 5.6vw, 84px); margin-bottom: 14px; }
.pdp-price { font-family: var(--display); font-weight: 700; font-style: italic; font-size: 32px; margin-bottom: 22px; }
.crumbs { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--mute); margin-bottom: 20px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--honey); }
.opt-label { font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .16em; font-size: 15px; color: var(--mute); margin: 26px 0 10px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts .chip { min-width: 56px; text-align: center; }
.pdp-cta { margin-top: 30px; display: grid; gap: 12px; }
.pdp-cta .btn { width: 100%; padding-block: 21px; font-size: 22px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
.pdp-info details:first-of-type { margin-top: 34px; }
summary {
  list-style: none; cursor: pointer; padding: 18px 0;
  font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .12em; font-size: 19px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--honey); font-size: 26px; font-style: normal; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details .body { padding: 0 0 20px; color: #c9c5bc; font-size: 16px; }
details .body ul { margin: 0; padding-left: 1.1em; }
details .body p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.signup { background: var(--honey); color: var(--ink); overflow: hidden; }
.signup .eyebrow { color: var(--ink); } .signup .claws i { background: var(--ink); }
.signup h2 { font-size: clamp(56px, 10vw, 150px); }
.signup p { color: #2a2206; }
.signup .ghost-mark { position: absolute; right: -4vw; bottom: -12%; width: min(56vw, 700px); opacity: .1; filter: invert(1); pointer-events: none; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 620px; margin-top: 30px; position: relative; z-index: 1; }
.inline-form input { flex: 1 1 240px; }
input, textarea, select {
  font: inherit; color: var(--bone);
  background: var(--coal); border: 1px solid var(--line);
  padding: 16px 18px; width: 100%; border-radius: 0;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--honey); outline-offset: 0; border-color: var(--honey); }
.signup input { background: var(--ink); border-color: var(--ink); }
.signup input:focus { outline-color: var(--ink); outline-offset: 3px; }
.signup .btn { background: var(--ink); color: var(--bone); }
.signup .btn:hover { background: var(--bone); color: var(--ink); }
label { display: block; font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .16em; font-size: 15px; color: var(--mute); margin-bottom: 8px; }
.field { margin-bottom: 20px; }
.form-msg { margin-top: 14px; font-weight: 600; min-height: 1.6em; flex-basis: 100%; }
.hp { position: absolute; left: -9999px; }

/* ---------- Story page ---------- */
.prose p { font-size: 19px; color: #d6d2c9; }
.prose h2 { font-size: clamp(38px, 5vw, 68px); margin: 0 0 24px; }
.pull {
  font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: clamp(34px, 5.2vw, 76px); line-height: .95; max-width: 18ch;
  border-left: 6px solid var(--honey); padding-left: clamp(18px, 3vw, 36px);
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { border-top: 1px solid var(--line); padding: 20px 0; }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list a { font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(26px, 3vw, 36px); text-transform: uppercase; text-decoration: none; }
.contact-list a:hover { color: var(--honey); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 90px) 0 28px; background: var(--ink); }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.foot-logo { width: 190px; margin-bottom: 18px; }
.site-footer h4 { font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; font-size: 15px; color: var(--honey); margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer li a { text-decoration: none; color: #c9c5bc; display: inline-block; padding: 5px 0; }
.site-footer li a:hover { color: var(--honey); }
.foot-word { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(90px, 23vw, 380px); line-height: .78; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px #3d3d39; margin: clamp(36px, 6vw, 72px) 0 18px; white-space: nowrap; user-select: none; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--mute); font-size: 13px; border-top: 1px solid var(--line); padding-top: 22px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .split, .pdp { grid-template-columns: 1fr; }
  .pdp-info { position: static; }
  .code { grid-template-columns: 1fr; }
  .code .num { margin-bottom: 20px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 72px 0 0 0; background: var(--ink);
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0;
    padding: 24px var(--gutter); transform: translateX(100%); transition: transform .3s cubic-bezier(.16, 1, .3, 1);
    height: calc(100dvh - 72px); visibility: hidden;
  }
  .menu-open .nav { transform: none; visibility: visible; }
  .nav a { font-size: 52px; font-weight: 800; letter-spacing: 0; line-height: 1.15; }
  .brand .word { height: 24px; } .brand .mark { height: 28px; }
  .hero { min-height: 82vh; }
  .hero-mark { width: 150vw; right: -52vw; top: 34%; }
  .hero h1 .l2 { padding-left: 0; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 0; }
  .card-info { flex-direction: column; gap: 2px; }
  .card-info h3 { font-size: 21px; }
  .cta-row .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
