/* ============================================================
   TRUE CENTRE GUELPH — ink-sketch cinematic
   paper #f2efe7 · ink #14100e · racing red #d61f26
   ============================================================ */
:root {
  --paper: #f2efe7;
  --ink: #14100e;
  --red: #d61f26;
  --dim: rgba(20, 16, 14, 0.55);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.serif { font-family: var(--serif); }
.dim { color: var(--dim); }

/* 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.08 0 0 0 0 0.06 0 0 0 0 0.05 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s 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); }
}

/* fixed nav */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 34px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  color: var(--ink);
  mix-blend-mode: multiply;
}
.hud-brand { font-weight: 600; font-size: 14px; display: flex; align-items: center; }
.hud-logo { height: 46px; width: auto; display: block; }
.footer-logo { height: 76px; width: auto; background: var(--paper); padding: 10px 16px; margin-bottom: 14px; }
.hud-right { border: 1.5px solid var(--ink); padding: 7px 14px; font-weight: 600; background: rgba(242,239,231,0.6); }
.hud-right:hover { background: var(--red); border-color: var(--red); color: var(--paper); }
.hud-mid { color: var(--dim); }

/* ============ cinematic scrub sections ============ */
.cinematic { position: relative; height: 560vh; }
.cinematic .sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.cinematic canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(242,239,231,0.55) 100%);
}

/* overlay copy — BOLD + readable over animation, slow fades handled by engine */
.overlay {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 0 6vw; pointer-events: none;
}
.line { position: absolute; width: min(920px, 90vw); left: 50%; translate: -50% 0; opacity: 0; }
.line.kicker { top: 27%; }
.line.serif { top: 36%; }
.line.sub { top: 62%; }
.kicker {
  font-family: var(--mono); font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: 0.35em; font-weight: 600; color: var(--red);
  text-shadow: 0 0 14px rgba(242,239,231,0.95);
}
.overlay h1 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(2.4rem, 6.4vw, 5.6rem);
  line-height: 1.04; letter-spacing: 0.045em; color: var(--ink);
  text-shadow:
    0 0 10px rgba(242,239,231,0.95), 0 0 28px rgba(242,239,231,0.9),
    0 2px 44px rgba(242,239,231,0.85);
}
.overlay .sub {
  font-size: clamp(1rem, 1.7vw, 1.35rem); font-weight: 700;
  color: var(--ink); max-width: 640px; line-height: 1.55;
  text-shadow: 0 0 10px rgba(242,239,231,0.95), 0 0 26px rgba(242,239,231,0.9);
}

/* telemetry corners */
.telemetry {
  position: absolute; z-index: 6; font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.16em; color: var(--dim); font-weight: 600;
}
.tl { top: 74px; left: 34px; } .tr { top: 74px; right: 34px; }
.bl { bottom: 30px; left: 34px; } .br { bottom: 30px; right: 34px; }

.progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(20,16,14,0.12); z-index: 7; }
.progress-fill { height: 100%; width: 0; background: var(--red); }
.scroll-hint {
  position: absolute; bottom: 54px; left: 50%; translate: -50% 0; z-index: 7;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.3em; color: var(--ink);
  transition: opacity 0.6s ease;
}

/* ============ static panels ============ */
.panel { position: relative; z-index: 10; background: var(--paper); padding: 14vh 8vw; }
.panel-head { max-width: 760px; margin-bottom: 8vh; }
.panel .kicker { position: static; margin-bottom: 14px; text-shadow: none; }
.panel h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 900; line-height: 1.08;
}

/* services — drafting-sheet work order */
.services { position: relative; overflow: hidden; }
.blueprint-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(20,16,14,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,16,14,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.panel-head em { color: var(--red); font-style: italic; }
.lede { margin-top: 16px; color: var(--dim); font-size: 1.05rem; max-width: 560px; line-height: 1.6; }
.svc-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc {
  background: rgba(255,255,255,0.72); padding: 42px 32px 56px; position: relative;
  border: 1.5px solid rgba(20,16,14,0.55);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
}
/* drafting corner ticks */
.svc-ticks, .svc-ticks::before { position: absolute; pointer-events: none; }
.svc-ticks { inset: 8px; }
.svc-ticks::before, .svc-ticks::after {
  content: ""; position: absolute; width: 14px; height: 14px;
}
.svc-ticks::before { top: 0; left: 0; border-top: 2px solid var(--red); border-left: 2px solid var(--red); }
.svc-ticks::after { bottom: 0; right: 0; border-bottom: 2px solid var(--red); border-right: 2px solid var(--red); }
.svc-no { font-family: var(--mono); color: var(--red); font-weight: 600; font-size: 12px; letter-spacing: 0.22em; }
.svc h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 900; margin: 14px 0 10px; }
.svc p { color: var(--dim); font-size: 0.95rem; line-height: 1.65; }
.svc-stamp {
  position: absolute; bottom: 16px; right: 18px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; font-weight: 600;
  color: var(--red); border: 1.5px solid var(--red); padding: 5px 9px;
  transform: rotate(-6deg) scale(0.9); opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.svc:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: 10px 10px 0 rgba(214,31,38,0.85); }
.svc:hover h3 { color: var(--red); }
.svc:hover .svc-stamp { opacity: 1; transform: rotate(-6deg) scale(1); }

/* process timeline */
.process { margin-top: 12vh; }
.process .kicker { position: static; margin-bottom: 30px; text-shadow: none; }
.process-line { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.process-line::before {
  content: ""; position: absolute; top: 21px; left: 4%; right: 4%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 10px, transparent 10px 18px);
  opacity: 0.4;
}
.process-line li { text-align: center; padding: 0 10px; position: relative; }
.process-line b {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 50%;
  font-family: var(--mono); font-size: 13px; position: relative; z-index: 1;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.process-line li:hover b { background: var(--red); border-color: var(--red); color: var(--paper); }
.process-line span { display: block; font-family: var(--serif); font-weight: 900; font-size: 1.15rem; margin-top: 14px; }
.process-line em { display: block; font-size: 0.82rem; color: var(--dim); margin-top: 6px; font-style: normal; line-height: 1.4; }

/* partner marquee */
.marquee { position: relative; z-index: 10; overflow: hidden; background: var(--ink); padding: 20px 0; border-top: 3px solid var(--red); border-bottom: 3px solid var(--red); }
.marquee-track {
  display: inline-flex; align-items: center; gap: 34px; white-space: nowrap;
  animation: marquee 36s linear infinite; will-change: transform;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.28em; font-weight: 600; color: var(--paper);
}
.marquee-track i { color: var(--red); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.stats { display: flex; gap: 8vw; justify-content: center; margin-top: 10vh; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { font-family: var(--serif); font-weight: 900; font-size: clamp(2.6rem, 5vw, 4.2rem); color: var(--red); display: block; }
.stat-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--dim); text-transform: uppercase; }

/* contact */
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; max-width: 1200px; margin: 0 auto; }
.info-list { list-style: none; margin: 4vh 0; }
.info-list li { padding: 16px 0; border-bottom: 1px solid rgba(20,16,14,0.15); font-size: 1.05rem; }
.info-list b { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.25em; color: var(--red); margin-bottom: 5px; text-transform: uppercase; }
.info-list a:hover { color: var(--red); }
.map-link { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; border-bottom: 2px solid var(--red); padding-bottom: 3px; font-weight: 600; }
.map-link:hover { color: var(--red); }

.book-form { display: flex; flex-direction: column; gap: 18px; background: #fff; border: 1.5px solid var(--ink); padding: 44px 40px; box-shadow: 8px 8px 0 rgba(214,31,38,0.9); }
.book-form label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); display: flex; flex-direction: column; gap: 8px; font-weight: 600; }
.book-form input, .book-form textarea {
  font-family: var(--sans); font-size: 1rem; padding: 12px 14px;
  border: 1px solid rgba(20,16,14,0.3); background: var(--paper); color: var(--ink); resize: vertical;
}
.book-form input:focus, .book-form textarea:focus { outline: 2px solid var(--red); border-color: var(--red); }
.cta {
  font-family: var(--mono); font-weight: 600; font-size: 14px; letter-spacing: 0.25em;
  background: var(--red); color: var(--paper); border: none; padding: 18px; cursor: pointer;
}
.cta:hover { background: var(--ink); }
.sent-msg { display: none; font-size: 0.95rem; color: var(--red); font-weight: 700; }
.book-form.sent .sent-msg { display: block; }

/* footer */
.footer {
  position: relative; z-index: 10; background: var(--ink); color: var(--paper);
  padding: 10vh 8vw; display: flex; flex-direction: column; gap: 10px; text-align: center; align-items: center;
}
.footer .serif { font-size: 1.8rem; font-weight: 900; letter-spacing: 0.06em; }
.footer .dim { color: rgba(242,239,231,0.5); font-family: var(--mono); font-size: 12px; letter-spacing: 0.15em; }

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

/* ============ mobile pass ============ */
@media (max-width: 820px) {
  .hud { padding: 14px 18px; }
  .hud-mid { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .contact-cols { grid-template-columns: 1fr; }
  .process-line { grid-template-columns: 1fr; gap: 26px; }
  .process-line::before { display: none; }
  .hud-logo { height: 36px; }
  .tl, .tr { top: 64px; } .tl, .bl { left: 18px; } .tr, .br { right: 18px; }
  .cinematic { height: 460vh; }
  .line.kicker { top: 24%; } .line.serif { top: 32%; } .line.sub { top: 60%; }
  .book-form { padding: 30px 22px; }
  .stats { gap: 40px; }
}
