/* ==========================================================================
   MODARCH — Architecture Studio
   Design tokens
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* color */
  --bg: #eae6dc;
  --surface: #f6f4ee;
  --ink: #1c1a15;
  --ink-soft: #61594a;
  --oxide: #a8431f;
  --oxide-dark: #7e3117;
  --steel: #333c37;
  --steel-2: #46524c;
  --line: #c7bfac;
  --line-strong: #a89f8a;
  --cream-on-steel: #eae6da;

  /* type */
  --f-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", "Courier New", monospace;

  /* layout */
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1320px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--ink-soft); }
em { font-style: italic; color: var(--oxide); }

:focus-visible {
  outline: 2px solid var(--oxide);
  outline-offset: 3px;
}

/* ==========================================================================
   Blueprint chrome: crop marks, coordinate tag, sheet labels, hairlines
   ========================================================================== */

.crop {
  position: fixed;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  z-index: 500;
  pointer-events: none;
  opacity: 0.7;
}
.crop-tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.crop-tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.crop-bl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.crop-br { bottom: 14px; right: 14px; border-left: none; border-top: none; }
@media (max-width: 720px) { .crop { display: none; } }

.coord-tag {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  z-index: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.coord-tag.visible { opacity: 0.75; }
@media (max-width: 900px) { .coord-tag { display: none; } }

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

.sheet-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter) 0;
}
.sheet-label-light { color: rgba(234,230,218,0.6); }
.sheet-num { color: var(--oxide); font-weight: 500; }

.eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--oxide);
  margin-bottom: 14px;
}
.eyebrow-light { color: #d98a6c; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 400;
  background: rgba(234,230,220,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.logo-mark {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--oxide); }
.nav-num {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--line-strong);
}
.header-right { display: flex; align-items: center; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--oxide); color: #fff; }
.btn-primary:hover { background: var(--oxide-dark); transform: translateY(-1px); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-text { color: var(--ink); border-bottom: 1px solid var(--line-strong); padding: 0; border-radius: 0; }
.btn-text:hover { color: var(--oxide); border-color: var(--oxide); }
.btn-block { width: 100%; justify-content: center; padding: 14px; font-size: 13px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  padding: 0;
}
.nav-toggle span {
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding: 0 0 60px; max-width: var(--max); margin: 0 auto; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px var(--gutter) 0;
}
.hero-title {
  font-size: clamp(38px, 5.6vw, 66px);
  line-height: 1.04;
  overflow: hidden;
}
.reveal-line {
  display: block;
  transform: translateY(110%);
  animation: revealUp 0.8s cubic-bezier(.19,1,.22,1) forwards;
}
.reveal-line:nth-child(2) { animation-delay: 0.1s; }
@keyframes revealUp { to { transform: translateY(0); } }

.hero-sub {
  max-width: 46ch;
  margin: 26px 0 0;
  font-size: 16px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 22px;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.65s forwards;
}
.reveal-fade { }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: translateY(0);} }

.hero-drawing svg { width: 100%; height: auto; }
.draw-line {
  stroke: var(--ink);
  stroke-width: 1.6;
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: drawPath 2.6s cubic-bezier(.65,0,.35,1) forwards;
}
.draw-line.thin { stroke-width: 1; animation-delay: 0.5s; }
.draw-line.thick { stroke-width: 2.2; }
.draw-line.dashed { stroke-dasharray: 5 6; animation: none; stroke-dashoffset: 0; opacity: 0; animation: fadeIn 0.6s ease 2s forwards; }
@keyframes drawPath { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

.dim-line { stroke: var(--oxide); stroke-width: 1; opacity: 0; animation: fadeIn 0.6s ease 2.3s forwards; }
.dim-text { font-family: var(--f-mono); font-size: 11px; fill: var(--oxide); opacity: 0; animation: fadeIn 0.6s ease 2.4s forwards; }
.anno-circle { stroke: var(--oxide); stroke-width: 1.3; fill: var(--surface); opacity: 0; animation: fadeIn 0.6s ease 2.5s forwards; }
.anno-text { font-family: var(--f-mono); font-size: 11px; fill: var(--oxide); opacity: 0; animation: fadeIn 0.6s ease 2.5s forwards; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-drawing { order: -1; max-width: 420px; margin: 0 auto; }
}

/* ==========================================================================
   Studio
   ========================================================================== */

.studio { max-width: var(--max); margin: 0 auto; padding: 70px var(--gutter); }
.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.studio-lead h2, .services-head h2, .work-head h2, .process-head h2, .contact-lead h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
}
.studio-body p { max-width: 50ch; font-size: 15.5px; }

.philosophy-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.philosophy-num {
  display: block;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--oxide);
  margin-bottom: 12px;
}
.philosophy-item h3 { font-size: 19px; margin-bottom: 10px; }
.philosophy-item p { font-size: 14px; max-width: 40ch; }

.studio-photo {
  margin-top: 56px;
  border: 1px solid var(--line);
}
.studio-photo img { width: 100%; height: auto; display: block; }

.founders-grid {
  margin-top: 2px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.founder-card {
  background: var(--steel);
  color: var(--cream-on-steel);
  padding: 26px 28px;
}
.fc-eyebrow {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #d98a6c;
  margin-bottom: 10px;
}
.founder-card h3 { color: var(--cream-on-steel); font-size: 21px; }
.fc-sub { display: block; margin-top: 6px; font-size: 13px; color: rgba(234,230,218,0.7); }

@media (max-width: 720px) {
  .philosophy-grid { grid-template-columns: 1fr; gap: 26px; }
  .founders-grid { grid-template-columns: 1fr; }
}

.stat-strip {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 26px 10px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat-num {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--oxide);
}
.stat-label {
  display: block;
  margin-top: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

@media (max-width: 720px) {
  .studio-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
}

/* ==========================================================================
   Services
   ========================================================================== */

.services { max-width: var(--max); margin: 0 auto; padding: 70px var(--gutter); }
.services-head { margin-bottom: 40px; max-width: 60ch; }
.service-list { border-top: 1px solid var(--line); }
.service-row { border-bottom: 1px solid var(--line); }
.service-row-head {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 26px 4px;
  cursor: pointer;
}
.service-num { font-family: var(--f-mono); font-size: 13px; color: var(--oxide); }
.service-row-head h3 {
  font-size: clamp(20px, 3vw, 30px);
  flex: 1;
  transition: transform 0.25s ease;
}
.service-row:hover .service-row-head h3 { transform: translateX(8px); }
.service-toggle {
  font-family: var(--f-mono);
  font-size: 20px;
  color: var(--ink-soft);
  transition: transform 0.3s ease;
}
.service-row.open .service-toggle { transform: rotate(45deg); color: var(--oxide); }
.service-row-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.service-row-body p {
  padding: 0 4px 26px 62px;
  max-width: 56ch;
  font-size: 15px;
}
.service-row.open .service-row-body { max-height: 200px; }

/* ==========================================================================
   Work
   ========================================================================== */

.work { max-width: var(--max); margin: 0 auto; padding: 70px var(--gutter); }
.work-head { margin-bottom: 28px; }

.work-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.work-card {
  background: var(--surface);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease;
}
.work-card.hidden { display: none; }
.work-card-photo {
  height: 240px;
  overflow: hidden;
  background: var(--bg);
}
.work-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.19,1,.22,1);
}
.work-card:hover .work-card-photo img { transform: scale(1.04); }
.work-card-body { padding: 22px 26px 26px; }
.work-card-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.work-card h3 {
  margin-top: 10px;
  font-size: 21px;
}
.work-card .work-meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-soft);
}
.work-card-arrow {
  position: absolute;
  right: 24px;
  bottom: 22px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--oxide);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: all 0.25s ease;
}
.work-card:hover .work-card-arrow { opacity: 1; transform: translate(0,0); }

@media (max-width: 720px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Process
   ========================================================================== */

.process { max-width: var(--max); margin: 0 auto; padding: 70px var(--gutter); }
.process-head { margin-bottom: 40px; }
.process-list { border-top: 1px solid var(--line); }
.process-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 28px 4px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.process-num {
  font-family: var(--f-mono);
  font-size: 30px;
  font-weight: 500;
  color: var(--line-strong);
}
.process-list li h3 { font-size: 19px; margin-bottom: 8px; }
.process-list li p { font-size: 14.5px; max-width: 56ch; margin: 0; }

@media (max-width: 600px) {
  .process-list li { grid-template-columns: 46px 1fr; }
  .process-num { font-size: 22px; }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact { background: var(--steel); color: var(--cream-on-steel); padding-bottom: 70px; }
.contact-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px var(--gutter) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-lead h2 { color: var(--cream-on-steel); }
.contact-tagline {
  margin-top: 20px;
  max-width: 46ch;
  color: rgba(234,230,218,0.75);
  font-size: 15px;
}
.contact-info {
  margin-top: 36px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.ci-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #d98a6c;
  margin-bottom: 8px;
}
.contact-info p { color: rgba(234,230,218,0.82); font-size: 14.5px; }
.contact-info a:hover { color: #fff; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(234,230,218,0.7);
}
.field input, .field select, .field textarea {
  background: rgba(234,230,218,0.06);
  border: 1px solid rgba(234,230,218,0.28);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: #fff;
  font-family: var(--f-body);
  font-size: 14.5px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--oxide);
  background: rgba(234,230,218,0.1);
}
.field select { appearance: none; }
.form-note {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 12px;
  color: #d98a6c;
  min-height: 16px;
}

@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { flex-direction: column; gap: 20px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--steel); border-top: 1px solid rgba(234,230,218,0.15); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
  color: rgba(234,230,218,0.6);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-inner a:hover { color: #fff; }

/* ==========================================================================
   Modal
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  place-items: center;
  padding: 24px;
}
.modal.open { display: grid; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,18,14,0.72);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal.open .modal-backdrop { opacity: 1; }
.modal-panel {
  position: relative;
  background: var(--surface);
  max-width: 860px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.19,1,.22,1), opacity 0.3s ease;
}
.modal.open .modal-panel { transform: translateY(0) scale(1); opacity: 1; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 13px;
  z-index: 2;
}
.modal-close:hover { background: var(--oxide); color: #fff; border-color: var(--oxide); }
.modal-gallery { background: var(--bg); display: flex; flex-direction: column; }
.modal-gallery-main {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #111;
}
.modal-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mg-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--ink);
  font-size: 14px;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}
.mg-nav:hover { background: #fff; }
.mg-prev { left: 12px; }
.mg-next { right: 12px; }
.mg-count {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(20,18,14,0.6);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
}
.modal-thumbs {
  display: flex;
  gap: 6px;
  padding: 10px;
  overflow-x: auto;
  background: var(--surface);
}
.modal-thumbs img {
  width: 56px;
  height: 44px;
  object-fit: cover;
  border-radius: 2px;
  cursor: pointer;
  opacity: 0.55;
  border: 1.5px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.modal-thumbs img:hover { opacity: 0.85; }
.modal-thumbs img.active { opacity: 1; border-color: var(--oxide); }

.modal-info { padding: 30px 32px; overflow-y: auto; }
.modal-status {
  display: inline-block;
  margin-left: 10px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--oxide);
  background: rgba(168,67,31,0.1);
  padding: 3px 9px;
  border-radius: 999px;
  vertical-align: middle;
}
.modal-info h3 { font-size: 24px; margin: 10px 0 12px; }
.modal-info p { font-size: 14.5px; }
.modal-meta {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.modal-meta div span { display: block; }
.modal-meta .mm-label { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-soft); letter-spacing: 0.05em; }
.modal-meta .mm-value { font-size: 14px; margin-top: 3px; }
.modal-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modal-tags span {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  background: var(--steel);
  color: var(--cream-on-steel);
  padding: 5px 11px;
  border-radius: 2px;
}

@media (max-width: 720px) {
  .modal-panel { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Mobile nav
   ========================================================================== */

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 63px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header-right .btn-primary { padding: 9px 14px; font-size: 11px; }
}
@media (min-width: 901px) {
  .main-nav { display: flex !important; }
}
