/* ============================================================
   COLLEGE AUTO TECH — graphite on cream · drafting-sheet aesthetic
   ============================================================ */
:root {
  --paper:      #ece5d4;
  --paper-deep: #e3dac6;
  --ink:        #2e2a24;   /* graphite */
  --ink-soft:   #57503f;
  --ink-faint:  #8b8471;
  --accent:     #8f3b2a;   /* oxide red — stamped ink */
  --rule:       rgba(46, 42, 36, .28);
  --serif:  "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body:   "EB Garamond", Georgia, serif;
  --hand:   "Architects Daughter", "Segoe Print", cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- film grain overlay ---- */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  pointer-events: none; z-index: 90; opacity: .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.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.06'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1.1s steps(3) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-2%, 1%); }
  66% { transform: translate(1%, -2%); }
  100% { transform: translate(0, 0); }
}

/* ---- fixed nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 34px;
  background: linear-gradient(to bottom, rgba(236, 229, 212, .92), rgba(236, 229, 212, 0));
  font-family: var(--serif);
}
.nav-brand { font-size: 22px; font-weight: 700; letter-spacing: .06em; }
.nav-brand em { font-style: italic; color: var(--accent); }
.nav-mid { font-family: var(--hand); font-size: 13px; color: var(--ink-soft); letter-spacing: .08em; }
.nav-cta {
  font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: .08em;
  color: var(--ink); border: 1.5px solid var(--ink); padding: 8px 18px; border-radius: 2px;
  transition: all .25s ease; background: transparent;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

/* ---- cinematic scrub sections ---- */
.cinematic { height: 480vh; position: relative; }
.cinematic .sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: var(--paper);
}
.cinematic canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.paper-vignette {
  position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 180px rgba(87, 80, 63, .35);
}

/* overlay copy */
.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;
  background: radial-gradient(ellipse 62% 58% at center, rgba(236,229,212,.9) 0%, rgba(236,229,212,.62) 48%, rgba(236,229,212,0) 74%);
  padding: 56px 80px; border-radius: 50%;
}
.kicker {
  font-family: var(--hand); font-size: 15px; letter-spacing: .14em;
  color: var(--accent); margin-bottom: 14px;
}
.hero-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(52px, 9vw, 118px); line-height: 1.02;
  letter-spacing: .12em; text-transform: none;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(236,229,212,.8);
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-tag {
  margin-top: 18px; font-family: var(--serif); font-style: italic;
  font-size: clamp(19px, 2.4vw, 28px); letter-spacing: .16em; color: var(--ink);
  text-shadow: 0 0 6px rgba(236,229,212,.95), 0 0 14px rgba(236,229,212,.9);
}
.big-line {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(38px, 6vw, 84px); line-height: 1.08; letter-spacing: .04em;
  color: var(--ink); text-shadow: 0 1px 0 rgba(236,229,212,.85);
}
.story-line p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(19px, 2.3vw, 27px); line-height: 1.65;
  color: var(--ink); max-width: 60ch;
  text-shadow: 0 1px 0 rgba(236,229,212,.9);
}

/* corner plates — drafting title-block stamps */
.plate {
  position: absolute; z-index: 5; font-family: var(--hand);
  font-size: 12px; letter-spacing: .22em; color: var(--ink-soft);
  border: 1px solid var(--rule); padding: 5px 12px; background: rgba(236,229,212,.55);
}
.plate.tl { top: 76px; left: 34px; }
.plate.tr { top: 76px; right: 34px; }
.plate.bl { bottom: 30px; left: 34px; }
.plate.br { bottom: 30px; right: 34px; }

.progress {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: rgba(46,42,36,.12); z-index: 6;
}
.progress-fill { height: 100%; width: 0; background: var(--accent); }
.scroll-hint {
  position: absolute; bottom: 46px; left: 50%; transform: translateX(-50%);
  font-family: var(--hand); font-size: 14px; letter-spacing: .3em; color: var(--ink-soft);
  transition: opacity .5s ease; z-index: 6;
}

/* ---- stats strip ---- */
.strip {
  display: flex; justify-content: center; gap: 7vw; flex-wrap: wrap;
  padding: 90px 6vw; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  background: var(--paper-deep);
}
.stat { text-align: center; }
.stat-num {
  display: block; font-family: var(--serif); font-weight: 700;
  font-size: clamp(44px, 5vw, 68px); color: var(--accent); line-height: 1;
}
.stat-label { font-family: var(--hand); font-size: 14px; letter-spacing: .1em; color: var(--ink-soft); }

/* ---- section headers ---- */
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.sec-head h2 {
  font-family: var(--serif); font-weight: 600; letter-spacing: .08em;
  font-size: clamp(40px, 5.4vw, 66px); margin: 6px 0 18px;
}
.sec-sub { color: var(--ink-soft); font-size: 19px; }

/* ---- services ---- */
.services { padding: 120px 6vw 100px; }
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  max-width: 1200px; margin: 0 auto;
}
.svc-card {
  border: 1.5px solid var(--rule); border-radius: 2px;
  padding: 34px 30px 28px; background: rgba(255, 252, 243, .45);
  position: relative; transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 2px 3px 0 rgba(46,42,36,.12);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 4px 7px 0 rgba(46,42,36,.16); }
.svc-card h3 {
  font-family: var(--serif); font-weight: 600; font-size: 26px;
  letter-spacing: .04em; margin-bottom: 10px;
}
.svc-card p { color: var(--ink-soft); font-size: 17px; margin-bottom: 16px; }
.svc-card .price {
  font-family: var(--hand); font-size: 13.5px; letter-spacing: .04em;
  color: var(--accent); border-top: 1px dashed var(--rule); padding-top: 12px; display: block;
}
.svc-note { max-width: 760px; margin: 54px auto 0; text-align: center; }
.svc-note p { font-style: italic; color: var(--ink-soft); font-size: 18px; }

/* ---- visit / appointment ---- */
.visit { padding: 120px 6vw 110px; background: var(--paper-deep); border-top: 1px solid var(--rule); }
.visit-grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 54px;
  max-width: 1150px; margin: 0 auto; align-items: start;
}
.visit-info h3, .appt-form h3 {
  font-family: var(--serif); font-weight: 600; font-size: 28px;
  letter-spacing: .06em; margin-bottom: 16px;
}
.visit-info h3 { margin-top: 34px; }
.visit-info h3:first-child { margin-top: 0; }
.hours { list-style: none; }
.hours li {
  display: flex; justify-content: space-between; padding: 9px 2px;
  border-bottom: 1px dashed var(--rule); font-size: 18px;
}
.hours-note { font-family: var(--hand); font-size: 14px !important; color: var(--accent); border-bottom: none !important; }
.contact-line { margin-bottom: 8px; font-size: 18px; }
.map-frame {
  margin-top: 26px; border: 1.5px solid var(--rule); border-radius: 2px;
  box-shadow: 3px 4px 0 rgba(46,42,36,.12); overflow: hidden;
  filter: grayscale(.85) sepia(.25) contrast(.95);
}
.map-frame iframe { width: 100%; height: 300px; border: 0; display: block; }

/* form */
.appt-form {
  border: 1.5px solid var(--rule); border-radius: 2px;
  background: rgba(255, 252, 243, .5); padding: 40px 38px;
  box-shadow: 3px 4px 0 rgba(46,42,36,.12);
}
.appt-form label {
  display: block; font-family: var(--hand); font-size: 13.5px;
  letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 16px;
}
.req { color: var(--accent); }
.appt-form input, .appt-form select, .appt-form textarea {
  display: block; width: 100%; margin-top: 6px;
  font-family: var(--body); font-size: 17px; color: var(--ink);
  background: transparent; border: none; border-bottom: 1.5px solid var(--rule);
  padding: 7px 2px; outline: none; border-radius: 0;
}
.appt-form input:focus, .appt-form select:focus, .appt-form textarea:focus { border-bottom-color: var(--accent); }
.appt-form textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.submit-btn {
  font-family: var(--serif); font-weight: 600; font-size: 18px; letter-spacing: .12em;
  color: var(--paper); background: var(--ink); border: none; cursor: pointer;
  padding: 14px 34px; margin-top: 8px; border-radius: 2px;
  transition: background .25s ease;
}
.submit-btn:hover { background: var(--accent); }
.form-done { margin-top: 18px; font-style: italic; color: var(--accent); }

/* ---- footer ---- */
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 26px 34px; font-family: var(--hand); font-size: 13px;
  color: var(--ink-soft); border-top: 1px solid var(--rule);
}

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

/* ---- mobile pass ---- */
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr; max-width: 520px; }
  .visit-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .nav { padding: 14px 18px; }
  .nav-mid { display: none; }
  .plate.tr, .plate.bl { display: none; }
  .plate.tl { top: 66px; left: 18px; }
  .plate.br { bottom: 24px; right: 18px; }
  .strip { gap: 34px; padding: 60px 6vw; }
  .cinematic { height: 420vh; }
  .story-line p br.bp { display: none; }
  .appt-form { padding: 30px 22px; }
}
