/* Portfolio-specific styles. Utility pages keep their existing stylesheets. */
:root {
  color-scheme: dark;
  --bg: #0c1013;
  --panel: #131a1e;
  --panel-hover: #182227;
  --ink: #eef3f1;
  --muted: #a5b4b9;
  --line: #293439;
  --accent: #86e0d1;
  --radius: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p, ul, ol, dl { margin: 0; }
h1, h2, h3 { line-height: 1.12; font-weight: 900; letter-spacing: -.045em; }
h1 { font-size: clamp(3rem, 6.4vw, 5.8rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.025em; }
p { color: var(--muted); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--bg); }
.shell { max-width: 1200px; padding-inline: 32px; margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 200; padding: 12px 20px; background: var(--accent); color: var(--bg); }
.skip-link:focus { top: 16px; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(12,16,19,.96); border-bottom: 1px solid var(--line); }
.site-nav { display: flex; align-items: center; justify-content: space-between; min-height: 86px; gap: 20px; }
.wordmark { font-size: 30px; font-weight: 750; letter-spacing: -.07em; line-height: 1.3; }
.wordmark span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 500; }
.nav-links a { min-height: 44px; display: flex; align-items: center; }
.nav-links a:hover, .nav-links a[aria-current], .site-footer a:hover { color: var(--accent); }
.nav-links .nav-contact { border: 1px solid #52676e; border-radius: 30px; padding: 9px 20px; gap: 20px; }
.eyebrow, .mono-label { text-transform: uppercase; font-size: 12px; letter-spacing: .14em; font-weight: 900; color: var(--accent); }
.eyebrow { margin-bottom: 20px; }
.mono-label { display: block; margin-bottom: 28px; }
.hero { padding: 72px 0 64px; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 64px; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: 12px; letter-spacing: .14em; line-height: 1.4; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.hero h1 { font-size: clamp(2.4rem, 4.5vw, 4.2rem); font-weight: 900; line-height: 1.08; letter-spacing: -.045em; }
.hero h1 span, .page-intro h1 > span, .contact-section h2 span { color: var(--accent); }
.hero-intro { color: #d1d5db; font-size: 16px; max-width: 430px; margin-top: 28px; line-height: 1.8; }
.hero-description { color: #d1d5db; font-size: 16px; max-width: 430px; margin-top: 16px; line-height: 1.8; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 28px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 28px; padding: 14px 22px; border: 1px solid var(--line); border-radius: 40px; min-height: 48px; font-size: 14px; font-weight: 600; transition: background .18s, transform .18s; }
.button-primary { background: var(--accent); color: #102b29; border-color: var(--accent); }
.button:hover { transform: translateY(-2px); background: #acf0e5; }
.text-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font-size: 14px; font-weight: 550; color: var(--ink); }
.text-link:hover { color: var(--accent); }
.hero-footnote { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; font-size: 11px; color: var(--muted); }
.hero-footnote span + span::before { content: '·'; margin-right: 20px; }
.hero-showcase { width: 100%; max-width: 420px; justify-self: end; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.showcase-top { display: flex; justify-content: space-between; padding: 17px 22px; font-size: 10px; color: var(--muted); letter-spacing: .15em; }
.hero-showcase .project-media { background: #e8f0e9; padding: 0; border-radius: 0; }
.showcase-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; }
.showcase-bottom strong, .showcase-bottom span { display: block; }
.showcase-bottom strong { font-size: 17px; }
.showcase-bottom span { color: var(--muted); font-size: 12px; }
.showcase-bottom > a { display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); width: 44px; height: 44px; }
.expertise-strip { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 25px 0; border-block: 1px solid var(--line); font-size: 14px; }
.expertise-strip > span:first-child { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.section { padding-block: 84px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 36px; }
.section-heading > p { font-size: 14px; max-width: 340px; }
.project-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.project-card { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: border-color .2s; min-width: 0; }
.project-card:hover { border-color: #55756f; }
.project-media { min-width: 0; align-self: start; }
.project-media-visual { position: relative; overflow: hidden; border-radius: inherit; background: #1c252a; }
.project-card > .project-media { margin: 18px 0 18px 18px; align-self: center; border-radius: 12px; }
.project-media[data-image-state="placeholder"] .project-media-visual { min-height: 180px; }
.project-media img { display: block; width: 100%; height: auto; }
.project-media figcaption { padding: 14px 20px; font-size: 12px; color: var(--muted); }
.preview-button { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; background: rgba(12,16,19,.88); border: 1px solid rgba(255,255,255,.5); border-radius: 50%; font-size: 24px; padding: 0; display: grid; place-items: center; box-shadow: 0 3px 12px rgba(0,0,0,.15); }
.preview-button:hover { color: var(--accent); }
.no-image-label { display: block; text-align: center; padding: 24px; }
.project-card-body { padding: 24px; min-width: 0; }
.project-kicker { display: flex; justify-content: space-between; gap: 14px; font-size: 10px; text-transform: uppercase; letter-spacing: .11em; color: var(--accent); margin-bottom: 14px; }
.project-number { color: #a4b1b5; }
.project-card h3 { font-size: 26px; margin-bottom: 14px; }
.project-card h3 a:hover { color: var(--accent); }
.project-card p { font-size: 14px; line-height: 1.75; }
.tags { display: flex; flex-wrap: wrap; list-style: none; padding: 0; gap: 7px; margin: 22px 0 16px; }
.tags li { padding: 5px 10px; background: #1c272b; border: 1px solid #334249; border-radius: 6px; color: #becdce; font-size: 11px; line-height: 1.5; }
.project-card--lead { grid-column: 1 / -1; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.project-card--lead > .project-media { margin: 24px 0 24px 24px; }
.project-card--lead .project-card-body { display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.project-card--lead h3 { font-size: 38px; }
.section-end { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.section-end > span { font-size: 13px; color: var(--muted); }
.capability-grid, .decision-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; }
.capability-grid article, .decision-grid article { padding-top: 26px; border-top: 1px solid var(--line); }
.capability-grid h3 { font-size: 24px; max-width: 290px; }
.capability-grid p, .decision-grid p { margin-top: 18px; font-size: 14px; }
.capability-grid .text-link { margin-top: 14px; }
.process { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; border-top: 1px solid var(--line); }
.process ol { list-style: decimal-leading-zero; padding-left: 38px; }
.process li { padding: 0 0 26px 14px; }
.process li::marker { font-size: 12px; color: var(--accent); }
.process h3 { font-size: 20px; }
.process p { margin-top: 10px; font-size: 14px; }
.contact-section { padding: 64px; margin: 20px 0 80px; border: 1px solid #38534d; border-radius: 22px; background: #122521; }
.contact-section h2 { font-size: clamp(2.2rem,4.6vw,4rem); }
.contact-bottom { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 30px; }
.contact-bottom p { font-size: 14px; }
.site-footer { display: grid; grid-template-columns: auto 1fr auto; gap: 20px 30px; align-items: center; padding-top: 10px; padding-bottom: 40px; }
.site-footer p, .site-footer small { font-size: 12px; }
.site-footer nav { display: flex; gap: 20px; font-size: 12px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer small { grid-column: 1 / -1; color: var(--muted); border-top: 1px solid var(--line); padding-top: 24px; }
.page-intro { padding-top: 76px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.page-description { margin-top: 24px; font-size: 20px; max-width: 720px; line-height: 1.6; }
.back-link { display: inline-block; color: var(--muted); margin-bottom: 32px; font-size: 13px; padding-block: 10px; }
.back-link:hover { color: var(--accent); }
.catalog { padding-top: 36px; }
.filter-controls { margin-bottom: 32px; }
.search-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.search-row label { font-size: 13px; color: var(--muted); }
.search-field { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid #445359; border-radius: 10px; padding: 0 16px; width: 380px; max-width: 100%; }
.search-field input { background: transparent; color: var(--ink); border: 0; width: 100%; padding: 13px 0; font-size: 14px; min-width: 0; }
.search-field input::placeholder { color: #99a9ae; }
.search-field:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.search-field input:focus { outline: 0; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-buttons button { background: transparent; border: 1px solid #415259; border-radius: 28px; padding: 10px 15px; min-height: 44px; font-size: 12px; display: flex; align-items: center; gap: 10px; }
.filter-buttons button > span { font-size: 10px; opacity: .8; }
.filter-buttons button:hover { border-color: var(--accent); }
.filter-buttons [aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #102b29; }
.filter-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.filter-status p { font-size: 12px; }
.reset-button { border: 0; background: none; text-decoration: underline; font-size: 12px; min-height: 44px; padding: 8px; text-underline-offset: 4px; }
.empty-state { padding: 64px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state h2 { font-size: 24px; margin-bottom: 14px; }
.empty-state a, .scope-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.archive-callout { margin-top: 50px; border-top: 1px solid var(--line); padding-top: 36px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.archive-callout h2 { font-size: 27px; margin-bottom: 12px; }
.archive-callout .eyebrow { margin-bottom: 14px; }
.archive-callout p:not(.eyebrow) { font-size: 14px; }
.count { color: var(--accent); }
.archive-entry { border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.archive-entry:first-child { border-top: 1px solid var(--line); }
.archive-entry summary { list-style: none; display: grid; grid-template-columns: 1fr 1.4fr 24px; gap: 24px; align-items: center; padding: 26px 8px; }
.archive-entry summary::-webkit-details-marker { display: none; }
.archive-entry summary:hover .archive-name strong { color: var(--accent); }
.archive-name strong { display: block; font-size: 18px; line-height: 1.4; }
.archive-name > span { display: block; color: var(--accent); font-size: 10px; margin-top: 7px; text-transform: uppercase; letter-spacing: .06em; }
.archive-summary { color: var(--muted); font-size: 13px; }
.disclosure-icon { font-size: 22px; color: var(--accent); text-align: center; }
.archive-entry[open] .disclosure-icon { transform: rotate(45deg); }
.archive-detail { display: grid; grid-template-columns: 1fr 240px; gap: 36px; padding: 8px 8px 32px; }
.archive-detail > div > p { max-width: 700px; font-size: 15px; }
.archive-detail .project-media { border-radius: 12px; overflow: hidden; }
.archive-detail figcaption { font-size: 10px; }
.meta-note, .archive-detail > div > p.meta-note { font-size: 11px; color: var(--muted); margin-top: 16px; }
.image-note { font-size: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 20px; align-self: start; }
.case-intro { border: 0; padding-bottom: 34px; }
.case-intro h1 { font-size: clamp(2.6rem,6vw,5.5rem); }
.case-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.case-summary .lead { font-size: 21px; line-height: 1.65; color: var(--ink); }
.project-facts { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 20px; display: grid; gap: 16px; }
.project-facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.project-facts dd { margin: 4px 0 0; font-size: 14px; }
.case-art { align-self: start; width: 100%; max-width: 460px; justify-self: center; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.case-story, .about-story { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.case-story h2 { font-size: 36px; }
.prose p + p { margin-top: 20px; }
.prose h3 { margin: 30px 0 18px; }
.prose ul { padding-left: 20px; color: var(--muted); }
.prose li { padding-bottom: 10px; }
.flow-section { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.flow-diagram { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); list-style: none; padding: 0; gap: 24px; }
.flow-diagram li { font-size: 14px; padding-right: 15px; position: relative; }
.flow-diagram li + li { border-left: 1px solid #42605a; padding-left: 24px; }
.flow-diagram li > span { display: block; font-size: 11px; color: var(--accent); margin-bottom: 16px; }
.decision-grid h3 { font-size: 24px; }
.scope-note { padding: 30px; border-left: 2px solid var(--accent); background: var(--panel); }
.scope-note p { font-size: 14px; max-width: 850px; }
.scope-note .eyebrow { font-size: 11px; }
.scope-note .meta-note { font-size: 12px; }
.related h2 { font-size: 30px; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.related-link { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.related-link > span { font-size: 12px; color: var(--muted); }
.related-link strong { font-size: 21px; font-weight: 550; }
.related-link:hover { border-color: var(--accent); }
.jump-links { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 24px; font-size: 13px; color: var(--accent); }
.jump-links a { min-height: 44px; padding-block: 10px; }
.backend-entry { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 60px 0; border-bottom: 1px solid var(--line); }
.backend-entry > div > p:not(.eyebrow) { margin-top: 24px; font-size: 15px; }
.backend-entry ul:not(.tags) { list-style: none; padding: 0; }
.backend-entry li p { font-size: 14px; margin: 10px 0 24px; }
.backend-list + .scope-note { margin: 30px 0 60px; }
.journey-list { margin-top: 40px; }
.journey-list article { display: grid; grid-template-columns: 140px 1fr 1.3fr; gap: 30px; padding: 28px 0; border-top: 1px solid var(--line); }
.journey-list article > span { font-size: 12px; color: var(--accent); }
.journey-list h3 { font-size: 22px; }
.journey-list p { font-size: 14px; }
.about-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.about-contact > div > p:not(.eyebrow) { margin-top: 20px; }
.contact-form { display: grid; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 13px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; background: var(--panel); color: var(--ink); border: 1px solid #4c5c63; border-radius: 8px; padding: 12px; }
.form-group textarea { resize: vertical; }
.submit-btn { border: none; border-radius: 28px; padding: 14px 24px; justify-self: start; background: var(--accent); color: #102b29; }
.image-dialog { width: fit-content; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 12px; border: 1px solid #6a8c87; border-radius: 16px; background: var(--bg); color: var(--ink); }
.image-dialog::backdrop { background: rgba(0,0,0,.88); }
.image-dialog img { width: auto; height: auto; max-width: min(1100px, calc(100vw - 52px)); max-height: calc(100dvh - 150px); margin: 12px auto; border-radius: 8px; object-fit: contain; }
.image-dialog p { text-align: center; font-size: 13px; line-height: 1.4; max-width: 100%; }
.image-dialog__close { display: block; margin-left: auto; min-height: 44px; border: 1px solid #687b82; background: var(--panel); border-radius: 24px; padding: 10px 18px; }
@media (max-width: 1023px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-card, .project-card--lead { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .hero { gap: 32px; padding-top: 48px; }
  .hero-footnote { gap: 8px; }
  .hero-footnote span + span::before { margin-right: 8px; }
  .section { padding-block: 60px; }
  .project-card--lead .project-card-body { padding: 26px; }
  .project-card--lead h3 { font-size: 32px; }
  .capability-grid, .decision-grid { gap: 24px; }
  .contact-section { padding: 40px; }
  .site-footer { grid-template-columns: auto 1fr; }
  .site-footer nav { grid-column: 1 / -1; }
  .case-overview, .case-story, .about-story, .backend-entry, .about-contact { gap: 32px; }
  .journey-list article { grid-template-columns: 110px 1fr; }
  .journey-list p { grid-column: 2; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 560px; }
  .hero-showcase { max-width: 420px; width: 100%; justify-self: start; }
  .section-heading, .contact-bottom, .archive-callout { flex-direction: column; align-items: flex-start; gap: 22px; }
  .capability-grid, .decision-grid { grid-template-columns: 1fr; }
  .capability-grid h3 { max-width: none; }
  .process, .case-overview, .case-story, .about-story, .backend-entry, .about-contact { grid-template-columns: 1fr; gap: 30px; }
  .flow-diagram { grid-template-columns: 1fr 1fr; }
  .flow-diagram li + li { border: 0; padding-left: 0; }
  .archive-entry summary { grid-template-columns: 1fr 24px; gap: 12px; }
  .archive-summary { grid-row: 2; }
  .disclosure-icon { grid-column: 2; grid-row: 1 / 3; }
  .archive-detail { grid-template-columns: 1fr 200px; gap: 24px; }
}
@media (max-width: 639px) {
  .shell { padding-inline: 20px; }
  .site-nav { min-height: 72px; gap: 14px; }
  .wordmark { font-size: 26px; }
  .nav-links { gap: 16px; font-size: 12px; }
  .nav-links .nav-contact { padding: 8px 10px; gap: 5px; }
  .hero { padding-top: 38px; gap: 36px; }
  .actions { gap: 18px; }
  .button { gap: 16px; padding: 13px 18px; }
  .expertise-strip { gap: 15px 20px; font-size: 12px; }
  .expertise-strip > span:first-child { flex-basis: 100%; }
  .section { padding-block: 48px; }
  .project-grid { grid-template-columns: 1fr; gap: 24px; }
  .project-card, .project-card--lead { display: block; grid-column: auto; }
  .project-card > .project-media, .project-card--lead > .project-media { margin: 16px 16px 0; }
  .project-card-body, .project-card--lead .project-card-body { padding: 24px; }
  .project-card--lead h3, .project-card h3 { font-size: 26px; }
  .section-end { align-items: flex-start; flex-direction: column; gap: 8px; }
  .contact-section { padding: 30px 24px; margin-bottom: 50px; }
  .contact-section h2 { font-size: 35px; }
  .contact-bottom p br { display: none; }
  .site-footer { grid-template-columns: 1fr; gap: 12px; }
  .site-footer nav { flex-wrap: wrap; gap: 6px 20px; }
  .page-intro { padding-top: 48px; padding-bottom: 32px; }
  .page-description { font-size: 17px; }
  .page-description br { display: none; }
  .search-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .search-field { width: 100%; }
  .filter-buttons button { font-size: 11px; padding: 9px 12px; }
  .archive-entry summary { padding: 22px 0; }
  .archive-detail { grid-template-columns: 1fr; padding-inline: 0; }
  .archive-detail .project-media { max-width: 280px; }
  .case-summary .lead { font-size: 18px; }
  .case-story h2 { font-size: 30px; }
  .flow-section { padding: 24px; }
  .flow-diagram { gap: 26px 18px; }
  .flow-diagram li { font-size: 13px; }
  .related-grid { grid-template-columns: 1fr; }
  .scope-note { padding: 24px; }
  .journey-list article { grid-template-columns: 1fr; gap: 12px; }
  .journey-list p { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
/* Keep the collection quick to scan with a compact introduction. */
.page-intro:has(+ .catalog) { padding-top: 54px; padding-bottom: 34px; }
.page-intro:has(+ .catalog) h1 { font-size: clamp(3rem, 5vw, 4.5rem); }
.page-intro:has(+ .catalog) .page-description { margin-top: 18px; font-size: 18px; }
@media (max-width: 639px) {
  .page-intro:has(+ .catalog) { padding-top: 36px; }
  .page-intro:has(+ .catalog) .page-description { font-size: 16px; }
}
