/* Motion: fast feedback, stable reading, continuous layout changes. */
:root { --motion-ease: cubic-bezier(.22,1,.36,1); }
html { background: #101110; }
html[data-theme="light"] { background: #f4f7fb; }
body { transition: none; }
[hidden] { display: none !important; }
button, a, select, [role="button"] { -webkit-tap-highlight-color: transparent; }
:where(button, a, select, [role="button"]):focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
.theme-switch button { transition: color 160ms ease, scale 160ms var(--motion-ease); }
.theme-switch button:active { scale: .94; }
.hero-copy, .sam-caption, .hero-logo, .hero-person { translate: none; transition: none; }
.hero h1, .hero-subtitle, .play { animation-name: copy-reveal; animation-duration: 440ms; }
.hero-subtitle { animation-delay: 60ms; }
.play { animation-delay: 110ms; }
@keyframes copy-reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.hero-person { animation: portrait-reveal 500ms var(--motion-ease) 80ms both; }
@keyframes portrait-reveal { from { opacity: 0; } to { opacity: 1; } }
.sam-caption { animation-duration: 440ms; animation-delay: 100ms; }
.hero-logo { animation-duration: 440ms; animation-delay: 160ms; }
.hero-glow-b { animation: none; opacity: .55; }
.hero-glow-a { animation-duration: 24s; opacity: .65; }
.hero.motion-paused .hero-glow { animation-play-state: paused; }
.hero-rim { box-shadow: inset 0 0 0 1px rgba(19,132,71,.22); }
.hero::after { transition-duration: 180ms; }
.card { animation: resource-reveal 340ms var(--motion-ease) 150ms both; }
.card:nth-child(2) { animation-delay: 195ms; }
.card:nth-child(3) { animation-delay: 240ms; }
.card:nth-child(4) { animation-delay: 285ms; }
@keyframes resource-reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.cards.ready .card { animation: none; }
.card:focus-visible { border-color: var(--green); }
.card:focus-visible::before { opacity: 1; }
.card:active { scale: .99; }
.cards.list .card { grid-template-columns: minmax(0,1fr) auto; }
.cards.list .card > div:first-child { min-width: 0; display: grid; grid-template-columns: minmax(240px, 1fr) minmax(180px, .85fr); gap: 24px; align-items: center; }
.cards.list .price { white-space: nowrap; }
.cards.list .card-top { align-items: center; }
.catalog-title span { min-width: 58px; }
.float-button { transition: scale 160ms var(--motion-ease), border-color 160ms ease; }
.float-button:active { scale: .95; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 1; }
::view-transition-old(root) { z-index: 0; }
.resource-dialog { color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 30px; box-shadow: 0 24px 90px #0004; overflow-y: auto; }
.resource-dialog::backdrop { background: rgb(0 0 0 / .44); animation: backdrop-reveal 200ms ease both; }
.resource-dialog.closing::backdrop { animation: backdrop-hide 150ms ease both; }
@keyframes backdrop-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdrop-hide { to { opacity: 0; } }
.dialog-close { position: absolute; right: 16px; top: 16px; border: 0; border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; background: var(--surface-soft); color: var(--muted); cursor: pointer; }
.dialog-close:hover { color: var(--text); }
.dialog-eyebrow { color: var(--green); font-size: 13px; margin: 0 0 12px; }
.resource-dialog h2 { margin: 0 26px 24px 0; font-size: 25px; line-height: 1.4; letter-spacing: -.5px; }
.detail-price { font-size: 32px; font-weight: 700; letter-spacing: -.7px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.detail-price small { font-size: 14px; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-left: 8px; }
.detail-specs { margin: 22px 0; display: grid; gap: 16px; }
.detail-specs div { display: flex; justify-content: space-between; gap: 20px; font-size: 14px; line-height: 1.6; }
.detail-specs dt { color: var(--muted); }
.detail-specs dd { margin: 0; text-align: right; }
.dialog-note { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 20px 0; }
.dialog-button { width: 100%; border: 0; border-radius: 12px; background: var(--green); color: #fff; min-height: 44px; padding: 12px 18px; font-weight: 600; cursor: pointer; transition: scale 140ms var(--motion-ease), opacity 140ms ease; }
body.dark .dialog-button { color: #082712; }
.dialog-button:hover { opacity: .9; }
.dialog-button:active { scale: .98; }
.guide-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; counter-reset: step; }
.guide-steps li { display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; counter-increment: step; }
.guide-steps li::before { content: counter(step, decimal-leading-zero); width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); font-size: 12px; }
.guide-steps strong { font-size: 15px; line-height: 32px; }
.guide-steps p { grid-column: 2; font-size: 14px; color: var(--muted); line-height: 1.7; margin: 3px 0 0; }
@media (max-width: 1080px) { .cards.list .card > div:first-child { grid-template-columns: minmax(0,1fr); gap: 8px; } .cards.list .meta { font-size: 13px; } }
@media (max-width: 700px) { .hero-person, body.dark .hero-person { animation: none; opacity: .2; } .cards.list .card > div:first-child { display: block; } .resource-dialog { padding: 26px 22px; } .resource-dialog h2 { font-size: 23px; } }
@media (hover: none), (pointer: coarse) { .card::before, .hero-spot, .hero-rim, .hero::after { display: none; } .card:hover { border-color: var(--line); box-shadow: var(--shadow); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .hero-spot, .hero-rim, .hero::after, .card::before { display: none !important; } }

/* Reference portrait: transparent artwork, depth parallax and moving light. */
.hero-person, body.dark .hero-person {
  width: 200px; height: 234px; bottom: -6px;
  background: none; mix-blend-mode: normal; mask-image: none; -webkit-mask-image: none;
  transform-origin: center bottom; translate: var(--person-x, 0px) var(--person-y, 0px);
  animation: person-arrive 700ms cubic-bezier(.16,1,.3,1) 100ms both;
  opacity: 1; pointer-events: none;
}
@keyframes person-arrive { from { opacity: 0; scale: 1.04; } to { opacity: 1; scale: 1; } }
.person-photo, .person-depth { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.person-photo { user-select: none; }
.person-depth { visibility: hidden; }
.hero-person.depth-ready .person-depth { visibility: visible; }
.hero-person.depth-ready .person-light { visibility: hidden; }
.hero-person::before, .person-light { content: ''; position: absolute; inset: 0; mask: url('person.webp') center bottom / contain no-repeat; -webkit-mask: url('person.webp') center bottom / contain no-repeat; }
.hero-person::before { background: rgba(28,36,32,.22); filter: blur(12px); translate: 0 16px; }
body.dark .hero-person::before { background: rgba(16,215,101,.28); filter: blur(24px); translate: 0 0; }
.person-light { background: radial-gradient(240px circle at var(--light-x, 50%) var(--light-y, 50%), rgba(125,188,151,.7), transparent 70%); opacity: var(--lit); mix-blend-mode: screen; }
body.dark .person-light { background: radial-gradient(240px circle at var(--light-x, 50%) var(--light-y, 50%), rgba(16,215,101,.38), transparent 70%); }
.hero-glow-a { animation-duration: 19s; opacity: 1; }
.hero-glow-b { animation: hero-drift-b 26s ease-in-out infinite; opacity: 1; }
.hero-glow { translate: var(--glow-x,0px) var(--glow-y,0px); }
@media (max-width: 700px) { .hero-person, body.dark .hero-person { opacity: .2; animation: none; } }
@media (prefers-reduced-motion: reduce) { .hero-person, body.dark .hero-person { animation: none !important; translate: none; } .hero-glow { translate: none; } }



/* Resource actions and supplied brand artwork. */
.brand-image { display: block; width: 36px; height: 36px; object-fit: contain; border-radius: 9px; }
.foot-left .brand-image { width: 40px; height: 40px; border-radius: 10px; }
.card { height: 210px; padding: 22px; cursor: default; gap: 20px; }
.card-link { color: inherit; text-decoration: none; cursor: pointer; }
.card-link .view-resource { display: grid; place-items: center; pointer-events: none; }
.card:active { scale: 1; }
.card:focus-within { border-color: var(--green); }
.view-resource { width: 100%; min-height: 40px; flex-shrink: 0; border: 1px solid transparent; border-radius: 10px; background: var(--green); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 160ms ease, box-shadow 160ms ease, scale 160ms var(--motion-ease); }
.view-resource:hover { background: #0c713c; box-shadow: 0 3px 10px rgba(19,132,71,.12); }
.view-resource:active { scale: .98; }
body.dark .view-resource { background: #173924; border-color: #285a39; color: #8df0ae; }
body.dark .view-resource:hover { background: #1d482c; border-color: #397849; }
.cards.list .card { height: 112px; grid-template-columns: minmax(0,1fr) 132px; gap: 24px; }
.cards.list .view-resource { width: 132px; }
.hero-person, body.dark .hero-person { left: auto; right: 12%; }
@media (max-width: 1080px) { .hero-person, body.dark .hero-person { right: 35px; } }
@media (max-width: 700px) { .brand-image { width: 32px; height: 32px; } .hero-person, body.dark .hero-person { right: -35px; } .card, .cards.list .card { height: auto; min-height: 206px; padding: 20px; gap: 22px; } .cards.list .view-resource { width: 100%; } }


/* Icon-only brand mark. */
.dwm-brand { line-height: 0; }
.dwm-brand .brand-image, .foot-left .dwm-brand .brand-image { width: 44px; height: 44px; border-radius: 0; object-fit: contain; flex-shrink: 0; }
body.dark .dwm-brand .brand-image { filter: brightness(0) invert(1); }
@media (max-width: 700px) { .dwm-brand .brand-image, .foot-left .dwm-brand .brand-image { width: 36px; height: 36px; } }

/* A cooler light palette connects the supplied blue mark to the interface. */
body:not(.dark) .topbar { border-color: #e0e8f1; background: rgba(255,255,255,.52); }
body:not(.dark) .dwm-brand { width: 54px; height: 54px; justify-content: center; background: transparent; }
body:not(.dark) .foot-left .dwm-brand { width: 54px; height: 54px; }
body:not(.dark) .dwm-brand .brand-image, body:not(.dark) .foot-left .dwm-brand .brand-image { width: 52px; height: 52px; }
body:not(.dark) .hero { border-color: #d5e4f3; background: radial-gradient(circle, rgba(52,129,224,.14) 1.05px, transparent 1.35px) calc(100% - 55px) 20px / 18px 18px, linear-gradient(105deg, #fff 0%, #f9fcff 47%, #eaf4ff 100%); }
body:not(.dark) .hero::before { background-image: radial-gradient(circle, #8eb8e8 .85px, transparent .95px); }
body:not(.dark) .hero::after { background-image: radial-gradient(circle, rgba(23,104,206,.8) 1.25px, transparent 1.8px); }
body:not(.dark) .hero-rim { box-shadow: inset 0 0 0 1px rgba(23,104,206,.22); }
body:not(.dark) .hero-glow-a { background: radial-gradient(ellipse at center, rgba(42,126,230,.16), transparent 68%); }
body:not(.dark) .hero-glow-b { background: radial-gradient(ellipse at center, rgba(42,126,230,.08), transparent 70%); }
body:not(.dark) .hero-spot { background: radial-gradient(260px circle at var(--lx) var(--ly), rgba(42,126,230,.13), transparent 70%); }
body:not(.dark) .theme-switch, body:not(.dark) .view-toggle { background: #e9f0f8; }
body:not(.dark) .product-icon { background: #ecf3fb; color: #2864af; }
body:not(.dark) .card:hover { border-color: #b6cde9; box-shadow: 0 6px 20px rgba(38,93,155,.07); }
body:not(.dark) .card::before { background: radial-gradient(190px circle at var(--mx, 50%) var(--my, 50%), rgba(23,104,206,.09), transparent 70%); }
body:not(.dark) .view-resource:hover { background: #0e59b5; box-shadow: 0 3px 10px rgba(23,104,206,.16); }
body:not(.dark) .play:hover { border-color: #b7cfe9; background: #f7fbff; }
.hero { height: 260px; margin-top: 36px; }
.hero-copy { width: 64%; padding: 43px 40px; }
.hero h1 { max-width: 760px; font-size: clamp(28px, 2.1vw, 35px); line-height: 1.35; letter-spacing: -.9px; }
.quote-first, .quote-second { display: block; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-subtitle { margin: 13px 0 19px; font-size: 14px; letter-spacing: .3px; }
.play { min-height: 39px; color: var(--text); text-decoration: none; }
.play-circle svg { margin-left: 0; }
.play strong { font-size: 14px; }
.catalog { margin-top: 42px; }
.catalog-head { margin-bottom: 23px; }
.card { height: 198px; }
footer { margin-top: 104px; padding-top: 32px; }
.foot-left p { margin-top: 19px; font-size: 14px; letter-spacing: .15px; }
@media (max-width: 1080px) { .hero-copy { width: 72%; } }
@media (max-width: 700px) { .hero { height: auto; min-height: 320px; margin-top: 22px; } .hero-copy { width: 100%; padding: 30px 24px 95px; } .hero h1 { font-size: clamp(25px, 7vw, 30px); line-height: 1.38; } .quote-second em { display: block; } .hero-subtitle { margin: 14px 0 17px; } .hero-person, body.dark .hero-person { opacity: .16; } .catalog { margin-top: 30px; } .card, .cards.list .card { min-height: 186px; } footer { margin-top: 68px; } body:not(.dark) .dwm-brand, body:not(.dark) .foot-left .dwm-brand { width: 46px; height: 46px; } body:not(.dark) .dwm-brand .brand-image, body:not(.dark) .foot-left .dwm-brand .brand-image { width: 44px; height: 44px; } }
@media (max-width: 360px) { .container { width: calc(100% - 24px); } .hero-copy { padding: 26px 20px 88px; } .hero h1 { font-size: 24px; } .card, .cards.list .card { padding: 18px; min-height: 176px; } }
@media (max-width: 1080px) { .person-depth { display: none; } .hero-person.depth-ready .person-photo { visibility: visible; } }

/* Keep ultra-wide screens spacious without stretching reading lines and cards. */
@media (min-width: 1600px) {
  .container { width: min(1640px, calc(100% - 96px)); }
  .hero { height: 300px; margin-top: 52px; }
  .hero-copy { padding: 53px 54px; }
  .hero h1 { font-size: 40px; max-width: 900px; }
  .hero-person, body.dark .hero-person { width: 250px; height: 293px; }
  .card { height: 218px; padding: 26px; }
  .catalog { margin-top: 54px; }
  .cards { gap: 20px; }
}
@media (min-width: 2400px) {
  .container { width: min(2160px, calc(100% - 160px)); min-height: calc(100vh - 84px); display: flex; flex-direction: column; }
  .topbar { height: 84px; padding-inline: max(48px, calc((100vw - 2160px) / 2)); }
  .topbar .dwm-brand .brand-image, .foot-left .dwm-brand .brand-image { width: 58px; height: 58px; }
  body:not(.dark) .topbar .dwm-brand, body:not(.dark) .foot-left .dwm-brand { width: 66px; height: 66px; }
  body:not(.dark) .topbar .dwm-brand .brand-image, body:not(.dark) .foot-left .dwm-brand .brand-image { width: 64px; height: 64px; }
  .hero { height: 360px; margin-top: 68px; border-radius: 28px; }
  .hero-copy { padding: 67px 70px; width: 64%; }
  .hero h1 { font-size: 54px; max-width: 1160px; }
  .hero-subtitle { font-size: 19px; margin: 17px 0 25px; }
  .play { min-height: 50px; padding-right: 20px; gap: 13px; }
  .play-circle { width: 36px; height: 36px; }
  .play strong { font-size: 17px; }
  .hero-person, body.dark .hero-person { width: 300px; height: 352px; right: 13%; }
  .catalog { margin-top: 65px; }
  .catalog-title h2 { font-size: 34px; }
  .catalog-head { margin-bottom: 32px; }
  .cards { gap: 24px; }
  .card { height: 246px; padding: 32px; }
  .product-icon { width: 50px; height: 50px; flex-basis: 50px; }
  .product-icon svg { width: 30px; height: 30px; }
  .product-name small, .meta { font-size: 17px; }
  .product-name strong { font-size: 22px; }
  .view-resource { min-height: 52px; font-size: 17px; }
  footer { margin-top: auto; padding-top: 44px; }
  .foot-left p { font-size: 18px; }
  .floating { right: max(24px, calc((100vw - 2160px) / 2 - 64px)); }
}
