:root {
  --orange: #f47521;
  --orange-deep: #d95f10;
  --orange-text: #b94a0b; /* deeper orange for small text on light backgrounds (meets WCAG AA contrast) */
  --ink: #1b1a18;
  --ink-soft: #55524d;
  --paper: #f4f4f2;
  --paper-alt: #ebebe8;
  --card: #ffffff;
  --line: #dcdbd6;

  /* Headings: Archivo at its widest setting, like silkscreened model badges.
     Label tape: Syncopate's thin wide capitals, like the embossed labels on
     the modded recorders. Body: Archivo at normal width. */
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --label: "Syncopate", "Archivo", system-ui, sans-serif;
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 14px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Type ---------- */

h1, h2, .display {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.06;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h1 em, h2 em { font-style: normal; color: var(--orange); }

/* Embossing label-maker tape: raised white capitals on a dark strip. */
.tape {
  display: inline-block;
  font-family: var(--label);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
  color: #f1efe9;
  background: linear-gradient(to bottom, #2c2b28, #1b1a18);
  padding: 7px 10px 6px 12px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.12);
}

h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
h4 { font-size: 1rem; font-weight: 600; }

.label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

/* Mechanical tape counter: each digit sits on its own shaded "wheel"
   in a dark housing, with a little reset button like the real thing. */
.counter {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 5px;
  background: #2b2a27;
  border-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 2px rgba(0, 0, 0, 0.25);
}
/* Each digit is a window onto a vertical "wheel" of numbers (built in
   script.js); the overlay shades it like a curved drum. */
.counter > span {
  position: relative;
  display: inline-block;
  width: 1.35em;
  height: 1.7em;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.7em;
  text-align: center;
  color: #f4f2ec;
  background: #333;
  border-radius: 2px;
}
.counter > span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.85) 0%, rgba(0,0,0,.15) 32%, rgba(255,255,255,.04) 50%, rgba(0,0,0,.15) 68%, rgba(0,0,0,.85) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.reel {
  display: flex;
  flex-direction: column;
  transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.15, 1);
}
.reel span { display: block; height: 1.7em; }
.counter::after {
  content: "";
  width: 11px;
  height: 15px;
  margin-left: 5px;
  border-radius: 2px;
  background: linear-gradient(to bottom, #4a4945, #1d1c1a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.lede, .section-intro {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 34em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--orange);
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--orange-deep); border-color: var(--orange-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-small { padding: 9px 18px; font-size: 0.9rem; white-space: nowrap; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 244, 242, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand img { width: 44px; height: 44px; margin: -4px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a.active { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Header tape counter (follows the section on screen; click = back to top) */
.header-counter {
  margin: 0 auto 0 18px;
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: transform .15s;
}
.header-counter > span { font-size: 0.8rem; }
.header-counter:hover { transform: translateY(-1px); }
.header-counter:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  margin-left: 8px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform .2s, opacity .2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

/* Large photo to the right of the copy. It's sized so the recorder (which
   spans ~10%-93% of the photo's width) starts just past the end of the text
   and still fits on screen. The left fade only covers the photo's empty
   backdrop; top and bottom fade softly; the right fades out past the recorder. */
.hero {
  --copy-left: max(24px, calc(50vw - 556px));
  --copy-w: 480px;
  --text-end: calc(var(--copy-left) + var(--copy-w));
  --img-w: min(1140px, calc((100vw - var(--text-end) - 80px) / 0.83));
  --img-left: calc(var(--text-end) + 24px - var(--img-w) * 0.104);
  --edge-fade:
    linear-gradient(to right,
      transparent 0%, rgba(0,0,0,.35) 3%, rgba(0,0,0,.75) 6%, #000 9%,
      #000 94.5%, rgba(0,0,0,.6) 97%, transparent 100%),
    linear-gradient(to bottom,
      transparent 0%, rgba(0,0,0,.3) 4%, rgba(0,0,0,.7) 9%, #000 14%,
      #000 86%, rgba(0,0,0,.7) 91%, rgba(0,0,0,.3) 96%, transparent 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: max(600px, calc(var(--img-w) * 0.5626 + 48px));
  padding: 48px 0 72px;
}
.hero-bg {
  position: absolute;
  top: 50%;
  left: var(--img-left);
  width: var(--img-w);
  height: auto;
  transform: translateY(-50%);
  -webkit-mask-image: var(--edge-fade);
  -webkit-mask-composite: source-in;
  mask-image: var(--edge-fade);
  mask-composite: intersect;
  pointer-events: none;
}
.hero-copy { position: relative; }
.hero-copy > * { max-width: var(--copy-w); }
.hero h1 { margin-bottom: 24px; font-size: clamp(2.1rem, 3.7vw, 2.85rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Service status: small "recording light" line under the buttons. */
.status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.status-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2f9e44;
  box-shadow: 0 0 0 3px rgba(47, 158, 68, 0.18);
  animation: status-pulse 2.4s ease-in-out infinite;
}
.status.closed .status-dot { background: #d9a400; box-shadow: 0 0 0 3px rgba(217, 164, 0, 0.2); animation: none; }
@keyframes status-pulse { 50% { box-shadow: 0 0 0 6px rgba(47, 158, 68, 0.05); } }

@media (max-width: 1150px) and (min-width: 901px) {
  .hero { --copy-w: 430px; }
  .hero h1 { font-size: 2.55rem; }
}

/* ---------- Sections ---------- */

.section { padding: 104px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--paper-alt); }
.section-head { margin-bottom: 56px; }
.section-head h2 { margin-bottom: 18px; }

/* Every section follows the same rhythm: counter + tape, heading, intro,
   sub-blocks (each introduced by an outlined tape), then one closing button. */
.mini-label {
  display: block;
  width: fit-content;
  font-family: var(--label);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  padding: 6px 9px 5px 11px;
  margin: 72px 0 20px;
}
.section-head + .mini-label { margin-top: 0; }

.section-cta {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section-cta p {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.15rem;
}
.card-aside { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }

.hero-sell {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.hero-sell:hover { color: var(--orange-text); }

/* ---------- Service ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  border-top: 3px solid var(--orange);
}
.service-card p { color: var(--ink-soft); font-size: 0.98rem; }
.service-card p + p { margin-top: 12px; }

.checklist { list-style: none; margin: 14px 0 18px; }
.checklist li {
  position: relative;
  padding: 7px 0 7px 22px;
  font-size: 0.94rem;
  border-bottom: 1px dashed var(--line);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--orange);
}

.text-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--orange-text);
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* Supported models */
.models {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
  align-items: start;
}
.models-tascam, .models-other {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.models h3 {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.models-head p, .models-other p { color: var(--ink-soft); font-size: 0.92rem; }
.models-other p + p { margin-top: 12px; }
.models-other .models-note { font-size: 0.86rem; padding-left: 12px; border-left: 2px solid var(--orange); }
.model-list { list-style: none; margin-top: 16px; }
.model-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px dashed var(--line);
}
.model { font-weight: 600; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.tags i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink);
  background: var(--paper-alt);
  border-radius: 3px;
  padding: 3px 7px;
  white-space: nowrap;
}
.tags i.none { background: transparent; color: var(--ink-soft); padding-right: 0; }
.model-list li.paused .model { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(85, 82, 77, 0.5); }

/* "I buy broken recorders" panel */
.sell {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  padding: 44px 44px 40px;
  background: var(--ink);
  color: #f4f2ec;
  border-radius: var(--radius);
}
.sell h3 {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.08;
  margin: 0 0 14px;
}
.sell h3 em { font-style: normal; color: var(--orange); }
.sell-intro > p { color: #c9c6bf; max-width: 36em; }
.sell-steps { list-style: none; margin: 24px 0 28px; }
.sell-steps li {
  display: flex;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid rgba(244, 242, 236, 0.14);
  font-size: 0.95rem;
  color: #e4e1da;
}
.sell-steps li:last-child { border-bottom: 1px solid rgba(244, 242, 236, 0.14); }
.sell-steps span { font-family: var(--mono); font-size: 0.8rem; color: var(--orange); padding-top: 2px; }

.sell-prices {
  background: rgba(244, 242, 236, 0.05);
  border: 1px solid rgba(244, 242, 236, 0.12);
  border-radius: 10px;
  padding: 22px 22px 18px;
  align-self: start;
}
.sell-prices-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f4f2ec;
  margin-bottom: 12px;
}
.sell-prices-head span { color: #9d9a93; letter-spacing: 0.04em; text-transform: none; }
.sell-prices ul {
  list-style: none;
  columns: 2;
  column-gap: 28px;
}
.sell-prices li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(244, 242, 236, 0.12);
  font-size: 0.9rem;
  break-inside: avoid;
}
.sell-prices li span:first-child { color: #d8d5ce; }
.sell-prices li span:last-child { font-family: var(--mono); color: var(--orange); }
.sell-prices-note { margin-top: 14px; font-size: 0.8rem; line-height: 1.5; color: #9d9a93; }
.sell-other {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 242, 236, 0.14);
}
.sell-other .sell-prices-head { margin-bottom: 8px; }
.sell-other p:not(.sell-prices-head) { font-size: 0.9rem; line-height: 1.55; color: #d8d5ce; }

.process {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.process ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.process li { display: flex; flex-direction: column; gap: 10px; }
.process li p { color: var(--ink-soft); font-size: 0.93rem; margin-top: 4px; }
.step {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--orange-text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* ---------- Mods ---------- */

.mod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: start;
}
.mod-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mod-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mod-body { padding: 18px 18px 22px; }
.mod-body h3 { font-size: 1.02rem; }
.mod-body p { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.55; }
.mod-body p + p { margin-top: 10px; }
.mod-body .note { font-size: 0.86rem; font-style: italic; }
.mod-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.mod-title h3 { margin-bottom: 0; }
.price {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--orange-text);
  border: 1px solid var(--orange);
  border-radius: 999px;
  padding: 2px 10px;
}

/* Demo video */
.demo {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 40px;
  align-items: center;
}
.demo h3 { font-family: var(--display); font-stretch: 125%; font-weight: 700; letter-spacing: -0.015em; font-size: 1.7rem; line-height: 1.1; margin-bottom: 12px; }
.demo p { color: var(--ink-soft); margin-bottom: 16px; }
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 20px 40px -24px rgba(27, 26, 24, 0.45);
}
.video { display: block; cursor: pointer; }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.video:hover img { transform: scale(1.02); opacity: .92; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform .2s, background .2s;
}
.play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent #fff;
}
.video:hover .play { transform: translate(-50%, -50%) scale(1.08); background: var(--orange-deep); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* FAQ & Contact */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(300px, 400px) 1fr;
  gap: 56px;
  align-items: start;
}
.contact-card {
  position: sticky;
  top: 96px;
  background: var(--ink);
  color: #f4f2ec;
  border-radius: var(--radius);
  padding: 34px 32px 30px;
}
.contact-kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b9b6af;
  margin-bottom: 10px;
}
.contact-email {
  display: block;
  font-family: var(--sans);
  font-stretch: 112%;
  font-weight: 700;
  font-size: clamp(1.3rem, 1.9vw, 1.55rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--orange);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-email:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.contact-note { color: #b9b6af; font-size: 0.95rem; margin: 16px 0 24px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-actions .btn { padding: 11px 20px; font-size: 0.92rem; }
.btn-ghost-light {
  background: transparent;
  color: #f4f2ec;
  border-color: rgba(244, 242, 236, 0.45);
  font-family: inherit;
  cursor: pointer;
}
.btn-ghost-light:hover { background: #f4f2ec; border-color: #f4f2ec; color: var(--ink); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--orange);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--orange-text); }
.faq details p { color: var(--ink-soft); padding: 0 40px 22px 0; max-width: 46em; }


/* ---------- Gallery ---------- */

/* Masonry columns so every photo shows uncropped at its own shape. */
.gallery { columns: 3; column-gap: 16px; }
.gallery .tile { aspect-ratio: auto; width: 100%; margin-bottom: 16px; break-inside: avoid; }
.gallery .tile img { height: auto; }
.tile {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  aspect-ratio: 1;
  font: inherit;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.035); }
.tile span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.74rem;
  padding: 6px 11px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s, transform .25s;
}
.tile:hover span, .tile:focus-visible span { opacity: 1; transform: none; }
.tile:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- Shop ---------- */

.stores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.store {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 36px 30px;
  min-height: 180px;
  justify-content: flex-end;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.store:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -18px rgba(27, 26, 24, 0.35);
}
.store-name { font-family: var(--display); font-stretch: 125%; font-weight: 700; letter-spacing: -0.015em; font-size: 1.9rem; line-height: 1; }
.store-sub { color: var(--ink-soft); font-size: 0.92rem; }
.arrow {
  position: absolute;
  top: 26px;
  right: 28px;
  font-size: 1.3rem;
  color: var(--orange);
  transition: transform .2s;
}
.store:hover .arrow { transform: translateX(4px); }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #d8d6d0; padding: 40px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer .brand { color: #fff; }
.site-footer .brand img { width: 36px; height: 36px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.footer-links a { font-size: 0.9rem; text-decoration: none; color: #d8d6d0; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-links .footer-mail { font-family: var(--mono); font-size: 0.88rem; color: var(--orange); }
.footer-copy { font-size: 0.85rem; color: #8f8c86; }

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border: 0;
  background: rgba(20, 19, 17, 0.94);
  color: #fff;
  padding: 0;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 60px 80px; }
.lightbox img { max-width: min(1100px, 100%); max-height: calc(100vh - 150px); border-radius: 8px; object-fit: contain; }
.lightbox figcaption { font-family: var(--mono); font-size: 0.85rem; color: #cfcdc7; }
.lb-close, .lb-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background .2s;
}
.lb-close:hover, .lb-nav:hover { background: var(--orange); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  /* Section links move into a drop-down opened by the menu button. */
  .menu-toggle { display: inline-flex; }
  .nav { gap: 10px; }
  .nav a:not(.btn) { display: none; }
  .nav.open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px -20px rgba(27, 26, 24, 0.35);
  }
  .nav.open a:not(.btn) {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
    color: var(--ink);
  }
  .nav.open .btn { margin-top: 16px; padding: 13px 20px; font-size: 1rem; }
  .header-inner { justify-content: flex-start; }
  .nav, .nav.open + .menu-toggle { margin-left: auto; }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding: 40px 0 40px; }
  .hero-copy > * { max-width: none; }
  .hero-bg {
    position: static;
    order: 1;
    width: calc(100% - 32px);
    margin: 36px auto 0;
    transform: none;
  }
  /* Small photo on phones: wider fades so no box outline shows. */
  .hero {
    --edge-fade:
      linear-gradient(to right,
        transparent 0%, rgba(0,0,0,.4) 5%, rgba(0,0,0,.8) 10%, #000 14%,
        #000 88%, rgba(0,0,0,.6) 94%, transparent 100%),
      linear-gradient(to bottom,
        transparent 0%, rgba(0,0,0,.3) 6%, rgba(0,0,0,.75) 12%, #000 18%,
        #000 84%, rgba(0,0,0,.6) 92%, transparent 100%);
  }
  .services { grid-template-columns: 1fr; }
  .stores, .mod-grid { grid-template-columns: repeat(2, 1fr); }
  .demo { grid-template-columns: 1fr; gap: 24px; }
  .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-card { position: static; }
  .sell { grid-template-columns: 1fr; gap: 32px; padding: 36px 32px; }
  .models { grid-template-columns: 1fr; }
  .process ol { grid-template-columns: repeat(2, 1fr); }
  .mini-label { margin-top: 56px; }
  .section-cta { margin-top: 48px; }
  .gallery { columns: 2; }
  .section { padding: 80px 0; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .brand span { font-size: 0.95rem; }
  .process ol { grid-template-columns: 1fr; }
  .process { padding: 24px 20px; }
  .stores, .mod-grid { grid-template-columns: 1fr; }
  .sell { padding: 30px 20px 26px; }
  .sell-prices { padding: 18px 16px 14px; }
  .sell-prices ul { column-gap: 18px; }
  .models-tascam, .models-other { padding: 22px 18px; }
  .model-list li { flex-direction: column; align-items: flex-start; gap: 5px; padding: 8px 0; }
  .tags { justify-content: flex-start; gap: 4px; }
  .tags i { font-size: 0.68rem; padding: 2px 6px; }
  .tags i.none { padding-left: 0; }
  .gallery { column-gap: 10px; }
  .gallery .tile { margin-bottom: 10px; }
  .tile span { opacity: 1; transform: none; font-size: 0.68rem; }
  .store { min-height: 130px; }
  .lightbox figure { padding: 70px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Small laptops: the full menu fills the header, so the counter steps aside. */
@media (min-width: 901px) and (max-width: 1100px) {
  .header-counter { display: none; }
}

/* Small phones: the header keeps just the logo and menu button; "Start a
   repair" lives in the menu and in the top-of-page buttons. */
@media (max-width: 480px) {
  .nav:not(.open) .btn { display: none; }
  .brand span { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
