/* ============================================
   D&K IT — Base Styles (shared across variants)
   ============================================ */

:root {
  /* Base neutrals — dark palette */
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --bg-elev-2: #171717;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.62);
  --text-mute: rgba(255, 255, 255, 0.42);

  /* Accent — M.I.R.A. orange */
  --accent: #ff6b35;
  --accent-2: #ff8a5c;
  --accent-glow: rgba(255, 107, 53, 0.35);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shell-max: 1240px;

  /* Type */
  --font-sans: "Instrument Sans", "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background: var(--accent);
  color: #000;
}

/* Utility */
.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ============================================
   Header — sticky, blurs on scroll
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border);
}

.nav__inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #000;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__links a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-dim);
  border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__links a:hover {
  color: var(--text);
  background: var(--bg-elev);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #0a0a0a;
  box-shadow: 0 6px 24px var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 32px var(--accent-glow);
  background: var(--accent-2);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover {
  background: var(--bg-elev);
  border-color: var(--text-dim);
}
.btn--lg {
  padding: 14px 24px;
  font-size: 15px;
}

.btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}
.btn:hover svg {
  transform: translateX(2px);
}

/* ============================================
   Reveal animations (IntersectionObserver + progressive enhancement)
   Elements are VISIBLE by default. Once JS marks the doc as ready and
   the element hasn't yet been revealed, it hides — then IO reveals it
   with a transition. This avoids the zero-intersection-area trap where
   opacity:0 + transform makes IO report intersectionRatio: 0.
   ============================================ */
.reveal {
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
html.js-reveal-ready .reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  margin-top: 120px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__col h4 {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col a {
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.2s var(--ease);
}
.footer__col a:hover {
  color: var(--text);
}
.footer__brand p {
  color: var(--text-dim);
  font-size: 14px;
  max-width: 320px;
  margin: 12px 0 0;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 13px;
}
.footer__bottom a { color: var(--text-mute); }
.footer__bottom a:hover { color: var(--text-dim); }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .shell { padding: 0 20px; }
  .nav__inner { padding: 14px 20px; }
  .nav__links a:not(.btn) { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; }
}


/* ============================================
   Editorial (default) layout — hero, featured, grid, cta
   ============================================ */
/* ============================================
   VARIANT 1: Editorial Dark
   Large typography, generous whitespace, serif accents.
   Reference: Linear, Framer marketing.
   ============================================ */

{
  --bg: #0a0a0a;
  --bg-elev: #131313;
  --accent: #ff6b35;
  --accent-2: #ffab7c;
  --accent-glow: rgba(255, 107, 53, 0.28);
}

/* Hero */
.hero {
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
}
.hero__title {
  font-size: clamp(56px, 8.5vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 24px 0 32px;
}
.hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero__sub {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 0 48px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Section headers */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.section-head h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 12px 0 0;
  font-weight: 500;
}
.section-head h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.section-head p {
  color: var(--text-dim);
  max-width: 380px;
  margin: 0;
  font-size: 15px;
}

/* Featured M.I.R.A. */
.featured {
  padding: 80px 0;
}
.featured__card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.featured__card:hover {
  border-color: var(--accent);
}
.featured__media {
  position: relative;
  min-height: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f6f4ef;
}
.featured__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.8s var(--ease);
}
.featured__card:hover .featured__media img {
  transform: scale(1.04);
}
.featured__body {
  padding: 56px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.featured__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  align-self: flex-start;
}
.featured__title {
  font-size: clamp(40px, 4vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 20px 0 20px;
  font-weight: 500;
}
.featured__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.featured__desc {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
  max-width: 460px;
}
.featured__meta {
  display: flex;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}
.featured__meta div span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 4px;
}
.featured__meta div strong {
  font-size: 15px;
  font-weight: 500;
}

/* Projects grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}
.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111;
  position: relative;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card:hover .card__media img {
  transform: scale(1.06);
}
.card__body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card__cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.card__title {
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin: 0;
}
.card__desc {
  color: var(--text-dim);
  font-size: 14px;
  margin: 4px 0 16px;
  flex: 1;
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
  align-self: flex-start;
}
.card__link:hover {
  gap: 10px;
  color: var(--accent);
}

/* CTA block */
.cta {
  padding: 120px 0;
}
.cta__card {
  background: linear-gradient(135deg, #1a0d05, #0a0a0a 60%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 80px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta__card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.cta__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.cta h2 {
  font-size: clamp(36px, 4.5vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 16px 0 20px;
  font-weight: 500;
}
.cta h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.cta p {
  color: var(--text-dim);
  font-size: 17px;
  margin: 0 0 36px;
}
.cta__actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 980px) {
  .featured__card { grid-template-columns: 1fr; }
  .featured__media { min-height: 380px; aspect-ratio: auto; }
  .featured__body { padding: 40px 32px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .cta__card { padding: 56px 28px; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 80px; }
  .featured__body { padding: 32px 24px; }
  .featured__meta { flex-wrap: wrap; gap: 20px; }
}


/* ============================================
   Cinematic hero styles (used on M.I.R.A. page)
   ============================================ */
/* ============================================
   VARIANT 3: Cinematic Product
   Full-bleed M.I.R.A. hero, minimalist grid below.
   Reference: Apple product launches, Rivian.
   ============================================ */

{
  --bg: #0d0d0f;
  --bg-elev: #17171a;
  --accent: #ff6b35;
  --accent-2: #ffb08a;
  --accent-glow: rgba(255, 107, 53, 0.3);
}

/* Cinematic hero — full viewport with M.I.R.A. */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 40%, #1c0f08 0%, #0d0d0f 60%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__bg img {
  position: absolute;
  right: -8%;
  bottom: -12%;
  width: 68%;
  height: 105%;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.5));
  animation: floatY 8s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 107, 53, 0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.12), transparent 40%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 140px 0 80px;
}
.hero__mira-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.3);
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero__mira-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.hero__title {
  font-size: clamp(52px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0 0 24px;
}
.hero__title span.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-2);
}
.hero__sub {
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 40px;
  max-width: 480px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero__spec {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  max-width: 500px;
}
.hero__spec div span {
  display: block;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hero__spec div strong {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-hint::after {
  content: "";
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--text-mute), transparent);
  animation: scrollBar 2s ease-in-out infinite;
}
@keyframes scrollBar {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Section heads */
.section-head {
  text-align: center;
  margin: 120px 0 64px;
}
.section-head .eyebrow {
  justify-content: center;
}
.section-head h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 20px auto 16px;
  font-weight: 500;
  max-width: 720px;
}
.section-head h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.section-head p {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}

/* Projects grid — minimalist */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}
.card {
  position: relative;
  transition: transform 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
}
.card__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
  position: relative;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  transition: border-color 0.4s var(--ease);
}
.card:hover .card__media {
  border-color: var(--accent);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.card:hover .card__media img {
  transform: scale(1.06);
}
.card__index {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 999px;
  z-index: 2;
}
.card__cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 6px;
}
.card__title {
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin: 0 0 6px;
}
.card__desc {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 12px;
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.card__link:hover {
  gap: 10px;
  color: var(--accent);
}

/* Manifesto section */
.manifesto {
  padding: 160px 0;
  text-align: center;
}
.manifesto p {
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 400;
  max-width: 920px;
  margin: 0 auto;
  color: var(--text);
}
.manifesto p em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent-2);
}
.manifesto__author {
  margin-top: 32px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* CTA */
.cta {
  padding: 80px 0 120px;
}
.cta__card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 80px 56px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-elev), var(--bg));
  position: relative;
  overflow: hidden;
}
.cta__card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, var(--accent), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}
.cta h2 {
  font-size: clamp(36px, 4.5vw, 60px);
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 500;
  line-height: 1.05;
}
.cta h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.cta p {
  color: var(--text-dim);
  font-size: 17px;
  margin: 0 0 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta__actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 980px) {
  .hero__bg img { width: 90%; right: -20%; opacity: 0.4; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cta__card { padding: 56px 28px; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .hero__spec { flex-wrap: wrap; gap: 20px; }
  .hero__bg img { display: none; }
}


/* ============================================
   M.I.R.A. product page inline styles
   ============================================ */


/* ============================================
   Projects list page
   ============================================ */


/* ============================================
   About page
   ============================================ */


/* ============================================
   Privacy / legal / long-content pages
   ============================================ */
.legal {
  padding: 160px 0 80px;
}
.legal .shell {
  max-width: 780px;
}
.legal h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  letter-spacing: -0.04em;
  line-height: 1;
  font-weight: 500;
  margin: 24px 0 16px;
}
.legal .legal__meta {
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  margin: 0 0 40px;
}
.legal .lead {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 32px;
}
.legal h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  color: var(--text);
}
.legal p, .legal li {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}
.legal p { margin: 0 0 14px; }
.legal ul {
  padding-left: 20px;
  margin: 0 0 16px;
}
.legal ul ul {
  margin: 8px 0 8px 0;
}
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--accent); }
.legal a:hover { color: var(--accent-2); text-decoration: underline; }
.legal hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0 24px;
}


/* ============================================
   M.I.R.A. product page styles
   ============================================ */


/* ============================================
   Projects list page styles
   ============================================ */


/* ============================================
   About page styles
   ============================================ */


/* ============================================
   M.I.R.A. product page — feat cards, how-it-works, specs, hero
   ============================================ */

  body { background: var(--bg); }
  .hero { min-height: 92vh; }

  /* M.I.R.A. logo hero — logo replaces the wordmark */
  .mira-hero .hero__inner {
    max-width: 720px;
  }
  .mira-logo {
    margin: 4px 0 24px;
    max-width: 440px;
    /* Transparent PNG — no rectangular seams */
  }
  .mira-logo img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 32px rgba(255, 107, 53, 0.18));
  }
  @media (max-width: 900px) {
    .mira-logo { max-width: 320px; }
  }
  .mira-hero__tagline {
    font-size: clamp(36px, 5vw, 68px) !important;
    line-height: 1 !important;
    margin: 0 0 24px !important;
  }
  /* Push the device image slightly further right so it doesn't overlap the logo */
  .mira-hero .hero__bg img {
    right: -12%;
    width: 62%;
  }
  @media (max-width: 900px) {
    .mira-logo { max-width: 100%; margin: 20px 0 24px; }
    .mira-hero .hero__bg img { display: none; }
  }

  /* Product feature grid */
  .features {
    padding: 120px 0;
  }
  .features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
  }
  .feat-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
  }
  .feat-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
  }
  .feat-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 107, 53, 0.14);
    color: var(--accent);
    display: grid;
    place-items: center;
    margin-bottom: 24px;
  }
  .feat-card__icon svg { width: 24px; height: 24px; }
  .feat-card h3 {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
  }
  .feat-card p {
    margin: 0;
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.55;
  }

  /* How it works */
  .how {
    padding: 60px 0 120px;
  }
  .how__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 56px;
  }
  .step {
    position: relative;
  }
  .step__num {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 56px;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 20px;
  }
  .step h4 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
  }
  .step p {
    margin: 0;
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.55;
  }
  .step::after {
    content: "→";
    position: absolute;
    top: 12px;
    right: -14px;
    color: var(--text-mute);
    font-size: 20px;
  }
  .step:last-child::after { display: none; }

  /* Spec strip */
  .specs {
    padding: 80px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-elev);
  }
  .specs__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }
  .specs__grid > div {
    text-align: center;
  }
  .specs__grid span {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 12px;
  }
  .specs__grid strong {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.02em;
  }
  .specs__grid strong em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
  }

  /* Rights notice */
  .rights {
    padding: 60px 0;
    text-align: center;
  }
  .rights p {
    color: var(--text-mute);
    font-size: 13px;
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
    max-width: 600px;
    margin: 0 auto;
  }

  @media (max-width: 900px) {
    .features__grid { grid-template-columns: 1fr; }
    .how__steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .step::after { display: none; }
    .specs__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  }


/* ============================================
   Projects list page — proj-row rows
   ============================================ */

  .page-hero { padding: 180px 0 60px; }
  .page-hero h1 {
    font-size: clamp(48px, 6.5vw, 96px);
    letter-spacing: -0.04em;
    line-height: 1;
    font-weight: 500;
    margin: 20px 0 20px;
  }
  .page-hero h1 em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
  }
  .page-hero p {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 620px;
    margin: 0;
  }

  .proj-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
    padding: 80px 0;
    border-top: 1px solid var(--border);
    align-items: center;
  }
  .proj-row:nth-child(even) {
    grid-template-columns: 1.4fr 1fr;
  }
  .proj-row:nth-child(even) .proj-row__media {
    order: 2;
  }
  .proj-row__media {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    position: relative;
  }
  .proj-row__media img {
    width: 100%; height: 100%;
    object-fit: cover;
  }
  .proj-row__body h2 {
    font-size: clamp(36px, 4.5vw, 56px);
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 12px 0 20px;
    font-weight: 500;
  }
  .proj-row__body h2 em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
  }
  .proj-row__body p {
    font-size: 16px;
    color: var(--text-dim);
    line-height: 1.65;
    margin: 0 0 24px;
    max-width: 480px;
  }
  .proj-row__meta {
    display: flex;
    gap: 32px;
    margin-bottom: 28px;
    flex-wrap: wrap;
  }
  .proj-row__meta div span {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 4px;
  }
  .proj-row__meta div strong {
    font-size: 14px;
    font-weight: 500;
  }
  .proj-row__flagship {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent);
    color: #0a0a0a;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }

  @media (max-width: 900px) {
    .proj-row, .proj-row:nth-child(even) {
      grid-template-columns: 1fr;
      gap: 32px;
      padding: 60px 0;
    }
    .proj-row:nth-child(even) .proj-row__media { order: 0; }
  }


/* ============================================
   About page — story, values, team
   ============================================ */

  .page-hero { padding: 180px 0 40px; }
  .page-hero h1 {
    font-size: clamp(56px, 8vw, 112px);
    letter-spacing: -0.04em;
    line-height: 0.95;
    font-weight: 500;
    margin: 20px 0 32px;
    max-width: 1000px;
  }
  .page-hero h1 em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
  }
  .page-hero p {
    font-size: 20px;
    color: var(--text-dim);
    max-width: 720px;
    line-height: 1.55;
    margin: 0;
  }

  /* Values grid */
  .values {
    padding: 100px 0;
  }
  .values__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
  }
  .value {
    padding: 32px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
  }
  .value__num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 20px;
    letter-spacing: 0.14em;
  }
  .value h3 {
    font-size: 22px;
    letter-spacing: -0.01em;
    margin: 0 0 10px;
    font-weight: 500;
  }
  .value h3 em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
  }
  .value p {
    margin: 0;
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.65;
  }

  /* Team */
  .team-section { padding: 60px 0 100px; }
  .team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
  }
  .member {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
  }
  .member:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
  }
  .member__avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: grid;
    place-items: center;
    color: #0a0a0a;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 40px;
    flex-shrink: 0;
    box-shadow: 0 8px 32px var(--accent-glow);
  }
  .member__body h3 {
    font-size: 24px;
    margin: 0 0 4px;
    font-weight: 500;
    letter-spacing: -0.01em;
  }
  .member__role {
    color: var(--accent-2);
    font-size: 13px;
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
    margin-bottom: 12px;
  }
  .member__body p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 12px;
  }
  .member__links {
    display: flex;
    gap: 12px;
  }
  .member__links a {
    color: var(--text-mute);
    font-size: 13px;
    transition: color 0.2s var(--ease);
  }
  .member__links a:hover { color: var(--accent); }

  /* Story */
  .story {
    padding: 80px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .story__grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    align-items: start;
  }
  .story__grid h2 {
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 12px 0 0;
    font-weight: 500;
  }
  .story__grid h2 em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
  }
  .story__body p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-dim);
    margin: 0 0 20px;
  }
  .story__body p:first-child::first-letter {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 64px;
    line-height: 1;
    float: left;
    margin: 4px 12px -8px 0;
    color: var(--accent);
  }

  @media (max-width: 900px) {
    .values__grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; gap: 20px; }
    .story__grid { grid-template-columns: 1fr; gap: 32px; }
    .story__body p:first-child::first-letter { display: inline; float: none; font-size: inherit; margin: 0; color: inherit; font-family: inherit; font-style: normal;}
  }
