/* Reference-led upper homepage. These tokens deliberately leave later sections unchanged. */
:root {
  --cs-upper-orange: #ff5b14;
  --cs-upper-action: #d33f00;
  --cs-upper-dark: #232625;
  --cs-upper-section-space: clamp(4.5rem, 10.5vw, 10rem);
  --cs-upper-section-space-large: clamp(5rem, 11.5vw, 11rem);
  --cs-upper-section-space-small: clamp(3.5rem, 8vw, 8rem);
  --cs-upper-content-gap: clamp(2rem, 4.5vw, 4.5rem);
}
.site-header { padding-block: 1rem; border-bottom-color: #eeeae5; }
.header-inner { gap: clamp(1rem, 2vw, 2rem); }
.header-inner .site-brand { letter-spacing: -.035em; font-size: 1.15rem; max-width: 14rem; flex-shrink: 0; }
.site-header .brand-todo { display: none; }
.site-header .site-brand img { max-height: 3rem; max-width: 14rem; }
.header-inner nav ul { gap: clamp(.8rem, 1.5vw, 1.5rem); }
.header-inner nav a { font-size: .8rem; white-space: nowrap; }
.header-inner nav a:hover { color: var(--cs-upper-action); }
.header-cta { background: var(--cs-upper-action); border-color: var(--cs-upper-action); border-radius: 3px; min-height: 46px; white-space: nowrap; }
.hero { position: relative; isolation: isolate; grid-template-columns: 1fr 1.12fr; gap: var(--cs-upper-content-gap); padding-block: var(--cs-upper-section-space-small); }
.hero:before { content: ''; position: absolute; inset: 0 calc((min(100vw - 4rem, var(--cs-content-width)) - 100vw) / 2); z-index: -1; background: radial-gradient(ellipse at 77% 48%, #eadbca66, transparent 57%), #fdfcf9; }
.hero-copy { padding: 0; }
.hero .eyebrow { color: var(--cs-upper-action); font-size: .66rem; margin-bottom: 1.6rem; gap: .75rem; }
.hero .eyebrow:before { content: ''; width: 2rem; height: 1px; flex-shrink: 0; background: currentColor; }
.hero h1 { font-size: clamp(2.75rem, 4.3vw, 4.35rem); font-weight: 850; letter-spacing: -.05em; line-height: .98; text-transform: uppercase; max-width: none; margin-bottom: 1.6rem; }
.hero-heading-line { display: block; }
.hero-heading-accent { color: var(--cs-upper-action); }
.hero-subtitle { max-width: 31ch; font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.3; margin-bottom: 1.4rem !important; }
.hero-lead { font-size: calc(.91rem + var(--cs-copy-increment, 0px)); line-height: 1.7; color: #555957; }
.hero-actions { margin-top: 1.9rem; gap: .65rem; }
.hero .button-link, .solution-section .button-link { background: var(--cs-upper-action); border-color: var(--cs-upper-action); border-radius: 3px; padding: .9rem 1.15rem; font-size: calc(.81rem + var(--cs-cta-increment, 0px)); min-height: 48px; }
.hero .button-outline { background: transparent; border-color: #9c9c94; color: #252825; }
.hero-note { font-size: .68rem; color: #5e625e; margin-top: 1.35rem !important; }
.hero-device-study { margin: 0; width: 100%; }
.device-stage { position: relative; aspect-ratio: 1.08; isolation: isolate; }
.device-stage:before { content: ''; position: absolute; inset: 17% -4% -1% 6%; border-radius: 50%; background: radial-gradient(ellipse, #d9c5a05c, transparent 68%); z-index: -1; }
.device-label { position: absolute; font-family: Georgia, serif; font-style: italic; font-size: clamp(1.05rem, 1.8vw, 1.5rem); line-height: 1.2; }
.device-label span { display: block; font-size: 2.6rem; font-weight: 400; }
.device-label-before { top: 5%; left: 8%; color: #74736d; transform: rotate(-12deg); }
.device-label-after { top: 0; right: 7%; color: var(--cs-upper-action); transform: rotate(9deg); }
.device-label-after span { text-align: right; }
.device-before { position: absolute; width: 56%; top: 27%; left: 0; border: 5px solid #b5b4ae; background: #eee; transform: perspective(800px) rotateY(9deg) rotate(-7deg); box-shadow: 0 16px 25px #2223; overflow: hidden; opacity: .7; filter: grayscale(1); }
.device-browser-bar { display: flex; gap: 4px; padding: 7px; background: #deded9; }
.device-browser-bar i { width: 4px; height: 4px; background: #aaa; border-radius: 50%; }
.device-laptop { position: absolute; width: 77%; right: -1%; top: 18%; transform: perspective(1000px) rotateY(-8deg) rotate(3deg); }
.device-screen { background: #fff; border: 8px solid #202323; border-bottom-width: 16px; border-radius: 8px 8px 3px 3px; overflow: hidden; box-shadow: 8px 16px 22px #2223; }
.device-screen > img, .device-before > img { width: 100%; display: block; aspect-ratio: 1.35; object-fit: cover; object-position: top; }
.device-base { height: 16px; margin-inline: -6%; background: linear-gradient(#cacccb, #757b7a 60%, #2b3231); border-radius: 2px 2px 65% 65%; position: relative; box-shadow: 0 15px 18px #2222; }
.device-base:before { content: ''; position: absolute; width: 19%; height: 5px; top: 0; left: 40%; background: #737979; border-radius: 0 0 6px 6px; }
.device-phone { position: absolute; bottom: 7%; left: 14%; width: 24%; background: #fff; border: 5px solid #242727; border-radius: 18px; overflow: hidden; box-shadow: 5px 15px 20px #2223; transform: rotate(-5deg); }
.device-speaker { position: absolute; z-index: 2; top: 0; left: 31%; width: 38%; height: 6px; background: #242727; border-radius: 0 0 7px 7px; }
.device-phone > img { display: block; width: 100%; aspect-ratio: .48; object-fit: cover; object-position: top; }
.device-concept { padding: 5%; background: #fff; color: #202a2a; }
.concept-topbar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 7%; }
.concept-mark { width: 12%; aspect-ratio: 2; background: linear-gradient(130deg, transparent 23%, #bd6c30 24% 33%, transparent 34% 47%, #bd6c30 48% 57%, transparent 58%); }
.concept-menu { color: #737871; font-size: 7px; }
.concept-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 5%; align-items: center; }
.concept-copy strong { display: block; font-weight: 750; font-size: clamp(.7rem, 1.75vw, 1.6rem); line-height: 1.06; letter-spacing: -.045em; }
.concept-kicker { display: block; font-size: 5px; letter-spacing: .1em; margin-bottom: 10%; color: #9d5b2f; }
.concept-copy p { font-size: clamp(.3rem, .55vw, .53rem); line-height: 1.45; margin-block: 9% !important; }
.concept-feature img { width: 100%; aspect-ratio: .82; object-fit: cover; }
.concept-button { display: block; background: #ac5a23; color: #fff; padding: 2% 10%; width: fit-content; font-size: 11px; }
.concept-services { display: flex; justify-content: space-around; padding-top: 7%; gap: 8%; }
.concept-services span { width: 22%; text-align: center; font-size: 14px; }
.concept-services i { display: block; height: 3px; width: 80%; margin: 4px auto; background: #dce0da; }
.device-concept-old .concept-topbar { background: #d0d1cd; margin-bottom: 5%; padding: 4%; }
.device-concept-old .concept-feature { grid-template-columns: 1fr; }
.device-concept-old .concept-copy strong { font-family: Georgia, serif; font-size: .9rem; }
.device-concept-old .concept-copy p, .device-concept-old .concept-button, .device-concept-old .concept-kicker { display: none; }
.device-concept-old .concept-feature img { aspect-ratio: 2.7; }
.device-phone .device-concept { padding: 17% 9% 12%; }
.device-phone .concept-feature { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 12px; }
.device-phone .concept-copy strong { font-size: clamp(.7rem, 1.1vw, 1rem); }
.device-phone .concept-copy p { font-size: 6px; }
.device-phone .concept-feature img { aspect-ratio: 1.3; }
.device-phone .concept-services { padding-top: 15%; }
.device-phone .concept-kicker { font-size: 4px; }
.hero-device-study figcaption { text-align: right; color: #6d706a; font-size: .65rem; margin-top: .7rem; }
.problems-section { position: relative; isolation: isolate; background: var(--cs-upper-action); padding-block: var(--cs-upper-section-space); }
.problems-section:before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .22; background: repeating-linear-gradient(145deg, transparent 0 80px, #ffcc9b33 81px 84px, transparent 85px 145px), radial-gradient(ellipse at top left, #ffe0bd, transparent 60%); }
.problems-section > .container > .eyebrow { text-align: center; color: #fff; display: flex; justify-content: center; gap: .8rem; align-items: center; margin-bottom: 1.3rem; }
.problems-section > .container > .eyebrow:before { content: ''; width: 2rem; height: 1px; background: #fff; }
.home-page .problems-section h2 { text-align: center; color: #fff; text-transform: uppercase; font-weight: 850; font-size: clamp(2.2rem, 3.5vw, 3.6rem); line-height: 1.05; }
.problems-intro { max-width: 45rem; margin: 1.25rem auto 0; color: #fff; text-align: center; font-size: calc(.96rem + var(--cs-copy-increment, 0px)); line-height: 1.65; }
.problems-section .question-grid { gap: 1.2rem; margin-top: var(--cs-upper-content-gap); }
.problems-section .question-card { background: #fffdf9; border-radius: 5px; padding: 1.8rem 2rem 2.4rem; min-height: 18rem; box-shadow: 0 8px 24px #8b330013; border-color: #fff8; }
.problems-section .card-number { display: block; color: #f5c9b4; font-size: 4.2rem; line-height: .9; letter-spacing: -.075em; font-weight: 850; }
.problems-section .question-card h3 { font-size: 1.3rem; line-height: 1.23; margin-block: .8rem .75rem; font-weight: 700; max-width: 24ch; letter-spacing: -.025em; }
.problems-section .question-card p { font-size: calc(.88rem + var(--cs-copy-increment, 0px)); line-height: 1.6; color: #626660; max-width: 32ch; margin-bottom: 0; }
.problems-section .question-symbol { right: 1.5rem; bottom: 1rem; color: var(--cs-upper-action); }
.solution-section { background: var(--cs-upper-dark); position: relative; isolation: isolate; padding-block: var(--cs-upper-section-space-large); }
.solution-section:before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(145deg, transparent 0 140px, #ffffff02 141px 145px, transparent 146px 240px); z-index: -1; }
.solution-inner { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--cs-upper-content-gap); align-items: center; }
.home-page .solution-inner h2 { position: relative; font-size: clamp(2.8rem, 5.4vw, 5.5rem); font-weight: 850; letter-spacing: -.05em; line-height: 1; max-width: none; }
.solution-heading-line { display: block; }
.solution-inner h2:before { content: ''; display: block; width: 3rem; height: 2px; background: var(--cs-upper-orange); margin-bottom: 2rem; }
.solution-section .accent-on-dark { color: var(--cs-upper-orange); }
.solution-inner .section-copy { margin: 0; font-size: calc(1rem + var(--cs-copy-increment, 0px)); line-height: 1.7; color: #f1f0eb; }
.solution-inner .section-action { margin-top: 1.7rem; }
@media (max-width: 68rem) { .site-header { padding-block: .85rem; }.header-inner nav a { min-height: 48px; }.hero { grid-template-columns: 1fr 1fr; gap: 2rem; }.hero-actions .button-link { width: 100%; }.problems-section .question-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 48rem) {
 .hero { grid-template-columns: 1fr; gap: 3rem; }.hero:before { inset-inline: -1.25rem; }.hero h1 { font-size: clamp(2rem, 8.6vw, 4rem); }.hero .eyebrow { font-size: .59rem; }.hero-subtitle { font-size: 1.2rem; }.hero-note { font-size: .7rem; }.hero-visual { max-width: 38rem; margin-inline: auto; }
 .device-stage { aspect-ratio: 1.08; }.device-laptop { right: 0; }.device-screen { border-width: 5px; border-bottom-width: 10px; }.device-phone { border-width: 4px; border-radius: 14px; }.device-base { height: 12px; }.concept-copy strong { font-size: clamp(.8rem, 3.4vw, 1.5rem); }.concept-copy p { font-size: clamp(.36rem, 1.3vw, .6rem); }.device-phone .concept-copy strong { font-size: clamp(.63rem, 2.2vw, 1rem); }.hero-device-study figcaption { text-align: center; }
 .solution-inner { grid-template-columns: 1fr; gap: 2.5rem; }.home-page .solution-inner h2 { font-size: clamp(2.7rem, 10vw, 4.5rem); }.solution-inner .section-copy { font-size: calc(.96rem + var(--cs-copy-increment, 0px)); }
 .problems-section .question-card { min-height: 0; }.problems-section .question-grid { grid-template-columns: 1fr; }.home-page .problems-section h2 { font-size: clamp(2rem, 7.5vw, 3rem); }.problems-intro { font-size: calc(.9rem + var(--cs-copy-increment, 0px)); }
}
@media (min-width: 37.5rem) and (max-width: 48rem) { .problems-section .question-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .hero .button-link, .solution-section .button-link { transition: none; transform: none; } }

/* Hero only: retain the expressive before/after study, using the actual reference views. */
#webdesign .hero-device-study--stein-halm .device-stage { aspect-ratio: 1.05; }
#webdesign .hero-device-study--stein-halm .device-before { top: 14%; left: 1%; width: 64%; opacity: .62; transform: perspective(800px) rotateY(9deg) rotate(-9deg); }
#webdesign .hero-device-study--stein-halm .device-label-before { top: 0; left: 4%; }
#webdesign .hero-device-study--stein-halm .device-label-after { top: 5%; right: 0; }
#webdesign .hero-device-study--stein-halm .device-laptop { width: 97%; right: -3%; top: 28%; z-index: 1; transform: perspective(1100px) rotateY(-7deg) rotate(3deg); }
#webdesign .hero-device-study--stein-halm .device-screen { border-width: 6px; border-bottom-width: 12px; box-shadow: 10px 22px 28px #2224; }
#webdesign .hero-device-study--stein-halm .device-screen > img { aspect-ratio: 16 / 9; object-fit: contain; }
#webdesign .hero-device-study--stein-halm .device-phone { left: auto; right: -1%; bottom: 0; width: 27%; z-index: 2; transform: rotate(-5deg); background: #26382c; box-shadow: 7px 18px 25px #2225; }
#webdesign .hero-device-study--stein-halm .device-phone > img { aspect-ratio: 39 / 76; object-fit: contain; }
#webdesign .hero-device-study--stein-halm .device-speaker { display: none; }
@media (max-width: 48rem) {
 #webdesign .hero-device-study--stein-halm .device-stage { aspect-ratio: .9; }
 #webdesign .hero-device-study--stein-halm .device-before { top: 13%; left: 4%; width: 70%; border-width: 3px; }
 #webdesign .hero-device-study--stein-halm .device-label-before { top: 0; left: 7%; font-size: 1.15rem; }
 #webdesign .hero-device-study--stein-halm .device-label-after { top: 15%; right: 2%; font-size: 1.25rem; }
 #webdesign .hero-device-study--stein-halm .device-label span { font-size: 2.1rem; }
 #webdesign .hero-device-study--stein-halm .device-laptop { top: 33%; right: 0; width: 98%; transform: perspective(900px) rotateY(-3deg) rotate(2deg); }
 #webdesign .hero-device-study--stein-halm .device-screen { border-width: 4px; border-bottom-width: 7px; }
 #webdesign .hero-device-study--stein-halm .device-phone { right: 1%; bottom: 0; width: 29%; border-width: 3px; border-radius: 12px; transform: rotate(-4deg); }
}

/* Final refinement is confined to the right-hand hero study. */
#webdesign .hero-device-study--stein-halm .device-before { top: 0; left: 0; width: 72%; opacity: .92; filter: saturate(.55); border-width: 4px; border-color: #93988b; }
#webdesign .hero-device-study--stein-halm .device-label-before { top: -16%; left: 3%; }
#webdesign .hero-device-study--stein-halm .device-label-after { top: 7%; right: 0; }
#webdesign .hero-device-study--stein-halm .legacy-site { font-family: Arial, Helvetica, sans-serif; font-size: 8px; line-height: 1.3; color: #363c2d; background: #eeeee2; padding: 7px; }
#webdesign .hero-device-study--stein-halm .legacy-masthead { background: #65734a; border: 1px solid #465534; color: #fff; padding: 7px 10px; }
#webdesign .hero-device-study--stein-halm .legacy-masthead strong { display: block; font-family: Georgia, serif; font-size: 15px; letter-spacing: 0; }
#webdesign .hero-device-study--stein-halm .legacy-masthead small { font-size: 8px; display: block; margin-top: 2px; }
#webdesign .hero-device-study--stein-halm .legacy-layout { display: grid; grid-template-columns: 29% 1fr; gap: 8px; margin-top: 6px; }
#webdesign .hero-device-study--stein-halm .legacy-navigation { align-self: start; border: 1px solid #a6ad95; background: #d5d9c7; }
#webdesign .hero-device-study--stein-halm .legacy-navigation span { display: block; padding: 4px 5px; border-bottom: 1px solid #acb49b; color: #354526; font-size: 9px; }
#webdesign .hero-device-study--stein-halm .legacy-navigation span:first-child { background: #7b885f; color: #fff; font-weight: bold; }
#webdesign .hero-device-study--stein-halm .legacy-navigation span:last-child { border-bottom: 0; }
#webdesign .hero-device-study--stein-halm .legacy-content { padding: 5px 7px; border: 1px solid #b7bcab; background: #fffef3; }
#webdesign .hero-device-study--stein-halm .legacy-content > strong { display: block; font-size: 11px; font-weight: bold; line-height: 1.15; margin-bottom: 6px; }
#webdesign .hero-device-study--stein-halm .legacy-content img { width: 100%; height: auto; display: block; border: 2px solid #c5c8b8; }
#webdesign .hero-device-study--stein-halm .legacy-content p { font-size: 8px; margin: 6px 0 !important; line-height: 1.35; }
#webdesign .hero-device-study--stein-halm .legacy-content > span { color: #415c31; text-decoration: underline; font-size: 8px; }
#webdesign .hero-device-study--stein-halm .legacy-footer { padding-top: 5px; border-top: 1px solid #b6bba5; margin-top: 5px; text-align: center; font-size: 7px; color: #636b55; }
@media (min-width: 75rem) {
 #webdesign .hero-device-study--stein-halm .device-laptop { width: 108%; top: 30%; }
 #webdesign .hero-device-study--stein-halm .device-phone { width: 30%; right: -2%; }
}
@media (max-width: 48rem) {
 #webdesign .hero-device-study--stein-halm .device-before { top: 0; left: 3%; width: 82%; border-width: 3px; transform: perspective(800px) rotateY(3deg) rotate(-7deg); }
 #webdesign .hero-device-study--stein-halm .device-label-before { top: -2.25rem; left: 6%; }
 #webdesign .hero-device-study--stein-halm .device-label-after { top: 19%; right: 0; }
 #webdesign .hero-device-study--stein-halm .device-laptop { top: 40%; }
 #webdesign .hero-device-study--stein-halm .device-phone { width: 27%; right: 1%; bottom: -4%; }
 #webdesign .hero-device-study--stein-halm figcaption { margin-top: 2.2rem; }
 #webdesign .hero-device-study--stein-halm .legacy-site { padding: 4px; }
 #webdesign .hero-device-study--stein-halm .legacy-masthead { padding: 5px 6px; }
 #webdesign .hero-device-study--stein-halm .legacy-masthead strong { font-size: 12px; }
 #webdesign .hero-device-study--stein-halm .legacy-layout { gap: 4px; margin-top: 4px; }
 #webdesign .hero-device-study--stein-halm .legacy-navigation span { font-size: 8px; padding: 3px; }
 #webdesign .hero-device-study--stein-halm .legacy-content { padding: 4px; }
 #webdesign .hero-device-study--stein-halm .legacy-content > strong { font-size: 9px; margin-bottom: 4px; }
}

/* Problem cards: content remains static; fine-pointer hover changes colour only. */
.problems-section .question-card .card-number { color: #f5c9b4; }
@media (hover: hover) and (pointer: fine) {
 .problems-section .question-card { transition: background-color 210ms ease-out, border-color 210ms ease-out; }
 .problems-section .question-card h3,
 .problems-section .question-card p,
 .problems-section .question-card .card-number { transition: color 210ms ease-out; }
 .problems-section .question-card:hover { background-color: #232625; border-color: #232625; }
 .problems-section .question-card:hover h3 { color: #fffdf9; }
 .problems-section .question-card:hover p { color: #eeeae3; }
 .problems-section .question-card:hover .card-number { color: #ff8d54; }
}
@media (prefers-reduced-motion: reduce) {
 .problems-section .question-card,
 .problems-section .question-card h3,
 .problems-section .question-card p,
 .problems-section .question-card .card-number { transition: none; }
}

.solution-section .button-link { background-color: var(--cs-upper-action); }

/* Hero atmosphere only: two large feathered washes on the existing background plane. */
#webdesign.hero::before {
 background:
  radial-gradient(ellipse 31% 8% at 82% 13%, #ff5b140f 8%, #ff5b1408 43%, transparent 78%),
  radial-gradient(ellipse 18% 44% at 102% 64%, #ff5b140d 5%, #ff5b1407 44%, transparent 82%),
  radial-gradient(ellipse at 77% 48%, #eadbca66, transparent 57%), #fdfcf9;
}
@media (max-width: 48rem) {
 /* One softer wash beside the stacked devices; no decoration behind the main copy. */
 #webdesign.hero::before {
  background:
   radial-gradient(ellipse 42% 20% at 104% 79%, #ff5b1408 10%, transparent 80%),
   radial-gradient(ellipse at 77% 48%, #eadbca66, transparent 57%), #fdfcf9;
 }
}

/* Reuse the feathered washes from .trust-section::before in middle.css.
   Position them only on the device side; the earlier light layer stays intact. */
#webdesign.hero::after {
 content: ''; position: absolute; z-index: -1; pointer-events: none;
 top: 0; bottom: 0; left: 44%;
 right: calc((min(100vw - 4rem, var(--cs-content-width)) - 100vw) / 2);
 background:
  radial-gradient(ellipse 43% 3.5% at 60% 16%, #e8b78229 12%, #edc4991c 47%, transparent 75%),
  radial-gradient(ellipse 37% 1.8% at 65% 20%, #efc18f24 10%, #eac09b14 50%, transparent 76%),
  radial-gradient(ellipse 47% 5% at 76% 46%, #f0d2b23d 12%, #f1dac333 42%, transparent 75%),
  radial-gradient(ellipse 39% 2.2% at 93% 52%, #e9b68024 8%, #edc7a21c 45%, transparent 76%),
  radial-gradient(ellipse 32% 7% at 89% 72%, #ead4bc40 5%, #f0deca29 46%, transparent 77%),
  radial-gradient(ellipse 25% 2% at 64% 85%, #edc9a329, transparent 76%);
 mask-image: linear-gradient(90deg, transparent 12%, #000 42%, #000 78%, transparent);
}
@media (max-width: 68rem) {
 #webdesign.hero::after { opacity: .65; }
}
@media (max-width: 48rem) {
 #webdesign.hero::after { top: 48%; left: 12%; right: -1.25rem; opacity: .4; }
}
@media (max-width: 37.5rem) {
 #webdesign.hero::after { top: 58%; left: 18%; opacity: .25; }
}
