/* ============================================================
   BorahJean Solutions Limited
   Design tokens
   ------------------------------------------------------------
   Direction: the shop's own chrome stays near-monochrome so the
   client work (which is loud and colourful) supplies the colour.
   One accent only: press orange, used for cut lines and actions.
   ============================================================ */

:root {
  --ink:        #0B0D0E;
  --ink-80:     #33383a;
  --paper:      #FFFFFF;
  --mat:        #EFF0EC;
  --mat-deep:   #E4E6DF;
  --rule:       #D8DAD3;
  --muted:      #6B706B;
  --heat:       #FF4D00;
  --heat-deep:  #C93A00;

  --shell:      min(1240px, 100% - 3rem);
  --radius:     2px;

  --f-display: "Archivo", system-ui, sans-serif;
  --f-body:    "Instrument Sans", system-ui, sans-serif;
  --f-util:    "DM Mono", ui-monospace, monospace;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1:  clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
  --step-2:  clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem);
  --step-3:  clamp(2.6rem, 1.9rem + 3.4vw, 5rem);
  --step-4:  clamp(3.2rem, 2rem + 5.6vw, 7.2rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-synthesis-weight: none;
  overflow-x: hidden;
}

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

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

.shell { width: var(--shell); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 0.7rem 1.1rem; font-family: var(--f-util); font-size: 0.8rem;
  transition: top 0.2s;
}
.skip:focus { top: 1rem; }

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

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 118%;
  line-height: 0.94;
  letter-spacing: -0.022em;
  text-transform: uppercase;
  margin: 0;
}

p { margin: 0 0 1rem; max-width: 62ch; }

.eyebrow {
  font-family: var(--f-util);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.eyebrow::before {
  content: "";
  width: 2rem; height: 1px;
  background: var(--heat);
  flex: none;
}

.lede { font-size: var(--step-1); line-height: 1.35; letter-spacing: -0.01em; }

/* ---------- Cutting-mat backdrop + registration marks ---------- */

.mat-grid {
  position: relative;
  background-color: var(--mat);
  background-image:
    linear-gradient(to right, rgba(11,13,14,0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,13,14,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
}

.reg-marks::before, .reg-marks::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--heat);
  opacity: 0.55;
  pointer-events: none;
}
.reg-marks::before { top: 22px; left: 22px; border-right: 0; border-bottom: 0; }
.reg-marks::after  { bottom: 22px; right: 22px; border-left: 0; border-top: 0; }

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

.masthead {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.masthead__inner {
  display: flex; align-items: center; gap: 1.6rem;
  height: 74px;
}
.brand { display: flex; align-items: center; flex: none; margin-right: auto; }
.brand img { height: 26px; width: auto; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a {
  font-family: var(--f-util);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding-block: 0.4rem;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--heat);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.masthead__tools { display: flex; align-items: center; gap: 0.6rem; flex: none; }

.cart-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-util); font-size: 0.78rem; letter-spacing: 0.06em;
  background: var(--ink); color: var(--paper);
  border: 0; padding: 0.65rem 1rem; cursor: pointer;
  border-radius: var(--radius);
}
.cart-btn__count {
  background: var(--heat); color: var(--paper);
  min-width: 1.35rem; height: 1.35rem; border-radius: 999px;
  display: grid; place-items: center; font-size: 0.7rem;
}

.menu-toggle {
  display: none; background: none; border: 1px solid var(--rule);
  width: 42px; height: 42px; cursor: pointer;
  border-radius: var(--radius);
  position: relative;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: ""; position: absolute; left: 50%; width: 18px; height: 1.5px;
  background: var(--ink); transform: translateX(-50%);
}
.menu-toggle span { top: 50%; margin-top: -0.75px; }
.menu-toggle span::before { top: -6px; left: 0; transform: none; }
.menu-toggle span::after  { top: 6px; left: 0; transform: none; }

@media (max-width: 940px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 74px 0 auto;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.6rem 1.5rem 1.6rem;
    transform: translateY(-120%);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a { padding: 0.95rem 0; border-bottom: 1px solid var(--rule); font-size: 0.9rem; }
  .nav a::after { display: none; }
}

/* ---------- Hero: the "press" moment ---------- */

.hero {
  padding: clamp(4rem, 9vw, 8.5rem) 0 0;
  overflow: hidden;
}
.hero__title {
  font-size: var(--step-4);
  margin-bottom: 1.8rem;
}
.hero__title .line { display: block; overflow: hidden; }

/* Each word starts as an unfilled cut path, then "presses" down solid. */
.press-word {
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--ink);
  animation: press 0.85s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: var(--d, 0s);
}
.press-word--heat { -webkit-text-stroke-color: var(--heat); }

@keyframes press {
  0%   { transform: translateY(0.14em) scaleY(1.06); opacity: 0; }
  40%  { opacity: 1; color: transparent; }
  100% { transform: none; opacity: 1; color: var(--ink); -webkit-text-stroke-width: 0; }
}
.press-word--heat { animation-name: press-heat; }
@keyframes press-heat {
  0%   { transform: translateY(0.14em) scaleY(1.06); opacity: 0; }
  40%  { opacity: 1; color: transparent; }
  100% { transform: none; opacity: 1; color: var(--heat); -webkit-text-stroke-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .press-word { color: var(--ink); -webkit-text-stroke-width: 0; animation: none; opacity: 1; }
  .press-word--heat { color: var(--heat); }
}

.hero__body { max-width: 46ch; color: var(--ink-80); font-size: var(--step-1); line-height: 1.4; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }

/* Job ticket: the strip of hard facts under the hero */
.ticket {
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.ticket__cell {
  padding: 1.4rem 1.4rem 1.6rem;
  border-right: 1px solid var(--rule);
}
.ticket__cell:first-child { padding-left: 0; }
.ticket__cell:last-child { border-right: 0; }
.ticket dt {
  font-family: var(--f-util); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem;
}
.ticket dd {
  margin: 0; font-family: var(--f-display); font-weight: 800; font-stretch: 112%;
  font-size: 1.05rem; text-transform: uppercase; line-height: 1.1;
}
@media (max-width: 780px) {
  .ticket { grid-template-columns: repeat(2, 1fr); }
  .ticket__cell:nth-child(2n) { border-right: 0; }
  .ticket__cell:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--f-util); font-size: 0.8rem; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none;
  padding: 0.95rem 1.6rem; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  cursor: pointer; border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.12s;
}
.btn:hover { background: var(--heat); border-color: var(--heat); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- Section furniture ---------- */

.band { padding: clamp(4rem, 8vw, 7rem) 0; }
.band--mat { background: var(--mat); }
.band--ink { background: var(--ink); color: var(--paper); }
.band--ink .eyebrow { color: rgba(255,255,255,0.6); }
.band--ink a { color: var(--paper); }

.band__head { margin-bottom: clamp(2.4rem, 5vw, 3.6rem); max-width: 60ch; }
.band__head h2 { font-size: var(--step-2); margin-bottom: 1rem; }

/* ---------- Services ---------- */

.services { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 720px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .services { grid-template-columns: repeat(4, 1fr); } }

.service {
  background: var(--paper);
  padding: 2rem 1.6rem 2.2rem;
  display: flex; flex-direction: column; gap: 0.8rem;
  transition: background 0.25s;
}
.service:hover { background: var(--mat); }
.service__no {
  font-family: var(--f-util); font-size: 0.7rem; letter-spacing: 0.14em;
  color: var(--heat);
}
.service h3 { font-size: 1.15rem; }
.service p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.service ul {
  list-style: none; margin: auto 0 0; padding: 0.9rem 0 0;
  border-top: 1px solid var(--rule);
  font-family: var(--f-util); font-size: 0.74rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem;
}

/* ---------- Client roll ---------- */

/* Borders live on the cells, not on a container background, so a row
   that doesn't divide evenly leaves no visible empty block. */
.clients {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  border-top: 1px solid rgba(255,255,255,0.16);
  border-left: 1px solid rgba(255,255,255,0.16);
}
.client {
  padding: 1.5rem 1.2rem;
  min-height: 108px;
  border-right: 1px solid rgba(255,255,255,0.16);
  border-bottom: 1px solid rgba(255,255,255,0.16);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.3rem;
}
.client strong {
  font-family: var(--f-display); font-weight: 800; font-stretch: 112%;
  text-transform: uppercase; font-size: 0.95rem; line-height: 1.1;
  letter-spacing: -0.01em;
}
.client span { font-family: var(--f-util); font-size: 0.68rem; color: rgba(255,255,255,0.5); }

/* ---------- Work gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.2rem;
}
.tile {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--mat);
  border: 1px solid var(--rule);
  overflow: hidden;
  display: block; text-decoration: none;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.tile:hover img { transform: scale(1.045); }
.tile__meta {
  position: absolute; inset: auto 0 0; padding: 1rem;
  background: linear-gradient(to top, rgba(11,13,14,0.88), transparent);
  color: var(--paper);
}
.tile__meta strong {
  display: block; font-family: var(--f-display); font-weight: 800; font-stretch: 112%;
  text-transform: uppercase; font-size: 0.9rem;
}
.tile__meta span { font-family: var(--f-util); font-size: 0.68rem; opacity: 0.75; }

/* Placeholder shown until real photos are dropped in */
.tile--empty {
  display: grid; place-items: center; text-align: center;
  padding: 1.5rem;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(11,13,14,0.035) 12px 24px);
}
.tile--empty code {
  font-family: var(--f-util); font-size: 0.7rem; color: var(--muted);
  word-break: break-all; line-height: 1.5;
}

/* ---------- Work slideshow ---------- */
.slideshow { position: relative; }
.slideshow__viewport {
  display: flex; gap: 1.2rem;
  align-items: flex-start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px;
}
.slideshow__viewport::-webkit-scrollbar { display: none; }
.slide {
  position: relative; flex: 0 0 auto;
  width: min(86%, 460px); aspect-ratio: 4 / 5;
  scroll-snap-align: center;
  background: var(--mat);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 700px)  { .slide { width: min(46%, 440px); } }
@media (min-width: 1100px) { .slide { width: min(31%, 440px); } }
.slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  animation: slideFade 0.5s ease both;
}
@keyframes slideFade { from { opacity: 0; } to { opacity: 1; } }
.slide__ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background-image: repeating-linear-gradient(45deg, transparent 0 12px, rgba(11,13,14,0.035) 12px 24px);
}
.slide__ph::after {
  content: ""; width: 46px; height: 46px; opacity: 0.16;
  background: center / contain no-repeat url("../assets/mark.png");
}
.slide--has-photo .slide__ph { display: none; }
.slide__meta, .slide .tile__meta { z-index: 1; }

.slideshow__btn {
  position: absolute; top: calc(50% - 22px);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--rule); color: var(--ink);
  font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 2;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(11,13,14,0.08);
}
@media (min-width: 700px) { .slideshow__btn { display: flex; } }
.slideshow__btn--prev { left: -10px; }
.slideshow__btn--next { right: -10px; }
.slideshow__btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.slideshow__btn:active { transform: translateY(1px); }

.slideshow__dots {
  display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.4rem;
}
.slideshow__dots button {
  width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%;
  background: var(--rule); cursor: pointer;
}
.slideshow__dots button[aria-current="true"] { background: var(--heat); }

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

.shop-layout { display: grid; gap: 2.4rem; align-items: start; }
@media (min-width: 900px) { .shop-layout { grid-template-columns: 200px 1fr; gap: 3rem; } }

.filters { position: sticky; top: 100px; }
.filters h2 {
  font-size: 0.8rem; font-family: var(--f-util); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  font-stretch: normal; margin-bottom: 1rem;
}
.filters button {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--rule);
  padding: 0.7rem 0; cursor: pointer;
  font-family: var(--f-util); font-size: 0.8rem; color: var(--muted);
  transition: color 0.2s, padding-left 0.2s;
}
.filters button:hover { color: var(--ink); padding-left: 0.35rem; }
.filters button[aria-pressed="true"] { color: var(--ink); }
.filters button[aria-pressed="true"]::before { content: "▸ "; color: var(--heat); }

@media (max-width: 899px) {
  .filters { position: static; display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .filters h2 { width: 100%; }
  .filters button { width: auto; border: 1px solid var(--rule); padding: 0.5rem 0.9rem; }
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.4rem;
}

.card {
  border: 1px solid var(--rule);
  display: flex; flex-direction: column;
  background: var(--paper);
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--ink); }
.card__thumb {
  aspect-ratio: 1; background: var(--mat);
  display: grid; place-items: center; padding: 1.2rem;
  border-bottom: 1px solid var(--rule);
  position: relative; overflow: hidden;
}
.card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.card__thumb code {
  font-family: var(--f-util); font-size: 0.65rem; color: var(--muted);
  text-align: center; word-break: break-all;
}
.card__body { padding: 1.1rem 1.1rem 1.3rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.card__tag { font-family: var(--f-util); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--heat); }
.card h3 { font-size: 1.02rem; }
.card__price { font-family: var(--f-util); font-size: 0.88rem; }
.card__price small { color: var(--muted); font-size: 0.72rem; }
.card__opts { display: grid; gap: 0.5rem; margin-top: auto; }

label.field { display: grid; gap: 0.35rem; }
label.field > span {
  font-family: var(--f-util); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
select, input, textarea {
  font-family: var(--f-body); font-size: 0.9rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule);
  padding: 0.6rem 0.7rem; width: 100%; border-radius: var(--radius);
}
select:focus, input:focus, textarea:focus { border-color: var(--ink); outline-offset: 1px; }
textarea { min-height: 130px; resize: vertical; }

/* ---------- Cart drawer ---------- */

.scrim {
  position: fixed; inset: 0; background: rgba(11,13,14,0.55);
  opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 100;
}
.scrim[data-open="true"] { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(430px, 100%);
  background: var(--paper); z-index: 101;
  display: flex; flex-direction: column;
  transform: translateX(101%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  border-left: 1px solid var(--rule);
}
.drawer[data-open="true"] { transform: none; }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--ink);
}
.drawer__head h2 { font-size: 1.1rem; }
.drawer__close {
  background: none; border: 0; cursor: pointer; font-size: 1.5rem;
  line-height: 1; padding: 0.2rem 0.4rem; color: var(--ink);
}
.drawer__body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 1.4rem; }
.drawer__foot { border-top: 1px solid var(--rule); padding: 1.4rem; background: var(--mat); }

.line {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--rule);
  min-width: 0;
}
.line > * { min-width: 0; }
.line h3 { font-size: 0.95rem; }
.line__opts { font-family: var(--f-util); font-size: 0.7rem; color: var(--muted); grid-column: 1 / -1; }
.line__price { font-family: var(--f-util); font-size: 0.85rem; text-align: right; }
.line__qty { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; grid-column: 1 / -1; }
.line__qty button:not(.line__remove) {
  width: 26px; height: 26px; flex: none;
  border: 1px solid var(--rule); background: var(--paper);
  cursor: pointer; font-size: 0.9rem; line-height: 1; border-radius: var(--radius);
}
.line__qty button:not(.line__remove):hover { border-color: var(--ink); }
.line__qty output { font-family: var(--f-util); font-size: 0.8rem; min-width: 1.6rem; text-align: center; }
.line__remove {
  width: auto; height: auto; flex: none;
  margin-left: auto; background: none; border: 0; cursor: pointer;
  font-family: var(--f-util); font-size: 0.68rem; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px;
}
.line__remove:hover { color: var(--heat); }

.totals { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.totals dt { font-family: var(--f-util); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.totals dd {
  margin: 0; font-family: var(--f-display); font-weight: 800; font-stretch: 112%;
  font-size: 1.5rem;
}

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state p { margin-inline: auto; font-size: 0.9rem; }

.note {
  font-family: var(--f-util); font-size: 0.7rem; line-height: 1.6;
  color: var(--muted); margin-top: 0.9rem;
}

/* ---------- Forms ---------- */

.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 680px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid--2 .span-2 { grid-column: 1 / -1; } }

.form-panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 4vw, 2.6rem);
}

.status {
  font-family: var(--f-util); font-size: 0.78rem;
  padding: 0.9rem 1rem; border-left: 2px solid var(--heat);
  background: var(--mat); margin-top: 1rem;
}
.status[hidden] { display: none; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: 2.4rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.3fr; gap: 4rem; } }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.contact-list dt {
  font-family: var(--f-util); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem;
}
.contact-list dd { margin: 0; font-size: 1.05rem; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.contact-list a:hover { border-color: var(--heat); color: var(--heat); }

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

.footer { background: var(--ink); color: var(--paper); padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; }
.footer__top { display: grid; gap: 2.4rem; margin-bottom: 3.5rem; }
@media (min-width: 820px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer img { height: 24px; width: auto; filter: invert(1); margin-bottom: 1.2rem; }
.footer h3 {
  font-size: 0.72rem; font-family: var(--f-util); font-weight: 500; font-stretch: normal;
  letter-spacing: 0.14em; color: rgba(255,255,255,0.5); margin-bottom: 1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer a { text-decoration: none; opacity: 0.85; font-size: 0.92rem; }
.footer a:hover { opacity: 1; color: var(--heat); }
.footer__base {
  border-top: 1px solid rgba(255,255,255,0.16); padding-top: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-family: var(--f-util); font-size: 0.7rem; color: rgba(255,255,255,0.5);
}

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Quote-only products ---------- */

.quote-tag {
  font-family: var(--f-util); font-size: 0.78rem;
  color: var(--muted); letter-spacing: 0.04em;
}
.card__note {
  font-family: var(--f-util); font-size: 0.68rem; line-height: 1.5;
  color: var(--muted); margin: 0;
}

/* ---------- Account ---------- */

.account-grid { display: grid; gap: 2.4rem; align-items: start; }
@media (min-width: 940px) { .account-grid { grid-template-columns: 1fr 1.25fr; gap: 3.4rem; } }

.account-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 1rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1.2rem; margin-bottom: 2.4rem;
}
.account-head h2 { font-size: var(--step-2); }
.account-head__email { font-family: var(--f-util); font-size: 0.76rem; color: var(--muted); }

.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--f-util); font-size: 0.74rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  text-decoration: underline; text-underline-offset: 4px;
}
.link-btn:hover { color: var(--heat); }

.order-row {
  border: 1px solid var(--rule);
  padding: 1.2rem 1.3rem;
  margin-bottom: 0.9rem;
  transition: border-color 0.2s;
}
.order-row:hover { border-color: var(--ink); }
.order-row__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 0.7rem;
}
.order-row__ref {
  font-family: var(--f-display); font-weight: 800; font-stretch: 112%;
  text-transform: uppercase; font-size: 0.95rem; margin-right: 0.7rem;
}
.order-row__date { font-family: var(--f-util); font-size: 0.7rem; color: var(--muted); }
.order-row__items { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.8rem; max-width: none; }
.order-row__foot {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; border-top: 1px solid var(--rule); padding-top: 0.7rem;
  font-family: var(--f-util); font-size: 0.75rem; color: var(--muted);
}
.order-row__foot strong {
  font-family: var(--f-display); font-weight: 800; font-stretch: 112%;
  font-size: 1.05rem; color: var(--ink);
}

.pill {
  font-family: var(--f-util); font-size: 0.64rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.32rem 0.6rem;
  border: 1px solid var(--rule); white-space: nowrap; flex: none;
}
.pill--paid          { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.pill--pending       { border-color: var(--heat); color: var(--heat-deep); }
.pill--in_production { border-color: var(--ink); color: var(--ink); }
.pill--ready         { border-color: var(--ink); background: var(--mat); }
.pill--cancelled     { color: var(--muted); text-decoration: line-through; }

.signed-in-note {
  font-family: var(--f-util); font-size: 0.72rem;
  background: var(--mat); border-left: 2px solid var(--ink);
  padding: 0.8rem 1rem; margin-bottom: 1.4rem;
}
.signed-in-note[hidden] { display: none !important; }

/* ---------- Staff order controls ---------- */

.staff-badge {
  font-family: var(--f-util); font-size: 0.6rem; letter-spacing: 0.12em;
  background: var(--heat); color: var(--paper);
  padding: 0.22rem 0.5rem; border-radius: var(--radius);
}
.orders-count {
  font-family: var(--f-util); font-size: 0.68rem;
  color: var(--muted); margin-left: auto; letter-spacing: 0;
}
.order-row__who {
  font-family: var(--f-util); font-size: 0.72rem; color: var(--ink);
  margin: 0 0 0.5rem; max-width: none;
}
.order-row__controls {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem;
  border-top: 1px dashed var(--rule); margin-top: 0.9rem; padding-top: 0.9rem;
}
.order-row__controls > span:first-child {
  font-family: var(--f-util); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.order-row__controls select { width: auto; min-width: 11rem; font-size: 0.82rem; padding: 0.4rem 0.6rem; }
.order-row__saved { font-family: var(--f-util); font-size: 0.68rem; color: var(--heat-deep); }
