/* =========================================================
   Lytle Custom Apparel — Prototype Styles
   Tweakable tokens live in :root and are mutated at runtime.
   ========================================================= */

:root {
  --red:        #CF1A27;
  --red-deep:   #D81E1E;
  --ink:        #15171A;
  --ink-2:      #22262B;
  --line:       #E6E7EA;
  --paper:      #FFFFFF;
  --paper-2:    #F4F5F7;
  --muted:      #6B7079;
  --muted-2:    #9AA0A8;

  --display: 'Oswald', 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --pad-section: 64px;          /* density: comfortable */
  --pad-card:    28px;
  --maxw: 1200px;
  --header-h: 84px;
  --header-h-compact: 64px;

  --t-fast: 160ms cubic-bezier(.2,.7,.2,1);
  --t-med:  280ms cubic-bezier(.2,.7,.2,1);
  --t-slow: 520ms cubic-bezier(.2,.7,.2,1);
}

#home, #services, #display, #about, #contact {
  scroll-margin-top: 70px;
}

[data-density="tight"] {
  --pad-section: 64px;
  --pad-card: 20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ----- Layout ----- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: var(--pad-section) 0; }

/* ----- Type ----- */
.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  width: 28px; height: 1px; background: var(--red);
}

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .005em;
  line-height: 1.02;
  text-transform: uppercase;
  margin: 0;
}
h1 { font-size: clamp(40px, 5.4vw, 76px); letter-spacing: 0; }
h2 { font-size: clamp(34px, 4vw, 56px); }
h3 { font-size: clamp(20px, 1.6vw, 24px); }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { margin-top: 14px; }

.lead { font-size: 17px; color: var(--muted); max-width: 640px; margin: 14px auto 0; line-height: 1.5; }

/* ----- Buttons ----- */
.btn {
  --bg: var(--red);
  --fg: #fff;
  --bd: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--bg);
  color: var(--fg);
  border: 2px solid var(--bd);
  font-family: var(--body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(255,46,46,.5); }
.btn:active { transform: translateY(0); }
.btn.ghost { --bg: transparent; --fg: #fff; --bd: #fff; }
.btn.ghost:hover { --bg: #fff; --fg: var(--ink); }
.btn.dark  { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn.outline-red { --bg: transparent; --fg: var(--red); --bd: var(--red); }
.btn.outline-red:hover { --bg: var(--red); --fg: #fff; }
.btn.sm { padding: 10px 18px; font-size: 11.5px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--red);
  transition: gap var(--t-fast);
}
.link-arrow:hover { gap: 14px; }
.link-arrow svg { width: 12px; height: 12px; }

/* ----- Header ----- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
  z-index: 50;
  transition: height var(--t-med), box-shadow var(--t-med);
}
.site-header.compact { height: var(--header-h-compact); box-shadow: 0 6px 24px -16px rgba(0,0,0,.18); }
.site-header .wrap {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 2px;
  line-height: 1;
}
.brand .mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: .04em;
  color: var(--ink);
}
.brand-logo {
  display: block;
  height: 56px;
  width: auto;
  object-fit: contain;
}
.site-header.compact .brand-logo { height: 44px; }
.brand-logo-footer { height: 64px; margin-bottom: 4px; }
.brand .sub {
  font-family: var(--body);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: .28em;
  color: var(--muted);
}

.nav {
  display: flex; gap: 24px; justify-content: center; align-items: center;
}
.nav a {
  position: relative;
  font-weight: 700; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  padding: 8px 0;
  transition: color var(--t-fast);
}
.nav a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med);
}
.nav a:hover { color: var(--red); }
.nav a.active { color: var(--red); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

/* Header on dark sections */
.site-header.on-dark { background: var(--ink); border-bottom-color: rgba(255,255,255,.06); }
.site-header.on-dark .brand .mark { color: #fff; }
.site-header.on-dark .brand .sub { color: var(--muted-2); }
.site-header.on-dark .nav a { color: #fff; }
.site-header.on-dark .nav a:hover { color: var(--red); }
.site-header.on-dark .nav a.active { color: var(--red); }

/* ----- Header actions (button + hamburger) ----- */
.header-actions { display: flex; align-items: center; gap: 12px; }

/* Hamburger — hidden on desktop */
.hamburger {
  display: none;
  width: 44px; height: 44px;
  padding: 0; background: none; border: none; cursor: pointer;
  align-items: center; justify-content: center;
}
.hamburger-icon {
  display: flex; flex-direction: column; gap: 5px;
  width: 22px;
}
.hamburger-icon span {
  display: block; height: 2px; background: var(--ink);
  border-radius: 1px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.hamburger-icon.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-icon.open span:nth-child(2) { opacity: 0; }
.hamburger-icon.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu — hidden by default */
.mobile-menu {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 32px -16px rgba(0,0,0,.15);
  padding: 16px 32px 24px;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu nav {
  display: flex; flex-direction: column; gap: 0;
}
.mobile-menu nav a {
  display: block;
  padding: 14px 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color var(--t-fast);
}
.mobile-menu nav a:hover, .mobile-menu nav a.active { color: var(--red); }

@media (max-width: 880px) {
  .hamburger { display: flex; }
  .mobile-menu.open { display: block; }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 640px;
  margin-top: var(--header-h);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero .bg {
  position: absolute; inset: 0;
  background: #15171a;
  z-index: -1;
}
.hero .bg .slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 15%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero .bg .slide.active { opacity: 1; }
.hero .bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.5) 45%, rgba(0,0,0,.15) 100%);
  pointer-events: none;
}
.hero::after {
  /* solid red line at the bottom */
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 6px;
  background: var(--red);
  pointer-events: none;
}
.hero .wrap {
  min-height: 640px;
  display: flex; align-items: center;
  padding-top: var(--pad-section); padding-bottom: var(--pad-section);
}
.hero-copy { max-width: 560px; }
.hero-copy h1 { line-height: .98; }
.hero-copy h1 .red { color: var(--red); }
.hero-copy h1 .stroke { color: #fff; position: relative; }
.hero-copy h1 .stroke::after {
  content: '';
  display: inline-block;
  width: 56px; height: 4px; background: #fff;
  vertical-align: middle;
  margin-left: 14px;
  transform: translateY(-12px);
}
.hero-copy p { color: #d9dbe0; font-size: 16px; max-width: 440px; margin: 22px 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero variants */
[data-hero="split"] .hero { min-height: 560px; }
[data-hero="split"] .hero .bg { background: var(--ink); }
[data-hero="split"] .hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
[data-hero="split"] .hero-image-slot {
  height: 460px;
  background: var(--hero-img, linear-gradient(135deg, #2a2d33, #15171a));
  background-size: cover; background-position: center;
  border: 1px solid rgba(255,255,255,.08);
}

[data-hero="minimal"] .hero { min-height: 520px; background: #fff; color: var(--ink); }
[data-hero="minimal"] .hero .bg { background: #fff; }
[data-hero="minimal"] .hero::after { display: none; }
[data-hero="minimal"] .hero-copy h1 .stroke { color: var(--ink); }
[data-hero="minimal"] .hero-copy h1 .stroke::after { background: var(--ink); }
[data-hero="minimal"] .hero-copy p { color: var(--muted); }
[data-hero="minimal"] .btn.ghost { --fg: var(--ink); --bd: var(--ink); }
[data-hero="minimal"] .btn.ghost:hover { --bg: var(--ink); --fg: #fff; }

/* ----- Image placeholder ----- */
.imgph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, #ECEDEF 0 12px, #E2E4E7 12px 24px);
  display: grid; place-items: center;
  color: var(--muted);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 11px;
  letter-spacing: .04em;
}
.imgph.dark {
  background: repeating-linear-gradient(135deg, #2a2d33 0 12px, #22262b 12px 24px);
  color: var(--muted-2);
}
.imgph .label {
  background: rgba(0,0,0,.5);
  color: #fff;
  padding: 4px 10px;
  border-radius: 2px;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ----- Service cards ----- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.svc-card {
  position: relative;
  height: 220px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  transition: transform var(--t-med), box-shadow var(--t-med);
  border: 2px solid transparent;
}
.svc-card .img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform var(--t-slow), filter var(--t-med);
  filter: brightness(.62);
}
.svc-card:hover .img { transform: scale(1.06); filter: brightness(.7); }
.svc-card.active .img { filter: brightness(.5); }
.svc-card.active { border-color: var(--red); }
.svc-card .body {
  position: absolute; inset: 0;
  padding: var(--pad-card);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.6) 40%, rgba(0,0,0,.85) 100%);
}
.svc-card h3 {
  font-size: 22px;
  letter-spacing: .1em;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.svc-card p {
  font-size: 15px;
  color: #fff;
  margin: 0 0 14px;
  max-width: 340px;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  font-weight: 500;
}

/* arrow indicator under active card */
.svc-arrow {
  width: 100%;
  position: relative;
  margin-top: 0;
  height: 16px;
  pointer-events: none;
}
.svc-arrow .line {
  position: absolute;
  top: 0;
  height: 4px;
  width: calc((100% - 36px) / 3); /* one card's width, accounting for 18px gap × 2 */
  background: var(--red);
  transition: left var(--t-med) cubic-bezier(.6,.2,.2,1);
}
.svc-arrow .pointer {
  width: 0; height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid var(--red);
  position: absolute;
  top: 4px;
  transition: left var(--t-med) cubic-bezier(.6,.2,.2,1);
}

/* ----- Active service detail panel ----- */
.svc-detail {
  background: var(--paper-2);
  padding: var(--pad-section) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.svc-detail .section-head { margin-bottom: 40px; }
.svc-detail .lead { color: var(--ink-2); }

.svc-features {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 20px;
  text-align: center;
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.feature:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: 0 12px 28px -16px rgba(0,0,0,.15); }
.feature .icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  margin: 0 auto 14px;
  color: var(--red);
}
.feature .icon svg { width: 100%; height: 100%; }
.feature h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.feature p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.4; }

/* "Best for" mini grid */
.bestfor {
  margin-top: 56px;
}
.bestfor .eyebrow { display: flex; justify-content: center; }
.bestfor h3 { text-align: center; margin-top: 8px; font-size: 18px; letter-spacing: .14em; }
.bestfor-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 28px;
}
.bestfor-grid .imgph { height: 130px; }
.bestfor-grid .item { text-align: center; }
.bestfor-grid .item .name {
  font-family: var(--display); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; font-size: 14px; margin-top: 12px;
}

/* Team CTA strip */
.team-strip {
  background: var(--red);
  color: #fff;
  padding: 28px 0;
  background-image: repeating-linear-gradient(135deg, transparent 0 22px, rgba(0,0,0,.05) 22px 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 160px;
  flex-wrap: wrap;
}
.team-strip > div { flex: 1 1 auto; min-width: 0; }
.team-strip h3 { font-size: 22px; letter-spacing: .06em; }
.team-strip p { margin: 4px 0 0; font-size: 14px; color: rgba(255,255,255,.92); max-width: 480px; }
.team-strip .btn.ghost {
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 32px;
  padding-right: 32px;
}

.svc-footer-cta {
  text-align: center; padding: 44px 0 12px;
}
.svc-footer-cta .small {
  display: block; margin-top: 14px; font-size: 11px; color: var(--muted); letter-spacing: .04em;
}

/* ----- Display Products ----- */
.dp { background: #fff; }
.dp > .wrap { max-width: 1040px; }
.dp-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}
.dp-rail {
  border-top: 1px solid var(--line);
}
.dp-rail button {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 8px 12px;
  font-family: var(--body); font-weight: 700;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), padding-left var(--t-fast);
}
.dp-rail button:hover { background: var(--paper-2); padding-left: 16px; }
.dp-rail button.active { background: var(--red); color: #fff; padding-left: 16px; }
.dp-rail button.active:hover { background: var(--red); }
.dp-rail button .chev {
  flex-shrink: 0;
  width: 14px; height: 14px;
  transition: transform var(--t-fast), opacity var(--t-fast);
  opacity: .35;
  color: var(--muted);
}
.dp-rail button:hover .chev { opacity: .6; transform: translateX(2px); }
.dp-rail button.active .chev { display: none; }
/* Active: red right-pointing tab sticking out the right edge */
.dp-rail button.active::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 0;
  width: 0; height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 12px solid var(--red);
}

.dp-panel {
  padding: 4px 0 0;
}
.dp-panel h3 {
  font-size: 26px; letter-spacing: .04em; margin-bottom: 8px;
}
.dp-panel .tag-line { color: var(--muted); margin: 0 0 24px; }
.dp-panel .tag-line strong { color: var(--red); font-weight: 600; }
.dp-images {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-bottom: 22px;
}
.dp-images .imgph { height: 220px; }
.dp-list { list-style: none; margin: 0 0 22px; padding: 0; }
.dp-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-2);
}
.dp-list li::before {
  content: '';
  width: 10px; height: 10px;
  background: var(--red);
  margin-top: 7px; flex: none;
}
.dp-list li strong { color: var(--ink); font-weight: 700; }

/* ----- Design CTA ----- */
.design-cta {
  background: var(--red);
  background-image: repeating-linear-gradient(135deg, transparent 0 38px, rgba(0,0,0,.04) 38px 76px);
  color: #fff;
  text-align: center;
  padding: var(--pad-section) 0;
}
.design-cta h2 { font-size: clamp(28px, 3vw, 40px); }
.design-cta p { max-width: 540px; margin: 16px auto 26px; font-size: 15px; color: rgba(255,255,255,.92); }

/* ----- Family story ----- */
.story {
  background: var(--ink);
  color: #fff;
}
.story .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.story h2 { color: #fff; }
.story .eyebrow { justify-content: flex-start; }
.story p { color: #c8cbd1; max-width: 500px; line-height: 1.65; font-size: 15px; }
.story .stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.story .stat { text-align: center; }
.story .stat .icon {
  width: 44px; height: 44px;
  border: 2px solid var(--red);
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 10px;
  color: var(--red);
}
.story .stat .icon svg { width: 20px; height: 20px; }
.story .stat .big {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .04em;
}
.story .stat .label {
  font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 4px;
}
.story-image {
  position: relative;
  height: 460px;
}
.story-image .imgph { height: 100%; }
.story-image .accent {
  position: absolute; right: -12px; bottom: -12px;
  width: 64px; height: 64px;
  background: var(--red);
}

/* ----- Final CTA ----- */
.final-cta {
  background: var(--paper-2);
  text-align: center;
  padding: var(--pad-section) 0;
}
.final-cta h2 { margin-bottom: 24px; font-size: clamp(28px, 3vw, 40px); }

/* ----- Footer ----- */
.footer {
  background: var(--ink);
  color: #fff;
  padding: var(--pad-section) 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer h4 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
}
.footer .brand .mark { color: #fff; }
.footer .brand .sub { color: var(--muted-2); }
.footer .copy { color: var(--muted-2); font-size: 12.5px; margin-top: 18px; line-height: 1.6; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: 5px 0; font-size: 13px; color: #c8cbd1; }
.footer li:hover { color: var(--red); cursor: pointer; }
.footer .contact-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: #c8cbd1; padding: 5px 0;
}
.footer .contact-row svg { width: 14px; height: 14px; color: var(--red); margin-top: 4px; flex: none; }
.footer-base {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 48px;
  padding-top: 22px;
  display: flex; justify-content: space-between;
  font-size: 11.5px; color: var(--muted-2);
  letter-spacing: .06em;
}

/* ----- Breadcrumb (used in svc-detail) ----- */
.crumb {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  padding: 14px 0;
}
.crumb .wrap { display: flex; gap: 10px; }
.crumb .sep { color: var(--muted-2); }
.crumb .here { color: var(--ink); font-weight: 600; }

/* ----- Scroll reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ----- Modal ----- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 12, 14, .65);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  z-index: 100;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-med);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff;
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border-radius: 4px;
  padding: 36px;
  transform: translateY(12px) scale(.98);
  transition: transform var(--t-med);
  position: relative;
}
.modal-backdrop.open .modal { transform: none; }
.modal .x {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: transparent; border: none;
  font-size: 22px; color: var(--muted);
}
.modal .x:hover { color: var(--ink); }
.modal h3 { font-size: 26px; margin-bottom: 6px; }
.modal p.sub { color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 700;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  transition: border-color var(--t-fast);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--red);
}
.field textarea { min-height: 110px; resize: vertical; }
.modal .actions { display: flex; gap: 12px; margin-top: 20px; }
.modal .success {
  text-align: center; padding: 20px 0;
}
.modal .success .check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid; place-items: center;
  margin: 0 auto 16px;
  font-size: 28px;
}

/* ----- Tweaks panel ----- */
.tweaks {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.25);
  border-radius: 6px;
  z-index: 90;
  display: none;
  font-family: var(--body);
}
.tweaks.open { display: block; }
.tweaks header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.tweaks header h4 {
  font-family: var(--display); font-weight: 700; font-size: 15px;
  letter-spacing: .14em; text-transform: uppercase; margin: 0;
}
.tweaks .body { padding: 14px 18px 18px; }
.tweaks .row { margin-bottom: 14px; }
.tweaks .row:last-child { margin-bottom: 0; }
.tweaks .row > label {
  display: block; font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 700;
}
.tweaks .seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.tweaks .seg button {
  background: #fff; border: none;
  font-size: 11px; padding: 8px 6px;
  font-weight: 600; letter-spacing: .04em;
  color: var(--muted);
  border-right: 1px solid var(--line);
}
.tweaks .seg button:last-child { border-right: none; }
.tweaks .seg button.on { background: var(--ink); color: #fff; }
.tweaks input[type=range] { width: 100%; }
.tweaks input[type=color] {
  width: 36px; height: 28px; border: 1px solid var(--line); padding: 0; background: #fff;
}

/* Best-for scrolling gallery */
.bestfor-scroll {
  margin-top: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.bestfor-scroll::-webkit-scrollbar { height: 0; }
.bestfor-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.bestfor-track {
  display: flex; gap: 14px;
  padding: 4px 0;
  justify-content: center;
  min-width: min-content;
  margin: 0 auto;
}
.bestfor-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  text-align: center;
  transition: transform var(--t-fast);
}
.bestfor-card .bf-img {
  height: 180px;
  background: var(--paper-2);
  background-size: cover;
  background-position: center;
}
.bestfor-card:hover { transform: translateY(-3px); }
.bestfor-card .name {
  font-family: var(--display); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: 13px; margin-top: 12px;
}

/* ----- Image cards (white card, image on top, text below) ----- */
.image-card {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.image-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -16px rgba(0,0,0,.15);
}

/* Laser engraving gallery (legacy — unused) */
.laser-gallery {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.laser-gallery::-webkit-scrollbar { height: 6px; }
.laser-gallery::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.laser-track { display: flex; gap: 10px; }
.laser-img {
  flex: 0 0 85%;
  height: 320px;
  background-size: cover;
  background-position: center;
  scroll-snap-align: start;
}

/* Force consistent rail button height */
.dp-rail button { height: 40px; line-height: 1; }

/* ============ Display Products Carousel ============ */
.dp-carousel {
  position: relative;
  width: 100%;
  max-width: 87.5%;
  height: 178px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 24px;
}
.dp-carousel[data-peek="true"] .dp-carousel-slide { flex: 0 0 42%; }
.dp-carousel-track {
  display: flex;
  height: 100%;
  gap: 12px;
  transition: transform 500ms cubic-bezier(.4, 0, .2, 1);
}
.dp-carousel-slide {
  flex: 0 0 calc(50% - 6px);
  height: 100%;
}
.dp-carousel-img {
  width: 100%; height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.dp-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: var(--red);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.dp-nav:hover { background: var(--red-deep); transform: translateY(-50%) scale(1.05); }
.dp-nav.prev { left: 12px; }
.dp-nav.next { right: 12px; }
.dp-nav svg { width: 18px; height: 18px; }
.dp-dots {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 2;
  padding: 6px 10px;
  background: rgba(0,0,0,.35);
  border-radius: 20px;
}
.dp-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  padding: 0;
}
.dp-dot:hover { background: rgba(255,255,255,.8); }
.dp-dot.active { background: var(--red); transform: scale(1.3); }

.dp-content { padding: 4px 0 0; }

/* ----- Team Stores Page ----- */
.ts-hero {
  position: relative;
  margin-top: var(--header-h);
  background:
    linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.72) 100%),
    url('assets/ts-hero.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 80px 0 72px;
  overflow: hidden;
}
.ts-hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 6px;
  background: var(--red);
  pointer-events: none;
}
.ts-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  margin-top: 16px;
}
.ts-hero .lead {
  color: #c8cbd1;
  max-width: 580px;
  margin: 18px auto 0;
  font-size: 16px;
  line-height: 1.55;
}

.ts-values { background: var(--paper-2); }
.ts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ts-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 36px 24px;
  text-align: center;
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.ts-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -16px rgba(0,0,0,.15);
}
.ts-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  margin: 0 auto 18px;
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 50%;
}
.ts-icon svg { width: 28px; height: 28px; }
.ts-card h3 {
  font-size: 18px;
  letter-spacing: .1em;
  margin-bottom: 10px;
}
.ts-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  text-wrap: balance;
}

.ts-cta {
  padding: var(--pad-section) 0;
  background: var(--red);
  background-image: repeating-linear-gradient(135deg, transparent 0 22px, rgba(0,0,0,.05) 22px 44px);
}
.ts-cta-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}
.ts-cta-content {
  text-align: center;
}
.ts-cta h2 { margin-bottom: 12px; font-size: clamp(24px, 3vw, 40px); color: #fff; }
.ts-cta p { color: rgba(255,255,255,0.8); margin: 0 0 26px; font-size: 13.5px; }
.ts-cta-note {
  display: block;
  margin-top: 14px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: .04em;
}
.ts-cta-img {
  flex-shrink: 0;
}
.ts-cta-img img {
  display: block;
  max-height: 216px;
  width: auto;
  transition: transform var(--t-fast);
}
.ts-cta-img a:hover img {
  transform: translateY(-6px) scale(1.02);
}

/* ----- Catalog Page ----- */
.cat-hero {
  position: relative;
  margin-top: var(--header-h);
  background:
    linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.72) 100%),
    url('assets/cat-hero.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 80px 0 72px;
  overflow: hidden;
}
.cat-hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 6px;
  background: var(--red);
  pointer-events: none;
}
.cat-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  margin-top: 16px;
}
.cat-hero .lead {
  color: #c8cbd1;
  max-width: 580px;
  margin: 18px auto 0;
  font-size: 16px;
  line-height: 1.55;
}

.cat-main { background: var(--paper); }
.cat-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -16px rgba(0,0,0,.15);
}
.cat-image {
  height: 380px;
  overflow: hidden;
}
.cat-body h2 {
  font-size: clamp(26px, 3vw, 38px);
  margin-bottom: 16px;
}
.cat-body p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 14px;
  max-width: 480px;
}
.cat-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.cat-brands {
  background: var(--paper-2);
  padding: 48px 0 40px;
  overflow: hidden;
}
.cat-ticker {
  overflow: hidden;
  padding: 16px 0;
}
.cat-ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-left 60s linear infinite;
}
.cat-ticker-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  flex-shrink: 0;
  color: var(--red);
}
.cat-ticker-logos {
  align-items: center;
  gap: 64px;
  padding: 0 32px;
}
.cat-ticker-logo {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-drag: none;
}
.cat-brands-note {
  text-align: center;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: .04em;
  margin: 12px 0 0;
}

.cat-cta {
  text-align: center;
  padding: var(--pad-section) 0;
  background: var(--red);
  background-image: repeating-linear-gradient(135deg, transparent 0 22px, rgba(0,0,0,.05) 22px 44px);
}
.cat-cta h2 { margin-bottom: 12px; font-size: clamp(28px, 3vw, 40px); color: #fff; }
.cat-cta p { color: rgba(255,255,255,0.8); margin: 0 0 26px; font-size: 15px; }

/* ----- Nav scaling for mid-width viewports ----- */
@media (max-width: 1100px) and (min-width: 881px) {
  .nav { gap: 14px; }
  .nav a { font-size: 11px; letter-spacing: .1em; }
}

/* ----- Team strip — stacks earlier than global mobile breakpoint ----- */
@media (max-width: 1100px) {
  .team-strip {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding-left: 32px !important;
    padding-right: 32px !important;
  }
  .team-strip .btn.ghost { margin-left: auto; margin-right: auto; }
}

/* ----- Mobile (light pass) ----- */
@media (max-width: 880px) {
  .nav { display: none; }
  .site-header .btn { padding: 10px 16px; letter-spacing: .08em; font-size: 14px; white-space: nowrap; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-features { grid-template-columns: repeat(2, 1fr); }
  .bestfor-grid { grid-template-columns: repeat(2, 1fr); }
  .dp-grid { grid-template-columns: 1fr; }
  .story .wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  [data-hero="split"] .hero .wrap { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero .wrap { min-height: auto; padding-top: 80px; padding-bottom: 48px; }
  .hero .bg .slide { background-position: 70% 15%; }
  .ts-grid { grid-template-columns: repeat(2, 1fr); }
  .ts-cta-inner { grid-template-columns: 1fr; text-align: center; }
  .ts-cta-img { height: auto; display: flex; justify-content: center; }
  .ts-cta-img img { margin: 0 auto; }
  .cat-card { grid-template-columns: 1fr; }
  .cat-image { height: 260px; }
}

/* ----- Quote Modal — collapsible sections ----- */
.quote-section { border-bottom: 1px solid var(--line); }
.quote-section:first-of-type { border-top: 1px solid var(--line); margin-top: 16px; }
.quote-section-header {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 14px 0;
  background: none; border: none; cursor: pointer;
  font-family: var(--body); font-weight: 700; font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink);
}
.quote-section-header.open { color: var(--red); }
.quote-section-summary {
  flex: 1; text-align: right;
  font-weight: 400; font-size: 12px; letter-spacing: 0;
  text-transform: none; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.quote-section-chev {
  width: 14px; height: 14px; flex-shrink: 0;
  color: var(--muted);
  transition: transform var(--t-fast);
}
.quote-section-header.open .quote-section-chev { transform: rotate(90deg); }
.quote-section-body { padding: 0 0 16px; }

/* ----- Patch cards — desktop: stacked, mobile: horizontal row ----- */
.patch-card-img {
  background: #fff; display: flex; align-items: center; justify-content: center;
  padding: 16px; min-height: 120px;
}
.patch-card-text { padding: 18px 18px 20px; text-align: center; }

@media (max-width: 540px) {
  .patch-card {
    display: flex; align-items: center; gap: 16px;
    border: 1px solid var(--line); padding: 12px;
  }
  .patch-card-img {
    flex-shrink: 0; width: 80px; height: 80px;
    min-height: auto; padding: 8px;
  }
  .patch-card-img img { max-height: 64px !important; }
  .patch-card-text { padding: 0; text-align: left; }
}

/* ----- Compact Feature List (mobile services) ----- */
.feature-list-mobile {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.feature-row-wrap { border-bottom: 1px solid var(--line); }
.feature-row {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 14px 4px;
  background: none; border: none; cursor: pointer;
  text-align: left;
}
.feature-row-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 2px solid var(--red); border-radius: 50%;
}
.feature-row-icon svg { width: 18px; height: 18px; color: var(--red); }
.feature-row-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.feature-row-title {
  flex: 1;
  font-family: var(--display);
  font-weight: 700; font-size: 15px;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink);
}
.feature-row-wrap.open .feature-row-title { color: var(--red); }
.feature-row-chev {
  width: 14px; height: 14px; flex-shrink: 0;
  color: var(--muted);
  transition: transform var(--t-fast);
}
.feature-row-detail {
  padding: 0 4px 14px 54px;
}
.feature-row-detail p {
  font-size: 13.5px; color: var(--muted);
  margin: 0; line-height: 1.5;
}

/* ----- Display Products Accordion (mobile) ----- */
.dp-accordion { display: flex; flex-direction: column; gap: 0; }
.dp-acc-item { border-bottom: 1px solid var(--line); }
.dp-acc-item:first-child { border-top: 1px solid var(--line); }
.dp-acc-header {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 16px 4px;
  background: none; border: none; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink);
  transition: color var(--t-fast);
}
.dp-acc-item.open .dp-acc-header { color: var(--red); }
.dp-acc-header .chev { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.dp-acc-body { padding: 0 0 24px; }
.dp-acc-body .dp-content h3 { display: none; }

/* ----- Phone (≤540px) ----- */
@media (max-width: 540px) {
  .ts-grid { grid-template-columns: 1fr; }
  .svc-features { grid-template-columns: 1fr !important; }
  .bestfor-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .emb-options-grid { grid-template-columns: 1fr !important; }
  .patch-options-grid { grid-template-columns: 1fr !important; }
  .quote-services-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .quote-form-row { grid-template-columns: 1fr !important; }
  .svc-tabs { gap: 0; }
  .svc-tab { flex: 1 1 50% !important; min-width: 0; font-size: 11px !important; letter-spacing: .04em !important; padding: 14px 8px !important; }
  .bestfor-track { justify-content: flex-start; }
  .bestfor-card { flex: 0 0 160px; }
  .bestfor-card .bf-img { height: 130px; }
  .dp-carousel-mobile { max-width: 100%; }
  .dp-carousel-mobile .dp-carousel-slide { flex: 0 0 100%; }
}

