:root {
  --ink: #171717;
  --paper: #f7f4ee;
  --white: #ffffff;
  --mist: #e9edf0;
  --teal: #0f5c64;
  --teal-dark: #0b3f45;
  --berry: #8d2438;
  --gold: #c08a2d;
  --muted: #646464;
  --line: rgba(23, 23, 23, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(247, 244, 238, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  min-height: 72px;
  padding: 16px clamp(20px, 5vw, 64px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  justify-content: flex-end;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 20px;
}

.nav a,
.back-link {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav a:hover,
.back-link:hover,
.text-link:hover {
  color: var(--teal);
}

.social-links {
  align-items: center;
  display: flex;
  gap: 10px;
}

.social-links a {
  color: currentColor;
  display: inline-flex;
}

.social-links svg {
  height: 18px;
  width: 18px;
}

.social-links .social-links--header svg,
.social-links--header svg {
  height: 17px;
  width: 17px;
}

.hero {
  min-height: 92svh;
  overflow: hidden;
  position: relative;
}

.hero-bg {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.38) 48%, rgba(0, 0, 0, 0.06)),
    url("assets/photos/work-05.jpg") right top / cover no-repeat;
  inset: 0;
  position: absolute;
  transform: scale(1.02);
}

.hero-content {
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92svh;
  padding: 112px clamp(24px, 7vw, 96px) 72px;
  position: relative;
  width: min(760px, 100%);
}

.eyebrow,
.section-kicker {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(4.4rem, 12vw, 10rem);
  letter-spacing: 0;
  margin-bottom: 18px;
}

.hero-subtitle {
  color: var(--mist);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 18px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.02rem, 2vw, 1.24rem);
  max-width: 680px;
}

.hero-actions,
.headshot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button,
.print-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 900;
  justify-content: center;
  letter-spacing: 0.08em;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.print-button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--berry);
  color: var(--white);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.button.dark,
.print-button {
  background: var(--ink);
  color: var(--white);
}

.quick-facts {
  background: var(--ink);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quick-facts div {
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  min-height: 118px;
  padding: 24px clamp(18px, 3vw, 36px);
}

.quick-facts span {
  color: rgba(255, 255, 255, 0.62);
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.quick-facts strong {
  display: block;
  font-size: clamp(1rem, 1.6vw, 1.26rem);
  line-height: 1.25;
}

.section {
  padding: clamp(72px, 10vw, 124px) clamp(22px, 5vw, 72px);
}

section[id] {
  scroll-margin-top: 104px;
}

.intro {
  background: var(--paper);
}

.intro-grid,
.resume-layout,
.headshot-layout,
.contact-layout {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
}

.intro h2,
.section-heading h2,
.resume-layout h2,
.headshot-layout h2,
.contact-layout h2 {
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  max-width: 900px;
}

.intro p,
.section-heading p,
.resume-layout p,
.headshot-layout p,
.contact-layout p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 680px;
}

.intro-copy {
  padding-top: 10px;
}

.text-link {
  color: var(--berry);
  font-weight: 900;
  text-decoration: none;
}

.media-section {
  background: var(--white);
}

.section-heading {
  display: flex;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-heading p {
  padding-top: 12px;
}

.reel-panel {
  background: var(--teal-dark);
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  margin-bottom: 28px;
  min-height: 360px;
}

.reel-panel--video {
  align-items: stretch;
}

.video-card {
  min-height: 360px;
}

.video-embed {
  aspect-ratio: 16 / 9;
  height: 100%;
  min-height: 360px;
  position: relative;
}

.video-embed iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.video-embed iframe.is-unavailable {
  display: none;
}

.video-fallback {
  align-items: center;
  color: var(--white);
  display: flex;
  height: 100%;
  justify-content: center;
  min-height: 360px;
  overflow: hidden;
  position: relative;
  text-align: center;
  text-decoration: none;
  width: 100%;
}

.video-fallback[hidden] {
  display: none;
}

.video-fallback img {
  filter: brightness(0.46) saturate(0.86);
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.video-fallback span {
  background: rgba(5, 8, 11, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 22px 26px;
  position: relative;
}

.video-fallback strong,
.video-fallback small {
  display: block;
}

.video-fallback strong {
  font-size: 1.1rem;
}

.video-fallback small {
  color: rgba(255, 255, 255, 0.74);
  margin-top: 8px;
}

.button-secondary-dark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.reel-placeholder {
  align-items: center;
  background:
    linear-gradient(rgba(15, 92, 100, 0.72), rgba(15, 92, 100, 0.72)),
    url("assets/photos/work-06.jpg") center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  padding: 36px;
  text-align: center;
}

.reel-placeholder span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
}

.reel-placeholder p {
  color: rgba(255, 255, 255, 0.82);
  margin: 18px auto 0;
  max-width: 420px;
}

.reel-notes {
  align-self: center;
  padding: 38px;
}

.reel-notes h3 {
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.reel-notes ul {
  color: rgba(255, 255, 255, 0.84);
  margin: 0;
  padding-left: 20px;
}

.reel-notes li + li {
  margin-top: 10px;
}

.photo-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

figure {
  margin: 0;
}

figure img {
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  width: 100%;
}

figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  padding-top: 10px;
}

.resume-preview {
  background: var(--mist);
}

.current-projects {
  background:
    linear-gradient(180deg, rgba(15, 92, 100, 0.06), rgba(255, 255, 255, 0)),
    var(--paper);
}

.empty-projects {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
}

.project-stack {
  display: grid;
  gap: 28px;
}

.project-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  overflow: hidden;
}

.project-copy {
  padding: 30px;
}

.project-label {
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.project-copy h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  margin-bottom: 16px;
}

.project-description {
  color: var(--muted);
  font-size: 1rem;
}

.project-description p:last-child {
  margin-bottom: 0;
}

.project-description a {
  color: var(--berry);
  font-weight: 800;
}

.project-description img {
  height: auto;
  margin: 18px 0;
  max-width: 100%;
}

.project-media {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #11161b, #05080b);
  min-height: 100%;
  padding: 18px;
}

.carousel {
  border-radius: 8px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  height: 100%;
  min-height: 420px;
  position: relative;
}

.carousel-slide {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  overflow: hidden;
  padding: 18px;
  position: absolute;
  transition: opacity 320ms ease;
}

.carousel-slide::before {
  background-image: var(--slide-image);
  background-position: center;
  background-size: cover;
  content: "";
  filter: blur(22px) saturate(0.9);
  inset: -34px;
  opacity: 0.38;
  position: absolute;
  transform: scale(1.04);
}

.carousel-slide::after {
  background:
    linear-gradient(180deg, rgba(5, 8, 11, 0.1), rgba(5, 8, 11, 0.56)),
    radial-gradient(circle at center, transparent 38%, rgba(5, 8, 11, 0.34));
  content: "";
  inset: 0;
  position: absolute;
}

.carousel-slide.is-active {
  opacity: 1;
}

.carousel-slide img {
  border-radius: 6px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  height: auto;
  max-height: calc(100% - 36px);
  max-width: calc(100% - 36px);
  object-fit: contain;
  position: relative;
  width: calc(100% - 36px);
  z-index: 1;
}

.carousel-image-link {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  position: relative;
  width: 100%;
  z-index: 1;
}

.carousel-image-link img {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.carousel-image-link:hover img {
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.42);
  transform: translateY(-2px);
}

.carousel-controls {
  align-items: center;
  bottom: 18px;
  display: flex;
  gap: 12px;
  left: 18px;
  justify-content: space-between;
  pointer-events: none;
  position: absolute;
  right: 18px;
  z-index: 2;
}

.carousel-button,
.carousel-dot {
  appearance: none;
  background: rgba(255, 255, 255, 0.9);
  border: 0;
  border-radius: 999px;
  color: var(--white);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  pointer-events: auto;
  text-transform: uppercase;
}

.carousel-button {
  color: var(--ink);
  min-height: 42px;
  padding: 0 16px;
}

.carousel-dots {
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(5, 8, 11, 0.42);
  border-radius: 999px;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  pointer-events: auto;
}

.carousel-dot {
  background: rgba(255, 255, 255, 0.42);
  min-height: 12px;
  min-width: 12px;
  padding: 0;
}

.carousel-dot.is-active {
  background: var(--white);
  transform: scale(1.2);
}

.credits-table {
  background: var(--white);
  box-shadow: var(--shadow);
}

.credit-row {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 0.9fr 1.2fr;
  padding: 18px 20px;
}

.credit-row + .credit-row {
  border-top: 1px solid var(--line);
}

.credit-row.header {
  background: var(--teal);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.headshots {
  background: var(--ink);
  color: var(--white);
}

.headshots .section-kicker,
.headshots h2 {
  color: var(--white);
}

.headshots p {
  color: rgba(255, 255, 255, 0.78);
}

.portrait-wrap {
  background: var(--white);
  justify-self: start;
  max-width: 420px;
  padding: 14px;
  transform: rotate(-1deg);
}

.portrait-wrap img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.headshot-actions .button.secondary {
  border-color: rgba(255, 255, 255, 0.45);
}

.contact {
  background: var(--paper);
}

.contact-list {
  align-self: start;
  border-top: 1px solid var(--line);
}

.contact-list a {
  border-bottom: 1px solid var(--line);
  display: block;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 800;
  padding: 20px 0;
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--berry);
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.76);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  padding: 28px clamp(22px, 5vw, 72px);
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.resume-page {
  background: #d9dde0;
}

.resume-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 48px);
}

.resume-sheet {
  background: var(--white);
  box-shadow: var(--shadow);
  margin: 0 auto 48px;
  max-width: 920px;
  padding: 48px;
}

.resume-top {
  align-items: start;
  border-bottom: 3px solid var(--ink);
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 130px;
  padding-bottom: 26px;
}

.resume-top h1 {
  font-size: clamp(3rem, 7vw, 5.4rem);
  margin-bottom: 12px;
}

.resume-top img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 130px;
}

.resume-section {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.resume-section h2 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.resume-credit {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  padding: 5px 0;
}

.resume-credit span:first-child {
  font-weight: 800;
}

.resume-contact {
  border-bottom: 0;
}

.admin-page {
  background: #e7ecef;
  color: var(--ink);
}

.admin-shell {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1440px;
  padding: 28px;
}

.admin-shell--narrow {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.admin-sidebar,
.admin-panel {
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-sidebar {
  align-self: start;
  padding: 24px;
  position: sticky;
  top: 104px;
}

.admin-sidebar-header,
.admin-panel-header,
.admin-images-header {
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.admin-sidebar-header {
  align-items: start;
  flex-direction: column;
}

.admin-sidebar h1,
.admin-panel h1,
.admin-panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  margin-bottom: 0;
}

.admin-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.admin-section-nav {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
}

.admin-section-nav a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.admin-section-nav a:hover {
  color: var(--berry);
}

.admin-project-link {
  border: 1px solid var(--line);
  color: inherit;
  display: block;
  padding: 14px;
  text-decoration: none;
}

.admin-project-link strong,
.admin-project-link span {
  display: block;
}

.admin-project-link span,
.admin-sidebar-note,
.admin-empty,
.admin-images-header p,
.admin-field small {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-sidebar-note {
  margin: 16px 0 0;
}

.admin-project-link.is-active {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.admin-panel {
  padding: 28px;
}

.admin-panel-header {
  align-items: start;
  margin-bottom: 20px;
}

.admin-link-button {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.admin-message {
  border: 1px solid var(--line);
  margin-bottom: 16px;
  padding: 14px 16px;
}

.admin-message--success {
  background: rgba(15, 92, 100, 0.08);
  border-color: rgba(15, 92, 100, 0.22);
}

.admin-message--error {
  background: rgba(141, 36, 56, 0.08);
  border-color: rgba(141, 36, 56, 0.26);
}

.admin-form {
  display: grid;
  gap: 20px;
}

.admin-field,
.admin-checkbox {
  display: grid;
  gap: 8px;
}

.admin-field input[type="text"],
.admin-field input[type="file"],
.admin-field textarea {
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
  padding: 12px 14px;
}

.admin-rich-editor-input {
  min-height: 220px;
  resize: vertical;
}

.admin-rich-editor {
  display: none;
}

.admin-description-field.is-enhanced .admin-rich-editor-input {
  display: none;
}

.admin-description-field.is-enhanced .admin-rich-editor {
  background: var(--white);
  display: block;
}

.admin-rich-editor .ql-editor {
  font: inherit;
  min-height: 320px;
}

.admin-rich-editor .ql-editor p,
.admin-rich-editor .ql-editor ul,
.admin-rich-editor .ql-editor ol,
.admin-rich-editor .ql-editor blockquote {
  margin-bottom: 1em;
}

.admin-field .ql-toolbar,
.admin-field .ql-container {
  border-color: var(--line);
}

.admin-checkbox {
  align-items: center;
  grid-template-columns: auto 1fr;
}

.admin-images {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.admin-content-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding-top: 28px;
}

.admin-content-section--projects {
  gap: 22px;
}

.admin-images-header {
  align-items: start;
  margin-bottom: 14px;
}

.admin-image-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 18px;
}

.admin-image-card {
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 12px;
}

.admin-image-card--pending {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.admin-image-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.admin-upload-form {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 16px;
}

.admin-version-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-select-card {
  border: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.admin-select-card:hover {
  border-color: rgba(15, 92, 100, 0.48);
}

.admin-select-card.is-selected {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 4px var(--teal);
  padding-right: 72px;
}

.admin-select-card.is-selected::after {
  background: var(--teal);
  color: var(--white);
  content: "Active";
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 6px 8px;
  position: absolute;
  right: 12px;
  text-transform: uppercase;
  top: 12px;
}

.admin-select-input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.admin-select-input:focus-visible + img,
.admin-select-input:focus-visible + span {
  outline: 3px solid var(--berry);
  outline-offset: 4px;
}

.admin-version-card,
.admin-version-row {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.admin-version-card {
  grid-template-columns: auto 1fr;
}

.admin-version-card img {
  aspect-ratio: 4 / 5;
  grid-column: 1 / -1;
  object-fit: cover;
  width: 100%;
}

.admin-version-card span,
.admin-version-row span {
  display: grid;
  gap: 3px;
}

.admin-version-card small,
.admin-version-row small {
  color: var(--muted);
}

.admin-version-list {
  display: grid;
  gap: 12px;
}

.admin-version-row {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-card-actions form {
  margin: 0;
}

.admin-card-actions--inline {
  justify-content: flex-end;
}

.admin-credit-editor {
  display: grid;
  gap: 12px;
}

.admin-credit-row {
  align-items: end;
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  padding: 14px;
}

.admin-remove-credit {
  min-height: 47px;
}

.admin-project-manager {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}

.admin-project-picker {
  align-self: start;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 16px;
}

.admin-project-picker h4,
.admin-subsection-heading h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.admin-new-image-grid {
  margin-top: 16px;
}

.admin-pending-image-name {
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-danger {
  background: var(--berry);
  color: var(--white);
}

@media (max-width: 900px) {
  .quick-facts,
  .intro-grid,
  .resume-layout,
  .headshot-layout,
  .contact-layout,
  .reel-panel,
  .section-heading,
  .project-card,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .quick-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading {
    display: block;
  }

  .project-media {
    min-height: 0;
    padding: 12px;
  }

  .carousel,
  .carousel-track {
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 0;
  }

  .carousel-slide {
    padding: 12px;
  }

  .carousel-slide img {
    max-height: calc(100% - 24px);
    max-width: calc(100% - 24px);
    width: calc(100% - 24px);
  }

  .carousel-controls {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }

  .reel-panel {
    gap: 0;
    min-height: 0;
  }

  .video-card {
    min-height: 0;
  }

  .video-embed {
    height: auto;
    min-height: 0;
  }

  .video-embed iframe,
  .video-fallback {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .reel-placeholder {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .reel-notes {
    padding: 28px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .credit-row {
    grid-template-columns: 1fr;
  }

  .header-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-credit-row {
    grid-template-columns: 1fr;
  }

  .admin-version-row,
  .admin-project-manager {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 144px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    min-height: 96px;
  }

  .nav {
    justify-content: flex-start;
  }

  .social-links--header {
    display: none;
  }

  .hero-content {
    padding-top: 132px;
  }

  section[id] {
    scroll-margin-top: 132px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 19vw, 5rem);
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .project-media {
    padding: 10px;
  }

  .carousel,
  .carousel-track {
    aspect-ratio: 4 / 3;
  }

  .carousel-slide {
    padding: 10px;
  }

  .carousel-slide img {
    max-height: calc(100% - 20px);
    max-width: calc(100% - 20px);
    width: calc(100% - 20px);
  }

  .carousel-button {
    min-height: 34px;
    padding: 0 12px;
  }

  .carousel-dots {
    padding: 8px 10px;
  }

  .reel-panel {
    margin-left: -20px;
    margin-right: -20px;
  }

  .reel-notes {
    padding: 24px 20px 28px;
  }

  .reel-notes h3 {
    font-size: 1.18rem;
    margin-bottom: 12px;
  }

  .reel-notes ul {
    padding-left: 18px;
  }

  .reel-notes .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .reel-notes .button {
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .video-fallback span {
    margin: 18px;
    padding: 16px 18px;
  }

  .resume-sheet {
    margin-bottom: 0;
    padding: 28px 20px;
  }

  .resume-top,
  .resume-credit {
    grid-template-columns: 1fr;
  }

  .resume-top img {
    width: 160px;
  }

  .admin-shell,
  .admin-panel,
  .admin-sidebar {
    padding: 20px;
  }
}

@media print {
  body {
    background: var(--white);
  }

  .resume-header {
    display: none;
  }

  .resume-sheet {
    box-shadow: none;
    margin: 0;
    max-width: none;
    padding: 0.45in;
  }

  .resume-section {
    break-inside: avoid;
  }
}
