/* Technical product manager. After MotionSites "Cyber Ronin": burnt-orange stage, cream
   Orbitron type, a cursor spotlight that reveals a second scene. Here the scene is the
   product (the Support Desk demo) and the spotlight shows the system under it. */
:root[data-role] {
  --paper: #120c08; --panel: #1b120c; --ink: #fbdbaf; --muted: #c9ad8a; --line: #3a2a1e;
  --signal: #f08a3c; --signal-soft: #2a1a10; --pass: #a8d98a;
  --cream: #fbdbaf; --orange: #e07020; --card: rgba(10, 8, 7, 0.58);
  color-scheme: dark;
}
body { font-family: "Inter", system-ui, -apple-system, sans-serif; }
.section-head h2, .work-item h3, .about .bio h2, .contact h2, .job .when b {
  font-family: "Orbitron", "Arial Narrow", sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em;
}
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
.work-item h3 { font-size: clamp(1.25rem, 2.4vw, 1.8rem); }
.contact h2 { font-size: clamp(1.8rem, 4.6vw, 3.6rem); max-width: 18ch; }
.tags li { border-radius: 999px; background: transparent; border: 1px solid rgba(251,219,175,.35); }

/* ---------- Hero ---------- */
.cr-hero { position: relative; height: 100vh; height: 100dvh; min-height: 620px; overflow: hidden; background: #c45a18; color: var(--cream); }
.cr-hero a { color: inherit; text-decoration: none; }
.cr-base, .cr-reveal { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cr-base { z-index: 1; background-image: url(../../assets/img/support-desk-inbox.webp); background-color: #c45a18; background-blend-mode: multiply; }
.cr-reveal { z-index: 2; pointer-events: none; background-image: url(../../assets/img/support-desk-architecture.svg);
  -webkit-mask-image: radial-gradient(circle 0px at -999px -999px, #fff, transparent); mask-image: radial-gradient(circle 0px at -999px -999px, #fff, transparent); }
.cr-hero::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(to right, #8a3b0e 0, rgba(138,59,14,.92) 30%, rgba(138,59,14,0) 52%); }

.cr-ui { position: absolute; inset: 0; z-index: 8; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; padding: 36px 44px 40px; pointer-events: none; }
.cr-left { grid-column: 1; grid-row: 1 / -1; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 28px; min-width: 0; }
.cr-copy { max-width: 540px; padding-right: 56px; pointer-events: auto; }
.cr-name { display: inline-block; margin-bottom: 28px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(251,219,175,.78); }
.cr-hero h1 { font-family: "Orbitron", "Arial Narrow", sans-serif; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1.08; text-shadow: 0 2px 28px rgba(0,0,0,.22); }
.cr-copy p { margin: 18px 0 0; max-width: 360px; font-size: 14px; line-height: 1.55; color: rgba(251,219,175,.85); }
.cr-icons { display: flex; gap: 10px; margin-top: 22px; }
.cr-icon { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(251,219,175,.55); display: grid; place-items: center; transition: background .25s, border-color .25s; }
.cr-icon:hover { background: rgba(251,219,175,.1); border-color: var(--cream); }
.cr-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.2; }

.cr-card { pointer-events: auto; width: min(340px, 100%); display: grid; grid-template-columns: 86px 1fr; grid-template-rows: auto auto; gap: 10px 14px; padding: 12px; border-radius: 18px; background: var(--card); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(251,219,175,.08); box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.cr-thumb { grid-column: 1; grid-row: 1 / -1; min-height: 86px; border-radius: 12px; background: url(../../assets/img/support-desk-thumb.webp) left top / cover; }
.cr-card h2 { font-family: "Orbitron", "Arial Narrow", sans-serif; font-weight: 500; font-size: 11px; line-height: 1.25; letter-spacing: 0.04em; text-transform: uppercase; }
.cr-card p { margin: 6px 0 0; font-size: 12px; line-height: 1.45; color: rgba(251,219,175,.75); }
.cr-btn { grid-column: 2; grid-row: 2; justify-self: start; align-self: end; border: 1px solid var(--cream); border-radius: 999px; padding: 7px 16px; font-size: 12px; font-weight: 500; transition: transform .2s; }
.cr-btn:hover { transform: translateY(-1px); }

.cr-page { position: absolute; top: 36px; right: 44px; margin: 0; font-size: 13px; letter-spacing: 0.08em; color: rgba(251,219,175,.78); }
.cr-specs { grid-column: 2; grid-row: 3; justify-self: end; pointer-events: auto; width: min(340px, 100%); padding: 14px 16px; border-radius: 14px; background: var(--card); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.cr-specs h3 { font-family: "Orbitron", "Arial Narrow", sans-serif; font-weight: 500; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.cr-spec { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 7px 0; }
.cr-spec + .cr-spec { border-top: 1px solid rgba(251,219,175,.12); }
.cr-spec span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(251,219,175,.6); }
.cr-spec b { font-size: 12.5px; font-weight: 500; text-align: right; }

/* Motion (script adds the classes; without it everything is simply visible). */
.pull-word { display: inline-block; }
.pull-word:not(:last-child) { margin-right: 0.3em; }
.pull-line { display: block; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes cr-image-in { from { opacity: 0; transform: scale(1.18); } to { opacity: 1; transform: scale(1); } }
  @keyframes cr-pull { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
  @keyframes cr-fade { from { opacity: 0; transform: translateY(14px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
  .cr-image-in { opacity: 0; animation: cr-image-in 1.2s .15s cubic-bezier(.25,.46,.45,.94) forwards; }
  .js .pull-word { opacity: 0; transform: translateY(20px); }
  .js .words-visible .pull-word { animation: cr-pull .55s ease forwards; }
  .js .cr-hero .fade-up-reveal { opacity: 0; }
  .js .cr-hero .fade-up-reveal.is-visible { animation: cr-fade .7s ease forwards; }
}

@media (pointer: coarse) { .cr-name { padding-block: 10px; margin-bottom: 18px; } }
@media (max-width: 900px) {
  .cr-ui { padding: 28px 22px; }
  .cr-page { top: 28px; right: 22px; }
  .cr-base, .cr-reveal { background-position: 40% center; }
}
@media (max-width: 768px) {
  .cr-hero { height: auto; min-height: 100vh; min-height: 100dvh; }
  .cr-ui { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; gap: 28px; padding: max(24px, env(safe-area-inset-top)) 18px 24px; }
  .cr-left { gap: 24px; }
  .cr-copy { max-width: 100%; padding-right: 48px; }
  .cr-card, .cr-specs { width: 100%; }
  .cr-specs { margin-top: auto; }
  .cr-spec b { white-space: normal; }
}
@media (max-width: 480px) {
  .cr-hero h1 { font-size: clamp(1.25rem, 7.5vw, 1.7rem); }
  .cr-card { grid-template-columns: 72px 1fr; padding: 10px; }
  .cr-thumb { min-height: 72px; }
}
