/* ============================================================
   TRIANGLE SEWING CENTRE — parchment blueprint theme
   ============================================================ */
:root {
  --parchment: #efe4cd;
  --parchment-deep: #e6d7ba;
  --ink: #0a2145;
  --ink-soft: #122c56;
  --verdigris: #23514b;
  --rose: #8e3d52;
  --copper: #5f4118;
  --serif: "Cormorant Garamond", Georgia, serif;
  --fell: "IM Fell English", Georgia, serif;
  --sans: "Jost", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--serif);
  overflow-x: hidden;
}

/* film grain */
.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.24 0 0 0 0 0.2 0 0 0 0 0.15 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.4s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 25% { transform: translate(-2%,1%); }
  50% { transform: translate(1%,-2%); } 75% { transform: translate(-1%,2%); }
  100% { transform: translate(0,0); }
}

/* topbar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: linear-gradient(to bottom, rgba(239,228,205,0.92), rgba(239,228,205,0));
}
.brand { font-family: var(--fell); font-size: 1.25rem; letter-spacing: 0.06em; }
.brand em { color: var(--verdigris); font-style: italic; }
.topbar-mid { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); }
.topbar-cta {
  font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--parchment); background: var(--verdigris); text-decoration: none;
  padding: 0.55rem 1.2rem; border-radius: 2px; transition: background 0.3s;
}
.topbar-cta:hover { background: var(--copper); }

/* ============ cinematic scrub sections ============ */
.cinematic { height: 460vh; position: relative; }
.cinematic .sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.cinematic canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wash {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(60,50,39,0.28) 100%),
    linear-gradient(to bottom, rgba(239,228,205,0.35), transparent 22%, transparent 78%, rgba(239,228,205,0.45));
}
.overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  text-align: center; pointer-events: none; padding: 0 6vw;
}
.line { grid-area: 1 / 1; opacity: 0; will-change: opacity, transform; }
/* parchment plaque behind every overlay line so copy stays legible over the film */
.overlay .line {
  background: #f7efdd;
  border: 1px solid rgba(60,50,39,0.22);
  box-shadow: 0 0 0 6px rgba(243,233,212,0.6), 0 12px 34px rgba(0,0,0,0.28);
  border: 2px solid rgba(0,0,0,0.35);
  padding: 0.65em 1.2em; border-radius: 2px;
}
.kicker {
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.42em;
  text-transform: uppercase; color: #143c36; font-weight: 600;
}
.overlay .kicker { position: relative; top: -9.5rem; }
.title {
  font-family: var(--fell); font-weight: 400; font-size: clamp(2.6rem, 7vw, 5.6rem);
  letter-spacing: 0.04em; color: var(--ink);
  text-shadow: 0 1px 0 rgba(243,233,212,0.9);
}
.tagline {
  font-style: italic; font-size: clamp(1.05rem, 2.2vw, 1.5rem); color: var(--ink-soft);
  position: relative; top: 5.6rem; letter-spacing: 0.08em;
}
.mid {
  font-family: var(--serif); font-weight: 600; font-style: italic;
  font-size: clamp(1.6rem, 3.6vw, 2.9rem); line-height: 1.35; color: var(--ink);
}
.folio {
  position: absolute; font-family: var(--sans); font-size: 0.68rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft);
  background: rgba(243,233,212,0.9); padding: 0.3rem 0.7rem; border: 1px solid rgba(60,50,39,0.3);
}
.folio.tl { top: 4.6rem; left: 2rem; }
.folio.br { bottom: 2rem; right: 2rem; }
.progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(60,50,39,0.15); }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--verdigris), var(--rose)); }
.scroll-hint {
  position: absolute; bottom: 2.4rem; left: 50%; transform: translateX(-50%);
  font-family: var(--fell); font-style: italic; font-size: 0.95rem; color: var(--ink);
  background: rgba(243,233,212,0.85); padding: 0.25rem 0.9rem; border-radius: 2px;
  transition: opacity 0.5s; animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,8px);} }

/* ============ parchment panels ============ */
.panel {
  position: relative; z-index: 2; padding: 7rem 6vw 8rem; text-align: center;
  background:
    radial-gradient(ellipse 60% 40% at 15% 10%, rgba(78,125,118,0.10), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(194,128,143,0.12), transparent 60%),
    var(--parchment);
}
.rule { display: flex; align-items: center; gap: 1rem; justify-content: center; margin-bottom: 2rem; color: var(--copper); }
.rule::before, .rule::after { content: ""; height: 1px; width: min(180px, 24vw); background: linear-gradient(90deg, transparent, var(--copper)); }
.rule::after { background: linear-gradient(90deg, var(--copper), transparent); }
.panel .kicker { display: block; margin-bottom: 1rem; }
.panel-title { font-family: var(--fell); font-weight: 400; font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 1.4rem; }
.panel-lede { max-width: 620px; margin: 0 auto 4rem; font-size: 1.2rem; font-style: italic; color: var(--ink-soft); line-height: 1.7; }

/* marques */
.marque-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; max-width: 1150px; margin: 0 auto 5rem; }
.marque {
  background: rgba(255,250,238,0.55); border: 1px solid rgba(154,114,71,0.35);
  padding: 1.4rem 1.4rem 2rem; box-shadow: 0 14px 40px rgba(60,50,39,0.12);
  transition: transform 0.5s ease;
}
.marque:hover { transform: translateY(-8px) rotate(-0.4deg); }
.marque-plate { overflow: hidden; border: 1px solid rgba(60,50,39,0.25); margin-bottom: 1.4rem; }
.marque-plate img { width: 100%; height: 200px; object-fit: cover; display: block; filter: sepia(0.15); transition: transform 1.4s ease; }
.marque:hover .marque-plate img { transform: scale(1.07); }
.marque h3 { font-family: var(--fell); font-size: 1.6rem; font-weight: 400; margin-bottom: 0.6rem; color: var(--verdigris); }
.marque p { font-size: 1.02rem; line-height: 1.65; color: var(--ink-soft); }

/* stats */
.stats { display: flex; justify-content: center; gap: clamp(2rem, 6vw, 5rem); flex-wrap: wrap; }
.stat-num { font-family: var(--fell); font-size: clamp(2rem, 4vw, 3rem); color: var(--copper); display: block; }
.stat-label { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); }

/* ledger */
.ledger { max-width: 760px; margin: 0 auto; text-align: left; }
.ledger-row {
  display: flex; gap: 1.6rem; padding: 1.8rem 0.4rem; align-items: baseline;
  border-bottom: 1px solid rgba(154,114,71,0.35);
}
.ledger-row:first-child { border-top: 1px solid rgba(154,114,71,0.35); }
.ledger-no { font-family: var(--fell); font-style: italic; font-size: 1.3rem; color: var(--rose); min-width: 2.4rem; }
.ledger-row h3 { font-family: var(--fell); font-weight: 400; font-size: 1.45rem; margin-bottom: 0.3rem; }
.ledger-row p { color: var(--ink-soft); line-height: 1.6; font-size: 1.05rem; }

/* visit */
.visit-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; max-width: 1150px; margin: 0 auto; text-align: left; align-items: start; }
.visit-map { perspective: 1100px; }
.map-tilt {
  position: relative; transform: rotateX(16deg) rotateZ(-2deg); transform-style: preserve-3d;
  border: 1px solid rgba(154,114,71,0.5); box-shadow: 0 40px 70px rgba(60,50,39,0.3);
  transition: transform 0.8s ease; overflow: hidden;
}
.visit-map:hover .map-tilt { transform: rotateX(6deg) rotateZ(0deg) scale(1.02); }
.map-tilt img { width: 100%; display: block; }
.map-pin { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -100%); text-align: center; }
.pin-dot {
  display: block; width: 14px; height: 14px; margin: 0 auto; border-radius: 50%;
  background: var(--rose); border: 2px solid var(--parchment); box-shadow: 0 0 0 3px rgba(194,128,143,0.4);
  animation: pinpulse 2s ease-in-out infinite;
}
@keyframes pinpulse { 0%,100% { box-shadow: 0 0 0 3px rgba(194,128,143,0.4);} 50% { box-shadow: 0 0 0 10px rgba(194,128,143,0.05);} }
.pin-label {
  display: inline-block; margin-top: 0.4rem; font-family: var(--sans); font-size: 0.68rem;
  letter-spacing: 0.18em; text-transform: uppercase; background: rgba(239,228,205,0.9);
  border: 1px solid rgba(60,50,39,0.3); padding: 0.25rem 0.6rem;
}
.map-link { display: inline-block; margin-top: 1.2rem; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--verdigris); text-decoration: none; border-bottom: 1px solid var(--verdigris); }

.hours { background: rgba(255,250,238,0.55); border: 1px solid rgba(154,114,71,0.35); padding: 2rem; margin-bottom: 2rem; }
.hours h3, .cta-form h3 { font-family: var(--fell); font-weight: 400; font-size: 1.6rem; margin-bottom: 1.2rem; color: var(--verdigris); }
.hours dl div { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px dashed rgba(154,114,71,0.35); }
.hours dt { font-style: italic; color: var(--ink-soft); }
.hours dd { font-weight: 600; }
.contact-lines { margin-top: 1.2rem; line-height: 1.8; font-size: 1.05rem; }
.contact-lines a { color: var(--copper); text-decoration: none; }

.cta-form { background: rgba(255,250,238,0.55); border: 1px solid rgba(154,114,71,0.35); padding: 2rem; }
.cta-form label { display: block; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.1rem; }
.cta-form input, .cta-form textarea {
  display: block; width: 100%; margin-top: 0.4rem; padding: 0.7rem 0.8rem;
  font-family: var(--serif); font-size: 1.05rem; color: var(--ink);
  background: rgba(239,228,205,0.6); border: 1px solid rgba(60,50,39,0.3); outline: none;
}
.cta-form input:focus, .cta-form textarea:focus { border-color: var(--verdigris); }
.cta-form button {
  width: 100%; padding: 0.9rem; margin-top: 0.4rem; cursor: pointer;
  font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--parchment); background: var(--verdigris); border: none; transition: background 0.3s;
}
.cta-form button:hover { background: var(--copper); }
.form-note { margin-top: 1rem; font-style: italic; color: var(--verdigris); }

/* footer */
.footer { text-align: center; padding: 4rem 6vw 3rem; background: var(--parchment-deep); border-top: 1px solid rgba(154,114,71,0.4); }
.footer .brand { font-size: 1.5rem; margin-bottom: 0.8rem; }
.footer p { color: var(--ink-soft); line-height: 1.9; }
.footer-fine { font-size: 0.9rem; font-style: italic; }

/* reveals */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ mobile pass ============ */
@media (max-width: 820px) {
  .topbar { padding: 0.8rem 1.2rem; }
  .topbar-mid { display: none; }
  .cinematic { height: 380vh; }
  .overlay .kicker { top: -11.5rem; }
  .tagline { top: 9.5rem; }
  .title { font-size: 2.2rem; }
  .marque-grid, .visit-grid { grid-template-columns: 1fr; }
  .stats { gap: 2rem; }
  .folio.tl { display: none; }
  .map-tilt { transform: rotateX(8deg); }
  .ledger-row { gap: 1rem; }
}

/* ============ BOLD PASS — heavier text everywhere ============ */
body { font-weight: 600; }
.panel-lede, .marque p, .ledger-row p, .footer p, .tagline,
.hours dt, .contact-lines, .form-note { font-weight: 600; }
.mid, .hours dd { font-weight: 700; }
.kicker, .stat-label, .topbar-mid, .cta-form label, .folio,
.map-link, .topbar-cta, .cta-form button { font-weight: 600; }
/* IM Fell has no bold cut — thicken it with a stroke */
.title, .panel-title, .marque h3, .ledger-row h3, .hours h3, .cta-form h3,
.brand, .ledger-no, .stat-num, .scroll-hint {
  -webkit-text-stroke: 0.45px currentColor;
  text-stroke: 0.45px currentColor;
}
.title { -webkit-text-stroke: 0.8px currentColor; }
.cta-form input, .cta-form textarea { font-weight: 600; }

/* ============ DARK BLUE WRITING PASS ============ */
body, .title, .mid, .panel-title, .ledger-row h3, .ledger-row p,
.marque p, .panel-lede, .hours dd, .contact-lines, .footer p,
.cta-form input, .cta-form textarea { color: #0a2145; }
.kicker, .overlay .kicker { color: #123a6e; }
.marque h3, .hours h3, .cta-form h3, .brand em, .map-link, .form-note { color: #14417b; }
.ledger-no, .stat-num, .rule { color: #2a4a80; }
.tagline, .hours dt, .stat-label, .topbar-mid, .cta-form label, .folio, .scroll-hint { color: #122c56; }
.contact-lines a { color: #14417b; }
.map-link { border-bottom-color: #14417b; }

/* ============ REDESIGN — always-visible scrolling copy cards ============ */
.cinematic { position: relative; }
.copy-track { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.copy-card {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: min(88vw, 780px); text-align: center;
  background: #f9f2e2;
  border: 2px solid #0a2145;
  box-shadow: 0 0 0 6px rgba(249,242,226,0.75), 0 18px 44px rgba(10,33,69,0.35);
  border-radius: 3px; padding: clamp(1.4rem, 3.5vw, 2.6rem);
  pointer-events: auto;
}
.copy-card .kicker { position: static; display: block; margin-bottom: 0.9rem; }
.copy-card .title { font-size: clamp(2.3rem, 6vw, 5rem); line-height: 1.1; }
.copy-card .tagline { position: static; margin-top: 0.9rem; }
.copy-card .mid { font-size: clamp(1.5rem, 3.2vw, 2.6rem); }
.copy-card .hint {
  margin-top: 1.4rem; font-family: var(--fell); font-style: italic;
  font-size: 1.05rem; color: #122c56;
}
/* everything is visible, always — no fade-in gating anywhere */
.reveal, .line, .stat-num { opacity: 1 !important; transform: none !important; }
