/* MRT Ventures — site styles
   Palette: obsidian / bone / vermilion. Type: Instrument Serif (display), Inter (text), JetBrains Mono (labels). */

@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-variable.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --ink: #0A0A0B;
  --ink-2: #121214;
  --ink-3: #1A1A1E;
  --bone: #F3F0EA;
  --bone-2: #B9B5AD;
  --bone-3: #7E7B74;
  --accent: #FF4A1C;
  --accent-2: #FF7A55;
  --accent-deep: #C9300D;
  --line: rgba(243, 240, 234, 0.10);
  --line-strong: rgba(243, 240, 234, 0.22);
  --bg: var(--ink);
  --fg: var(--bone);
  --muted: var(--bone-2);
  --faint: var(--bone-3);
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }

/* Film grain */
.grain {
  pointer-events: none; position: fixed; inset: -50%; z-index: 50; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0) } 25% { transform: translate(-3%, 2%) } 50% { transform: translate(2%, -3%) } 75% { transform: translate(-1%, -1%) } 100% { transform: translate(0, 0) } }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Type */
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.96;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--accent); }
.h1 { font-size: clamp(3.1rem, 8.2vw, 7.6rem); }
section[id] { scroll-margin-top: 84px; }
.h2 { font-size: clamp(2.5rem, 5.6vw, 5.2rem); }
.h3 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--muted); max-width: 48ch; text-wrap: pretty; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 22px; border-radius: 999px;
  background: var(--bone); color: var(--ink);
  font-weight: 560; font-size: 15px; letter-spacing: -0.005em;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease);
  border: 1px solid transparent; will-change: transform;
}
.btn .arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover { background: var(--accent); color: var(--ink); transform: translateY(-1px); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.section--light .btn { background: var(--ink); color: var(--bone); }
.section--light .btn:hover { background: var(--accent); color: var(--ink); }
.section--light .btn--ghost { background: transparent; color: var(--ink); }

/* Nav */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 60;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav--solid { background: rgba(10, 10, 11, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; transition: height .4s var(--ease); }
@media (min-width: 721px) { .nav--solid .nav__in { height: 62px; } }
.nav__links a.is-active { color: var(--fg); }
.nav__links a.is-active::after { right: 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 30px; height: 30px; color: var(--bone); }
.brand__word { font-size: 17px; letter-spacing: -0.02em; }
.brand__word b { font-weight: 700; letter-spacing: -0.04em; }
.nav__links { display: flex; gap: 30px; font-size: 14.5px; color: var(--muted); }
.nav__links a { position: relative; padding: 6px 0; transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--accent); transition: right .35s var(--ease); }
.nav__links a:hover { color: var(--fg); }
.nav__links a:hover::after { right: 0; }
.nav__toggle { display: none; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 10px 0; }
.mobile { display: none; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 120px 0 0; overflow: hidden; isolation: isolate; }
.hero__field { position: absolute; inset: 0; z-index: -2; }
.hero__glow { position: absolute; z-index: -1; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; right: -20vw; top: -25vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 74, 28, .12), rgba(255, 74, 28, 0) 70%); filter: blur(20px); pointer-events: none; }
.hero__line { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero__line path { stroke: var(--accent); stroke-width: 1.5; fill: none; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2.4s var(--ease) .4s forwards; opacity: .9; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__in { padding-bottom: clamp(48px, 7vh, 96px); }
.hero .h1 { max-width: 13ch; margin: 22px 0 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__meta { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 44px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.hero__meta b { color: var(--muted); font-weight: 500; }

/* Ticker */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: rgba(10, 10, 11, .55); backdrop-filter: blur(6px); }
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker__track:hover { animation-play-state: paused; }
.ticker span { font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 16px 0; display: inline-flex; align-items: center; white-space: nowrap; }
.ticker span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin: 0 34px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(96px, 12vw, 180px) 0; position: relative; }
/* On bone the vermilion deepens to #BF2D0C: 5.1:1 against the background, so labels and italics stay readable (WCAG AA). */
.section--light { background: var(--bone); color: var(--ink); --fg: var(--ink); --muted: #4F4C46; --faint: #6B675F; --accent: #BF2D0C; --line: rgba(10, 10, 11, .10); --line-strong: rgba(10, 10, 11, .26); }

/* FAQ */
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -0.02em; line-height: 1.1; }
.faq__plus { position: relative; width: 28px; height: 28px; flex: none; border: 1px solid var(--line-strong); border-radius: 50%; transition: transform .4s var(--ease), border-color .4s var(--ease); }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--fg); translate: -50% -50%; transition: transform .4s var(--ease); }
.faq__plus::before { width: 12px; height: 1px; }
.faq__plus::after { width: 1px; height: 12px; }
.faq__item[open] .faq__plus { transform: rotate(45deg); border-color: var(--accent); }
.faq__item summary:hover .faq__plus { border-color: var(--accent); }
.faq__item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.faq__item p { color: var(--muted); max-width: 70ch; padding: 0 0 28px; font-size: 16.5px; text-wrap: pretty; }
.faq__item p a { color: var(--fg); border-bottom: 1px solid var(--line-strong); }
.faq__item p a:hover { color: var(--accent); border-color: var(--accent); }
.section__head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.section__head .h2 { margin-top: 20px; }
.section__head .lede { justify-self: end; max-width: 40ch; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0));
  transition: transform .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease);
  display: flex; flex-direction: column;
}
.section--light .card { background: rgba(255, 255, 255, .55); }
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card__n { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--accent); }
.card__icon { position: absolute; top: 28px; right: 28px; width: 28px; height: 28px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .9; transition: transform .5s var(--ease); }
.card:hover .card__icon { transform: translateY(-2px); }
.card__t { font-family: var(--display); font-size: clamp(1.7rem, 2.3vw, 2.2rem); letter-spacing: -0.02em; line-height: 1.05; margin: 44px 0 14px; }
.card__p { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin-top: 0; text-wrap: pretty; }

/* Feature (QORA) */
.feature {
  border: 1px solid var(--line); border-radius: 28px; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr;
  background: radial-gradient(120% 100% at 100% 0%, rgba(255, 74, 28, .10), rgba(255, 74, 28, 0) 55%), var(--ink-2);
}
.feature__body { padding: clamp(32px, 4.5vw, 64px); }
.feature__tag { display: inline-flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone); border: 1px solid var(--line-strong); padding: 7px 12px; border-radius: 999px; }
.feature__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 74, 28, .55) } 100% { box-shadow: 0 0 0 12px rgba(255, 74, 28, 0) } }
.feature__name { font-weight: 760; letter-spacing: -0.06em; font-size: clamp(3.2rem, 7vw, 6.4rem); line-height: .9; margin: 28px 0 14px; }
.feature__name span { color: var(--accent); }
.feature__claim { font-family: var(--display); font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -0.015em; line-height: 1.15; max-width: 22ch; }
.feature__p { color: var(--muted); margin-top: 22px; max-width: 52ch; text-wrap: pretty; }
.feature__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 34px; align-items: center; }
.feature__soon { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.flow { border-left: 1px solid var(--line); padding: clamp(32px, 4.5vw, 64px) clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.flow__t { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 20px; }
.flow__step { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: start; }
.flow__step:last-child { border-bottom: 1px solid var(--line); }
.flow__step b { font-family: var(--mono); font-size: 12px; color: var(--accent); font-weight: 500; padding-top: 4px; }
.flow__step span { font-size: 15.5px; color: var(--bone); }
.flow__step small { display: block; color: var(--faint); font-size: 13.5px; margin-top: 2px; }
.flow__step--gate { background: linear-gradient(90deg, rgba(255, 74, 28, .10), rgba(255, 74, 28, 0)); margin-inline: -16px; padding-inline: 16px; border-radius: 10px; }
.props { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.prop { border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; }
.prop b { display: block; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.prop span { display: block; color: var(--faint); font-size: 13.5px; margin-top: 4px; }

/* Lab card */
.lab { margin-top: 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 30px 32px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.lab .card__t { margin: 6px 0 0; font-size: clamp(1.5rem, 2vw, 1.9rem); }
.lab p { color: var(--muted); font-size: 15px; max-width: 70ch; margin-top: 8px; }

/* Principles */
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 60px 1fr; gap: 20px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.principle b { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--accent); font-weight: 500; padding-top: 10px; }
.principle h3 { font-family: var(--display); font-size: clamp(1.6rem, 2.4vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.05; }
.principle p { color: var(--muted); margin-top: 10px; font-size: 15.5px; max-width: 46ch; text-wrap: pretty; }

/* Studio capabilities */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card--cap { padding: 26px 24px 24px; }
.card--cap .card__icon { top: 22px; right: 22px; width: 24px; height: 24px; }
.card--cap .card__t { font-size: clamp(1.45rem, 1.7vw, 1.75rem); margin: 34px 0 12px; }
.card--cap .card__p { font-size: 14.5px; }
.studio__note { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.studio__note p { color: var(--muted); font-size: 16px; text-wrap: pretty; }
.studio__note .big { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.4rem); color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; }
.studio__sign { display: flex; flex-direction: column; gap: 2px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.studio__sign b { font-family: var(--display); font-weight: 400; font-size: 1.35rem; letter-spacing: -0.01em; color: var(--ink); }
.studio__sign span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

/* Contact */
.contact { position: relative; overflow: hidden; }
.contact__in { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: end; position: relative; }
.contact .h2 { max-width: 14ch; }
.contact__mail { display: inline-flex; align-items: baseline; gap: 14px; margin-top: 44px; font-family: var(--display); font-size: clamp(1.7rem, 3.8vw, 3.4rem); letter-spacing: -0.02em; line-height: 1; border-bottom: 1px solid var(--line-strong); padding-bottom: 10px; transition: border-color .35s var(--ease), color .35s var(--ease); }
.contact__mail .arrow { font-family: var(--text); font-size: .6em; transition: transform .35s var(--ease); }
.contact__mail:hover { color: var(--accent); border-color: var(--accent); }
.contact__mail:hover .arrow { transform: translate(6px, -6px); }
.contact__side { color: var(--muted); font-size: 15.5px; }
.contact__side dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; }
.contact__side dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding-top: 4px; }
.contact__side dd { margin: 0; color: var(--fg); }
.contact__mark { position: absolute; right: -9vw; bottom: -18vw; width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; opacity: .05; pointer-events: none; color: var(--bone); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 0 0 44px; font-size: 13.5px; color: var(--faint); overflow: hidden; }
.footer__word { padding: 28px 0 0; line-height: .82; white-space: nowrap; user-select: none; pointer-events: none; }
.footer__word span {
  display: block; width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto;
  font-family: var(--display); font-size: clamp(3.2rem, 20.6vw, 18.5rem); letter-spacing: -0.045em;   /* "MRT Ventures" spans the wrap */
  color: transparent; -webkit-text-stroke: 1px rgba(243, 240, 234, .22); translate: 0 .14em;
}
.footer__in { padding-top: 36px; border-top: 1px solid var(--line); }
.footer__in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer__legal { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; line-height: 1.7; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 110ch; text-wrap: pretty; }
.footer__links { display: flex; gap: 22px; }
.footer__links a:hover { color: var(--fg); }
.todo { color: var(--faint); border-bottom: 1px dotted var(--faint); cursor: help; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .props { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr; }
  .flow { border-left: 0; border-top: 1px solid var(--line); }
  .principles { grid-template-columns: 1fr; }
  .section__head { grid-template-columns: 1fr; }
  .section__head .lede { justify-self: start; }
  .contact__in { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-block; }
  .mobile { display: none; position: fixed; inset: 76px 0 auto 0; background: rgba(10, 10, 11, .96); border-bottom: 1px solid var(--line); z-index: 59; padding: 10px var(--gutter) 24px; }
  .mobile.open { display: block; }
  .mobile a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 2rem; letter-spacing: -0.02em; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card__t { margin-top: 22px; }
  .props { grid-template-columns: 1fr; }
  .lab { grid-template-columns: 1fr; gap: 16px; }
  .studio__note { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero__meta { gap: 16px; }
  .contact__mail { font-size: clamp(1.25rem, 7vw, 2rem); word-break: break-all; }
  .footer__in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .ticker__track, .hero__line path, .feature__tag i { animation: none; }
  .hero__line path { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
