/* ============================================================
   MT MINDS — main.css
   ------------------------------------------------------------
   TOKENS FIRST. Change a color or font here and the whole
   site follows. Each module below is labeled to match the
   HTML comments in index.html.
   ============================================================ */

:root {
  /* Palette — pulled from the logo set */
  --ink:        #0a0a0c;   /* page background (matches logo blacks) */
  --panel:      #141418;   /* raised surfaces */
  --line:       #26262c;   /* hairlines on dark */
  --copper:     #c9803f;   /* walnut/copper of the M */
  --copper-deep:#8a4f24;
  --steel:      #d3d7dd;   /* brushed silver of the T */
  --steel-dim:  #8b909a;
  --spark:      #5aa7e8;   /* the blue spark — tiny doses only */
  --paper:      #efe9dd;   /* drafting-paper section */
  --graphite:   #37373d;   /* pencil lines on paper */

  /* Type */
  --font-display: "Archivo", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* Rhythm */
  --space: clamp(4rem, 10vw, 8rem);
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 4px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--steel);
  font-family: var(--font-display);
  font-weight: 380;
  font-variation-settings: "wdth" 100;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* Logos exported on black: screen-blend melts the black away on dark bg */
.blend-black { mix-blend-mode: screen; }

/* ---------- Shared text styles ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  color: #fff;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; font-variation-settings: "wdth" 112; }
h3 { font-size: 1.15rem; font-weight: 700; font-variation-settings: "wdth" 110; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
}
.eyebrow::before { content: "— "; color: var(--steel-dim); }
.eyebrow-dark { color: var(--copper-deep); }

.section { padding: var(--space) var(--gutter); }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-copper {
  background: linear-gradient(160deg, var(--copper), var(--copper-deep));
  color: #16110b;
  font-weight: 500;
  box-shadow: 0 6px 24px -8px rgba(201, 128, 63, 0.55);
}
.btn-copper:hover { box-shadow: 0 10px 30px -8px rgba(201, 128, 63, 0.7); }
.btn-ghost { border-color: var(--line); color: var(--steel); }
.btn-ghost:hover { border-color: var(--steel-dim); }

/* ============================================================
   MODULE: HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem var(--gutter);
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 0.4rem; text-decoration: none; }
.brand-mark {
  font-weight: 900; font-size: 1.25rem;
  font-variation-settings: "wdth" 120;
  background: linear-gradient(160deg, var(--copper) 30%, #e8b27a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-name { font-weight: 600; font-size: 1.05rem; color: var(--steel); letter-spacing: 0.02em; }

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--steel-dim);
  transition: color 140ms ease;
}
.nav-links a:hover { color: var(--copper); }
.nav-links .nav-cta {
  color: var(--copper);
  border: 1px solid color-mix(in srgb, var(--copper) 45%, transparent);
  padding: 0.5rem 0.9rem; border-radius: var(--radius);
}
.nav-links .nav-cta:hover { background: color-mix(in srgb, var(--copper) 12%, transparent); }

.nav-toggle { display: none; }

/* ============================================================
   MODULE: HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(1rem, 4vw, 3rem) var(--gutter) var(--space);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  /* faint radial copper glow behind the logo */
  content: "";
  position: absolute; inset: -20% -30% auto;
  height: 70%;
  background: radial-gradient(ellipse at 50% 30%, rgba(201,128,63,0.14), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 62rem; margin-inline: auto; }
.hero-logo {
  width: min(30rem, 78vw);
  margin: 0 auto 0.5rem;
  filter: drop-shadow(0 24px 60px rgba(201,128,63,0.25));
}
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 900;
  font-variation-settings: "wdth" 116;
}
.hero-title-alt {
  background: linear-gradient(160deg, var(--copper), #e8b27a 60%, var(--steel));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  max-width: 34rem; margin: 1.4rem auto 2.2rem;
  color: var(--steel-dim); font-size: 1.05rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Signature — drafting dimension rail */
.dim-rail {
  display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.22em;
  color: var(--steel-dim);
}
.dim { display: flex; align-items: center; gap: 0.75rem; white-space: nowrap; }
.dim i {
  display: inline-block; height: 1px; width: 3rem;
  background: var(--line); position: relative;
}
.dim i::before, .dim i::after {
  content: ""; position: absolute; top: -3px; width: 1px; height: 7px; background: var(--line);
}
.dim i::before { left: 0; } .dim i::after { right: 0; }
.dim-wide { color: var(--copper); }
.dim-wide i { background: color-mix(in srgb, var(--copper) 50%, transparent); }
.dim-wide i::before, .dim-wide i::after { background: color-mix(in srgb, var(--copper) 50%, transparent); }

/* ============================================================
   MODULE: CAPABILITIES
   ============================================================ */
.cap-grid {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.cap {
  position: relative;
  background: var(--panel);
  padding: 2rem 1.6rem 3.4rem;
  transition: background 200ms ease;
}
.cap:hover { background: #191920; }
.cap::before {
  /* drafting detail label, e.g. "A" in a circle like the sketch */
  content: attr(data-num);
  position: absolute; top: 1.4rem; right: 1.4rem;
  width: 1.7rem; height: 1.7rem;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--copper);
}
.cap h3 { margin-bottom: 0.7rem; }
.cap p { color: var(--steel-dim); font-size: 0.94rem; }
.cap-spec {
  position: absolute; left: 1.6rem; bottom: 1.3rem;
  font-family: var(--font-mono); font-size: 0.64rem;
  letter-spacing: 0.22em; color: var(--graphite);
  transition: color 200ms ease;
}
.cap:hover .cap-spec { color: var(--copper-deep); }

/* ============================================================
   MODULE: PROCESS — the drafting-paper flip
   ============================================================ */
.process {
  background: var(--paper);
  color: var(--graphite);
  /* subtle paper grid, like blueprint vellum */
  background-image:
    linear-gradient(rgba(55,55,61,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55,55,61,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.process h2 { color: #232327; }
.process-inner {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  max-width: 72rem; margin-inline: auto;
}
.process-lede { margin: 1.2rem 0 1.8rem; max-width: 30rem; }
.steps { list-style: none; counter-reset: step; padding: 0; max-width: 30rem; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.85rem 0 0.85rem 3.2rem;
  border-top: 1px solid rgba(55,55,61,0.2);
  font-size: 0.97rem;
}
.steps li:last-child { border-bottom: 1px solid rgba(55,55,61,0.2); }
.steps li::before {
  content: "0" counter(step);
  position: absolute; left: 0; top: 0.95rem;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--copper-deep);
}
.steps strong { color: #232327; }
.process-figure { margin: 0; }
.process-figure img {
  border: 1px solid rgba(55,55,61,0.25);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -20px rgba(35,35,39,0.35);
  transform: rotate(-0.6deg);
}
.process-figure figcaption {
  margin-top: 0.8rem;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(55,55,61,0.6);
}

/* ============================================================
   MODULE: WORK
   ============================================================ */
.work-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.work-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 200ms ease, border-color 200ms ease;
}
.work-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--copper) 40%, var(--line)); }
.work-thumb { aspect-ratio: 4 / 3; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* Placeholder tiles until product photos are added */
.ph {
  display: grid; place-items: center; text-align: center;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.22em; color: var(--steel-dim);
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(211,215,221,0.04) 14px 15px);
}
.ph-1 { background-color: #1b1611; }
.ph-2 { background-color: #16181b; }
.ph-3 { background-color: #171419; }
.work-meta { padding: 1.1rem 1.3rem 1.3rem; }
.work-mat {
  margin-top: 0.35rem;
  font-family: var(--font-mono); font-size: 0.64rem;
  letter-spacing: 0.2em; color: var(--copper-deep);
}
.work-note {
  margin-top: 2rem;
  font-size: 0.95rem; color: var(--steel-dim); max-width: 34rem;
}

/* ============================================================
   MODULE: ABOUT
   ============================================================ */
.about { border-top: 1px solid var(--line); }
.about-inner {
  display: grid; gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  max-width: 72rem; margin-inline: auto;
}
.about-monogram {
  display: flex; align-items: baseline; justify-content: center; gap: 0.5rem;
  font-weight: 900; font-size: clamp(5rem, 14vw, 9rem);
  font-variation-settings: "wdth" 120;
  line-height: 1;
}
.mono-m {
  background: linear-gradient(160deg, #e8b27a, var(--copper) 45%, var(--copper-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mono-plus { font-size: 0.35em; color: var(--steel-dim); font-family: var(--font-mono); font-weight: 400; }
.mono-t {
  background: linear-gradient(160deg, #ffffff, var(--steel) 45%, var(--steel-dim));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about-copy p { color: var(--steel-dim); max-width: 34rem; margin-top: 1.1rem; }
.about-tag { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--copper) !important; }

/* ============================================================
   MODULE: CONTACT
   ============================================================ */
.contact { text-align: center; }
.contact-inner { max-width: 38rem; margin-inline: auto; }
.contact p { color: var(--steel-dim); margin: 1.2rem 0 2rem; }

/* ============================================================
   MODULE: FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem var(--gutter) 3.5rem;
  text-align: center;
}
.footer-logo { width: min(15rem, 55vw); margin: 0 auto 1rem; opacity: 0.9; }
.footer-line {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.28em; color: var(--steel-dim);
}
.footer-fine {
  margin-top: 0.6rem;
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.18em; color: var(--graphite);
  text-transform: uppercase;
}

/* ============================================================
   Scroll reveal (js adds .in when visible)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .work-card { transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .process-inner, .about-inner { grid-template-columns: 1fr; }
  .about-monogram { justify-content: flex-start; }
}
@media (max-width: 700px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 0.6rem 0.7rem; cursor: pointer;
  }
  .nav-toggle-bar { width: 18px; height: 2px; background: var(--steel); }
  .nav-links {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: flex-start;
    padding: 1.2rem var(--gutter) 1.6rem;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
}
