:root {
  color-scheme: light;
  --ink: #151313;
  --ink-soft: #2f2a27;
  --muted: #716a63;
  --paper: #f6f1e8;
  --paper-deep: #ece2d2;
  --surface: #fffaf1;
  --line: #ddd0be;
  --teal: #0d6b61;
  --teal-dark: #064d45;
  --wine: #9b2842;
  --clay: #c5663e;
  --gold: #bd8b2b;
  --shadow: 0 24px 70px rgba(21, 19, 19, 0.14);
  --soft-shadow: 0 12px 34px rgba(21, 19, 19, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(189, 139, 43, 0.09), transparent 360px),
    var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 60px);
  background: rgba(246, 241, 232, 0.86);
  border-bottom: 1px solid rgba(21, 19, 19, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--ink);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  font-size: 12px;
  box-shadow: var(--soft-shadow);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

nav a {
  position: relative;
  padding: 8px 0;
}

nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--wine);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

nav a:hover {
  color: var(--ink);
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  min-height: min(820px, calc(100vh - 72px));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px);
  transform: scale(1.08);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 5, 5, 0.78), rgba(6, 5, 5, 0.3) 54%, rgba(6, 5, 5, 0.08)),
    linear-gradient(0deg, rgba(6, 5, 5, 0.78), transparent 44%);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 360px);
  align-items: end;
  justify-content: space-between;
  gap: 34px;
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto clamp(42px, 8vw, 96px);
  color: #ffffff;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker,
.category {
  margin: 0 0 12px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f5b4c1;
}

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

h1 {
  margin-bottom: 18px;
  max-width: 720px;
  font-size: clamp(58px, 11vw, 154px);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4.3vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.1;
}

.hero-copy p:not(.eyebrow) {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 13px 20px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button.primary {
  background: var(--teal);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  background: rgba(255, 250, 241, 0.94);
  color: var(--ink);
  border-color: rgba(255, 250, 241, 0.6);
}

.hero-panel {
  padding: 24px;
  background: rgba(255, 250, 241, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  backdrop-filter: blur(18px);
}

.hero-panel span {
  color: #f5b4c1;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin: 14px 0 10px;
  font-size: 27px;
  line-height: 1.05;
}

.hero-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.78);
}

.hero-stats span {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stats span:last-child {
  border-right: 0;
}

.hero-stats strong {
  color: #ffffff;
  font-size: 24px;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 36px;
  align-items: end;
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 110px) 0 34px;
}

.intro-band p:last-child {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto clamp(42px, 6vw, 78px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--soft-shadow);
}

.service-strip article {
  min-height: 190px;
  padding: 26px;
  background: var(--surface);
}

.service-strip span {
  color: var(--clay);
  font-weight: 900;
}

.service-strip h3 {
  margin-top: 38px;
}

.service-strip p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.details-section {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto clamp(48px, 7vw, 92px);
}

.details-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.details-grid article {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.details-grid h3 {
  margin-bottom: 16px;
}

.details-grid ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.roster-shell {
  padding: clamp(34px, 6vw, 76px) 0 clamp(46px, 6vw, 86px);
  background: #1d1a18;
  color: #ffffff;
}

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto 26px;
}

.toolbar .section-kicker {
  color: #e5aa6e;
}

.search-field {
  display: grid;
  gap: 8px;
  width: min(380px, 100%);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.search-field input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: inherit;
  outline: none;
}

.search-field input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.search-field input:focus {
  border-color: #e5aa6e;
  box-shadow: 0 0 0 3px rgba(229, 170, 110, 0.14);
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
}

.model-card {
  overflow: hidden;
  background: #fffaf1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.model-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 76px rgba(0, 0, 0, 0.35);
}

.model-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #d9d1c4;
  overflow: hidden;
}

.model-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent);
}

.model-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.model-card:hover .model-photo img {
  transform: scale(1.04);
}

.badge,
.model-location {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
}

.badge {
  left: 14px;
  top: 14px;
  background: var(--gold);
  color: #ffffff;
}

.model-location {
  right: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  overflow: hidden;
  background: rgba(255, 250, 241, 0.92);
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-body {
  display: grid;
  gap: 18px;
  padding: 20px;
}

dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 16px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 3px 0 0;
  line-height: 1.35;
}

.experience {
  min-height: 54px;
  color: var(--muted);
  line-height: 1.55;
}

.card-button {
  width: 100%;
  background: var(--ink);
  color: #ffffff;
}

.card-button:hover {
  background: var(--teal-dark);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 32px;
  background: rgba(255, 250, 241, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.booking-band {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 0;
  width: min(1240px, calc(100% - 36px));
  margin: clamp(50px, 7vw, 92px) auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.booking-copy {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(30px, 5vw, 64px);
}

.booking-copy p:not(.section-kicker) {
  max-width: 580px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.booking-copy .button {
  margin-top: 30px;
}

.booking-photo {
  min-height: 430px;
}

.booking-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 60px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(360px, 1.22fr);
  gap: 22px;
  padding: 54px clamp(18px, 4vw, 56px);
}

.admin-card,
.admin-intro,
.editor-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  box-shadow: var(--soft-shadow);
}

.admin-overview {
  align-self: start;
}

.admin-card p,
.admin-intro p {
  color: var(--muted);
  line-height: 1.55;
}

.admin-section-heading {
  margin-bottom: 22px;
}

.admin-section-heading h2,
.admin-card h1 {
  margin-bottom: 0;
}

.admin-note {
  margin: 18px 0 0;
  font-size: 14px;
}

code {
  color: var(--ink);
  font-weight: 700;
}

.agency-form,
.model-form {
  display: grid;
  gap: 18px;
}

.content-editor-card {
  grid-column: 1 / -1;
}

.content-editor-label {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.content-editor-label textarea {
  min-height: 520px;
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  background: #151313;
  color: #fffaf1;
  font: 14px/1.55 Consolas, Monaco, monospace;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.agency-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agency-form label,
.model-form label,
.editor-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.agency-form input,
.model-form input,
.model-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 11px 13px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.agency-form input:focus,
.model-form input:focus,
.model-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 107, 97, 0.12);
}

.model-form textarea {
  min-height: 116px;
  resize: vertical;
}

.upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 16px;
  align-items: stretch;
}

.upload-field {
  min-height: 190px;
  align-content: center;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
}

.upload-field span {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}

.image-preview {
  display: grid;
  gap: 8px;
  margin: 0;
}

.image-preview img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-deep);
}

.image-preview img:not([src]) {
  visibility: hidden;
}

.image-preview figcaption {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.checkbox-field {
  display: inline-flex;
  width: fit-content;
  grid-auto-flow: column;
  align-items: center;
}

.checkbox-field input {
  width: 18px;
  min-height: 18px;
}

.model-admin-list {
  display: grid;
  gap: 14px;
}

.model-admin-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.model-admin-item img {
  width: 82px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  background: var(--paper-deep);
}

.model-admin-item strong,
.model-admin-item span,
.model-admin-item small {
  display: block;
}

.model-admin-item span {
  margin-top: 4px;
  color: var(--muted);
}

.model-admin-item small {
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.model-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

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

.button.danger {
  background: #8f1f2f;
  color: #ffffff;
}

.empty-admin {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.editor-panel {
  display: grid;
  gap: 10px;
}

.editor-panel label {
  font-weight: 800;
}

textarea {
  min-height: 70vh;
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  background: #111111;
  color: #f7f1e8;
  font: 14px/1.5 Consolas, Monaco, monospace;
}

.admin-page .button.secondary {
  background: var(--surface);
  border-color: var(--line);
}

.status[data-type="success"] {
  color: var(--teal);
}

.status[data-type="error"] {
  color: #a32626;
}

@media (max-width: 1120px) {
  .model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    max-width: 460px;
  }
}

@media (max-width: 860px) {
  .intro-band,
  .details-heading,
  .booking-band,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .agency-form,
  .field-grid,
  .upload-row {
    grid-template-columns: 1fr;
  }

  .service-strip {
    grid-template-columns: 1fr;
  }

  .booking-photo {
    min-height: 320px;
    order: -1;
  }
}

@media (max-width: 680px) {
  .site-header,
  .toolbar,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 760px;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(6, 5, 5, 0.86), rgba(6, 5, 5, 0.18)),
      linear-gradient(90deg, rgba(6, 5, 5, 0.42), transparent);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats span {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

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

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

  dl {
    grid-template-columns: 1fr;
  }

  .model-admin-item {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .model-admin-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .model-admin-actions .button {
    flex: 1;
  }

  .booking-copy .button,
  .hero-actions .button {
    width: 100%;
  }
}
