/* TOVANOWORLD Website 2.0, TOVANO layout (owner brief 2026-10-19): the public face of TOVANO Command.
   Layered over styles.css + theme-v2.css. Motion is subtle and switched off under prefers-reduced-motion. */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------------------------------------- header */
.site-head.tv { background: linear-gradient(180deg, rgba(5, 7, 12, .97), rgba(5, 7, 12, .9)); border-bottom: 1px solid #2a2111; }
.site-head.tv::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .55; }
.site-head.tv .wrap { width: min(1400px, 100% - 32px); min-height: 70px; }
.tnav ul { display: flex; gap: 2px; align-items: center; }
.tn { position: relative; display: flex; align-items: center; }
.tn-top { display: flex !important; align-items: center; gap: 7px; padding: 8px 6px 8px 8px !important; }
.tn-top .tl { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; border: 1px solid var(--gold);
  color: var(--gold); font: 700 14px var(--display); line-height: 1; }
.tn-top:hover .tl, .tn-top[aria-current="page"] .tl { background: var(--gold); color: #120d04; }
.tn-x { background: none; border: 0; padding: 6px 4px; min-width: 24px; min-height: 24px; display: inline-grid; place-items: center; cursor: pointer; color: var(--muted); }   /* WCAG 2.2 target size (validation 2026-11-07) */
.tn-x svg { width: 11px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.tn-x:hover { color: var(--gold); }
.tn-sub { position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; padding: 12px; z-index: 30;
  background: linear-gradient(180deg, #0f1828, #070b13); border: 1px solid #3a2c12; border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.tn:hover .tn-sub, .tn:focus-within .tn-sub, .tn.open .tn-sub { opacity: 1; visibility: visible; transform: none; }
.tn-h { margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font: 600 13px var(--display);
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold-soft); }
.tn-h b { color: var(--gold); margin-right: 4px; }
.tn-sub ul { display: grid !important; gap: 0 !important; }
.tn-sub a { padding: 7px 8px !important; border-radius: 6px; font: 500 15px var(--body) !important; color: #e8ebf0 !important; box-shadow: none !important; }
.tn-sub a:hover { background: #1a1608 !important; color: var(--gold-soft) !important; }
.icon-btn { background: transparent; border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; width: 38px; height: 38px;
  display: grid; place-items: center; cursor: pointer; color: #fff; }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold-soft); }
.site-head.tv .menu-btn { order: 3; }
@media (max-width: 1280px) { .tn-top span { font-size: 14px; } .brand span { display: none; } }
@media (max-width: 1180px) {
  .site-head.tv .menu-btn { display: block; }
  .site-head.tv .wrap { flex-wrap: wrap; }
  .tnav { display: none; order: 4; width: 100%; }
  .tnav.open { display: block; }
  .tnav ul { flex-direction: column; align-items: stretch; padding: 6px 0 12px; }
  .tn { flex-wrap: wrap; border-bottom: 1px solid #141b29; }
  .tn-top { flex: 1; }
  .tn-x { padding: 10px 14px; }
  .tn-sub { position: static; display: none; opacity: 1; visibility: visible; transform: none; width: 100%; box-shadow: none;
    margin: 0 0 10px; background: #0a111d; }
  .tn.open .tn-sub { display: block; }
  .tn:hover .tn-sub { display: none; }
  .tn.open:hover .tn-sub { display: block; }
  .head-actions { margin-left: auto; }
}
@media (max-width: 560px) { .head-actions .btn:not(.ghost) { padding: 7px 10px; font-size: 14px; } .head-actions .btn .arr { display: none; } }

/* ---------------------------------------------------------------------------------------------- search */
dialog.search { width: min(720px, 94vw); padding: 0; border: 1px solid var(--gold); border-radius: 14px; background: #0a111d; color: var(--text); }
dialog.search::backdrop { background: rgba(0, 0, 0, .7); }
.search-box { display: flex; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); }
.search-box input { flex: 1; background: #05070c; border: 1px solid var(--line); border-radius: 8px; color: #fff; padding: 10px 12px; font: 16px var(--body); }
.search-box .close { background: none; border: 1px solid var(--line); color: #fff; border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.search-results { list-style: none; margin: 0; padding: 8px; max-height: min(60vh, 520px); overflow: auto; }
.search-results a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: inherit; }
.search-results a:hover, .search-results a:focus { background: #141d2e; outline: none; }
.search-results b { display: block; color: #fff; font: 600 17px var(--display); }
.search-results span { color: var(--muted); font-size: 14px; }
.search-results mark { background: none; color: var(--gold-soft); font-weight: 700; }

/* ---------------------------------------------------------------------------------------------- hero */
.hero3 { position: relative; overflow: hidden; border-bottom: 1px solid #2a2111; background: #000; min-height: min(92vh, 820px); display: grid; align-items: center; }
.hero3 > .bg { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; object-position: 62% 32%;
  animation: kenburns 38s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.07) translate(-1.5%, -1%); } }
.hero3::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(70% 60% at 72% 40%, rgba(226, 170, 60, .18), transparent 60%),
              linear-gradient(90deg, rgba(5, 7, 12, .97) 0%, rgba(5, 7, 12, .8) 40%, rgba(5, 7, 12, .25) 78%),
              linear-gradient(0deg, var(--bg) 0%, transparent 32%); }
.hero3 .wrap { position: relative; z-index: 2; display: grid; gap: 40px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center; padding: 84px 0 70px; }
.hero3 h1 { font-size: clamp(44px, 6.1vw, 96px); line-height: .92; margin: 0 0 6px; letter-spacing: 1px; }
.hero3 h1 .gold { background: linear-gradient(180deg, #fff0c0, var(--gold) 55%, #9c6c18); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero3 .kind { font: 700 clamp(17px, 2vw, 25px) var(--display); letter-spacing: 4px; color: #fff; margin: 0 0 18px; text-transform: uppercase; }
.hero3 .lead { color: #dde1e8; max-width: 560px; font-size: 18px; }
.signature { font: 600 14px var(--display); letter-spacing: 5px; color: var(--gold); margin: 18px 0 26px; }
.signature span { color: #6b5a33; margin: 0 6px; }
.hero3 .row { display: flex; flex-wrap: wrap; gap: 10px; }
.preview-card { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid #4a3714; background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(226, 170, 60, .15); aspect-ratio: 16 / 9; cursor: pointer; }
.preview-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.preview-card:hover img { transform: scale(1.03); }
.preview-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .78), transparent 55%); }
.preview-card .meta { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 2; }
.preview-card .meta b { display: block; font: 700 22px var(--display); letter-spacing: 1px; color: #fff; }
.preview-card .meta span { font: 600 12px var(--display); letter-spacing: 3px; color: var(--gold-soft); }
.preview-card .pl { position: absolute; z-index: 2; left: 50%; top: 44%; transform: translate(-50%, -50%); width: 78px; height: 78px;
  border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, .3); display: grid; place-items: center; }
.preview-card .pl::before { content: ""; border-left: 24px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.preview-card:hover .pl { border-color: var(--gold); }
@media (max-width: 900px) { .hero3 .wrap { grid-template-columns: minmax(0, 1fr); padding: 60px 0 46px; } .hero3 { min-height: 0; } }

/* ---------------------------------------------------------------------------------------------- six cards */
.six { display: grid; gap: 14px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.six a { position: relative; display: flex; flex-direction: column; min-height: 300px; border-radius: 14px; overflow: hidden;
  text-decoration: none; color: #fff; border: 1px solid var(--line); background: #070b13; isolation: isolate;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.six a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .8; transition: opacity .3s, transform .6s; }
.six a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 7, 12, .97) 34%, rgba(5, 7, 12, .55) 62%, rgba(5, 7, 12, .1)); }
.six a:hover, .six a:focus-visible { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 24px rgba(226, 170, 60, .15); }
.six a:hover img { opacity: .75; transform: scale(1.05); }
.six .L { margin: 18px 18px auto; font: 700 64px/1 var(--display); background: linear-gradient(180deg, #fff0c0, var(--gold) 60%, #9c6c18);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.six .t { padding: 0 18px; font: 700 21px var(--display); letter-spacing: 1px; text-transform: uppercase; }
.six .d { padding: 6px 18px 0; font-size: 14px; color: #c3cad6; }
.six .go { padding: 12px 18px 18px; font: 600 15px var(--display); color: var(--gold-soft); }
@media (max-width: 1180px) { .six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .six { grid-template-columns: repeat(2, minmax(0, 1fr)); } .six a { min-height: 240px; } .six .L { font-size: 48px; } }

/* ---------------------------------------------------------------------------------------------- celebration */
.era { position: relative; overflow: hidden; text-align: center; padding: 96px 0 !important; background: radial-gradient(80% 90% at 50% 30%, #2a1a06, #070503 70%); }
.era canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.era .wrap { position: relative; z-index: 1; }
.era .crown-big { width: 96px; height: 66px; margin: 0 auto 18px; display: block; filter: drop-shadow(0 0 18px rgba(226, 170, 60, .6));
  opacity: 0; transform: translateY(14px) scale(.9); transition: opacity 1s ease, transform 1s ease; }
.era.seen .crown-big { opacity: 1; transform: none; }
.era h2 { font-size: clamp(32px, 5vw, 60px); margin: 0 0 10px; }
.era .subh { font: 600 clamp(18px, 2.2vw, 24px) var(--display); letter-spacing: 2px; color: var(--gold-soft); margin: 0 0 14px; }
.era p.msg { max-width: 640px; margin: 0 auto 26px; color: #d6dae2; }
.era .row { justify-content: center; }

/* ---------------------------------------------------------------------------------------------- projects */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.filters button { background: transparent; color: #e6e9ef; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
  font: 600 15px var(--display); letter-spacing: .5px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--gold); color: #120d04; border-color: var(--gold); }
.projects { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.project { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.project[hidden] { display: none; }
.project video, .project img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #000; display: block; }
.project.vertical video { aspect-ratio: 9 / 16; max-height: 420px; object-fit: contain; }
.project .pbody { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.project .cat { font: 600 12px var(--display); letter-spacing: 3px; color: var(--gold); text-transform: uppercase; }
.project h3 { margin: 0; font-size: 22px; color: #fff; }
.project p { margin: 0; color: var(--muted); font-size: 14.5px; }
.project .pbody a { margin-top: auto; padding-top: 8px; color: var(--gold-soft); font: 600 16px var(--display); text-decoration: none; }

/* ---------------------------------------------------------------------------------------------- B2B, steps */
.b2b { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.who { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.who li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: 600 17px var(--display); }
.who li::before { content: "♛"; color: var(--gold); margin-right: 8px; }
@media (max-width: 860px) { .b2b { grid-template-columns: minmax(0, 1fr); } }
.how5.linked li a { color: inherit; text-decoration: none; }
.how5.linked li a:hover h3 { color: var(--gold-soft); }
.how5.linked li::after { content: ""; position: absolute; left: 44px; right: -10px; top: 19px; height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(226, 170, 60, .1)); }
.how5.linked li:last-child::after { display: none; }
@media (max-width: 960px) { .how5.linked li::after { display: none; } }

/* ---------------------------------------------------------------------------------------------- pages */
.page-hero { position: relative; padding: 84px 0 54px !important; overflow: hidden; border-bottom: 1px solid #2a2111;
  background: radial-gradient(70% 120% at 85% 0%, #2a1a06, transparent 60%), #05070c; }
.page-hero .letter { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); font: 700 clamp(160px, 22vw, 320px)/1 var(--display);
  color: transparent; -webkit-text-stroke: 1px rgba(226, 170, 60, .28); pointer-events: none; }
.page-hero h1 { font-size: clamp(42px, 6vw, 80px); margin: 0 0 10px; }
.page-hero .lead { max-width: 680px; }
.news { display: grid; gap: 14px; }
.news article { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: grid; gap: 6px; }
.news time { font: 600 13px var(--display); letter-spacing: 2px; color: var(--gold); text-transform: uppercase; }
.news h3 { margin: 0; font-size: 23px; color: #fff; }
.news p { margin: 0; color: #c9cfd9; }
.stack { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.stack div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stack b { display: block; font: 700 19px var(--display); color: #fff; }
.stack span { font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------------------------------------- footer */
.site-foot.tv { background: linear-gradient(180deg, #06080d, #030406); border-top: 1px solid #2a2111; }
.site-foot.tv .cols { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
.site-foot.tv .fbrand .brand b { font-size: 22px; }
.site-foot.tv .sig { font: 600 12px var(--display); letter-spacing: 4px; color: var(--gold); }
.site-foot.tv .h4b { margin-top: 18px; }
@media (max-width: 860px) { .site-foot.tv .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .site-foot.tv .fbrand { grid-column: 1 / -1; } }

/* portal: same cinematic language */
[data-portal] .pcard, [data-portal] .quote, [data-portal] .preview, [data-portal] .prow { background: linear-gradient(180deg, #0f1828, #0a111d); }
[data-portal] .pcard:hover, [data-portal] .prow:hover { border-color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .hero3 > .bg { animation: none; }
  .six a, .six a img, .preview-card img, .tn-sub { transition: none; }
  .era .crown-big { opacity: 1; transform: none; transition: none; }
}

.hero3 h1 { overflow-wrap: anywhere; }
.preview-card { align-self: center; }

@media (max-width: 560px) { .signature { letter-spacing: 1.5px; font-size: 11.5px; } .signature span { margin: 0 3px; } }

/* ---------------------------------------------------------------------------------------------- TOVANO in the hero
   The silent living portrait (owner directive 2026-10-19): the still shows at once and stays for reduced motion or
   slow devices; the script layers the animated face (WebGL) and the crown (canvas) over it. */
.hero3.has-tovano { min-height: min(94vh, 880px); }
.hero3 > picture.bg, .hero3 > picture.bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero3 > picture.bg { z-index: 0; }
.hero3.has-tovano::before { background: radial-gradient(60% 70% at 70% 45%, rgba(226, 170, 60, .14), transparent 62%),
  linear-gradient(90deg, rgba(5, 7, 12, .94) 0%, rgba(5, 7, 12, .72) 36%, rgba(5, 7, 12, .1) 70%),
  linear-gradient(0deg, var(--bg) 0%, transparent 26%); }
.hero3.has-tovano .wrap { grid-template-columns: minmax(0, 1fr) auto; padding: 40px 0 0; align-items: end; gap: 24px; }
.hero3.has-tovano .hero-text { padding-bottom: 70px; align-self: center; }
.hero3.has-tovano .signature { letter-spacing: 7px; margin: 0 0 18px; }
.teaser-chip { margin-top: 18px; background: none; border: 0; padding: 0; color: var(--gold-soft); cursor: pointer;
  font: 600 15px var(--display); letter-spacing: 1px; text-decoration: underline; text-underline-offset: 4px; }
.teaser-chip:hover, .teaser-chip:focus-visible { color: #fff; }
.tovano { position: relative; height: min(74vh, 700px); aspect-ratio: 1024 / 1363.48; justify-self: end; pointer-events: none;
  will-change: opacity, transform; contain: layout paint; }
.tovano::before { content: ""; position: absolute; left: 10%; right: 10%; top: 2%; height: 40%; z-index: 0;
  background: radial-gradient(50% 50% at 50% 55%, rgba(255, 190, 90, .22), transparent 70%); }
.tovano .tv-still, .tovano .tv-face, .tovano .tv-crown { position: absolute; display: block; }
.tovano .tv-still { inset: 0; width: 100%; height: 100%; z-index: 1; transition: opacity .6s ease; }
.tovano .tv-face { left: 0; width: 100%; z-index: 2; opacity: 0; transition: opacity .6s ease; }
.tovano .tv-crown { z-index: 3; opacity: 0; transition: opacity .6s ease; }
.tovano.live .tv-face { opacity: 1; }
.tovano.live.crowned .tv-crown { opacity: 1; }
.tovano.live.crowned .tv-still { opacity: 0; }
@media (max-width: 1100px) { .tovano { height: min(70vh, 640px); } }
@media (max-width: 760px) and (orientation: portrait) {
  /* phones: the headline first, then TOVANO (face and crown visible on arrival), then the text and actions */
  .hero3.has-tovano { min-height: 0; }
  .hero3.has-tovano .wrap { display: flex; flex-direction: column; padding: 26px 0 30px; gap: 0; align-items: stretch; }
  .hero3.has-tovano .hero-text { display: contents; }
  .hero3.has-tovano h1 { order: 1; font-size: clamp(38px, 11.5vw, 56px); margin-bottom: 2px; }
  .hero3.has-tovano .kind { order: 2; font-size: 14px; letter-spacing: 2.5px; margin-bottom: 4px; }
  .hero3.has-tovano .signature { order: 3; margin-bottom: 0; }
  .tovano { order: 4; align-self: center; height: min(46vh, 400px); max-width: 88vw; margin: 4px 0 6px; }
  .hero3.has-tovano .lead { order: 5; font-size: 16px; }
  .hero3.has-tovano .row { order: 6; }
  .hero3.has-tovano .teaser-chip { order: 7; align-self: flex-start; }
}
@media (max-height: 560px) and (orientation: landscape) {
  /* phones on their side: text beside TOVANO, both from the top */
  .hero3.has-tovano { min-height: 0; }
  .hero3.has-tovano .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: start; padding: 18px 0 20px; }
  .hero3.has-tovano .hero-text { padding-bottom: 0; }
  .hero3.has-tovano h1 { font-size: clamp(34px, 7vw, 52px); }
  .tovano { align-self: start; height: min(82vh, 400px); margin-right: 150px; }   /* clear of the Studio Assistant button */
}

.workflow-card { margin: 0 0 26px; }
.row-gap-top { margin-top: 18px; }

/* "Coming soon" notice while commercial offers are off (site_flags.json) */
.soon-banner{margin:0;padding:10px 16px;text-align:center;font-size:.92rem;line-height:1.45;color:#f3e6c4;
  background:linear-gradient(90deg,rgba(226,170,60,.10),rgba(226,170,60,.22),rgba(226,170,60,.10));border-bottom:1px solid rgba(226,170,60,.35)}
.soon-banner b{color:#e2aa3c}
.soon-banner a{color:#e2aa3c;text-decoration:underline;margin-left:4px}
.price.soon{color:#e2aa3c;font-size:1rem;letter-spacing:.04em;text-transform:uppercase}
