/* Basic styling for Heartbeats & Chaos Studio foundation */

html, body {
    margin: 0;
    padding: 0;
    background: #101521;
    color: #F5F1E9;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header, main, footer {
    padding: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

header {
    border-bottom: 1px solid rgba(245,241,233,0.1);
}

h1 {
    margin: 0;
    font-size: 1.75rem;
}

main {
    flex: 1;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

p {
    margin: 1rem 0 0;
    font-size: 1.125rem;
}

footer {
    border-top: 1px solid rgba(245,241,233,0.1);
    font-size: 0.9rem;
    text-align: center;
    color: rgba(245,241,233,0.7);
}

/* Responsive */
@media (max-width: 600px) {
    header, main, footer {
        padding: 1rem;
    }
    h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.25rem;
    }
}

/* Cinematic header & navigation - Assignment #004B */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #101521;
    border-bottom: 1px solid rgba(245,241,233,0.1);
}

.site-header .brand {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    color: #D8B477;
    white-space: nowrap;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    appearance: none;
    background: transparent;
    border: 1px solid rgba(245,241,233,0.2);
    color: #F5F1E9;
    padding: 0.5rem 0.6rem;
    border-radius: 0.5rem;
    cursor: pointer;
}
.menu-toggle:focus-visible {
    outline: 2px solid #A77BDB;
    outline-offset: 2px;
}
.menu-toggle .hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background: #F5F1E9;
    position: relative;
}
.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: #F5F1E9;
}
.menu-toggle .hamburger::before { top: -6px; }
.menu-toggle .hamburger::after { top: 6px; }

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    align-items: center;
}
.nav-list li { margin: 0; }

.nav-link {
    color: #F5F1E9;
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}
.nav-link:hover,
.nav-link:focus-visible {
    color: #D8B477;
}
.nav-link:focus-visible {
    outline: 2px solid #A77BDB;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Active Home indication */
.nav-link[href="index.html"] {
    color: #D8B477;
}

/* Disabled navigation items */
.nav-link.disabled {
    color: rgba(245,241,233,0.4);
    cursor: default;
}
.nav-link.disabled:hover,
.nav-link.disabled:focus {
    color: rgba(245,241,233,0.4);
    outline: none;
}

/* Mobile navigation */
@media (max-width: 768px) {
    .site-header {
        flex-wrap: wrap;
    }
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .nav-list {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 1rem;
        padding-top: 1rem;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(245,241,233,0.08);
    }
    /* State that JavaScript can activate */
    .site-header.menu-open .nav-list,
    .nav-list.open {
        display: flex;
    }
    /* Prevent horizontal overflow */
    html, body { overflow-x: hidden; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .nav-link { transition: none; }
}

/* Hero section - Assignment #005 */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
}

.hero-label {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #D8B477;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-title {
    margin: 0.5rem 0 1rem;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 700;
    color: #F5F1E9;
}

.hero-description {
    margin: 0 auto;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: rgba(245,241,233,0.85);
    max-width: 60ch;
}

/* Cinematic gradient lighting and abstract decoration */
.hero::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(60% 50% at 30% 20%, rgba(167,123,219,0.12) 0%, transparent 60%),
                radial-gradient(50% 40% at 80% 30%, rgba(216,180,119,0.10) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.hero-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}
.hero-deco::before,
.hero-deco::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}
.hero-deco::before {
    width: 300px;
    height: 300px;
    background: rgba(167,123,219,0.08);
    top: 10%;
    left: -10%;
}
.hero-deco::after {
    width: 250px;
    height: 250px;
    background: rgba(216,180,119,0.07);
    bottom: -10%;
    right: -5%;
}

@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero-deco::before,
    .hero-deco::after {
        transition: none;
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: 50vh;
        padding: 3rem 1rem;
    }
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }
}

/* Assignment #007 — shared public website, preserving the cinematic foundation. */
:root { color-scheme: dark; --gold:#D8B477; --violet:#A77BDB; --muted:#bcbac7; --line:rgba(245,241,233,.15); }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
a { color:var(--gold); text-underline-offset:5px; }
a:focus-visible, button:focus-visible { outline:2px solid var(--violet); outline-offset:5px; }
header, main, footer { max-width:1240px; }
main { padding-top:0; }
.site-header { min-height:100px; gap:2rem; }
.site-header .brand { text-decoration:none; font-family:Georgia,serif; font-size:1.35rem; line-height:1.1; white-space:normal; }
.brand span { color:var(--violet); }
.brand small { display:block; font: .62rem system-ui,sans-serif; letter-spacing:.4em; margin-top:.65rem; }
.nav-list { gap:1.4rem; }
.nav-link { font-size:.9rem; display:inline-block; padding:.65rem 0; }
.nav-link[href="index.html"] { color:#F5F1E9; }
.nav-link[aria-current="page"], .nav-link:hover { color:var(--gold); }
.nav-link[aria-current="page"] { border-bottom:1px solid var(--gold); }
.skip-link { position:absolute; top:-100px; left:1rem; z-index:10; background:#101521; padding:.8rem; }
.skip-link:focus { top:1rem; }
.hero { min-height:640px; border-bottom:1px solid var(--line); }
.hero-content { max-width:840px; }
.hero-title { font-family:Georgia,'Times New Roman',serif; font-size:clamp(3rem,6.5vw,5.6rem); font-weight:400; letter-spacing:-.045em; line-height:1.08; }
.hero-description { max-width:48ch; color:var(--muted); }
.hero::before { background:radial-gradient(ellipse at 55% 40%,#563f703b,transparent 55%),radial-gradient(ellipse at 25% 65%,#D8B47716,transparent 50%); }
.hero-deco { inset:9% 18%; border:1px solid #d8b47726; border-radius:50%; transform:rotate(-20deg); }
.hero-deco::before { background:#a77bdb20; }
.button { display:inline-flex; align-items:center; gap:2rem; padding:.85rem 1.4rem; border:1px solid #d8b47770; text-decoration:none; margin-top:2rem; font-size:.9rem; background:#10152188; }
.button:hover { background:#d8b47718; }
.featured { padding:5rem 0; }
.featured-header { display:flex; justify-content:space-between; gap:2rem; align-items:end; margin-bottom:2rem; }
h2, .featured-heading { font-family:Georgia,serif; font-size:clamp(1.8rem,3vw,2.7rem); font-weight:400; line-height:1.2; }
.featured-description { font-size:1rem; color:var(--muted); margin:0; }
.cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem; }
.card { padding:1.5rem; background:#151b29; border:1px solid var(--line); min-width:0; }
.card-title { font-family:Georgia,serif; font-size:1.65rem; font-weight:400; margin:0; }
.card-subtitle { font-size:.9rem; color:var(--muted); margin:.25rem 0 1.5rem; }
.text-link { display:inline-flex; justify-content:space-between; gap:1.5rem; font-size:.95rem; margin-top:1.5rem; text-decoration:none; }
.text-link:hover { text-decoration:underline; }
.card .text-link { width:100%; }
.artwork { isolation:isolate; position:relative; overflow:hidden; display:flex; align-items:center; justify-content:center; flex-direction:column; aspect-ratio:4/3; background:#181f31; }
.artwork::before, .artwork::after, .artwork i { content:''; position:absolute; z-index:-1; }
.artwork span { text-align:center; max-width:90%; font-family:Georgia,serif; font-size:clamp(1.4rem,3vw,2.5rem); letter-spacing:.09em; text-shadow:0 2px 12px #000; line-height:1.2; }
.artwork small { position:absolute; bottom:1rem; font-size:.6rem; letter-spacing:.16em; color:#ded8e9; }
.games { background:radial-gradient(ellipse at 50% 35%,#665282 0,#262641 35%,#111825 75%); }
.games::before { width:35%; height:90%; border:1px solid #d8b4778c; border-radius:50% 50% 0 0; box-shadow:0 0 45px #D8B47730,inset 0 0 40px #d8b47720; top:14%; }
.games::after { inset:65% -10% -40%; background:#0e1421; transform:rotate(-13deg); border-top:1px solid #a77bdb60; }
.games i { inset:80% -10% -10%; background:#1b2134; transform:rotate(12deg); }
.music { background:radial-gradient(circle at 50% 50%,#8a598650,#28203e 45%,#131828 75%); }
.music::before { width:68%; aspect-ratio:1; border-radius:50%; background:repeating-radial-gradient(circle,#101521 0 5px,#343048 6px 7px); border:1px solid #a77bdb80; box-shadow:0 0 40px #a77bdb25; }
.music::after { width:20%; aspect-ratio:1; border-radius:50%; background:radial-gradient(circle,#101521 8%,#d8b477 10%,#735b79 65%); }
.films { background:linear-gradient(120deg,#111827 20%,#6d574a 50%,#242138 72%,#101521); }
.films::before { inset:10% 20%; border:1px solid #d8b4778c; box-shadow:20px 20px 0 #10152144,-20px -20px 0 #10152144; }
.films::after { inset:0; background:linear-gradient(0deg,#101521bb,transparent 70%); }
.studio-intro { display:grid; grid-template-columns:1fr 1fr; gap:4rem; padding:4.5rem 0; border-top:1px solid var(--line); }
.eyebrow { display:block; font-size:.7rem; color:var(--gold); letter-spacing:.18em; margin-bottom:1rem; text-transform:uppercase; }
.studio-intro p, .text-panel p, .project-copy p, .legal-copy p { color:var(--muted); font-size:1rem; }
.studio-intro p:first-child { margin-top:0; }
.site-footer { text-align:left; padding-top:2.5rem; padding-bottom:2rem; }
.footer-top, .footer-bottom { display:flex; justify-content:space-between; gap:2rem; }
.footer-brand { font-family:Georgia,serif; font-size:1.3rem; text-decoration:none; }
.footer-top p { font-size:.9rem; color:var(--muted); margin:.6rem 0; }
.legal-links { display:flex; flex-wrap:wrap; gap:.75rem 1.5rem; padding:2rem 0; }
.legal-links a { font-size:.8rem; color:#cfccd6; }
.legal-links a[aria-current] { color:var(--gold); }
.footer-bottom { border-top:1px solid var(--line); padding-top:1.5rem; font-size:.75rem; color:var(--muted); }
.page-intro { padding:5rem 0 3rem; max-width:900px; }
.page-intro h1 { font:400 clamp(2.6rem,5vw,4.5rem)/1.1 Georgia,serif; letter-spacing:-.035em; overflow-wrap:anywhere; }
.page-intro p { color:var(--muted); max-width:65ch; }
.notice { padding:1.25rem 1.5rem; border-left:2px solid var(--gold); background:#d8b47709; font-size:.95rem; color:#d6d0c8; margin:0 0 2.5rem; }
.notice p { font-size:.95rem; }
.project-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2rem; padding-bottom:3rem; }
.project-card { background:#151b29; border:1px solid var(--line); min-width:0; }
.project-card .artwork { aspect-ratio:16/10; }
.project-card .artwork.music { aspect-ratio:1; }
.project-card .artwork.films { aspect-ratio:3/4; }
.project-copy { padding:2rem; }
.project-copy .eyebrow { font-size:.64rem; }
.project-copy h2 { font-size:2rem; }
.project-copy .status { display:inline-block; color:#e0cba9; font-size:.8rem; border:1px solid #d8b47740; padding:.3rem .7rem; }
.placeholder { font-size:.85rem!important; color:#bcbac7; border-top:1px solid var(--line); padding-top:1rem; }
.text-panel { padding:2rem; background:#151b29; border:1px solid var(--line); }
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; padding-bottom:3rem; }
.legal-layout { display:grid; grid-template-columns:270px minmax(0,1fr); gap:4rem; align-items:start; padding-bottom:3rem; }
.legal-copy { max-width:75ch; }
.legal-copy section { margin-bottom:2.5rem; }
.legal-copy h2 { font-size:1.6rem; }
.detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:2rem; margin-bottom:3rem; align-items:start; }
.detail-grid .artwork { aspect-ratio:3/4; }
dt { color:var(--gold); font-size:.85rem; margin-top:1rem; }
dd { margin:.3rem 0 0; color:var(--muted); }
@media(max-width:1000px) and (min-width:769px) { .site-header { flex-direction:column; align-items:flex-start; gap:1rem; } }
@media(max-width:768px) {
 html,body { overflow-x:visible; }
 .site-header { display:block; position:relative; min-height:86px; padding-right:5rem; }
 .site-header .brand { display:inline-block; max-width:100%; font-size:1.15rem; }
 .site-header nav { display:block; }
 .menu-toggle { display:none; position:absolute; right:1.25rem; top:1.5rem; min-width:44px; min-height:44px; }
 .nav-list { display:flex; width:100%; gap:.2rem; }
 .nav-ready .menu-toggle { display:inline-flex; }
 .nav-ready .nav-list { display:none; }
 .nav-ready.menu-open .nav-list { display:flex; }
 .hero { min-height:540px; padding:4rem .5rem; }
 .hero-title { font-size:clamp(2.7rem,8vw,4rem); }
 .hero-label { letter-spacing:.17em; }
 .hero-deco { inset:15% 3%; }
 .featured { padding:3rem 0; }
 .featured-header { display:block; }
 .cards { grid-template-columns:1fr; }
 .card .artwork { aspect-ratio:16/9; }
 .studio-intro, .legal-layout, .detail-grid { grid-template-columns:1fr; gap:1.5rem; }
 .studio-intro { padding:3rem 0; }
 .project-grid { gap:1rem; }
 .project-copy { padding:1.25rem; }
 .project-copy h2 { font-size:1.6rem; }
 .footer-top,.footer-bottom { flex-direction:column; gap:1rem; }
 .page-intro { padding:3rem 0 2rem; }
 .legal-layout .notice { margin-bottom:0; }
}
@media(max-width:540px) { .project-grid,.contact-grid { grid-template-columns:1fr; } .text-panel { padding:1.5rem; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { transition:none!important; animation:none!important; } }
