[hidden] {
  display: none !important;
}

:root {
  --ink: #f4efe6;
  --body: #d9cfbf;
  --muted: #b9aa96;
  --paper: #17140f;
  --surface: #221e17;
  --surface-2: #2c261d;
  --warm: #c47a44;
  --warm-2: #e1a164;
  --charcoal: #0f0d0a;
  --line: rgba(244, 239, 230, .16);
  --light-panel: #f8f5ef;
  --light-ink: #211d18;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 0%, #2c2419 0%, var(--paper) 34rem);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--light-panel); color: var(--light-ink); padding: .7rem; z-index: 10; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(23, 20, 15, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--ink); text-decoration: none; text-transform: uppercase; font-weight: 900; line-height: .9; }
.brand small { display: block; font-size: .72rem; color: var(--muted); }
.site-nav { display: flex; gap: 1.1rem; align-items: center; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .94rem; }
.nav-action, .button {
  background: var(--warm);
  color: #17140f !important;
  text-decoration: none;
  border: 0;
  border-radius: 5px;
  padding: .82rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
}
.button--ghost { background: rgba(244, 239, 230, .08); color: var(--ink) !important; border: 1px solid rgba(244, 239, 230, .55); }
.button--plain { background: transparent; color: var(--light-ink) !important; border: 1px solid #cbbfac; }
.nav-toggle { display: none; }

.hero { min-height: calc(100svh - 72px); position: relative; display: grid; align-items: end; overflow: hidden; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,10,7,.88), rgba(12,10,7,.48) 52%, rgba(12,10,7,.12)); }
.hero__content { position: relative; color: #fff; max-width: 760px; padding: clamp(4rem, 10vw, 8rem) clamp(1.2rem, 6vw, 5rem); }
.eyebrow { text-transform: uppercase; font-size: .76rem; font-weight: 900; color: var(--warm-2); letter-spacing: .08em; }
.hero h1, .page-hero h1 { font-family: Georgia, serif; font-weight: 500; line-height: .98; font-size: clamp(3rem, 7vw, 6.8rem); margin: .2rem 0 1rem; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 620px; color: #f7efe4; }
.actions { display: flex; gap: .8rem; flex-wrap: wrap; }

.band, .intro, .process, .fit, .page-hero, .faq, .legal-copy, .auth, .app-page {
  max-width: var(--max);
  margin: auto;
  padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 4vw, 2rem);
}
.intro { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; border-bottom: 1px solid var(--line); }
.intro p, .band p, .fit p, .page-hero p, .faq p, .legal-copy p, .story p, .text-media p, .project-detail p { color: var(--body); }
h2 { font-family: Georgia, serif; font-weight: 500; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.05; margin: 0 0 1rem; }

.services-grid {
  max-width: var(--max);
  margin: auto;
  padding: 4rem 1rem 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}
.services-grid h2 { grid-column: 1 / -1; background: var(--paper); padding: 0 0 1rem; }
.services-grid a {
  background: var(--surface);
  padding: 2rem;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 800;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.services-grid span { color: var(--warm-2); font-size: .9rem; }

.work-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 0; }
.work-strip a { position: relative; min-height: 360px; overflow: hidden; color: #fff; text-decoration: none; }
.work-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; filter: saturate(.92) contrast(1.05); }
.work-strip span { position: absolute; left: 1.2rem; bottom: 1.2rem; font-weight: 850; text-shadow: 0 2px 20px #000; }
.work-strip a:hover img { transform: scale(1.05); }

.story, .text-media, .project-detail, .contact-panel {
  max-width: var(--max);
  margin: auto;
  padding: clamp(3rem, 8vw, 7rem) 1rem;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
}
.story img, .text-media img { height: 620px; width: 100%; object-fit: cover; }
.process ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 0; list-style: none; }
.process li { background: var(--surface); border-top: 1px solid var(--line); padding: 1.3rem; }
.fit { text-align: center; }
.page-hero { padding-top: 6rem; }
.page-hero p { max-width: 760px; font-size: 1.2rem; }

.link-list, .portfolio-grid {
  max-width: var(--max);
  margin: auto;
  padding: 2rem 1rem 6rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.link-list a, .portfolio-grid a {
  border-top: 1px solid var(--line);
  padding: 1.3rem 0;
  text-decoration: none;
}
.portfolio-grid img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; margin-bottom: 1rem; filter: saturate(.92) contrast(1.05); }
.notice, .help { color: var(--muted); }
.project-detail img { width: 100%; height: min(72vh, 680px); object-fit: cover; }

.intake-shell { max-width: 920px; margin: auto; padding: 4rem 1rem; }
.intake-head { text-align: center; }
.intake-form, .auth form, .filters {
  background: var(--light-panel);
  color: var(--light-ink);
  border: 1px solid #d8cbb9;
  border-radius: 8px;
  padding: 1.2rem;
}
.step { display: none; }
.step.is-active { display: grid; gap: 1rem; }
.progress { height: 8px; background: #e6ded2; border-radius: 99px; margin: 1rem 0; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--warm); width: 0; transition: width .3s; }
label { display: grid; gap: .35rem; font-weight: 750; }
input, select, textarea { width: 100%; padding: .82rem; border: 1px solid #cbbfac; border-radius: 5px; font: inherit; background: #fff; color: var(--light-ink); }
input:invalid, select:invalid, textarea:invalid { border-color: #9b2f22; box-shadow: 0 0 0 3px rgba(155, 47, 34, .12); }
textarea { min-height: 110px; }
.split { display: grid; grid-template-columns: 1fr .45fr .6fr; gap: .8rem; }
.check { display: flex; align-items: flex-start; gap: .6rem; }
.check input { width: auto; }
.intake-controls { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.hp { position: absolute; left: -9999px; }
.alert { background: #fff0ed; color: #321; border-left: 4px solid #b33; padding: 1rem; }
.status { background: #eef8ee; color: #132b16; border-left: 4px solid #3d8b47; padding: 1rem; }

.modal-open { overflow: hidden; }
.save-exit-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 13, 10, .72);
}
.save-exit-dialog {
  width: min(100%, 540px);
  max-height: calc(100svh - 2rem);
  overflow: auto;
  background: var(--light-panel);
  color: var(--light-ink);
  border: 1px solid #d8cbb9;
  border-radius: 8px;
  padding: clamp(1.2rem, 4vw, 2rem);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}
.save-exit-dialog h2 {
  color: var(--light-ink);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: .5rem;
}
.save-exit-dialog p { color: #4d4337; }
.save-exit-dialog label { margin-top: 1rem; }
.save-exit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.2rem;
}
.save-exit-status {
  min-height: 1.4em;
  margin: 1rem 0 0;
  color: #4d4337;
}

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; background: var(--light-panel); color: var(--light-ink); }
th, td { padding: .8rem; border-bottom: 1px solid #ddd0c0; text-align: left; vertical-align: top; }
.summary { white-space: pre-wrap; background: var(--light-panel); color: var(--light-ink); padding: 1rem; border: 1px solid #d8cbb9; }
.note { background: var(--light-panel); color: var(--light-ink); border-left: 4px solid var(--warm); padding: 1rem; }

.site-footer { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; padding: 3rem clamp(1rem, 4vw, 3rem); background: var(--charcoal); color: #fff; border-top: 1px solid var(--line); }
.site-footer a { color: #fff; }
.mobile-cta { display: none; }
.reveal, .band, .story { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; color: var(--ink); background: transparent; border: 1px solid var(--line); padding: .55rem .7rem; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); padding: 1rem; flex-direction: column; align-items: flex-start; }
  .nav-open .site-nav { display: flex; }
  .hero { min-height: calc(100svh - 64px); }
  .hero__shade { background: linear-gradient(0deg, rgba(12,10,7,.88), rgba(12,10,7,.18)); }
  .hero__content { padding: 5rem 1rem 2rem; }
  .intro, .story, .text-media, .project-detail, .contact-panel, .process ol { grid-template-columns: 1fr; }
  .services-grid, .work-strip, .link-list, .portfolio-grid { grid-template-columns: 1fr; }
  .story img, .text-media img, .project-detail img { height: auto; }
  .split { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; padding-bottom: 5rem; }
  .mobile-cta { display: block; position: fixed; left: 1rem; right: 1rem; bottom: 1rem; text-align: center; background: var(--warm); color: #17140f; text-decoration: none; font-weight: 850; padding: .9rem; border-radius: 5px; z-index: 6; }
  .work-strip a { min-height: 280px; }
}
.admin-table tr.is-unread { background: #fbf3e9; font-weight: 750; }
.badge { background: var(--warm); color: #fff; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: .2rem .5rem; border-radius: 99px; }
.pill { display: inline-block; padding: .25rem .6rem; border-radius: 99px; font-size: .8rem; font-weight: 700; background: #eee2cf; color: #5c3f1c; }
.pill--not_currently_a_fit, .pill--closed { background: #e6e1da; color: #5a544a; }
.pill--submitted { background: #fde7d9; color: #8a3f10; }
.button--danger { background: #fff; color: #b3261e; border: 1px solid #b3261e; border-radius: 5px; padding: .55rem .9rem; font-weight: 750; cursor: pointer; }
.button--danger:hover { background: #b3261e; color: #fff; }
.button--ghost-dark { border: 1px solid var(--line); border-radius: 5px; padding: .6rem 1rem; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; }
.admin-detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.admin-detail-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.status-form { display: flex; align-items: end; gap: .8rem; flex-wrap: wrap; margin: 1.2rem 0; }
.status-form label { min-width: 260px; }
.admin-table th, .admin-table td { vertical-align: middle; }
