@layer reset, base, layout, components, motion;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  img { display: block; max-width: 100%; height: auto; }
  button, input, select, textarea { font: inherit; color: inherit; }
  ul, ol { padding: 0; list-style: none; }
  html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
}

@layer base {
  :root {
    --bg: #0e0e0d; --bg2: #151514; --panel: #1b1b19; --line: #2f2e2a;
    --text: #ece8df; --muted: #a9a496; --sand: #d8c8a2; --red: #d1262e; --red-d: #a91d24;
    --f-head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
    --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
    --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
    --step-h2: clamp(1.9rem, 1.2rem + 3vw, 3.4rem);
    --gutter: clamp(1.1rem, 4vw, 2.5rem);
    color-scheme: dark;
  }
  body { background: var(--bg); color: var(--text); font: 400 var(--step-0)/1.65 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
  h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.04; letter-spacing: 0.01em; text-wrap: balance; text-transform: uppercase; }
  h2 { font-size: var(--step-h2); margin-bottom: 1.1rem; }
  p { text-wrap: pretty; }
  p + p { margin-top: 1em; }
  a { color: inherit; text-decoration-color: var(--red); text-underline-offset: 3px; }
  :focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; border-radius: 2px; }
  .wrap { width: min(100% - 2 * var(--gutter), 76rem); margin-inline: auto; }
  .ico { width: 1.15em; height: 1.15em; flex: none; }
  .sprite { position: absolute; }
  .muted { color: var(--muted); }
  .small { font-size: 0.875rem; }
  .skip { position: absolute; left: 1rem; top: -4rem; background: var(--sand); color: #000; padding: .6rem 1rem; z-index: 100; transition: top .2s; }
  .skip:focus { top: 1rem; }
}

@layer layout {
  .preview-bar { background: var(--sand); color: #1a1710; text-align: center; font-size: .8rem; font-weight: 600; padding: .35rem 1rem; }
  .topbar { background: var(--bg2); border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
  .topbar__in { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: .5rem; }
  .topbar p { display: flex; align-items: center; gap: .5rem; margin: 0; }
  .topbar__links { gap: 1.4rem; flex-wrap: wrap; }
  .topbar a { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
  .topbar a:hover { color: var(--text); }
  .open-state .ico { color: var(--red); }
  .open-state.is-open .ico { color: #6fcf8b; }

  .site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .header__in { display: flex; align-items: center; gap: 1.5rem; padding-block: .6rem; }
  .brand img { width: 92px; height: auto; }
  .nav { display: flex; gap: clamp(.8rem, 2vw, 2rem); margin-inline: auto; font-family: var(--f-head); font-size: 1.15rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
  .nav a { text-decoration: none; padding-block: .4rem; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
  .nav a:hover { border-color: var(--red); }
  .menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; width: 2.8rem; height: 2.8rem; place-items: center; cursor: pointer; }
  .menu-btn .ico { width: 1.5rem; height: 1.5rem; }
  @media (max-width: 900px) {
    .nav, .header__cta { display: none; }
    .menu-btn { display: grid; margin-left: auto; }
  }

  .hero { position: relative; isolation: isolate; min-height: min(88svh, 52rem); display: grid; align-items: end; overflow: clip; }
  .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 55%; z-index: -2; }
  .hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(14 14 13 / .55) 0%, rgb(14 14 13 / .35) 30%, rgb(14 14 13 / .92) 100%), linear-gradient(90deg, rgb(14 14 13 / .75), transparent 70%); }
  .hero__in { padding-block: clamp(4rem, 12vh, 8rem) 2rem; }
  .hero h1 { font-size: clamp(2.3rem, 1rem + 5.4vw, 5.2rem); max-width: 22ch; margin-bottom: 1.2rem; }
  .lede { max-width: 56ch; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: #dcd7ca; }
  .hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
  .hero__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-block: 1.5rem 2rem; }
  .hero__stats div { background: color-mix(in oklab, var(--bg) 90%, transparent); padding: 1rem 1.2rem; backdrop-filter: blur(8px); }
  .hero__stats dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .hero__stats dd { font-family: var(--f-head); font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); font-weight: 700; text-transform: uppercase; }

  .section { padding-block: clamp(3.5rem, 9vw, 7rem); content-visibility: auto; contain-intrinsic-size: auto 800px; }
  .section--alt { background: var(--bg2); border-block: 1px solid var(--line); }
  .section__head { max-width: 52rem; margin-bottom: 2.5rem; }
  .split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }
  @media (min-width: 900px) { .split--flip > :first-child { position: sticky; top: 6.5rem; } }
  .eyebrow { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .18em; font-weight: 600; color: var(--sand); font-size: 1rem; margin-bottom: .9rem; display: flex; align-items: center; gap: .8rem; }
  .eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--red); }
  .small-h { font-size: 1.35rem; color: var(--sand); margin: 1.6rem 0 .7rem; }
  .small-h:first-child { margin-top: 0; }
}

@layer components {
  .btn { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.5rem; border: 2px solid transparent; border-radius: 4px; font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s; }
  .btn--red { background: var(--red); color: #fff; }
  .btn--red:hover { background: var(--red-d); }
  .btn--ghost { border-color: var(--sand); color: var(--sand); background: transparent; }
  .btn--ghost:hover { background: var(--sand); color: #111; }
  .btn:active { transform: translateY(1px); }
  @media (max-width: 900px) { .header__cta { display: none; } }
  .link-arrow { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.2rem; font-family: var(--f-head); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sand); text-decoration: none; }
  .link-arrow .ico { transition: translate .2s; }
  .link-arrow:hover .ico { translate: 4px 0; }

  .chips { display: flex; flex-wrap: wrap; gap: .6rem; }
  .chips li { border: 1px solid var(--line); background: var(--panel); padding: .55rem .95rem; border-radius: 999px; font-size: .95rem; transition: border-color .2s, transform .2s; }
  .chips li:hover { border-color: var(--red); transform: translateY(-2px); }
  .ticks { display: grid; gap: .6rem; }
  .ticks li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; }
  .ticks .ico { color: var(--red); margin-top: .3em; }
  .ticks + p { margin-top: 1.2rem; }

  .band__fig { position: relative; margin: 0; }
  .band__fig img { width: 100%; height: clamp(18rem, 48vw, 36rem); object-fit: cover; }
  .band__fig figcaption { position: absolute; inset: auto 0 0 0; padding: 3rem var(--gutter) 1.2rem; background: linear-gradient(transparent, rgb(14 14 13 / .9)); font-family: var(--f-head); font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); text-transform: uppercase; letter-spacing: .06em; max-width: none; width: 100%; margin: 0; }

  .media-card { position: relative; }
  .media-card > img:first-child { width: 100%; border-radius: 6px; border: 1px solid var(--line); aspect-ratio: 4/5; object-fit: cover; object-position: 45% 50%; }
  .media-card__badge { position: absolute; right: 1rem; bottom: 1rem; width: 7.5rem; height: auto; background: rgb(255 255 255 / .96); padding: .4rem .6rem; border-radius: 6px; }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-block: 1.6rem; counter-reset: s; }
  .steps li { border: 1px solid var(--line); background: var(--panel); padding: .8rem; font-family: var(--f-head); text-transform: uppercase; font-size: 1.05rem; line-height: 1.15; letter-spacing: .04em; }
  .steps span { display: block; color: var(--red); font-size: 1.9rem; font-weight: 800; }

  .cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
  @media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
  .card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1.6rem; display: grid; align-content: start; gap: .7rem; transition: border-color .25s, translate .25s; }
  .card:hover { border-color: var(--red); translate: 0 -3px; }
  .card h3 { font-size: 1.7rem; }
  .card__ico { width: 2rem; height: 2rem; color: var(--red); }
  .card--media { padding: 0; overflow: clip; grid-template-rows: auto 1fr; }
  .card--media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
  .card--media div { padding: 1.4rem 1.6rem 1.6rem; }
  .card--wide { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); align-items: center; gap: 1.5rem; background: linear-gradient(120deg, var(--panel), #221d16); }
  .card__cut { max-height: 18rem; width: 100%; object-fit: contain; }
  .callout { margin-top: 1rem; border-left: 4px solid var(--red); background: var(--panel); padding: 1.4rem 1.6rem; }
  .callout h3 { font-size: 1.5rem; margin-bottom: .4rem; }
  .wholesale { margin-top: 1.5rem; color: var(--muted); }

  .timeline { border-left: 2px solid var(--line); margin-left: .4rem; display: grid; gap: 1.1rem; }
  .timeline li { position: relative; padding-left: 1.5rem; display: grid; }
  .timeline li::before { content: ""; position: absolute; left: -.46rem; top: .55rem; width: .8rem; height: .8rem; background: var(--red); border-radius: 50%; }
  .timeline b { font-family: var(--f-head); font-size: 1.8rem; color: var(--sand); line-height: 1; }

  .history { margin-top: 3rem; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); interpolate-size: allow-keywords; }
  .history summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.5rem; cursor: pointer; list-style: none; font-family: var(--f-head); font-size: 1.5rem; text-transform: uppercase; letter-spacing: .04em; }
  .history summary::-webkit-details-marker { display: none; }
  .history summary .ico { transition: rotate .25s; }
  .history[open] summary .ico { rotate: 90deg; }
  .history::details-content { block-size: 0; overflow: clip; transition: block-size .35s ease, content-visibility .35s allow-discrete; }
  .history[open]::details-content { block-size: auto; }
  .history__body { padding: 0 1.5rem 1.6rem; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
  .history__body img { border-radius: 6px; width: 100%; position: sticky; top: 6rem; }
  .history h4 { font-size: 1.3rem; color: var(--sand); margin: 1.4rem 0 .4rem; }

  .quotes { display: grid; gap: 1rem; grid-template-columns: 1fr; }
  @media (min-width: 720px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
  .quote { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1.6rem; display: grid; gap: 1rem; align-content: start; }
  .stars { display: flex; gap: .15rem; color: var(--red); }
  .quote blockquote { font-size: 1.05rem; }
  .quote figcaption { font-family: var(--f-head); font-size: 1.25rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sand); }

  .posts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); }
  .posts li { background: var(--bg2); padding: 1.3rem 1.4rem; display: grid; gap: .4rem; align-content: start; transition: background-color .2s; }
  .posts li:hover { background: var(--panel); }
  .posts[hidden], .posts li[hidden] { display: none; }
  .posts time { font-family: var(--f-head); color: var(--red); font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
  .posts h3 { font-size: 1.35rem; text-transform: none; letter-spacing: 0; line-height: 1.12; }
  .posts p { font-size: .95rem; color: var(--muted); margin: 0; }
  .more-btn { margin-top: 1.5rem; }

  .contact { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); align-items: start; }
  .branches { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
  .branches article { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1.3rem; }
  .branches h3 { font-size: 1.35rem; display: flex; gap: .5rem; align-items: center; margin-bottom: .6rem; color: var(--sand); }
  .branches .ico { color: var(--red); }
  .hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
  .hours th { text-align: left; font-weight: 500; color: var(--muted); padding: .25rem 0; }
  .hours td { text-align: right; padding: .25rem 0; }

  .form { display: grid; gap: 1rem; }
  .form h3 { font-size: 1.8rem; }
  .row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
  .field { display: grid; gap: .35rem; }
  .field label { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  input, select, textarea { width: 100%; background: var(--bg); border: 1px solid #4a4840; border-radius: 4px; padding: .75rem .9rem; min-height: 2.9rem; transition: border-color .2s, box-shadow .2s; }
  textarea { resize: vertical; }
  input:focus, select:focus, textarea:focus { border-color: var(--sand); outline: none; box-shadow: 0 0 0 3px rgb(216 200 162 / .25); }
  input:user-invalid, textarea:user-invalid, select:user-invalid { border-color: var(--red); }
  select, ::picker(select) { appearance: base-select; }
  select { cursor: pointer; }
  select::picker-icon { color: var(--sand); }
  ::picker(select) { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: .3rem; }
  option { padding: .5rem .7rem; }
  option:hover, option:checked { background: var(--red); color: #fff; }
  .form .btn { justify-self: start; }

  .footer { background: #090908; border-top: 1px solid var(--line); padding-block: 3rem; }
  .footer__in { display: grid; gap: 1rem; justify-items: start; }
  .footer img { width: 120px; height: auto; }
  .footer p { max-width: 50ch; margin: 0; color: var(--muted); }
  .footer__links { display: flex; gap: 1.4rem; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .08em; font-size: 1.1rem; }
  .footer__links a { color: var(--text); }

  .mnav { inset: 0 0 0 auto; margin: 0; height: 100dvh; width: min(22rem, 90vw); background: var(--bg2); color: var(--text); border: 0; border-left: 1px solid var(--line); padding: 1.2rem 1.5rem; display: none; flex-direction: column; gap: 1.5rem; translate: 100% 0; transition: translate .3s ease, display .3s allow-discrete, overlay .3s allow-discrete; }
  .mnav:popover-open { display: flex; translate: 0 0; }
  @starting-style { .mnav:popover-open { translate: 100% 0; } }
  .mnav::backdrop { background: rgb(0 0 0 / .6); }
  .mnav__close { align-self: flex-end; background: none; border: 1px solid var(--line); border-radius: 6px; width: 2.8rem; height: 2.8rem; display: grid; place-items: center; cursor: pointer; }
  .mnav nav { display: grid; }
  .mnav nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--f-head); font-size: 1.7rem; text-transform: uppercase; letter-spacing: .04em; }

  .dialog { margin: auto; width: min(36rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 0; overflow: auto; opacity: 0; translate: 0 1.5rem; transition: opacity .25s, translate .25s, overlay .25s allow-discrete, display .25s allow-discrete; }
  .dialog[open] { opacity: 1; translate: 0 0; }
  @starting-style { .dialog[open] { opacity: 0; translate: 0 1.5rem; } }
  .dialog::backdrop { background: rgb(0 0 0 / 0); backdrop-filter: blur(0); transition: background-color .25s, backdrop-filter .25s, overlay .25s allow-discrete, display .25s allow-discrete; }
  .dialog[open]::backdrop { background: rgb(0 0 0 / .72); backdrop-filter: blur(4px); }
  @starting-style { .dialog[open]::backdrop { background: rgb(0 0 0 / 0); backdrop-filter: blur(0); } }
  .dialog__head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 1; }
  .dialog__head h2 { font-size: 1.9rem; margin: 0; }
  .icon-btn { background: none; border: 1px solid var(--line); border-radius: 6px; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; cursor: pointer; }
  .icon-btn:hover { border-color: var(--red); }
  .dialog .form { padding: 1.4rem 1.5rem 1.6rem; }
  .dialog__done { padding: 2rem 1.5rem; display: flex; gap: .7rem; align-items: center; }
  .dialog__done .ico { color: #6fcf8b; width: 1.6rem; height: 1.6rem; }
}

@layer motion {
  .hero__img { animation: hero-drift linear both; animation-timeline: scroll(root); animation-range: 0 90svh; }
  @keyframes hero-drift { to { translate: 0 8%; scale: 1.08; } }

  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    @keyframes reveal { from { opacity: 0; translate: 0 2rem; } to { opacity: 1; translate: 0 0; } }
    .site-header { animation: header-solid linear both; animation-timeline: scroll(root); animation-range: 0 200px; }
    @keyframes header-solid { to { background: var(--bg); } }
  }
  .hero__in > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero__in > :nth-child(2) { animation-delay: .08s; }
  .hero__in > :nth-child(3) { animation-delay: .16s; }
  .hero__in > :nth-child(4) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; translate: 0 1.5rem; } }

  @media (prefers-reduced-motion: reduce) {
    .hero__img, .reveal, .site-header, .hero__in > * { animation: none; }
    * { transition-duration: .01ms !important; }
  }
}
