:root {
  --bg: #17120f;
  --bg-raised: #211a17;
  --text: #f3ede4;
  --text-muted: #b8a99a;
  --accent-swe: #e8834a;
  --accent-swe-soft: #f2a878;
  --accent-design: #9a8de8;
  --accent-design-soft: #bcb2f2;
  --border: #493b33;
  --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.7; }
body::before { content: ''; position: absolute; inset: 0 0 auto; height: 540px; background: radial-gradient(ellipse at 80% 0%, rgba(154,141,232,.06), transparent 65%); pointer-events: none; z-index: -1; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.13; letter-spacing: -.045em; font-weight: 600; margin-bottom: 1.25rem; max-width: 850px; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); line-height: 1.3; letter-spacing: -.025em; font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.1rem; line-height: 1.5; font-weight: 600; }
p { margin-bottom: 1rem; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; }
button { font: inherit; }
:where(a, button):focus-visible { outline: 2px solid var(--accent-swe-soft); outline-offset: 5px; }
.page-design :where(a, button):focus-visible { outline-color: var(--accent-design-soft); }
main:focus { outline: none; }
.skip-link { position: absolute; top: .5rem; left: 1rem; transform: translateY(-200%); background: var(--text); color: var(--bg); padding: .7rem 1rem; z-index: 10; }
.skip-link:focus { transform: none; }
.site-nav, .page-content, .site-footer { width: min(1560px, 100%); margin-inline: auto; padding-inline: 2rem; }
.site-nav { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 1.5rem; border-bottom: 1px solid var(--border); }
.brand { font-size: 1.1rem; font-weight: 600; white-space: nowrap; letter-spacing: -.025em; }
.brand-dot { color: var(--accent-swe-soft); }
.links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; color: var(--text-muted); }
.links a:hover, .links a[aria-current] { color: var(--text); }
.links a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent-swe-soft); text-underline-offset: 8px; }
.page-content { padding-block: 3.75rem 5rem; }
.page-header { margin-bottom: 3rem; }
.eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 600; color: var(--accent-swe-soft); margin-bottom: .85rem; }
.page-design .eyebrow, .page-design .accent { color: var(--accent-design-soft); }
.lead { max-width: 710px; color: var(--text-muted); font-size: 1.1rem; line-height: 1.8; }
.hero { padding-block: .75rem 1rem; }
.hero h1 { font-size: clamp(2.5rem, 5.5vw, 4.4rem); }
.hero h1 span { color: var(--accent-swe-soft); }
.hero-note { font-size: .8rem; color: var(--text-muted); margin-top: 1.75rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.15rem; border: 1px solid #796457; border-radius: 8px; color: var(--text); background: var(--bg-raised); font-size: .85rem; font-weight: 500; transition: background-color .15s, border-color .15s; }
.btn:hover { border-color: var(--accent-swe-soft); background: #30251f; }
.btn-primary { background: var(--accent-swe-soft); border-color: var(--accent-swe-soft); color: var(--bg); }
.btn-primary:hover { background: #f6bb96; }
.page-design .btn:hover { border-color: var(--accent-design-soft); }
.text-link { display: inline-block; color: var(--accent-swe-soft); font-size: .85rem; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--text); }
.page-design .text-link { color: var(--accent-design-soft); }
.section { margin-top: 3.75rem; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.section-heading h2, .section-heading p { margin-bottom: .35rem; }
.muted { color: var(--text-muted); }
.section-heading .muted { font-size: .8rem; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.project-card { min-width: 0; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; margin-bottom: 1.5rem; }
.project-card h2, .project-card h3 { font-size: 1.3rem; margin-bottom: .75rem; }
.project-card p { color: var(--text-muted); font-size: .95rem; }
.project-card .eyebrow { font-size: .7rem; color: var(--accent-swe-soft); }
.engineering-card { padding: 0; margin: 0; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s; }
.engineering-card:hover { border-color: #796457; }
.engineering-card .project-media { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; margin: 0; }
.engineering-card .project-media img { aspect-ratio: 16/9; object-fit: cover; object-position: top; }
.project-body { padding: 1.5rem; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.project-body > p:not(.eyebrow) { flex: 1; }
.project-body .text-link { margin-top: 1.5rem; }
.project-media { display: block; width: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 1.25rem; }
.project-media video, .project-media img { display: block; width: 100%; height: auto; }
.project-media video { aspect-ratio: 16/9; object-fit: contain; background: #100d0b; }
.skill-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.skill-tags span { font-size: .75rem; padding: .25rem .65rem; border-radius: 6px; border: 1px solid var(--border); color: var(--text-muted); }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 2rem; padding-block: 1.5rem; border-top: 1px solid var(--border); }
.skills-grid h3 { font-size: .95rem; }
.background-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding-block: 2rem; border-block: 1px solid var(--border); }
.background-strip p { color: var(--text-muted); }
.background-strip .eyebrow { color: var(--accent-swe-soft); }
.strip-feature { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; padding: .75rem; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); color: inherit; text-decoration: none; transition: border-color .2s; }
.strip-feature:hover, .strip-feature:focus-visible { border-color: var(--accent-swe-soft); }
.strip-feature img { flex: 0 0 140px; width: 140px; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: calc(var(--radius) / 2); }
.strip-feature strong { display: block; color: var(--text); font-size: .95rem; line-height: 1.3; margin-bottom: .25rem; }
.background-strip .strip-shots { grid-column: 1 / -1; margin-block: .5rem 0; }
.strip-feature small { color: var(--accent-swe-soft); font-size: .8rem; }
.design-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.design-feature p { color: var(--text-muted); }
.design-feature .eyebrow, .design-feature .text-link { color: var(--accent-design-soft); }
.design-feature .project-media { margin: 0; }
.experience-entry { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); padding: clamp(1.25rem, 4vw, 2.5rem); }
.experience-header { padding-bottom: 1.5rem; }
.experience-header h2 { font-size: 1.8rem; }
.role-title { max-width: 740px; font-size: 1.05rem; margin-bottom: 0; }
.highlights { max-width: 760px; margin: 1rem 0 0; padding-left: 1.2rem; color: var(--text-muted); }
.highlights li { margin-bottom: .45rem; }
#lorestone-title + .role-title { margin-bottom: 0; }
.experience-entry + .experience-entry { margin-top: 1.5rem; }
.rotation { margin-top: 1.5rem; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); }
.rotation h4 { margin-bottom: .4rem; }
.rotation p { margin: 0; }
.experience-area { border-top: 1px solid var(--border); padding-top: 1.75rem; margin-top: 1rem; }
.experience-area h3 { max-width: 750px; margin-bottom: 1rem; }
.experience-area ul { color: var(--text-muted); padding-left: 1.25rem; max-width: 860px; font-size: .95rem; }
.experience-area li { padding-left: .3rem; margin-bottom: .8rem; }
.experience-area li::marker { color: var(--accent-swe-soft); }
.assignment-dates { color: var(--accent-swe-soft); font-size: .85rem; }
.education { border-top: 1px solid var(--border); padding-top: 2rem; }
.education p { margin-bottom: .4rem; }
.about-header { display: grid; grid-template-columns: 1fr 160px; gap: 3rem; align-items: center; }
.portrait { border-radius: var(--radius); object-fit: cover; object-position: 50% 25%; border: 1px solid var(--border); }
.prose { max-width: 760px; color: var(--text-muted); font-size: 1.05rem; }
.prose p { margin-bottom: 1.5rem; }

.page-design h1 { font-family: 'Cormorant Garamond', Georgia, serif; letter-spacing: -.02em; }
.page-design .project-card .accent { color: var(--accent-design-soft); }
.project-gallery, .media-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: .5rem; margin-bottom: 1.25rem; }
.project-gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; }
.quest-case-study .case-study-disclaimer { margin-bottom: 0; }
.card-action { margin-top: 1.5rem; }
small { font-size: .8rem; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.75rem; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .75rem; }
.site-footer p { margin: 0; }
.site-footer a { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .site-nav { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .links { width: 100%; justify-content: space-between; gap: .25rem .75rem; }
  .page-content { padding-block: 2.5rem 3.5rem; }
  .project-grid, .skills-grid, .background-strip, .design-feature { grid-template-columns: 1fr; }
  .section { margin-top: 2.75rem; }
  .background-strip, .design-feature { gap: 1.25rem; }
  .section-heading { flex-wrap: wrap; }
  .about-header { grid-template-columns: 1fr; gap: 1rem; }
  .portrait { width: 120px; height: 120px; }
}
@media (max-width: 420px) {
  .site-nav, .page-content, .site-footer { padding-inline: 1.25rem; }
  .links a { font-size: .78rem; }
  .project-card { padding: 1.25rem; }
  .engineering-card { padding: 0; }
  .project-body { padding: 1.25rem; }
  .site-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; }
#skills, #technical-design { scroll-margin-top: 2rem; }
.credits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1.5rem; }
.team-section { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.credit-card { padding: 0; overflow: hidden; margin: 0; }
.credit-card > img, .credit-card > a > img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.credit-card h4 { font-size: 1.1rem; margin: 0 0 .5rem; }
.credit-card p { margin: 0; }
.assignment-feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2rem; align-items: start; }
.assignment-feature > img { width: 100%; height: auto; border-radius: 10px; }
.assignment-feature h4 { margin: 1.25rem 0 .4rem; font-size: .95rem; }
.assignment-feature p { color: var(--text-muted); }
.skills-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .assignment-feature, .skills-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.studio-banner { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 1.5rem; }

/* Portfolio overview */
.page-home .home-hero { max-width: 1000px; padding-block: 1rem .5rem; }
.page-home .home-hero h1 { max-width: 1000px; }
.page-home .design-card .eyebrow, .page-home .design-card .text-link { color: var(--accent-design-soft); }
.collection-links { gap: 1rem 2rem; }
.home-contact { max-width: 760px; }
.home-contact .actions { align-items: center; }
#featured-work, #crypt, #nanite-protocol { scroll-margin-top: 2rem; }
@media (max-width: 760px) {
  .site-nav .links { justify-content: flex-start; gap: .25rem 1.25rem; }
}

/* JournalScape feature */
.feature-panel { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.5rem); }
.journalscape-intro .lead { margin-bottom: 1.25rem; }
.status-tag { font-size: .75rem; font-weight: 600; padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--accent-swe-soft); color: var(--accent-swe-soft); white-space: nowrap; }
.screenshot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-block: 2rem; }
.screenshot-grid img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.screenshot-placeholder { aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; border: 1px dashed #796457; border-radius: 10px; background: #1b1512; color: var(--text-muted); text-align: center; padding: 1rem; }
.screenshot-placeholder span { font-size: .85rem; font-weight: 500; }
.feature-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.feature-columns h3 { margin-bottom: .25rem; }
.feature-columns .highlights { font-size: .95rem; }
.feature-columns .highlights li::marker { color: var(--accent-swe-soft); }
.publisher { display: flex; align-items: center; gap: 1rem; margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .85rem; color: var(--text-muted); }
.publisher img { display: block; height: 44px; width: auto; border-radius: 6px; border: 1px solid var(--border); }
.publisher .text-link { font-size: inherit; }
#journalscape { scroll-margin-top: 2rem; }
@media (max-width: 760px) {
  .screenshot-grid, .feature-columns { grid-template-columns: 1fr; }
  .feature-columns { gap: 1.5rem; }
}
