/* Sophia Lab — ivory / celestial identity. Local assets; no external dependencies. */
:root {
    color-scheme: light;
    --paper: #faf8f5;
    --ink: #202b36;
    --muted: #68717c;
    --green: #385366;
    --gold: #967450;
    --line: #e4ddd5;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.7 var(--sans); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button, summary, a { touch-action: manipulation; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
[hidden] { display: none !important; }
.section-width, .header-inner { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.eyebrow { font-size: 10px; font-weight: 500; letter-spacing: .22em; color: var(--gold); }
.skip-link { position: fixed; z-index: 20; left: 16px; top: -100px; background: var(--ink); color: white; padding: 12px 20px; }
.skip-link:focus { top: 12px; }

/* Fine-line emblem, wordmark, and compact icon navigation. */
.account-actions { display: flex; align-items: center; gap: 10px; }
.account-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 20px; border-radius: 24px; font-size: 13px; font-weight: 600; }
.account-signin { border: 1px solid var(--line); }
.account-signup { background: var(--ink); color: #fffdfa; }
.account-signin:hover { background: var(--paper); }
.account-signup:hover { background: var(--green); }
.site-header { position: sticky; top: 0; z-index: 15; box-shadow: 0 3px 16px #202b3608; border-bottom: 1px solid var(--line); background: #fffdfa; }
.header-inner { min-height: 101px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; gap: 8px; white-space: nowrap; font: 23px var(--serif); letter-spacing: .12em; }
.brand img { width: 67px; margin-left: -9px; }
.brand-lab { font-size: .85em; letter-spacing: .12em; }
nav { display: flex; gap: 3px; padding: 5px; border: 1px solid #e8e3df; border-radius: 50px; background: linear-gradient(120deg, #f3f1ef, #fdfcfa); }
nav a { min-width: 84px; display: flex; align-items: center; flex-direction: column; gap: 5px; font-size: 10px; padding: 9px 12px; border-radius: 40px; transition: background .2s; }
nav img { width: 22px; height: 22px; }
nav a:hover, nav a[aria-current="true"] { background: #e9e9e8; color: #233545; }
.menu-toggle { background: transparent; border: 1px solid var(--line); border-radius: 20px; padding: 8px 14px; }

/* Sculptural hero: artwork and readable copy are independent layers. */
.hero { position: relative; isolation: isolate; border-bottom: 1px solid var(--line); overflow: hidden; background: #ecf0f1; }
.hero-backdrop { position: absolute; z-index: -2; inset: 0; background-image: url('../images/sophia-hero.png'); background-position: center 46%; background-size: cover; }
.hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(250,248,245,.96) 0%, rgba(250,248,245,.84) 28%, rgba(250,248,245,.33) 47%, transparent 65%), linear-gradient(0deg, #faf8f5 0%, transparent 18%); }
.hero-content { min-height: 574px; display: flex; align-items: center; }
.hero-copy { max-width: 570px; padding: 40px 0 46px; }
.hero .eyebrow { color: #4d6475; font-size: 9px; letter-spacing: .24em; }
.hero h1 { font: normal clamp(62px, 6.5vw, 91px)/1.13 var(--serif); letter-spacing: .075em; margin: 20px 0 20px; }
.hero h1 span { font-size: 1em; }
.hero-tagline { font: 29px/1.35 var(--serif); margin: 0 0 18px; }
.hero-description { color: #586674; font: 18px/1.55 var(--serif); margin: 0 0 18px; }
.hero-intro { max-width: 402px; font-size: 12px; line-height: 1.85; color: #53606b; margin: 0 0 25px; }
.primary-button { display: inline-flex; align-items: center; gap: 46px; background: linear-gradient(135deg, #364756, #192630); color: #fffdf8; padding: 12px 25px; font-size: 12px; border-radius: 30px; box-shadow: 0 5px 15px #2d465322; transition: transform .2s, box-shadow .2s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 7px 20px #2d46533b; }
.hero-foot { display: flex; justify-content: space-between; align-items: center; padding: 20px 0 22px; color: var(--muted); }
.hero-foot > span { font: italic 15px var(--serif); }
.hero-foot a { font-size: 8px; letter-spacing: .15em; }
.hero-foot a span { font-size: 17px; margin-left: 15px; }

/* The six emblems repeat the reference's orbital geometry and material palette. */
.projects-section { padding-block: 39px 52px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
h2 { font: normal 36px/1.25 var(--serif); margin: 8px 0; }
.section-heading .eyebrow { margin-top: 0; }
.section-heading > p { color: var(--muted); font-size: 12px; }
.project-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.project-card { position: relative; display: flex; flex-direction: column; align-items: center; background: linear-gradient(145deg, #fffdfa, #f0f1f3); border: 1px solid #e8e2da; border-radius: 10px; padding: 15px 8px 16px; text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s; }
.project-card:hover { transform: translateY(-5px); border-color: #b8a48b; box-shadow: 0 12px 24px #59697914; }
.project-card[aria-current="true"] { border-color: #b19779; box-shadow: 0 3px 9px #725b4320, inset 0 0 0 3px #fffaf5; background: linear-gradient(145deg, #fffdfa, #f3efea); }
.card-number { align-self: flex-start; margin-left: 5px; font-size: 8px; color: #957956; letter-spacing: .13em; }
.project-card img { width: 167px; margin-block: -10px 1px; }
.project-card h3 { font: normal 21px var(--serif); margin: 0 0 5px; }
.card-byline { font: 9px var(--serif); letter-spacing: .13em; color: #60636b; margin-bottom: 14px; }
.project-card p { font-size: 11px; color: var(--muted); line-height: 1.65; margin: 0 auto 13px; }
.card-arrow { margin-top: auto; color: var(--gold); font-size: 15px; }

/* Project introductions: illustration plate, detail copy, and accessible controls. */
.showcase { border-top: 1px solid var(--line); padding-top: 22px; }
.showcase-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.slider-controls { display: flex; align-items: center; gap: 18px; }
.slider-controls button { border: 1px solid #d6cabc; background: #fffdfa; border-radius: 50%; width: 38px; height: 38px; }
.slider-controls button:hover { background: #e9edf0; }
.slide-count { font-size: 10px; letter-spacing: .1em; color: var(--muted); min-width: 45px; text-align: center; }
.project-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; padding-bottom: 50px; scroll-margin-top: 30px; }
.project-art { background: radial-gradient(ellipse at 65% 30%, #fffdf7, transparent 65%), linear-gradient(140deg, #e6ebef, #f5f1eb 70%, #e5e7ea); border: 1px solid #dfd8cf; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 460px; position: relative; overflow: hidden; }
.project-art::before { content: ''; position: absolute; inset: 14px; border: 1px solid #c5b19466; border-radius: 5px; pointer-events: none; }
.project-art::after { content: ''; position: absolute; width: 470px; height: 470px; border: 1px solid #b9a17c33; border-radius: 50%; pointer-events: none; }
.project-art img { width: 365px; position: relative; z-index: 1; }
.art-label { font-size: 9px; letter-spacing: .24em; color: var(--gold); margin-top: 30px; z-index: 1; }
.art-caption { font: italic 17px var(--serif); color: var(--muted); margin: 0 0 33px; z-index: 1; }
.project-copy { padding: 12px 0; }
.project-copy h3 { font: normal 43px/1.2 var(--serif); margin: 8px 0 15px; }
.project-copy .project-tagline { font: 24px/1.35 var(--serif); color: #6b7e8a; margin-block: 0 18px; }
.project-copy > p:not(.eyebrow):not(.project-tagline) { color: var(--muted); font-size: 13px; line-height: 1.85; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 22px 0; }
.tags li { border: 1px solid #d6dce0; background: #f0f3f4; padding: 4px 10px; border-radius: 20px; font-size: 10px; color: #546879; }
details { border-top: 1px solid var(--line); font-size: 12px; }
summary { cursor: pointer; display: flex; justify-content: space-between; padding: 16px 0 8px; color: var(--green); }
summary::-webkit-details-marker { display: none; }
summary span { transition: transform .2s; }
details[open] summary span { transform: rotate(45deg); }
details p { color: var(--muted); margin: 8px 0; }

/* Closing brand seal and quiet footer. */
.philosophy { position: relative; text-align: center; border-top: 1px solid var(--line); padding: 35px 20px 57px; }
.philosophy-mark { width: 108px; margin: 0 auto 6px; }
.philosophy h2 { font-size: 37px; }
.philosophy > p:not(.eyebrow) { max-width: 510px; margin: 23px auto; font-size: 13px; color: var(--muted); }
.philosophy > a { font-size: 12px; border-bottom: 1px solid var(--gold); padding-bottom: 7px; }
.philosophy > a span { margin-left: 18px; }
.site-footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 26px; font-size: 10px; color: var(--muted); }
.site-footer .brand { color: var(--ink); font-size: 19px; }

/* Responsive art direction preserves the image without placing text over the face. */
@media (min-width: 1650px) { .hero-backdrop { background-position: center 43%; } .hero-content { min-height: 625px; } }
@media (max-width: 1100px) {
    .section-width, .header-inner { width: calc(100% - 56px); }
    .header-inner { gap: 16px; }
    nav a { min-width: 70px; padding-inline: 8px; font-size: 9px; }
    .brand { font-size: 21px; }
    .brand img { width: 56px; }
    .hero h1 { font-size: 65px; }
    .hero-copy { max-width: 49%; }
    .hero-tagline { font-size: 26px; }
    .hero-description { font-size: 17px; }
    .hero-content { min-height: 550px; }
    .project-grid { grid-template-columns: repeat(3, 1fr); }
    .project-card img { width: 185px; }
    .project-panel { gap: 38px; }
}
@media (max-width: 760px) {
    html { scroll-padding-top: 20px; }
    .section-width, .header-inner { width: calc(100% - 36px); }
    .header-inner { flex-wrap: wrap; min-height: 78px; gap: 0; padding-block: 8px; }
    .brand { font-size: 21px; }
    .brand img { width: 54px; }
    .menu-toggle:not([hidden]) { display: flex; gap: 15px; }
    nav { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; border-radius: 14px; padding: 7px; }
    nav a { font-size: 10px; border-radius: 8px; padding-block: 10px; }
    .js-enabled nav:not(.is-open) { display: none; }
    .hero-content { min-height: 740px; align-items: flex-start; }
    .hero-copy { max-width: 100%; text-align: center; padding: 30px 0 0; width: 100%; }
    .hero .eyebrow { font-size: 7px; letter-spacing: .16em; }
    .hero h1 { font-size: clamp(41px, 11vw, 65px); margin: 15px 0 18px; }
    .hero-tagline { font-size: 25px; }
    .hero-description { font-size: 16px; }
    .hero-intro { font-size: 11px; max-width: 335px; margin: 0 auto 23px; }
    .hero-backdrop { top: 350px; bottom: 0; background-size: auto 430px; background-position: 79% bottom; background-repeat: no-repeat; }
    .hero::after { background: linear-gradient(180deg, #faf8f5 0%, #faf8f5 42%, rgba(250,248,245,.25) 56%, transparent 66%, rgba(250,248,245,.1) 89%, #faf8f5 98%); }
    .hero-foot { padding-block: 16px 19px; }
    .hero-foot > span { font-size: 12px; }
    .hero-foot a { font-size: 7px; letter-spacing: .06em; }
    .hero-foot a span { margin-left: 4px; }
    .projects-section { padding-block: 30px 38px; }
    .section-heading { align-items: flex-start; gap: 14px; margin-bottom: 20px; }
    h2 { font-size: 28px; }
    .section-heading > p { font-size: 10px; padding-top: 7px; }
    .eyebrow { font-size: 8px; }
    .project-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .project-card { padding-top: 12px; }
    .project-card img { width: 160px; }
    .project-card h3 { font-size: 19px; }
    .card-byline { font-size: 8px; }
    .project-card p { font-size: 10px; min-height: 32px; }
    .project-panel { grid-template-columns: 1fr; gap: 20px; padding-bottom: 35px; }
    .project-art { min-height: 333px; }
    .project-art img { width: 295px; margin-block: -10px; }
    .project-art::after { width: 310px; height: 310px; }
    .art-caption { font-size: 15px; margin-bottom: 25px; }
    .project-copy { padding-inline: 5px; }
    .project-copy h3 { font-size: 36px; }
    .project-copy .eyebrow { font-size: 9px; }
    .philosophy { padding: 30px 8px 45px; }
    .philosophy h2 { font-size: 29px; }
    .site-footer { flex-wrap: wrap; gap: 10px; }
    .site-footer p { order: 3; width: 100%; margin: 3px 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
@media print {
    .project-panel[hidden] { display: grid !important; }
    .slider-controls, .menu-toggle, .hero-foot { display: none !important; }
    .project-panel { break-inside: avoid; }
    .project-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Local dashboard prototype entry point. */
.dashboard-link { display: inline-block; margin: 16px 0 0 18px; color: var(--green); font-size: 12px; border-bottom: 1px solid #b8a48b; }

/* Account access stays in the main header. */
.header-inner { gap: 18px; }
.account-actions { flex-shrink: 0; }
@media (min-width: 761px) and (max-width: 1200px) {
 .header-inner { flex-wrap: wrap; padding-block: 12px; }
 .header-inner #main-nav { order: 3; margin-inline: auto; }
}
@media (max-width: 760px) {
 .header-inner { gap: 8px; }
 .header-inner .brand { font-size: 16px; margin-right: auto; }
 .header-inner .brand img { width: 40px; }
 .menu-toggle:not([hidden]) { gap: 5px; padding: 6px 9px; font-size: 12px; }
 .header-inner .account-actions { order: 2; width: 100%; justify-content: flex-end; }
 .header-inner #main-nav { order: 3; }
 html { scroll-padding-top: 145px; }
}
@media print { .site-header { position: static; } .account-actions { display: none; } }

.footer-legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 20px; }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
