/* ProcBasket Engineering: site styles (Direction A, Blueprint) */
:root {
  --ink: #0F1A2A;
  --ink-2: #1B2738;
  --paper: #F4F2ED;
  --paper-2: #FBFAF7;
  --white: #FFFFFF;
  --line: #D9D5CC;
  --line-2: #CFCAC0;
  --steel: #4F5966;
  --steel-2: #3E4855;
  --muted-dark: #C9CDD3;
  --orange: #E8590C;
  --orange-ink: #C2410C;
  --orange-soft: #F59E5B;
  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 32px);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--orange-ink); }
:focus-visible { outline: 2px solid var(--orange-ink); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.mono { font-family: var(--font-mono); }
.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.lede { margin: 0; font-size: clamp(17px, 1.4vw, 19px); color: var(--steel-2); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  text-decoration: none; border-radius: 8px; padding: 14px 22px;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
  min-height: 48px;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange-ink); color: var(--white); }
.btn-primary:hover { background: #A63A0B; color: var(--white); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-2); color: var(--paper); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 242, 237, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.brand-sub { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.24em; color: var(--steel); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--ink); border-radius: 8px;
  width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.header-cta { display: flex; gap: 10px; align-items: center; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .header-cta .btn { display: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(15,26,42,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,26,42,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 85%);
}
.hero .wrap {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
  padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(64px, 7vw, 96px);
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(42px, 5.6vw, 80px); line-height: 0.98; letter-spacing: -0.035em;
}
.hero h1 .dot { color: var(--orange); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-figure { position: relative; margin: 0; }
.hero-frame { border: 1px solid var(--line-2); padding: 10px; background: var(--paper-2); }
.hero-frame img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.tick { position: absolute; width: 14px; height: 14px; border-color: var(--ink); border-style: solid; }
.tick.tl { top: -6px; left: -6px; border-width: 2px 0 0 2px; }
.tick.tr { top: -6px; right: -6px; border-width: 2px 2px 0 0; }
.tick.bl { bottom: -6px; left: -6px; border-width: 0 0 2px 2px; }
.tick.br { bottom: -6px; right: -6px; border-width: 0 2px 2px 0; }
.spec-card {
  position: absolute; left: -28px; bottom: -32px; width: min(300px, 80%);
  background: var(--white); border: 1px solid var(--line); padding: 20px 22px;
  box-shadow: 0 18px 40px rgba(15, 26, 42, 0.10);
}
.spec-card .eyebrow { font-size: 11px; margin-bottom: 12px; }
.spec-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; font-weight: 500; }
.spec-list li { display: flex; gap: 12px; }
.spec-list .n { font-family: var(--font-mono); color: var(--orange-ink); }

@media (max-width: 900px) {
  .tick { display: none; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .spec-card { position: relative; left: auto; bottom: auto; width: auto; margin-top: -40px; margin-left: 16px; margin-right: 16px; }
}

/* Clients */
.clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.clients .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 44px; padding-top: 28px; padding-bottom: 28px; }
.clients .eyebrow { font-size: 12px; }
.client-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 34px; }
.client-list li { font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 1.6vw, 21px); color: #5B6573; }

/* Sections */
.section { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(24px, 3vw, 32px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; }
.section-head .eyebrow { margin-bottom: 12px; }

.who .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 32px 48px; }
.who-text { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.5vw, 34px); line-height: 1.3; letter-spacing: -0.015em; }
@media (max-width: 760px) { .who .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Solutions grid */
.grid-lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cell { padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); transition: background .2s ease; }
.cell:hover { background: var(--white); }
.cell .code { margin: 0 0 28px; font-family: var(--font-mono); font-size: 13px; color: var(--orange-ink); }
.cell h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 23px; font-weight: 600; letter-spacing: -0.01em; }
.cell p { margin: 0; color: var(--steel); }
@media (max-width: 960px) { .grid-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-lines { grid-template-columns: minmax(0, 1fr); } }

/* Engineering band */
.band { background: var(--ink); color: var(--paper); margin-top: clamp(48px, 6vw, 72px); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 56px); align-items: center; padding-top: clamp(64px, 8vw, 96px); padding-bottom: clamp(64px, 8vw, 96px); }
.band img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.band .eyebrow { color: var(--orange-soft); }
.band .h2 { color: var(--paper); }
.band p { color: var(--muted-dark); font-size: 18px; margin: 0; }
.band-copy { display: flex; flex-direction: column; gap: 20px; }
.spec-rows { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid #2C3A4E; }
.spec-rows li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #2C3A4E; }
.spec-rows .mono { color: #8C96A3; font-size: 13px; white-space: nowrap; }
@media (max-width: 860px) { .band .wrap { grid-template-columns: minmax(0, 1fr); } .band img { aspect-ratio: 16 / 10; } }

/* Offerings */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile.feature { background: var(--ink); border-color: var(--ink); }
.tile.feature h3 { color: var(--paper); }
.tile.feature p { color: var(--muted-dark); }
.nav .nav-demo { display: none; }
@media (max-width: 960px) { .nav .nav-demo { display: block; color: var(--orange-ink); font-weight: 600; border-bottom: 0; } }
.tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: var(--paper-2); }
.tile h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.tile p { margin: 0; color: var(--steel); font-size: 15px; }
@media (max-width: 1060px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.industry { display: flex; flex-direction: column; gap: 14px; }
.industry .img { overflow: hidden; }
.industry img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.industry:hover img { transform: scale(1.03); }
.industry h3 { margin: 4px 0 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.industry p { margin: 0; color: var(--steel); }
.industry ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.industry li { font-family: var(--font-mono); font-size: 12px; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px; color: var(--steel-2); }
@media (max-width: 960px) { .industries { grid-template-columns: minmax(0, 1fr); } .industry img { aspect-ratio: 16 / 9; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.step { padding: 24px 24px 0 0; }
.step .n { margin: 0 0 10px; font-family: var(--font-mono); color: var(--orange-ink); }
.step h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.step p { margin: 0; color: var(--steel); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Contact */
.contact { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); }
.contact-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; background: var(--white); border: 1px solid var(--line); padding: clamp(28px, 4vw, 52px); }
.contact-copy { display: flex; flex-direction: column; gap: 18px; }
.book-slot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 4px; }
.book-slot span { font-size: 14px; color: var(--steel); }
.contact-details { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; font-size: 15px; }
.contact-details a { font-weight: 600; }
.contact-details span { color: var(--steel); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper-2);
  min-height: 48px; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--orange-ink); outline-offset: 0; border-color: transparent; background: var(--white); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-note { font-size: 13px; color: var(--steel); margin: 0; }
.form-status { font-size: 15px; font-weight: 500; margin: 0; }
.form-status.ok { color: #166534; }
.form-status.err { color: #B91C1C; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 860px) { .contact-card { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-dark); }
.site-footer .wrap { padding-top: 56px; padding-bottom: 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 360px; font-size: 14px; }
.footer-brand .brand-name { color: var(--paper); }
.footer-links { display: flex; flex-wrap: wrap; gap: 48px; font-size: 14px; }
.footer-links h4 { margin: 0 0 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: #8C96A3; font-weight: 500; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--muted-dark); text-decoration: none; }
.footer-links a:hover { color: var(--orange-soft); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #2C3A4E; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #8C96A3; }

/* Legal pages */
.legal { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(64px, 8vw, 104px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-family: var(--font-display); font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.025em; line-height: 1.05; margin: 12px 0 8px; }
.legal h2 { font-family: var(--font-display); font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--steel-2); }
.legal ul { padding-left: 20px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .industry img { transition: none; }
}
