/* Hero Studio: a self-contained hero inside the existing homepage shell.
   Brand blue is inherited from the Testin brand system, with a safe fallback. */
.ths-root {
    --ths-paper: #fcfcfa;
    --ths-ink: #161c2d;
    --ths-muted: #626b7a;
    --ths-line: #dddfe3;
    --ths-blue: #2457d6;
    --ths-blue-ink: var(--testin-brand-link, #2457d6);
    --ths-blue-hover: #1c46b3;
    --ths-orbit-line: rgba(36, 87, 214, .07);
    --ths-card-scale: 1.2;
}
html[data-testin-theme="dark"] #primary .ths-root {
    --ths-paper: #111722;
    --ths-ink: #edf1f8;
    --ths-muted: #bdc7d8;
    --ths-line: #60708b;
    --ths-blue-ink: #a5bcff;
    --ths-orbit-line: rgba(165, 188, 255, .13);
}
.ths-root, .ths-root *, .ths-root *::before, .ths-root *::after { box-sizing: border-box; }
.ths-root { width: 100%; overflow: clip; font-family: Manrope, sans-serif; color: var(--ths-ink); background: var(--ths-paper); -webkit-font-smoothing: antialiased; }
.ths-root a { color: inherit; text-decoration: none; }
.ths-root button { font: inherit; cursor: pointer; }
.ths-root [hidden] { display: none !important; }
.ths-root :is(a, button):focus-visible { outline: 3px solid var(--ths-blue-ink); outline-offset: 6px; border-radius: 4px; }
.ths-root :is(h1, h2, p, ul) { padding: 0; margin: 0; }
.ths-root .ths-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; }
.ths-root .ths-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ths-blue); flex-shrink: 0; }
.ths-root .ths-hero { position: relative; isolation: isolate; min-height: 680px; height: calc(100svh - 112px); max-height: 1080px; display: grid; align-items: center; padding: 110px 40px 90px; }
.ths-root .ths-hero::before { content: ''; position: absolute; width: 610px; height: 610px; left: 50%; top: 46%; transform: translate(-50%, -50%); border: 1px solid var(--ths-orbit-line); border-radius: 50%; z-index: -1; pointer-events: none; }
.ths-root .ths-hero-copy { position: relative; z-index: 2; width: min(100%, 970px); margin: 0 auto; text-align: center; pointer-events: none; }
.ths-root .ths-hero-copy a { pointer-events: auto; }
.ths-root .ths-eyebrow { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 10px; text-transform: uppercase; font-weight: 600; letter-spacing: 1.8px; line-height: 1.5; margin-bottom: 27px; }
.ths-root .ths-title { font-family: Manrope, sans-serif; font-size: clamp(64px, 6.6vw, 108px); font-weight: 600; line-height: 1.13; letter-spacing: -.073em; color: var(--ths-ink); }
.ths-root .ths-title-top { display: block; }
.ths-root .ths-title-bottom { display: flex; justify-content: center; align-items: baseline; gap: .2em; white-space: nowrap; }
.ths-root .ths-word { display: inline-grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: baseline; overflow: hidden; width: 8.3em; min-height: 1.2em; padding: 0 .045em .06em; margin-bottom: -.06em; color: var(--ths-blue-ink); vertical-align: bottom; white-space: pre; }
.ths-root .ths-word-layer { grid-area: 1 / 1; white-space: pre; pointer-events: none; }
.ths-root .ths-lead { color: var(--ths-muted); font-size: 14px; line-height: 1.85; font-weight: 400; margin: 25px auto 0; max-width: 560px; letter-spacing: -.1px; }
.ths-root .ths-actions { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 29px; }
.ths-root .ths-button { display: inline-flex; align-items: center; justify-content: center; min-height: 53px; gap: 20px; padding: 13px 23px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.4; transition: background .2s ease, color .2s ease, transform .28s cubic-bezier(.16, 1, .3, 1), box-shadow .28s ease; }
.ths-root .ths-button svg { width: 20px; height: 20px; transition: transform .32s cubic-bezier(.16, 1, .3, 1); }
.ths-root .ths-button--primary { background: var(--ths-blue); color: #fff; }
.ths-root .ths-button--primary:hover { background: var(--ths-blue-hover); transform: translateY(-2px); box-shadow: 0 8px 20px -10px rgba(36, 87, 214, .55); }
.ths-root .ths-button:hover svg { transform: translateX(5px); }
.ths-root .ths-button--secondary { padding: 13px 0; gap: 16px; border-radius: 0; box-shadow: inset 0 -1px var(--ths-line); min-height: 40px; }
.ths-root .ths-button--secondary:hover { color: var(--ths-blue-ink); transform: translateY(-1px); box-shadow: inset 0 -1px var(--ths-blue-ink); }
.ths-root[data-ths-motion="paused"] .ths-button, .ths-root[data-ths-motion="paused"] .ths-button svg { transition: none; }
.ths-root[data-ths-motion="paused"] .ths-button:hover, .ths-root[data-ths-motion="paused"] .ths-button:hover svg { transform: none; }
.ths-root .ths-button--secondary > span { font-size: 18px; font-weight: 400; }
.ths-root .ths-microcopy { margin-top: 19px; color: var(--ths-muted); font-size: 10px; letter-spacing: .1px; }
.ths-root .ths-microcopy > span { margin: 0 7px; }
.ths-root .ths-orbit { position: absolute; inset: 0; pointer-events: none; }
.ths-root .ths-float { position: absolute; width: calc(var(--card-width, 240px) * var(--ths-card-scale)); z-index: 1; }
.ths-root .ths-project { display: block; overflow: hidden; background: #fff; border: 1px solid rgba(31, 35, 29, .08); border-radius: 9px; box-shadow: 0 14px 35px -13px rgba(35, 34, 24, .23), 0 2px 7px rgba(35, 34, 24, .04); transform: rotate(var(--card-rotation, 0deg)); transition: box-shadow .25s ease, rotate .25s ease; pointer-events: auto; }
.ths-root .ths-project:hover, .ths-root .ths-project:focus-visible { box-shadow: 0 22px 45px -12px rgba(35, 34, 24, .3); rotate: calc(var(--card-rotation) * -1); }
.ths-root .ths-project-chrome { height: calc(22px * var(--ths-card-scale)); display: flex; align-items: center; gap: 3px; padding: 0 9px; color: #777a70; background: #fff; }
.ths-root .ths-project-chrome > span:not([class]) { width: 3px; height: 3px; border-radius: 100%; background: #d5d6ce; }
.ths-root .ths-project-url { margin-left: 6px; font-size: 6px; letter-spacing: .2px; }
.ths-root .ths-project-open { margin-left: auto; font-size: 10px; }
.ths-root .ths-project img { display: block; width: 100%; height: calc(155px * var(--ths-card-scale)); object-fit: cover; object-position: top center; max-width: none; }
.ths-root .ths-project-caption { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: calc(10px * var(--ths-card-scale)); background: white; }
.ths-root .ths-project-caption strong { color: #20231f; font-size: calc(9px * var(--ths-card-scale)); font-weight: 700; }
.ths-root .ths-project-caption > span { font-size: calc(6px * var(--ths-card-scale)); color: #73766c; }
.ths-root .ths-float--delag { --card-width: clamp(190px, 19.3vw, 300px); --card-rotation: -9deg; top: 48px; left: 5.8%; }
.ths-root .ths-float--estera { --card-width: clamp(170px, 16.8vw, 260px); --card-rotation: 9deg; top: 55px; right: 5.8%; }
.ths-root .ths-float--estera img { height: calc(159px * var(--ths-card-scale)); object-position: 57% center; }
.ths-root .ths-float--mcdonalds { --card-width: clamp(190px, 18.5vw, 282px); --card-rotation: -7deg; bottom: 117px; left: 3.7%; }
.ths-root .ths-float--mcdonalds img { height: calc(138px * var(--ths-card-scale)); }
.ths-root .ths-float--legal { --card-width: clamp(190px, 18.5vw, 282px); --card-rotation: 11deg; bottom: 103px; right: 4.1%; }
.ths-root .ths-float--legal img { height: calc(155px * var(--ths-card-scale)); }
.ths-root .ths-hero-bottom { position: absolute; left: 56px; right: 56px; bottom: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 9px; letter-spacing: .15px; color: var(--ths-muted); z-index: 3; }
.ths-root .ths-scroll { display: inline-flex; align-items: center; gap: 11px; min-height: 38px; }
.ths-root .ths-scroll-icon { display: grid; place-items: center; width: 26px; height: 34px; border: 1px solid var(--ths-line); border-radius: 20px; font-size: 17px; color: var(--ths-ink); }
.ths-root .ths-discipline { margin-left: 22px; }
.ths-root .ths-discipline > span { margin: 0 11px; color: var(--ths-blue-ink); }
.ths-root .ths-motion-toggle { min-width: 145px; min-height: 38px; padding: 7px 0; display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; border: 0; background: none; color: var(--ths-muted); font-size: 9px; }
.ths-root .ths-motion-icon { width: 9px; height: 10px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.ths-root .ths-motion-toggle[aria-pressed="true"] .ths-motion-icon { width: 0; height: 0; border: 5px solid transparent; border-left: 7px solid currentColor; border-right: 0; }
@media (min-width: 1700px) {
    .ths-root .ths-float--delag { left: 9%; }
    .ths-root .ths-float--estera { right: 9%; }
    .ths-root .ths-float--mcdonalds { left: 8%; }
    .ths-root .ths-float--legal { right: 8%; }
}
@media (max-width: 1100px) {
    .ths-root .ths-hero { min-height: 780px; height: calc(100svh - 96px); padding-top: 170px; padding-bottom: 100px; }
    .ths-root .ths-float--delag { left: 5%; top: 30px; --card-width: 180px; }
    .ths-root .ths-float--estera { right: 5%; top: 35px; --card-width: 170px; }
    .ths-root .ths-float--mcdonalds { left: 4%; bottom: 80px; --card-width: 160px; }
    .ths-root .ths-float--legal { right: 4%; bottom: 80px; --card-width: 160px; }
    .ths-root .ths-project img { height: calc(115px * var(--ths-card-scale)); }
    .ths-root .ths-project-caption { padding: calc(7px * var(--ths-card-scale)); }
    .ths-root .ths-project-caption > span { display: none; }
    .ths-root .ths-hero-bottom { left: 32px; right: 32px; }
}
@media (max-width: 767px) {
    .ths-root .ths-hero { min-height: 800px; height: auto; padding: 245px 20px 330px; display: block; }
    .ths-root .ths-hero::before { width: 430px; height: 430px; top: 44%; }
    .ths-root .ths-eyebrow { font-size: 8px; letter-spacing: 1.2px; gap: 8px; margin-bottom: 20px; }
    .ths-root .ths-eyebrow .ths-dot { width: 5px; height: 5px; }
    .ths-root .ths-title { font-size: clamp(37px, 7.9vw, 60px); letter-spacing: -.07em; line-height: 1.2; }
    .ths-root .ths-title-bottom { gap: .18em; }
    .ths-root .ths-word { width: 8.3em; max-width: 100%; }
    .ths-root .ths-lead { margin-top: 22px; font-size: 12px; line-height: 1.8; max-width: 330px; }
    .ths-root .ths-desktop-break { display: none; }
    .ths-root .ths-actions { gap: 18px; margin-top: 24px; }
    .ths-root .ths-button { font-size: 10px; min-height: 48px; padding: 12px 17px; gap: 10px; }
    .ths-root .ths-button svg { width: 17px; height: 17px; }
    .ths-root .ths-button--secondary { padding: 10px 0; min-height: 37px; gap: 8px; }
    .ths-root .ths-microcopy { font-size: 8px; margin-top: 17px; }
    .ths-root .ths-float { width: min(calc(var(--card-width) * var(--ths-card-scale)), 46%); }
    .ths-root .ths-float--delag { top: 30px; left: 3%; --card-width: 42%; --card-rotation: -9deg; }
    .ths-root .ths-float--estera { top: 62px; right: 3%; --card-width: 36%; --card-rotation: 9deg; }
    .ths-root .ths-float--mcdonalds { bottom: 85px; left: 3%; --card-width: 42%; --card-rotation: -7deg; }
    .ths-root .ths-float--legal { bottom: 100px; right: 3%; --card-width: 39%; --card-rotation: 10deg; }
    .ths-root .ths-project { border-radius: 6px; }
    .ths-root .ths-project img { height: calc(100px * var(--ths-card-scale)); }
    .ths-root .ths-project-chrome { height: calc(16px * var(--ths-card-scale)); padding: 0 6px; gap: 2px; }
    .ths-root .ths-project-chrome > span:not([class]) { width: 2px; height: 2px; }
    .ths-root .ths-project-url { font-size: 5px; }
    .ths-root .ths-project-caption { padding: calc(7px * var(--ths-card-scale)); }
    .ths-root .ths-project-caption strong { color: #20231f; font-size: calc(8px * var(--ths-card-scale)); }
    .ths-root .ths-hero-bottom { left: 20px; right: 20px; bottom: 20px; font-size: 8px; }
    .ths-root .ths-discipline { display: none; }
    .ths-root .ths-motion-toggle { min-width: 0; font-size: 8px; }
}
@media (max-width: 370px) {
    .ths-root .ths-title { font-size: 33px; }
    .ths-root .ths-actions { flex-direction: column; gap: 10px; }
    .ths-root .ths-hero { min-height: 910px; }
}
@media (prefers-reduced-motion: reduce) {
    .ths-root *, .ths-root *::before, .ths-root *::after { scroll-behavior: auto !important; transition: none !important; }
}
/* The site appearance plugin uses important declarations in this named
   layer. Scope the integration to this hero so every existing section retains
   its own typography, surfaces and theme behavior. */
@layer testin-appearance {
    html body #primary .ths-root .ths-project { transform: rotate(var(--card-rotation, 0deg)) !important; }
    html body #primary .ths-root,
    html body #primary .ths-root .ths-hero {
        background: var(--ths-paper) !important;
        color: var(--ths-ink) !important;
        border-color: var(--ths-line) !important;
    }
    html body #primary .ths-root :is(h1, strong, a, .ths-title-top) { color: var(--ths-ink) !important; }
    html body #primary .ths-root :is(.ths-word, .ths-word-layer, .ths-discipline > span) { color: var(--ths-blue-ink) !important; }
    html body #primary .ths-root :is(.ths-eyebrow, .ths-lead, .ths-microcopy, .ths-hero-bottom, .ths-motion-toggle) { color: var(--ths-muted) !important; }
    html body #primary .ths-root :is(.ths-project-url, .ths-project-open, .ths-project-caption > span) { color: #626b7a !important; }
    html body #primary .ths-root .ths-project-caption strong { color: #20231f !important; }
    html body #primary .ths-root .ths-button--primary { background: var(--ths-blue) !important; color: #fff !important; }
    html body #primary .ths-root .ths-button--primary:hover { background: var(--ths-blue-hover) !important; }
    html body #primary .ths-root .ths-button--secondary:hover { color: var(--ths-blue-ink) !important; }
    html body #primary .ths-root :is(a, button):focus-visible { outline-color: var(--ths-blue-ink) !important; }
}
