/* ============================================================
   TechCraft — Editorial Design System
   Serif display over clean sans body, muted gold/neutral palette,
   hairline dividers, outlined buttons, generous whitespace.
   ============================================================ */

:root{
  --ink:        #1c1c1a;
  --ink-soft:   #55534d;
  --ink-faint:  #8a877e;
  --paper:      #ffffff;
  --paper-tint: #f6f4f0;
  --paper-dark: #efece5;
  --line:       #ddd9d0;
  --line-soft:  #e8e5de;
  --gold:       #ab8144;
  --gold-deep:  #8f6a35;
  --gold-tint:  #f1e6d2;
  --gray-logo:  #8a8a86;

  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1140px;
  --gutter: 32px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }

/* ------------------------------------------------------------
   Optional content copy deterrent (pairs with js/copy-protect.js)
   Mild speed bump only — see that file's comments for what this
   does and doesn't protect. Phone/email links and anything
   marked .selectable are explicitly excluded so contact details
   stay copyable. To turn this off, delete this rule block (and
   remove the copy-protect.js script tag from each page).
   ------------------------------------------------------------ */
body{
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
a[href^="tel:"], a[href^="mailto:"], .selectable,
a[href^="tel:"] *, a[href^="mailto:"] *, .selectable *{
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

a{ color: inherit; text-decoration: none; }

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.18;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: 0.002em;
}

h1{ font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 500; }
h2{ font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3{ font-size: 1.35rem; }
h4{ font-size: 1.1rem; }

p{ margin: 0 0 1.1em; color: var(--ink-soft); }

.lede{
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 640px;
}

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow{
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 0.9em;
}

.rule{
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

.section{
  padding: 76px 0;
}
.section--tight{ padding: 52px 0; }
.section--alt{ background: var(--paper-tint); }
.section-head{
  max-width: 700px;
  margin-bottom: 44px;
}
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons (outlined only) ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover{ background: var(--ink); color: var(--paper); }

.btn--gold{
  border-color: var(--gold);
  color: var(--gold-deep);
}
.btn--gold:hover{ background: var(--gold); border-color: var(--gold); color: #fff; }

.btn--ghost-light{
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn--ghost-light:hover{ background: #fff; color: var(--ink); border-color: #fff; }

.btn--small{ padding: 10px 20px; font-size: 0.72rem; }

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo{ display: flex; align-items: center; gap: 12px; }
.logo-mark{
  width: 40px; height: 40px;
  border-radius: 9px;
  background: var(--paper-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  flex: none;
}
.logo-mark span:first-child{ color: var(--gold); }
.logo-mark span:last-child{ color: var(--gray-logo); }
.logo-text{ display: flex; flex-direction: column; line-height: 1.1; }
.logo-word{
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.logo-word .t1{ color: var(--ink); }
.logo-word .t2{ color: var(--gold); }
.logo-tag{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-top: 1px;
}

.main-nav{ display: flex; align-items: center; gap: 30px; }
.main-nav ul{
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0; padding: 0;
}
.main-nav a{
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover, .main-nav a.active{
  color: var(--ink);
  border-bottom-color: var(--gold);
}

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  width: 42px; height: 38px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content: ""; display: block;
  width: 18px; height: 1px; background: var(--ink);
  position: relative; transition: all 0.2s ease;
}
.nav-toggle span::before{ position: absolute; top: -6px; }
.nav-toggle span::after{ position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero{
  padding: 90px 0 80px;
  border-bottom: 1px solid var(--line);
}
.hero-inner{ max-width: 760px; }
.hero .eyebrow{ margin-bottom: 1.1em; }
.hero p.lede{ max-width: 620px; }
.hero-cta{ display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

.page-hero{
  padding: 62px 0 54px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-tint);
}
.page-hero .eyebrow{ margin-bottom: 0.8em; }
.page-hero p.lede{ margin-bottom: 0; }
.breadcrumb{
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.breadcrumb a{ color: var(--ink-faint); border-bottom: 1px solid var(--line); }
.breadcrumb a:hover{ color: var(--gold-deep); }

/* ---------- Grids & Cards ---------- */
.grid{
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid > *{ background: var(--paper); }

.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }

.card{
  padding: 32px;
}
.card h3, .card h4{ margin-bottom: 0.55em; }
.card p{ margin-bottom: 0; font-size: 0.96rem; }
.card .card-eyebrow{
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  display: block;
  margin-bottom: 0.7em;
}

.list-plain{
  list-style: none;
  margin: 0; padding: 0;
  columns: 2;
  column-gap: 32px;
}
.list-plain li{
  break-inside: avoid;
  padding: 7px 0 7px 20px;
  position: relative;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
}
.list-plain li::before{
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 7px; height: 1px;
  background: var(--gold);
}

.tags{ display: flex; flex-wrap: wrap; gap: 10px; }
.tag{
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--paper);
}
.tag--gold{ border-color: var(--gold); color: var(--gold-deep); }

/* ---------- Lifecycle steps ---------- */
.lifecycle{ list-style: none; margin: 0; padding: 0; }
.lifecycle li{
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.lifecycle li:first-child{ border-top: 1px solid var(--line-soft); }
.lifecycle .num{
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 500;
}
.lifecycle h4{ margin-bottom: 0.3em; }
.lifecycle p{ margin: 0; font-size: 0.95rem; }

/* ---------- Ecosystem table ---------- */
.eco-table{ width: 100%; border-collapse: collapse; }
.eco-table tr{ border-bottom: 1px solid var(--line-soft); }
.eco-table tr:first-child{ border-top: 1px solid var(--line-soft); }
.eco-table th, .eco-table td{
  text-align: left;
  padding: 16px 0;
  vertical-align: top;
}
.eco-table th{
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold-deep);
  width: 220px;
  font-size: 1.05rem;
}
.eco-table th .card-icon-row{ align-items: center; gap: 12px; }
.eco-table td{ color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Product cards ---------- */
.product-card{
  padding: 40px 32px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product-card .card-eyebrow{ margin-bottom: 0; }
.product-card h3{ margin: 0; }
.product-card p{ margin: 0; flex: 1; }
.product-card .btn{ align-self: flex-start; margin-top: 6px; }

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--ink);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.cta-band h2{ color: #fff; }
.cta-band p{ color: rgba(255,255,255,0.72); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .hero-cta{ justify-content: center; }

/* ---------- Sub nav (Services page) ---------- */
.subnav{
  position: sticky;
  top: 85px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  z-index: 50;
  overflow-x: auto;
}
.subnav ul{
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0; padding: 14px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  white-space: nowrap;
}
.subnav a{
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 2px;
}
.subnav a:hover{ color: var(--ink); }
.subnav a.active{ color: var(--gold-deep); border-color: var(--gold); }

.service-block{
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 150px;
}
.service-block:last-child{ border-bottom: none; }
.service-block .eyebrow{ margin-bottom: 0.6em; }
.service-block .lede{ max-width: 700px; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--paper-tint);
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p{ font-size: 0.9rem; max-width: 280px; }
.footer-col h4{
  font-family: var(--font-body);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 1em;
}
.footer-col ul{ list-style: none; margin: 0; padding: 0; }
.footer-col li{ margin-bottom: 10px; }
.footer-col a{ font-size: 0.9rem; color: var(--ink-soft); }
.footer-col a:hover{ color: var(--gold-deep); }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-tagline{ font-family: var(--font-display); font-style: italic; color: var(--ink-soft); }

/* ---------- Icons ---------- */
.icon{
  width: 22px; height: 22px;
  display: inline-block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon-tile{
  width: 52px; height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 18px;
  flex: none;
}
.icon-tile .icon{ width: 24px; height: 24px; }
.icon-tile--sq{ border-radius: 2px; }
.icon-tile--ink{ color: var(--ink); }
.icon-tile--small{ width: 40px; height: 40px; margin-bottom: 0; }
.icon-tile--small .icon{ width: 18px; height: 18px; }

.card-icon-row{ display: flex; align-items: flex-start; gap: 16px; }
.card-icon-row .icon-tile{ margin-bottom: 0; }
.card-icon-row .card-body h4{ margin-bottom: 0.3em; }
.card-icon-row .card-body p{ margin: 0; }

/* ---------- Hero graphic ---------- */
.hero-inner-wrap{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-graphic{
  max-width: 420px;
  margin: 0 auto;
  opacity: 0.92;
}
.hero-graphic img{ width: 100%; display: block; }

.blueprint-bg{
  background-image:
    linear-gradient(rgba(171,129,68,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(171,129,68,0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  background-position: center;
}

/* ---------- Stat band ---------- */
.stat-band{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat-band > div{
  background: var(--paper);
  padding: 30px 24px;
  text-align: center;
}
.stat-band .stat-num{
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}
.stat-band .stat-label{
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Abstract product mockup ---------- */
.product-mockup{
  border: 1px solid var(--line);
  background: var(--paper-tint);
  padding: 16px;
  margin-bottom: 18px;
}
.product-mockup .mockup-bar{
  display: flex;
  gap: 5px;
  margin-bottom: 12px;
}
.product-mockup .mockup-bar span{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--line);
}
.product-mockup .mockup-body{
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
}
.product-mockup .mockup-side{
  border: 1px solid var(--line-soft);
  height: 74px;
}
.product-mockup .mockup-main{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-mockup .mockup-line{
  height: 7px;
  background: var(--line-soft);
}
.product-mockup .mockup-line.w-60{ width: 60%; }
.product-mockup .mockup-line.w-80{ width: 80%; }
.product-mockup .mockup-line.w-40{ width: 40%; }
.product-mockup .mockup-chart{
  height: 40px;
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.product-mockup .mockup-chart::after{
  content: "";
  position: absolute;
  left: 6px; right: 6px; bottom: 6px; top: 14px;
  background: linear-gradient(135deg, transparent 45%, var(--gold-tint) 46%, var(--gold-tint) 54%, transparent 55%);
}

/* ---------- Location / map graphic ---------- */
.location-panel{
  border: 1px solid var(--line);
  padding: 32px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--paper-tint);
}
.location-panel .icon-tile{ margin-bottom: 0; }

/* ---------- Product demo video ---------- */
.video-frame{
  position: relative;
  border: 1px solid var(--line);
  background: var(--paper-tint);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.video-frame iframe,
.video-frame video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}
.video-frame::before{
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  pointer-events: none;
  z-index: 2;
}
.video-frame::after{
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 36px; height: 36px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  pointer-events: none;
  z-index: 2;
}
.video-fallback{
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 40px;
}
.video-fallback .play-icon{
  width: 60px; height: 60px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--ink);
}
.video-fallback p{ max-width: 320px; margin: 0; }
.video-caption{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  gap: 14px;
  flex-wrap: wrap;
}
.video-caption .video-updated-label{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-faint);
}
.video-teaser{
  margin-top: 24px;
  padding: 26px 30px;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.video-teaser h4{ margin: 0 0 4px; }
.video-teaser p{ margin: 0; font-size: 0.92rem; }
.video-teaser .card-eyebrow{ margin-bottom: 0.4em; }

/* ---------- Utility ---------- */
.mt-0{ margin-top: 0; }
.center{ text-align: center; }
.two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .two-col{ grid-template-columns: 1fr; gap: 32px; }
  .hero-inner-wrap{ grid-template-columns: 1fr; }
  .hero-graphic{ max-width: 320px; order: -1; }
  .stat-band{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px){
  .main-nav ul{ display: none; }
  .nav-toggle{ display: flex; }
  .site-header.open .main-nav ul{
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 84px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 20px var(--gutter) 26px;
    gap: 4px;
  }
  .site-header.open .main-nav a{ padding: 10px 0; }
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap: 28px; }
  .list-plain{ columns: 1; }
  .section{ padding: 54px 0; }
  .eco-table th, .eco-table td{ display: block; width: 100%; padding: 4px 0; }
  .eco-table th{ padding-top: 16px; }
  h1{ font-size: 2.3rem; }
  .stat-band{ grid-template-columns: 1fr 1fr; }
  .location-panel{ flex-direction: column; }
  .card-icon-row{ flex-direction: column; }
}
