/* ============================================================
   Holtz und Metal — site stylesheet
   Palette and type system defined in PLAN.md §2.
   ============================================================ */

:root {
  /* Foundation */
  --ink: #1A1A1A;
  --cream: #F4EFE8;
  --concrete: #D9D5CF;
  --charcoal: #2A2A2A;
  --muted: #8A8278;

  /* Accents — rotate per section */
  --mustard: #E5B23A;
  --orange:  #C66A2D;
  --navy:    #1F3A5F;
  --brick:   #B8392E;

  /* Type */
  --h-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --h-body:    'Inter', system-ui, -apple-system, sans-serif;
  --h-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Spacing */
  --gutter: 48px;
  --gutter-mobile: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--h-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Utilities ---------- */
.mono { font-family: var(--h-mono); letter-spacing: 0.02em; }
.label {
  font-family: var(--h-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.wrap { max-width: 1280px; margin: 0 auto; }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  z-index: 50;
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(244, 239, 232, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: rgba(26,26,26,0.08);
}
.brand {
  font-family: var(--h-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.brand span { color: var(--orange); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-family: var(--h-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color .15s;
}
.nav-links a:hover { color: var(--orange); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px; height: 32px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Sections ---------- */
section { padding: 120px var(--gutter); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}
.section-head h2 {
  font-family: var(--h-display);
  font-weight: 700;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.section-head p {
  font-size: 18px;
  color: #3a3a3a;
  max-width: 520px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  padding: 140px var(--gutter) 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; right: -120px; top: 80px;
  width: 380px; height: 380px;
  background: var(--mustard);
  border-radius: 50%;
  opacity: 0.18;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero h1 {
  font-family: var(--h-display);
  font-weight: 700;
  font-size: clamp(48px, 6.2vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 24px 0 32px;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p {
  font-size: 20px;
  max-width: 540px;
  color: #3a3a3a;
  margin-bottom: 48px;
}

/* hero visual — photo */
.hero-visual {
  position: relative;
  aspect-ratio: 3/2;
  width: 100%;
  z-index: 1;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  box-shadow: 0 30px 60px -20px rgba(26,26,26,0.25);
}
.hero-visual .tile {
  position: absolute;
  border-radius: 4px;
  box-shadow: 0 30px 60px -20px rgba(26,26,26,0.25);
}
.tile-bg { inset: 0; background: var(--concrete); }
.tile-orange {
  top: 8%; left: 12%;
  width: 48%; height: 56%;
  background: var(--orange);
  transform: rotate(-3deg);
}
.tile-navy {
  bottom: 12%; right: 8%;
  width: 44%; height: 48%;
  background: var(--navy);
  transform: rotate(2deg);
}
.tile-yellow {
  bottom: 24%; left: 30%;
  width: 28%; height: 22%;
  background: var(--mustard);
  transform: rotate(-1deg);
}
.placeholder-note {
  position: absolute;
  bottom: 16px; left: 16px;
  font-family: var(--h-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  background: rgba(244,239,232,0.85);
  padding: 6px 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 28px;
  border-radius: 0;
  font-family: var(--h-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .2s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--mustard); color: var(--ink); }
.btn-primary:hover { background: var(--orange); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-on-dark { background: var(--mustard); color: var(--ink); }
.btn-on-dark:hover { background: var(--cream); color: var(--ink); }

.cta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ---------- Stats strip ---------- */
.stats {
  padding: 48px var(--gutter);
  background: var(--ink);
  color: var(--cream);
}
.stats-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-num {
  font-family: var(--h-display);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: -0.02em;
  color: var(--mustard);
  line-height: 1;
}
.stat-label {
  font-family: var(--h-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244,239,232,0.7);
}
.stat-sublabel {
  font-family: var(--h-body);
  font-size: 14px;
  line-height: 1.45;
  color: rgba(244,239,232,0.55);
  margin-top: 4px;
}

/* ---------- Services ---------- */
.services { background: var(--cream); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(26,26,26,0.12);
  border: 1px solid rgba(26,26,26,0.12);
}
.service {
  background: var(--cream);
  padding: 48px 40px;
  display: flex; flex-direction: column; gap: 20px;
  transition: background .2s, color .2s;
}
.service:hover { background: var(--ink); color: var(--cream); }
.service:hover .service-num { color: var(--mustard); }
.service:hover .service-desc { color: rgba(244,239,232,0.75); }
.service-num {
  font-family: var(--h-mono);
  font-size: 13px;
  color: var(--orange);
  letter-spacing: 0.16em;
  transition: color .2s;
}
.service h3 {
  font-family: var(--h-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.service-desc { color: #444; font-size: 16px; transition: color .2s; }

/* ---------- Clients band ---------- */
.clients {
  background: var(--mustard);
  color: var(--ink);
  padding: 56px var(--gutter);
}
.clients .wrap { max-width: 1280px; margin: 0 auto; }
.clients-label {
  color: var(--ink);
  opacity: 0.75;
  display: block;
  margin-bottom: 24px;
}
.clients-note { opacity: 0.55; text-transform: none; letter-spacing: 0; }
.clients-list {
  list-style: none;
  display: flex; flex-wrap: wrap;
  gap: 18px 40px;
  font-family: var(--h-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.clients-list li { line-height: 1.1; }

/* ---------- Process ---------- */
.process { background: var(--navy); color: var(--cream); }
.process .section-head h2 { color: var(--cream); }
.process .section-head p { color: rgba(244,239,232,0.75); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.step {
  border-top: 1px solid rgba(244,239,232,0.18);
  padding-top: 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.step-num {
  font-family: var(--h-display);
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  color: var(--orange);
  letter-spacing: -0.02em;
}
.step h4 {
  font-family: var(--h-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.step p {
  color: rgba(244,239,232,0.78);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Capabilities ---------- */
.capabilities { background: var(--cream); }
.caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.cap {
  display: flex; flex-direction: column; gap: 20px;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
}
.cap h3 {
  font-family: var(--h-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.cap ul {
  list-style: none;
  font-family: var(--h-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  display: flex; flex-direction: column; gap: 8px;
}
.cap ul li::before { content: '— '; color: var(--orange); }

/* ---------- Work ---------- */
.work { background: var(--concrete); }
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
.work-card {
  aspect-ratio: 4/5;
  padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--cream);
  text-decoration: none;
  transition: transform .25s ease;
  position: relative;
  overflow: hidden;
}
.work-card:hover { transform: translateY(-6px); }
.work-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.70) 100%);
  pointer-events: none;
}
.work-card > * { position: relative; z-index: 1; }
.work-1 { background: var(--orange) center/cover no-repeat; background-image: url('/assets/img/bergeron_image3.jpg'); }
.work-2 { background: var(--navy)   center/cover no-repeat; background-image: url('/assets/img/minto-3.jpg'); }
.work-3 { background: var(--brick)  center/cover no-repeat; background-image: url('/assets/img/rumme-1.avif'); }
.work-card .label { color: rgba(244,239,232,0.7); }
.work-card h3 {
  font-family: var(--h-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.work-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-family: var(--h-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,239,232,0.75);
}

/* ---------- About ---------- */
.about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-copy h2 {
  font-family: var(--h-display);
  font-weight: 700;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.about-copy p {
  font-size: 18px;
  color: #3a3a3a;
  margin-bottom: 20px;
}
.about-meta {
  background: var(--ink);
  color: var(--cream);
  padding: 48px;
  display: flex; flex-direction: column; gap: 28px;
}
.about-meta-row { display: flex; flex-direction: column; gap: 6px; }
.about-meta-row .label { color: rgba(244,239,232,0.55); }
.about-meta-row .value {
  font-family: var(--h-display);
  font-weight: 500;
  font-size: 20px;
  color: var(--cream);
}
.about-meta-row .value em { font-style: normal; color: var(--mustard); }

/* ---------- Contact ---------- */
.contact {
  background: var(--ink);
  color: var(--cream);
  padding: 140px var(--gutter);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-intro h2 {
  font-family: var(--h-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  color: var(--cream);
}
.contact-intro h2 em { font-style: normal; color: var(--mustard); }
.contact-intro p {
  color: rgba(244,239,232,0.75);
  font-size: 18px;
  max-width: 460px;
  margin-bottom: 32px;
}
.contact-direct {
  font-family: var(--h-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--mustard);
  padding-bottom: 4px;
}
.contact-direct:hover { color: var(--mustard); }

/* form */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: span 2; }
.field label {
  font-family: var(--h-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,239,232,0.65);
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(244,239,232,0.3);
  color: var(--cream);
  font-family: var(--h-body);
  font-size: 16px;
  padding: 12px 0;
  transition: border-color .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--mustard);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { cursor: pointer; }
.field select option { color: var(--ink); background: var(--cream); }
.field-honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}
.form-actions {
  grid-column: span 2;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: 8px;
}
.form-status {
  font-family: var(--h-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244,239,232,0.6);
}
.form-status.ok { color: var(--mustard); }
.form-status.err { color: var(--brick); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(244,239,232,0.6);
  padding: 32px var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--h-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.site-footer a { color: rgba(244,239,232,0.7); text-decoration: none; }
.site-footer a:hover { color: var(--mustard); }
.footer-links { display: flex; gap: 24px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  :root { --gutter: var(--gutter-mobile); }
  .site-nav { padding: 18px var(--gutter); }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(26,26,26,0.08);
    padding: 16px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px var(--gutter); }
  .nav-toggle { display: block; }

  section { padding: 80px var(--gutter); }
  .hero {
    padding: 120px var(--gutter) 60px;
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: auto;
  }
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .stats-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 24px; }
  .clients-list { font-size: 18px; gap: 14px 28px; }
  .caps-grid { grid-template-columns: 1fr; gap: 32px; }
  .work-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-form { grid-template-columns: 1fr; }
  .field-full, .form-actions { grid-column: span 1; }
  .site-footer { padding: 24px; flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 560px) {
  .process-steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
