:root {
  --ink: #171714;
  --muted: #686860;
  --line: #d9d9d0;
  --paper: #f6f6f0;
  --white: #fff;
  --accent: #b8f34a;
  --blue: #6f8cff;
  --orange: #ff6b4a;
  --max: 1240px;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link { position: fixed; z-index: 100; left: 16px; top: -80px; padding: 12px 18px; color: #fff; background: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 16px; }
.shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 88%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.nav-shell { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
.brand { width: max-content; display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 850; letter-spacing: -.04em; }
.brand img { width: 34px; height: 34px; }
.brand span { font-size: 19px; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: #4d4d47; font-size: 14px; font-weight: 650; text-decoration: none; }
.main-nav a:hover { color: var(--ink); }
.nav-cta { justify-self: end; }
.mobile-menu { display: none; }
.mobile-menu summary { cursor: pointer; list-style: none; border: 1px solid var(--line); border-radius: 100px; padding: 9px 14px; color: var(--ink); background: var(--white); font-size: 14px; font-weight: 700; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu nav { position: absolute; top: 76px; left: 24px; right: 24px; display: flex; flex-direction: column; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(23,23,20,.14); }
.mobile-menu nav a { padding: 13px; color: #4d4d47; font-size: 14px; font-weight: 650; text-decoration: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 48px; padding: 0 20px; border-radius: 10px; font-size: 14px; font-weight: 760; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button--dark { color: #fff; background: var(--ink); box-shadow: 0 8px 20px rgba(23,23,20,.12); }
.button--accent { color: var(--ink); background: var(--accent); box-shadow: 0 8px 24px rgba(125,170,35,.16); }
.button--light { color: var(--ink); background: #fff; }
.text-link { display: inline-flex; gap: 16px; align-items: center; padding-block: 12px; font-size: 14px; font-weight: 740; text-decoration: underline; text-decoration-color: #a5a59c; text-underline-offset: 6px; }
.eyebrow { margin: 0 0 20px; color: #585851; font-size: 12px; font-weight: 820; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow--light { color: #bdbdb4; }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 100%; background: var(--accent); box-shadow: 0 0 0 5px rgba(184,243,74,.16); }

.hero { padding: 80px 0 0; overflow: hidden; border-bottom: 1px solid var(--line); background-image: linear-gradient(#e9e9e2 1px, transparent 1px), linear-gradient(90deg, #e9e9e2 1px, transparent 1px); background-size: 48px 48px; }
.hero-grid { min-height: 630px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 90px; }
.hero-copy { max-width: 720px; padding-bottom: 60px; }
.hero h1 { max-width: 780px; margin: 0; font-size: clamp(64px, 7vw, 108px); line-height: .9; letter-spacing: -.075em; }
.hero h1 em { color: var(--blue); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.hero-lede { max-width: 650px; margin: 38px 0 0; color: #51514b; font-size: clamp(18px, 2vw, 23px); line-height: 1.55; letter-spacing: -.02em; }
.hero-actions { display: flex; align-items: center; gap: 32px; margin-top: 36px; }

.product-stack { position: relative; height: 490px; }
.stack-card { position: absolute; inset-inline: 0; height: 170px; display: grid; grid-template-columns: 42px 74px 1fr; grid-template-rows: 1fr 1fr; align-items: center; column-gap: 24px; padding: 28px; border: 1px solid rgba(23,23,20,.12); border-radius: var(--radius); color: var(--ink); text-decoration: none; box-shadow: 0 28px 55px rgba(23,23,20,.13); transition: transform .25s ease; }
.stack-card:hover { z-index: 5; transform: translateY(-8px) rotate(0); }
.stack-card img { grid-row: 1 / 3; grid-column: 2; width: 68px; height: 68px; border-radius: 16px; object-fit: contain; }
.stack-number { grid-row: 1 / 3; color: rgba(23,23,20,.5); font-size: 12px; font-weight: 750; align-self: start; }
.stack-name { align-self: end; font-size: 30px; font-weight: 850; letter-spacing: -.05em; }
.stack-note { align-self: start; margin-top: 7px; color: rgba(23,23,20,.63); font-size: 14px; }
.stack-card--mio { top: 6px; z-index: 3; background: #ffddd5; transform: rotate(2.4deg); }
.stack-card--rclick { top: 145px; z-index: 2; background: #dfff9f; transform: rotate(-2deg); }
.stack-card--doc { top: 286px; z-index: 1; background: #dfe6ff; transform: rotate(1.5deg); }
.capability-strip { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #5f5f58; font-size: 12px; font-weight: 780; letter-spacing: .11em; text-transform: uppercase; border-top: 1px solid var(--line); }
.capability-strip i { width: 4px; height: 4px; border-radius: 50%; background: #9a9a91; }

.section { padding: 128px 0; }
.section-heading { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 80px; margin-bottom: 54px; }
.section-heading h2, .custom-intro h2, .studio-grid h2, .contact-card h2 { margin: 0; font-size: clamp(46px, 5.4vw, 78px); line-height: .98; letter-spacing: -.06em; }
.section-heading > p { max-width: 460px; margin: 0 0 6px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.product-topline { height: 55px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; color: #5f5f58; border-bottom: 1px solid rgba(23,23,20,.11); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.product-visual { position: relative; height: 270px; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid rgba(23,23,20,.1); }
.product-card--mio .product-visual { background: #ffddd5; }
.product-card--rclick .product-visual { background: #dfff9f; }
.product-card--doc .product-visual { background: #dfe6ff; }
.product-visual > img { position: relative; z-index: 4; width: 92px; height: 92px; border-radius: 22px; object-fit: contain; box-shadow: 0 18px 32px rgba(23,23,20,.15); }
.window { position: absolute; width: 180px; height: 120px; border: 3px solid var(--ink); border-radius: 11px; background: rgba(255,255,255,.72); }
.window::before { content: ""; position: absolute; inset: 0 auto auto; width: 100%; height: 22px; border-bottom: 2px solid var(--ink); background: radial-gradient(circle at 12px 11px, #ff6b4a 0 3px, transparent 4px), radial-gradient(circle at 24px 11px, #f2bf36 0 3px, transparent 4px), radial-gradient(circle at 36px 11px, #58b85c 0 3px, transparent 4px); }
.window--back { transform: translate(-55px,-32px) rotate(-5deg); }
.window--front { transform: translate(52px,36px) rotate(4deg); background: rgba(255,255,255,.9); }
.terminal-line { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); min-width: 250px; padding: 14px 20px; color: #fff; background: var(--ink); border-radius: 9px; font: 650 14px ui-monospace, SFMono-Regular, Menlo, monospace; box-shadow: 0 16px 28px rgba(23,23,20,.16); }
.terminal-line span { color: var(--accent); }
.product-visual--terminal > img { transform: translateY(-25px); }
.product-visual--document > img { transform: translate(-65px,-24px); }
.document-lines { position: absolute; width: 190px; height: 148px; transform: translate(42px,27px) rotate(3deg); padding: 34px 24px; background: #fff; border: 2px solid var(--ink); border-radius: 6px; box-shadow: 0 18px 30px rgba(23,23,20,.14); }
.document-lines b, .document-lines span { display: block; height: 7px; margin-bottom: 13px; background: #bbc4eb; border-radius: 5px; }
.document-lines b { width: 60%; height: 11px; background: var(--blue); }
.document-lines span:nth-child(3) { width: 78%; }
.document-lines span:nth-child(4) { width: 88%; }
.product-content { padding: 28px; }
.product-content h3 { margin: 0; font-size: 32px; letter-spacing: -.05em; }
.product-tagline { margin: 12px 0 14px; color: var(--ink) !important; font-size: 17px !important; font-weight: 720; }
.product-content > p { min-height: 78px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.product-content > a { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 780; text-decoration: none; }

.custom-section { color: #f5f5ee; background: var(--ink); }
.custom-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 110px; align-items: start; }
.custom-intro > p:not(.eyebrow) { max-width: 600px; margin: 30px 0; color: #bdbdb5; font-size: 19px; line-height: 1.65; }
.fit-panel { border: 1px solid #3d3d38; border-radius: var(--radius); background: #20201d; }
.panel-label { margin: 0; padding: 22px 25px; color: #8d8d85; border-bottom: 1px solid #3d3d38; font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.fit-panel ul { margin: 0; padding: 0; list-style: none; }
.fit-panel li { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 24px 25px; border-bottom: 1px solid #3d3d38; }
.fit-panel li:last-child { border-bottom: 0; }
.fit-panel li > span { color: var(--accent); font: 700 12px ui-monospace, monospace; }
.fit-panel strong { display: block; margin-bottom: 7px; font-size: 17px; }
.fit-panel small { color: #aaa9a2; font-size: 14px; line-height: 1.5; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 84px; border-top: 1px solid #3d3d38; border-left: 1px solid #3d3d38; }
.process-grid article { min-height: 250px; padding: 28px; border-right: 1px solid #3d3d38; border-bottom: 1px solid #3d3d38; }
.process-grid article > span { color: var(--accent); font: 700 13px ui-monospace, monospace; }
.process-grid h3 { margin: 58px 0 12px; font-size: 19px; }
.process-grid p { margin: 0; color: #a8a8a1; font-size: 14px; line-height: 1.55; }

.studio-section { background: #fff; }
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; align-items: start; }
.studio-copy > p { margin: 3px 0 50px; color: var(--muted); font-size: 20px; line-height: 1.65; }
.principles { border-top: 1px solid var(--line); }
.principles article { display: grid; grid-template-columns: 190px 1fr; gap: 26px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.principles strong { font-size: 14px; }
.principles span { color: var(--muted); font-size: 14px; line-height: 1.5; }

.contact-section { padding: 90px 0; background: #e7ebff; }
.contact-card { display: grid; grid-template-columns: 1fr .75fr; gap: 100px; align-items: end; }
.contact-card > div:last-child > p { margin: 0 0 28px; color: #5a5c6b; font-size: 18px; line-height: 1.6; }

.site-footer { color: #d0d0c9; background: #10100f; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 60px; padding: 75px 0; }
.brand--footer { color: #fff; }
.footer-brand p { color: #777771; font-size: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.footer-links strong { margin-bottom: 6px; color: #777771; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.footer-links a { width: max-content; color: #c7c7c0; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #6e6e68; border-top: 1px solid #2e2e2a; font-size: 11px; }

@media (max-width: 980px) {
  .nav-shell { grid-template-columns: 1fr auto; }
  .nav-cta { display: none; }
  .mobile-menu { display: block; justify-self: end; }
  .main-nav { display: none; }
  .hero { padding-top: 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-copy { padding-bottom: 15px; }
  .product-stack { width: min(100%, 600px); margin-inline: auto; }
  .section-heading, .custom-grid, .studio-grid, .contact-card { grid-template-columns: 1fr; gap: 42px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { display: grid; grid-template-columns: .85fr 1.15fr; }
  .product-topline { grid-column: 1 / 3; }
  .product-visual { height: auto; min-height: 320px; border-bottom: 0; border-right: 1px solid var(--line); }
  .product-content > p { min-height: auto; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-links:last-child { grid-column: 2; }
}

@media (max-width: 640px) {
  .shell { width: min(calc(100% - 32px), var(--max)); }
  .site-header { position: relative; }
  .nav-shell { min-height: 68px; }
  .mobile-menu nav { top: 68px; left: 16px; right: 16px; }
  .hero { padding-top: 50px; background-size: 32px 32px; }
  .hero h1 { font-size: clamp(54px, 17vw, 78px); }
  .hero-lede { margin-top: 28px; font-size: 18px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .product-stack { height: 420px; margin-top: 28px; }
  .stack-card { height: 148px; grid-template-columns: 28px 58px 1fr; column-gap: 15px; padding: 20px; }
  .stack-card img { width: 54px; height: 54px; border-radius: 13px; }
  .stack-name { font-size: 24px; }
  .stack-card--mio { top: 0; }
  .stack-card--rclick { top: 126px; }
  .stack-card--doc { top: 252px; }
  .capability-strip { justify-content: flex-start; min-height: 62px; overflow-x: auto; white-space: nowrap; }
  .capability-strip i { flex: 0 0 auto; }
  .section { padding: 88px 0; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2, .custom-intro h2, .studio-grid h2, .contact-card h2 { font-size: clamp(42px, 13vw, 60px); }
  .product-card { display: block; }
  .product-topline { height: 50px; }
  .product-visual { min-height: 245px; border-right: 0; border-bottom: 1px solid var(--line); }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid article { min-height: 200px; }
  .process-grid h3 { margin-top: 38px; }
  .principles article { grid-template-columns: 1fr; gap: 7px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 42px; }
  .footer-brand { grid-column: 1 / 3; }
  .footer-links:last-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding: 22px 0; }
}

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