:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --ink: #173b35;
  --muted: #788c84;
  --teal: #12665d;
  --teal-dark: #083c38;
  --mint: #e5eee8;
  --line: rgba(23, 59, 53, .15);
  --sans: "DM Sans", "Helvetica Neue", sans-serif;
  --display: "Manrope", "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
button { color: inherit; }
.wrap { width: min(1140px, calc(100% - 64px)); margin-inline: auto; }

.site-head { display: grid; grid-template-columns: minmax(0,1fr); align-items: center; gap: 36px; min-height: 210px; padding-top: 32px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.identity { min-width: 0; }
.identity-copy { display: block; }
.site-head h1 { margin: 0; font-family: var(--display); font-size: clamp(48px, 7vw, 76px); font-weight: 500; line-height: .98; letter-spacing: -.075em; }
.site-head p { max-width: 690px; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.site-head p.contribution { max-width: none; margin-top: 10px; padding-left: 0; border-left: 0; color: var(--teal); font-size: 10px; font-weight: 700; letter-spacing: .035em; }
.edit-trigger { flex: none; border: 1px solid var(--line); border-radius: 999px; background: transparent; padding: 10px 16px; font-size: 11px; font-weight: 700; cursor: pointer; transition: background .2s ease, color .2s ease; }
.edit-trigger:hover, .edit-trigger[aria-expanded="true"] { color: white; border-color: var(--teal-dark); background: var(--teal-dark); }

.portfolio { padding-top: 0; padding-bottom: 70px; }
.filter-panel { position: sticky; z-index: 10; top: 0; margin-bottom: 28px; background: rgba(247,247,242,.96); backdrop-filter: blur(14px); }
.filter-bar, .objective-bar { display: flex; align-items: center; gap: 23px; overflow-x: auto; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar, .objective-bar::-webkit-scrollbar { display: none; }
.filter-bar { min-height: 57px; border-bottom: 1px solid var(--line); }
.objective-bar { min-height: 46px; gap: 19px; border-bottom: 1px solid var(--line); }
.filter-label { flex: none; color: #82928a; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.filter-chip { position: relative; display: inline-flex; align-items: center; gap: 7px; align-self: stretch; padding: 0 1px; border: 0; background: transparent; color: #778b83; font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.filter-chip::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: transparent; content: ""; }
.filter-chip:hover, .filter-chip.is-active { color: var(--teal-dark); }
.filter-chip.is-active::after { background: var(--teal-dark); }
.filter-chip span { color: var(--teal); font-size: 9px; }
.objective-chip { flex: none; padding: 5px 0; border: 0; background: transparent; color: #89988f; font-size: 10px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.objective-chip:hover, .objective-chip.is-active { color: var(--teal-dark); }
.objective-chip.is-active { font-weight: 800; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 22px; }
.project-grid[hidden] { display: none; }
.project-card { min-width: 0; animation: card-in .28s ease both; }
@keyframes card-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.card-open { display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.card-image { position: relative; display: grid; overflow: hidden; aspect-ratio: 4 / 5; place-items: center; background: #e7eae3; }
.card-image.card-vertical { aspect-ratio: 9 / 16; }
.card-image.card-square { aspect-ratio: 4 / 5; }
.card-image.card-portrait { aspect-ratio: 4 / 5; }
.card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.card-open:hover .card-image img { transform: scale(1.025); }
.card-image video { display: block; width: 100%; height: 100%; object-fit: contain; background: #e3eae3; }
.card-play { position: absolute; right: 13px; bottom: 13px; z-index: 1; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; color: white; background: rgba(8,60,56,.54); backdrop-filter: blur(5px); }
.card-play svg { margin-left: 2px; }
.card-meta { display: flex; align-items: center; gap: 8px; margin: 13px 0 5px; color: var(--teal); font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.card-title { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 12px; margin: 0; font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.045em; line-height: 1.3; }
.card-title-text { min-width: 0; }
.card-arrow { flex: none; color: var(--teal); font-family: var(--sans); font-size: 18px; transition: transform .2s ease; }
.card-open:hover .card-arrow { transform: translate(3px,-3px); }
.empty-state { padding: 60px 0; color: var(--muted); text-align: center; }
.site-footer { display: flex; justify-content: space-between; min-height: 57px; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.site-footer span:first-child { color: var(--ink); font-weight: 700; }
.results { margin-top: 4px; margin-bottom: 58px; padding: 30px 34px 32px; background: #e7eee7; }
.results[hidden] { display: none; }
.results-heading { display: block; padding-bottom: 23px; border-bottom: 1px solid rgba(23,59,53,.16); }
.results-kicker { margin: 0 0 8px; color: var(--teal); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.results-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -.055em; white-space: nowrap; }
.results-note { max-width: none; margin: 8px 0 0; color: #6d8178; font-size: 10px; line-height: 1.6; white-space: nowrap; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 22px; }
.metric { display: grid; gap: 5px; padding-left: 23px; border-left: 1px solid rgba(23,59,53,.16); }
.metric:first-child { padding-left: 0; border-left: 0; }
.metric strong { color: var(--teal-dark); font-family: var(--display); font-size: clamp(26px, 4vw, 40px); font-weight: 600; letter-spacing: -.06em; }
.metric span { color: #71857c; font-size: 10px; }

.edit-panel { position: fixed; z-index: 30; top: 0; right: 0; display: flex; flex-direction: column; width: min(440px, 100%); height: 100dvh; padding: 27px 26px 22px; overflow: auto; background: var(--paper); box-shadow: -18px 0 50px rgba(8,60,56,.12); transform: translateX(105%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
.edit-panel.is-open { transform: translateX(0); visibility: visible; }
.edit-panel-head { display: flex; align-items: start; justify-content: space-between; }
.edit-panel-head .eyebrow { margin-bottom: 7px; color: var(--teal); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.edit-panel h2 { margin: 0; font-family: var(--display); font-size: 30px; letter-spacing: -.05em; }
.icon-button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; }
.edit-help { margin: 13px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.edit-list { display: grid; gap: 7px; }
.edit-row { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); background: #fff; }
.edit-row input { width: 16px; height: 16px; accent-color: var(--teal); }
.edit-row label { min-width: 0; font-size: 11px; font-weight: 700; cursor: pointer; }
.edit-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 500; }
.reorder { display: flex; gap: 3px; }
.reorder button { width: 27px; height: 27px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.reorder button:disabled { opacity: .3; cursor: default; }
.edit-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 18px; }
.button { flex: 1; min-height: 42px; padding-inline: 11px; border: 1px solid var(--line); border-radius: 4px; font-size: 10px; font-weight: 700; cursor: pointer; }
.button-dark { color: #fff; border-color: var(--teal-dark); background: var(--teal-dark); }
.button-light { color: var(--teal-dark); background: transparent; }
.save-status { min-height: 14px; margin: 11px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.panel-backdrop { position: fixed; z-index: 29; inset: 0; background: rgba(8,30,28,.24); backdrop-filter: blur(3px); }

.viewer { width: min(920px, calc(100% - 32px)); max-width: none; max-height: min(94dvh, 1000px); padding: 24px 26px 20px; overflow: auto; border: 0; color: var(--ink); background: var(--paper); box-shadow: 0 24px 100px rgba(8,30,28,.28); }
.viewer::backdrop { background: rgba(8,30,28,.68); backdrop-filter: blur(4px); }
.viewer-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.viewer-head .eyebrow { margin: 0 0 5px; color: var(--teal); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.viewer-head h2 { margin: 0; font-family: var(--display); font-size: clamp(22px, 3vw, 32px); letter-spacing: -.05em; }
.viewer-stage { display: grid; min-height: 220px; place-items: center; background: #e7eae3; }
.viewer-stage img { display: block; width: auto; max-width: 100%; height: auto; max-height: 67dvh; object-fit: contain; }
.viewer-stage video { display: block; max-width: 100%; max-height: 67dvh; background: #111; }
.viewer-controls { display: flex; align-items: center; justify-content: center; gap: 22px; padding-top: 13px; color: var(--muted); font-size: 11px; }
.round-control { display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.round-control:disabled { opacity: .35; cursor: default; }
:focus-visible { outline: 3px solid #92b952; outline-offset: 3px; }

@media (max-width: 800px) {
  .wrap { width: calc(100% - 44px); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .identity { gap: 14px; }
  .filter-bar { gap: 20px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 36px); }
  .site-head { min-height: 0; gap: 8px; padding-top: 26px; padding-bottom: 18px; }
  .identity { display: block; }
  .identity-copy { display: block; }
  .site-head h1 { font-size: clamp(40px, 11vw, 58px); }
  .site-head p { max-width: 265px; margin-top: 8px; font-size: 11px; }
  .site-head p.contribution { margin-top: 7px; padding-left: 0; border-left: 0; font-size: 9px; }
  .edit-trigger { align-self: start; margin-top: 3px; padding: 8px 10px; font-size: 9px; }
  .filter-panel { width: calc(100% + 36px); margin-inline: -18px; margin-bottom: 19px; padding-inline: 18px; }
  .filter-bar { gap: 19px; min-height: 52px; }
  .objective-bar { gap: 16px; min-height: 42px; }
  .filter-label { font-size: 8px; }
  .filter-chip { font-size: 10px; }
  .objective-chip { font-size: 9px; }
  .project-grid { grid-template-columns: 1fr; gap: 25px; }
  .card-image { aspect-ratio: 4 / 5; }
  .card-image.card-vertical { aspect-ratio: 9 / 16; }
  .card-title { font-size: 18px; }
  .portfolio { padding-bottom: 50px; }
  .site-footer { min-height: 52px; font-size: 9px; }
  .results { margin-bottom: 42px; padding: 21px 17px 22px; }
  .results-heading { padding-bottom: 17px; }
  .results-heading h2 { font-size: 22px; }
  .results-heading h2, .results-note { white-space: normal; }
  .results-note { margin-top: 8px; font-size: 9px; }
  .metrics { padding-top: 17px; }
  .metric { gap: 4px; padding-left: 9px; }
  .metric strong { font-size: clamp(18px, 6vw, 25px); }
  .metric span { font-size: 8px; line-height: 1.4; }
  .viewer { padding: 17px 13px 14px; }
  .viewer-stage { min-height: 150px; }
  .viewer-stage img, .viewer-stage video { max-height: 62dvh; }
  .edit-panel { padding: 21px 17px 16px; }
  .edit-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
