@font-face {
  font-family: Manrope;
  src: url("manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #555555;
  --paper: #ffffff;
  --white: #fff;
  --red: #e40230;
  --red-text: #b50025;
  --black: #000000;
  --soft: #f4f4f4;
  --red-on-dark: #ff254c;
  --line: #dedede;
  --radius: 1.15rem;
  --wrap: 77rem;
  font-family: Manrope, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 800; line-height: 1.07; letter-spacing: -.05em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 6vw, 6.15rem); }
h2 { font-size: clamp(2rem, 4vw, 3.85rem); }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.8rem); letter-spacing: -.035em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
[id] { scroll-margin-top: 1.25rem; }
.wrap { width: min(var(--wrap), calc(100% - 4rem)); margin-inline: auto; }
.content-width { max-width: 50rem; }
.skip-link { position: absolute; z-index: 10; top: .6rem; left: .6rem; padding: .65rem 1rem; border-radius: .4rem; background: var(--red-on-dark); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.section { padding-block: clamp(3.75rem, 7.2vw, 7rem); }
.section-soft { background: var(--soft); }
.section-white { background: var(--white); }
:is(.hero, .page-hero, .estimate-band, .site-footer) :focus-visible { outline-color: var(--red-on-dark); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem 3rem; margin-bottom: clamp(1.4rem, 3vw, 2.4rem); }
.section-heading > p { max-width: 28rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.65rem; }
.text-link { color: var(--red-text); font-weight: 780; }
.text-link:is(:hover, :focus-visible) { text-decoration-thickness: .13em; }
.eyebrow { display: flex; align-items: center; gap: .55rem; margin-bottom: .95rem; color: var(--red-text); font-size: .875rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow::before { flex: 0 0 .49rem; width: .49rem; height: .49rem; border-radius: 50%; background: currentColor; content: ""; }

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-row { position: relative; display: flex; min-height: 5.25rem; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: .55rem; text-decoration: none; }
.brand-mark { width: 2.5rem; height: auto; }
.brand-wordmark { width: 8.25rem; aspect-ratio: 668 / 72; background: url("mirai-media-logo-source.png") no-repeat center 86.74% / 112.575% auto; }
.desktop-nav { display: flex; align-items: center; gap: clamp(.7rem, 1.65vw, 1.6rem); }
.nav-trigger, .nav-direct { font-weight: 750; text-decoration: none; }
.nav-trigger { display: flex; align-items: center; gap: .44rem; min-height: 2.75rem; list-style: none; cursor: pointer; white-space: nowrap; }
.nav-trigger::-webkit-details-marker { display: none; }
.nav-trigger::after { width: .43rem; height: .43rem; margin-top: -.22rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); content: ""; }
details[open] > .nav-trigger::after { margin-top: .22rem; transform: rotate(225deg); }
.desktop-nav > .nav-direct { display: flex; min-height: 2.75rem; align-items: center; white-space: nowrap; }
.desktop-nav > .nav-direct:is(:hover, :focus-visible, [data-section-current]), .desktop-nav .nav-trigger:is(:hover, :focus-visible, [data-section-current]), .desktop-nav .nav-dropdown[open] > .nav-trigger { color: var(--red-text); }
.desktop-nav > .nav-direct:is(:hover, :focus-visible, [data-section-current]) { text-decoration: underline; }
.nav-dropdown { position: relative; }
.nav-surface { background: var(--white); color: var(--ink); }
.nav-dropdown-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem .55rem; padding: .85rem; }
.desktop-nav .nav-dropdown-panel { position: absolute; z-index: 5; inset-block-start: calc(100% + .4rem); inset-inline-start: 0; width: 34rem; border: 1px solid var(--line); box-shadow: 0 1.15rem 2.3rem #0002; }
.nav-dropdown-compact .nav-dropdown-panel { grid-template-columns: 1fr; }
.desktop-nav .nav-dropdown-compact .nav-dropdown-panel { inset-inline: auto 0; width: 18.5rem; }
.nav-surface a { display: flex; min-height: 3.05rem; align-items: center; gap: .65rem; padding: .65rem .85rem; color: inherit; font-weight: 720; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.nav-dropdown-panel .nav-overview { grid-column: 1 / -1; justify-content: space-between; margin-bottom: .35rem; border-bottom: 2px solid var(--red); font-weight: 800; }
.nav-overview span { color: var(--red-text); }
.nav-surface a:is(:hover, :focus-visible, [aria-current="page"]) { background: #fff0f3; color: var(--red-text); }
.nav-surface :focus-visible { outline-color: var(--red-text); outline-offset: -2px; }
.mobile-menu { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .62rem 1.08rem; border: 1px solid transparent; border-radius: .62rem; background: var(--button-bg, var(--black)); color: var(--button-ink, var(--white)); font: inherit; font-weight: 800; line-height: 1.32; text-align: center; text-decoration: none; cursor: pointer; }
.button:is(:hover, :focus-visible) { border-color: var(--red); background: var(--red); color: var(--white); }
.button-small { min-height: 2.55rem; padding: .45rem .92rem; }
.button-light, :is(.hero, .page-hero) .button:not(.button-quiet) { --button-bg: var(--white); --button-ink: var(--black); }
.button-quiet { --button-bg: transparent; --button-ink: var(--ink); border-color: #a6a6a6; }
:is(.hero, .page-hero) .button-quiet { --button-ink: var(--white); }

.hero, .page-hero { background: var(--black); color: var(--white); }
.hero { padding-block: clamp(2.8rem, 5.6vw, 5.5rem); }
.hero .eyebrow, .page-hero .eyebrow { color: var(--red-on-dark); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: clamp(1.75rem, 4vw, 4rem); }
.hero-copy h1 { font-size: clamp(2.85rem, 5.15vw, 5.55rem); text-wrap: wrap; }
.hero-copy h1 em { display: block; color: var(--red); font-style: normal; }
.hero-copy > p:not(.eyebrow), .page-hero .intro { max-width: 38rem; margin-top: 1.3rem; color: #e5e5e5; font-size: clamp(1.05rem, 1.48vw, 1.23rem); }
.hero-figure { position: relative; isolation: isolate; }
.hero-icon { display: grid; place-items: center; overflow: hidden; aspect-ratio: 1.18; border: 1px solid #414141; border-radius: 1.35rem 1.35rem 1.35rem .32rem; background: radial-gradient(#3a3a3a 1px, transparent 1px) center / 18px 18px, #171717; color: var(--white); }
.site-icon { display: block; flex-shrink: 0; width: 4.35rem; height: auto; }
.site-icon .icon-accent { stroke: var(--red); }
.hero-icon .site-icon { width: clamp(7rem, 21vw, 15rem); filter: drop-shadow(0 5px 12px #00000080); }
.hero-figure::after { position: absolute; top: -.55rem; right: -.55rem; z-index: -1; width: 38%; height: 44%; border-radius: 1.5rem; background: var(--red); content: ""; }
.hero-caption { display: flex; flex-wrap: wrap; gap: .2rem .8rem; align-items: baseline; justify-content: space-between; padding: .72rem 0; border-bottom: 1px solid #454545; color: #d9d9d9; font-size: .875rem; }
.hero-caption strong { color: var(--white); font-weight: 800; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 1.55rem); }
.card-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none; }
.card:focus-visible, .project-card:focus-visible { border-color: var(--red); background: var(--red); color: var(--white); }
.card-icon { display: grid; place-items: center; min-height: 8rem; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--soft); color: var(--ink); }
.card:focus-visible .card-icon { border-color: #ffffff55; background: var(--red); color: var(--white); }
.card:focus-visible .card-icon .icon-accent { stroke: currentColor; }
.card-body { display: flex; flex: 1; flex-direction: column; align-items: start; padding: clamp(1.15rem, 2.3vw, 1.8rem); }
.card-body > p, .project-card p { margin-top: .7rem; color: var(--muted); }
.card-action { display: inline-block; margin-top: auto; padding-top: .85rem; color: var(--red-text); font-weight: 800; text-decoration: underline; }
.card:is(:focus-visible, :hover) :is(.card-body > p, .card-action), .project-card:is(:focus-visible, :hover) :is(p, .card-action) { color: inherit; }
.card-kicker { margin-bottom: .5rem; font-size: .875rem; font-weight: 800; }

.work-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1rem, 2.3vw, 1.6rem); }
.project-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none; }
.project-art { display: grid; min-height: clamp(12rem, 22vw, 18rem); overflow: hidden; place-items: center; padding: clamp(1.1rem, 4vw, 3.4rem); background: #ededed; }
.project-art strong { display: block; padding: .55em .7em; border-radius: .8rem; background: var(--white); color: var(--black); box-shadow: 0 12px 35px #00000026; font-size: clamp(1.6rem, 3.8vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -.065em; text-align: center; }
.project-art.contrast { background: #242424; }
.project-art.contrast strong { color: var(--ink); }
.project-art-screenshot { padding: 0; }
.project-art-screenshot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case-screenshot { width: 100%; border: 1px solid #454545; border-radius: var(--radius); background: var(--soft); }
.project-card .card-body { min-height: 11rem; }
.project-card .card-kicker { margin: 0 0 .5rem; }

.estimate-band { padding-block: clamp(2.3rem, 4.8vw, 4rem); background: var(--black); color: var(--white); }
.band-row { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem 2.2rem; }
.band-row h2 { font-size: clamp(1.85rem, 3.2vw, 3rem); }
.band-row p { max-width: 36rem; margin-top: .55rem; color: #e2e2e2; }
.band-row .button { flex-shrink: 0; }
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.4rem, 6vw, 6rem); align-items: start; }
.split-heading p { max-width: 29rem; margin-top: .8rem; color: var(--muted); }
.detail-list { display: grid; gap: 1.2rem; }
.detail-list article { padding-top: 1.2rem; border-top: 1px solid var(--line); }
.detail-list article:first-child { border-top: 3px solid var(--red); }
.detail-list p { margin-top: .55rem; color: var(--muted); }
.detail-list a { display: inline-block; margin-top: .55rem; }

.page-hero { padding-block: clamp(1.5rem, 3.7vw, 3.2rem) clamp(3rem, 6.4vw, 5.8rem); }
.page-hero h1 { max-width: 54rem; font-size: clamp(2.55rem, 5.1vw, 5rem); }
.page-hero .hero-grid { align-items: end; }
.page-hero .hero-icon { aspect-ratio: 1.65; }
.page-hero .hero-icon .site-icon { width: clamp(5rem, 13vw, 10rem); }
.page-hero .about-hero-grid { align-items: center; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.about-portrait { width: min(100%, 24rem); justify-self: end; }
.about-portrait img { width: 100%; border: 1px solid #454545; border-radius: var(--radius); }
.about-expertise-grid article { padding: clamp(1.1rem, 2.6vw, 1.75rem); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); }
.about-expertise-grid p { margin-top: .65rem; color: var(--muted); }
.about-tools ul { margin: .65rem 0 0; padding-inline-start: 1.15rem; }
.about-tools li + li { margin-top: .45rem; }
.about-tools li::marker { color: var(--red-text); }
.about-tools li a { display: inline; }
.breadcrumbs { margin-bottom: clamp(1.7rem, 3.9vw, 3.5rem); color: #d5d5d5; font-size: .875rem; }
.breadcrumbs a:is(:hover, :focus-visible) { color: var(--red-on-dark); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .3rem .6rem; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li + li::before { margin-right: .6rem; content: "/"; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.55rem, 2.8vw, 2.4rem); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-top: 1rem; }
.prose li + li { margin-top: .4rem; }
.prose a { color: var(--red-text); font-weight: 760; }
.note { padding: 1rem 1.1rem; border-left: 3px solid var(--red); border-radius: 0 .55rem .55rem 0; background: var(--soft); }
.question-list details { padding: .95rem 0; border-top: 1px solid var(--line); }
.question-list details:last-child { border-bottom: 1px solid var(--line); }
.question-list summary { cursor: pointer; font-weight: 800; }
.question-list summary:is(:hover, :focus-visible) { color: var(--red-text); }
.question-list p { margin-top: .5rem; color: var(--muted); }

.price-layout { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr); align-items: start; gap: clamp(1.1rem, 4vw, 3rem); }
.price-form, .price-result { padding: clamp(1.15rem, 3.2vw, 2.55rem); border-radius: var(--radius); }
.price-form { border: 1px solid var(--line); background: var(--white); }
.price-form > h2 { margin-bottom: .9rem; font-size: clamp(1.45rem, 2.5vw, 2.25rem); }
.price-form fieldset { min-width: 0; margin: 1.25rem 0 0; padding: 0; border: 0; }
.price-form fieldset[hidden] { display: none; }
.price-form legend { padding: 0; margin-bottom: .55rem; font-weight: 800; }
.price-form label { display: block; font-weight: 720; }
.price-form select { display: block; width: 100%; min-height: 2.9rem; margin-top: .3rem; padding: .52rem .68rem; border: 1px solid #858585; border-radius: .45rem; background: var(--white); color: var(--ink); font: inherit; }
.price-form .price-extra { display: flex; gap: .55rem; align-items: baseline; margin-top: .7rem; }
.price-extra input { accent-color: var(--red); }
.contact-business { margin-top: 1.65rem; }
.contact-business address { margin-top: .55rem; color: var(--muted); font-style: normal; }
.contact-form { display: grid; gap: 1rem; padding: clamp(1.1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.contact-form label { display: block; margin-bottom: .28rem; font-weight: 750; }
.contact-note { color: var(--muted); font-size: .9rem; font-weight: 500; }
.contact-form :is(input, select, textarea) { display: block; width: 100%; min-height: 2.85rem; padding: .5rem .65rem; border: 1px solid #777; border-radius: .45rem; background: var(--white); color: var(--ink); font: inherit; }
.contact-form textarea { resize: vertical; }
.contact-form textarea + .contact-note { margin-top: .3rem; }
.contact-form .button { justify-self: start; }
.contact-form .button:disabled { opacity: .6; cursor: wait; }
.contact-status:not(:empty) { padding: .65rem .8rem; border-inline-start: 3px solid var(--ink); background: var(--white); }
.contact-status[data-state="error"] { border-color: var(--red-text); color: var(--red-text); }
.contact-status:empty { display: none; }
.price-scope { margin: .75rem 0 .9rem; color: var(--muted); }
.price-result { background: var(--black); color: var(--white); }
.price-result h2 { font-size: clamp(1.4rem, 3vw, 2.5rem); }
.price-result output { display: block; margin-block: .8rem .35rem; color: var(--red-on-dark); font-size: clamp(1.7rem, 3.2vw, 2.75rem); font-weight: 800; line-height: 1.12; letter-spacing: -.045em; }
.price-result > p { margin-top: .8rem; color: #e9e9e9; }
.price-breakdown { margin: .6rem 0 0; padding-inline-start: 1.2rem; color: #e9e9e9; }
.price-recurring { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid #515151; }
.price-recurring h3 { font-size: 1.15rem; }
.price-recurring p { margin-top: .4rem; color: #e9e9e9; }
.price-result .button { margin-top: 1rem; }
.price-result :focus-visible { outline-color: var(--red-on-dark); }

.site-footer { padding-block: 3.5rem; background: var(--black); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.1fr; gap: 1.7rem; }
.footer-grid nav { display: grid; align-content: start; gap: .32rem; }
.footer-grid strong { margin-bottom: .3rem; }
.footer-grid p { margin-top: .72rem; color: #dddddd; }
.site-footer .brand-wordmark { filter: brightness(0) invert(1); }
.site-footer a:not(.brand) { overflow-wrap: anywhere; }
.site-footer a:not(.brand):hover { color: var(--red-on-dark); }

@media (hover: hover) and (pointer: fine) {
  .card:hover, .project-card:hover { border-color: var(--red); background: var(--red); color: var(--white); }
  .card:hover .card-icon { border-color: #ffffff55; background: var(--red); color: var(--white); }
  .card:hover .card-icon .icon-accent { stroke: currentColor; }
  .card:hover :is(.card-body > p, .card-action), .project-card:hover :is(p, .card-action) { color: var(--white); }
}

@media (prefers-reduced-motion: no-preference) {
  .desktop-nav .nav-dropdown[open] > .nav-dropdown-panel { animation: nav-panel-in .18s ease-out both; }
  html { scroll-behavior: smooth; }
  .hero-figure { animation: hero-in .55s ease-out both; }
  .card, .project-card, .button { transition: transform .24s ease, box-shadow .24s ease; }
  .site-icon, .project-art strong { transition: transform .48s cubic-bezier(.21, .65, .32, 1); }
  .hero-figure::after { transition: transform .38s ease; }
  .card:focus-visible .site-icon, .project-card:focus-visible .project-art strong { transform: scale(1.04); }

  @media (hover: hover) and (pointer: fine) {
    .button:hover { transform: translateY(-2px); }
    .card:hover, .project-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px #00000029; }
    .card:hover .site-icon, .hero-figure:hover .site-icon, .project-card:hover .project-art strong { transform: scale(1.06); }
    .hero-figure:hover::after { transform: translate(.22rem, -.22rem); }
  }

  @supports (animation-timeline: view()) {
    .card, .project-card { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
  }
}

@keyframes nav-panel-in {
  from { opacity: 0; transform: translateY(-.3rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-in {
  from { opacity: .65; translate: 0 .85rem; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes reveal {
  from { opacity: .76; translate: 0 1rem; }
  to { opacity: 1; translate: 0 0; }
}

@media (max-width: 64rem) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 60rem) {
  .header-row { min-height: 4.25rem; }
  .desktop-nav { display: none; }
  .header-contact { margin-left: auto; }
  .mobile-menu { display: block; }
  .mobile-menu > .nav-trigger { padding-inline: .18rem; font-weight: 800; }
  .mobile-menu[open] > .nav-trigger { color: var(--red-text); }
  .mobile-menu > nav { position: absolute; inset-block-start: calc(100% - .1rem); inset-inline-end: 0; z-index: 5; display: grid; width: min(25rem, 100%); max-height: calc(100dvh - 5rem); overflow-y: auto; overscroll-behavior: contain; gap: .25rem; padding: .75rem; border: 1px solid var(--line); box-shadow: 0 1.15rem 2.3rem #0002; }
  .mobile-menu nav .nav-trigger { justify-content: space-between; min-height: 3.05rem; padding: .65rem .85rem; }
  .mobile-menu nav :is(.nav-trigger, .nav-direct)[data-section-current], .mobile-menu .nav-dropdown[open] > .nav-trigger, .mobile-menu nav .nav-trigger:is(:hover, :focus-visible) { background: #fff0f3; color: var(--red-text); }
  .mobile-menu .nav-dropdown-panel { grid-template-columns: 1fr; margin: .2rem 0 .28rem .65rem; padding: .3rem 0 .3rem .55rem; border-inline-start: 1px solid var(--line); }
}

@media (max-width: 48rem) {
  .wrap { width: calc(100% - 2rem); }
  .hero-grid, .work-grid, .split, .price-layout { grid-template-columns: 1fr; }
  .section-heading, .band-row { flex-direction: column; align-items: start; }
  .hero-icon { aspect-ratio: 1.55; }
  .page-hero .about-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .about-portrait { justify-self: start; }
}

@media (max-width: 34rem) {
  .privacy-hero h1 { font-size: clamp(2rem, 7.2vw, 2.55rem); }
  .contact-fields { grid-template-columns: 1fr; }
  h1, .hero-copy h1 { font-size: clamp(2.4rem, 10.3vw, 3.6rem); }
  .card-grid, .footer-grid { grid-template-columns: 1fr; }
  .brand-mark { width: 2rem; }
  .brand-wordmark { width: 7rem; }
  .header-row { gap: .65rem; }
}

@media (max-width: 23rem) {
  .header-row { width: calc(100% - 1rem); gap: .35rem; }
  .header-row .brand { gap: .4rem; }
  .header-row .brand-mark { width: 1.8rem; }
  .header-row .brand-wordmark { width: 6.2rem; }
  .header-contact { padding-inline: .4rem; }
}
