/*
Theme Name: THEED REWORK.CO
Theme URI: https://theedrework.co.uk
Author: THEED REWORK.CO
Description: A precision digital workshop for website support, fixes and improvements.
Version: 2.0.2
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: theed-rework
*/

:root {
  --graphite: #1A1A1D;
  --graphite-2: #252529;
  --off-white: #F7F5F1;
  --paper: #FCFBF8;
  --orange: #FF6A00;
  --orange-soft: #FFE5D2;
  --muted: #3F4348;
  --body-on-dark: #D8D5CF;
  --line: rgba(26,26,29,.16);
  --line-dark: rgba(247,245,241,.17);
  --font: "Space Grotesk", "Avenir Next", "Segoe UI", Arial, sans-serif;
  --shadow: 0 24px 60px rgba(26,26,29,.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--graphite); background: var(--off-white); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 1000; top: 1rem; left: 1rem; padding: .75rem 1rem; background: var(--orange); color: var(--graphite); font-weight: 800; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.shell { width: min(1220px, calc(100% - 3rem)); margin-inline: auto; }
.section { padding-block: clamp(4.25rem, 7vw, 7rem); }
.eyebrow { display: flex; align-items: center; gap: .75rem; margin: 0 0 1.2rem; color: var(--muted); font-size: .71rem; font-weight: 820; letter-spacing: .15em; line-height: 1.2; text-transform: uppercase; }
.eyebrow::before { width: 1.6rem; height: 3px; flex: 0 0 auto; background: var(--orange); content: ""; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { line-height: 1.03; letter-spacing: -.038em; }
h1 { margin-bottom: 1.6rem; font-size: clamp(3.25rem, 5.4vw, 5.65rem); }
h2 { margin-bottom: 1.45rem; font-size: clamp(2.15rem, 3.6vw, 3.55rem); }
h3 { margin-bottom: .7rem; font-size: clamp(1.15rem, 1.7vw, 1.45rem); }
.lead { max-width: 650px; color: var(--muted); font-size: clamp(1.18rem, 1.8vw, 1.45rem); line-height: 1.48; }
.lede-narrow { max-width: 610px; color: var(--muted); }

.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid var(--line); background: rgba(247,245,241,.94); backdrop-filter: blur(14px); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; flex: 0 1 375px; text-decoration: none; }
.brand img { width: min(100%, 375px); display: block; }
.desktop-nav { display: flex; align-items: center; gap: clamp(.9rem, 1.8vw, 1.55rem); font-size: .84rem; font-weight: 760; }
.desktop-nav a { text-decoration: none; }
.desktop-nav a:not(.button):hover { color: var(--orange); }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .75rem 1.15rem; border: 2px solid var(--graphite); border-radius: 1px; background: transparent; color: var(--graphite); font-size: .84rem; font-weight: 820; letter-spacing: .01em; line-height: 1.1; text-decoration: none; transition: transform .18s ease, background-color .18s ease, color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { border-color: var(--orange); background: var(--orange); }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.mobile-nav { display: none; }

/* Diagnostic hero */
.workshop-hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 5.7vw, 5.8rem) 3.8rem; border-bottom: 1px solid var(--line); }
.workshop-hero::before { position: absolute; inset: 0; opacity: .23; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to bottom, var(--line) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(to right, transparent 38%, #000 100%); content: ""; pointer-events: none; }
.workshop-hero-grid { position: relative; display: grid; grid-template-columns: minmax(420px,.88fr) minmax(560px,1.12fr); align-items: center; gap: clamp(2.5rem, 5vw, 5.5rem); }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { max-width: 640px; }
.hero-copy h1 span { color: var(--orange); }
.hero-copy .lead { max-width: 590px; }
.expertise { max-width: 560px; display: flex; align-items: flex-start; gap: .75rem; margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--graphite); font-size: .78rem; font-weight: 700; line-height: 1.5; }
.expertise p { margin: 0; }
.expertise p span { color: var(--muted); font-weight: 560; }
.expertise-check { width: 1.35rem; height: 1.35rem; display: inline-grid; flex: 0 0 auto; place-items: center; margin-top: .05rem; border: 1px solid var(--muted); border-radius: 50%; color: var(--orange); }

.diagnostic-stage { position: relative; min-height: 530px; isolation: isolate; }
.diagnostic-browser { position: absolute; z-index: 1; top: 52px; left: 7%; width: 78%; overflow: hidden; border: 1px solid rgba(26,26,29,.35); border-radius: 5px; background: #f1eee8; box-shadow: var(--shadow); }
.browser-chrome { height: 34px; display: flex; align-items: center; gap: 7px; padding-inline: 13px; background: var(--graphite); }
.browser-chrome i { width: 9px; height: 9px; border-radius: 50%; background: #b8b4ae; }
.browser-chrome span { width: 24px; height: 2px; margin-left: auto; background: var(--orange); }
.diagnostic-page { position: relative; height: 285px; overflow: hidden; background: #f2efe9; }
.demo-brand { position: absolute; top: 28px; left: 31px; display: flex; align-items: flex-end; gap: 2px; }
.demo-brand b { width: 12px; height: 16px; display: block; background: var(--graphite); clip-path: polygon(50% 0,100% 100%,0 100%); }
.demo-brand b:nth-child(2) { height: 24px; }
.demo-nav { position: absolute; top: 33px; right: 29px; display: flex; gap: 21px; }
.demo-nav i { width: 35px; height: 2px; background: #55545a; }
.demo-copy { position: absolute; top: 82px; left: 31px; width: 46%; }
.demo-copy strong { display: block; margin-bottom: 1rem; font-size: 1.42rem; line-height: 1.12; }
.demo-copy i { width: 80%; height: 5px; display: block; margin-top: 8px; background: #cbc7c0; }
.demo-copy i:nth-of-type(2) { width: 87%; }
.demo-copy i:nth-of-type(3) { width: 54%; }
.demo-copy button { margin-top: 18px; padding: 8px 17px; border: 0; background: var(--graphite); color: #fff; font-size: .62rem; text-transform: uppercase; }
.demo-image { position: absolute; inset: 72px 0 0 54%; overflow: hidden; background: linear-gradient(145deg,#ded9d0,#f5f2ec); }
.demo-image::after { position: absolute; right: 0; bottom: 0; width: 100%; height: 28%; background: #c7b8a7; content: ""; }
.demo-plant { position: absolute; z-index: 1; left: 23%; bottom: 21%; width: 17px; height: 72px; border-left: 4px solid #586044; transform: rotate(-8deg); }
.demo-plant::before,.demo-plant::after { position: absolute; width: 34px; height: 14px; background: #6f7658; clip-path: polygon(0 50%,100% 0,75% 100%); content: ""; }
.demo-plant::before { top: 12px; left: -30px; transform: rotate(20deg); }
.demo-plant::after { top: 33px; left: -2px; transform: rotate(-20deg); }
.demo-chair { position: absolute; z-index: 1; right: 14%; bottom: 16%; width: 90px; height: 94px; border-radius: 40px 40px 8px 8px; background: #d0c3b4; box-shadow: inset 0 0 0 1px #b6aa9d; }
.demo-chair::after { position: absolute; right: -16px; bottom: -30px; width: 7px; height: 39px; background: #796c5f; box-shadow: -68px 0 #796c5f; content: ""; }
.diagnostic-phone { position: absolute; z-index: 3; top: 195px; right: 2%; width: 138px; height: 250px; padding: 26px 14px 12px; border: 1px solid rgba(26,26,29,.38); border-radius: 12px; background: #f2efe9; box-shadow: 0 18px 38px rgba(26,26,29,.18); }
.phone-speaker { position: absolute; top: 10px; left: 50%; width: 34px; height: 4px; border-radius: 4px; background: #777; transform: translateX(-50%); }
.diagnostic-phone strong { display: block; margin: 17px 0; font-size: .78rem; line-height: 1.15; }
.diagnostic-phone i { width: 100%; height: 5px; display: block; margin-top: 9px; background: #c9c5be; }
.diagnostic-phone i:nth-of-type(2) { width: 78%; }
.checkout-fragment { position: absolute; z-index: 4; right: 12%; bottom: 35px; width: 330px; padding: 1.1rem; border: 1px solid rgba(26,26,29,.25); border-radius: 7px; background: #fbfaf7; box-shadow: 0 16px 34px rgba(26,26,29,.15); }
.checkout-fragment > div { display: flex; justify-content: space-between; padding-bottom: .7rem; border-bottom: 1px solid var(--line); font-size: .78rem; }
.checkout-fragment p { margin: .75rem 0; color: #dc4f00; font-size: .68rem; }
.checkout-fragment p span { margin-right: .35rem; }
.checkout-fragment button { width: 100%; min-height: 38px; border: 0; background: #e2dfda; color: #aaa6a0; font-size: .65rem; }
.diagnostic-note { position: absolute; z-index: 5; left: -6%; bottom: 62px; margin: 0; color: var(--orange); font-family: "Segoe Print", "Bradley Hand", cursive; font-size: .91rem; font-style: italic; line-height: 1.4; transform: rotate(-4deg); }
.diagnostic-note::after { position: absolute; top: -36px; right: -50px; width: 58px; height: 32px; border-top: 1px solid var(--orange); border-right: 1px solid var(--orange); border-radius: 0 100% 0 0; content: ""; transform: rotate(-16deg); }
.rework-status { position: absolute; z-index: 5; right: 0; bottom: -3px; width: 235px; padding: .72rem .9rem; border-radius: 2px; background: var(--graphite); box-shadow: 0 8px 20px rgba(26,26,29,.2); }
.rework-status span { color: var(--orange); font-size: .79rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.rework-status i { height: 8px; display: block; margin-top: .45rem; background: repeating-linear-gradient(120deg,var(--orange) 0 12px,#753716 12px 24px); background-size: 48px 8px; animation: workshop-progress 2.5s linear infinite; }
.inspection-tag { position: absolute; z-index: 6; padding: .35rem .52rem; border: 1px solid var(--orange); background: var(--off-white); color: var(--orange); font-size: .62rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.tag-alignment { top: 0; left: 34%; }
.tag-alignment::after { position: absolute; top: 100%; left: 50%; width: 1px; height: 76px; background: var(--orange); content: ""; }
.tag-mobile { top: 105px; right: -4%; }
.tag-mobile::before { position: absolute; top: 50%; right: 100%; width: 46px; border-top: 1px dashed var(--orange); content: ""; }
.tag-checkout { bottom: 85px; left: 19%; }
.tag-checkout::after { position: absolute; left: 100%; top: 50%; width: 48px; border-top: 1px dashed var(--orange); content: ""; }

/* Services */
.service-workbench { padding-top: clamp(3.8rem, 6vw, 6rem); }
.section-heading-row { display: grid; grid-template-columns: 1fr .85fr; align-items: end; gap: 3rem; margin-bottom: 2rem; }
.section-heading-row h2 { margin-bottom: 0; }
.section-heading-row .lede-narrow { margin-bottom: .35rem; }
.service-workbench-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: .9rem; }
.service-module { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); background: rgba(255,255,255,.32); text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.service-module:hover { border-color: var(--orange); box-shadow: 0 16px 38px rgba(26,26,29,.09); transform: translateY(-5px); }
.module-visual { height: 165px; position: relative; display: block; overflow: hidden; padding: 1.1rem; border-bottom: 1px solid var(--line); background: #eeebe5; }
.module-copy { min-height: 245px; display: flex; flex-direction: column; padding: 1.3rem; }
.module-kicker { margin-bottom: 1.35rem; color: var(--orange); font-size: .65rem; font-weight: 830; letter-spacing: .1em; text-transform: uppercase; }
.module-copy > strong { margin-bottom: .8rem; font-size: 1.28rem; line-height: 1.08; letter-spacing: -.035em; }
.module-copy > span:not(.module-kicker) { color: var(--muted); font-size: .87rem; line-height: 1.48; }
.module-copy > b { margin-top: auto; padding-top: 1.1rem; color: var(--orange); font-size: .74rem; }
.mini-browser,.mini-cart,.mini-editor,.mini-wireframe { position: absolute; inset: 1.1rem; display: block; border: 1px solid #c3beb7; background: #f8f6f2; box-shadow: 0 7px 17px rgba(26,26,29,.08); }
.mini-browser b,.mini-editor b,.mini-wireframe b { height: 18px; display: block; background: var(--graphite); }
.mini-browser b::before,.mini-editor b::before,.mini-wireframe b::before { color: #d0ccc5; content: "●  ●  ●"; font-size: .42rem; letter-spacing: 3px; margin-left: 7px; }
.mini-browser i { width: 62%; height: 5px; display: block; margin: 13px 12px 0; background: #d4d0c9; }
.mini-browser i:nth-of-type(2) { width: 78%; }
.mini-browser i:nth-of-type(3) { width: 45%; }
.mini-browser em { position: absolute; top: 44px; right: 25px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #fff; font-size: 1.4rem; font-style: normal; font-weight: 800; }
.mini-cart { padding: 16px; }
.mini-cart small { display: block; padding-bottom: 11px; border-bottom: 1px solid var(--line); font-weight: 750; }
.mini-cart > i { height: 4px; display: block; margin: 15px 0; background: #d6d2cb; }
.mini-cart > span { display: flex; justify-content: space-between; font-size: .64rem; }
.mini-cart > em { display: block; margin-top: 15px; padding: 7px; background: var(--graphite); color: #fff; font-size: .62rem; font-style: normal; text-align: center; }
.mini-editor span,.mini-wireframe span { height: calc(100% - 18px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; padding: 12px; }
.mini-editor i,.mini-wireframe i { display: block; border: 1px solid #cfcbc4; background: #e4e0da; }
.mini-editor i:first-child { grid-row: span 2; }
.mini-editor em { position: absolute; inset: 31px 14px 13px 10px; border: 1px dashed var(--orange); }
.mini-editor em::before,.mini-editor em::after { position: absolute; width: 8px; height: 8px; border: 1px solid var(--orange); background: #fff; content: ""; }
.mini-editor em::before { top: -5px; left: -5px; }
.mini-editor em::after { right: -5px; bottom: -5px; }
.mini-wireframe span { grid-template-columns: 1fr 1.4fr 1fr; }
.mini-wireframe i { background: linear-gradient(45deg,transparent 49%,#c8c4bd 50%,transparent 51%),linear-gradient(-45deg,transparent 49%,#c8c4bd 50%,transparent 51%); }

/* Reassurance */
.dark-section { color: var(--off-white); background: var(--graphite); }
.dark-section .eyebrow { color: #c0bdb7; }
.reassurance-strip { padding-block: clamp(3rem, 4.5vw, 4.5rem); }
.reassurance-strip-grid { display: grid; grid-template-columns: 1.2fr repeat(3,1fr); align-items: center; }
.reassurance-intro { padding-right: clamp(2rem,4vw,4rem); }
.reassurance-intro h2 { max-width: 340px; margin-bottom: .85rem; font-size: clamp(2rem,3vw,3rem); }
.reassurance-intro > p:last-child { max-width: 370px; margin-bottom: 0; color: var(--body-on-dark); font-size: .89rem; }
.reassurance-benefit { min-height: 170px; display: grid; grid-template-columns: 48px 1fr; gap: 1rem; padding: .6rem 1.5rem; border-left: 1px solid var(--line-dark); }
.reassurance-benefit h3 { margin: .1rem 0 .55rem; font-size: .79rem; letter-spacing: .08em; text-transform: uppercase; }
.reassurance-benefit p { margin: 0; color: var(--body-on-dark); font-size: .83rem; }
.benefit-icon { width: 38px; height: 38px; position: relative; display: block; border: 1px solid var(--orange); }
.benefit-icon::before { position: absolute; inset: 8px; border: 1px dashed var(--orange); content: ""; }
.benefit-icon--scope { border-radius: 50%; }
.benefit-icon--scope::before { border-radius: 50%; }
.benefit-icon--fast { border-radius: 50%; border-left-color: transparent; transform: rotate(-22deg); }

/* Workflow and pricing */
.process-workshop { padding-block: clamp(4.3rem,6vw,6rem); }
.process-pricing-layout { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(300px,.75fr); align-items: start; gap: clamp(2rem,4vw,4.5rem); }
.workflow-panel h2 { max-width: 720px; font-size: clamp(2rem,3vw,3rem); }
.workflow-line { position: relative; display: grid; grid-template-columns: repeat(5,1fr); gap: 0; margin: 2.4rem 0 0; padding: 0; list-style: none; }
.workflow-line::before { position: absolute; z-index: 0; top: 70px; right: 7%; left: 7%; border-top: 1px dashed #aaa7a2; content: ""; }
.workflow-line li { position: relative; z-index: 1; padding-right: 1.15rem; }
.workflow-icon { width: 42px; height: 45px; display: block; margin-bottom: .55rem; color: var(--graphite); }
.workflow-icon svg,.price-tool svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.workflow-line li > b { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 1.15rem; border: 1px solid var(--orange); border-radius: 50%; background: var(--off-white); color: var(--orange); font-size: .7rem; }
.workflow-line h3 { margin-bottom: .55rem; font-size: 1rem; }
.workflow-line p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.pricing-diagnostic { position: relative; margin-top: .3rem; padding: 1.7rem; border: 1px solid var(--line); background: rgba(255,255,255,.35); }
.pricing-diagnostic::before,.pricing-diagnostic::after { position: absolute; width: 28px; height: 28px; content: ""; }
.pricing-diagnostic::before { top: -1px; left: -1px; border-top: 4px solid var(--orange); border-left: 4px solid var(--orange); }
.pricing-diagnostic::after { right: -1px; bottom: -1px; border-right: 4px solid var(--orange); border-bottom: 4px solid var(--orange); }
.pricing-label { display: flex; align-items: center; gap: .7rem; margin: 0 0 1rem; font-size: .67rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.pricing-label::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.price-diagnostic-row { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: .85rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.price-tool { width: 43px; height: 43px; display: grid; place-items: center; padding: 9px; background: var(--orange-soft); color: var(--orange); }
.price-diagnostic-row h3 { margin: 0 0 .3rem; font-size: .9rem; }
.price-diagnostic-row p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.price-diagnostic-row > strong { color: var(--orange); font-size: 2rem; letter-spacing: -.05em; }
.price-diagnostic-row > strong small { display: block; font-size: .5rem; letter-spacing: .08em; text-align: right; text-transform: uppercase; }
.pricing-diagnostic > a { display: inline-block; margin-top: 1rem; color: var(--orange); font-size: .72rem; font-weight: 820; text-decoration: none; }

/* Portfolio */
.portfolio-workshop { position: relative; overflow: hidden; padding-block: clamp(4rem,6vw,6rem); }
.portfolio-workshop::after { position: absolute; inset: 0; opacity: .06; background-image: linear-gradient(to right,#fff 1px,transparent 1px); background-size: 80px 100%; content: ""; pointer-events: none; }
.portfolio-layout { position: relative; z-index: 1; display: grid; grid-template-columns: .55fr 1.25fr 1.25fr; align-items: center; gap: 1.4rem; }
.portfolio-intro h2 { font-size: clamp(2.3rem,3.2vw,3.4rem); }
.portfolio-intro p:last-child { color: var(--body-on-dark); font-size: .83rem; }
.project-evidence { min-width: 0; min-height: 350px; position: relative; display: grid; grid-template-columns: .42fr 1fr; align-items: center; gap: .5rem; padding: 1.3rem; border: 1px solid rgba(255,106,0,.78); }
.project-evidence::before,.project-evidence::after { position: absolute; width: 24px; height: 24px; border-color: var(--orange); content: ""; }
.project-evidence::before { top: -1px; left: -1px; border-top: 4px solid; border-left: 4px solid; }
.project-evidence::after { right: -1px; bottom: -1px; border-right: 4px solid; border-bottom: 4px solid; }
.project-notes { position: relative; z-index: 2; }
.project-notes > span { display: block; margin-bottom: 1.25rem; color: var(--orange); font-size: .78rem; font-weight: 850; letter-spacing: .04em; line-height: 1.1; text-transform: uppercase; }
.project-notes ul { margin: 0 0 1.25rem; padding: 0; color: var(--body-on-dark); font-size: .68rem; list-style: none; }
.project-notes li { margin-top: .45rem; }
.project-notes li::before { color: var(--orange); content: "• "; }
.project-notes a { display: inline-block; padding: .45rem .6rem; border: 1px solid var(--orange); color: var(--orange); font-size: .65rem; font-weight: 800; text-decoration: none; }
.project-screen { min-width: 0; position: relative; z-index: 1; overflow: hidden; border: 1px solid #070708; background: #fff; box-shadow: 0 22px 42px rgba(0,0,0,.35); text-decoration: none; transform: perspective(850px) rotateY(-7deg) rotateZ(-1.5deg); transition: transform .25s ease; }
.project-evidence--ruby .project-screen { transform: perspective(850px) rotateY(7deg) rotateZ(1.5deg); }
.project-evidence:hover .project-screen { transform: none; }
.screen-top { height: 20px; display: flex; align-items: center; gap: 5px; padding-inline: 8px; background: var(--graphite); }
.screen-top i { width: 5px; height: 5px; border-radius: 50%; background: #aaa7a2; }
.screen-top i:first-child { background: var(--orange); }
.project-screen img { width: 100%; aspect-ratio: 16/10; display: block; object-fit: cover; object-position: top; }

/* Proof and CTA */
.proof-workshop { padding-block: clamp(4rem,6vw,6rem); }
.proof-workshop-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(3rem,7vw,8rem); }
.proof-workshop h2 { max-width: 700px; }
.proof-list { margin: 0; padding: 0; border-top: 1px solid var(--graphite); list-style: none; }
.proof-list li { display: grid; grid-template-columns: 1.8rem 1fr; gap: .8rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); font-weight: 720; }
.proof-list li::before { width: 1.15rem; height: 3px; margin-top: .72em; background: var(--orange); content: ""; }
.final-workshop-cta { padding-block: 2.8rem; border-top: 1px solid var(--line); background: var(--paper); }
.final-workshop-grid { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.final-workshop-grid h2 { margin-bottom: .3rem; font-size: clamp(1.8rem,2.8vw,2.7rem); }
.final-workshop-grid p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { color: var(--off-white); background: #111114; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 3rem; padding-block: clamp(3rem,5vw,4.5rem); }
.footer-logo-surface { width: min(100%,360px); padding: .55rem .7rem; background: transparent; }
.footer-brand img { width: 100%; display: block; }
.footer-brand p { max-width: 430px; margin: 1.25rem 0 0; color: var(--body-on-dark); font-size: .86rem; }
.footer-title { margin: 0 0 1rem; color: #aaa7a2; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { display: grid; gap: .6rem; font-size: .84rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; border-top: 1px solid rgba(247,245,241,.2); color: var(--body-on-dark); font-size: .875rem; font-weight: 500; }

@keyframes workshop-progress { to { background-position: 48px 0; } }

@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; position: relative; }
  .mobile-nav summary { min-height: 48px; display: flex; align-items: center; padding: .65rem .85rem; border: 1px solid var(--graphite); font-size: .78rem; font-weight: 800; cursor: pointer; list-style: none; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav[open] nav { position: absolute; top: calc(100% + .65rem); right: 0; width: min(310px,calc(100vw - 2rem)); display: grid; padding: 1rem; border: 1px solid var(--graphite); background: var(--off-white); box-shadow: var(--shadow); }
  .mobile-nav nav a { padding: .72rem; text-decoration: none; }
  .workshop-hero-grid { grid-template-columns: .9fr 1.1fr; gap: 2rem; }
  .service-workbench-grid { grid-template-columns: 1fr 1fr; }
  .reassurance-strip-grid { grid-template-columns: 1fr 1fr; gap: 2rem 0; }
  .reassurance-benefit:nth-child(2) { border-left: 0; }
  .process-pricing-layout { grid-template-columns: 1fr; }
  .portfolio-layout { grid-template-columns: 1fr 1fr; }
  .portfolio-intro { grid-column: 1/-1; }
  .portfolio-intro h2 { max-width: none; }
}

@media (max-width: 820px) {
  .shell { width: min(100% - 2rem,1220px); }
  .workshop-hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 680px; }
  .diagnostic-stage { width: min(100%,680px); min-height: 520px; margin-inline: auto; }
  .section-heading-row { grid-template-columns: 1fr; gap: .8rem; }
  .reassurance-strip-grid { grid-template-columns: 1fr; }
  .reassurance-intro { padding-right: 0; }
  .reassurance-benefit { min-height: 0; padding: 1.2rem 0; border-top: 1px solid var(--line-dark); border-left: 0; }
  .workflow-line { grid-template-columns: 1fr; gap: 0; }
  .workflow-line::before { top: 24px; bottom: 24px; left: 61px; border-top: 0; border-left: 1px dashed #aaa7a2; }
  .workflow-line li { min-height: 125px; display: grid; grid-template-columns: 45px 40px 1fr; grid-template-rows: auto auto; gap: .1rem 1rem; padding: 0; }
  .workflow-icon { grid-row: 1/3; margin: 0; }
  .workflow-line li > b { grid-row: 1/3; margin: 0; }
  .workflow-line h3 { align-self: end; margin: 0; }
  .workflow-line p { align-self: start; }
  .portfolio-layout { grid-template-columns: 1fr; }
  .portfolio-intro { grid-column: auto; }
  .proof-workshop-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 560px) {
  .header-inner { min-height: 74px; gap: 1rem; }
  .brand { flex-basis: 238px; }
  .workshop-hero { padding-block: 3.1rem 2.8rem; }
  h1 { font-size: clamp(2.7rem,13vw,3.45rem); }
  .button-row .button { flex: 1 1 auto; }
  .diagnostic-stage { min-height: 430px; margin-top: .8rem; }
  .diagnostic-browser { top: 42px; left: 0; width: 91%; }
  .diagnostic-page { height: 230px; }
  .demo-nav { gap: 8px; }
  .demo-nav i { width: 20px; }
  .demo-copy { top: 70px; left: 20px; }
  .demo-copy strong { font-size: 1rem; }
  .demo-image { top: 61px; }
  .diagnostic-phone { top: 160px; right: 0; width: 102px; height: 190px; padding: 22px 10px; }
  .checkout-fragment { right: 8%; bottom: 26px; width: 248px; padding: .8rem; }
  .diagnostic-note { display: none; }
  .rework-status { right: 0; bottom: -4px; width: 195px; }
  .inspection-tag { font-size: .52rem; }
  .tag-alignment { left: 25%; }
  .tag-mobile { top: 92px; right: -1%; }
  .tag-checkout { bottom: 70px; left: 0; }
  .service-workbench-grid { grid-template-columns: 1fr; }
  .module-visual { height: 175px; }
  .module-copy { min-height: 220px; }
  .price-diagnostic-row { grid-template-columns: 42px 1fr auto; gap: .65rem; }
  .project-evidence { min-height: 0; grid-template-columns: 1fr; gap: 1.2rem; }
  .project-screen,.project-evidence--ruby .project-screen { transform: none; }
  .project-notes { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
  .project-notes > span { grid-column: 1/-1; margin: 0; }
  .project-notes ul { margin: 0; }
  .project-notes a { align-self: end; justify-self: end; }
  .final-workshop-grid { display: grid; }
  .final-workshop-grid .button { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
