:root {
  color-scheme: light;
  --paper: #f6f5f2;
  --surface: #fff;
  --ink: #192d36;
  --muted: #5b696f;
  --line: #d8dfdf;
  --accent: #186b60;
  --focus: #075fb4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button { border: 0; }
button, a { touch-action: manipulation; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 10px; left: 16px; padding: 12px 18px; background: var(--ink); color: white; z-index: 10; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.collection { width: min(1440px, 100%); min-height: 100svh; margin: auto; padding: 40px 52px 20px; display: flex; flex-direction: column; }
.intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 30px; }
.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: .16em; line-height: 1.7; color: var(--muted); }
.eyebrow span { margin: 0 5px; }
h1 { margin: 10px 0 13px; font-size: clamp(38px, 4.2vw, 60px); line-height: 1.08; font-weight: 550; letter-spacing: -.055em; }
.name-dot { color: var(--accent); }
.intro-line { font-size: 15px; line-height: 1.6; color: var(--muted); }
.collection-label { color: var(--muted); font-size: 11px; white-space: nowrap; padding-top: 4px; }
.projects { margin-bottom: 22px; }
.gallery-heading { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 18px 0; }
.gallery-heading h2 { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.gallery-heading h2 span { margin-left: 12px; font-size: 10px; font-weight: 450; letter-spacing: .05em; color: var(--muted); }
.gallery-heading p { font-size: 11px; color: var(--muted); }
.gallery-heading p span { margin-left: 8px; font-size: 15px; }
.project-grid { display: grid; grid-template-columns: 1.05fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-card { position: relative; min-width: 0; display: flex; flex-direction: column; background: var(--surface); text-align: left; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; padding: 0; transition: border-color 160ms, box-shadow 160ms, transform 160ms; }
.card-top { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px 10px; }
.card-client { font-size: 12px; font-weight: 600; letter-spacing: -.01em; }
.card-index { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-visual { display: flex; align-items: center; justify-content: center; height: clamp(120px, 17.5vh, 175px); margin: 0 12px; background: #eff3f5; border: 1px solid #e2e9eb; border-radius: 5px; overflow: hidden; }
.card-visual img { width: 100%; height: 100%; object-fit: contain; transition: transform 220ms; }
.card-copy { padding: 12px 16px 15px; display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; flex: 1; }
.card-title { display: block; font-size: clamp(14px, 1.15vw, 17px); font-weight: 550; letter-spacing: -.02em; line-height: 1.3; }
.open-arrow { font-size: 18px; font-weight: 400; color: var(--accent); flex-shrink: 0; line-height: 1.1; transition: transform 160ms; }
.feature-card { grid-row: span 2; background: #eaf0ec; border-color: #d0dbd4; }
.feature-card .card-top { padding: 19px 20px; }
.feature-card .card-visual { margin: auto 20px; height: auto; aspect-ratio: 4/3; background: white; box-shadow: 0 6px 20px #192d3608; }
.feature-card .card-copy { flex: 0; display: block; padding: 24px 22px 12px; }
.card-category { display: block; font-size: 10px; color: #426056; margin-bottom: 10px; }
.feature-card .card-title { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.17; letter-spacing: -.045em; max-width: 340px; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: #426056; padding: 10px 22px 20px; }
.card-bottom .open-arrow { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid #afc4b9; border-radius: 50%; }
.collection-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; color: var(--muted); font-size: 10px; line-height: 1.6; margin-top: auto; padding-top: 2px; }
.collection-footer p span { padding: 0 8px; }
.collection-footer > span { white-space: nowrap; }
.noscript-note { margin-top: 20px; font-size: 14px; }

/* Presentation: the image uses the available height; copy stays in a quiet rail. */
body.is-presenting { overflow: hidden; }
.presentation { position: fixed; inset: 0; margin: 0; padding: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; border: 0; background: #f6f7f8; color: var(--ink); overflow: hidden; }
.presentation[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: reveal 160ms ease-out; }
.presentation::backdrop { background: #192d3680; }
.presentation-header { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--line); }
.presentation-identity { min-width: 0; display: flex; gap: 24px; align-items: center; }
.project-counter { flex-shrink: 0; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); }
#project-client { font-size: 10px; color: var(--muted); margin-bottom: 5px; }
.presentation-header h2 { font-size: 16px; font-weight: 550; letter-spacing: -.025em; line-height: 1.3; }
.presentation-tools { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.quiet-button { background: transparent; border-radius: 6px; min-height: 44px; padding: 0 12px; font-size: 12px; white-space: nowrap; }
.icon-button { width: 44px; height: 44px; display: inline-flex; justify-content: center; align-items: center; background: transparent; border: 1px solid var(--line); border-radius: 8px; flex-shrink: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.close-button { margin-left: 12px; }
.presentation-body { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 26px; min-height: 0; padding: 22px 28px; }
.image-stage { min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; overscroll-behavior: contain; border-radius: 6px; background: #ebeff1; scrollbar-width: thin; }
.image-target { display: block; width: 100%; height: 100%; padding: 0; background: transparent; border: 0; cursor: zoom-in; }
.image-target:focus-visible { outline-offset: -4px; }
#project-image { width: 100%; height: 100%; object-fit: contain; user-select: none; }
.project-notes { display: flex; flex-direction: column; justify-content: center; gap: 28px; overflow-y: auto; padding: 14px 0; }
.project-notes h3 { text-transform: uppercase; letter-spacing: .12em; font-size: 9px; line-height: 1.5; font-weight: 650; color: var(--muted); margin-bottom: 9px; }
.project-notes p { font-size: 14px; line-height: 1.6; letter-spacing: -.01em; }
.impact-note { border-top: 1px solid var(--line); padding-top: 22px; }
.impact-note h3 { color: var(--accent); }
.notes-hidden .presentation-body { grid-template-columns: minmax(0, 1fr); }
.is-zoomed .image-stage { display: block; overflow: auto; touch-action: pan-x pan-y pinch-zoom; cursor: grab; }
.is-zoomed .image-target { width: var(--image-width); max-width: none; height: auto; cursor: grab; touch-action: pan-x pan-y pinch-zoom; }
.is-zoomed #project-image { height: auto; max-width: none; }
.is-zoomed .image-stage.is-dragging, .is-zoomed .image-stage.is-dragging .image-target { cursor: grabbing; }
.image-error { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: #ebeff1; padding: 24px; text-align: center; font-size: 14px; }
.image-error button { padding: 12px; border-radius: 6px; background: white; text-decoration: underline; }
.presentation-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; padding: 8px 28px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.step-button { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; border-radius: 8px; padding: 0 14px; background: transparent; font-size: 12px; }
.project-thumbnails { display: flex; gap: 10px; }
.project-thumbnails button { padding: 3px; width: 66px; height: 50px; border: 1px solid #d7dfe2; border-radius: 5px; background: #f0f2f3; transition: border-color 140ms, background 140ms; }
.project-thumbnails img { width: 100%; height: 100%; object-fit: contain; opacity: .6; }
.project-thumbnails button[aria-current="true"] { border: 2px solid var(--accent); padding: 2px; background: #e8f1ed; }
.project-thumbnails button[aria-current="true"] img { opacity: 1; }
@keyframes reveal { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (hover: hover) {
  .project-card:hover { border-color: #8aa79b; box-shadow: 0 8px 22px #192d360b; transform: translateY(-3px); }
  .project-card:hover .open-arrow { transform: translate(2px, -2px); }
  .project-card:hover .card-visual img { transform: scale(1.015); }
  .quiet-button:hover, .icon-button:hover, .step-button:hover { background: #eaf0ed; }
  .project-thumbnails button:hover { border-color: var(--accent); }
  .project-thumbnails button:hover img { opacity: 1; }
}
@media (min-width: 1051px) and (max-height: 800px) {
  .collection { padding-top: 25px; }
  .intro { padding-bottom: 20px; }
  h1 { font-size: 48px; margin: 7px 0 9px; }
  .gallery-heading { padding: 14px 0; }
  .project-grid { gap: 12px; }
  .card-visual { height: 120px; }
  .card-copy { padding-top: 10px; padding-bottom: 12px; }
  .feature-card .card-copy { padding-top: 18px; }
  .feature-card .card-title { font-size: 25px; }
  .feature-card .card-top { padding-top: 14px; padding-bottom: 14px; }
  .feature-card .card-visual { max-height: 220px; }
  .card-bottom { padding-bottom: 14px; }
  .presentation-header { min-height: 65px; padding: 8px 24px; }
  .presentation-body { padding: 14px 24px; gap: 22px; }
  .presentation-footer { min-height: 66px; padding-top: 6px; padding-bottom: 6px; }
  .project-notes { gap: 22px; }
}
@media (max-width: 1050px) {
  .collection { padding: 30px 28px 20px; }
  .collection-label { display: none; }
  .project-grid { gap: 12px; }
  .card-top { padding-inline: 12px; }
  .card-copy { padding-inline: 12px; }
  .card-title { font-size: 14px; }
  .feature-card .card-visual { margin-inline: 14px; }
  .feature-card .card-copy { padding-inline: 16px; }
  .feature-card .card-title { font-size: 23px; }
  .feature-card .card-top, .card-bottom { padding-inline: 16px; }
  .presentation-header { padding: 10px 18px; }
  .presentation-identity { gap: 14px; }
  .presentation-header h2 { font-size: 14px; }
  .presentation-body { grid-template-columns: minmax(0, 1fr) 200px; padding: 18px; gap: 18px; }
  .project-notes p { font-size: 13px; }
}
@media (max-width: 760px) {
  .collection { padding: 28px 20px 20px; }
  .intro { padding-bottom: 24px; }
  h1 { font-size: 43px; }
  .intro-line { max-width: 420px; font-size: 14px; }
  .eyebrow { font-size: 9px; }
  .eyebrow span { margin-inline: 3px; }
  .gallery-heading p { display: none; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .feature-card { grid-row: auto; grid-column: 1/-1; display: grid; grid-template-columns: 1.05fr 1fr; grid-template-rows: auto 1fr auto; padding: 16px; column-gap: 18px; }
  .feature-card .card-visual { grid-column: 1; grid-row: 1/4; margin: auto 0; }
  .feature-card .card-top { grid-column: 2; padding: 0; }
  .feature-card .card-copy { grid-column: 2; padding: 16px 0; }
  .feature-card .card-title { font-size: 23px; }
  .feature-card .card-category { font-size: 9px; }
  .feature-card .card-bottom { grid-column: 2; padding: 0; }
  .feature-card .card-bottom > span:first-child { display: none; }
  .card-visual { height: clamp(104px, 24vw, 170px); margin-inline: 8px; }
  .card-client { font-size: 11px; }
  .card-copy { padding: 11px 12px 14px; }
  .card-title { font-size: 14px; }
  .open-arrow { font-size: 16px; }
  .collection-footer { flex-direction: column; align-items: flex-start; gap: 9px; font-size: 9px; }
  .collection-footer p span { padding-inline: 3px; }
  .collection-footer > span { display: none; }
  .presentation-header { flex-wrap: wrap; gap: 6px; min-height: 108px; padding: 10px 16px 8px; align-content: center; }
  .presentation-identity { width: calc(100% - 44px); padding-right: 8px; gap: 12px; }
  .project-counter { font-size: 10px; }
  .presentation-header h2 { font-size: 14px; }
  #project-client { font-size: 10px; margin-bottom: 3px; }
  .presentation-tools { width: 100%; padding-left: 44px; gap: 2px; }
  .quiet-button { min-height: 36px; padding-inline: 10px; font-size: 11px; }
  .close-button { position: absolute; top: 13px; right: 12px; border: 0; margin: 0; }
  .presentation-body { display: flex; flex-direction: column; gap: 18px; padding: 12px 14px 18px; overflow-y: auto; }
  .image-stage { flex: 0 0 auto; height: clamp(215px, 45dvh, 520px); }
  .project-notes { flex: 0 0 auto; overflow: visible; gap: 17px; padding: 0 3px; }
  .project-notes h3 { font-size: 9px; margin-bottom: 5px; }
  .project-notes p { font-size: 14px; line-height: 1.6; }
  .impact-note { padding-top: 16px; }
  .notes-hidden .presentation-body, .is-zoomed .presentation-body { overflow: hidden; }
  .notes-hidden .image-stage, .is-zoomed .image-stage { flex: 1 1 auto; height: auto; }
  .is-zoomed .project-notes { display: none; }
  .presentation-footer { padding-inline: 10px; gap: 6px; min-height: 66px; }
  .step-button { padding: 0; justify-content: center; width: 44px; flex-shrink: 0; }
  .step-button span { display: none; }
  .project-thumbnails { gap: 5px; }
  .project-thumbnails button { width: 44px; height: 44px; }
}
@media (max-width: 370px) {
  .collection { padding-inline: 14px; }
  h1 { font-size: 36px; }
  .feature-card { column-gap: 12px; padding: 12px; }
  .feature-card .card-title { font-size: 19px; }
  .card-copy { gap: 5px; padding-inline: 9px; }
  .card-client { font-size: 10px; }
  .card-title { font-size: 13px; }
  .project-thumbnails { gap: 3px; }
  .project-thumbnails button { width: 40px; }
  .presentation-footer { gap: 2px; padding-inline: 3px; }
}
@media (max-height: 500px) and (min-width: 600px) {
  .presentation-header { min-height: 60px; flex-wrap: nowrap; padding: 7px 16px; }
  .presentation-identity { width: auto; }
  .presentation-tools { width: auto; padding: 0; }
  .close-button { position: static; }
  .presentation-body { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 18px; padding: 10px 16px; overflow: hidden; }
  .image-stage { height: auto; }
  .project-notes { overflow-y: auto; justify-content: flex-start; }
  .project-notes p { font-size: 12px; }
  .presentation-footer { min-height: 56px; }
  .project-thumbnails button { height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .project-card, .project-thumbnails button, .icon-button { border: 1px solid ButtonText; }
  .project-thumbnails button[aria-current="true"] { outline: 3px solid Highlight; }
}
