@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,600;1,700&display=swap');

:root {
  --warm-white: #f4f0e7;
  --paper: #fbf8f1;
  --ink: #05090b;
  --muted: #6f6b63;
  --line: #c9c3b7;
  --dark-line: #33383a;
  --yellow: #e4bd20;
  --orange: #ffa800;
  --accent: #f3b318;
  --brand-gradient: linear-gradient(110deg, #e4bd20 0%, #efb819 48%, #ffa800 100%);
  --success: #237d4b;
  --danger: #a63f3f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif; color: var(--ink); background: var(--warm-white); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--orange); color: var(--ink); }

.container { width: min(1240px, calc(100% - 56px)); margin: 0 auto; }
.section { padding: 130px 0; }
.public-body { overflow-x: hidden; background: var(--warm-white); }
.public-body main { min-height: 60vh; }

.eyebrow,
.heading-index,
.hero-edition,
.project-type,
.project-kicker,
.project-body-label {
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* Public navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: rgba(5, 9, 11, .97);
  border-bottom: 1px solid #23282a;
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; line-height: 1; white-space: nowrap; }
.brand-main { font-size: 1.02rem; font-weight: 900; letter-spacing: -.035em; }
.brand-media { color: var(--orange); font-family: "Instrument Serif", Georgia, serif; font-size: 1rem; font-style: italic; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 28px 0 25px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: #d9dcdd; }
.site-nav a span { color: #72787a; font-size: .6rem; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 3px; background: var(--brand-gradient); transition: right .22s ease; }
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after { right: 0; }
.menu-toggle { display: none; border: 1px solid #565b5d; border-radius: 0; background: transparent; color: #fff; padding: 9px 12px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

/* Hero */
.hero { position: relative; background: var(--warm-white); border-bottom: 2px solid var(--ink); }
.hero-shell { padding-top: 54px; padding-bottom: 54px; }
.hero-meta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 32px; border-bottom: 1px solid var(--ink); }
.hero-meta .eyebrow { margin: 0; color: var(--ink); }
.hero-edition { margin: 0; color: var(--muted); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 62px; align-items: end; padding: 62px 0 56px; }
.hero-copy { min-width: 0; }
.hero h1 { margin: 0; max-width: 900px; font-size: clamp(4.8rem, 9.2vw, 9rem); font-weight: 900; line-height: .82; letter-spacing: -.075em; text-transform: uppercase; }
.hero-text { margin: 42px 0 0; max-width: 740px; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(1.65rem, 2.6vw, 2.55rem); line-height: 1.04; color: #4b4843; }
.hero-brand-tile { width: 100%; aspect-ratio: 1; overflow: hidden; border: 2px solid var(--ink); background: var(--brand-gradient); }
.hero-brand-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.hero-brand-tile:hover img { transform: scale(1.025); }
.hero-footer { display: flex; align-items: end; justify-content: space-between; gap: 40px; padding-top: 30px; border-top: 1px solid var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-note { margin: 0; text-align: right; font-family: "Instrument Serif", Georgia, serif; font-size: 1.35rem; line-height: 1; }
.hero-note em { color: #8d5e00; }

.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 28px; padding: 0 18px; border: 2px solid transparent; border-radius: 0; font-size: .76rem; font-weight: 850; letter-spacing: .02em; text-transform: uppercase; transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease; }
.button span { font-size: 1rem; transition: transform .18s ease; }
.button:hover span { transform: translate(2px, -2px); }
.button-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.button-primary:hover { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.button-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.button-ghost:hover { background: #fff; }
.button-black { background: var(--ink); color: #fff; border-color: var(--ink); min-width: 190px; }
.button-black:hover { background: #fff; color: var(--ink); }
.button-gradient { color: var(--ink); background: var(--brand-gradient); border-color: transparent; }
.button-gradient:hover { background: #fff; }
.button-light { background: #fff; color: var(--ink); }
.button-ghost-dark { border-color: #c8c3bb; background: transparent; }

/* Animated studio ticker */
.ticker { overflow: hidden; background: var(--brand-gradient); border-bottom: 2px solid var(--ink); }
.ticker-track { width: max-content; display: flex; align-items: center; gap: 34px; padding: 16px 0; animation: ticker-scroll 28s linear infinite; }
.ticker-track span { font-size: clamp(1.25rem, 2vw, 1.9rem); font-weight: 900; line-height: 1; letter-spacing: -.045em; white-space: nowrap; }
.ticker-track b { font-size: .9rem; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

/* Editorial headings */
.editorial-heading { display: grid; grid-template-columns: 165px minmax(0, 1fr) 310px; gap: 36px; align-items: start; margin-bottom: 76px; }
.heading-index { padding-top: 10px; color: #77736b; }
.editorial-heading h2,
.about-grid h2,
.contact-card h2 { margin: 0; font-size: clamp(3.25rem, 6vw, 6.4rem); font-weight: 850; line-height: .88; letter-spacing: -.065em; text-transform: uppercase; }
.heading-aside { margin: 8px 0 0; font-size: .98rem; line-height: 1.55; color: var(--muted); }
.heading-aside em { font-family: "Instrument Serif", Georgia, serif; font-size: 1.3em; color: var(--ink); }

/* Services */
.services-section { background: var(--warm-white); }
.service-list { border-bottom: 2px solid var(--ink); }
.service-row { display: grid; grid-template-columns: 90px minmax(220px, .85fr) minmax(260px, 1fr) 70px; gap: 28px; align-items: center; min-height: 178px; padding: 28px 0; border-top: 2px solid var(--ink); transition: background .22s ease, color .22s ease, padding .22s ease; }
.service-number { align-self: start; padding-top: 8px; font-family: "Instrument Serif", Georgia, serif; font-size: 2rem; font-style: italic; color: #827e76; }
.service-row h3 { margin: 0; font-size: clamp(1.75rem, 3vw, 3.2rem); font-weight: 800; line-height: .95; letter-spacing: -.055em; text-transform: uppercase; }
.service-row p { margin: 0; max-width: 560px; color: var(--muted); }
.service-arrow { justify-self: end; font-size: 2rem; transition: transform .2s ease; }
.service-row:hover { margin-inline: -18px; padding-inline: 18px; background: var(--ink); color: #fff; }
.service-row:hover p { color: #b9bdbe; }
.service-row:hover .service-number { color: var(--orange); }
.service-row:hover .service-arrow { color: var(--orange); transform: translate(4px, -4px); }

/* Work */
.work-section { color: #fff; background: var(--ink); }
.editorial-heading-light .heading-index { color: #929899; }
.editorial-heading-light .heading-aside { color: #aeb3b5; }
.editorial-heading-light .heading-aside em { color: var(--orange); }
.project-list { border-bottom: 1px solid var(--dark-line); }
.project-row { position: relative; display: grid; grid-template-columns: 70px 300px minmax(0, 1fr) 54px; gap: 28px; align-items: center; min-height: 250px; padding: 28px 0; border-top: 1px solid var(--dark-line); isolation: isolate; }
.project-row::before { content: ""; position: absolute; inset: 0 -18px; z-index: -1; background: #0e1315; transform: scaleY(.82); opacity: 0; transition: opacity .22s ease, transform .22s ease; }
.project-row:hover::before { opacity: 1; transform: scaleY(1); }
.project-number { align-self: start; padding-top: 3px; font-family: "Instrument Serif", Georgia, serif; font-size: 2.2rem; font-style: italic; color: #6e7476; }
.project-image { aspect-ratio: 16 / 10; overflow: hidden; background: #151a1c; border: 1px solid #2e3436; }
.project-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .3s ease; }
.project-row:hover .project-image img { transform: scale(1.035); filter: saturate(1); }
.project-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: var(--brand-gradient); color: var(--ink); }
.project-placeholder span { font-size: 6rem; font-weight: 900; line-height: 1; }
.project-copy { padding: 6px 0; }
.project-type { display: block; margin-bottom: 13px; color: var(--orange); }
.project-row h3 { margin: 0; font-size: clamp(2rem, 3.8vw, 4.1rem); font-weight: 820; line-height: .92; letter-spacing: -.06em; text-transform: uppercase; }
.project-row p { margin: 17px 0 0; max-width: 670px; color: #aeb2b4; font-size: .94rem; }
.project-arrow { justify-self: end; font-size: 2rem; color: #6d7476; transition: transform .2s ease, color .2s ease; }
.project-row:hover .project-arrow { color: var(--orange); transform: translate(4px, -4px); }
.empty-public { display: grid; grid-template-columns: 90px 1fr; align-items: center; min-height: 170px; border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); color: #aeb3b5; }
.empty-public span { font-family: "Instrument Serif", Georgia, serif; font-size: 2rem; font-style: italic; color: var(--orange); }
.empty-public p { margin: 0; max-width: 620px; }

/* About */
.about-section { background: #faf7f0; }
.about-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 100px; align-items: start; }
.about-grid .heading-index { margin-bottom: 34px; color: #7f7a70; }
.about-grid h2 { max-width: 760px; }
.about-copy { padding-top: 55px; border-top: 1px solid var(--ink); }
.about-copy p { margin: 0; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(1.55rem, 2.5vw, 2.35rem); line-height: 1.12; color: #4c4841; }
.about-keywords { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-top: 108px; padding-top: 30px; border-top: 2px solid var(--ink); font-family: "Instrument Serif", Georgia, serif; font-size: clamp(2.6rem, 6vw, 6.5rem); font-style: italic; line-height: .9; }
.about-keywords b { font-family: "Montserrat", sans-serif; font-size: .55em; font-style: normal; color: var(--orange); }

/* Contact */
.contact-section { padding: 0 0 72px; background: #faf7f0; }
.contact-card { min-height: 510px; display: flex; flex-direction: column; justify-content: space-between; padding: 56px; background: var(--brand-gradient); border: 2px solid var(--ink); }
.contact-card .heading-index { color: #3d3214; }
.contact-card h2 { max-width: 1020px; margin-top: 70px; }
.contact-bottom { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-top: 70px; padding-top: 28px; border-top: 2px solid rgba(5,9,11,.55); }
.contact-bottom p { max-width: 620px; margin: 0; font-family: "Instrument Serif", Georgia, serif; font-size: 1.45rem; line-height: 1.12; }

/* Footer */
.site-footer { color: #fff; background: var(--ink); border-top: 1px solid #282d2f; }
.footer-grid { min-height: 220px; display: grid; grid-template-columns: 1fr .8fr 1fr; gap: 50px; align-items: end; padding-top: 58px; padding-bottom: 58px; }
.footer-brand { display: flex; align-items: baseline; gap: 9px; }
.footer-brand strong { font-size: 1.05rem; font-weight: 900; letter-spacing: -.04em; }
.footer-brand span { color: var(--orange); font-family: "Instrument Serif", Georgia, serif; font-style: italic; }
.site-footer p { margin: 0; color: #93999b; font-size: .84rem; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: .78rem; font-weight: 650; }
.footer-links a:hover { color: var(--orange); }
.staff-login { color: #707678; }
.footer-gradient { height: 10px; background: var(--brand-gradient); }

/* Project detail */
.project-hero { padding: 72px 0 88px; color: #fff; background: var(--ink); }
.back-link { display: inline-block; margin-bottom: 75px; color: #969c9e; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.back-link:hover { color: var(--orange); }
.project-kicker { display: flex; justify-content: space-between; gap: 30px; padding: 15px 0; border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); color: #8c9294; }
.project-kicker span:last-child { color: var(--orange); }
.project-hero h1 { max-width: 1120px; margin: 54px 0 44px; font-size: clamp(4.2rem, 9.5vw, 9.6rem); font-weight: 900; line-height: .82; letter-spacing: -.075em; text-transform: uppercase; }
.project-intro { display: flex; justify-content: space-between; align-items: end; gap: 50px; }
.project-intro p { max-width: 760px; margin: 0; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(1.55rem, 2.8vw, 2.55rem); line-height: 1.08; color: #c1c5c6; }
.project-gradient-rule { height: 12px; background: var(--brand-gradient); border-top: 1px solid #000; border-bottom: 1px solid #000; }
.project-cover { padding: 70px 0 0; background: var(--warm-white); }
.project-cover img { width: 100%; max-height: 820px; object-fit: cover; border: 2px solid var(--ink); }
.project-content-section { background: var(--warm-white); }
.project-body { display: grid; grid-template-columns: 210px minmax(0, 760px); gap: 70px; justify-content: center; }
.project-body-label { padding-top: 9px; color: #77736b; }
.project-body-copy { font-family: "Instrument Serif", Georgia, serif; font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1.3; color: #48443e; }
.next-work { padding: 0 0 80px; background: var(--warm-white); }
.next-work a { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 28px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.next-work span { font-family: "Instrument Serif", Georgia, serif; font-size: 1.5rem; font-style: italic; }
.next-work strong { font-size: clamp(1.4rem, 2.5vw, 2.7rem); letter-spacing: -.04em; text-transform: uppercase; }
.next-work a:hover strong { color: #b87200; }
.not-found h1 { margin: 30px 0; font-size: clamp(4rem, 10vw, 9rem); line-height: .85; letter-spacing: -.07em; text-transform: uppercase; }
.text-link { font-weight: 800; text-transform: uppercase; }

/* Reveal motion */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .65s cubic-bezier(.2,.8,.2,1); }
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .001ms !important; }
}

/* Backend - intentionally kept familiar and functional */
.admin-body { background: #eceae5; min-height: 100vh; }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: 28px 22px; background: #111214; color: #fff; }
.admin-brand { font-size: 1.2rem; font-weight: 850; letter-spacing: -.05em; }
.admin-brand span, .login-brand span { color: var(--orange); }
.admin-nav { margin-top: 52px; display: grid; gap: 8px; }
.admin-nav a { padding: 11px 12px; border-radius: 10px; color: #9fa1a7; }
.admin-nav a:hover, .admin-nav a.active { background: #202226; color: #fff; }
.admin-user { display: grid; gap: 3px; padding: 15px; border: 1px solid #292b30; border-radius: 14px; }
.admin-user small, .admin-user span { color: #8e9096; }
.admin-user a { margin-top: 10px; font-size: .88rem; color: #dadbdd; }
.admin-main { min-width: 0; padding: 0 44px 60px; }
.admin-topbar { height: 72px; display: flex; justify-content: flex-end; align-items: center; font-size: .9rem; color: #66635f; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 24px 0 34px; }
.admin-heading h1 { margin: 0; font-size: clamp(2.7rem, 5vw, 5rem); line-height: .95; letter-spacing: -.06em; }
.admin-heading p:not(.eyebrow) { margin: 12px 0 0; color: #77736d; max-width: 650px; }
.admin-heading .eyebrow, .login-page .eyebrow { color: #cc7d00; }
.admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 42px; }
.stat-card { padding: 24px; border-radius: 18px; background: #f8f7f3; border: 1px solid #ddd9d1; }
.stat-card span { display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -.04em; }
.stat-card small { color: #77736d; }
.admin-section-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 15px; }
.admin-section-heading h2 { margin: 0; letter-spacing: -.04em; }
.admin-section-heading a { color: #6e6b66; font-size: .9rem; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.app-card { min-height: 190px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; padding: 22px; background: #f8f7f3; border: 1px solid #ddd9d1; border-radius: 18px; transition: .18s ease; }
.app-card:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0,0,0,.08); }
.app-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #e9e4dc; font-size: 1.25rem; }
.app-card h3 { margin: 3px 0 6px; }
.app-card p { margin: 0; color: #77736d; font-size: .94rem; }
.admin-empty { padding: 28px; color: #77736d; }
.table-card { overflow-x: auto; background: #f8f7f3; border: 1px solid #ddd9d1; border-radius: 18px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 17px 18px; text-align: left; border-bottom: 1px solid #e1ded7; vertical-align: middle; }
.admin-table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: #85817b; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td small { display: block; color: #8a867f; margin-top: 3px; }
.status { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: .77rem; font-weight: 750; }
.status-live { background: #dfeee5; color: var(--success); }
.status-draft { background: #e8e5df; color: #6e6a64; }
.row-actions { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.row-actions form { margin: 0; }
.row-actions button { border: 0; background: none; padding: 0; color: var(--danger); }
.editor-card { max-width: 980px; display: grid; gap: 20px; padding: 30px; background: #f8f7f3; border: 1px solid #ddd9d1; border-radius: 18px; }
.editor-card label, .stack-form label { display: grid; gap: 7px; font-weight: 700; font-size: .92rem; }
.editor-card label small, .stack-form label small { color: #908b84; font-weight: 500; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
input, textarea, select { width: 100%; border: 1px solid #cbc6be; background: #fff; color: #171717; border-radius: 12px; padding: 12px 13px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: #9d958a; box-shadow: 0 0 0 3px rgba(0,0,0,.04); }
textarea { resize: vertical; }
.check-row { display: flex; gap: 22px; flex-wrap: wrap; }
.check-row label { display: inline-flex; align-items: center; gap: 9px; }
.check-row input { width: auto; }
.align-end { align-items: end; padding-bottom: 12px; }
.form-actions { display: flex; gap: 10px; padding-top: 8px; }
.edit-thumb { width: 180px; height: 130px; object-fit: cover; border-radius: 12px; }
.alert { padding: 13px 16px; border-radius: 12px; margin: 0 0 18px; }
.alert-success { background: #dfeee5; color: #1e683f; }
.alert-error { background: #f2dddd; color: #8e3434; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: #111214; }
.login-card, .setup-card { width: min(100%, 500px); padding: 38px; border-radius: 24px; background: #f8f7f3; box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.setup-card { width: min(100%, 780px); }
.login-brand { display: inline-block; font-size: 1.6rem; font-weight: 900; letter-spacing: -.08em; margin-bottom: 42px; }
.login-card h1, .setup-card h1 { margin: 0; font-size: 2.7rem; letter-spacing: -.055em; }
.login-card > p:not(.eyebrow), .setup-card > p:not(.eyebrow) { color: #77736d; }
.stack-form { display: grid; gap: 16px; margin-top: 28px; }
.stack-form .button { width: 100%; border: 0; }
.login-card .back-link { margin: 24px 0 0; }
.setup-card hr { width: 100%; border: 0; border-top: 1px solid #ddd8d0; }

@media (max-width: 1080px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 42px; }
  .editorial-heading { grid-template-columns: 130px minmax(0, 1fr); }
  .heading-aside { grid-column: 2; max-width: 580px; }
  .service-row { grid-template-columns: 70px minmax(220px, .8fr) minmax(240px, 1fr) 50px; gap: 20px; }
  .project-row { grid-template-columns: 60px 250px minmax(0, 1fr) 44px; gap: 22px; }
  .about-grid { gap: 60px; }
}

@media (max-width: 900px) {
  .section { padding: 100px 0; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-brand-tile { width: min(460px, 70vw); justify-self: end; }
  .hero h1 { max-width: 820px; }
  .hero-footer { align-items: start; flex-direction: column; }
  .hero-note { text-align: left; }
  .service-row { grid-template-columns: 58px 1fr 50px; }
  .service-row p { grid-column: 2; }
  .service-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .project-row { grid-template-columns: 54px 210px minmax(0, 1fr) 38px; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-copy { padding-top: 35px; }
  .about-keywords { flex-wrap: wrap; justify-content: flex-start; }
  .contact-card { padding: 42px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-column: 2; grid-row: 1 / span 2; }
  .project-body { grid-template-columns: 150px minmax(0, 1fr); gap: 45px; }

  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; flex-direction: row; align-items: center; overflow-x: auto; }
  .admin-nav { margin: 0 0 0 24px; display: flex; }
  .admin-user { display: none; }
  .admin-main { padding: 0 24px 50px; }
  .app-grid, .admin-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1240px); }
  .section { padding: 78px 0; }
  .nav-wrap { min-height: 68px; }
  .brand-main { font-size: .88rem; }
  .brand-media { font-size: .9rem; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; padding: 10px 14px 18px; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-bottom: 1px solid #313638; }
  .site-nav.open { display: flex; }
  .site-nav a { justify-content: space-between; padding: 15px 0; border-bottom: 1px solid #282d2f; }
  .site-nav a::after { display: none; }

  .hero-shell { padding-top: 34px; padding-bottom: 38px; }
  .hero-meta { padding-bottom: 20px; }
  .hero-edition { display: none; }
  .hero-layout { gap: 40px; padding: 38px 0; }
  .hero h1 { font-size: clamp(3.35rem, 17vw, 5.7rem); line-height: .84; }
  .hero-text { margin-top: 30px; font-size: 1.65rem; }
  .hero-brand-tile { width: 70vw; }
  .hero-footer { padding-top: 22px; gap: 26px; }
  .hero-actions { width: 100%; }
  .hero-actions .button { flex: 1 1 100%; justify-content: space-between; }
  .hero-note { font-size: 1.2rem; }
  .ticker-track { gap: 22px; padding: 13px 0; }

  .editorial-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 50px; }
  .heading-index { padding-top: 0; }
  .heading-aside { grid-column: 1; }
  .editorial-heading h2, .about-grid h2, .contact-card h2 { font-size: clamp(2.65rem, 13vw, 4.8rem); }

  .service-row { grid-template-columns: 44px 1fr 30px; gap: 14px; min-height: 155px; }
  .service-number { font-size: 1.55rem; }
  .service-row h3 { font-size: 1.7rem; }
  .service-row p { font-size: .85rem; }
  .service-row:hover { margin-inline: -10px; padding-inline: 10px; }

  .project-row { grid-template-columns: 42px 1fr 32px; gap: 14px; padding: 24px 0 28px; }
  .project-number { font-size: 1.65rem; }
  .project-image { grid-column: 2 / 4; width: 100%; }
  .project-copy { grid-column: 2 / 4; }
  .project-arrow { grid-column: 3; grid-row: 1; }
  .project-row h3 { font-size: clamp(2.2rem, 12vw, 3.8rem); }
  .project-row::before { inset: 0 -10px; }

  .about-copy p { font-size: 1.55rem; }
  .about-keywords { margin-top: 70px; font-size: 3rem; gap: 11px; }
  .contact-section { padding-bottom: 28px; }
  .contact-card { min-height: 470px; padding: 28px 22px; }
  .contact-card h2 { margin-top: 55px; }
  .contact-bottom { flex-direction: column; align-items: stretch; margin-top: 58px; }
  .contact-bottom p { font-size: 1.25rem; }
  .button-black { justify-content: space-between; width: 100%; }

  .footer-grid { min-height: 260px; grid-template-columns: 1fr; gap: 24px; align-items: start; padding-top: 44px; padding-bottom: 44px; }
  .footer-links { grid-column: 1; grid-row: auto; align-items: flex-start; }

  .project-hero { padding: 45px 0 60px; }
  .back-link { margin-bottom: 45px; }
  .project-kicker { align-items: start; flex-direction: column; gap: 7px; }
  .project-hero h1 { margin: 42px 0 36px; font-size: clamp(3.7rem, 17vw, 6rem); }
  .project-intro { flex-direction: column; align-items: stretch; }
  .project-intro p { font-size: 1.65rem; }
  .project-intro .button { justify-content: space-between; }
  .project-cover { padding-top: 38px; }
  .project-body { grid-template-columns: 1fr; gap: 25px; }
  .project-body-copy { font-size: 1.4rem; }
  .next-work a { align-items: flex-start; flex-direction: column; }

  .admin-sidebar { align-items: start; flex-direction: column; }
  .admin-nav { margin: 18px 0 0; width: 100%; overflow-x: auto; }
  .admin-heading { align-items: start; flex-direction: column; }
  .admin-heading h1 { font-size: 3.3rem; }
  .app-grid, .admin-stats { grid-template-columns: 1fr; }
  .form-grid.two { grid-template-columns: 1fr; }
  .editor-card { padding: 20px; }
  .login-card, .setup-card { padding: 28px 22px; }
}

/* =========================================================
   V3 — Ivan Schoeman Media brand integration + backend refresh
   ========================================================= */

/* Real brand lockups */
.brand { align-items: center; }
.brand-logo { display: block; width: clamp(174px, 17vw, 246px); height: auto; }
.footer-brand { align-items: center; }
.footer-brand img { width: min(100%, 270px); height: auto; }

/* Light-background logo treatment in the hero */
.hero-brand-lockup {
  align-self: center;
  width: 100%;
  display: grid;
  gap: 18px;
}
.hero-brand-lockup img { width: 100%; height: auto; }
.hero-brand-rule { display: block; width: 100%; height: 18px; background: var(--brand-gradient); border: 2px solid var(--ink); }

/* Seamless marquee: two identical groups, each exactly one animation length. */
.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  padding: 0;
  animation: ticker-marquee 28s linear infinite;
  will-change: transform;
}
.ticker-group {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 16px 34px 16px 0;
}
.ticker-group span { font-size: clamp(1.25rem, 2vw, 1.9rem); font-weight: 900; line-height: 1; letter-spacing: -.045em; white-space: nowrap; }
.ticker-group b { flex: none; font-size: .9rem; }
@keyframes ticker-marquee {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-50%,0,0); }
}

/* Backend now follows the public site's editorial system. */
.admin-body { background: var(--warm-white); color: var(--ink); }
.admin-shell { grid-template-columns: 286px 1fr; }
.admin-sidebar {
  padding: 28px 24px 24px;
  background: var(--ink);
  border-right: 1px solid #2d3234;
}
.admin-sidebar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: var(--brand-gradient);
}
.admin-brand { display: block; width: 100%; }
.admin-brand img { display: block; width: 100%; max-width: 228px; height: auto; }
.admin-backend-label {
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid #343a3c;
  color: #808789;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .18em;
}
.admin-nav { margin-top: 38px; gap: 0; border-top: 1px solid #343a3c; }
.admin-nav a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  padding: 15px 4px;
  border-bottom: 1px solid #343a3c;
  border-radius: 0;
  color: #a8adaf;
  font-size: .8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .025em;
  transition: color .18s ease, padding .18s ease, background .18s ease;
}
.admin-nav a span { color: #5f6668; font-family: "Instrument Serif", Georgia, serif; font-size: 1rem; font-style: italic; font-weight: 400; }
.admin-nav a:hover,
.admin-nav a.active { padding-left: 10px; background: transparent; color: #fff; }
.admin-nav a:hover span,
.admin-nav a.active span { color: var(--orange); }
.admin-nav a.active { box-shadow: inset 3px 0 0 var(--orange); }
.admin-user { padding: 18px 0 0; border: 0; border-top: 1px solid #343a3c; border-radius: 0; }
.admin-user small { font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.admin-user strong { margin-top: 3px; }
.admin-user span { font-family: "Instrument Serif", Georgia, serif; font-size: 1.1rem; font-style: italic; }
.admin-user a { display: inline-block; width: max-content; margin-top: 15px; padding-bottom: 2px; border-bottom: 1px solid #5e6466; font-size: .75rem; font-weight: 750; text-transform: uppercase; }
.admin-user a:hover { color: var(--orange); border-color: var(--orange); }

.admin-main { padding: 0 52px 72px; background: var(--warm-white); }
.admin-topbar {
  height: 78px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.admin-topbar a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--ink); }
.admin-topbar a:hover { background: var(--ink); color: #fff; }
.admin-heading { margin: 52px 0 42px; padding-bottom: 34px; border-bottom: 2px solid var(--ink); }
.admin-heading h1 { max-width: 900px; font-size: clamp(3rem, 6vw, 6.6rem); font-weight: 900; line-height: .84; letter-spacing: -.07em; text-transform: uppercase; }
.admin-heading p:not(.eyebrow) { max-width: 720px; margin-top: 18px; color: var(--muted); font-family: "Instrument Serif", Georgia, serif; font-size: 1.35rem; line-height: 1.08; }
.admin-heading .eyebrow,
.login-page .eyebrow { color: #9d6800; }

.admin-stats { gap: 0; margin-bottom: 56px; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.stat-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 0;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
}
.stat-card:first-child { background: var(--brand-gradient); }
.stat-card span { font-size: clamp(3rem, 5vw, 5rem); font-weight: 900; line-height: .8; letter-spacing: -.07em; }
.stat-card small { color: var(--ink); font-size: .69rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.admin-section-heading { margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.admin-section-heading h2 { font-size: 1.15rem; font-weight: 850; text-transform: uppercase; letter-spacing: -.02em; }
.admin-section-heading a { color: var(--ink); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.admin-section-heading a:hover { color: #a46a00; }

.app-grid { gap: 0; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.app-card {
  min-height: 220px;
  padding: 24px;
  border: 0;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.app-card:hover { transform: none; background: var(--ink); color: #fff; box-shadow: none; }
.app-card:hover p { color: #b9bec0; }
.app-card:hover .app-icon { background: var(--brand-gradient); color: var(--ink); border-color: transparent; }
.app-card:hover .arrow { color: var(--orange); transform: translate(3px,-3px); }
.app-icon { width: 48px; height: 48px; border: 1px solid var(--ink); border-radius: 0; background: transparent; font-size: 1.3rem; }
.app-card h3 { margin: 2px 0 9px; font-size: 1.15rem; font-weight: 850; text-transform: uppercase; letter-spacing: -.03em; }
.app-card p { color: var(--muted); }
.app-card .arrow { transition: transform .18s ease, color .18s ease; }

.table-card { overflow-x: auto; border: 2px solid var(--ink); border-radius: 0; background: var(--paper); }
.admin-table th,
.admin-table td { padding: 18px; border-bottom: 1px solid var(--line); }
.admin-table th { color: #6f6b63; background: #eee9df; font-size: .68rem; font-weight: 850; }
.admin-table tbody tr:hover td { background: #fff; }
.admin-table td small { color: #8a857c; }
.status { padding: 4px 8px; border: 1px solid currentColor; border-radius: 0; background: transparent; font-size: .68rem; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.status-live { background: transparent; color: var(--success); }
.status-draft { background: transparent; color: #706b63; }
.row-actions a { font-weight: 750; }
.row-actions a:hover { color: #a46a00; }
.row-actions button { font-weight: 750; }

.editor-card {
  max-width: 1040px;
  gap: 24px;
  padding: 34px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
}
.editor-card label,
.stack-form label { font-size: .78rem; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.editor-card label small,
.stack-form label small { color: #888278; font-size: .7rem; text-transform: none; letter-spacing: 0; }
input,
textarea,
select {
  border: 1px solid #aaa398;
  border-radius: 0;
  background: #fffdf8;
  color: var(--ink);
  padding: 13px 14px;
}
input:focus,
textarea:focus,
select:focus { border-color: var(--ink); box-shadow: 4px 4px 0 var(--orange); }
input[type="checkbox"] { accent-color: var(--orange); }
.edit-thumb { border: 2px solid var(--ink); border-radius: 0; }
.alert { border: 1px solid currentColor; border-radius: 0; }
.alert-success { background: #e8f2eb; }
.alert-error { background: #f6e4e1; }
.admin-empty { color: var(--muted); }

/* Login/setup: same editorial language, with the B&W logo on light cards. */
.login-page {
  position: relative;
  background: var(--ink);
  background-image: linear-gradient(135deg, #05090b 0 62%, #0f1416 62% 100%);
}
.login-page::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: var(--brand-gradient);
}
.login-card,
.setup-card {
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--warm-white);
  box-shadow: 18px 18px 0 var(--orange);
}
.login-card { width: min(100%, 540px); padding: 38px; }
.login-brand,
.setup-brand { display: block; width: min(100%, 350px); margin-bottom: 46px; }
.login-brand img,
.setup-brand img { width: 100%; height: auto; }
.setup-brand { width: min(100%, 390px); margin-bottom: 34px; }
.login-card h1,
.setup-card h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 900; line-height: .87; letter-spacing: -.07em; text-transform: uppercase; }
.login-card > p:not(.eyebrow),
.setup-card > p:not(.eyebrow) { font-family: "Instrument Serif", Georgia, serif; font-size: 1.2rem; line-height: 1.12; color: var(--muted); }
.login-card .button,
.setup-card .button { min-height: 54px; }
.login-card .back-link { font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; padding: 20px 24px; }
  .admin-sidebar::after { height: 6px; }
  .admin-brand { width: 190px; flex: none; }
  .admin-backend-label { display: none; }
  .admin-nav { margin: 0 0 0 28px; border-top: 0; }
  .admin-nav a { width: max-content; border-bottom: 0; padding: 10px 12px; }
  .admin-nav a:hover,
  .admin-nav a.active { padding-left: 12px; box-shadow: inset 0 -3px 0 var(--orange); }
  .admin-main { padding: 0 24px 55px; }
}

@media (max-width: 680px) {
  .brand-logo { width: 170px; }
  .hero-brand-lockup { width: min(100%, 440px); justify-self: end; }
  .ticker-group { gap: 22px; padding: 13px 22px 13px 0; }
  .footer-brand img { width: 230px; }

  .admin-sidebar { align-items: flex-start; }
  .admin-brand { width: 205px; }
  .admin-nav { margin: 18px 0 0; width: 100%; border-top: 1px solid #343a3c; }
  .admin-nav a { width: 100%; border-bottom: 1px solid #343a3c; padding: 13px 4px; }
  .admin-nav a:hover,
  .admin-nav a.active { padding-left: 10px; box-shadow: inset 3px 0 0 var(--orange); }
  .admin-heading { margin-top: 36px; }
  .admin-heading h1 { font-size: clamp(3rem, 14vw, 4.7rem); }
  .admin-heading p:not(.eyebrow) { font-size: 1.15rem; }
  .editor-card { padding: 22px 18px; }
  .login-card,
  .setup-card { box-shadow: 8px 8px 0 var(--orange); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* =========================================================
   V4 — Project media library + local video
   ========================================================= */

/* Public project media browser */
.project-media-section {
  padding: 18px 0 118px;
  background: var(--warm-white);
}
.project-media-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  padding: 0 0 30px;
  border-bottom: 2px solid var(--ink);
}
.project-media-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(3rem, 6vw, 6.3rem);
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.068em;
  text-transform: uppercase;
}
.project-media-heading p {
  margin: 0 0 5px;
  color: var(--muted);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
}
.project-media-browser {
  margin-top: 34px;
  border: 2px solid var(--ink);
  background: var(--ink);
}
.media-stage {
  position: relative;
  background: #070b0d;
}
.media-slide { margin: 0; }
.js .media-slide:not(.is-active) { display: none; }
.media-slide-frame {
  width: 100%;
  min-height: min(68vw, 760px);
  display: grid;
  place-items: center;
  background:
    linear-gradient(45deg, rgba(255,255,255,.018) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.018) 75%),
    #070b0d;
  background-size: 32px 32px;
}
.media-slide-frame > img,
.media-slide-frame video,
.media-image-open,
.media-image-open img {
  width: 100%;
  height: 100%;
}
.media-slide-frame video {
  max-height: min(68vw, 760px);
  object-fit: contain;
  background: #000;
}
.media-image-open {
  position: relative;
  min-height: min(68vw, 760px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
}
.media-image-open img {
  position: absolute;
  inset: 0;
  object-fit: contain;
}
.media-image-open span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.42);
  background: rgba(5,9,11,.82);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .18s ease, transform .18s ease;
}
.media-image-open:hover span,
.media-image-open:focus-visible span { opacity: 1; transform: translateY(0); }
.media-slide figcaption {
  margin: 0;
  padding: 15px 18px 17px;
  border-top: 1px solid #303638;
  background: #0d1214;
  color: #c3c7c8;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.2;
}
.media-browser-controls {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 18px;
  border-top: 1px solid #303638;
  color: #fff;
}
.media-control-buttons { display: flex; gap: 8px; }
.media-control-buttons button {
  width: 42px;
  height: 42px;
  border: 1px solid #555d60;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 1.05rem;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.media-control-buttons button:hover:not(:disabled) {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--ink);
}
.media-control-buttons button:disabled { opacity: .3; cursor: default; }
.media-counter {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.4rem;
  font-style: italic;
}
.media-counter i { color: #656d70; font-size: .85rem; }
.media-thumbnails {
  display: flex;
  overflow-x: auto;
  gap: 0;
  border-top: 1px solid #303638;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) #14191b;
}
.media-thumb {
  position: relative;
  flex: 0 0 148px;
  height: 104px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-right: 1px solid #303638;
  border-radius: 0;
  background: #111719;
  color: #fff;
  opacity: .58;
  transition: opacity .18s ease, box-shadow .18s ease;
}
.media-thumb:hover,
.media-thumb.is-active { opacity: 1; }
.media-thumb.is-active { box-shadow: inset 0 -5px 0 var(--orange); }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb-index {
  position: absolute;
  top: 7px;
  left: 8px;
  z-index: 3;
  padding: 2px 5px;
  background: rgba(5,9,11,.78);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: .85rem;
  font-style: italic;
}
.media-thumb-video {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  background: linear-gradient(130deg, #171d1f 0 55%, #22292c 55% 100%);
}
.media-thumb-video b { color: var(--orange); font-size: 1.25rem; }
.media-thumb-video small { font-size: .58rem; font-weight: 850; letter-spacing: .14em; }

.media-lightbox[hidden] { display: none; }
.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 56px;
  background: rgba(2,4,5,.96);
}
.media-lightbox-inner {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.media-lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.media-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #737a7c;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.media-lightbox-close:hover { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.lightbox-open { overflow: hidden; }

/* Backend media management */
.media-manager,
.media-save-first {
  max-width: 1040px;
  margin-top: 42px;
}
.media-manager {
  padding-top: 4px;
}
.media-manager-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--ink);
}
.media-manager-heading h2,
.media-save-first h2 {
  margin: 8px 0 0;
  font-size: clamp(2.3rem, 4vw, 4.5rem);
  font-weight: 900;
  line-height: .88;
  letter-spacing: -.06em;
  text-transform: uppercase;
}
.media-manager-heading > p {
  margin: 0 0 5px;
  color: var(--muted);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
}
.media-manager-form {
  display: grid;
  gap: 26px;
  padding: 30px;
  border: 2px solid var(--ink);
  border-top: 0;
  background: var(--paper);
}
.media-upload-zone {
  position: relative;
  min-height: 190px;
  display: grid !important;
  align-content: center;
  justify-items: start;
  gap: 8px;
  padding: 28px;
  border: 2px dashed #858078;
  background: #f4efe5;
  overflow: hidden;
}
.media-upload-zone::after {
  content: "+";
  position: absolute;
  right: 22px;
  bottom: -30px;
  color: rgba(5,9,11,.07);
  font-size: 10rem;
  font-weight: 900;
  line-height: 1;
}
.media-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.media-upload-title {
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  font-weight: 900;
  line-height: .94;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.media-upload-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.55;
  text-transform: none;
}
.media-upload-button {
  margin-top: 8px;
  padding: 8px 11px;
  background: var(--ink);
  color: #fff;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.media-server-note {
  padding: 11px 13px;
  border-left: 4px solid var(--orange);
  background: #eee8dc;
  color: #655f56;
  font-size: .76rem;
  line-height: 1.5;
}
.media-server-note strong { color: var(--ink); }
.media-server-note code {
  padding: 2px 4px;
  background: rgba(5,9,11,.07);
  color: var(--ink);
}
.media-admin-list {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
}
.media-admin-item {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 205px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: #fffdf8;
}
.media-admin-preview {
  position: relative;
  min-height: 205px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--ink);
}
.media-admin-preview img,
.media-admin-preview video {
  width: 100%;
  height: 100%;
  min-height: 205px;
  display: block;
  object-fit: cover;
}
.media-admin-preview video { object-fit: contain; background: #000; }
.media-kind {
  position: absolute;
  left: 9px;
  bottom: 9px;
  padding: 4px 6px;
  background: var(--orange);
  color: var(--ink);
  font-size: .57rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.media-admin-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 105px;
  gap: 18px;
  align-content: center;
  padding: 22px;
}
.media-admin-fields label { font-size: .68rem; }
.media-admin-fields .media-delete {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: #8e3f37;
  font-size: .67rem;
}
.media-admin-fields .media-delete input { margin: 0; }
.media-empty-state {
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 25px;
  border: 1px solid var(--line);
}
.media-empty-state strong {
  font-size: 1.1rem;
  text-transform: uppercase;
}
.media-empty-state span {
  color: var(--muted);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.15rem;
}
.media-actions { padding-top: 2px; }
.media-save-first {
  padding: 28px;
  border: 2px solid var(--ink);
  background: var(--brand-gradient);
}
.media-save-first p:last-child {
  max-width: 600px;
  margin-bottom: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.2rem;
}

@media (max-width: 900px) {
  .media-admin-item { grid-template-columns: 220px minmax(0, 1fr); }
  .media-slide-frame,
  .media-image-open { min-height: min(72vw, 650px); }
  .media-slide-frame video { max-height: min(72vw, 650px); }
}

@media (max-width: 680px) {
  .project-media-section { padding-bottom: 78px; }
  .project-media-heading { align-items: start; flex-direction: column; gap: 16px; }
  .project-media-heading h2 { font-size: clamp(2.8rem, 14vw, 4.7rem); }
  .project-media-heading p { font-size: 1.1rem; }
  .project-media-browser { margin-top: 24px; }
  .media-slide-frame,
  .media-image-open { min-height: 74vw; }
  .media-slide-frame video { max-height: 74vw; }
  .media-image-open span { display: none; }
  .media-browser-controls { min-height: 62px; padding-inline: 12px; }
  .media-thumb { flex-basis: 112px; height: 82px; }
  .media-lightbox { padding: 48px 14px 14px; }

  .media-manager-heading { align-items: start; flex-direction: column; gap: 13px; }
  .media-manager-form { padding: 20px 16px; }
  .media-upload-zone { min-height: 175px; padding: 22px 18px; }
  .media-admin-item { grid-template-columns: 1fr; }
  .media-admin-preview { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .media-admin-preview img,
  .media-admin-preview video { min-height: 220px; }
  .media-admin-fields { grid-template-columns: 1fr; padding: 18px; }
  .media-admin-fields .media-delete { grid-column: 1; }
}
