/* Service pages: each page has its own composition, sharing type, color, and buttons.
   Training: photo bleeds off the page edge, steps on a horizontal track.
   Design: light hero, specimen tiles, outlined numerals.
   Development: grid-lined dark hero, window frame, spec list, step rail.
   Consulting: mirrored hero, problem-to-fix ledger, step cards. */

.svc-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }

.svc-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end; margin-bottom: 60px; }
.svc-intro h2 { margin: 0; }
.svc-intro p { margin: 0; color: #4b5762; font-size: 1.06rem; }

.svc-action { display: flex; justify-content: center; margin-top: 52px; }
.svc-action .button { min-height: 58px; padding: 17px 36px; font-size: 1.05rem; margin: 0; }

/* ---------- Training ---------- */
.hero-bleed { position: relative; overflow: hidden; background: #19242e; color: #fff; }
.hero-bleed-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 540px; }
.hero-bleed h1 { margin: 0; font-size: clamp(3.7rem, 6vw, 6.5rem); }
.hero-bleed h1 em { color: var(--gold); }
.hero-bleed-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 52%; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); background: #2b3947; }
.hero-bleed-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 36, 46, .55), rgba(25, 36, 46, 0) 45%); }

.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.track li { counter-increment: step; position: relative; padding-right: 32px; }
.track li::before { content: counter(step); position: relative; z-index: 1; display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 26px; border-radius: 50%; background: var(--ink); color: var(--gold); font-family: "Tungsten Display", Arial, sans-serif; font-size: 1.35rem; font-weight: 600; }
.track li::after { content: ""; position: absolute; top: 26px; left: 54px; right: 0; height: 2px; background: #cdc6b3; }
.track li:last-child::after { display: none; }
.track h3 { margin: 0 0 8px; }
.track p { margin: 0; color: #4b5762; max-width: 30ch; }

/* ---------- Design ---------- */
.hero-paper { overflow: hidden; background: var(--cream); color: var(--ink); padding: 96px 0 118px; }
.hero-paper-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 90px; align-items: center; }
.hero-paper h1 { margin: 0; font-size: clamp(3.7rem, 6.4vw, 7rem); }
.hero-paper h1 em { color: #96671a; }
.swatches { display: flex; width: min(340px, 100%); height: 14px; margin-top: 46px; }
.swatches i { flex: 1; }
.swatches i:nth-child(1) { background: #111820; }
.swatches i:nth-child(2) { background: #46525e; }
.swatches i:nth-child(3) { background: #b98432; }
.swatches i:nth-child(4) { background: #e5b45d; }
.swatches i:nth-child(5) { background: #fff; box-shadow: inset 0 0 0 1px #d7dcd9; }
.hero-paper-art { position: relative; aspect-ratio: 4 / 3; }
.hero-paper-art::before { content: ""; position: absolute; inset: 30px -30px -30px 30px; background: var(--gold); border-radius: 4px; }
.hero-paper-frame { position: absolute; inset: 0; overflow: hidden; border-radius: 4px; background: #d9d4c6; }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.bento-tile { display: flex; flex-direction: column; min-height: 350px; padding: 30px; border-radius: 10px; overflow: hidden; }
.bento-tile h3 { margin: 0 0 8px; }
.bento-tile p { margin: 0; max-width: 44ch; color: #4b5762; }
.bento-a { grid-column: span 7; background: var(--ink); color: #fff; }
.bento-a p { color: #c5ced5; }
.bento-b { grid-column: span 5; background: var(--cream); }
.bento-c { grid-column: span 5; background: #f1e1bf; }
.bento-c p { color: #4a4433; }
.bento-d { grid-column: span 7; background: #fff; border: 1px solid #d7dcd9; }
.specimen { flex: 1; display: flex; align-items: center; gap: 28px; margin-bottom: 28px; }

.spec-type { font-family: "Tungsten Display", Arial, sans-serif; font-weight: 700; font-size: clamp(6rem, 11vw, 10rem); line-height: .8; letter-spacing: -.04em; color: var(--gold); }
.spec-dots { display: flex; gap: 10px; }
.spec-dots i { width: 34px; height: 34px; border-radius: 50%; }
.spec-dots i:nth-child(1) { background: #e5b45d; }
.spec-dots i:nth-child(2) { background: #b98432; }
.spec-dots i:nth-child(3) { background: #46525e; }
.spec-dots i:nth-child(4) { background: #f5f3ed; }

.spec-wire { width: 100%; max-width: 330px; padding: 12px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; display: grid; gap: 10px; }
.spec-wire i { display: block; border-radius: 3px; background: #d5d0c2; }
.spec-wire .w-nav { height: 10px; width: 60%; background: var(--ink); }
.spec-wire .w-hero { height: 62px; background: #e5b45d; }
.spec-wire .w-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.spec-wire .w-cols i { height: 34px; }

.spec-bars { display: flex; align-items: flex-end; gap: 14px; height: 150px; width: 100%; max-width: 300px; border-bottom: 2px solid var(--ink); }
.spec-bars i { flex: 1; background: var(--ink); border-radius: 3px 3px 0 0; }
.spec-bars i:nth-child(1) { height: 34%; }
.spec-bars i:nth-child(2) { height: 52%; }
.spec-bars i:nth-child(3) { height: 44%; }
.spec-bars i:nth-child(4) { height: 72%; }
.spec-bars i:nth-child(5) { height: 96%; background: #96671a; }

.spec-files { display: flex; gap: 18px; }
.spec-files span { position: relative; display: flex; align-items: flex-end; width: 92px; height: 116px; padding: 12px; border: 2px solid var(--ink); border-radius: 6px; font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--ink); background: linear-gradient(225deg, #e5b45d 0 20px, transparent 20px); }

.numerals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.numerals li { counter-increment: step; padding-top: 22px; border-top: 2px solid var(--ink); }
.numerals li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 18px; font-family: "Tungsten Display", Arial, sans-serif; font-weight: 700; font-size: clamp(4rem, 6vw, 5.6rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px #96671a; }
.numerals h3 { margin: 0 0 8px; }
.numerals p { margin: 0; color: #4b5762; }

/* ---------- Development ---------- */
.hero-lines { padding: 96px 0; color: #fff; background-color: #111820; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 56px 56px; }
.hero-lines-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 80px; align-items: center; }
.hero-lines h1 { margin: 0; font-size: clamp(3.7rem, 6vw, 6.5rem); }
.hero-lines h1 em { color: var(--gold); }
.window { overflow: hidden; border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; background: #0c1218; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.window-bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; background: #1c2630; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #4a5662; }
.window-bar i:first-child { background: var(--gold); }
.window-body { position: relative; aspect-ratio: 4 / 3; }

.spec-list { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid rgba(255, 255, 255, .18); }
.spec-list li { counter-increment: step; display: grid; grid-template-columns: 110px 1fr 1.3fr; gap: 32px; align-items: baseline; padding: 32px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.spec-list li::before { content: counter(step, decimal-leading-zero) " /"; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: .95rem; color: var(--gold); }
.spec-list h3 { margin: 0; font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.spec-list p { margin: 0; color: #c5ced5; font-size: 1.04rem; }

.rail { list-style: none; margin: 0 0 0 7px; padding: 0; counter-reset: step; border-left: 2px solid #cdb98d; }
.rail li { counter-increment: step; position: relative; padding: 0 0 36px 36px; }
.rail li:last-child { padding-bottom: 0; }
.rail li::before { content: ""; position: absolute; left: -9px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #96671a; box-shadow: 0 0 0 6px var(--cream); }
.rail li::after { content: "step " counter(step, decimal-leading-zero); display: block; order: -1; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: .82rem; letter-spacing: .04em; color: #7a5516; }
.rail li { display: flex; flex-direction: column; }
.rail h3 { margin: 6px 0 8px; }
.rail p { margin: 0; color: #4b5762; max-width: 50ch; }

/* ---------- Consulting ---------- */
.hero-mirror { padding: 96px 0; background: #19242e; color: #fff; }
.hero-mirror-grid { display: grid; grid-template-columns: .85fr 1fr; gap: 90px; align-items: center; }
.hero-mirror h1 { margin: 0; font-size: clamp(3.4rem, 5.6vw, 6.2rem); }
.hero-mirror h1 em { color: var(--gold); }
.hero-mirror-art { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 10px 10px 180px 10px; background: #2b3947; }

.ledger { border-top: 2px solid var(--ink); }
.ledger-head, .ledger-row { display: grid; grid-template-columns: 1fr 70px 1fr; align-items: center; }
.ledger-head { padding: 14px 0; border-bottom: 1px solid #d7dcd9; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #5a6672; }
.ledger-head span:last-child { grid-column: 3; }
.ledger-row { padding: 36px 0; border-bottom: 1px solid #d7dcd9; }
.ledger-problem { margin: 0; font-family: "Tungsten Display", Arial, sans-serif; font-weight: 600; font-size: clamp(1.6rem, 2.5vw, 2.25rem); line-height: 1.12; letter-spacing: -.02em; color: var(--ink); max-width: 20ch; }
.ledger-link { justify-self: center; width: 40px; height: 2px; background: #b98432; }
.ledger-fix h3 { margin: 0 0 6px; }
.ledger-fix p { margin: 0; color: #4b5762; max-width: 44ch; }

.quad { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; counter-reset: step; }
.quad li { counter-increment: step; padding: 26px; border-radius: 10px; background: #fff; border: 1px solid #dedad0; }
.quad li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 30px; border-radius: 8px; background: var(--ink); color: var(--gold); font-family: "Tungsten Display", Arial, sans-serif; font-size: 1.15rem; font-weight: 600; }
.quad h3 { margin: 0 0 8px; }
.quad p { margin: 0; color: #4b5762; }

/* ---------- Responsive ---------- */
@media (max-width: 1050px) {
    .svc-intro { gap: 40px; }
    .hero-paper-grid, .hero-lines-grid, .hero-mirror-grid { gap: 50px; }
    .numerals, .track { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .track li:nth-child(2)::after { display: none; }
    .bento-a, .bento-b, .bento-c, .bento-d { grid-column: span 6; }
    .bento-tile { min-height: 320px; }
    .spec-list li { grid-template-columns: 70px 1fr 1.3fr; gap: 22px; }
}

@media (max-width: 760px) {
    .svc-intro { grid-template-columns: 1fr; gap: 18px; margin-bottom: 40px; }
    .svc-action { margin-top: 40px; }
    .svc-action .button { width: 100%; }

    .hero-bleed-grid { grid-template-columns: 1fr; min-height: 0; padding: 60px 0 44px; }
    .hero-bleed-photo { position: relative; width: 100%; height: 300px; clip-path: none; }
    .hero-bleed-photo::after { display: none; }

    .track { grid-template-columns: 1fr; row-gap: 0; }
    .track li { display: grid; grid-template-columns: 54px 1fr; column-gap: 18px; padding: 0 0 30px; }
    .track li::before { grid-row: span 2; margin: 0; }
    .track li::after, .track li:nth-child(2)::after { display: block; top: 54px; bottom: 0; left: 26px; right: auto; width: 2px; height: auto; }
    .track li:last-child { padding-bottom: 0; }
    .track li:last-child::after { display: none; }
    .track h3 { align-self: end; }
    .track p { grid-column: 2; max-width: none; }

    .hero-paper { padding: 60px 0 84px; }
    .hero-paper-grid, .hero-lines-grid, .hero-mirror-grid { grid-template-columns: 1fr; gap: 40px; }
    .swatches { margin-top: 30px; }
    .hero-paper-art::before { inset: 14px -10px -14px 14px; }

    .bento { grid-template-columns: 1fr; }
    .bento-a, .bento-b, .bento-c, .bento-d { grid-column: auto; }
    .bento-tile { min-height: 0; padding: 24px; }
    .specimen { min-height: 150px; }
    .numerals { grid-template-columns: 1fr; row-gap: 30px; }
    .numerals li::before { font-size: 3.6rem; margin-bottom: 10px; }

    .hero-lines, .hero-mirror { padding: 60px 0; }
    .spec-list li { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }

    .hero-mirror-grid > div:first-child { order: 2; }
    .hero-mirror-art { aspect-ratio: 4 / 3; border-radius: 10px 10px 90px 10px; }
    .ledger-head { display: none; }
    .ledger-row { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
    .ledger-problem { max-width: none; }
    .ledger-link { display: none; }
    .ledger-fix { padding-left: 16px; border-left: 2px solid #b98432; }
    .quad { grid-template-columns: 1fr; }
    .quad li::before { margin-bottom: 18px; }
}

/* ---------- Site-wide: the light motif ---------- */
::selection { background: #e5b45d; color: #111820; }

/* The gold line of each main heading warms up like a filament when the page loads. */
@keyframes filament-warm {
    0% { color: #6b4c1c; text-shadow: none; }
    60% { color: #f3c876; text-shadow: 0 0 34px rgba(229, 180, 93, .55); }
    100% { color: var(--gold); text-shadow: 0 0 22px rgba(229, 180, 93, .2); }
}
@media (prefers-reduced-motion: no-preference) {
    .home-hero h1 em, .hero-bleed h1 em, .hero-lines h1 em, .hero-mirror h1 em, .contact-hero h1 em { animation: filament-warm 1.8s ease-out .2s both; }
}

/* Soft light in the corner of the plain page headers. */
.support-hero, .contact-hero { position: relative; overflow: hidden; }
.support-hero::before, .contact-hero::before { content: ""; position: absolute; right: -180px; top: -280px; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(229, 180, 93, .17), rgba(229, 180, 93, 0) 66%); pointer-events: none; }
.support-hero .shell, .contact-hero .shell { position: relative; }

/* Page not found: large outlined numerals behind the heading. */
.page-not-found-page .support-hero { padding: 110px 0 100px; }
.page-not-found-page .support-hero::after { content: "404"; position: absolute; right: 4%; top: 50%; transform: translateY(-50%); font-family: "Tungsten Display", Arial, sans-serif; font-weight: 700; font-size: clamp(9rem, 24vw, 22rem); line-height: .8; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 2px rgba(229, 180, 93, .4); pointer-events: none; }

/* Home: each service section borrows the frame of its own page. */
.showcase-art.art-angle { clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%); border-radius: 0; }
.showcase-art.art-offset { border-radius: 4px; box-shadow: 24px 24px 0 var(--gold); margin: 0 24px 24px 0; }
.showcase-art.art-window::before { content: ""; position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 38px; border-bottom: 1px solid rgba(255, 255, 255, .12); background: radial-gradient(circle at 20px 50%, #e5b45d 5.5px, transparent 6px), radial-gradient(circle at 40px 50%, #4a5662 5.5px, transparent 6px), radial-gradient(circle at 60px 50%, #4a5662 5.5px, transparent 6px), #1c2630; }
.showcase-art.art-window { border: 1px solid #1c2630; box-shadow: 0 26px 60px rgba(16, 25, 33, .22); }
.showcase-art.art-round { border-radius: 9px 9px 9px 180px; }

/* Home: process steps on a filament that lights from left to right as it scrolls into view. */
.filament { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.filament::before, .filament::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; }
.filament::before { background: rgba(255, 255, 255, .14); }
.filament::after { background: var(--gold); box-shadow: 0 0 14px rgba(229, 180, 93, .8); transform-origin: left top; transition: transform 2.2s ease-out; }
.filament li { counter-increment: step; position: relative; display: flex; flex-direction: column; padding: 48px 32px 0 0; }
.filament li::before { content: ""; position: absolute; z-index: 1; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px #1a242e, 0 0 22px rgba(229, 180, 93, .9); transition: background .5s, box-shadow .5s; }
.filament li:nth-child(2)::before { transition-delay: .55s; }
.filament li:nth-child(3)::before { transition-delay: 1.1s; }
.filament li:nth-child(4)::before { transition-delay: 1.65s; }
.filament li::after { content: counter(step, decimal-leading-zero); order: -1; margin-bottom: 14px; font-family: "Tungsten Display", Arial, sans-serif; font-weight: 600; font-size: 1rem; letter-spacing: .08em; color: var(--gold); }
.filament h3 { margin: 0 0 10px; font-size: 1.5rem; color: #fff; }
.filament p { margin: 0; color: #c5ced5; max-width: 30ch; }
.js-ready .filament:not(.is-lit)::after { transform: scaleX(0); }
.js-ready .filament:not(.is-lit) li::before { background: #4a5662; box-shadow: 0 0 0 5px #1a242e; }

@media (max-width: 1050px) {
    .filament { grid-template-columns: 1fr; }
    .filament::before, .filament::after { left: 8px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
    .filament li { padding: 0 0 34px 48px; }
    .filament li:last-child { padding-bottom: 0; }
    .filament p { max-width: 60ch; }
    .js-ready .filament:not(.is-lit)::after { transform: scaleY(0); }
}
@media (max-width: 760px) {
    .showcase-art.art-angle { clip-path: none; border-radius: 9px; }
    .showcase-art.art-offset { box-shadow: 10px 10px 0 var(--gold); margin: 0 10px 10px 0; }
    .showcase-art.art-round { border-radius: 9px 9px 9px 90px; }
    .page-not-found-page .support-hero { padding: 70px 0 60px; }
    .page-not-found-page .support-hero::after { -webkit-text-stroke-color: rgba(229, 180, 93, .2); right: -4%; }
}

/* ---------- Deeper pass: type, interactive light, reveals, page transitions ---------- */

/* Body copy in the self-hosted Inter; display headings stay in the condensed face. */
body { font-family: "Tungsten Template", Arial, "Helvetica Neue", sans-serif; }
p, li { font-feature-settings: "ss01", "cv11"; }

/* Home hero: a warm light that follows the pointer. Static when there is no mouse. */
.home-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(560px circle at var(--lx, 82%) var(--ly, 10%), rgba(229, 180, 93, .17), rgba(229, 180, 93, 0) 70%); }
.home-hero > .shell { position: relative; z-index: 1; }

/* Home cards: the one you point at lights up; the others dim. Opacity and color only. */
.service-card strong { font-family: "Tungsten Display", Arial, sans-serif; font-weight: 600; font-size: clamp(1.7rem, 2.3vw, 2.3rem); letter-spacing: -.01em; line-height: 1.05; }
.service-card .card-photo { transition: transform .65s, filter .4s ease, opacity .3s; }
.home-cards .service-card { transition: opacity .35s ease, box-shadow .25s; }
@media (hover: hover) {
    .home-cards:hover .service-card:not(:hover), .home-cards:focus-within .service-card:not(:focus-visible):not(:hover) { opacity: .5; }
    .home-cards:hover .service-card:hover, .home-cards .service-card:focus-visible { opacity: 1; }
    .service-card:hover .card-photo, .service-card:focus-visible .card-photo { filter: saturate(1.05) contrast(1.04) brightness(1.1); }
}

/* Content fades in as it scrolls into view. Without JavaScript or with reduced motion it is simply visible. */
.js-ready .lt-reveal { opacity: 0; transition: opacity .8s ease; }
.js-ready .lt-reveal.revealed { opacity: 1; }

/* Smooth cross-fade between pages. The header is excluded so it never changes. */
@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }
    .site-header { view-transition-name: site-header; }
    ::view-transition-group(site-header), ::view-transition-old(site-header), ::view-transition-new(site-header) { animation: none; }
    ::view-transition-old(site-header) { display: none; }
    ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
}

/* Shared service hero on phones: keep each heading line on one row. */
@media (max-width: 760px) { .hero-bleed h1 { font-size: clamp(2.4rem, 11.4vw, 4rem); } }
