/* ============================================================
   THEME B — "Swiss Minimal"
   Near-monochrome, strict grid, hairline rules, one accent.
   Modern, corporate, calm. Drop-in replacement for styles.css.
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap");

:root {
  --bg: #ffffff;
  --bg-deep: #f4f4f5;
  --surface: #ffffff;
  --ink: #0a0a0b;
  --ink-soft: #34343a;
  --muted: #71717a;
  --line: #e6e6e9;
  --line-strong: #d4d4d8;
  --accent: #1d4ed8;
  --accent-deep: #1e40af;
  --shadow-lg: none;
  --shadow-md: none;
  --radius-xl: 0px;
  --radius-lg: 0px;
  --radius-md: 0px;
  --radius-sm: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body::before { content: none; }
a { color: inherit; text-decoration: none; }

.site-shell { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 0 0 100px; }

/* ---- Top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; margin-bottom: 0;
  border-bottom: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 0;
  background: var(--ink); color: #fff; font-family: "JetBrains Mono", monospace; font-weight: 600; letter-spacing: 0.02em; font-size: 0.95rem;
}
.brand-text { display: flex; flex-direction: column; gap: 0; font-size: 0.8rem; color: var(--muted); }
.brand-text strong { font-family: "Inter", sans-serif; font-weight: 700; font-size: 1rem; color: var(--ink); letter-spacing: -0.01em; }

.nav { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 0; }
.nav a {
  padding: 8px 14px; border-radius: 0; color: var(--ink-soft);
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.01em;
  transition: color 140ms ease;
}
.nav a:hover { color: var(--accent); }

main { display: grid; gap: 0; margin-top: 0; }

/* ---- Sections as full-width bands divided by rules ---- */
.hero, .section, .contact-section {
  position: relative; border: 0; border-radius: 0; box-shadow: none;
  border-bottom: 1px solid var(--line); padding: 80px 0;
}
.hero::after, .section-highlight::after { content: none; }

/* ---- Hero ---- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 56px; color: var(--ink); background: none; overflow: visible; border-bottom: 1px solid var(--ink);
}
.eyebrow {
  margin: 0 0 26px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}
.hero .eyebrow { color: var(--accent); }

.hero h1, .section h2, .contact-section h2,
.mira-hero-copy h3, .process-card h3,
.experience-card h3, .specialty-card h3, .project-card h3 {
  margin: 0; font-family: "Inter", sans-serif; font-weight: 700; letter-spacing: -0.03em;
}
.hero h1 {
  max-width: 18ch; font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.04; font-weight: 800; overflow-wrap: break-word;
}
.lede, .section-heading p, .experience-card p, .project-card p,
.specialty-card p, .contact-section p, .process-card li,
.contact-note, .mira-hero-copy p, .company-strip-label {
  color: var(--muted); line-height: 1.65;
}
.hero .lede { color: var(--ink-soft); font-size: 1.1rem; max-width: 54ch; margin-top: 24px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: 0; font-weight: 600; font-size: 0.9rem;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.button-primary { background: var(--ink); color: #fff; box-shadow: none; }
.button-primary:hover { background: var(--accent); }
.button-secondary { border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.button-secondary:hover { background: var(--ink); color: #fff; }

.hero-points { display: grid; gap: 0; margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.hero-points li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-soft); font-size: 0.92rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hero-points li::before {
  content: "—"; width: auto; height: auto; margin: 0; border-radius: 0; background: none; color: var(--accent); font-weight: 700;
}

.hero-panel { display: grid; gap: 0; align-content: start; border: 1px solid var(--line); }
.stat-card, .experience-card, .specialty-card, .project-card,
.process-card, .contact-card, .mira-hero-copy, .mira-hero-media,
.company-strip, .logo-card { border: 0; border-radius: 0; }
.hero-panel .stat-card { padding: 22px; border: 0; border-bottom: 1px solid var(--line); background: none; backdrop-filter: none; }
.accent-card { background: var(--bg-deep); }
.stat-card strong { display: block; margin-top: 8px; color: var(--ink); font-size: 1rem; line-height: 1.4; font-weight: 600; }
.stat-label, .project-meta {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}

.hero-portrait {
  justify-self: stretch; align-self: stretch; width: 100%; margin: 0; border: 0; border-top: 1px solid var(--line);
  border-radius: 0; overflow: hidden; background: none; box-shadow: none;
}
.hero-portrait img { display: block; width: 100%; height: auto; object-fit: contain; filter: grayscale(1) contrast(1.02); }

/* ---- Section headings ---- */
.section-heading { max-width: 720px; margin-bottom: 48px; }
.section h2, .contact-section h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.08; margin-bottom: 16px; }
.section-heading p { font-size: 1.02rem; }

/* ---- Grids: hairline matrix ---- */
.specialty-grid, .experience-grid, .weavix-feature-grid, .projects-grid {
  display: grid; gap: 0; border: 1px solid var(--line); border-bottom: 0;
}
.experience-grid, .weavix-feature-grid, .specialty-grid, .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 0; }

.experience-card, .specialty-card, .project-card {
  position: relative; padding: 32px; background: var(--surface); box-shadow: none;
  border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  border-radius: 0; transform: none; opacity: 1; animation: none; display: flex; flex-direction: column;
}
.experience-card:nth-child(2n), .specialty-card:nth-child(2n), .project-card:nth-child(2n) { border-right: 0; }
.experience-card::before, .specialty-card::before, .project-card::before { content: none; }
.experience-card h3, .specialty-card h3, .project-card h3 { margin-bottom: 12px; font-size: 1.22rem; line-height: 1.2; font-weight: 700; }
.specialty-card h3 { font-size: 1.4rem; }
.specialty-card { padding: 40px 32px; }
.project-meta { display: inline-block; margin-bottom: 12px; color: var(--accent); }

/* Media — uniform frames, full image shown (no cropping) */
.experience-media, .project-media {
  display: flex; align-items: center; justify-content: center; height: 220px; margin: 0 0 24px;
  padding: 18px; border: 1px solid var(--line); border-radius: 0; background: var(--bg-deep); overflow: hidden;
}
.experience-media img, .project-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 0; filter: grayscale(0.15); }
.project-media-logo img { max-width: 160px; max-height: 60px; object-fit: contain; filter: none; }
.experience-gallery { display: grid; gap: 8px; margin: 0 0 24px; }
.experience-gallery-item { overflow: hidden; border: 1px solid var(--line); border-radius: 0; background: var(--bg-deep); height: 170px; padding: 14px; display: flex; align-items: center; justify-content: center; }
.experience-gallery-item img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

.experience-breakout { margin: 16px 0 20px; padding: 18px 20px; border-radius: 0; background: var(--bg-deep); border: 1px solid var(--line); }
.experience-breakout-title { margin: 0 0 12px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-family: "JetBrains Mono", monospace; }
.experience-breakout-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.9rem; }
.experience-breakout-list li + li { margin-top: 8px; }
.experience-breakout-list strong { color: var(--ink); }
.experience-breakout-media { margin-top: 12px; max-width: 160px; border-radius: 0; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.experience-breakout-media img { display: block; width: 100%; height: auto; }

/* Tags */
.tag-row, .stack-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag-row + .tag-row { margin-top: 8px; }
.tag {
  padding: 5px 10px; border-radius: 0; background: var(--bg-deep); border: 1px solid var(--line);
  color: var(--ink-soft); font-size: 0.78rem; font-weight: 500; font-family: "JetBrains Mono", monospace;
}

/* ---- Section highlight ---- */
.section-highlight { background: none; }
.mira-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr); gap: 0; margin-bottom: 0; border: 1px solid var(--line); border-bottom: 0; }
.mira-hero-copy, .mira-hero-media { padding: 40px; background: var(--surface); box-shadow: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.mira-hero-copy { border-right: 1px solid var(--line); }
.mira-hero-copy h3 { margin: 14px 0 16px; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.12; font-weight: 700; }
.mira-hero-media { display: grid; place-items: center; overflow: hidden; background: var(--bg-deep); }
.mira-hero-media img { width: 100%; max-height: 380px; object-fit: contain; }

/* ---- Split ---- */
.split-section { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr); gap: 56px; align-items: start; }
.stack-stack { display: grid; gap: 22px; }
.stack-group { display: grid; gap: 10px; }
.stack-group-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-family: "JetBrains Mono", monospace; }
.stack-cloud { gap: 6px; }
.stack-pill { padding: 7px 12px; border-radius: 0; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink-soft); font-size: 0.8rem; font-weight: 500; letter-spacing: 0; text-transform: none; font-family: "JetBrains Mono", monospace; }
.process-card { padding: 36px; background: var(--ink); color: #e4e4e7; box-shadow: none; border: 0; border-radius: 0; }
.process-card .eyebrow { color: #fff; }
.process-card h3 { color: #fff; font-weight: 700; font-size: 1.35rem; line-height: 1.25; }
.process-card ol { margin: 22px 0 0; padding-left: 20px; color: rgba(228, 228, 231, 0.8); }
.process-card li { color: rgba(228, 228, 231, 0.8); }
.process-card li + li { margin-top: 12px; }

/* ---- Company strip ---- */
.company-strip { padding: 0; background: none; margin-top: 48px; border: 0; }
.company-strip-label { font-size: 0.8rem; letter-spacing: 0.04em; }
.logo-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-bottom: 0; border-right: 0; margin-top: 18px; }
.logo-card { display: grid; place-items: center; min-height: 90px; padding: 18px; background: var(--surface); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; }
.logo-card-text { justify-items: center; }
.company-logo { width: 100%; max-width: 120px; max-height: 36px; object-fit: contain; filter: grayscale(1); opacity: 0.6; transition: opacity 140ms ease; }
.logo-card:hover .company-logo { opacity: 1; }
.logo-card-text .stack-pill { background: none; border: 0; color: var(--muted); }

/* ---- Contact ---- */
.contact-section { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr); gap: 56px; align-items: center; background: none; border-bottom: 0; }
.contact-card { padding: 40px; background: var(--ink); color: #e4e4e7; box-shadow: none; border: 0; border-radius: 0; }
.contact-link { display: inline-block; font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 700; font-family: "Inter", sans-serif; letter-spacing: -0.02em; color: #fff; }
.contact-link:hover { color: #93c5fd; }
.subtle-link { display: block; margin-top: 12px; color: rgba(228, 228, 231, 0.7); font-size: 0.95rem; }
.contact-note { color: var(--muted); font-size: 0.82rem; margin-top: 16px; }
.contact-social { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
.contact-social-link { font-size: 0.85rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; font-family: "JetBrains Mono", monospace; }
.contact-social-link:hover { color: var(--accent); border-color: var(--accent); }
.contact-form { display: grid; gap: 16px; }
.contact-field { display: grid; gap: 6px; }
.contact-field span { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(228, 228, 231, 0.6); font-family: "JetBrains Mono", monospace; }
.contact-field input, .contact-field textarea { width: 100%; padding: 12px 14px; border-radius: 0; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.04); color: #fff; font: inherit; font-size: 0.95rem; }
.contact-field input:focus, .contact-field textarea:focus { outline: none; border-color: #93c5fd; background: rgba(255, 255, 255, 0.08); }
.contact-field textarea { resize: vertical; }
.contact-form .button { width: 100%; margin-top: 4px; }
.contact-form-status { margin: 2px 0 0; font-size: 0.84rem; min-height: 1.2em; color: rgba(228, 228, 231, 0.7); }
.contact-form-status.is-error { color: #fca5a5; }
.contact-form-status.is-success { color: #86efac; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
  .hero, .split-section, .contact-section, .mira-hero,
  .experience-grid, .weavix-feature-grid, .specialty-grid, .projects-grid { grid-template-columns: 1fr; }
  .experience-card, .specialty-card, .project-card { border-right: 0; }
  .mira-hero-copy { border-right: 0; }
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .nav { justify-content: flex-start; }
  .hero, .section, .contact-section { padding: 56px 0; }
}
@media (max-width: 640px) {
  .site-shell { width: min(100% - 32px, 1200px); }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .button, .contact-link { width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .experience-card, .specialty-card, .project-card, .mira-hero-copy, .mira-hero-media { padding: 26px; }
}
