/* SAYNOVRA · brand tokens taken from the Instagram post system */
:root {
  --ink: #0a0d14;
  --ink-raised: #10141d;
  --lime: #c8f031;
  --paper: #f5f6f8;
  --white: #eef1f6;
  --mute: #8d95aa;
  --line: #262b38;

  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(20px, 5vw, 56px);
  --radius: 22px;

  --mark-bg: var(--ink);
  --mark-dot: var(--lime);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip { position: fixed; left: 16px; top: -80px; z-index: 20; padding: 12px 18px; background: var(--lime); color: var(--ink); font-weight: 600; border-radius: 8px; }
.skip:focus { top: 16px; }

/* ── type ─────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(3.4rem, 9.2vw, 8rem); }
h2 { font-size: clamp(2.4rem, 5.6vw, 4.75rem); }
h1 em, h2 em, h3 em { font-style: normal; color: var(--lime); }

.eyebrow { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); }
.lead { font-size: clamp(1.125rem, 1.9vw, 1.5rem); line-height: 1.45; color: var(--mute); max-width: 34ch; }

/* ── buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 26px; border: 1.5px solid transparent; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em;
  cursor: pointer; transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn span { font-family: var(--mono); font-weight: 400; transition: transform 0.18s ease; }
.btn:hover span { transform: translate(2px, -2px); }
.btn:active { transform: scale(0.98); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #d7f75c; }
.btn-ghost { border-color: var(--line); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-ghost:hover span { transform: translateY(3px); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #171c28; }
.btn-outline { border-color: var(--line); color: var(--white); }
.btn-outline:hover { border-color: var(--lime); color: var(--lime); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }
.btn-block { width: 100%; }

/* ── header ───────────────────────────────────────── */
.header { position: sticky; top: 0; z-index: 10; background: rgba(10, 13, 20, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 0.875rem; letter-spacing: 0.16em; }
.brand-mark { width: 26px; height: 30px; }
.nav { display: flex; gap: 32px; margin-left: auto; font-size: 0.9375rem; color: var(--mute); }
.nav a { padding: 12px 0; transition: color 0.15s ease; }
.nav a:hover { color: var(--white); }
.menu { display: none; }

/* ── hero ─────────────────────────────────────────── */
.hero { padding: clamp(48px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 28px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* Looping brand animation. The mask and blend mode melt the video edges into the page background. */
.hero-media { justify-self: end; width: min(100%, 540px); }
.hero-media video {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at center, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 72% at center, #000 62%, transparent 100%);
}

.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(48px, 7vw, 88px); }
.pills li { padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.pills .pill-hot { background: var(--lime); border-color: var(--lime); color: var(--ink); }

/* ── sections ─────────────────────────────────────── */
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section-raised { background: var(--ink-raised); border-block: 1px solid var(--line); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin-top: 20px; }
.section-head .lead { margin-top: 18px; }

/* ── service panels ───────────────────────────────── */
.panels { display: grid; gap: 20px; }
.panel {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: end;
  padding: clamp(28px, 4.5vw, 64px); border-radius: clamp(22px, 3vw, 32px);
  --fg: var(--white); --soft: var(--mute); --rule: var(--line);
  color: var(--fg);
}
.panel-dark { border: 1.5px solid var(--line); }
.panel-light { background: var(--paper); --fg: var(--ink); --soft: #4a5165; --rule: var(--ink); }
.panel-lime { background: var(--lime); --fg: var(--ink); --soft: #2b3312; --rule: var(--ink); }
.panel-head { align-self: start; }
.panel-index { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.14em; color: var(--soft); }
.panel h3 { font-size: clamp(2rem, 4.2vw, 3.5rem); margin: 18px 0 16px; }
.panel-light h3 em { color: var(--ink); background: var(--lime); padding: 0 0.12em; }
.panel-head p { color: var(--soft); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.45; max-width: 30ch; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cards li, .stack li { border: 1.5px solid var(--rule); border-radius: 18px; font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.cards li { min-height: 148px; padding: 22px; font-size: clamp(1.0625rem, 1.7vw, 1.375rem); }
.cards span, .rows span, .stack span { font-family: var(--mono); font-weight: 400; font-size: 0.8125rem; letter-spacing: 0.1em; color: var(--soft); }
.cards span { display: block; margin-bottom: 14px; }
.hot { background: var(--lime); border-color: var(--lime) !important; color: var(--ink); }
.hot span { color: var(--ink); }

.stack { display: grid; gap: 12px; }
.stack li { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 16px; padding: 22px 24px; font-size: clamp(1.0625rem, 1.7vw, 1.375rem); }
.stack span { text-transform: uppercase; }

.rows { border-top: 1px solid var(--rule); }
.rows li { display: grid; grid-template-columns: 48px 1fr; align-items: baseline; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--rule); font-family: var(--display); font-weight: 700; font-size: clamp(1.125rem, 1.9vw, 1.5rem); letter-spacing: -0.01em; line-height: 1.2; }

/* ── simulation (interactive ai agent terminal) ────── */
.sim-wrapper, .sim-side, .sim-main { display: flex; flex-direction: column; gap: 24px; }
.sim-tabs { display: flex; flex-wrap: wrap; gap: 12px; }
.sim-tab {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 22px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--ink); color: var(--mute);
  font-family: var(--display); font-weight: 600; font-size: 0.9375rem;
  cursor: pointer; transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.sim-tab-num { font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; color: var(--mute); letter-spacing: 0.08em; }
.sim-tab:hover { border-color: var(--white); color: var(--white); }
.sim-tab.is-active { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.sim-tab.is-active .sim-tab-num { color: var(--ink); font-weight: 700; }

.sim-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 28px; border-radius: 20px; background: var(--ink); border: 1.5px solid var(--line);
}
.sim-meta-info { display: flex; flex-direction: column; gap: 8px; max-width: 65ch; }
.sim-badge {
  display: inline-block; align-self: flex-start; padding: 4px 10px; border-radius: 6px;
  background: rgba(200, 240, 49, 0.12); color: var(--lime);
  font-family: var(--mono); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.sim-desc { font-family: var(--body); font-size: 0.9375rem; color: var(--mute); line-height: 1.5; }
.sim-meta-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* Pipeline visualizer */
.sim-pipeline {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 8px;
  padding: 18px 24px; border-radius: 18px; background: var(--ink); border: 1.5px solid var(--line);
}
.sim-step {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px;
  border-radius: 14px; background: rgba(255, 255, 255, 0.02); border: 1px solid transparent;
  transition: border-color 0.22s ease, background-color 0.22s ease;
}
.sim-step-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--line); margin-bottom: 4px;
  transition: transform 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}
.sim-step-label { font-family: var(--display); font-weight: 700; font-size: 0.875rem; color: var(--mute); transition: color 0.22s ease; }
.sim-step-sub { font-family: var(--mono); font-size: 0.8125rem; color: var(--mute); opacity: 0.75; }
.sim-step-line { width: 18px; height: 2px; background: var(--line); }

.sim-step.is-active { border-color: var(--lime); background: rgba(200, 240, 49, 0.07); }
.sim-step.is-active .sim-step-dot { background: var(--lime); box-shadow: 0 0 10px var(--lime); transform: scale(1.3); }
.sim-step.is-active .sim-step-label { color: var(--lime); }
.sim-step.is-done { border-color: rgba(200, 240, 49, 0.25); }
.sim-step.is-done .sim-step-dot { background: var(--lime); }
.sim-step.is-done .sim-step-label { color: var(--white); }

/* Terminal window */
.sim-terminal {
  display: flex; flex-direction: column; border-radius: 20px; border: 1.5px solid var(--line);
  background: #080a0f; box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.65); overflow: hidden;
}
.terminal-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px; background: #0e121b; border-bottom: 1px solid var(--line);
}
.terminal-dots { display: flex; gap: 8px; }
.terminal-dots span { width: 11px; height: 11px; border-radius: 50%; }
.dot-red { background: #ff5f56; opacity: 0.85; }
.dot-yellow { background: #ffbd2e; opacity: 0.85; }
.dot-green { background: #27c93f; opacity: 0.85; }
.terminal-title { font-family: var(--mono); font-size: 0.8125rem; color: var(--mute); letter-spacing: 0.02em; }
.terminal-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; color: var(--mute);
}
.status-indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--mute); }
.terminal-status.is-running { color: var(--lime); }
.terminal-status.is-running .status-indicator { background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: pulse 1s infinite alternate; }
.terminal-status.is-completed { color: #5af78e; }
.terminal-status.is-completed .status-indicator { background: #5af78e; }
@keyframes pulse { from { opacity: 0.4; } to { opacity: 1; } }

.terminal-body {
  display: flex; flex-direction: column; gap: 10px; min-height: 270px; max-height: 380px;
  padding: 22px 24px; font-family: var(--mono); font-size: 0.84375rem; line-height: 1.6;
  overflow-y: auto; overflow-x: auto;
}
.terminal-line { display: flex; align-items: flex-start; gap: 12px; animation: logFadeIn 0.22s ease-out forwards; }
@keyframes logFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.log-time { flex-shrink: 0; color: var(--mute); opacity: 0.7; font-size: 0.8125rem; padding-top: 2px; }
.log-tag {
  flex-shrink: 0; display: inline-block; font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.06em; padding: 1px 7px; border-radius: 4px; text-transform: uppercase;
}
.tag-EVENT { background: rgba(122, 215, 255, 0.14); color: #7ad7ff; border: 1px solid rgba(122, 215, 255, 0.3); }
.tag-MCP { background: rgba(197, 154, 255, 0.14); color: #c59aff; border: 1px solid rgba(197, 154, 255, 0.3); }
.tag-AGENT { background: rgba(255, 184, 108, 0.14); color: #ffb86c; border: 1px solid rgba(255, 184, 108, 0.3); }
.tag-API { background: rgba(200, 240, 49, 0.14); color: var(--lime); border: 1px solid rgba(200, 240, 49, 0.3); }
.tag-SUCCESS { background: rgba(90, 247, 142, 0.16); color: #5af78e; border: 1px solid rgba(90, 247, 142, 0.4); font-weight: 800; }

.log-text { color: var(--white); word-break: break-word; }
.log-cursor {
  display: inline-block; width: 8px; height: 15px; background: var(--lime);
  vertical-align: middle; margin-left: 6px; animation: blink 0.9s infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.terminal-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding: 14px 24px; background: #0e121b; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.8125rem;
}
.term-stat { display: flex; align-items: center; gap: 8px; }
.term-stat-label { color: var(--mute); }
.term-stat-val { color: var(--white); font-weight: 600; }
.text-lime { color: var(--lime) !important; }

/* ── laptop demo (js/demo.js) ─────────────────────── */
.demo-note { max-width: 62ch; margin-top: 22px; padding: 12px 16px; border-left: 3px solid var(--lime); border-radius: 0 12px 12px 0; background: rgba(200, 240, 49, 0.07); color: var(--white); font-size: 1rem; line-height: 1.5; }
.demo-note strong { color: var(--lime); font-weight: 600; }
.laptop-lid { position: relative; margin-inline: 3.2%; padding: 26px 14px 14px; border: 1.5px solid #2b303c; border-bottom: 0; border-radius: 22px 22px 0 0; background: #151922; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); }
.laptop-cam { position: absolute; top: 9px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #2f3542; }
.laptop-screen { display: flex; flex-direction: column; height: clamp(540px, min(48vw, 100dvh - 190px), 700px); border-radius: 8px; background: var(--ink); overflow: hidden; }
.laptop-base { position: relative; height: 20px; border-radius: 2px 2px 18px 18px; background: linear-gradient(#343a47, #191d26 65%); }
.laptop-base::before { content: ''; position: absolute; top: 0; left: 43%; width: 14%; height: 7px; border-radius: 0 0 9px 9px; background: #10131a; }

.os-bar { display: flex; align-items: center; gap: 14px; flex: none; min-height: 52px; padding: 0 14px; background: #0e121b; }
.os-dots { display: flex; gap: 7px; }
.os-dots i { width: 11px; height: 11px; border-radius: 50%; background: #2f3542; }
.os-tabs { display: flex; align-self: stretch; align-items: flex-end; gap: 4px; min-width: 0; }
.os-tab { min-height: 42px; padding: 0 18px; border: 0; border-radius: 10px 10px 0 0; background: none; color: var(--mute); font-family: var(--display); font-weight: 600; font-size: 0.9375rem; white-space: nowrap; cursor: pointer; transition: color 0.18s ease; }
.os-tab:hover { color: var(--white); }
.os-tab:focus-visible { outline-offset: -3px; }
.os-tab[aria-selected="true"] { background: var(--paper); color: var(--ink); }
#os-tab-flow[aria-selected="true"] { background: var(--ink); color: var(--lime); }
.os-note { margin-left: auto; font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.os-reset { min-height: 36px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: none; font-family: var(--display); font-weight: 600; font-size: 0.875rem; cursor: pointer; transition: border-color 0.18s ease; }
.os-reset:hover { border-color: var(--white); }
.os-body { position: relative; flex: 1 1 auto; min-height: 0; container-type: inline-size; }
.os-toast { position: absolute; left: 50%; bottom: 18px; z-index: 5; width: max-content; max-width: calc(100% - 32px); padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); color: var(--white); font-size: 0.9375rem; transform: translateX(-50%); box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.6); }

.app { height: 100%; padding: 20px 24px 24px; overflow-y: auto; }
.app-dark { background: var(--ink); }
.app-light { background: var(--paper); color: var(--ink); color-scheme: light; --soft: #565d70; --edge: #e1e5ec; }
.app-light :focus-visible { outline-color: var(--ink); outline-offset: 2px; }
.app h4 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
.app-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-bottom: 14px; }
.app-kicker { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.app-title { margin-top: 6px; font-size: 1.75rem; letter-spacing: -0.025em; }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.app-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 1.5px solid #cdd2dc; border-radius: 10px; background: #fff; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 0.9375rem; white-space: nowrap; cursor: pointer; transition: border-color 0.18s ease, background-color 0.18s ease; }
.app-btn:hover { border-color: var(--ink); }
.app-btn-primary { border-color: var(--ink); background: var(--ink); color: var(--lime); }
.app-btn-primary:hover { background: #1a2030; }
.app-btn-small { min-height: 36px; padding: 0 12px; font-size: 0.875rem; }
.app-btn-icon { width: 40px; padding: 0; font-size: 1.25rem; }
.app-input { min-height: 40px; min-width: 0; padding: 0 12px; border: 1.5px solid #cdd2dc; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 0.9375rem; }
.app-input::placeholder { color: #767d90; }
.app-error { color: #a3221b; font-size: 0.875rem; font-weight: 600; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: #e4e7ee; }
.seg-btn { min-height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: #4a5165; font-family: var(--display); font-weight: 600; font-size: 0.9375rem; cursor: pointer; }
.seg-btn[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(10, 13, 20, 0.16); }

.app-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; }
.app-stat { padding: 11px 16px 12px; border: 1px solid var(--edge); border-radius: 14px; background: #fff; }
.app-stat dt { font-size: 0.8125rem; color: var(--soft); }
.app-stat dd { margin: 2px 0 0; font-family: var(--display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.app-stat-warn dd { color: #a3221b; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.badge-ok { background: #dff3e5; color: #17602f; }
.badge-wait { background: #ffefcf; color: #734a00; }
.badge-late { background: #fde3e1; color: #9a1f18; }

.app-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.app-toolbar input { flex: 1 1 220px; }
.app-table-wrap { border: 1px solid var(--edge); border-radius: 14px; background: #fff; overflow: hidden; }
.app-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.app-table th { padding: 10px 14px; background: #eef0f5; color: var(--soft); font-size: 0.8125rem; font-weight: 600; text-align: left; }
.app-table td { padding: 9px 14px; border-top: 1px solid #edf0f4; }
.app-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.app-table .cell-name { font-weight: 600; }
.cell-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app-table tr.is-new td { animation: rowFlash 2s ease-out; }
@keyframes rowFlash { from { background: rgba(200, 240, 49, 0.6); } to { background: rgba(200, 240, 49, 0); } }
.app-empty { padding: 28px 16px; color: var(--soft); text-align: center; }

.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal-head strong { font-family: var(--display); font-size: 1.125rem; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--edge); border-radius: 14px; background: #fff; overflow: hidden; }
.cal-dow { padding: 8px 4px; background: #eef0f5; color: var(--soft); font-size: 0.8125rem; font-weight: 600; text-align: center; }
.cal-day { min-height: 62px; padding: 5px; border-top: 1px solid #edf0f4; border-left: 1px solid #edf0f4; font-size: 0.8125rem; }
.cal-day:nth-child(7n + 1) { border-left: 0; }
.cal-num { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 50%; font-weight: 600; }
.cal-day.is-today .cal-num { background: var(--ink); color: var(--lime); }
.cal-event { display: block; width: 100%; margin-top: 3px; padding: 3px 6px; border: 0; border-radius: 6px; background: #ffefcf; color: var(--ink); font-size: 0.8125rem; font-weight: 600; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cal-event.is-paid { background: #dff3e5; }
.cal-event:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

.app-sheet { position: absolute; inset: 0 0 0 auto; z-index: 3; display: flex; flex-direction: column; gap: 14px; width: min(380px, 100%); padding: 24px; border-left: 1px solid #d5dae3; background: #fff; box-shadow: -28px 0 56px -28px rgba(10, 13, 20, 0.45); overflow-y: auto; }
.app-sheet h4 { font-size: 1.25rem; }
.app-sheet label { display: grid; gap: 6px; color: #3a4052; font-size: 0.875rem; font-weight: 600; }
.app-sheet-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-sheet-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: auto; padding-top: 6px; }

.fin-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.fin-side { display: grid; gap: 14px; }
.app-card { padding: 16px; border: 1px solid var(--edge); border-radius: 14px; background: #fff; }
.app-card h4 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px; font-size: 1.0625rem; }
.fin-invoice { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 11px 0; border-top: 1px solid #edf0f4; }
.fin-invoice:first-child { padding-top: 2px; border-top: 0; }
.fin-invoice:last-child { padding-bottom: 2px; }
.fin-firm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 0.9375rem; }
.fin-meta { color: var(--soft); font-size: 0.8125rem; text-align: right; }
.fin-amounts { display: flex; flex-wrap: wrap; gap: 2px 16px; color: var(--soft); font-size: 0.875rem; }
.fin-amounts b { color: var(--ink); font-variant-numeric: tabular-nums; }
.fin-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; grid-column: 1 / -1; margin-top: 6px; }
.fin-pay .app-input { flex: 1 1 110px; min-height: 36px; }
.fin-pay .app-error { flex: 1 1 100%; }
.fin-todo { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 7px 0; font-size: 0.9375rem; line-height: 1.35; cursor: pointer; }
.fin-todo input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.fin-todo small { display: block; margin-top: 2px; color: var(--soft); font-size: 0.8125rem; }
.fin-todo.is-done .fin-todo-text { color: #6b7286; text-decoration: line-through; }
.fin-legend { display: inline-flex; align-items: center; gap: 6px; color: var(--soft); font-family: var(--body); font-size: 0.8125rem; font-weight: 400; }
.fin-legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--ink); }
.fin-legend i.is-out { margin-left: 8px; background: #b6bcc9; }
.fin-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; height: 112px; }
.fin-col { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 4px; color: var(--soft); font-size: 0.8125rem; text-align: center; white-space: nowrap; }
.fin-col.is-current { color: var(--ink); font-weight: 700; }
.fin-bars { display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.fin-bars i { width: 42%; max-width: 12px; height: var(--h, 0%); border-radius: 3px 3px 0 0; background: var(--ink); transition: height 0.4s ease; }
.fin-bars i + i { background: #b6bcc9; }
.fin-col.is-current i:first-child { background: var(--lime); box-shadow: inset 0 0 0 1.5px var(--ink); }
.fin-expense { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #edf0f4; }
.fin-expense .app-input { flex: 1 1 100px; }

/* The simulator, fitted to the laptop screen: scenario on the left, steps and terminal on the right. */
.app-dark .sim-wrapper { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 14px; min-height: 100%; }
.app-dark .sim-side, .app-dark .sim-main { gap: 14px; min-width: 0; }
.app-dark .sim-tabs { flex-direction: column; gap: 8px; }
.app-dark .sim-tab { width: 100%; min-height: 44px; padding: 0 18px; }
.app-dark .sim-meta { flex-direction: column; align-items: stretch; padding: 16px 18px; border-radius: 14px; background: var(--ink-raised); }
.app-dark .sim-meta-actions { flex-direction: column; align-items: stretch; margin-left: 0; gap: 8px; }
.app-dark .sim-pipeline { padding: 10px 14px; border-radius: 14px; background: var(--ink-raised); }
.app-dark .sim-step { padding: 8px 12px; }
.app-dark .sim-terminal { flex: 1 1 0; min-height: 300px; border-radius: 14px; box-shadow: none; }
.app-dark .terminal-body { flex: 1 1 0; min-height: 0; max-height: none; }

@container (max-width: 780px) {
  .app { padding: 18px 16px 24px; }
  .app-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-stat dd { font-size: 1.1875rem; }
  .fin-meta { grid-column: 1 / -1; text-align: left; }
  .fin-col:nth-child(odd) span { visibility: hidden; }
  .app-dark .sim-wrapper { grid-template-columns: 1fr; }
  .app-dark .sim-terminal { flex: none; }
  .app-dark .terminal-body { flex: none; min-height: 240px; max-height: 380px; }
  .fin-grid { grid-template-columns: 1fr; }
  .app-table thead { display: none; }
  .app-table, .app-table tbody { display: block; }
  .app-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; padding: 12px 14px; border-top: 1px solid #edf0f4; }
  .app-table tr:first-child { border-top: 0; }
  .app-table td { display: block; padding: 0; border: 0; }
  .app-table td::before { content: attr(data-label); display: block; color: var(--soft); font-size: 0.8125rem; font-weight: 400; }
  .app-table .num { text-align: left; }
  .app-table .cell-name { grid-column: 1 / -1; font-size: 1.0625rem; }
  .app-table .cell-name::before, .app-table .cell-status::before { display: none; }
  .app-table .cell-status { display: flex; grid-column: 1 / -1; justify-content: flex-start; }
  .app-table tr.is-new { animation: rowFlash 2s ease-out; }
  .cal-day { min-height: 54px; padding: 3px; }
  .cal-event { padding: 2px 3px; }
  .sim-pipeline { grid-template-columns: 1fr; }
  .sim-step-line { display: none; }
}

/* ── process ──────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.steps li { display: flex; flex-direction: column; padding-top: 24px; border-top: 1.5px solid var(--line); }
.step-number { font-family: var(--display); font-weight: 700; font-size: clamp(3.5rem, 6vw, 5.5rem); line-height: 0.9; letter-spacing: -0.06em; color: var(--lime); }
.steps h3 { font-size: 1.625rem; letter-spacing: -0.02em; margin: 24px 0 12px; }
.steps p { color: var(--mute); font-size: 1rem; }
.steps .step-out { margin-top: auto; padding-top: 24px; color: var(--white); font-family: var(--mono); font-size: 0.8125rem; line-height: 1.5; }
.step-out::before { content: 'Çıktı → '; color: var(--lime); }

/* ── projects (filled from projects.json) ─────────── */
.work-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36ch); align-items: end; gap: 24px 48px; }
.work-note { color: var(--mute); font-size: 1rem; }
.projects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
.project { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.project-media { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--ink-raised); transition: border-color 0.18s ease; }
button.project-media { cursor: pointer; }
button.project-media:hover { border-color: var(--lime); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
button.project-media:hover img { transform: scale(1.035); }
.project-play { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 18px; border-radius: 999px; background: var(--lime); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 0.9375rem; }
.project-play::after { content: '→'; font-family: var(--mono); font-weight: 400; }
.project-play-time { font-family: var(--mono); font-weight: 400; font-size: 0.8125rem; }
.project-tag { margin-bottom: 10px; font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); }
.project h3 { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 10px; }
.project-text { color: var(--mute); font-size: 1rem; line-height: 1.5; }
.project-features { display: grid; gap: 8px; margin-top: 16px; font-size: 0.9375rem; line-height: 1.4; }
.project-features li { display: grid; grid-template-columns: 7px 1fr; gap: 12px; }
.project-features li::before { content: ''; width: 7px; height: 7px; margin-top: 0.45em; border-radius: 50%; background: var(--lime); }
.project-link { display: inline-flex; gap: 10px; margin-top: 14px; padding: 10px 0; color: var(--lime); font-family: var(--display); font-weight: 600; }

/* ── project tour ─────────────────────────────────── */
html:has(.work-dialog[open]) { overflow: hidden; }
.work-dialog { width: min(1000px, 100% - 32px); max-width: none; max-height: none; padding: 0; border: 1.5px solid var(--line); border-radius: 28px; background: var(--ink-raised); color: var(--white); overflow: hidden; }
.work-dialog::backdrop { background: rgba(5, 7, 11, 0.86); }
.work-dialog-grid { --player-h: min(780px, 100dvh - 32px); display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: var(--player-h); }
.tour-stage { display: grid; place-items: center; width: calc(var(--player-h) * 0.56); background: radial-gradient(120% 70% at 50% 0%, rgba(200, 240, 49, 0.18), transparent 62%), var(--ink); }
.tour-phone { position: relative; display: block; height: calc(var(--player-h) - 56px); aspect-ratio: 390 / 844; padding: 0; border: 7px solid #1d2026; border-radius: 34px; background: #000; box-shadow: 0 0 0 1.5px #2f3542, 0 30px 60px -20px rgba(0, 0, 0, 0.85); overflow: hidden; cursor: pointer; touch-action: pan-y; }
.tour-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.32s ease; }
.tour-shot.is-front { opacity: 1; }
.tour-mark { position: absolute; left: var(--x); top: var(--y); pointer-events: none; }
.tour-mark.is-spot { width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 3px solid var(--lime); border-radius: 50%; background: rgba(200, 240, 49, 0.28); outline: 1.5px solid rgba(10, 13, 20, 0.6); animation: tourPulse 1.1s ease-out infinite; }
.tour-mark.is-box { width: var(--w); height: var(--h); border: 3px solid var(--lime); border-radius: 12px; outline: 1.5px solid rgba(10, 13, 20, 0.6); box-shadow: 0 0 0 5px rgba(200, 240, 49, 0.25); }
@keyframes tourPulse { from { box-shadow: 0 0 0 0 rgba(200, 240, 49, 0.7); } to { box-shadow: 0 0 0 20px rgba(200, 240, 49, 0); } }

.tour-info { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 0; padding: 34px 32px 24px; }
.tour-project { margin: 10px 56px 0 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.tour-progress { display: flex; gap: 5px; align-self: stretch; margin: 18px 0 22px; }
.tour-progress li { flex: 1 1 0; height: 4px; border-radius: 2px; background: var(--line); transition: background-color 0.25s ease; }
.tour-progress li.is-done { background: var(--lime); }
.tour-caption { min-height: 9.75rem; }
.tour-count { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.12em; color: var(--mute); }
.tour-title { margin: 8px 0 10px; font-family: var(--display); font-weight: 700; font-size: clamp(1.625rem, 2.6vw, 2.125rem); letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
.tour-text { color: var(--mute); font-size: 1.0625rem; line-height: 1.5; }
.tour-nav { display: flex; gap: 10px; margin-top: 18px; }
.tour-nav .btn b { font-weight: 600; }
.tour-nav .btn:hover span { transform: none; }
.tour-nav .btn:disabled { opacity: 0.4; cursor: default; }
.chapters { flex: 1 1 auto; align-self: stretch; min-height: 0; margin: 20px -12px 14px; padding-top: 8px; border-top: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain; }
.chapter { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: baseline; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 10px; background: none; color: var(--mute); text-align: left; cursor: pointer; }
.chapter:hover { background: rgba(238, 241, 246, 0.05); color: var(--white); }
.chapter-time { font-family: var(--mono); font-size: 0.8125rem; }
.chapter-title { font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.chapter[aria-current] { background: rgba(200, 240, 49, 0.1); color: var(--white); }
.chapter[aria-current] .chapter-time { color: var(--lime); }
.work-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 50%; background: var(--ink); cursor: pointer; }
.work-close::before, .work-close::after { content: ''; position: absolute; top: 50%; left: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; border-radius: 2px; background: var(--white); transform: rotate(45deg); }
.work-close::after { transform: rotate(-45deg); }
.work-close:hover { border-color: var(--white); }

/* ── contact ──────────────────────────────────────── */
.contact { background: var(--lime); color: var(--ink); }
.contact :focus-visible { outline-color: var(--ink); }
.contact .eyebrow { color: #2b3312; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact h2 { margin: 20px 0 24px; }
.contact .lead { color: #2b3312; max-width: 38ch; margin-bottom: 36px; }

/* phone: the brief form dressed as a messaging screen */
.phone {
  position: relative; justify-self: center; width: min(100%, 404px); padding: 11px;
  border-radius: 62px; background: linear-gradient(145deg, #3a3d44, #17191e 30%, #0c0d10 70%, #2c2f36);
  box-shadow: 0 0 0 1.5px #05060a, 0 40px 70px -24px rgba(10, 13, 20, 0.55), 0 12px 24px -12px rgba(10, 13, 20, 0.4);
  color: var(--white);
}
.phone::before, .phone::after { content: ''; position: absolute; width: 4px; border-radius: 3px; background: #1d2026; }
.phone::before { left: -4px; top: 150px; height: 34px; box-shadow: 0 62px 0 #1d2026, 0 118px 0 #1d2026; }
.phone::after { right: -4px; top: 212px; height: 92px; }
.phone :focus-visible { outline-color: var(--lime); }
.phone-screen { display: flex; flex-direction: column; min-height: 780px; border-radius: 52px; background: var(--ink); overflow: hidden; }

.phone-status { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px 30px 8px; font-family: var(--body); font-weight: 600; font-size: 0.9375rem; }
.phone-island { width: 112px; height: 32px; border-radius: 20px; background: #000; }
.phone-icons { display: flex; justify-content: flex-end; align-items: center; gap: 7px; }
.signal { width: 18px; height: 12px; background: linear-gradient(to right, var(--white) 3px, transparent 3px) 0 100% / 5px 100% repeat-x; clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%); }
.battery { position: relative; width: 26px; height: 13px; border: 1.5px solid var(--mute); border-radius: 4px; }
.battery::before { content: ''; position: absolute; inset: 1.5px; right: 5px; border-radius: 1.5px; background: var(--white); }
.battery::after { content: ''; position: absolute; right: -4.5px; top: 3px; width: 2px; height: 4px; border-radius: 0 2px 2px 0; background: var(--mute); }

.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 22px 14px; border-bottom: 1px solid var(--line); }
.chat-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--ink-raised); }
.chat-avatar svg { width: 18px; height: 21px; }
.chat-name { display: grid; font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: 0.04em; line-height: 1.25; }
.chat-name small { font-family: var(--body); font-weight: 400; font-size: 0.8125rem; letter-spacing: 0; color: var(--mute); }

.chat-body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 20px 18px 8px; }
.bubble { width: fit-content; max-width: 86%; padding: 11px 16px; font-size: 0.9375rem; line-height: 1.4; }
.bubble-in { border-radius: 20px 20px 20px 6px; background: #1a1f2b; }
.bubble-out { align-self: flex-end; border-radius: 20px 20px 6px 20px; background: var(--lime); color: var(--ink); font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; animation: pop 0.28s ease-out; }
.chat-body legend { margin-bottom: 12px; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } }

.field > span { display: block; margin: 0 0 8px 6px; font-size: 0.8125rem; font-weight: 500; color: var(--mute); }
.field small { font-weight: 400; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choices span { display: block; padding: 10px 15px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 0.875rem; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.choices label:hover span { border-color: var(--mute); }
.choices input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--ink); font-weight: 600; }
.choices input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 3px; }
.field input, .field textarea { display: block; width: 100%; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 20px; background: var(--ink-raised); font-size: 1rem; transition: border-color 0.15s ease; }
.field textarea { resize: none; min-height: 104px; }
.field ::placeholder { color: #5d6579; opacity: 1; }
.field input:hover, .field textarea:hover { border-color: var(--mute); }
.field input:focus, .field textarea:focus { border-color: var(--lime); outline: none; }
.field [aria-invalid='true'] { border-color: #ff8a7a; }
.brief-status { padding: 0 6px; font-size: 0.875rem; font-weight: 500; color: var(--lime); }
.brief-status.is-error { color: #ff8a7a; }
.brief-status:empty { display: none; }

.phone-dock { display: flex; flex-direction: column; align-items: center; padding: 12px 22px 10px; }
.send { display: grid; place-items: center; width: 64px; height: 64px; border: 0; border-radius: 50%; background: var(--lime); color: var(--ink); cursor: pointer; box-shadow: 0 0 0 6px rgba(200, 240, 49, 0.14); transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease; }
.send svg { width: 28px; height: 28px; transition: transform 0.18s ease; }
.send:hover { background: #d7f75c; box-shadow: 0 0 0 9px rgba(200, 240, 49, 0.18); }
.send:hover svg { transform: translateY(-2px); }
.send:active { transform: scale(0.94); }
.send-label { margin-top: 10px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
.dock-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; margin-bottom: 14px; border: 1.5px solid var(--lime); border-radius: 999px; color: var(--lime); font-family: var(--display); font-weight: 600; font-size: 0.9375rem; transition: background-color 0.15s ease, color 0.15s ease; }
.dock-link:hover { background: var(--lime); color: var(--ink); }
.brief-note { margin-top: 12px; font-size: 0.75rem; line-height: 1.45; text-align: center; color: var(--mute); }
.phone-home { width: 134px; height: 5px; margin-top: 16px; border-radius: 3px; background: var(--white); opacity: 0.85; }

@media (max-width: 420px) {
  .phone { padding: 9px; border-radius: 52px; }
  .phone-screen { border-radius: 44px; }
  .phone-status { padding-inline: 24px; }
  .phone-island { width: 96px; height: 28px; }
}

/* ── footer ───────────────────────────────────────── */
.footer { padding: 36px 0; border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.08em; color: var(--mute); }
.footer .brand { color: var(--white); }
.footer-link { padding: 12px 0; color: var(--lime); }
.footer-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── responsive ───────────────────────────────────── */
@media (max-width: 1000px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
  .hero-media { justify-self: center; width: min(100%, 440px); margin-top: -24px; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; align-items: start; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .lead, .panel-head p { max-width: 44ch; }
  .laptop-screen { height: auto; }
  .os-bar { flex-wrap: wrap; gap: 8px; padding: 10px 10px 0; }
  .os-dots { display: none; }
  .os-note { order: -2; margin-left: 4px; }
  .os-reset { order: -1; margin-left: auto; }
  .os-tabs { flex: 1 1 100%; overflow-x: auto; }
  .app { height: auto; min-height: 420px; overflow: visible; }
  .app-sheet { position: static; width: auto; margin-bottom: 18px; padding: 18px; border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: none; }
  .os-toast { position: sticky; left: auto; bottom: 12px; margin: 0 auto 12px; transform: none; }
  .sim-meta { flex-direction: column; align-items: flex-start; }
  .sim-meta-actions { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .sim-meta-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-row { gap: 12px; height: 64px; }
  .header-cta { display: none; }
  .menu { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: none; font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 20px; background: var(--ink); border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 600; font-size: 1.375rem; color: var(--white); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .actions .btn { flex: 1 1 100%; }
  .work-head { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; gap: 28px; }
  .project { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 18px; align-items: start; }
  .project-media { border-radius: 16px; }
  .project-play { left: 8px; bottom: 8px; width: 44px; padding: 0; justify-content: center; }
  .project-play-label, .project-play-time { display: none; }
  .project h3 { font-size: 1.3125rem; }
  .work-dialog { width: 100%; height: 100dvh; margin: 0; border: 0; border-radius: 0; overflow-y: auto; }
  .work-dialog-grid { display: block; }
  .tour-stage { width: auto; padding: 60px 16px 18px; }
  .tour-phone { height: min(54dvh, 540px); border-width: 6px; border-radius: 28px; }
  .tour-info { padding: 18px var(--gutter) 28px; }
  .tour-project { margin: 6px 0 0; font-size: 1.0625rem; }
  .tour-progress { margin: 14px 0 16px; }
  .tour-caption { min-height: 7.5rem; }
  .tour-nav { align-self: stretch; }
  .tour-nav .btn { flex: 1 1 0; }
  .chapters { display: none; }
  .tour-cta { align-self: stretch; margin-top: 12px; }
  .work-close { position: fixed; background: rgba(10, 13, 20, 0.72); }
  .laptop-lid { margin-inline: 0; padding: 16px 6px 6px; border-radius: 16px 16px 0 0; }
  .laptop-cam { top: 5px; width: 6px; height: 6px; }
  .laptop-base { height: 14px; }
  .os-tab { padding: 0 12px; }
  .app-btn, .app-input, .app-btn-small, .fin-pay .app-input { min-height: 44px; }
  .seg-btn { min-height: 38px; }
  .stack li { grid-template-columns: 72px 1fr; padding: 18px; }
  .sim-tabs { flex-direction: column; }
  .sim-tab { width: 100%; justify-content: flex-start; }
  .terminal-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 520px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .cards li { min-height: 0; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
