/* ─────────────────────────────────────────────────────────────
   1218 STUDIOS — industrial / workshop redesign
   Loaded after mainsite.css and overrides legacy tokens.
   ───────────────────────────────────────────────────────────── */

:root {
  /* Palette — warm cream + ink + signal orange */
  --bg: #f5f3ee;
  --paper: #faf8f3;
  --ink: #1a1a1a;
  --ink-2: #2d2d2d;
  --muted: #6f6d66;
  --line: rgba(26, 26, 26, 0.14);
  --line-2: rgba(26, 26, 26, 0.06);
  --accent: #d94a1f;
  --accent-ink: #ffffff;
  --warn: #d94a1f;
  --ok: #2bb673;

  /* Type */
  --f-display: "Archivo", "Helvetica Neue", system-ui, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Density */
  --pad-x: clamp(20px, 4vw, 56px);
  --sec-pad: clamp(56px, 9vw, 128px);
  --gap: clamp(12px, 1.4vw, 20px);
  --maxw: 1480px;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;

  --t-fast: .18s cubic-bezier(.3, .7, .4, 1);
  --t-med: .35s cubic-bezier(.3, .7, .4, 1);

  /* Override legacy tokens from mainsite.css so existing pages also pick up the look */
  --bg-page: var(--bg);
  --bg-card: var(--paper);
  --bg-subtle: var(--paper);
  --bg-dark: var(--ink);
  --bg-dark-soft: var(--ink-2);
  --text-primary: var(--ink);
  --text-secondary: var(--ink-2);
  --text-muted: var(--muted);
  --text-on-dark: var(--bg);
  --text-on-dark-muted: rgba(245, 243, 238, 0.7);
  --accent-soft: rgba(217, 74, 31, 0.08);
  --accent-hover: #b53915;
  --border: var(--line);
  --border-soft: var(--line-2);
  --content-max: 1280px;
}

/* ─── Base ───────────────────────────────────────────────── */
html, body {
  background: var(--bg);
  color: var(--ink);
}
body {
  font-family: var(--f-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.05;
}

/* Focus state visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ─── Shared building blocks ────────────────────────────── */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--ink);
}

.mono {
  font-family: var(--f-mono);
}

.hairline {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 0;
}

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

/* ─── Buttons (override legacy .btn styles) ─────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast),
              color var(--t-fast), border-color var(--t-fast);
  text-decoration: none;
  box-shadow: none;
}
.btn:hover {
  transform: translateY(-1px);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: none;
}
.btn--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn--outline,
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--outline:hover,
.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.btn--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.btn--dark:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn--accent:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.btn--lg { padding: 14px 22px; font-size: 14.5px; }
.btn--sm { padding: 8px 14px; font-size: 12px; }

.btn .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  display: inline-block;
}
.btn--accent .dot { background: var(--bg); }

/* ─── Pills ─────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
}
.pill .led {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}
.pill--ok { color: var(--ok); border-color: rgba(43,182,115,0.3); }
.pill--ok .led { background: var(--ok); }
.pill--warn { color: var(--accent); border-color: rgba(217,74,31,0.3); }
.pill--out { color: var(--muted); }
.pill--out .led { background: var(--muted); }

/* ─── Section header ────────────────────────────────────── */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: clamp(28px, 4vw, 56px);
}
@media (min-width: 720px) {
  .section-head {
    grid-template-columns: minmax(140px, 200px) 1fr auto;
    align-items: end;
    gap: 24px;
  }
}
.section-head .num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-head .num::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink);
  display: inline-block;
}
.section-head .title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(36px, 5.4vw, 76px);
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 0;
  color: var(--ink);
}
.section-head .meta {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ─── Section / container overrides ─────────────────────── */
.container {
  max-width: var(--content-max);
  padding-inline: var(--pad-x);
}
.section {
  padding-block: var(--sec-pad);
  background: transparent;
}
.section--alt {
  background: var(--paper);
  border-block: 1px solid var(--line);
}
.section + .section {
  border-top: 1px solid var(--line);
}

/* ─── Placeholder image ─────────────────────────────────── */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      var(--line-2) 0 14px,
      transparent 14px 28px),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.placeholder .label {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 4px;
}

/* ─── Top nav (override legacy _nav.css) ────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h, 4rem);
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}
.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  height: 100%;
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}
.nav-brand__accent {
  color: var(--accent);
}
.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 880px) {
  .nav-links { display: flex; }
}
.nav-link {
  position: relative;
  padding: 8px 12px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--ink);
  border-radius: 999px;
  transition: background var(--t-fast), color var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.nav-link:hover {
  background: var(--ink);
  color: var(--bg);
}
.nav-link--active {
  color: var(--accent);
}
.nav-link--active:hover {
  color: var(--accent-ink);
}
.nav-social {
  display: none;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 1080px) {
  .nav-social { display: flex; }
}
.nav-social__link {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.nav-social__link:hover {
  background: var(--ink);
  border-color: var(--ink);
}
.nav-social__link img {
  width: 14px;
  height: 14px;
  filter: none;
}
.nav-social__link:hover img {
  filter: invert(1);
}
.nav-hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  gap: 3px;
}
@media (min-width: 880px) {
  .nav-hamburger { display: none; }
}
.nav-hamburger__line {
  width: 14px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
}
.nav-mobile-overlay {
  position: fixed;
  inset: var(--nav-h, 4rem) 0 0 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 12px var(--pad-x) 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translateY(-110%);
  transition: transform var(--t-med), visibility 0s linear var(--t-med);
  z-index: 49;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
}
.nav-mobile-overlay.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform var(--t-med), visibility 0s linear 0s;
}
.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.mobile-nav-link {
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}
.mobile-nav-link--active { color: var(--accent); }
.mobile-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.mobile-social__link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
}
.mobile-social__link img {
  width: 18px;
  height: 18px;
}

/* ─── Main content ──────────────────────────────────────── */
.main-content {
  padding-top: 0;
}

/* ─── Footer (override legacy _footer.css) ──────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding-block: clamp(40px, 5vw, 72px) 28px;
  margin-top: clamp(40px, 6vw, 96px);
}
.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}
.footer-brand {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
}
.footer-brand__accent { color: var(--accent); }
.footer-tagline {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  max-width: 32ch;
  margin: 0 0 18px;
  line-height: 1.6;
}
.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social__link {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.footer-social__link:hover {
  background: var(--ink);
  border-color: var(--ink);
}
.footer-social__link:hover img { filter: invert(1); }
.footer-col__title {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 500;
}
.footer-col__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col__list a {
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}
.footer-col__list a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ─── Reveal animation ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1),
              transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ─── Hero (industrial blueprint) ───────────────────────── */
.hero {
  padding-block: clamp(40px, 6vw, 96px) clamp(48px, 7vw, 96px);
  position: relative;
  overflow: hidden;
  text-align: left;
}
.hero .container { max-width: var(--content-max); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.hero__title,
.hero-display {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.92;
  font-size: clamp(56px, 11vw, 180px);
  margin: 0 0 18px;
  color: var(--ink);
}
.hero__title em,
.hero-display em {
  font-style: normal;
  color: var(--accent);
}
.hero__subtitle,
.hero-lede {
  font-size: clamp(15px, 1.5vw, 19px);
  max-width: 56ch;
  color: var(--ink-2);
  margin: 0 0 28px;
  line-height: 1.55;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  margin-top: 36px;
}
@media (min-width: 720px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
}
.hero-stat .v {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero-stat .l {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ─── Discipline / category cards ───────────────────────── */
.discipline-card {
  text-align: left;
  padding: 22px 22px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform var(--t-med), border-color var(--t-fast);
  position: relative;
}
.discipline-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: none;
}
.discipline-card__icon {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.discipline-card__title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.discipline-card__desc {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}

/* ─── Featured projects ─────────────────────────────────── */
.featured-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--t-med), border-color var(--t-fast);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.featured-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  color: inherit;
  box-shadow: none;
}
.featured-card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.featured-card__body {
  padding: 16px 18px 20px;
}
.featured-card__category {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  display: inline-block;
}
.featured-card__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.featured-card__desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
}

/* ─── Section header (legacy .section-header) ───────────── */
.section-header {
  text-align: left;
  margin-bottom: clamp(28px, 4vw, 48px);
  display: grid;
  gap: 6px;
}
.section-header h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 56px);
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.section-header p {
  margin: 6px 0 0;
  max-width: 60ch;
  color: var(--muted);
}
.accent-line {
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 0;
  margin: 8px 0 0;
}

/* ─── CTA banner (industrial, paper card not solid black) ─ */
.cta-banner {
  text-align: left;
  padding: clamp(28px, 4vw, 56px);
  background: var(--ink);
  border-radius: var(--r-md);
  color: var(--bg);
  display: grid;
  gap: 14px;
  border: 1px solid var(--ink);
}
.cta-banner h2 {
  color: var(--bg);
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}
.cta-banner p {
  color: rgba(245, 243, 238, 0.7);
  margin: 0;
  max-width: 60ch;
}
.cta-banner .hero__actions { margin-top: 6px; }
.cta-banner .btn--outline {
  background: transparent;
  color: var(--bg);
  border-color: var(--bg);
}
.cta-banner .btn--outline:hover {
  background: var(--bg);
  color: var(--ink);
}

/* ─── Form fields ───────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color var(--t-fast);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 540px) {
  .field-row { grid-template-columns: 1fr; }
}
.field .help {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--muted);
}
.field .errors {
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}
</invoke>