/* THC adaptation of the preserved AITV styles and components.
   Display type belongs to headlines; reading and controls share the UI scale. */
:root {
  --ink: #eee9f5;
  --muted: #c2b6cc;
  --purple: #a56dde;
  --purple-bright: #c18bed;
  --gold: #ffd000;
  --line: #a16cdb45;
  --bg: #08050d;
  --font-ui: Arial, Helvetica, sans-serif;
  --font-display: Breit, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --type-body: 16px;
  --type-small: 14px;
  --type-label: 12px;
  --header-height: 80px;
  --content-width: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --grid-gap: 24px;
  --section-pad: clamp(72px, 7vw, 112px);
  --ease-ui: 180ms ease;
}
html { scroll-padding-top: calc(var(--header-height) + 24px); }
.thc-site { background: var(--bg); color: var(--ink); font: var(--type-body)/1.65 var(--font-ui); overflow-x: clip; }
.thc-site button, .thc-site a, .thc-site input { touch-action: manipulation; }
.thc-site [hidden] { display: none !important; }
.thc-site :is(a, button, input, pre):focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.thc-site :is(a, button) { transition: color var(--ease-ui), background-color var(--ease-ui), border-color var(--ease-ui), box-shadow var(--ease-ui); }
.thc-site h2 { font-family: var(--font-display); letter-spacing: -.04em; line-height: 1.12; }
.thc-site em { font-style: normal; color: var(--purple); }
.thc-site p { color: var(--muted); font-size: var(--type-body); line-height: 1.7; }
.thc-site .eyebrow { font: 600 var(--type-label)/1.6 var(--font-ui); letter-spacing: .09em; color: #cdb3e5; text-transform: uppercase; }
.thc-site .grid-bg { background-image: linear-gradient(#a16cdb0c 1px, transparent 1px), linear-gradient(90deg, #a16cdb0c 1px, transparent 1px); background-size: 70px 70px; }

/* Compact tools share the header; the wordmark stays on one line. */
.thc-site .site-header { height: var(--header-height); padding: 0 var(--gutter); gap: 28px; position: fixed; background: #08050de8; backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); z-index: 20; }
.thc-site .wordmark { font: 700 17px/1.15 var(--font-ui); letter-spacing: .035em; color: var(--purple); position: relative; display: inline-block; white-space: nowrap; }
.thc-site .wordmark > span { position: absolute; top: -3px; right: -10px; font-size: 10px; }
.thc-site .site-header .wordmark { justify-self: start; flex-shrink: 0; }
.thc-site .site-header nav { gap: 26px; margin-left: auto; font-size: 14px; color: #d1c4dd; }
.thc-site .site-header nav a { display: inline-flex; align-items: center; min-height: 44px; }
.thc-site .site-header nav a:hover { color: var(--gold); }
.nav-status { font: var(--type-label)/1.5 var(--font-ui); color: #c8b6d9; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.nav-status i, .hero-badge i, .footer-bottom i { display: inline-block; width: 5px; height: 5px; background: var(--purple); border-radius: 50%; box-shadow: 0 0 12px #b671ff80; }
.site-controls { display: flex; align-items: center; gap: 4px; }
.thc-site .utility-button { position: relative; background: transparent; border: 1px solid #a16cdb45; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 10px; color: #d1c4dd; }
.thc-site .utility-button:hover, .thc-site .utility-button[aria-expanded="true"] { color: var(--gold); border-color: #c3a543; background: #ffd00009; }
.utility-button svg { width: 22px; height: 22px; }
#site-motion .play-symbol, #music-play .pause-symbol { display: none; }
.paused #site-motion .pause-symbol, #music-play[aria-pressed="true"] .play-symbol { display: none; }
.paused #site-motion .play-symbol, #music-play[aria-pressed="true"] .pause-symbol { display: block; }
.music-indicator { position: absolute; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; right: 3px; top: 3px; opacity: 0; }
#site-music.playing { color: var(--gold); }
#site-music.playing .music-indicator { opacity: 1; }
#music-panel { position: fixed; top: calc(var(--header-height) + 12px); right: var(--gutter); width: 326px; max-width: calc(100vw - 32px); max-height: calc(100dvh - var(--header-height) - 24px); overflow-y: auto; padding: 22px; background: #100a19; border: 1px solid #8e56b6; border-radius: 8px; box-shadow: 0 15px 60px #000b, inset 0 0 0 4px #a16cdb0b; color: var(--ink); text-align: left; }
/* Keep open controls above the floating launcher on short tablet/desktop screens. */
@media (min-width: 641px) {
  .thc-site .site-header:has(#music-panel:not([hidden])) { z-index: 32; }
}
.music-heading { display: flex; align-items: center; gap: 12px; }
.music-heading img { width: 48px; height: 48px; object-fit: contain; }
.music-heading strong { display: block; font: 600 20px/1.4 var(--font-ui); }
.music-heading span { display: block; font: 14px/1.6 var(--font-ui); color: var(--muted); }
#music-close { margin-left: auto; width: 36px; height: 44px; border: 0; background: transparent; color: var(--muted); font: 26px/1 var(--font-ui); }
.music-transport { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
#music-play { flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; padding: 10px; border: 1px solid #d9b529; border-radius: 50%; background: var(--gold); color: #180d21; }
#music-play:hover { background: #ffe675; }
#music-play svg { width: 24px; height: 24px; }
.music-timeline { flex: 1; min-width: 0; }
#music-panel input[type="range"] { width: 100%; height: 24px; margin: 0; accent-color: var(--gold); cursor: pointer; }
.music-times { display: flex; justify-content: space-between; font: 12px/1.5 var(--font-mono); color: var(--muted); }
.music-volume { display: flex; align-items: center; gap: 20px; margin-top: 20px; font: 12px/1.5 var(--font-ui); color: var(--muted); }
.thc-site #music-status { margin: 14px 0 0; min-height: 18px; font: 12px/1.5 var(--font-ui); color: #cdb3e5; }

/* A holding, literally: AITV chrome and geometry in an open editorial scene. */
.thc-site .hero { min-height: 0; padding: calc(var(--header-height) + 52px) var(--gutter) 48px; display: block; background: #07030c; isolation: isolate; overflow: hidden; }
.thc-site #hero-video { height: 100%; width: 100%; object-fit: cover; mix-blend-mode: screen; opacity: .25; filter: hue-rotate(10deg) saturate(.8); z-index: -3; }
.thc-site .hero:before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -2; background: radial-gradient(ellipse at 80% 35%, #49146730, transparent 60%), linear-gradient(0deg, #07030c, transparent 24%, #07030c44); }
.hero-stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.thc-site .hero-content { position: relative; padding: 0; max-width: var(--content-width); width: 100%; margin: 0 auto; text-align: left; }
.hero-stage { position: relative; min-height: 588px; padding-bottom: 46px; }
.hero-copy { position: relative; z-index: 2; width: 66%; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; color: #cfb5e7; font: 600 12px/1.6 var(--font-ui); letter-spacing: .11em; text-transform: uppercase; }
.hero-badge i { background: var(--gold); box-shadow: 0 0 10px #ffd00050; }
.thc-site .hero h1 { font: 900 clamp(70px, 7vw, 102px)/.97 var(--font-display); letter-spacing: -.045em; margin: 22px 0 28px; text-align: left; color: #9966cc; text-shadow: none; }
.hero h1 span { display: block; width: fit-content; background: linear-gradient(115deg, #8244b7, #aa77dd 72%, #c494ed); color: transparent; -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 24px #66339940); }
.hero h1 span:first-child { font-size: .43em; letter-spacing: .08em; line-height: 1.4; margin-bottom: 4px; }
.thc-site .hero-subtitle { font-size: 19px; line-height: 1.65; color: #ddd0e7; margin: 0 0 18px; }
#buzzword { font-weight: 700; color: var(--gold); }
.thc-site .hero-description { font-size: 16px; color: #bcaec8; line-height: 1.75; margin: 0; }
.hero-art { position: absolute; top: -38px; right: -8%; width: 59%; aspect-ratio: 1; z-index: 1; pointer-events: none; }
/* Fade along the forearm before the artwork's right and bottom crop edges. */
.hero-art img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 0 45px #9a16d720); animation: asset-drift 9s ease-in-out infinite; mask-image: linear-gradient(135deg, #000 62%, #000e 68%, #0005 77%, transparent 84%); }
.asset-orbit { position: absolute; width: 80%; height: 80%; right: 10%; top: 2%; border: 1px solid #a966dd40; border-radius: 50%; transform: rotate(-25deg) scaleY(.85); box-shadow: 0 0 60px #a733ed0a; }
@keyframes asset-drift { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.thc-site .button { border-radius: 5px; margin: 0; gap: 18px; min-height: 48px; padding: 12px 20px; font: 600 14px/1.5 var(--font-ui); letter-spacing: 0; }
.thc-site .button.primary { background: #652492; border: 1px solid #a956d2; color: #f7eaff; box-shadow: inset 0 0 0 3px #d98bff0b; }
.thc-site .button.primary:hover { background: #8233b0; border-color: #d28cf4; }
.thc-site .button > span { font-size: 22px; line-height: 1; }
.thc-site .hero-actions .button { width: auto; justify-content: center; text-align: center; text-transform: none; }
.thc-site .hero-holdings { position: relative; z-index: 3; width: 100%; margin: 0; border: 1px solid #ad89394f; border-radius: 5px; background: #0e0813c9; box-shadow: inset 0 0 0 4px #bda15208; text-align: left; }
.social-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; border-radius: inherit; overflow: hidden; }
.social-links a { --social-active: 0; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; padding: 22px 28px; color: #f3cf53; border-right: 1px solid #ad893938; }
.social-links a:last-child { border-right: 0; }
/* The light fills each entire link; text stays still and sharp above it. */
.social-links a::before, .social-links a::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.social-links a::before { z-index: -1; opacity: var(--social-active); background: radial-gradient(ellipse at 20% 0%, #ffd45b30, transparent 75%), linear-gradient(120deg, #34251ae6, #261033e6); box-shadow: inset 0 0 0 1px #efc959b3, inset 0 0 32px #eaba2b16; transition: opacity 220ms ease; }
.social-links a::after { z-index: -1; opacity: 0; background: linear-gradient(110deg, transparent 30%, #ffefa812 43%, #fff5c938 50%, #ffefa812 57%, transparent 70%); transform: translateX(-110%); }
.social-links a:is(:focus-visible, :active) { --social-active: 1; color: #ffe596; }
.thc-site .social-links a:focus-visible { outline-offset: -4px; }
.social-links a:focus-visible::after { animation: social-glint 850ms ease-out both; }
@media (hover: hover) and (pointer: fine) {
  .social-links a:hover { --social-active: 1; color: #ffe596; }
  .social-links a:hover::after { animation: social-glint 850ms ease-out both; }
}
@keyframes social-glint {
  0% { opacity: 0; transform: translateX(-110%); }
  20%, 65% { opacity: 1; }
  100% { opacity: 0; transform: translateX(110%); }
}
.paused .social-links a::after { animation: none !important; opacity: 0; }
.paused .social-links a::before { transition: none; }
.asset-platform { display: flex; align-items: center; gap: 10px; font: 14px/1.5 var(--font-ui); color: #cabbad; }
.asset-icon { width: 22px; height: 22px; color: #ecc547; flex-shrink: 0; }
.social-links strong { display: block; font: 500 36px/1.2 var(--font-ui); letter-spacing: -.035em; margin-top: 14px; white-space: nowrap; }
.social-links a:last-child strong { font-size: 29px; line-height: 1.49; }
.thc-site .feature-section { padding: 48px var(--gutter) 64px; background: #0e0913; border-top: 1px solid var(--line); }
.thc-site .hero-cards { max-width: var(--content-width); width: 100%; margin: 0 auto; gap: var(--grid-gap); }
.thc-site .feature { min-height: 270px; padding: 28px; transform: none; transform-style: flat; will-change: auto; }
.thc-site .feature:hover { border-color: #f26965; box-shadow: 0 0 28px #d1244320; }
.thc-site .feature.purple:hover { border-color: #de7cff; box-shadow: 0 0 28px #b424d520; }
.thc-site .feature h2 { font-size: clamp(24px, 2.15vw, 32px); letter-spacing: -.04em; line-height: 1.16; margin: 12px 0; }
.thc-site .feature p { font-size: 16px; line-height: 1.65; margin: 0 0 18px; max-width: 30ch; }
.thc-site .feature .eyebrow { font-size: 12px; letter-spacing: .05em; }
.thc-site .feature .text-link { font-size: 13px; line-height: 1.5; color: #ddcfee; letter-spacing: .02em; }
.thc-site .feature-art { width: 35%; padding-right: 16px; }
.thc-site .feature-art > img:first-child { height: 220px; transform: none; }
.thc-site .geometry-art > img:first-child { height: 190px; width: 100%; object-fit: contain; }
.thc-site .feature-art .shape { width: 60px; height: 60px; top: 0; right: 8%; }
/* Section rhythm and copy measures stay consistent as the grid reflows. */
.thc-site :is(.intro-section, .solutions-section, .hold-stage, .resources-section, .contact-section, .site-footer) { padding-inline: max(var(--gutter), calc((100% - var(--content-width)) / 2)); }
.intro-section { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 8%; padding-block: var(--section-pad); background-color: #170b24; border-bottom: 1px solid var(--line); overflow: hidden; }
.intro-copy h2 { font-size: clamp(36px, 4.3vw, 62px); margin: 24px 0; }
.intro-copy p { max-width: 50ch; margin: 0; }
.thc-site .orbit-scene { min-height: 390px; max-width: 470px; width: 100%; margin: auto; }
.thc-site .orbit { border-color: #a355f172; box-shadow: 0 0 35px #982add10; width: 95%; height: 60%; top: 22%; transform: rotateX(55deg) rotate(-23deg); }
.thc-site .orbit-two { transform: rotateY(65deg) rotate(-30deg); height: 85%; top: 9%; width: 86%; left: 10%; }
.thc-site .orbit-three { transform: rotateX(67deg) rotate(35deg); height: 86%; top: 5%; }
.thc-site .main-cube { width: 220px; height: 220px; object-fit: contain; left: calc(50% - 110px); top: 75px; filter: drop-shadow(0 0 50px #9937f133); animation-duration: 8s; }
.thc-site .sphere { width: 82px; height: 82px; left: 2%; top: 13%; }
.thc-site .pyramid { width: 70px; height: 70px; left: auto; right: 3%; bottom: 18%; }
.orbit-label { position: absolute; bottom: 0; width: 100%; text-align: center; font: 500 12px/1.6 var(--font-ui); letter-spacing: .06em; color: #c7acdc; }
.thc-site .solutions-section { padding-block: var(--section-pad); background: radial-gradient(ellipse at 50% 35%, #32234920, transparent 65%), #050306; }
.section-heading { margin-bottom: 48px; }
.section-heading h2 { font-size: clamp(32px, 4.2vw, 58px); margin: 22px 0; }
.thc-site .section-heading > p { max-width: 60ch; font-size: 17px; margin-bottom: 0; }
.thc-site .solutions-section .section-heading { text-align: center; max-width: 1000px; margin-inline: auto; }
.thc-site .solutions-section .section-heading > p { margin-inline: auto; }
.thc-site .solutions-section h2, .thc-site .solutions-section h2 em { color: #9690ff; }
.thc-site .solutions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; }
.thc-site .solution-card { padding: 0; min-width: 0; background: transparent; border: 0; box-shadow: none; align-items: center; text-align: center; transform-style: flat; }
.thc-site .solution-card:hover { box-shadow: none; }
.thc-site .solution-art { position: relative; width: 100%; height: 180px; display: flex; align-items: center; justify-content: center; margin-bottom: -12px; z-index: 2; }
.thc-site .solution-art .solution-object { width: 190px; height: 190px; object-fit: contain; filter: drop-shadow(0 0 22px #752fdd35); }
.thc-site .solution-art .solution-accent { position: absolute; right: 13%; top: 17%; width: 65px; height: 65px; object-fit: contain; transform: rotate(12deg); }
.thc-site .solution-card .character-copy { display: flex; flex-direction: column; align-items: center; padding: 32px 26px 26px; min-height: 390px; flex: 1; }
.thc-site .solution-card .card-index { font: 600 12px/1.5 var(--font-ui); letter-spacing: .08em; color: #c5acd9; }
.thc-site .solution-card h3 { font: 700 25px/1.2 var(--font-ui); letter-spacing: -.025em; margin: 18px 0 16px; color: #eee3f6; }
.thc-site .solution-card p { font-size: 16px; margin: 0 0 22px; line-height: 1.65; }
.thc-site .solution-card .tech-badge { font: 500 12px/1.5 var(--font-ui); letter-spacing: .035em; text-transform: uppercase; color: var(--gold); margin-top: auto; }
.thc-site .solution-card .text-link { color: #c6a9f5; margin-top: 20px; font-size: 13px; line-height: 1.5; letter-spacing: .02em; }
.thc-site .solutions-grid .character:last-child { grid-column: auto; width: 100%; justify-self: stretch; }
.paused .solution-card img { transform: translateY(10px) !important; transition: none !important; }

/* AITV Studio: stable text panels; the room and artwork carry the motion. */
.framework-section { border-block: 1px solid var(--line); background: #08040f; position: relative; }
.thc-site .hold-stage { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1.1fr; gap: 10%; align-items: center; min-height: 680px; padding-block: 80px; overflow: hidden; }
.framework-room { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 1; pointer-events: none; }
.hold-stage:after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #08040fd9, transparent 80%), linear-gradient(0deg, #08040f, transparent 18%, transparent 82%, #08040f); pointer-events: none; }
.hold-shape { position: absolute; object-fit: contain; z-index: -1; opacity: .8; pointer-events: none; }
.thc-site .hold-cube { width: 180px; height: 180px; left: 5%; top: 22%; }
.thc-site .hold-pyramid { width: 140px; height: 140px; left: 40%; bottom: 9%; }
.framework-copy { grid-column: 2; grid-row: 1; }
.framework-copy h2 { font-size: clamp(32px, 3.8vw, 54px); margin: 24px 0; }
.framework-copy p { max-width: 45ch; margin: 0; }
.hold-controls { display: none; gap: 12px; margin-top: 28px; }
.enhanced .hold-controls { display: flex; }
.thc-site .hold-controls button { border-radius: 50%; width: 48px; height: 48px; border: 1px solid #8d56ae; font: 16px/1 var(--font-display); color: #d3b7e6; background: #0e0716; }
.thc-site .hold-controls button[aria-pressed="true"] { background: #9024c2; color: white; border-color: #d286f2; box-shadow: 0 0 20px #a42be54a; }
.thc-site .hold-controls button:hover { border-color: var(--gold); color: var(--gold); }
.framework-instruction { display: none; color: #c3abd6; font: 14px/1.6 var(--font-ui); margin-top: 20px; }
.enhanced .framework-instruction { display: block; }
.framework-instruction > span { margin-left: 8px; color: var(--gold); }
.static-framework .framework-instruction > span { display: none; }
.thc-site .step-visual { position: relative; width: 100%; max-width: 440px; justify-self: center; grid-column: 1; grid-row: 1; margin-top: 56px; }
.thc-site .step-card { position: relative; inset: auto; display: flex; flex-direction: column; min-height: 300px; padding: 34px 30px 28px; margin: 48px 0; background: #08040ff5; border: 1px solid #963ee1; border-radius: 14px; box-shadow: 0 0 30px #8a16c325; opacity: 1; transform: none; pointer-events: auto; }
.enhanced .thc-site .step-visual { display: grid; }
.enhanced .thc-site .step-card { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--ease-ui), visibility var(--ease-ui); }
.enhanced .thc-site .step-card.active { opacity: 1; visibility: visible; pointer-events: auto; }
.thc-site .step-emblem { position: absolute; left: 28px; top: -24px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #08040f; border: 1px solid #963ee1; color: #c48deb; font: 18px/1 var(--font-display); box-shadow: 0 0 22px #8a16c34d; }
.step-card-top { display: flex; align-items: center; justify-content: space-between; font: 500 12px/1.5 var(--font-ui); letter-spacing: .06em; margin-bottom: 18px; color: #c2a4d9; }
.step-card-top > span:last-child { color: #b477ed; }
.thc-site .step-card h3 { font: 27px/1.25 var(--font-display); text-transform: uppercase; letter-spacing: -.025em; margin: 0 0 16px; }
.thc-site .step-card p { font-size: 16px; line-height: 1.65; margin: 0 0 24px; }
.thc-site .step-footnote { display: block; font: 14px/1.6 var(--font-ui); margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); color: #c8addf; }
.framework-progress { position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: #8648b024; }
.framework-progress span { display: block; height: 100%; width: 25%; background: #bd8af1; box-shadow: 0 0 12px #bc8bff; transform-origin: left; transition: width 250ms ease; }
.scroll-enabled .hold-track { height: 280svh; }
.scroll-enabled .thc-site .hold-stage { position: sticky; top: var(--header-height); height: calc(100svh - var(--header-height)); min-height: 0; padding-block: 48px; }

/* Resource rows, contact portal, and footer use the same reading scale. */
.thc-site .resources-section { position: relative; isolation: isolate; overflow: hidden; display: block; padding-block: var(--section-pad); background: #030b07; border-bottom: 1px solid #50826145; }
.matrix-rain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .42; pointer-events: none; }
.resources-section:before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #030b07ed, #030b07a6 65%, #030b0755); pointer-events: none; }
.thc-site .resources-section .eyebrow, .thc-site .resources-section h2 em { color: #7fdfa5; }
.thc-site .resources-section .section-heading h2 { font-size: clamp(32px, 3.5vw, 48px); }
.thc-site .resource-list { border: 0; margin-top: 40px; }
.thc-site .resource-list > .article-row { display: grid; width: 100%; grid-template-columns: 1fr 120px 80px; gap: 32px; padding: 28px 0; border: 0; border-top: 1px solid #ffffff30; background: transparent; text-align: left; }
.thc-site .resource-list > .article-row:last-child { border-bottom: 1px solid #ffffff30; }
.thc-site .resource-list > .article-row:hover { background: #a366d708; }
.thc-site .resource-list strong { display: block; font: 600 24px/1.35 var(--font-ui); letter-spacing: -.015em; color: var(--ink); text-transform: none; }
.thc-site .resource-list > .article-row:hover strong { color: #d0b0ff; }
.thc-site .resource-list small { display: block; font: 15px/1.65 var(--font-ui); color: var(--muted); margin-top: 8px; }
.thc-site .article-date { font: 13px/1.5 var(--font-ui); color: #c2adcf; }
.thc-site .read-button { font: 600 13px/1.5 var(--font-ui); padding: 12px; min-height: 44px; }
.thc-site .contact-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10%; padding-block: var(--section-pad); text-align: left; overflow: hidden; background: radial-gradient(ellipse at 75% 65%, #4c155942, transparent 65%), #10071c; }
.thc-site .contact-copy h2 { font-size: clamp(48px, 5.6vw, 80px); margin: 26px 0; }
.thc-site .contact-copy p { max-width: 40ch; margin: 0; }
.thc-site .contact-copy > small { font: 14px/1.65 var(--font-ui); color: #bea8cd; display: block; max-width: 40ch; margin-top: 22px; }
.thc-site .diane-showcase { position: relative; width: 90%; max-width: 380px; justify-self: center; }
.thc-site .diane-showcase .character-portal { position: relative; width: 100%; }
.thc-site .diane-showcase .character-portal img { width: 105%; height: 105%; position: absolute; bottom: 0; }
.thc-site .portal-card { padding: 26px; }
.thc-site .portal-card h3 { font: 28px/1.3 var(--font-display); color: #e788f5; margin: 14px 0 12px; }
.thc-site .portal-card p { font-size: 16px; line-height: 1.65; margin: 0 0 20px; }
.thc-site .portal-card .button { width: 100%; margin: 0; gap: 14px; background: #0b0510; border-color: #c245dc; color: #f0ddff; }
.thc-site .portal-card .button:hover { background: #281038; }
.thc-site .diane-deco { position: absolute; right: -12%; top: 4%; width: 80px; height: 80px; animation: float 6s ease-in-out infinite; pointer-events: none; }
.thc-site .site-footer { display: block; padding-block: 64px 104px; background: #060309; border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; margin-bottom: 48px; }
.footer-brand .wordmark { font-size: 22px; }
.thc-site .footer-brand p { font-size: 14px; margin-top: 20px; max-width: 28ch; }
.thc-site .footer-certification { display: inline-block; color: var(--gold); font: 500 12px/1.5 var(--font-ui); border: 1px solid #d2a90060; border-radius: 3px; padding: 8px 10px; margin-top: 4px; }
.footer-column h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: #d1bade; margin: 0 0 14px; }
.footer-column button { display: block; min-height: 44px; padding: 9px 0; background: none; border: 0; font: 14px/1.5 var(--font-ui); color: var(--muted); text-align: left; }
.footer-column button:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.thc-site .footer-bottom span { color: #c0acd0; font-size: 13px; line-height: 1.7; }
.footer-bottom i { margin-right: 8px; }
.thc-site .disclaimer { font-size: 12px; line-height: 1.75; color: #b8a5c4; margin: 18px 0 0; max-width: 95ch; }

/* The terminal keeps its monospace voice at a comfortable reading size. */
.thc-site .terminal { width: min(840px, calc(100% - 32px)); max-height: 85dvh; padding: 0; text-align: left; background: #030a05; color: #71ff9b; border: 1px solid #49bd69; border-radius: 7px; box-shadow: 0 0 90px #26f75c22; overflow: auto; font-family: var(--font-mono); }
.thc-site .terminal::backdrop { background: #030006de; backdrop-filter: blur(10px); }
.terminal-bar { display: flex; align-items: center; gap: 16px; padding: 10px 18px; border-bottom: 1px solid #4adb7040; background: #0c160e; position: sticky; top: 0; z-index: 1; }
.terminal-dots { display: flex; gap: 6px; flex-shrink: 0; }
.terminal-dots i { width: 9px; height: 9px; display: block; border-radius: 50%; background: #ff5f56; }
.terminal-dots i:nth-child(2) { background: #ffbd2e; }
.terminal-dots i:nth-child(3) { background: #27c93f; }
.thc-site .terminal h2 { font: 500 14px/1.5 var(--font-mono); color: #a0edb1; letter-spacing: 0; margin: 0; }
.terminal-bar > button { margin-left: auto; font: 26px/1 var(--font-ui); color: #b0e5be; background: none; border: 0; min-width: 44px; min-height: 44px; }
.terminal-body { padding: 28px; background: repeating-linear-gradient(0deg, transparent, transparent 3px, #4dda6204 4px); }
.thc-site .terminal p { font: 13px/1.75 var(--font-mono); color: #91c69f; margin: 0 0 8px; }
.thc-site .terminal-command { margin: 24px 0 16px; color: #b1ffbb; overflow-wrap: anywhere; }
.terminal-command > span:first-child { color: var(--gold); }
.thc-site #terminal-status { color: var(--gold); min-height: 24px; }
.terminal pre { font: 15px/1.8 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; color: #a0edb1; margin: 18px 0 28px; min-height: 200px; }
.terminal-exit { font: 14px/1.8 var(--font-mono); text-align: left; color: #a0edb1; background: none; border: 0; border-top: 1px solid #4de97835; width: 100%; min-height: 48px; padding: 18px 0 0; overflow-wrap: anywhere; }
.terminal-exit:hover { color: var(--gold); }

/* Chat uses reading-sized copy, larger controls, and a stable scroll region. */
.diane-launcher { position: fixed; bottom: 24px; right: 24px; z-index: 30; display: flex; align-items: center; gap: 12px; background: linear-gradient(120deg, #33115a, #1c0b2b); border: 1px solid #963ee1; border-radius: 9px; box-shadow: 0 0 30px #8a16c330; color: white; padding: 10px 18px 10px 10px; min-height: 58px; font: 600 14px/1.5 var(--font-ui); }
.diane-launcher:hover { border-color: #c789ed; box-shadow: 0 0 30px #8a16c350; }
.diane-avatar { position: relative; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 60% 40%, #653783, #261137); border: 1px solid #cf9aee8c; flex-shrink: 0; box-shadow: 0 0 18px #9d57d533; }
.diane-avatar img { position: absolute; width: 185%; height: 185%; max-width: none; object-fit: contain; left: 50%; top: -2%; transform: translateX(-50%); }
.diane-online { width: 5px; height: 5px; background: #e5d3f5; border-radius: 50%; margin-left: 3px; }
.diane-panel { position: fixed; bottom: 24px; right: 24px; width: 410px; max-width: calc(100vw - 32px); height: 620px; max-height: calc(100dvh - 104px); background: #0d0714; border: 1px solid #9d61d189; border-radius: 15px; box-shadow: 0 12px 60px #000a; display: flex; flex-direction: column; overflow: hidden; z-index: 31; }
.diane-header { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); background: #1c1128; flex-shrink: 0; }
.thc-site .diane-header h2 { font: 700 18px/1.3 var(--font-ui); letter-spacing: .01em; margin: 0; }
.thc-site .diane-header p { font: 12px/1.5 var(--font-ui); color: #c5b2d5; margin: 5px 0 0; }
.diane-header > button { margin-left: auto; background: none; border: 0; color: #d1bddf; font-size: 26px; min-width: 44px; min-height: 44px; padding: 0; }
.diane-messages { padding: 18px 16px; overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; display: flex; align-items: flex-start; flex-direction: column; gap: 16px; scrollbar-color: #80509f #100818; scrollbar-width: thin; }
.thc-site .diane-message { background: #261335; border: 1px solid #ad6ee32b; border-radius: 12px 12px 12px 3px; padding: 12px 14px; font-size: 15px; line-height: 1.6; max-width: 93%; margin: 0; color: #e0d1eb; overflow-wrap: anywhere; flex-shrink: 0; }
.thc-site .diane-message.user { align-self: flex-end; background: #70459a; color: #fff; border-radius: 12px 12px 3px 12px; }
.thc-site .diane-typing { font: 12px/1.5 var(--font-ui); color: #ceb0e6; margin: 0; padding: 6px 18px; }
.diane-message.streaming:after { content: ""; display: inline-block; width: 5px; height: 15px; background: var(--purple-bright); vertical-align: -2px; margin-left: 3px; animation: diane-cursor .75s steps(2, end) infinite; }
@keyframes diane-cursor { 50% { opacity: 0; } }
.diane-suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; flex-shrink: 0; }
.diane-suggestions button { background: none; border: 1px solid #9f67c380; color: #ddc8ee; border-radius: 18px; padding: 8px 12px; min-height: 40px; font: 12px/1.5 var(--font-ui); text-align: left; }
.diane-suggestions button:hover { border-color: var(--gold); color: var(--gold); }
.diane-suggestions button:disabled { opacity: .6; cursor: wait; }
#diane-form { display: flex; align-items: center; gap: 8px; padding: 14px; background: #191021; border-top: 1px solid var(--line); flex-shrink: 0; }
#diane-input { min-width: 0; flex: 1; border: 1px solid #8957b580; background: #0d0815; border-radius: 24px; padding: 12px 14px; color: #eee5f4; font: 16px/1.5 var(--font-ui); }
#diane-input::placeholder { color: #b6a0c7; }
#diane-form > button { width: 46px; height: 46px; border-radius: 50%; background: #9256bb; color: #fff; border: 0; font-size: 24px; flex-shrink: 0; }
#diane-form > button:disabled { opacity: .5; cursor: wait; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.thc-site .skip { z-index: 100; background: var(--gold); color: #170b20; font-weight: 700; }
.thc-site .skip:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; padding: 0; }
.thc-site .skip:focus { top: 12px; }
.noscript-notice { padding: 24px; text-align: center; background: #261037; }
.not-found { min-height: 100svh; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 32px; }
.thc-site .not-found h1 { font: clamp(32px, 6vw, 70px)/1.15 var(--font-display); letter-spacing: -.035em; margin: 32px 0; }
.not-found p { max-width: 50ch; }

@media (max-width: 1100px) {
  .nav-status { display: none; }
  .thc-site .hero h1 { font-size: 7.5vw; }
  .hero-stage { min-height: 550px; }
  .hero-copy { width: 70%; }
  .hero-art { top: 0; width: 58%; right: -9%; }
  .social-links a { padding-inline: 22px; }
  .social-links a:last-child strong { font-size: 24px; line-height: 1.8; }
  .thc-site .feature { padding: 22px; }
  .thc-site .feature-art { width: 30%; padding-right: 14px; }
  .thc-site .feature-art > img:first-child { height: 180px; }
  .thc-site .geometry-art > img:first-child { height: 150px; }
  .thc-site .feature-art .shape { width: 45px; height: 45px; }
  .thc-site .solutions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thc-site .hold-stage { gap: 6%; }
  .thc-site .step-card { padding-inline: 24px; }
  .footer-main { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  :root { --grid-gap: 16px; --header-height: 108px; }
  .thc-site .site-header { display: grid; grid-template-columns: 1fr 92px; grid-template-rows: 52px 44px; align-content: center; gap: 0 12px; }
  .site-controls { grid-column: 2; grid-row: 1; }
  .thc-site .site-header nav { grid-column: 1 / -1; grid-row: 2; width: 100%; margin: 0; justify-content: flex-start; gap: 28px; font-size: 14px; }
  .thc-site .site-header nav a { display: inline-flex; }
  .hero-copy { width: 75%; }
  .thc-site .hero h1 { font-size: 8.5vw; }
  .hero-art { top: 70px; right: -18%; width: 61%; }
  .hero-stage { min-height: 530px; }
  .thc-site .hero-description { max-width: 38ch; }
  .thc-site .hero-description br { display: none; }
  .social-links a { padding-inline: 16px; }
  .social-links strong { font-size: 30px; }
  .social-links a:last-child strong { font-size: 20px; }
  .asset-platform { font-size: 12px; gap: 8px; }
  .asset-icon { width: 20px; height: 20px; }
  .thc-site .feature { padding: 24px 20px; }
  .thc-site .feature-art { width: 28%; padding-right: 12px; }
  .intro-section { grid-template-columns: 1fr; gap: 32px; }
  .thc-site .orbit-scene { max-width: 440px; }
  .thc-site .contact-section { gap: 6%; }
  .thc-site .diane-showcase { width: 95%; }
  .thc-site .portal-card { padding: 22px 18px; }
  .thc-site .portal-card .button { font-size: 13px; padding-inline: 14px; gap: 8px; }
  .thc-site .contact-copy h2 { font-size: 44px; }
}
@media (max-width: 640px) {
  :root { --header-height: 108px; --grid-gap: 12px; --gutter: 24px; }
  .thc-site .site-header .wordmark { font-size: clamp(13px, 3.65vw, 18px); letter-spacing: 0; }
  .thc-site .site-header nav { padding-right: 56px; justify-content: space-between; gap: 8px; font-size: clamp(12px, 3.4vw, 14px); }
  .thc-site .hero { padding-top: calc(var(--header-height) + 34px); padding-bottom: 32px; }
  .thc-site .hero-content { display: grid; grid-template-columns: minmax(0, 1fr); }
  .hero-stage, .hero-copy { display: contents; }
  .hero-badge { grid-row: 1; }
  .thc-site .hero h1 { grid-row: 2; }
  .thc-site .hero-holdings { grid-row: 4; }
  .thc-site .hero-subtitle { grid-row: 5; }
  .thc-site .hero-description { grid-row: 6; }
  .hero-actions { grid-row: 7; }
  .hero-badge { font-size: 12px; letter-spacing: .06em; }
  .thc-site .hero h1 { font-size: 13.5vw; line-height: 1.02; margin: 18px 0 0; position: relative; z-index: 2; }
  .hero h1 span:first-child { font-size: .44em; }
  .hero-art { grid-row: 3; position: relative; top: auto; right: auto; justify-self: center; width: 85%; max-width: 340px; height: clamp(190px, 61vw, 290px); aspect-ratio: auto; margin: 14px 0 18px; }
  .asset-orbit { display: none; }
  .thc-site .hero-subtitle { position: relative; font-size: 17px; margin: 26px 0 14px; }
  .thc-site .hero-description { font-size: 15px; max-width: 100%; }
  .hero-actions { flex-wrap: nowrap; gap: 10px; margin-top: 22px; }
  .thc-site .hero-actions .button { flex: 1; padding: 11px 10px; font-size: 13px; min-height: 48px; }
  .social-links { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .social-links a { padding: 20px; border-bottom: 1px solid #ad893938; }
  .social-links a:nth-child(2n) { border-right: 0; }
  .social-links a:nth-child(n+3) { border-bottom: 0; }
  .social-links strong { margin-top: 10px; font-size: 32px; }
  .social-links a:last-child strong { font-size: 23px; line-height: 1.67; }
  .asset-platform { font-size: 13px; }
  .thc-site .feature-section { padding-block: 32px 40px; }
  .thc-site .hero-cards { grid-template-columns: 1fr; }
  .thc-site .feature { min-height: 250px; padding: 24px 20px; }
  .thc-site .feature-art { width: 31%; }
  .thc-site .feature h2 { font-size: 25px; }
  .thc-site .feature p { font-size: 15px; }
  .thc-site .feature-art > img:first-child { height: 190px; }
  .thc-site .geometry-art > img:first-child { height: 140px; }
  .intro-copy h2 { font-size: clamp(30px, 8vw, 42px); }
  .thc-site .orbit-scene { min-height: 330px; }
  .thc-site .main-cube { width: 180px; height: 180px; left: calc(50% - 90px); top: 65px; }
  .thc-site .sphere { width: 65px; height: 65px; }
  .thc-site .pyramid { width: 60px; height: 60px; }
  .orbit-label { font-size: 12px; letter-spacing: .015em; }
  .thc-site .solutions-section h2 { font-size: clamp(25px, 7.4vw, 40px); }
  .thc-site .section-heading > p { font-size: 16px; }
  .thc-site .solutions-grid { grid-template-columns: 1fr; gap: 36px; }
  .thc-site .solution-art { height: 140px; }
  .thc-site .solution-art .solution-object { height: 160px; width: 160px; }
  .thc-site .solution-art .solution-accent { width: 55px; height: 55px; right: 17%; }
  .thc-site .solution-card .character-copy { padding: 30px 24px 26px; min-height: 0; }
  .thc-site .solution-card h3 { font-size: 26px; }
  .thc-site .solution-card p { font-size: 16px; }
  .thc-site .solution-card .tech-badge { margin-top: 0; }
  .thc-site .hold-stage { grid-template-columns: 1fr; gap: 48px; min-height: 0; padding-block: 72px; }
  .framework-copy { grid-column: 1; grid-row: 1; }
  .framework-copy h2 { font-size: clamp(30px, 8vw, 42px); }
  .thc-site .step-visual { grid-column: 1; grid-row: 2; margin: 0; max-width: 100%; }
  .thc-site .step-card { padding: 34px 24px 26px; min-height: 310px; }
  .thc-site .step-card h3 { font-size: 26px; }
  .thc-site .hold-cube { left: auto; right: -3%; top: 8%; width: 120px; height: 120px; opacity: .5; }
  .thc-site .hold-pyramid { left: -5%; bottom: 4%; width: 100px; height: 100px; }
  .thc-site .resources-section .section-heading h2 { font-size: clamp(30px, 8vw, 42px); }
  .thc-site .resource-list > .article-row { grid-template-columns: 1fr 62px; gap: 16px; padding-block: 24px; }
  .thc-site .article-date { display: none; }
  .thc-site .resource-list strong { font-size: 21px; }
  .thc-site .resource-list small { font-size: 14px; }
  .thc-site .read-button { font-size: 12px; padding: 12px 8px; }
  .thc-site .contact-section { grid-template-columns: 1fr; gap: 56px; }
  .thc-site .contact-copy h2 { font-size: clamp(46px, 13vw, 66px); }
  .thc-site .diane-showcase { width: 90%; max-width: 340px; }
  .thc-site .portal-card p br { display: none; }
  .thc-site .diane-deco { width: 65px; height: 65px; }
  .thc-site .site-footer { padding-block: 56px 104px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; margin-bottom: 36px; }
  .footer-brand .wordmark { font-size: 22px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .diane-launcher { top: 60px; bottom: auto; right: var(--gutter); padding: 6px; min-height: 44px; gap: 0; }
  .diane-launcher .diane-avatar { width: 30px; height: 30px; font-size: 20px; }
  .diane-launcher > span:not(.diane-avatar) { display: none; }
  .diane-panel { bottom: 16px; right: 16px; max-height: calc(100dvh - 32px); }
  .diane-header { gap: 10px; padding: 14px; }
  .diane-header .diane-avatar { width: 34px; height: 34px; }
  .terminal-body { padding: 22px; }
  .terminal-bar { gap: 10px; padding-inline: 14px; }
  .terminal-dots { display: none; }
  .thc-site .terminal { max-height: 90dvh; }
  .thc-site .terminal h2 { font-size: 13px; }
  .terminal pre { font-size: 14px; }
}
@media (max-width: 360px) {
  :root { --gutter: 20px; --grid-gap: 10px; }
  .thc-site .site-header { column-gap: 10px; }
  .thc-site .hero h1 { font-size: 13.3vw; }
  .social-links a { padding: 18px 14px; }
  .social-links a:last-child strong { font-size: 20px; line-height: 1.92; }
  .thc-site .hero-actions .button { font-size: 12px; padding-inline: 8px; }
  .thc-site .feature { padding: 22px 16px; }
  .thc-site .feature-art { width: 26%; padding-right: 10px; }
  .thc-site .feature h2 { font-size: 23px; }
  .thc-site .solution-card .character-copy { padding-inline: 20px; }
  .thc-site .step-card { padding-inline: 20px; }
  .thc-site .step-card h3 { font-size: 24px; }
  .thc-site .portal-card { padding: 24px 16px; }
  .thc-site .portal-card h3 { font-size: 24px; }
  .thc-site .diane-showcase { width: 96%; }
  .diane-header { gap: 8px; padding: 12px; }
  .diane-header > button { min-width: 36px; }
  .thc-site .diane-header p { font-size: 12px; }
}
@media (max-height: 600px) {
  .diane-panel { max-height: calc(100dvh - 32px); bottom: 16px; }
  .diane-header { padding-block: 10px; }
  .diane-header p { display: none; }
  .diane-suggestions { padding-block: 8px; }
  #diane-form { padding-block: 10px; }
}
.paused *, .paused *:before, .paused *:after { transition: none !important; animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .thc-site *, .thc-site *:before, .thc-site *:after { animation: none !important; transition: none !important; }
}
