/* ============================================================
   TILLOW BUILT — v2 DRAFTING-SHEET RESKIN (service pages)
   Linked AFTER a v97 page's inline styles so it wins the cascade.
   Chrome only: token remap + grounds + type. Never touches forms,
   schema, tracking or tool JS. The --white/--off-white remap turns
   every light section into a paper plate; --navy-deep/--navy-dark
   turn the dark sections into the charcoal sheet.
   ============================================================ */
:root {
  --navy-deep: #14171b;
  --navy-dark: #1a1f28;
  --white: #f4f1ea;
  --off-white: #ece8dd;
  --border-dark: #d8d2c4;
  --accent-pale: #e9e2d2;
  --tb-timber: #b8945d; --tb-timber-hover: #c9a56c;
  --tb-timber-ink: #7e6230; --tb-timber-bright: #c9a971;
  --tb-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --tb-display: 'Inter Tight', 'Inter', sans-serif;
}
body {
  background-color: #14171b;
  background-image: linear-gradient(135deg, #14171b 0%, #1a1f28 100%);
}
/* the drafting sheet: paper grain + 8/40px blueprint grid */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/></svg>"),
    linear-gradient(rgba(42,81,168,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,81,168,0.12) 1px, transparent 1px),
    linear-gradient(rgba(42,81,168,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,81,168,0.05) 1px, transparent 1px);
  background-size: 200px 200px, 40px 40px, 40px 40px, 8px 8px, 8px 8px;
  transform: translate3d(var(--paper-x, 0px), var(--paper-y, 0px), 0);
}
body > * { position: relative; z-index: 1; }
/* nav (and its open dropdown) must sit ABOVE every content section, or the
   Services menu renders behind the hero and becomes un-hoverable/un-clickable.
   `body > nav` outranks `body > *`, so it wins regardless of source order. */
/* keep the nav pinned on scroll (the body > * relative rule above was
   knocking nav out of its fixed position, so the hamburger scrolled away
   on mobile). body > nav outranks body > *, so sticky wins. */
body > nav { z-index: 1000; position: sticky; top: 0; }
h1, h2, h3 { font-family: var(--tb-display); }

/* hero opens straight onto the sheet — no glow, so it reads as the same flat
   drafting sheet as the home page (the gold glow was the one-sided orange cast) */
.hero { background: transparent; }
.hero::before { background: none; }
.eyebrow {
  font-family: var(--tb-mono); border-radius: 0; border-color: rgba(201,169,113,0.35);
  color: var(--tb-timber-bright); letter-spacing: .18em;
}
.pill { font-family: var(--tb-mono); border-radius: 0; letter-spacing: .08em; }
.hero h1 span { color: var(--tb-timber-bright); font-style: normal; }
.label-tag { font-family: var(--tb-mono); letter-spacing: .14em; border-radius: 0; }
.btn-primary {
  border-radius: 4px; background: var(--tb-timber); color: #14171b;
  box-shadow: 0 8px 24px -8px rgba(184,148,93,0.4);
}
.btn-primary:hover { background: var(--tb-timber-hover); }
.btn-secondary { border-radius: 4px; }

/* light sections become paper plates */
.section { background: var(--white); }
.section.diff, .section.sample-sec, .section.map-bg, .section.process-bg { background: var(--off-white); }
.section.contact-bg { background: linear-gradient(135deg, #14171b 0%, #1a1f28 100%); }
.breadcrumb { background: transparent; border-bottom: 1px solid rgba(243,240,233,0.10); }
.breadcrumb a { color: var(--tb-timber-bright); }
.breadcrumb .sep, .breadcrumb .here { color: rgba(243,240,233,0.55); }

/* nav joins the family */
nav { background: rgba(20,23,27,0.88); border-bottom: 1px solid rgba(184,148,93,0.18); }
.nav-links a { font-family: var(--tb-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.dropdown { background: #1a1f28; border-radius: 6px; }
.float-cta { background: #b8945d; color: #14171b; box-shadow: 0 12px 28px rgba(184,148,93,0.30); }

/* ============================================================
   MOBILE APP-GRADE POLISH (service pages share this sheet, and it
   loads after their inline <style>, so equal-specificity rules here
   win the cascade). Reversible: delete this block to revert.
   ============================================================ */

/* iOS auto-zooms the page whenever a focused control is < 16px. Pin every
   form control to 16px so tapping a field never jars the layout. (Visually
   identical to the old .96rem; this is the single biggest mobile-lead fix.) */
.form-field input, .form-field select, .form-field textarea,
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  font-size: 16px;
}

/* Sticky call pill clears the iPhone home-indicator (needs viewport-fit=cover) */
.float-cta {
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  min-height: 44px; box-sizing: border-box;
}

/* Tap targets to the 44px Apple/WCAG minimum */
.v47-btn-insta, .heritage-btn, .heritage-stripe-btn {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
}

@media (max-width: 768px) {
  /* desktop hero/section padding is built for a 1440px sheet; tighten it so
     mobile reads like an app screen, not a long scroll. nav still clears. */
  .hero { padding: 104px 5% 64px; }
  .section { padding: 64px 5%; }
  /* footer links get a real tap row */
  footer li a { display: inline-block; padding: 0.35rem 0; }
  /* mobile: tame tall portrait media. The project galleries and the award photo
     are 4/5 portraits (~52% of the screen each); a landscape 4/3 crop keeps them
     well-balanced and roughly halves the scroll without cutting the subject. */
  .project-card, .v47-award-photo-wrap { aspect-ratio: 4 / 3; }
}

@media (max-width: 520px) {
  /* portfolio thumbnails read as work, not specks, at phone width */
  .insta-posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
