/* redesignme.uk — "Night Rebuild" design system
   A dark, atmospheric studio built for a business that rebuilds tired
   small-business websites. Bg reads like a workshop after hours; brass
   accent traces the "measure twice, rebuild once" idea; corner-bracket
   frames borrow from viewfinders and blueprints — precision, not decoration.

   bg #121009 · raised #1C1712 · ink #F4EFE6 · brass #E3A73E · ember #FF5A36
*/

:root {
  --bg: #121009;
  --bg-raised: #1C1712;
  --bg-raised-2: #241E15;
  --ink: #F4EFE6;
  --ink-dim: #B3A896;
  --ink-faint: #7D745F;
  --brass: #E3A73E;
  --brass-deep: #A97A24;
  --ember: #FF5A36;
  --dark-ink: #14120B;
  --rule: rgba(244, 239, 230, 0.14);
  --rule-strong: rgba(244, 239, 230, 0.26);

  --display: "Fraunces", serif;
  --body: "Work Sans", sans-serif;
  --mono: "JetBrains Mono", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.6;
  overflow-x: hidden;
}

/* fine film-grain, fixed, atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

/* corner-bracket frame — used on the slider, gallery, panels */
.bracket {
  position: relative;
  --bracket-color: var(--brass);
  background-image:
    linear-gradient(var(--bracket-color), var(--bracket-color)), linear-gradient(var(--bracket-color), var(--bracket-color)),
    linear-gradient(var(--bracket-color), var(--bracket-color)), linear-gradient(var(--bracket-color), var(--bracket-color)),
    linear-gradient(var(--bracket-color), var(--bracket-color)), linear-gradient(var(--bracket-color), var(--bracket-color)),
    linear-gradient(var(--bracket-color), var(--bracket-color)), linear-gradient(var(--bracket-color), var(--bracket-color));
  background-size: 26px 2px, 2px 26px, 26px 2px, 2px 26px, 26px 2px, 2px 26px, 26px 2px, 2px 26px;
  background-position: top -1px left -1px, top -1px left -1px, top -1px right -1px, top -1px right -1px,
    bottom -1px left -1px, bottom -1px left -1px, bottom -1px right -1px, bottom -1px right -1px;
  background-repeat: no-repeat;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px;
  max-width: 1180px;
  margin: 0 auto;
  background: linear-gradient(to bottom, var(--bg) 60%, transparent);
}
.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.wordmark .tld { color: var(--brass); }
nav { display: flex; align-items: center; gap: 30px; }
nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  text-decoration: none;
}
nav a:hover { color: var(--brass); }
nav .nav-cta {
  border: 1px solid var(--rule-strong);
  padding: 9px 16px;
  color: var(--ink);
}
nav .nav-cta:hover { border-color: var(--brass); color: var(--brass); }
@media (max-width: 720px) { .site-header nav a:not(.nav-cta) { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 0; overflow: hidden; }
.hero-glow {
  position: absolute;
  top: -140px; left: 50%;
  width: 900px; height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(227,167,62,0.16) 0%, rgba(227,167,62,0.05) 42%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.wrap.hero-inner { position: relative; z-index: 1; }
.kicker {
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brass);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--brass); display: inline-block; }

h1 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.6rem, 6.6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 16ch;
}
.strike { position: relative; color: var(--ink-faint); white-space: nowrap; }
.strike::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%; top: 52%;
  border-top: 3px solid var(--ember);
  transform: rotate(-1deg) scaleX(0);
  transform-origin: left center;
  animation: draw 0.5s 0.5s ease-out forwards;
}
@keyframes draw { to { transform: rotate(-1deg) scaleX(1); } }
h1 em {
  font-style: normal;
  color: var(--brass);
  position: relative;
}

.hero p.lede {
  margin-top: 30px;
  max-width: 52ch;
  font-size: 1.2rem;
  color: var(--ink-dim);
}
.hero p.lede b { color: var(--ink); font-weight: 600; }

/* ---------- before/after showpiece ---------- */
.ba-section { padding: 48px 0 0; }
.ba-wrap {
  padding: 20px;
  background-color: var(--bg-raised);
}
.ba-label-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-faint); padding: 0 4px 14px;
}
.ba-label-row .drag-hint { color: var(--brass); }
.ba {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  --cut: 50%;
  border: 1px solid var(--rule);
}
.ba .pane { position: absolute; inset: 0; padding: 6.5%; }
.pane.before {
  background: #C7C2AF;
  font-family: "Times New Roman", Times, serif;
  color: #222;
}
.pane.before .fake-h { font-size: 1.6rem; font-weight: bold; color: #1a1a8f; text-decoration: underline; }
.pane.before .fake-p { font-size: 0.82rem; margin-top: 10px; color: #2b2b2b; max-width: 34ch; }
.pane.before .fake-btn { display: inline-block; margin-top: 12px; padding: 4px 12px; background: #d4d0c8; border: 2px outset #fff; font-size: 0.78rem; }
.pane.before .fake-marquee { margin-top: 16px; background: #ffff99; font-size: 0.74rem; padding: 3px 8px; border: 1px solid #999; display: inline-block; }
.pane.after {
  background: linear-gradient(135deg, #17140D 0%, #0F0D08 100%);
  color: var(--ink);
  clip-path: inset(0 0 0 var(--cut));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
}
.pane.after::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 30%, rgba(227,167,62,0.16), transparent 55%);
}
.pane.after .fake-h { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2.1rem); letter-spacing: -0.01em; position: relative; }
.pane.after .fake-p { font-family: var(--body); margin-top: 12px; color: var(--ink-dim); max-width: 36ch; font-size: 0.92rem; position: relative; }
.pane.after .fake-btn {
  display: inline-block; margin-top: 18px; padding: 9px 20px;
  background: var(--brass); color: var(--dark-ink);
  font-family: var(--body); font-weight: 600; font-size: 0.85rem; position: relative;
}
.ba .divider { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 2px; background: var(--brass); box-shadow: 0 0 16px rgba(227,167,62,0.7); pointer-events: none; }
.ba .handle {
  position: absolute; top: 50%; left: var(--cut); transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brass); color: var(--dark-ink);
  display: grid; place-items: center;
  font-size: 0.7rem; font-family: var(--mono); letter-spacing: -0.05em;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.ba-slider {
  width: 100%; margin: 0; display: block; padding: 16px 4px 4px;
  appearance: none; background: transparent; cursor: ew-resize;
}
.ba-slider::-webkit-slider-runnable-track { height: 3px; background: var(--rule-strong); }
.ba-slider::-webkit-slider-thumb {
  appearance: none; margin-top: -8px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--brass); border: 3px solid var(--bg-raised); cursor: ew-resize;
}
.ba-slider::-moz-range-track { height: 3px; background: var(--rule-strong); }
.ba-slider::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--brass); border: 3px solid var(--bg-raised); cursor: ew-resize; }

@media (max-width: 700px) {
  .ba { aspect-ratio: 3 / 4; }
  .ba .pane { padding: 7% 6%; }
  .pane.before .fake-h { font-size: 1.1rem; }
  .pane.before .fake-p { max-width: 22ch; }
  .pane.after .fake-h { font-size: 1.15rem; max-width: 12ch; }
  .pane.after .fake-p { font-size: 0.8rem; max-width: 22ch; }
  .pane.after .fake-btn { margin-top: 12px; padding: 7px 14px; font-size: 0.78rem; }
}

.cta-row { margin-top: 34px; display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.btn {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 15px 28px;
  color: var(--dark-ink);
  background: var(--brass);
  display: inline-block;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: #F0BA5E; transform: translateY(-2px); }
.annotation {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.annotation .arrow { color: var(--ember); }

/* ---------- ticker / marquee divider ---------- */
.ticker-outer {
  margin-top: 64px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-raised);
  overflow: hidden;
  padding: 15px 0;
}
.ticker-track { display: flex; width: max-content; gap: 0; animation: ticker 32s linear infinite; }
.ticker-track span {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  padding: 0 26px;
  white-space: nowrap;
  border-right: 1px solid var(--rule);
}
.ticker-track span b { color: var(--brass); font-weight: 600; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- the deal ---------- */
.deal-section { padding: 72px 0 0; }
.deal {
  border: 1px solid var(--rule-strong);
  background-color: var(--bg-raised);
  padding: 38px 44px;
  position: relative;
}
.deal .tag {
  position: absolute; top: -13px; left: 32px;
  font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em;
  background: var(--ember); color: var(--dark-ink); padding: 4px 12px; font-weight: 700;
}
.deal p { font-size: 1.12rem; color: var(--ink-dim); max-width: 70ch; }
.deal strong { font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--ink); display: block; margin-bottom: 8px; }

/* ---------- sections generic ---------- */
section { padding: 108px 0 0; }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.section-head .no { font-family: var(--mono); font-size: 0.85rem; color: var(--brass); }
h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  letter-spacing: -0.01em;
}
.section-lede { max-width: 58ch; color: var(--ink-dim); margin: 18px 0 48px; font-size: 1.08rem; }

/* ---------- marquee gallery ---------- */
.filmstrip-outer { overflow: hidden; position: relative; }
.filmstrip-outer::before, .filmstrip-outer::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.filmstrip-outer::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.filmstrip-outer::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.filmstrip { display: flex; gap: 22px; width: max-content; animation: filmstrip 46s linear infinite; }
.filmstrip:hover { animation-play-state: paused; }
@keyframes filmstrip { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.frame {
  position: relative;
  flex: 0 0 auto;
  width: 300px;
  height: 380px;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.frame:nth-child(3n+2) { height: 340px; align-self: flex-end; }
.frame:nth-child(3n) { height: 410px; align-self: flex-start; }
.frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(0.55) sepia(0.18) contrast(1.05) brightness(0.85);
  transition: filter 0.4s ease, transform 0.4s ease;
}
.frame:hover img { filter: grayscale(0) sepia(0) contrast(1.02) brightness(0.95); transform: scale(1.04); }
.frame figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(10,9,5,0.92), transparent);
  font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink);
}
.frame figcaption .r { color: var(--brass); display: block; margin-top: 2px; }

/* ---------- how it works ---------- */
.steps { max-width: 900px; margin-top: 12px; }
.step {
  display: grid;
  grid-template-columns: 120px 1fr 130px;
  gap: 30px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
}
.steps .step:last-child { border-bottom: 1px solid var(--rule); }
.step .num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 4.2rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brass);
}
.step .step-text h3 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin-bottom: 10px; }
.step .step-text p { color: var(--ink-dim); font-size: 1rem; max-width: 48ch; }
.step .step-text p b { color: var(--ink); font-weight: 600; }
.step .thumb { width: 130px; height: 90px; overflow: hidden; justify-self: end; }
.step .thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) contrast(1.05) brightness(0.9); }
@media (max-width: 760px) {
  .step { grid-template-columns: 60px 1fr; }
  .step .num { font-size: 2.6rem; }
  .step .thumb { display: none; }
}

/* ---------- pricing (inverted brass panel) ---------- */
.pricing-outer { padding-top: 108px; }
.pricing-panel {
  background-color: var(--brass);
  color: var(--dark-ink);
  --bracket-color: var(--dark-ink);
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
}
@media (max-width: 860px) { .pricing-panel { grid-template-columns: 1fr; padding: 40px 28px; gap: 34px; } }
.pricing-panel .section-head .no { color: var(--dark-ink); opacity: 0.6; }
.pricing-panel h2 { color: var(--dark-ink); margin-bottom: 6px; }
.pricing-panel .pr-lede { color: rgba(20,18,11,0.72); font-size: 1.08rem; max-width: 40ch; }
.includes { list-style: none; }
.includes li {
  padding: 12px 0 12px 34px;
  position: relative;
  border-bottom: 1px solid rgba(20,18,11,0.18);
  font-size: 1.02rem;
  font-weight: 500;
}
.includes li::before {
  content: "→";
  position: absolute; left: 2px;
  font-family: var(--mono); font-weight: 700;
}

/* ---------- faq ---------- */
.faq-list { max-width: 780px; }
details {
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
}
details:first-of-type { border-top: 1px solid var(--rule); }
summary {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 0 40px 0 0;
  display: flex;
  gap: 18px;
  align-items: baseline;
}
summary::-webkit-details-marker { display: none; }
summary .q-no { font-family: var(--mono); font-size: 0.85rem; color: var(--brass); flex-shrink: 0; }
summary::after {
  content: "+";
  position: absolute; right: 6px; top: -2px;
  font-family: var(--mono); font-size: 1.2rem; color: var(--brass);
  transition: transform 0.15s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 14px; margin-left: 38px; color: var(--ink-dim); max-width: 60ch; }
details p b { color: var(--ink); }

/* ---------- contact / footer ---------- */
.contact { padding-bottom: 60px; text-align: left; }
.contact .section-lede { margin-bottom: 40px; }
.contact .email {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 6.5vw, 3.6rem);
  letter-spacing: -0.01em;
  color: var(--brass);
  text-decoration: none;
  display: inline-block;
  border-bottom: 2px solid var(--brass-deep);
  padding-bottom: 4px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.contact .email:hover { color: var(--ink); border-color: var(--ink); }

footer {
  margin-top: 100px;
  border-top: 1px solid var(--rule);
  padding: 30px 0 50px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-faint);
}
footer a { color: var(--ink-faint); text-decoration: none; }
footer a:hover { color: var(--brass); }
footer .flinks a { margin: 0 4px; }

/* ---------- legal pages ---------- */
.legal { padding: 80px 0 40px; max-width: 720px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 8px; font-family: var(--display); font-weight: 600; }
.legal .updated { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-faint); margin-bottom: 44px; }
.legal h2 { font-size: 1.25rem; margin: 40px 0 12px; font-family: var(--display); font-weight: 600; color: var(--brass); }
.legal p, .legal li { color: var(--ink-dim); font-size: 1.02rem; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal b { color: var(--ink); }
.legal-header { display: flex; justify-content: space-between; align-items: center; padding: 22px 32px; max-width: 1180px; margin: 0 auto; }
.legal-header nav a { margin-left: 20px; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-dim); text-decoration: none; }
.legal-header nav a:hover { color: var(--brass); }
@media (max-width: 600px) { .legal-header { padding: 18px 20px; } }

@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .site-header { padding: 18px 20px; }
  section { padding-top: 76px; }
  .pricing-outer { padding-top: 76px; }
  .deal { padding: 30px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .strike::after { animation: none; transform: rotate(-1deg) scaleX(1); }
  .ticker-track, .filmstrip { animation: none; }
  .ticker-outer, .filmstrip-outer { overflow-x: auto; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
