/* 01 — Scoped design tokens and typography */
.tr-page {
    --tr-ink: #101010;
    --tr-green: #6eff6e;
    --tr-hover: #0ae448;
    --tr-muted: #555;
    --tr-line: #dedede;
    font-family: Outfit, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--tr-ink);
    background: #fff;
    width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
}
.tr-page, .tr-page * { box-sizing: border-box; }
/* This page uses real DOM elements and SVG icons, not generated glyphs. */
.tr-page::before, .tr-page::after,
.tr-page *::before, .tr-page *::after { content: none !important; }
.tr-page :is(h1,h2,h3,p,figure,ol,ul) { margin: 0; padding: 0; }
.tr-page :is(h1,h2,h3) { font-family: inherit; font-weight: 600; color: inherit; text-transform: none; }
.tr-page h1 { font-size: clamp(38px,4.8vw,72px); line-height: 1.07; letter-spacing: -.04em; }
.tr-page h2 { font-size: clamp(30px,3.4vw,52px); line-height: 1.16; letter-spacing: -.035em; }
.tr-page h3 { font-size: clamp(19px,1.6vw,24px); line-height: 1.3; letter-spacing: -.015em; }
.tr-page p { color: var(--tr-muted); }
.tr-page p + p { margin-top: 16px; }
.tr-page small { font-size: 13px; line-height: 1.5; color: var(--tr-muted); display: block; }
.tr-page a { color: inherit; text-decoration: none; }
.tr-page :is(button,input,textarea,select) { font: inherit; letter-spacing: normal; text-transform: none; }
.tr-page button { cursor: pointer; }
.tr-page :is(a,button,input,textarea,select,summary):focus-visible { outline: 3px solid #16802e; outline-offset: 4px; }
.tr-page [hidden] { display: none !important; }
.tr-page .tr-icon { width: 25px; height: 25px; flex: 0 0 auto; display: inline-block; vertical-align: middle; }
/* 02 — Section rhythm and reusable controls */
.tr-page .tr-section { padding: clamp(64px,7vw,112px) 0; position: relative; scroll-margin-top: 100px; color: var(--tr-ink); background: #fff; }
.tr-page .tr-wrap { width: min(1320px,calc(100% - 96px)); margin: 0 auto; }
.tr-page .tr-soft { background: #f4f4f4; }
.tr-page .tr-dark { background: #101010; color: #fff; --tr-muted: #c1c1c1; --tr-line: #363636; }
.tr-page .tr-green { background: var(--tr-green); color: #101010; --tr-muted: #263426; --tr-line: #10101033; }
.tr-page .tr-kicker { display: block; font-size: 13px; font-weight: 600; letter-spacing: .105em; line-height: 1.5; text-transform: uppercase; color: #17652c; margin-bottom: 18px; }
.tr-page .tr-dark .tr-kicker { color: var(--tr-green); }
.tr-page .tr-green .tr-kicker { color: #173c1c; }
.tr-page .tr-heading { max-width: 890px; margin-bottom: 36px; }
.tr-page .tr-heading p { max-width: 780px; margin-top: 20px; }
.tr-page .tr-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(32px,6vw,90px); align-items: center; }
.tr-page .tr-top { align-items: start; }
.tr-page .tr-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.tr-page .tr-btn { display: inline-flex; gap: 12px; align-items: center; justify-content: center; min-height: 54px; padding: 13px 22px; border: 1px solid var(--tr-green); background: var(--tr-green); color: #101010; border-radius: 8px; font-size: 15px; font-weight: 600; line-height: 1.45; text-align: center; white-space: normal; transition: background .2s,color .2s,border-color .2s; }
.tr-page .tr-btn:hover { background: var(--tr-hover); border-color: var(--tr-hover); color: #101010; }
.tr-page .tr-btn .tr-icon { width: 18px; height: 18px; transition: transform .22s; }
.tr-page .tr-btn:hover .tr-icon { transform: translateX(3px); }
.tr-page .tr-alt { background: transparent; border-color: var(--tr-line); color: inherit; }
.tr-page .tr-btn:disabled { opacity: .55; cursor: not-allowed; }
.tr-page .tr-green .tr-btn { background: #101010; border-color: #101010; color: #fff; }
.tr-page .tr-green .tr-btn:hover { background: #fff; color: #101010; border-color: #fff; }
.tr-page .tr-photo { display: grid; place-items: center; position: relative; width: 100%; min-width: 0; min-height: 180px; aspect-ratio: 5/4; overflow: hidden; border-radius: 20px; background: transparent !important; }
.tr-page .tr-photo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; position: absolute; inset: 0; margin: auto; object-fit: contain; border-radius: 20px !important; background: transparent !important; transition: transform .5s; }
.tr-page .tr-photo:hover img { transform: scale(1.025); }
.tr-page .tr-photo figcaption { border: 1px dashed var(--tr-line); color: var(--tr-muted); padding: 20px; border-radius: 20px; text-align: center; width: 100%; height: 100%; display: grid; place-items: center; }
/* 09 — White accordion */
.tr-page .tr-faqs { border-top: 1px solid #dedede; }
.tr-page .tr-faqs details { border-bottom: 1px solid #dedede; }
.tr-page .tr-faqs summary { list-style: none; display: grid; grid-template-columns: 26px minmax(0,1fr) 34px; align-items: center; gap: 12px; cursor: pointer; font-size: 19px; font-weight: 500; padding: 20px 0; }
.tr-page .tr-faqs summary::-webkit-details-marker { display: none; }
.tr-page .tr-plus { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f4f4f4; font-size: 24px; font-weight: 400; line-height: 1; transition: transform .25s,background .25s; }
.tr-page details[open] .tr-plus { transform: rotate(45deg); background: var(--tr-green); }
.tr-page .tr-faqs details p { padding: 0 0 22px 38px; }
/* 10 — Enquiry form */
.tr-page .tr-contacts { display: grid; gap: 12px; margin-top: 28px; }
.tr-page .tr-contacts a { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 500; }
.tr-page .tr-contacts a:hover { text-decoration: underline; }
.tr-page .tr-form { background: #fff; color: #101010; --tr-muted: #555; padding: clamp(20px,3vw,40px); border-radius: 20px; display: grid; gap: 14px; min-width: 0; }
.tr-page .tr-form h3 { font-size: 28px; }
.tr-page .tr-form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.tr-page .tr-form label { display: block; font-size: 14px; font-weight: 500; line-height: 1.4; }
.tr-page .tr-form-row label { margin-bottom: 8px; }
.tr-page .tr-form :is(input,select,textarea) { display: block; width: 100%; min-width: 0; color: #101010; background: #f7f7f7; border: 1px solid #d5d5d5; border-radius: 8px; padding: 12px; font-size: 16px; min-height: 50px; margin: 0; }
.tr-page .tr-form textarea { resize: vertical; }
.tr-page .tr-form .tr-btn { width: 100%; margin-top: 8px; }
.tr-page .tr-form small a { text-decoration: underline; }
/* 03 — Hero: split editorial with a search signal strip */
.tr-page .tr-hero {
    padding-top: clamp(116px,10vw,150px);
    padding-bottom: 32px;
    background-image: linear-gradient(90deg,#ffffff08 1px,transparent 1px);
    background-size: 80px 100%;
}
.tr-page .tr-hero-grid {
    display: grid;
    grid-template-columns: minmax(0,1.06fr) minmax(0,1fr);
    align-items: center;
    gap: clamp(28px,4vw,64px);
}
.tr-page .tr-hero h1 {
    font-size: clamp(38px,4.6vw,70px);
    line-height: 1.12;
}
.tr-page .tr-hero h1 span {
    display: block;
    color: var(--tr-green);
    overflow-wrap: anywhere;
}
.tr-page .tr-hero h1 + p { margin-top: 24px; }
.tr-page .tr-hero-visual { min-width: 0; display: grid; gap: 18px; }
.tr-page .tr-hero-visual .tr-photo { aspect-ratio: 16/10; min-height: 0; }
.tr-page .tr-signal { padding: 22px; border: 1px solid var(--tr-line); border-radius: 16px; background: #191919; }
.tr-page .tr-signal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--tr-green); font-size: 11px; font-weight: 600; letter-spacing: .07em; }
.tr-page .tr-signal-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.tr-page .tr-signal-grid b { font-size: clamp(15px,1.5vw,21px); font-weight: 500; display: block; line-height: 1.35; }
.tr-page .tr-signal-line { display: flex; gap: 5px; margin-bottom: 12px; }
.tr-page .tr-signal-line span { flex: 1; height: 4px; background: var(--tr-green); border-radius: 3px; transform-origin: left; }
.tr-page .tr-trust { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; border-top: 1px solid var(--tr-line); margin-top: 38px; padding-top: 25px; }
.tr-page .tr-trust > div { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.tr-page .tr-trust .tr-icon { color: var(--tr-green); }
/* 04 — Editorial information and numbered engine */
.tr-page .tr-index { color: #17652c; font-size: 13px; font-weight: 600; padding-top: 4px; }
.tr-page .tr-rows { margin-top: 22px; border-top: 1px solid var(--tr-line); }
.tr-page .tr-rows article { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 16px; border-bottom: 1px solid var(--tr-line); padding: 18px 0; }
.tr-page .tr-rows h3 { font-size: 20px; margin-bottom: 6px; }
.tr-page .tr-rows + .tr-btn { margin-top: 26px; }
.tr-page .tr-about .tr-heading { margin-bottom: 18px; }
.tr-page .tr-caption-band { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--tr-line); padding: 20px 0; font-weight: 600; }
.tr-page .tr-caption-band .tr-icon { color: #17652c; }
.tr-page .tr-engine { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--tr-line); border-bottom: 1px solid var(--tr-line); }
.tr-page .tr-engine article { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; border-right: 1px solid var(--tr-line); padding: 25px; }
.tr-page .tr-engine article:last-child { border-right: 0; }
.tr-page .tr-big { font-size: clamp(42px,6vw,80px); line-height: 1; letter-spacing: -.055em; font-weight: 500; }
.tr-page .tr-engine-foot { margin-top: 20px; font-size: 14px; }
/* 05 — Asymmetric service catalogue */
.tr-page .tr-services { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.tr-page .tr-services article { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; background: #fff; border: 1px solid #dedede; border-radius: 14px; padding: clamp(20px,2.3vw,30px); transition: border-color .25s,box-shadow .25s; }
.tr-page .tr-services article:nth-child(1) { grid-column: span 2; }
.tr-page .tr-services article.tr-feature { grid-column: span 2; background: #101010; color: white; --tr-muted: #c1c1c1; }
.tr-page .tr-services article:hover { border-color: #16802e; box-shadow: 0 7px 20px #0000000b; }
.tr-page .tr-service-top { width: 100%; display: flex; justify-content: space-between; align-items: center; color: #17652c; font-size: 13px; }
.tr-page .tr-service-top .tr-icon { width: 34px; height: 34px; transition: transform .25s; }
.tr-page .tr-feature .tr-service-top { color: var(--tr-green); }
.tr-page .tr-services article:hover .tr-service-top .tr-icon { transform: rotate(-10deg) scale(1.06); }
.tr-page .tr-services h3 { font-size: 23px; }
.tr-page .tr-services p { font-size: 16px; }
.tr-page .tr-services small { color: #17652c; font-size: 13px; border: 1px solid #dedede; border-radius: 5px; padding: 6px 9px; }
.tr-page .tr-feature small { color: var(--tr-green); border-color: #444; }
.tr-page .tr-services a { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; font-size: 15px; font-weight: 600; border-top: 1px solid #dedede; padding-top: 15px; margin-top: auto; }
.tr-page .tr-feature a { border-color: #444; color: var(--tr-green); }
.tr-page .tr-services a .tr-icon { width: 18px; height: 18px; transition: transform .25s; }
.tr-page .tr-services a:hover .tr-icon { transform: translateX(4px); }
/* 06 — Interactive on-page inspector */
.tr-page .tr-lab { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); gap: 20px; align-items: start; }
.tr-page .tr-browser, .tr-page .tr-diagnosis { min-width: 0; border: 1px solid #393939; border-radius: 18px; background: #191919; overflow: hidden; }
.tr-page .tr-browser-bar { display: flex; align-items: center; gap: 6px; padding: 16px; background: #292929; font-size: 13px; }
.tr-page .tr-browser-bar > span { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--tr-green); }
.tr-page .tr-browser-bar b { margin-left: 8px; font-weight: 500; }
.tr-page .tr-browser-body { display: grid; gap: 10px; padding: clamp(14px,2vw,24px); }
.tr-page .tr-browser-body > small { margin-bottom: 6px; }
.tr-page .tr-inspect { display: grid; grid-template-columns: 86px minmax(0,1fr) 20px; gap: 12px; align-items: center; padding: 16px; background: #101010; color: #fff; border: 1px solid #3d3d3d; border-radius: 10px; text-align: left; transition: border-color .25s,background .25s; }
.tr-page .tr-inspect[aria-pressed="true"] { border-color: var(--tr-green); background: #242e24; }
.tr-page .tr-inspect:hover { border-color: var(--tr-green); }
.tr-page .tr-inspect b { display: block; font-weight: 500; margin-bottom: 6px; font-size: 16px; }
.tr-page .tr-inspect .tr-icon { width: 18px; height: 18px; color: var(--tr-green); }
.tr-page .tr-code { font-family: ui-monospace,monospace; color: var(--tr-green); font-size: 12px; overflow-wrap: anywhere; }
.tr-page .tr-diagnosis { padding: clamp(22px,3vw,38px); }
.tr-page .tr-diagnosis article h3 { font-size: clamp(24px,2.4vw,34px); margin-bottom: 14px; }
.tr-page .tr-diagnosis h4 { font: 600 16px/1.4 Outfit,Arial,sans-serif; color: inherit; margin: 24px 0 12px; }
.tr-page .tr-diagnosis ul { list-style: disc; padding-left: 20px; color: var(--tr-muted); }
.tr-page .tr-diagnosis li { margin: 7px 0; }
.tr-page .tr-scope { border-top: 1px solid #393939; margin-top: 24px; padding-top: 2px; }
.tr-page .tr-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.tr-page .tr-tags span { border: 1px solid var(--tr-line); padding: 6px 10px; border-radius: 6px; font-size: 13px; }
.tr-page .tr-panel-enter { animation: tr-switch .3s ease both; }
@keyframes tr-switch { from { opacity: .4; transform: translateX(8px); } to { opacity: 1; transform: none; } }
/* 07 — Local coverage and GBP preview */
.tr-page .tr-area { margin-top: 24px; }
.tr-page .tr-area > p { margin-top: 8px; }
.tr-page .tr-area-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 20px 0; }
.tr-page .tr-area-grid article { display: flex; align-items: flex-start; gap: 9px; border: 1px solid #dedede; border-radius: 10px; padding: 14px; }
.tr-page .tr-area-grid b { font-size: 16px; line-height: 1.4; display: block; }
.tr-page .tr-area-grid .tr-icon { color: #17652c; width: 20px; height: 20px; margin-top: 2px; }
.tr-page .tr-profile { background: #fff; padding: clamp(22px,3vw,40px); border: 1px solid #dedede; border-radius: 20px; }
.tr-page .tr-profile-top { display: flex; align-items: center; gap: 12px; color: #17652c; font-size: 12px; font-weight: 600; margin-bottom: 22px; }
.tr-page .tr-profile h3 { font-size: clamp(26px,3vw,40px); margin-bottom: 12px; }
.tr-page .tr-profile-row { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 18px 0; border-bottom: 1px solid #dedede; }
.tr-page .tr-profile-row .tr-icon { color: #17652c; }
.tr-page .tr-profile-row small { background: #f4f4f4; padding: 3px 8px; border-radius: 5px; }
.tr-page .tr-profile > small { margin-top: 18px; }
/* 08 — Scroll-triggered horizontal roadmap */
.tr-page .tr-road { position: relative; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px; }
.tr-page .tr-road article { min-width: 0; position: relative; }
.tr-page .tr-road-track { position: absolute; height: 2px; top: 26px; left: 26px; right: 26px; background: #555; }
.tr-page .tr-road-track span { display: block; height: 100%; background: var(--tr-green); transform-origin: left; }
.tr-page .tr-step-dot { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--tr-green); border-radius: 50%; color: var(--tr-green); font-size: 19px; font-weight: 600; background: #101010; margin-bottom: 23px; transition: background .25s,color .25s; }
.tr-page .tr-road article:hover .tr-step-dot { background: var(--tr-green); color: #101010; }
.tr-page .tr-road h3 { margin-bottom: 12px; }
.tr-page .tr-note { border-left: 3px solid #16802e; margin-top: 30px; padding: 10px 16px; font-size: 15px; }
.tr-page .tr-dark .tr-note { border-color: var(--tr-green); }
/* 09 — Core Web Vitals target cards */
.tr-page .tr-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.tr-page .tr-metrics article { background: #f4f4f4; padding: clamp(22px,3vw,38px); border-radius: 16px; min-width: 0; }
.tr-page .tr-metrics strong { display: block; font-size: clamp(40px,5.1vw,74px); line-height: 1.1; font-weight: 600; letter-spacing: -.05em; }
.tr-page .tr-metrics h3 { margin: 20px 0 8px; }
.tr-page .tr-meter { height: 5px; border-radius: 5px; background: #d8d8d8; margin: 24px 0 0; overflow: hidden; }
.tr-page .tr-meter span { display: block; width: 100%; height: 100%; background: #16802e; transform-origin: left; }
/* 10 — One-time motion: no sticky pinning or frame-by-frame scroll calculations */
.tr-page .tr-revealed { animation: tr-enter .65s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--delay,0ms); }
.tr-page [data-tr-reveal="image"].tr-revealed { animation: tr-shutter .8s cubic-bezier(.2,.7,.2,1) both; }
.tr-page .tr-revealed .tr-road-track span, .tr-page .tr-revealed .tr-meter span, .tr-page .tr-revealed .tr-signal-line span { animation: tr-grow .9s ease both; }
.tr-page .tr-signal-line span:nth-child(2) { animation-delay: .12s; }
.tr-page .tr-signal-line span:nth-child(3) { animation-delay: .24s; }
@keyframes tr-enter { from { opacity: .4; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes tr-shutter { from { opacity: .5; clip-path: inset(0 9% 0 9% round 20px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 20px); } }
@keyframes tr-grow { from { transform: scaleX(.04); } to { transform: scaleX(1); } }
/* 11 — Responsive breakpoints */
@media (max-width: 1200px) {
    .tr-page .tr-wrap { width: calc(100% - 64px); }
    .tr-page .tr-services { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .tr-page .tr-services article:nth-child(1), .tr-page .tr-services article.tr-feature { grid-column: auto; }
}
@media (max-width: 900px) {
    .tr-page .tr-wrap { width: calc(100% - 48px); }
    .tr-page .tr-split, .tr-page .tr-hero-grid, .tr-page .tr-lab { grid-template-columns: minmax(0,1fr); }
    .tr-page .tr-hero h1 { font-size: clamp(40px,7vw,64px); }
    .tr-page .tr-photo { aspect-ratio: 16/10; }
    .tr-page .tr-hero-visual .tr-photo { max-height: 380px; }
    .tr-page .tr-engine, .tr-page .tr-services, .tr-page .tr-road { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .tr-page .tr-engine article:nth-child(2) { border-right: 0; }
    .tr-page .tr-engine article:nth-child(-n+2) { border-bottom: 1px solid var(--tr-line); }
    .tr-page .tr-services article.tr-feature { grid-column: auto; }
    .tr-page .tr-road-track { display: none; }
    .tr-page .tr-metrics { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 560px) {
    .tr-page .tr-wrap { width: calc(100% - 32px); }
    .tr-page .tr-section { padding: 56px 0; }
    .tr-page .tr-hero { padding-top: 116px; padding-bottom: 30px; }
    .tr-page .tr-hero h1 { font-size: clamp(35px,9vw,48px); }
    .tr-page .tr-heading { margin-bottom: 26px; }
    .tr-page .tr-actions { flex-direction: column; align-items: stretch; }
    .tr-page .tr-engine, .tr-page .tr-services, .tr-page .tr-road, .tr-page .tr-form-row, .tr-page .tr-trust, .tr-page .tr-area-grid { grid-template-columns: minmax(0,1fr); }
    .tr-page .tr-engine article { border-right: 0; border-bottom: 1px solid var(--tr-line); padding: 24px 0; }
    .tr-page .tr-engine article:last-child { border-bottom: 0; }
    .tr-page .tr-services article.tr-feature { grid-column: auto; }
    .tr-page .tr-signal { padding: 16px; }
    .tr-page .tr-signal-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
    .tr-page .tr-inspect { grid-template-columns: minmax(0,1fr) 18px; padding: 12px; gap: 8px; }
    .tr-page .tr-code { grid-column: 1 / -1; }
    .tr-page .tr-road article { border-bottom: 1px solid var(--tr-line); padding-bottom: 22px; }
    .tr-page .tr-faqs summary { font-size: 17px; gap: 8px; }
    .tr-page .tr-faqs details p { padding-left: 0; }
    .tr-page .tr-form h3 { font-size: 24px; }
    .tr-page .tr-profile-row { grid-template-columns: 22px minmax(0,1fr); }
    .tr-page .tr-profile-row small { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
    .tr-page *, .tr-page *::before, .tr-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
