@font-face {
  font-family: Merriweather;
  src: url('assets/merriweather-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Merriweather;
  src: url('assets/merriweather-600.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --black: #080808;
  --surface: #111111;
  --white: #f8f8f8;
  --body: #c7c7c7;
  --muted: #9f9f9f;
  --line: #2b2b2b;
  --line-bright: #555555;
  --serif: Georgia, Merriweather, 'Times New Roman', serif;
  --reading: Merriweather, Georgia, serif;
  --sans: Arial, Helvetica, sans-serif;
  --gutter: clamp(1.25rem, 4.5vw, 5rem);
  --column-gap: clamp(2rem, 6vw, 6rem);
  --columns: minmax(0, 1.13fr) minmax(0, 1fr);
  --header-height: 88px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 28px); }
body { margin: 0; background: var(--black); color: var(--white); font: 400 1rem/1.85 var(--reading); }
::selection { background: #e8e8e8; color: #080808; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; transition: color 220ms ease; }
a:hover { color: white; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid white; outline-offset: 6px; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, figure { margin: 0; }
p + p { margin-top: 20px; }
p { color: var(--body); }
h1, h2, h3 { color: var(--white); font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -.03em; }
h1 { font-size: clamp(3.7rem, 6.45vw, 6rem); line-height: 1.05; margin: 25px 0 31px; }
h2 { font-size: clamp(2.6rem, 4.2vw, 4rem); }
h3 { font-size: clamp(2rem, 3.2vw, 2.9rem); margin: 17px 0 25px; letter-spacing: -.025em; }
ul { list-style: none; padding: 0; }
.container { width: min(1240px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.eyebrow { color: var(--muted); font: 400 .75rem/1.6 var(--sans); text-transform: uppercase; letter-spacing: .14em; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; background: white; color: black; padding: 12px 20px; }
.skip-link:focus { top: 15px; }

/* A single quiet navigation line stays with the reader. */
.header { position: sticky; top: 0; z-index: 20; background: rgba(8,8,8,.92); border-bottom: 1px solid transparent; transition: border-color 300ms ease, box-shadow 300ms ease, background 300ms ease; }
.header.has-scrolled { background: rgba(8,8,8,.96); border-color: var(--line); box-shadow: 0 12px 35px rgba(0,0,0,.22); }
@supports (backdrop-filter: blur(18px)) { .header { background: rgba(8,8,8,.83); backdrop-filter: blur(18px); } .header.has-scrolled { background: rgba(8,8,8,.86); } }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.has-scrolled .header-inner { border-bottom-color: transparent; }
.brand { text-decoration: none; flex-shrink: 0; }
.brand-name { display: block; font: 400 1.18rem/1.35 var(--serif); letter-spacing: -.018em; }
.brand-note { display: block; color: var(--muted); font: 400 .75rem/1.5 var(--sans); margin-top: 4px; letter-spacing: .035em; }
nav { display: flex; flex-wrap: wrap; gap: clamp(18px, 2.5vw, 36px); font: 400 .875rem/1.5 var(--sans); }
nav a { position: relative; text-decoration: none; padding: 12px 0; color: #b3b3b3; }
nav a::after { content: ''; position: absolute; height: 1px; left: 0; right: 0; bottom: 5px; background: #eee; transform: scaleX(0); transform-origin: left; transition: transform 350ms var(--ease); }
nav a:hover::after, nav a[aria-current='location']::after { transform: scaleX(1); }
nav a[aria-current='location'] { color: white; }
.reading-progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; pointer-events: none; overflow: hidden; }
.reading-progress span { display: block; height: 100%; background: #c6c6c6; transform: scaleX(0); transform-origin: left; }

/* Shared columns carry through the introduction and project rows. */
.hero { display: grid; grid-template-columns: var(--columns); gap: var(--column-gap); align-items: center; padding: clamp(56px, 6.5vw, 96px) 0 clamp(72px, 8vw, 116px); }
.hero-copy { min-width: 0; }
.title-line { display: block; }
.period { color: #858585; }
.hero-focus { font: 400 clamp(1.12rem, 1.7vw, 1.35rem)/1.55 var(--serif); color: #efefef; }
.hero-intro { max-width: 35rem; font-size: 1rem; margin-top: 24px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 25px; }
.button { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 24px; border: 1px solid #545454; text-decoration: none; font: 400 .875rem/1.4 var(--sans); transition: color 300ms ease, border-color 300ms ease, transform 300ms var(--ease); }
.button::before { content: ''; position: absolute; z-index: -1; inset: 0; background: #fff; transform: translateY(101%); transition: transform 420ms var(--ease); }
.button:hover::before { transform: translateY(0); }
.button-light { background: #f4f4f4; color: #0b0b0b; border-color: #f4f4f4; }
.button-light::before { background: #d9d9d9; }
.button-light:hover, .button-outline:hover { color: #080808; border-color: #e8e8e8; }
.hero-contact { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero-contact .text-link { color: var(--muted); font-size: .8125rem; }
.hero-photo { position: relative; min-width: 0; width: 100%; justify-self: end; }
.hero-frame { padding: 10px; border: 1px solid var(--line); background: #0d0d0d; overflow: hidden; }
.hero-frame img { width: 100%; }
figcaption { color: var(--muted); font: 400 .8125rem/1.6 var(--sans); margin-top: 14px; }
.hero-photo figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; padding-inline: 1px; }

.section-rule { position: relative; display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; font: 400 .75rem/1.6 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.section-rule::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: #515151; transform-origin: left; }
.section { padding: clamp(48px, 5vw, 70px) 0 clamp(72px, 7vw, 104px); }
.section-heading { display: grid; grid-template-columns: var(--columns); gap: var(--column-gap); align-items: end; margin-bottom: 44px; }
.section-heading > p { font: 400 1.125rem/1.6 var(--serif); color: var(--muted); }
.project { display: grid; grid-template-columns: var(--columns); gap: var(--column-gap); align-items: start; padding: 52px 0 64px; border-top: 1px solid var(--line); }
.project:last-child { padding-bottom: 0; }
.project-copy { min-width: 0; }
.project-copy p:not(.eyebrow) { font-size: 1rem; }
.project-copy > p { max-width: 38rem; }
.project-image, .project-gallery { width: 100%; min-width: 0; }
.project-image > img, .project-image > a { width: 100%; aspect-ratio: 4/3; background: #101010; border: 1px solid var(--line); overflow: hidden; }
.project-image > a { display: flex; align-items: center; justify-content: center; }
.project-image img { width: 100%; height: 100%; object-fit: contain; }
.project-image > img { height: auto; }
.logo-image > a { padding: 25px; background: #fff; border-color: #d0d0d0; }
.logo-image img { width: auto; max-width: 100%; }
.project-links { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 26px; }
.text-link { display: inline; color: #e5e5e5; font: 400 .875rem/1.7 var(--sans); text-decoration: none; padding-bottom: 3px; background-image: linear-gradient(currentColor,currentColor); background-size: 100% 1px; background-position: left 100%; background-repeat: no-repeat; transition: color 220ms ease, background-size 350ms var(--ease); }
.text-link:hover { background-size: 35% 1px; color: #fff; }
.energy-row { display: grid; grid-template-columns: var(--columns); gap: var(--column-gap); padding: 42px 0 55px; border-top: 1px solid var(--line); }
.energy-row h3 { margin-bottom: 0; }
.energy-row .text-link, .project-intro > div > .text-link { display: inline-block; margin-top: 22px; }
.community-project { border-top: 1px solid var(--line); padding: 52px 0 60px; }
.community-project:last-child { padding-bottom: 0; }
.project-intro { display: grid; grid-template-columns: var(--columns); gap: var(--column-gap); align-items: start; margin-bottom: 35px; }
.project-intro h3 { margin-bottom: 0; }
.juajamii-visuals { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 30px; align-items: start; }
.story-image img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain; background: var(--surface); border: 1px solid var(--line); }
.experience-columns { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: var(--column-gap); padding: 52px 0; border-top: 1px solid var(--line); }
.experience-columns h3 { font-size: clamp(1.8rem, 2.7vw, 2.35rem); }
.linked-list { margin: 20px 0 26px; }
.linked-list li { display: flex; flex-direction: column; align-items: start; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); transition: border-color 250ms ease; }
.linked-list li:hover { border-color: #666; }
.linked-list span { color: var(--muted); font: 400 .875rem/1.6 var(--sans); }
.linked-list .text-link { font-size: 1rem; }
.compact { margin-top: 18px; }
.compact li { padding: 11px 0; }
.compact .text-link { font-size: .875rem; }
.shutdown-photo > a { display: block; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.shutdown-photo img { width: 100%; max-height: 640px; object-fit: contain; }

/* Galleries keep the entire photograph in view. */
.gallery { min-width: 0; }
.gallery-track { display: flex; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #666 #181818; background: var(--surface); border: 1px solid var(--line); }
.gallery.is-enhanced .gallery-track { scrollbar-width: none; }
.gallery.is-enhanced .gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; min-width: 0; aspect-ratio: 4/3; scroll-snap-align: start; scroll-snap-stop: always; }
.gallery-slide > a { display: block; width: 100%; height: 100%; overflow: hidden; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 7px 16px; padding: 14px 0; }
.gallery-title { color: var(--muted); font: 400 .8125rem/1.6 var(--sans); }
.gallery-paging { display: none; align-items: center; gap: 14px; font: 400 .875rem/1.4 var(--sans); }
.gallery.is-enhanced .gallery-paging { display: flex; }
.gallery-paging button { cursor: pointer; background: transparent; border: 1px solid #3e3e3e; padding: 8px 10px; min-height: 40px; font: inherit; transition: border-color 250ms ease, background 250ms ease, color 250ms ease; }
.gallery-paging button:not(:disabled):hover { border-color: #ccc; background: #ececec; color: #080808; }
.gallery-paging button:disabled { color: #777; border-color: #292929; cursor: default; }
.gallery-count { min-width: 49px; text-align: center; color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gallery-thumbs { display: none; grid-template-columns: repeat(auto-fit,minmax(38px,1fr)); gap: 7px; }
.gallery.is-enhanced .gallery-thumbs { display: grid; }
.thumb { min-width: 0; min-height: 48px; background: #101010; border: 1px solid transparent; padding: 3px; cursor: pointer; opacity: .55; transition: opacity 300ms ease, border-color 300ms ease, transform 350ms var(--ease); }
.thumb[aria-pressed='true'] { opacity: 1; border-color: #b8b8b8; }
.thumb:hover { opacity: 1; border-color: #777; }
.thumb img { width: 100%; height: 52px; object-fit: contain; }
.project-gallery .gallery-slide { aspect-ratio: 4/3; }
.photo-section { display: grid; grid-template-columns: minmax(0,.47fr) minmax(0,1fr); gap: var(--column-gap); align-items: start; }
.photo-section .section-heading { display: block; margin: 0; }
.photo-section h2 { font-size: clamp(2.5rem,4.2vw,3.8rem); max-width: 7ch; }
.photo-section .section-heading > p { margin-top: 24px; }
.photo-section .gallery { width: 100%; max-width: none; }
.photo-section .gallery-slide { aspect-ratio: 4/3; }
.photo-section .thumb img { height: 54px; }

.contact { position: relative; background: #0d0d0d; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(54px, 6.4vw, 88px) 0; }
.contact-grid { display: grid; grid-template-columns: var(--columns); gap: var(--column-gap); align-items: center; }
.contact-photo { width: min(100%, 320px); padding: 8px; border: 1px solid var(--line); background: #111; }
.contact-photo img { width: 100%; }
.contact h2 { font-size: clamp(3.5rem,6vw,5.2rem); margin: 17px 0 25px; }
.contact p:not(.eyebrow) { max-width: 36rem; }
.contact-list { display: grid; gap: 0; margin-top: 28px; }
.contact-list > div { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list span { font: 400 .75rem/1.6 var(--sans); color: var(--muted); }
.contact-list a { font: 400 1.2rem/1.6 var(--serif); overflow-wrap: anywhere; justify-self: start; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-block: 30px; color: var(--muted); font: 400 .8125rem/1.6 var(--sans); }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Motion is progressive enhancement: all content is readable without JS. */
@keyframes enter { from { opacity: 0; transform: translate3d(0,22px,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
@keyframes reveal { from { opacity: 0; transform: translate3d(0,22px,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
@keyframes rule-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: no-preference) {
  .page-ready [data-enter] { animation: enter 900ms var(--ease) both; animation-delay: var(--enter-delay,0ms); }
  .will-reveal { opacity: 0; }
  .is-revealed { animation: reveal 800ms var(--ease) both; animation-delay: var(--reveal-delay,0ms); }
  [data-reveal='rule'].is-revealed { animation-name: none; }
  [data-reveal='rule'].is-revealed::before { animation: rule-in 1100ms var(--ease) both; }
  .hero-frame img, .shutdown-photo img, .contact-photo img { transition: transform 1000ms var(--ease); }
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .hero-frame:hover img { transform: scale(1.015); }
  .shutdown-photo > a:hover img { transform: scale(1.012); }
  .button:hover { transform: translateY(-2px); }
  .thumb:hover { transform: translateY(-2px); }
}

@media (max-width:1050px) {
  :root { --column-gap: 40px; }
  h1 { font-size: clamp(3.3rem,6.2vw,5rem); }
  .hero-contact { flex-direction: column; align-items: start; }
  .project, .community-project { padding-block: 44px; }
  .contact-list > div { grid-template-columns: 80px minmax(0,1fr); gap: 10px; }
  .contact-list a { font-size: 1.0625rem; }
  .photo-section { grid-template-columns: minmax(0,.5fr) minmax(0,1fr); }
}
@media (max-width:850px) {
  .header-inner { gap: 18px; }
  nav { gap: 18px; }
  .brand-note { display: none; }
  .brand-name { max-width: 13ch; font-size: 1.125rem; }
  .hero { grid-template-columns: minmax(0,1.1fr) minmax(0,.8fr); gap: 30px; }
  h1 { font-size: clamp(3rem,6.6vw,4rem); }
  .hero-title .title-line:last-child { max-width: 9ch; }
  .hero-intro { font-size: 1rem; }
  .hero-photo { align-self: start; margin-top: 30px; }
  .hero-photo figcaption { flex-direction: column; }
  .section-heading { align-items: start; }
  .project, .energy-row, .project-intro { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .project-copy > p { max-width: none; }
  .project-image, .project-gallery { max-width: 580px; }
  .energy-row h3 { margin-bottom: 0; }
  .energy-row > div:nth-child(2) { max-width: 42rem; }
  .experience-columns { gap: 34px; }
  .juajamii-visuals { gap: 24px; }
  .gallery-controls { align-items: start; flex-direction: column; gap: 10px; }
  .photo-section { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .photo-section .section-heading { display: grid; grid-template-columns: var(--columns); gap: var(--column-gap); }
  .photo-section h2 { max-width: none; }
  .photo-section .section-heading > p { margin-top: 0; }
  .contact-grid { grid-template-columns: minmax(0,.7fr) minmax(0,1fr); gap: 38px; }
  .contact-list > div { grid-template-columns: minmax(0,1fr); gap: 4px; }
}
@media (max-width:600px) {
  :root { --gutter: 22px; --column-gap: 28px; --header-height: 104px; }
  .header-inner { min-height: 104px; display: flex; flex-direction: column; align-items: start; justify-content: center; gap: 7px; padding-block: 12px; }
  .brand-name { max-width: none; font-size: 1.0625rem; }
  nav { width: 100%; gap: 0; justify-content: space-between; font-size: .875rem; }
  nav a { padding-block: 10px; }
  .hero { grid-template-columns: minmax(0,1fr); gap: 35px; padding: 44px 0 65px; }
  h1 { font-size: clamp(2.8rem,11.7vw,4.2rem); margin: 20px 0 25px; }
  .hero-title .title-line:last-child { max-width: none; }
  .hero-focus { font-size: 1.18rem; }
  .hero-intro { line-height: 1.85; }
  .hero-actions { margin: 27px 0 24px; }
  .hero-photo { width: 100%; max-width: 440px; justify-self: start; margin: 0; }
  .hero-photo figcaption { flex-direction: row; gap: 4px 12px; }
  .hero-frame { padding: 7px; }
  .hero-contact .text-link { font-size: .875rem; }
  h2 { font-size: 2.6rem; }
  h3 { font-size: 2.15rem; margin: 14px 0 22px; }
  .section-rule { flex-wrap: wrap; gap: 5px 20px; padding-top: 16px; font-size: .75rem; }
  .section-rule span:last-child { letter-spacing: .02em; text-transform: none; }
  .section { padding: 38px 0 60px; }
  .section-heading, .photo-section .section-heading { grid-template-columns: minmax(0,1fr); gap: 17px; margin-bottom: 30px; }
  .section-heading > p { font-size: 1.0625rem; }
  .section-heading > p br { display: none; }
  .project, .community-project { padding: 34px 0 42px; }
  .project-image, .project-gallery { max-width: none; }
  .project-links { gap: 14px 22px; }
  .logo-image > a { padding: 20px; }
  .energy-row { padding: 32px 0 42px; gap: 22px; }
  .project-intro { gap: 24px; margin-bottom: 27px; }
  .juajamii-visuals, .experience-columns { grid-template-columns: minmax(0,1fr); }
  .juajamii-visuals { gap: 30px; }
  .experience-columns { padding-block: 34px; gap: 34px; }
  .experience-columns > article + article { padding-top: 34px; border-top: 1px solid var(--line); }
  .experience-columns h3 { font-size: 2rem; }
  .gallery-controls { flex-direction: row; align-items: center; gap: 8px 12px; }
  .gallery-paging { gap: 10px; }
  .gallery-paging button { min-height: 44px; padding: 8px 9px; }
  .gallery-thumbs { gap: 4px; grid-template-columns: repeat(auto-fit,minmax(28px,1fr)); }
  .thumb { padding: 2px; min-height: 44px; }
  .thumb img, .photo-section .thumb img { height: 40px; }
  .photo-section { gap: 0; }
  .contact { padding: 45px 0; }
  .contact-grid { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .contact-photo { max-width: 200px; }
  .contact h2 { font-size: 3.7rem; }
  .contact-list a { font-size: 1.18rem; }
  .footer { font-size: .8125rem; padding-block: 25px; }
}
@media (max-width:360px) {
  :root { --gutter: 18px; }
  nav { column-gap: 18px; justify-content: flex-start; }
  .header-inner { min-height: 104px; }
  .gallery-paging { gap: 8px; }
  .contact-list a { font-size: 1.0625rem; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .will-reveal, .is-revealed, [data-enter] { opacity: 1 !important; transform: none !important; }
}
@media print {
  html { scroll-padding-top: 0; }
  body { background: white; color: black; }
  h1, h2, h3, p, a { color: black; }
  .header, .gallery-thumbs, .gallery-paging, .hero-actions, .skip-link { display: none !important; }
  .container { width: 100%; }
  .gallery-track { display: block; overflow: visible; }
  .gallery-slide { break-inside: avoid; max-height: 350px; }
  .project, .community-project { break-inside: avoid; }
  .contact { background: white; }
  .hero { padding: 20px 0; }
  [data-reveal], [data-enter] { opacity: 1 !important; animation: none !important; transform: none !important; }
}
