/* Continuous blue editorial theme. No content or source photographs are changed. */
@font-face { font-family: Geist; src: url('public/fonts/Geist-Variable.woff2') format('woff2'); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: Geist; src: url('public/fonts/Geist-Italic-Variable.woff2') format('woff2'); font-style: italic; font-weight: 100 900; font-display: swap; }
:root {
  --ink: #172536; --paper: #fcfaf7; --soft: #e8f0fb; --muted: #4c5d71;
  --accent: #2456c8; --accent-bright: #78b5f4; --line: #bfd0e4; --timeline: #8bacdb;
  --page: min(1220px, calc(100% - 64px)); --sans: Geist, Arial, sans-serif;
  --shadow: 0 12px 36px #254e7910; --button-shadow: none; --button-shadow-hover: none;
}
body, .inner-page {
  font-family: var(--sans); color: var(--ink); background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 95% 900px at 90% 4%, #83b7f073, transparent 78%),
    radial-gradient(ellipse 110% 1100px at 5% 23%, #dfc9aa40, transparent 80%),
    radial-gradient(ellipse 100% 1150px at 0% 43%, #9ac7f454, transparent 80%),
    radial-gradient(ellipse 100% 1200px at 95% 61%, #ead9bc40, transparent 82%),
    radial-gradient(ellipse 90% 1100px at 100% 80%, #80acec42, transparent 80%);
  background-repeat: no-repeat;
}
button, input, summary { font: inherit; }
::selection { color: #fff; background: var(--accent); }
section { scroll-margin-top: 90px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 650; }
h1 em, h2 em, h3 em, .hero-identity em { font-family: Georgia, 'Times New Roman', serif; color: var(--accent); font-weight: 500; font-style: italic; letter-spacing: -.045em; }
strong { font-weight: 650; }
.site-header, .home-page .site-header, .inner-header {
  position: sticky; top: 0; min-height: 76px; padding: 12px max(24px, calc((100vw - 1220px) / 2));
  color: var(--ink); background: #fcfaf7db; border-bottom: 1px solid #c5d6eb55; box-shadow: none;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.brand-mark { border: 0; border-radius: 0; color: var(--accent); font-size: 1.1rem; letter-spacing: -.06em; }
.site-header nav { gap: clamp(4px, 1vw, 18px); }
.site-header nav a { border-radius: 4px; font-size: .9375rem; text-transform: none; letter-spacing: 0; padding: 10px 14px; font-weight: 500; }
.site-header nav a:hover, .site-header nav a.active, .home-page .site-header nav a:hover, .home-page .site-header nav a.active {
  color: var(--accent); background: transparent; border-color: transparent; box-shadow: none; transform: none;
}
.site-header nav a::after { height: 1px; bottom: 5px; }
/* Open, centered cover. The existing art is softly masked into the canvas. */
.hero { min-height: auto; margin: 0; border-radius: 0; color: var(--ink); background: transparent; isolation: isolate; }
.hero-content { display: flex; flex-direction: column; align-items: center; text-align: center; width: var(--page); padding: 64px 0 54px; gap: 0; }
.hero-content .hero-status { font-family: var(--sans); font-size: .875rem; color: var(--muted); font-weight: 450; letter-spacing: .1em; margin: 0 0 28px; }
.hero-status strong { font-weight: 500; }
.hero-status > span { width: 9px; height: 9px; background: var(--accent); box-shadow: 0 0 0 7px #2456c810; }
.hero h1 { font-size: clamp(3.25rem, 7.8vw, 7rem); line-height: 1.04; letter-spacing: -.065em; max-width: 1000px; order: 1; }
.hero h1 small { font-family: var(--sans); font-size: clamp(.875rem, 1.4vw, 1.125rem); color: var(--muted); font-weight: 500; letter-spacing: .12em; margin-top: 16px; line-height: 1.5; }
.hero-content .hero-identity { order: 2; border: 0; border-radius: 0; padding: 0; margin: 28px 0 18px; max-width: 800px; background: transparent; color: var(--ink); font-family: var(--sans); font-size: clamp(1.6rem, 3.5vw, 3rem); font-weight: 550; line-height: 1.22; letter-spacing: -.045em; }
.hero-identity em { font-size: 1.12em; }
.hero-content .hero-education { order: 3; border: 0; padding: 0; margin: 0; color: var(--muted); font-size: 1rem; font-weight: 450; }
.hero-actions { order: 4; margin-top: 26px; gap: 12px; }
.hero-actions a { min-width: 180px; min-height: 49px; padding: 12px 24px; border-width: 1px; border-radius: 6px; font-family: var(--sans); font-size: .9375rem; font-weight: 550; box-shadow: none; }
.hero-actions a span { position: static; }
.hero-primary { background: var(--accent); color: white; border-color: var(--accent); }
.hero-secondary { background: #ffffff50; color: var(--ink); border-color: #7088a4; }
.hero-actions a:hover { transform: translateY(-2px); box-shadow: 0 6px 18px #2456c817; }
.hero-art { inset: 0 0 0 auto; width: 56%; opacity: .08; clip-path: none; border-radius: 0; transform: none; mask-image: radial-gradient(ellipse, #000 10%, transparent 70%); }
.hero-art-shade { display: none; }
/* Section edges disappear into the shared background. */
.about-section, .experience-section, .contact-section { padding: 52px max(32px, calc((100vw - 1220px) / 2)); background: transparent; margin: 0; border-radius: 0; color: var(--ink); }
.section-title, .centered-title { text-align: left; max-width: 760px; margin: 0 0 30px; }
.section-title h2, .contact-section h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.15; letter-spacing: -.045em; }
.eyebrow { font-family: var(--sans); font-weight: 500; font-size: .875rem; letter-spacing: .17em; color: var(--muted); margin-bottom: 16px; }
.about-section { display: grid; grid-template-columns: .95fr 1.05fr; gap: 26px 60px; }
.about-copy { margin: 0; padding: 0; }
.about-copy > p:first-child { font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.6; margin-bottom: 16px; }
.about-copy > p:not(:first-child) { font-size: 1rem; line-height: 1.75; margin-bottom: 20px; }
.accent-link { border-radius: 4px; background: transparent; border: 0; border-bottom: 1px solid var(--accent); padding: 0; box-shadow: none; font-size: .875rem; text-transform: none; letter-spacing: 0; }
.accent-link:hover { color: var(--accent); background: transparent; box-shadow: none; transform: none; }
.traits-grid { grid-column: 1 / -1; margin: 8px 0 0; padding: 22px 0 0; gap: 42px; border-top: 1px solid var(--line); }
.traits-grid article, .traits-grid article:last-child { padding: 0; background: transparent; border-radius: 0; }
.traits-grid h3 { font-size: 1.2rem; margin-bottom: 14px; }
.traits-grid li { margin-top: 8px; }
.timeline-item { min-height: 0; padding-bottom: 28px; }
.timeline-card { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; padding: 20px 0; box-shadow: none; }
.timeline-card:hover { box-shadow: none; transform: none; }
.timeline-card > p:first-child { color: var(--accent); font-size: .875rem; font-weight: 600; letter-spacing: .03em; }
.timeline-card h3 { font-size: 1.4rem; font-weight: 650; }
.timeline-summary { color: var(--muted); font-size: 1rem; margin-top: 12px; }
.timeline-date strong { font-family: var(--sans); font-size: .875rem; font-weight: 450; color: var(--muted); }
.timeline-node { width: 15px; height: 15px; border: 3px solid #eef4fc; box-shadow: 0 0 0 1px #8dacd1; background: var(--accent); }
/* Reference-style work rows: image beside unboxed text. */
.projects-section { background: transparent; padding-bottom: 36px; }
.project-banner { width: var(--page); height: auto; min-height: 0; margin: 0 auto; padding: 30px 0; display: block; border-radius: 0; background: transparent; color: var(--ink); }
.project-banner-media { display: none; }
.project-banner h2 { padding: 0; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.035em; text-shadow: none; font-weight: 600; }
.project-grid { grid-template-columns: 1fr; gap: 36px; margin-top: 0; }
.project-card-link:nth-child(even) { margin-top: 0; }
.project-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: clamp(24px, 4vw, 60px); padding: 28px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.project-image { align-self: center; display: grid; place-items: center; padding: 16px; border-radius: 10px; box-shadow: none; background: linear-gradient(140deg, #d9e8f7bb, #aac8ec44); }
.project-image::after { border: 0; }
.project-image img { height: 450px; object-fit: contain; }
.project-card:hover .project-image { box-shadow: none; transform: none; }
.project-info { padding: 0; align-self: center; min-width: 0; }
.project-info h3 { font-weight: 650; font-size: clamp(1.7rem, 2.8vw, 2.6rem); line-height: 1.14; }
.project-info > p:first-child { font-size: .875rem; font-weight: 500; letter-spacing: .02em; flex-wrap: wrap; gap: 8px; }
.project-info > p:first-child span { color: var(--muted); }
.project-info .project-overview { font-size: 1.0625rem; line-height: 1.7; }
.project-info > strong { color: var(--accent); font-size: 1.35rem; font-weight: 550; font-style: italic; }
.project-tools span, .project-tool-bar strong { border-radius: 4px; box-shadow: none; font-family: var(--sans); font-size: .8125rem; font-weight: 450; background: #ffffff45; color: var(--muted); }
.project-detail-link { border: 1px solid var(--accent); border-radius: 5px; padding: 12px 18px; width: fit-content; gap: 24px; font-size: .875rem; text-transform: none; letter-spacing: 0; font-weight: 550; color: var(--accent); }
.project-number, .directory-number { color: var(--accent); background: #ffffffde; border-radius: 3px; font-size: .875rem; }
.contact-section { gap: 44px; }
.contact-links a { color: var(--ink); border: 0; border-bottom: 1px solid #8da9ca; border-radius: 0; background: transparent; box-shadow: none; font-size: 1rem; padding: 20px 40px; }
.contact-links a:hover { color: var(--accent); border-color: var(--accent); background: #ffffff35; box-shadow: none; transform: translateY(-2px); }
footer { color: var(--muted); background: transparent; border-top: 1px solid var(--line); font-family: var(--sans); font-size: .8125rem; padding: 28px 32px; text-transform: none; }
footer a { color: var(--accent); }
/* Project directory and technical detail pages share the same open canvas. */
.subpage-hero, .case-study-hero { max-width: none; padding: 58px 0 34px; margin-top: 0; border: 0; border-radius: 0; background: transparent; text-align: left; }
.subpage-hero h1, .case-study-hero h1 { font-size: clamp(2.4rem, 5vw, 4.7rem); line-height: 1.1; font-weight: 650; }
.subpage-hero > p:last-child { margin: 0; }
.case-study-back { margin-bottom: 28px; font-size: .875rem; font-weight: 500; }
.case-study-meta { margin-top: 26px; font-size: .9375rem; }
.case-study-media { display: grid; place-items: center; border-radius: 10px; box-shadow: none; padding: 20px; background: #a8c7e92b; }
.project-deep-dive { padding: 32px 0 44px; }
.project-facts { border-radius: 0; border: 0; background: var(--line); box-shadow: none; }
.project-facts > div { background: #edf4fc; padding: 22px; min-height: 116px; gap: 20px; }
.project-facts span, .project-tool-bar > span { font-size: .8125rem; font-weight: 500; }
.project-facts strong { font-size: 1.05rem; }
.project-tool-bar { padding: 20px 0; margin-top: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.deep-dive-section { margin-top: 34px; padding: 30px 0 0; border-radius: 0; border-top: 1px solid var(--line); background: transparent; gap: 30px 52px; }
.deep-dive-heading h2 { position: static; font-size: clamp(1.65rem, 2.6vw, 2.4rem); line-height: 1.18; }
.deep-dive-copy p + p { margin-top: 16px; }
.project-metrics > div { min-height: 110px; gap: 18px; padding: 18px 0; background: transparent; border: 0; border-top: 1px solid #9bb7d7; border-radius: 0; box-shadow: none; }
.project-metrics strong { font-family: Georgia, serif; font-style: italic; font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 500; }
.project-metrics span { font-size: .875rem; }
.project-steps > div { border-top-width: 1px; background: #a8c7e924; border-radius: 0; }
.project-steps p { font-size: .9375rem; }
.project-steps > div > span { font-family: var(--sans); font-size: .8125rem; }
.project-figure { border-radius: 6px; box-shadow: none; background: transparent; }
.project-figure-media { background: #c9ddf233; }
.project-figure figcaption { font-family: var(--sans); font-size: .875rem; line-height: 1.6; }
.project-pagination { border-radius: 0; margin-bottom: 30px; box-shadow: none; }
.project-pagination a { padding: 28px; }
.projects-directory { padding: 12px 0 40px; }
.directory-grid { grid-template-columns: 1fr; gap: 30px; }
.directory-card { display: grid; grid-template-columns: 1fr 1.06fr; gap: 44px; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 28px 0; background: transparent; box-shadow: none; }
.directory-card:hover { transform: none; box-shadow: none; border-color: var(--accent); }
.directory-card-media { display: grid; place-items: center; padding: 16px; background: #a8c7e92b; border-radius: 10px; }
.directory-card-copy { padding: 0; align-self: center; }
.directory-card-copy > p:first-child { font-size: .875rem; flex-wrap: wrap; font-weight: 500; }
.directory-card-copy h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.14; }
.directory-overview { font-size: 1.0625rem; }
.directory-card-copy > strong { font-size: 1.25rem; font-style: italic; font-weight: 550; color: var(--accent); }
.directory-open { margin-top: 24px; font-size: .875rem; text-transform: none; }
.directory-contact { padding: 30px 0 48px; gap: 32px; }
.pill-button { border-radius: 5px; border-width: 1px; box-shadow: none; font-size: .875rem; text-transform: none; letter-spacing: 0; }
/* Curved chapter surfaces expand with scroll; content is never clipped. */
html { scroll-behavior: smooth; }
.home-page .flow-section { position: relative; isolation: isolate; }
.home-page .flow-section::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: var(--flow-curve, 0%) var(--flow-curve, 0%) 0 0 / 150px 150px 0 0;
  transform: translateY(var(--flow-lift, 0px));
  background: linear-gradient(180deg, #e8d9bf65, #fcfaf700 85%);
}
.home-page #experience::before { background: linear-gradient(180deg, #b3d3f59c, #dceafb38 65%, transparent); }
.home-page #projects::before { background: linear-gradient(180deg, #5a9de99c, #c4ddf566 32%, transparent 85%); }
.home-page #contact::before { background: linear-gradient(180deg, #e8d9bf8c, #fcfaf74d); }
.home-page #about, .home-page #experience, .home-page #contact { padding-top: clamp(72px, 9vw, 118px); padding-bottom: 64px; }
.home-page .project-banner { min-height: 240px; display: flex; align-items: center; padding: 64px 0 36px; }
.home-page .project-banner h2 { font-size: clamp(3rem, 8vw, 7rem); color: #173d69; letter-spacing: -.055em; }
.home-page .project-image { transform-origin: center; transition: none; }
.home-page .type-word { transition: none; }
/* Independent translation keeps hover motion separate from scroll transforms. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .home-page [data-type-ready] .type-word {
    translate: 0 0;
    transition: translate 480ms cubic-bezier(.22,.61,.36,1);
  }
  .home-page [data-type-ready]:hover .type-word { translate: 0 -4px; }
  .home-page [data-type-ready]:hover .type-word:nth-child(2n) { translate: 0 -2px; }
}
@media (max-width: 680px) {
  .home-page .project-banner { min-height: 170px; padding-top: 48px; }
  .home-page .flow-section::before { border-radius: var(--flow-curve, 0%) var(--flow-curve, 0%) 0 0 / 80px 80px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-page .flow-section::before { transform: none; border-radius: 0; }
  .home-page .project-image, .home-page p { transform: none !important; opacity: 1 !important; }
}
@media print { .home-page .flow-section::before { display: none; } .home-page p, .home-page .project-image { transform: none !important; opacity: 1 !important; } }
/* Full-width, keyboard-scrollable procurement tables. */
.bom-block { grid-column: 1 / -1; min-width: 0; }
.bom-scroll { overflow-x: auto; border-block: 1px solid var(--line); }
.bom-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.bom-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.bom-table caption { text-align: left; padding: 18px 16px; color: var(--accent); font-weight: 650; }
.bom-table th, .bom-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid #bfd0e46b; }
.bom-table thead { background: #d9e7f3b3; }
.bom-table tbody th { font-weight: 550; }
.bom-table tbody tr:nth-child(even) { background: #ead9bc24; }
.bom-table tbody tr:hover { background: #d9e7f370; }
.bom-table td { color: var(--muted); font-variant-numeric: tabular-nums; }
.bom-note { max-width: 950px; margin-top: 16px; color: var(--muted); font-size: .875rem; line-height: 1.65; }
/* Cropping is a non-destructive viewport with fixed source coordinates. */
.photo-crop { position: relative; overflow: hidden; width: min(100%, var(--photo-display-width)); aspect-ratio: var(--photo-ratio); margin: auto; border-radius: 6px; }
.photo-crop > img, .project-figure .photo-crop > img { position: absolute; display: block; width: var(--photo-width); max-width: none; height: auto; max-height: none; left: var(--photo-left); top: var(--photo-top); object-fit: initial; }
.project-figure-media.has-framed-photo, .project-figure.portrait .project-figure-media.has-framed-photo { display: grid; place-items: center; aspect-ratio: auto; padding: 16px; min-height: 0; }
.case-study-media .photo-crop, .project-figure-media .photo-crop { width: min(100%, calc(var(--photo-display-width) * 1.25)); }
/* Letters retain their layout and accessible heading names throughout animation. */
.type-word { display: inline-block; white-space: nowrap; }
.type-char { display: inline; }
.scroll-fade { opacity: 1; transition: none; will-change: auto; }
/* Pale sand blends the photographs into the warm-white and blue canvas. */
.project-image, .directory-card-media, .case-study-media, .project-figure-media {
  background: linear-gradient(135deg, #e9dcc64a, #e5edf54d 55%, #aac8ec38);
}
@media (max-width: 900px) {
  .about-section { gap: 26px; }
  .timeline-item { margin-bottom: 10px; }
  .deep-dive-section { grid-template-columns: 1fr; }
  .directory-card:last-child { width: auto; grid-column: auto; justify-self: stretch; }
  .project-card, .directory-card { gap: 24px; }
  .project-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  :root { --page: calc(100% - 36px); }
  .site-header, .home-page .site-header, .inner-header { padding: 10px 12px; gap: 8px; min-height: 68px; }
  .site-header nav { flex-wrap: wrap; gap: 2px; }
  .site-header nav a { font-size: .8125rem; padding: 8px 6px; }
  .hero-content { padding: 38px 0 36px; }
  .hero-content .hero-status { font-size: .8125rem; line-height: 1.6; margin-bottom: 20px; }
  .hero h1 { font-size: clamp(2.8rem, 12vw, 4.6rem); }
  .hero-content .hero-identity { font-size: 1.75rem; margin: 22px 0 16px; }
  .hero-content .hero-education { font-size: .9375rem; }
  .hero-actions { flex-direction: row; width: 100%; justify-content: center; gap: 10px; }
  .hero-actions a { min-width: 0; width: auto; flex: 1; font-size: .875rem; padding: 12px; }
  .about-section, .experience-section, .contact-section { padding: 36px 22px; }
  .about-section, .traits-grid, .project-card, .directory-card, .contact-section, .directory-contact { grid-template-columns: 1fr; }
  .traits-grid { gap: 24px; }
  .timeline-card { padding: 18px 0; }
  .timeline-item { padding-bottom: 12px; margin-bottom: 12px; }
  .project-card, .directory-card { gap: 22px; }
  .project-image img { height: 370px; }
  .photo-crop { width: min(100%, calc(var(--photo-display-width) * .84)); }
  .project-info { padding: 0; }
  .subpage-hero, .case-study-hero { padding: 32px 0 24px; }
  .project-facts, .project-metrics, .project-steps, .project-tool-bar { grid-template-columns: 1fr; }
  .project-facts > div { min-height: 90px; }
  .deep-dive-section { gap: 24px; margin-top: 28px; }
  .contact-links a { font-size: .9375rem; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { .type-word, .type-char { opacity: 1 !important; transform: none !important; } }
@media print { body { background: white; } .site-header { position: static; } .type-word, .type-char { opacity: 1 !important; transform: none !important; } }
