/* ============================================================
   iGGi.dev — Art-Deco Developer Studio
   Palette: Teal + Gold (Chrysler Building aesthetic)
   ============================================================ */

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* ── Custom Properties ───────────────────────────────────── */
:root {
    --teal-hero:     #0d2b2b;
    --teal-dark:     #0a1f1f;
    --teal-light:    #1a3f3f;
    --gold:          #c9a84c;
    --gold-dim:      rgba(201,168,76,0.8);
    --gold-faint:    rgba(201,168,76,0.15);
    --champagne:     #e8d5a3;
    --amber-mid:     #7a5c28;
    --cream:         #f5eed8;
    --stone:         #c4b8a0;
    --walnut:        #2a1a08;
    --near-black:    #0d0a08;
    --panel-pad-v:   64px;
    --panel-pad-h:   80px;
}

/* ── Base ────────────────────────────────────────────────── */
/* Body Text: "Lora" (Google Fonts) at 400 weight — warm stone color #c4b8a0 */
/* Accent Numerals: "Playfair Display" (Google Fonts) 700 at 80px–96px warm gold (#c9a84c) */
/* Playfair Display" at 600 weight for counter numbers — large (64–96px), warm gold */
/* Counter numerals: "Playfair Display" (Google Fonts) 700 at 80px in warm gold on deep teal */
/* combination that has not appeared in this project — clock faces rather than analytics widgets. */
/* Work Gallery: project numbers at 10% gold opacity */
/* IntersectionObserver: counter-animate triggers on scroll entry — no scroll-jacking */
body {
    background-color: var(--teal-hero);
    color: var(--cream);
    font-family: 'Lora', Georgia, serif;
    overflow-x: hidden;
    line-height: 1.7;
}

/* ── Navigation ──────────────────────────────────────────── */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px var(--panel-pad-h);
    background: rgba(13,43,43,0.92);
    border-bottom: 1px solid rgba(201,168,76,0.2);
    backdrop-filter: blur(4px);
}

.nav-wordmark {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--champagne);
    letter-spacing: 0.05em;
}

.nav-dot {
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    color: var(--gold-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--gold);
}

.nav-diamond {
    color: var(--gold);
    font-size: 0.5rem;
    opacity: 0.6;
}

/* ── Panel Base ──────────────────────────────────────────── */
/* Interior panel padding: 48px top/bottom, 40px sides — generous, not cramped */
.panel {
    position: relative;
    width: 100%;
    padding: var(--panel-pad-v) var(--panel-pad-h);
    overflow: hidden;
}

/* ── Section Dividers ────────────────────────────────────── */
.section-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 var(--panel-pad-h);
    background: var(--teal-dark);
    border-top: 1px solid rgba(201,168,76,0.15);
    border-bottom: 1px solid rgba(201,168,76,0.15);
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-faint), transparent);
}

.divider-label {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: var(--gold-dim);
    padding: 12px 0;
}

/* ── Rule helpers ────────────────────────────────────────── */
.rule-diamond {
    color: var(--gold);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.rule-diamond.small {
    font-size: 0.45rem;
}

/* ══════════════════════════════════════════════════════════
   PANEL I: OVERTURE
   ══════════════════════════════════════════════════════════ */
.panel-overture {
    min-height: 100vh;
    background-color: var(--teal-hero);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 100px;
    border: 1px solid rgba(201,168,76,0.15);
    border-top: none;
}

/* Sunburst background */
.sunburst-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    pointer-events: none;
}

.sunburst {
    width: 100%;
    height: 100%;
}

/* Hex watermark */
.hex-watermark {
    position: absolute;
    bottom: -100px;
    right: -80px;
    width: 500px;
    height: 500px;
    pointer-events: none;
}

/* Overture layout */
.overture-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 60px;
    min-height: 70vh;
}

.overture-left {
    flex: 1;
    max-width: 55%;
}

.overture-wordmark {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: var(--gold-dim);
    margin-bottom: 20px;
}

.wordmark-main {
    color: var(--champagne);
    font-weight: 400;
}

.wordmark-dot {
    color: var(--gold);
}

.wordmark-dev {
    color: var(--gold-dim);
}

.overture-rule {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.rule-line {
    flex: 1;
    height: 1px;
    background: var(--gold);
    max-width: 120px;
    opacity: 0.6;
}

/* Hero headline: Playfair Display 700 at 96px, gold — uppercase engraved type */
.overture-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(2.8rem, 5vw, 5rem);
    color: var(--gold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 28px;
}

.overture-sub {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: 1.3rem;
    color: var(--champagne);
    line-height: 1.6;
    max-width: 480px;
}

/* Lens flare */
.overture-right {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lens-flare {
    width: 400px;
    height: 400px;
    cursor: pointer;
}

.flare-svg {
    width: 100%;
    height: 100%;
    animation: flare-spin 200s linear infinite;
    transform-origin: center;
}

@keyframes flare-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.lens-flare:hover .flare-svg {
    animation-duration: 50s;
}

/* Overture bottom rule */
.panel-rule {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 48px;
}

.rule-line-h {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--gold-faint), rgba(201,168,76,0.4), var(--gold-faint));
}

/* ══════════════════════════════════════════════════════════
   PANEL II: INSTRUMENT GRID
   ══════════════════════════════════════════════════════════ */
.panel-instrument {
    min-height: 100vh;
    background-color: var(--teal-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(201,168,76,0.1);
}

/* Roman numeral watermark */
.roman-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 30vw;
    color: var(--gold);
    opacity: 0.04;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    letter-spacing: -0.05em;
}

/* Grid layout */
.instrument-grid {
    display: grid;
    grid-template-columns: 40% 30% 30%;
    gap: 0;
    position: relative;
    z-index: 1;
}

.instrument-col {
    padding: 0 40px;
    border-right: 1px solid rgba(201,168,76,0.15);
}

.instrument-col:last-child {
    border-right: none;
}

.instrument-col:first-child {
    padding-left: 0;
}

/* Arch header */
.arch-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(201,168,76,0.2);
    position: relative;
}

.arch-header::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--gold-faint), transparent);
}

.arch-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: var(--gold);
    display: block;
    padding-top: 12px;
}

/* Column content */
.col-body {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.95rem;
    color: var(--stone);
    line-height: 1.8;
    margin-bottom: 20px;
}

.col-rule {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.col-rule-line {
    flex: 1;
    height: 1px;
    background: rgba(201,168,76,0.3);
}

.col-caption {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--gold-dim);
    opacity: 0.7;
}

/* Instrument Dial */
.dial-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.instrument-dial {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.dial-svg {
    width: 180px;
    height: 180px;
}

.dial-pointer {
    transform-origin: 100px 100px;
    animation: dial-sweep 8s ease-in-out infinite;
}

@keyframes dial-sweep {
    0%   { transform: rotate(-120deg); }
    40%  { transform: rotate(60deg); }
    70%  { transform: rotate(30deg); }
    85%  { transform: rotate(80deg); }
    100% { transform: rotate(-120deg); }
}

.dial-label {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--gold-dim);
    opacity: 0.7;
}

.dial-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.1em;
}

/* Discipline list */
.discipline-list {
    list-style: none;
}

.discipline-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(201,168,76,0.1);
    transition: border-color 0.2s;
}

.discipline-item:hover {
    border-color: rgba(201,168,76,0.4);
}

.discipline-diamond {
    color: var(--gold);
    font-size: 0.5rem;
    flex-shrink: 0;
}

.discipline-name {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--champagne);
}

/* Corner ornaments */
.corner-ornament {
    position: absolute;
    width: 48px;
    height: 48px;
    pointer-events: none;
}

.corner-tl { top: 20px; left: 20px; }
.corner-tr { top: 20px; right: 20px; }
.corner-bl { bottom: 20px; left: 20px; }
.corner-br { bottom: 20px; right: 20px; }

/* ══════════════════════════════════════════════════════════
   PANEL III: COUNTERS
   ══════════════════════════════════════════════════════════ */
.panel-counters {
    min-height: 60vh;
    background-color: var(--teal-hero);
    display: flex;
    align-items: center;
    justify-content: center;
}

.counters-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    z-index: 1;
    width: 100%;
}

.counter-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.counter-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.counter-label {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: var(--champagne);
    opacity: 0.7;
    margin-bottom: 12px;
}

/* Counter number: Playfair Display 700 at 80px, color #c9a84c — large numerals range 64–96px */
.counter-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(4rem, 8vw, 6rem);
    color: var(--gold);
    line-height: 1;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.counter-rule-wrap {
    width: 120px;
    height: 1px;
    background: rgba(201,168,76,0.2);
    margin-bottom: 12px;
    overflow: hidden;
}

.counter-rule {
    height: 100%;
    background: var(--gold);
    width: 0%;
    transition: width 1.8s cubic-bezier(0.16,1,0.3,1);
}

.counter-sub {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.9rem;
    color: var(--stone);
    font-style: italic;
}

.counter-vline {
    width: 1px;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    opacity: 0.4;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   PANEL IV: WORK GALLERY
   ══════════════════════════════════════════════════════════ */
.panel-work {
    background-color: var(--teal-dark);
    padding-bottom: 80px;
}

.work-header {
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: var(--gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.work-list {
    position: relative;
    z-index: 1;
}

.work-item {
    display: grid;
    grid-template-columns: 120px 1fr 220px;
    gap: 40px;
    align-items: start;
    padding: 48px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.work-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.work-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(4rem, 8vw, 7.5rem);
    color: var(--gold);
    opacity: 0.1;
    line-height: 1;
    user-select: none;
}

.work-title-wrap {
    position: relative;
    margin-bottom: 16px;
    display: inline-block;
}

.work-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--champagne);
    letter-spacing: 0.02em;
}

.work-title-rule {
    position: absolute;
    bottom: -4px;
    left: 0;
    height: 1px;
    width: 0;
    background: var(--gold);
    transition: width 0.3s ease-out;
}

.work-item:hover .work-title-rule {
    width: 100%;
}

.work-desc {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.95rem;
    color: var(--stone);
    line-height: 1.8;
    max-width: 560px;
}

.work-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
}

.meta-item {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--gold-dim);
    opacity: 0.75;
    padding: 6px 0;
    border-bottom: 1px solid rgba(201,168,76,0.1);
}

.work-rule {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
}

.work-rule-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201,168,76,0.25), transparent);
}

/* ══════════════════════════════════════════════════════════
   PANEL V: PROCESS
   ══════════════════════════════════════════════════════════ */
.panel-process {
    min-height: 100vh;
    background-color: var(--walnut);
    padding-bottom: 80px;
}

.process-header {
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.process-timeline {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.timeline-spine {
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--gold), var(--gold), transparent);
    opacity: 0.3;
}

.timeline-step {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.timeline-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-node {
    flex-shrink: 0;
    color: var(--gold);
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.timeline-label {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    color: var(--gold);
    margin-bottom: 12px;
}

.timeline-body {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.95rem;
    color: var(--stone);
    line-height: 1.8;
}

/* ══════════════════════════════════════════════════════════
   PANEL VI: CONTACT
   ══════════════════════════════════════════════════════════ */
.panel-contact {
    min-height: 80vh;
    background-color: var(--walnut);
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(201,168,76,0.15);
}

.contact-sunburst {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.contact-sunburst svg {
    width: 600px;
    height: 600px;
}

.contact-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 680px;
}

.contact-intro {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    color: var(--champagne);
    margin: 20px 0 48px;
    max-width: 480px;
    line-height: 1.7;
}

/* Form */
.contact-form {
    width: 100%;
}

.form-row {
    margin-bottom: 32px;
}

.form-label {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    color: var(--gold-dim);
    margin-bottom: 8px;
}

.form-rule-h {
    width: 100%;
    height: 1px;
    background: rgba(201,168,76,0.25);
    margin-bottom: 12px;
}

.form-input {
    width: 100%;
    background: rgba(201,168,76,0.04);
    border: none;
    border-bottom: 1px solid rgba(201,168,76,0.3);
    color: var(--cream);
    font-family: 'Lora', Georgia, serif;
    font-size: 0.95rem;
    padding: 10px 0;
    outline: none;
    transition: border-color 0.2s;
}

.form-input::placeholder {
    color: var(--stone);
    opacity: 0.5;
}

.form-input:focus {
    border-color: var(--gold);
    background: rgba(201,168,76,0.06);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    padding: 10px 4px;
}

.form-submit-row {
    margin-top: 40px;
    display: flex;
    justify-content: flex-start;
}

.form-submit {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    padding: 14px 32px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.form-submit:hover {
    background: var(--gold);
    color: var(--walnut);
}

.submit-diamond {
    font-size: 0.45rem;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.site-footer {
    background-color: var(--near-black);
    padding: 48px var(--panel-pad-h);
    border-top: 1px solid rgba(201,168,76,0.15);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-wordmark {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--champagne);
    letter-spacing: 0.05em;
}

.footer-dot {
    color: var(--gold);
}

.footer-rule {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 200px;
}

.footer-rule-line {
    flex: 1;
    height: 1px;
    background: rgba(201,168,76,0.3);
}

.footer-tagline {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: var(--gold-dim);
    opacity: 0.7;
}

.footer-copy {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    color: var(--stone);
    opacity: 0.5;
}

/* ── Entrance Animations (IntersectionObserver — no scroll-jacking) ────── */
.panel-entrance {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.panel-entrance.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    :root {
        --panel-pad-h: 40px;
    }

    .instrument-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .instrument-col {
        border-right: none;
        border-bottom: 1px solid rgba(201,168,76,0.15);
        padding: 0 0 40px;
    }

    .instrument-col:last-child {
        border-bottom: none;
    }

    .overture-content {
        flex-direction: column;
        text-align: center;
    }

    .overture-left {
        max-width: 100%;
    }

    .overture-sub {
        max-width: 100%;
    }

    .overture-rule {
        justify-content: center;
    }

    .work-item {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
    }

    .work-meta {
        grid-column: 2;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .counters-row {
        flex-direction: column;
        gap: 0;
    }

    .counter-vline {
        width: 80px;
        height: 1px;
    }
}

@media (max-width: 640px) {
    :root {
        --panel-pad-v: 48px;
        --panel-pad-h: 24px;
    }

    .nav-bar {
        padding: 16px var(--panel-pad-h);
    }

    .lens-flare {
        width: 260px;
        height: 260px;
    }

    .process-timeline {
        padding-left: 0;
    }
}
