
@layer base {
 :root { --background: 48 20% 96%; --foreground: 200 12% 13%; --card: 48 20% 96%; --card-foreground: 200 12% 13%; --popover: 48 20% 96%; --popover-foreground: 200 12% 13%; --primary: 65 90% 60%; --primary-foreground: 200 12% 13%; --secondary: 48 15% 91%; --secondary-foreground: 200 12% 13%; --muted: 48 15% 91%; --muted-foreground: 200 5% 42%; --accent: 65 90% 60%; --accent-foreground: 200 12% 13%; --destructive: 0 70% 45%; --destructive-foreground: 0 0% 100%; --border: 48 8% 80%; --input: 48 8% 80%; --ring: 200 12% 13%; --radius: 0.25rem; --paper: #f6f5f0; --ink: #1d2528; --acid: #e1ec40; --quiet: #697074; --line: #d8dad4; }
 * { box-sizing: border-box; }
 html { scroll-behavior: smooth; scroll-padding-top: 90px; }
 body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'IBM Plex Sans', sans-serif; overflow-x: clip; }
 a { color: inherit; text-decoration: none; }
 button, a { -webkit-tap-highlight-color: transparent; }
 a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
 h1,h2,h3,p { margin: 0; }
 h1,h2,h3,.wordmark { font-family: Manrope, sans-serif; }
 ::selection { background: var(--acid); color: var(--ink); }
}
.site-header { height: 100px; margin: 0 5.5%; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-size: 32px; font-weight: 800; letter-spacing: -2px; }
.wordmark span { color: var(--ink); display: inline-block; position: relative; }
.wordmark span::after { content: ''; position: absolute; width: 8px; height: 4px; background: var(--acid); bottom: 6px; left: 1px; }
.navigation { display: flex; align-items: center; gap: 38px; font-size: 14px; }
.navigation a:not(.nav-contact):hover { text-decoration: underline; text-underline-offset: 6px; }
.nav-contact { background: var(--ink); color: var(--paper); padding: 13px 21px; display: flex; align-items: center; gap: 30px; }
.nav-contact:hover { background: var(--quiet); }
.menu-toggle { display: none; }
.hero { padding: 43px 5.5% 0; min-height: calc(100dvh - 100px); display: flex; flex-direction: column; }
.hero-eyebrow,.eyebrow,.hero-footnote,.image-label,.image-index { font-size: 10px; font-weight: 500; letter-spacing: 1.65px; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; }
.status-dot { width: 7px; height: 7px; background: var(--ink); border-radius: 50%; box-shadow: 0 0 0 4px var(--acid); margin-right: 5px; }
.edition { margin-left: auto; color: var(--quiet); }
h1 { font-size: clamp(65px, 8.7vw, 136px); line-height: 1.05; font-weight: 500; letter-spacing: -0.07em; margin: 43px 0 36px; }
.headline-second { padding-left: 10.5%; }
.accent-period { display: inline-block; color: var(--ink); position: relative; z-index: 0; }
.accent-period::before { content: ''; width: .4em; height: .24em; background: var(--acid); position: absolute; bottom: .07em; left: 0; z-index: -1; }
.hero-bottom { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 48px; }
.hero-intro p { font-size: 18px; line-height: 1.6; color: var(--quiet); }
.text-link { display: inline-flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--ink); transition: gap .2s ease; }
.text-link:hover { gap: 32px; }
.hero-intro .text-link { margin-top: 15px; }
.profile-window { position: relative; display: flex; gap: 22px; padding: 22px 29px; align-items: center; margin-right: 1px; }
.portrait-frame { background: var(--line); width: 82px; height: 94px; overflow: hidden; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.profile-window strong { font-family: Manrope,sans-serif; font-size: 17px; font-weight: 600; display: block; margin-bottom: 6px; }
.profile-window div>span { display: block; font-size: 12px; color: var(--quiet); }
.profile-window a { display: flex; align-items: center; gap: 13px; margin-top: 12px; font-size: 12px; }
.corner { position: absolute; width: 15px; height: 15px; border-color: var(--ink); }
.top-left { top: 0; left: 0; border-top: 1px solid; border-left: 1px solid; }
.bottom-right { bottom: 0; right: 0; border-bottom: 1px solid; border-right: 1px solid; }
.hero-footnote { margin-top: auto; border-top: 1px solid var(--line); padding: 20px 0; display: flex; justify-content: space-between; color: var(--quiet); font-size: 9px; }
.hero-footnote span:last-child { display: flex; align-items: center; gap: 12px; }
.work-section { background: var(--ink); color: var(--paper); padding: 78px 5.5% 36px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 39px; }
.eyebrow { display: inline-block; }
.section-heading .eyebrow { color: var(--acid); }
.section-heading h2 { font-size: clamp(32px,4vw,55px); font-weight: 500; letter-spacing: -2px; margin-top: 18px; }
.section-heading p { font-size: 14px; color: #b6bcbe; line-height: 1.65; margin-bottom: 6px; }
.project-feature { margin: 0; }
.project-image { height: clamp(260px,38vw,520px); position: relative; overflow: hidden; }
.project-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease, transform 1.2s ease; transform: scale(1.03); }
.project-image img.is-active { opacity: 1; transform: scale(1); z-index: 1; }
.photo-dots { position: absolute; left: 25px; bottom: 20px; z-index: 2; display: flex; gap: 8px; }
.photo-dots button { width: 28px; height: 4px; padding: 0; border: 0; background: rgba(246,245,240,.45); cursor: pointer; }
.photo-dots button.is-active { background: var(--acid); }
.image-label { position: absolute; top: 23px; left: 25px; z-index: 2; background: var(--paper); color: var(--ink); padding: 12px 15px; font-size: 9px; }
.image-index { position: absolute; bottom: 23px; right: 25px; z-index: 2; color: var(--paper); }
figcaption { display: flex; justify-content: space-between; align-items: center; padding: 28px 0; gap: 30px; border-bottom: 1px solid #475052; }
figcaption .eyebrow { font-size: 9px; color: #b6bcbe; }
figcaption h3 { margin-top: 10px; font-size: 28px; font-weight: 500; letter-spacing: -1px; }
figcaption p { margin-left: auto; font-size: 14px; line-height: 1.65; color: #b6bcbe; }
.round-link { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid #677173; flex-shrink: 0; transition: background .2s, color .2s; }
.round-link:hover { background: var(--acid); color: var(--ink); }
.work-note { display: flex; justify-content: space-between; align-items: center; padding-top: 13px; }
.work-note>span { color: #b6bcbe; font-size: 11px; }
.work-note .text-link { border: none; font-size: 12px; }
.about-section { display: grid; grid-template-columns: 1fr 1.4fr; gap: 70px; padding: 105px 9% 110px 5.5%; }
.about-label { display: flex; flex-direction: column; justify-content: space-between; align-items: start; }
.about-symbol { font-family: Manrope, sans-serif; font-size: 180px; line-height: 1; color: var(--ink); background: var(--acid); width: 155px; height: 155px; display: grid; place-items: center; margin-top: 50px; }
.about-copy h2 { font-size: clamp(32px, 3.8vw, 54px); font-weight: 500; letter-spacing: -2px; line-height: 1.15; margin-bottom: 28px; }
.about-copy p { font-size: 17px; line-height: 1.75; color: var(--quiet); max-width: 550px; margin-bottom: 18px; }
.about-copy .text-link { margin-top: 10px; }
.contact-section { background: var(--acid); padding: 58px 5.5% 52px; }
.contact-main { display: flex; justify-content: space-between; align-items: center; margin: 25px 0 33px; gap: 30px; }
.contact-main h2 { font-size: clamp(40px, 5.8vw, 83px); letter-spacing: -.055em; font-weight: 500; line-height: 1.13; }
.contact-arrow { border: 1px solid var(--ink); height: 106px; width: 106px; display: grid; place-items: center; flex-shrink: 0; transition: background .2s,color .2s; }
.contact-arrow svg { height: 53px; width: 53px; stroke-width: 1.2; }
.contact-arrow:hover { background: var(--ink); color: var(--acid); }
.contact-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #a9b333; padding-top: 24px; }
.contact-bottom p { font-size: 14px; line-height: 1.6; }
.site-footer { margin: 0 5.5%; padding: 35px 0; display: flex; justify-content: space-between; align-items: center; }
.site-footer>div { display: flex; align-items: center; gap: 26px; }
.site-footer span:not(.wordmark span) { font-size: 11px; color: var(--quiet); }
.site-footer>div:last-child { gap: 30px; font-size: 12px; }
.site-footer>div:last-child a { display: flex; align-items: center; gap: 7px; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-contact:active,.round-link:active,.contact-arrow:active { transform: scale(.98); }
@media(min-width:1600px) { .hero { min-height: 850px; } }
@media(max-width:800px) { .site-header { height: 80px; } .navigation { gap: 22px; } .hero { min-height: calc(100dvh - 80px); } .edition { display: none; } h1 { margin-top: 65px; } .headline-second { padding-left: 0; } .hero-bottom { gap: 30px; } .hero-intro p { font-size: 16px; } .profile-window { padding: 15px; gap: 14px; } .portrait-frame { width: 65px; height: 80px; } .profile-window strong { font-size: 15px; } .profile-window div>span { max-width: 120px; line-height: 1.4; } .about-section { gap: 35px; grid-template-columns: .7fr 1.3fr; padding-right: 5.5%; } .about-symbol { width: 125px; height: 125px; font-size: 145px; } }
@media(max-width:600px) { .site-header { margin: 0 6%; height: 76px; position: relative; } .menu-toggle { display: grid; place-items: center; border: 0; background: transparent; width: 44px; height: 44px; } .navigation { display: none; position: absolute; background: var(--paper); top: 75px; left: -7%; right: -7%; padding: 22px 6%; border-bottom: 1px solid var(--line); z-index: 10; } .navigation.is-open { display: flex; flex-direction: column; align-items: stretch; } .navigation>a { padding: 12px; min-height: 44px; } .hero { padding: 32px 6% 0; min-height: calc(100dvh - 76px); } .hero-eyebrow { font-size: 8px; letter-spacing: 1px; } h1 { font-size: clamp(44px,11.8vw,70px); margin: 51px 0 27px; letter-spacing: -.065em; line-height: 1.13; } .hero-bottom { flex-direction: column; align-items: flex-start; gap: 30px; margin-bottom: 35px; } .hero-intro p { font-size: 16px; } .hero-intro .text-link { margin-top: 9px; } .profile-window { align-self: flex-end; width: 280px; padding: 13px 20px; } .profile-window div>span { max-width: none; } .hero-footnote { font-size: 7px; letter-spacing: .75px; gap: 15px; } .hero-footnote span:first-child { max-width: 180px; line-height: 1.6; } .hero-footnote span:last-child { white-space: nowrap; gap: 7px; } .work-section { padding: 50px 6% 24px; } .section-heading { display: block; margin-bottom: 25px; } .section-heading p { margin-top: 15px; } .section-heading h2 { margin-top: 13px; } .project-image { height: 285px; } .image-label { top: 15px; left: 15px; font-size: 7px; padding: 10px; } .photo-dots { left: 15px; bottom: 14px; gap: 6px; } .photo-dots button { width: 18px; } figcaption { flex-wrap: wrap; gap: 17px; } figcaption>div { width: calc(100% - 68px); } figcaption p { margin: 0; order: 3; width: 100%; font-size: 13px; } figcaption .eyebrow { line-height: 1.5; font-size: 8px; } figcaption h3 { font-size: 26px; } .work-note { display: block; } .work-note>span { display: block; padding-top: 7px; font-size: 10px; } .about-section { display: block; padding: 58px 6%; } .about-symbol { display: none; } .about-copy h2 { margin: 27px 0 23px; } .about-copy p { font-size: 16px; } .contact-section { padding: 40px 6%; } .contact-main { align-items: end; gap: 12px; } .contact-main h2 { font-size: 36px; } .contact-arrow { width: 55px; height: 55px; } .contact-arrow svg { width: 32px; height: 32px; } .contact-bottom { display: block; } .contact-bottom .text-link { margin-top: 15px; } .site-footer { padding: 28px 0; margin: 0 6%; display: block; } .site-footer>div:last-child { margin-top: 23px; justify-content: space-between; gap: 15px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition: none !important; animation: none !important; } }

/* Personal vault */
.vault-gate { min-height: calc(100dvh - 100px); display: grid; place-items: center; padding: 60px 5.5%; }
.gate-card { position: relative; width: 100%; max-width: 460px; background: var(--paper); border: 1px solid var(--line); padding: 52px 44px 44px; text-align: center; }
.gate-icon { width: 58px; height: 58px; margin: 0 auto 22px; display: grid; place-items: center; background: var(--ink); color: var(--acid); }
.gate-card .eyebrow { color: var(--quiet); }
.gate-card h1 { font-size: 44px; letter-spacing: -.04em; margin: 12px 0 14px; }
.gate-card > p { font-size: 15px; line-height: 1.65; color: var(--quiet); margin-bottom: 28px; }
.gate-form { display: flex; flex-direction: column; gap: 12px; }
.gate-form input { width: 100%; background: transparent; border: 1px solid var(--line); padding: 15px 16px; font-size: 15px; font-family: inherit; color: var(--ink); }
.gate-form input:focus { outline: none; border-color: var(--ink); }
.gate-form button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--ink); color: var(--paper); padding: 15px; font-size: 14px; font-weight: 500; border: 0; cursor: pointer; transition: background .2s, transform .1s; }
.gate-form button:hover:not(:disabled) { background: var(--quiet); }
.gate-form button:active:not(:disabled) { transform: scale(.98); }
.gate-form button:disabled { opacity: .5; cursor: not-allowed; }
.gate-error { display: inline-flex; align-items: center; gap: 7px; color: var(--destructive); font-size: 13px; margin-top: 14px; }

.vault { padding: 70px 5.5% 90px; max-width: 1100px; margin: 0 auto; }
.vault-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; border-bottom: 1px solid var(--line); padding-bottom: 34px; margin-bottom: 40px; }
.vault-header .eyebrow { color: var(--quiet); }
.vault-header h1 { font-size: clamp(48px, 7vw, 92px); letter-spacing: -.05em; margin: 12px 0 14px; }
.vault-header > div > p { font-size: 16px; line-height: 1.65; color: var(--quiet); max-width: 460px; }
.vault-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 56px; }
.quick-tile { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; background: var(--paper); border: 1px solid var(--line); }
.quick-tile svg { color: var(--quiet); }
.quick-tile span { font-size: 11px; letter-spacing: 1.4px; color: var(--quiet); text-transform: uppercase; }
.quick-tile strong { font-family: Manrope, sans-serif; font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.vault-section { margin-bottom: 48px; }
.vault-section-head { margin-bottom: 18px; }
.vault-section-head .eyebrow { color: var(--quiet); }
.vault-section-head h2 { display: inline-flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 500; letter-spacing: -.02em; margin-top: 10px; }
.vault-section-head h2 svg { color: var(--quiet); }
.vault-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.vault-list li { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.vault-item-main strong { display: block; font-family: Manrope, sans-serif; font-size: 17px; font-weight: 500; }
.vault-item-main span { display: block; font-size: 12px; color: var(--quiet); margin-top: 4px; }
.vault-item-action { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: background .2s, color .2s, transform .1s; flex-shrink: 0; }
.vault-item-action:hover { background: var(--ink); color: var(--paper); }
.vault-item-action:active { transform: scale(.96); }
.vault-footnote { font-size: 12px; color: var(--quiet); margin-top: 30px; }
.vault-upload { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.vault-upload-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper); padding: 14px 22px; font-size: 14px; font-weight: 500; border: 0; cursor: pointer; transition: background .2s, transform .1s; }
.vault-upload-btn:hover:not(:disabled) { background: var(--quiet); }
.vault-upload-btn:active:not(:disabled) { transform: scale(.98); }
.vault-upload-btn:disabled { opacity: .5; cursor: not-allowed; }
.vault-upload-hint { font-size: 12px; color: var(--quiet); }
.vault-item-actions { display: flex; gap: 8px; flex-shrink: 0; }
.spin { animation: vault-spin 1s linear infinite; }
@keyframes vault-spin { to { transform: rotate(360deg); } }
@media(max-width:700px) { .vault-quick { grid-template-columns: repeat(2,1fr); } .vault-header { flex-direction: column; align-items: flex-start; } .gate-card { padding: 40px 26px; } }

/* PHP conversion refinements */
button,input { font: inherit; }
.vault-item-actions form { margin: 0; }
.vault-upload input[type=file] { max-width: 100%; }


/* Paired photo and caption carousel */
.project-showcase { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .75fr); min-height: clamp(300px, 34vw, 470px); border-bottom: 1px solid #475052; }
.project-image { height: auto; min-height: 300px; }
.project-story { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(28px, 4vw, 58px); background: #252e31; }
.project-story .eyebrow { color: var(--acid); font-size: 9px; line-height: 1.6; }
.project-story h3 { margin-top: 22px; font-size: clamp(30px, 3.3vw, 48px); line-height: 1.08; font-weight: 500; letter-spacing: -.045em; }
.project-story p { margin-top: 18px; max-width: 34ch; color: #c2c8c9; font-size: 15px; line-height: 1.75; }
.project-story .round-link { margin-top: 28px; }
@media(max-width:700px) { .project-showcase { grid-template-columns: 1fr; } .project-image { height: 285px; min-height: 285px; } .project-story { min-height: 255px; padding: 28px 24px; } .project-story h3 { margin-top: 14px; font-size: 32px; } .project-story p { margin-top: 12px; font-size: 14px; } .project-story .round-link { margin-top: 20px; } }
