/* ======================================================================
   KHAL'VARUNA / VISUAL SYSTEM
   MODULE  : site
   STANDARD: KCS 1.0 / Architectural Symmetry
   ====================================================================== */

:root {
    --color-bg:       #080e16;
    --color-panel:    #101b26;
    --color-panel-2:  #14242d;
    --color-ink:      #e8ede8;
    --color-muted:    #9daeb4;
    --color-gold:     #d3b979;
    --color-aqua:     #80e0d2;
    --color-line:     #29404a;
    --content-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body {
    margin: 0;
    color: var(--color-ink);
    background: radial-gradient(ellipse at 60% 0%, #162b34 0%, #080e16 37%, #060a11 100%);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-aqua); outline-offset: 4px; }
button { font: inherit; }
p { margin: 0 0 1.2rem; }
h1, h2, h3 { line-height: 1.2; }
h2 { margin: .55rem 0 1.5rem; font: 400 clamp(2.15rem, 4.5vw, 3.45rem)/1.16 Georgia, serif; }
h3 { margin: 0 0 .75rem; font-size: 1.1rem; font-weight: 600; }
.container { width: min(calc(100% - 48px), var(--content-width)); margin-inline: auto; }
.muted, .section-heading p, .timeline p, .project-card p, .feature-card p,
.copy-block p, .contact-panel p { color: var(--color-muted); }
.fine-print { color: #91a3a9; font-size: .82rem; }
.eyebrow, .meta {
    color: var(--color-aqua);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .23em;
    text-transform: uppercase;
}
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 100; padding: 12px; background: #fff; color: #000; }
.skip-link:focus { top: 12px; }

/* ----------------------------------------------------------------------
   PERSISTENT VISUAL IDENTITY / ALL SECTIONS
   ---------------------------------------------------------------------- */
.watermark {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url('../assets/tattoo-watermark.png');
    background-repeat: repeat-y;
    background-position: right 4.5vw top 135px;
    background-size: clamp(150px, 18vw, 260px) auto;
    opacity: .095;
    filter: sepia(.5) saturate(.75);
}
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* ----------------------------------------------------------------------
   NAVIGATION
   ---------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid #ffffff18;
    background: #081018e8;
    backdrop-filter: blur(12px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { white-space: nowrap; font-size: 1rem; font-weight: 700; letter-spacing: .14em; }
.brand span, .brand i { color: var(--color-gold); font-style: normal; }
.site-nav { display: flex; flex-wrap: wrap; gap: clamp(12px, 2vw, 26px); }
.site-nav a { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #bbc9ca; }
.site-nav a:hover, .contact-link:hover { color: var(--color-aqua); }
.menu-toggle { display: none; padding: 8px 12px; color: var(--color-ink); background: none; border: 1px solid var(--color-line); }

/* ----------------------------------------------------------------------
   HERO
   ---------------------------------------------------------------------- */
.hero { min-height: 625px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: center; padding-block: 104px 110px; }
.hero h1 { margin: 24px 0; font-size: clamp(3.6rem, 7vw, 6rem); letter-spacing: -.065em; line-height: 1.05; }
.hero h1 em { color: var(--color-gold); font-style: normal; }
.hero__lead { max-width: 640px; color: #bdcbce; font-size: 1.13rem; }
.hero__emblem { width: 100%; max-width: 360px; margin-inline: auto; filter: drop-shadow(0 0 30px #80e0d21a); }
.hero__emblem svg { width: 100%; height: auto; display: block; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { padding: 13px 21px; border: 1px solid var(--color-gold); color: var(--color-gold); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; }
.button:hover { background: var(--color-gold); color: var(--color-bg); }
.button--quiet { border-color: #516b76; color: #e0eced; }
.button--quiet:hover { background: #213943; color: white; }

/* ----------------------------------------------------------------------
   SHARED SECTIONS
   ---------------------------------------------------------------------- */
.section { padding-block: 92px; border-top: 1px solid #ffffff17; }
.two-column { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(35px, 7vw, 98px); }
.copy-block { max-width: 640px; }
.copy-block strong { color: var(--color-ink); }
.copy-block h3:not(:first-child) { margin-top: 26px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 45px; margin-bottom: 38px; }
.section-heading h2 { max-width: 650px; }
.section-heading p { max-width: 390px; font-size: .93rem; }
.principle { border-left: 2px solid var(--color-gold); margin-top: 30px; padding: 14px 23px; background: #14252b66; }
.principle h3 { font-family: Georgia, serif; font-weight: 400; font-size: 1.25rem; margin: 8px 0; }
.principle p { margin: 0; font-size: .88rem; }
.principle__mark { color: var(--color-gold); font-size: .7rem; letter-spacing: .2em; font-weight: 700; }
.principle--small { margin-top: 34px; }

/* ----------------------------------------------------------------------
   WORK TIMELINE & FEATURED CASES
   ---------------------------------------------------------------------- */
.timeline { margin-bottom: 28px; border-top: 1px solid var(--color-line); }
.timeline__item { display: grid; grid-template-columns: 200px 1fr; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--color-line); }
.timeline__period { color: var(--color-gold) !important; font-size: .8rem; letter-spacing: .07em; }
.timeline__item p { max-width: 800px; margin-bottom: 0; font-size: .95rem; }
.featured-work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 38px; }
.feature-card, .project-card { padding: 28px; border: 1px solid var(--color-line); background: linear-gradient(135deg, #14262ca8, #0c151dcb); }
.feature-card h3 { margin-top: 13px; font: 400 1.5rem/1.3 Georgia, serif; }
.feature-card p, .project-card p { font-size: .94rem; }
.feature-card .fine-print { font-size: .78rem; }

/* ----------------------------------------------------------------------
   RESEARCH CARDS
   ---------------------------------------------------------------------- */
.cards { display: grid; gap: 18px; }
.cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-card { display: flex; flex-direction: column; min-height: 340px; }
.project-card__glyph { color: var(--color-gold); font: 2.3rem Georgia, serif; height: 64px; }
.project-card h3 { margin-top: 14px; font: 400 1.65rem Georgia, serif; }
.project-card__tag { margin-top: auto; padding-top: 15px; color: var(--color-aqua); font-size: .72rem; }

/* ----------------------------------------------------------------------
   TECHNOLOGY, IDENTITY & CONTACT
   ---------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0 32px; }
.chips span { border: 1px solid #7db7ad65; padding: 6px 10px; color: #d3e6e1; background: #12272a8c; font-size: .8rem; }
.chips--muted span { border-color: #536b7770; background: #12202a8c; color: #bdd1d5; }
.pull-quote { margin-top: 30px !important; color: var(--color-gold) !important; font: 400 1.65rem/1.45 Georgia, serif; }
.contact-panel { display: flex; justify-content: space-between; align-items: center; gap: 50px; padding: 40px; border: 1px solid var(--color-line); background: linear-gradient(105deg, #172831, #0d161f); }
.contact-panel > div { max-width: 630px; }
.contact-panel h2 { margin-top: 0; }
.contact-link { flex-shrink: 0; color: var(--color-gold); font-size: 1.2rem; border-bottom: 1px solid var(--color-gold); padding-bottom: 6px; }
.footer-disclaimer { max-width: 850px; margin-top: 25px; }
.site-footer { border-top: 1px solid #ffffff1c; padding-block: 26px; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #8ea3a9; font-size: .74rem; letter-spacing: .035em; }

/* ----------------------------------------------------------------------
   RESPONSIVE & ACCESSIBILITY
   ---------------------------------------------------------------------- */
@media (max-width: 900px) {
    .site-header__inner { flex-wrap: wrap; padding-block: 16px; }
    .site-nav { width: 100%; }
    .two-column, .cards--three { grid-template-columns: 1fr; }
    .section-heading { display: block; }
    .hero { min-height: auto; }
    .contact-panel { display: block; }
    .contact-link { display: inline-block; margin-top: 12px; }
    .project-card { min-height: 250px; }
}
@media (max-width: 640px) {
    .container { width: min(calc(100% - 34px), var(--content-width)); }
    .site-header__inner { min-height: 62px; }
    .menu-toggle { display: block; margin-left: auto; }
    .site-nav { display: none; flex-direction: column; gap: 14px; padding-block: 12px; }
    .site-nav.is-open { display: flex; }
    .hero { grid-template-columns: 1fr; padding-block: 70px 76px; gap: 8px; }
    .hero__emblem { grid-row: 1; max-width: 215px; }
    .hero h1 { font-size: clamp(3rem, 12vw, 4rem); }
    .section { padding-block: 62px; }
    .timeline__item { grid-template-columns: 1fr; gap: 2px; }
    .featured-work { grid-template-columns: 1fr; }
    .contact-panel { padding: 25px; }
    .watermark { background-size: 150px auto; background-position: right -15px top 120px; opacity: .06; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* ----------------------------------------------------------------------
   KCS 1.0 / TECHNICAL HERITAGE
   ---------------------------------------------------------------------- */
.heritage-note {
    margin: 2rem 0 2.5rem;
    padding: 2rem 2.25rem;
    border-left: 2px solid var(--gold, #d3b979);
    border-top: 1px solid rgba(211, 185, 121, .18);
    border-bottom: 1px solid rgba(211, 185, 121, .18);
    background: linear-gradient(110deg, rgba(20, 36, 43, .8), rgba(8, 14, 22, .3));
}
.heritage-note h3 {
    margin: .7rem 0;
    font-family: Georgia, serif;
    font-size: clamp(1.5rem, 2.3vw, 2.1rem);
    font-weight: 400;
}
.heritage-note p { max-width: 75ch; }


/* ----------------------------------------------------------------------
   KHAL'VARUNA / ENERGY RESEARCH LINK
   ---------------------------------------------------------------------- */
.site-nav__feature {
    color: var(--color-gold) !important;
    border-bottom: 1px solid rgba(211, 185, 121, .42);
    padding-bottom: 5px;
}
.project-card--energy {
    border-color: rgba(211, 185, 121, .4);
}
.project-card__link {
    display: inline-block;
    margin-top: 22px;
    color: var(--color-aqua);
    font-size: .82rem;
    font-weight: 650;
    text-decoration: none;
}
.project-card__link:hover,
.project-card__link:focus-visible { text-decoration: underline; }

/* Balanced research portfolio: four concept cards, two per row. */
#lab .cards--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 700px) {
    #lab .cards--three { grid-template-columns: 1fr; }
}
