/*
  #PERSSONGRIP
  style.css — repaired public-site design + jobs-only V3 styling

  Public portfolio/contact/privacy pages are restored to the clean white/black layout.
  The upgraded dashboard styling is scoped to /jobs via .jobs-* classes only.
*/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #ffffff;
  --text: #050505;
  --muted: #777777;
  --soft: #f4f4f4;
  --line: rgba(0, 0, 0, 0.12);
  --gold: #c6a15b;
  --danger: #b30f18;
  --ok: #247a3d;
  --blue: #245f9d;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

img,
video,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page {
  width: min(100%, 1720px);
  margin: 0 auto;
  padding: 28px clamp(18px, 3.4vw, 56px) 34px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* HEADER / MAIN SITE */

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: clamp(34px, 5vw, 84px);
}

.brand {
  display: inline-flex;
  align-items: flex-start;
  text-decoration: none;
}

.brand-logo {
  width: clamp(128px, 15vw, 245px);
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 11px 18px;
  flex-wrap: wrap;
  max-width: 980px;
  padding-top: 5px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.09em;
  text-align: right;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 30px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  height: 1px;
  margin: 7px 0;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* HOME / CATEGORY GALLERY */

.home-gallery,
.category-gallery {
  width: 100%;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 54px);
  align-items: start;
}

.home-column {
  display: grid;
  gap: clamp(24px, 3vw, 54px);
}

.home-project {
  position: relative;
  display: block;
  color: var(--text);
  text-decoration: none;
}

.home-project-media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f3f3f3;
}

.home-project-media img {
  width: 100%;
  height: auto;
  max-height: 74vh;
  display: block;
  object-fit: contain;
  transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.home-project-title {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 32px;
  padding: 0 8px;
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(10px, 0.95vw, 15px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.82);
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.home-project-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(to top, rgba(0,0,0,0.56), rgba(0,0,0,0));
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
}

.home-project:hover .home-project-media img {
  filter: brightness(0.78);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.18);
}

.home-project:hover .home-project-title,
.home-project:hover .home-project-media::after {
  opacity: 1;
}

.home-project-placeholder {
  width: 100%;
  min-height: 340px;
  display: grid;
  place-items: center;
  padding: 32px;
  background: #f3f3f3;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.category-project {
  margin-bottom: 0;
}

.project-badge-row {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: none;
}

.project-badge {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.82);
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-netflix-mark {
  width: 31px;
  height: 31px;
  display: block;
  object-fit: contain;
  background: transparent;
}

/* PROJECT DETAIL */

.project-detail {
  width: 100%;
  min-height: calc(100vh - 190px);
  padding: clamp(26px, 4vw, 64px) 0 42px;
}

.project-detail .back-link {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 clamp(28px, 4vw, 56px);
  color: var(--text);
  font-size: clamp(15px, 1vw, 19px);
  line-height: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.project-layout {
  width: min(1110px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 430px) minmax(320px, 520px);
  gap: clamp(48px, 7vw, 94px);
  align-items: start;
}

.project-layout.no-poster {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.project-media {
  width: min(430px, 100%);
  margin: 0;
  justify-self: center;
  display: block;
  background: transparent;
}

.project-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 68vh;
  object-fit: contain;
  background: transparent;
}

.project-video,
.project-video-embed,
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
}

.project-video iframe,
.project-video-embed iframe,
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-content {
  position: static;
  display: block;
  padding-top: 0;
}

.project-heading h1,
.project-content h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(52px, 6.1vw, 96px);
  font-weight: 400;
  line-height: 0.83;
  letter-spacing: -0.078em;
  text-transform: uppercase;
  white-space: normal;
}

.project-credits {
  display: grid;
  gap: 8px;
  max-width: 420px;
  margin: 30px 0 0;
  padding: 0;
}

.project-credits div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 0;
  border: 0;
}

.project-credits dt {
  color: var(--text);
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.1;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0;
}

.project-credits dd {
  margin: 0;
  color: var(--text);
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  line-height: 1.15;
}

.project-credits a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.project-description {
  width: min(1110px, 100%);
  max-width: none;
  margin: 36px auto 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}

.video-section {
  width: min(1110px, 100%);
  margin: 42px auto 0;
}

.project-detail-secret-woman .project-heading h1,
.project-detail-secret-woman .project-content h1 {
  display: grid;
  gap: 0;
}

.watch-netflix-lockup {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.watch-netflix-n img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

@media screen and (max-width: 980px) {
  .project-layout,
  .project-layout.no-poster {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 28px;
    justify-content: stretch;
  }

  .project-media {
    width: min(520px, 100%);
    justify-self: start;
  }

  .project-heading h1,
  .project-content h1 {
    font-size: clamp(46px, 12vw, 78px);
    white-space: normal;
  }

  .project-credits div {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

@media screen and (max-width: 620px) {
  .project-detail {
    padding-top: 24px;
  }

  .project-detail .back-link {
    margin-bottom: 28px;
  }

  .project-media {
    width: 100%;
  }

  .project-media img {
    max-height: none;
  }

  .project-credits div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .project-credits dt {
    text-align: left;
    font-size: 11px;
    letter-spacing: 0.08em;
    font-family: Arial, Helvetica, sans-serif;
  }

  .project-credits dd {
    font-size: 16px;
  }
}

/* BASIC CONTENT PAGES */

.contact-page,
.privacy-page,
.simple-page {
  min-height: 52vh;
  display: grid;
  align-content: center;
  gap: 28px;
  max-width: 880px;
}

.contact-page h1,
.privacy-page h1,
.simple-page h1 {
  font-size: clamp(54px, 9vw, 138px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.contact-links,
.simple-links {
  display: grid;
  gap: 8px;
  width: fit-content;
  font-size: clamp(24px, 4vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.contact-links a,
.simple-links a {
  text-decoration: none;
}

.contact-links a:hover,
.simple-links a:hover {
  opacity: 0.55;
}

.privacy-page,
.simple-page {
  align-content: start;
  padding-top: 4vh;
  font-size: 18px;
  line-height: 1.35;
}

.privacy-page h2,
.simple-page h2 {
  margin-top: 18px;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.privacy-page p,
.simple-page p,
.privacy-page li,
.simple-page li {
  max-width: 720px;
}

.privacy-page ul,
.simple-page ul {
  display: grid;
  gap: 7px;
  padding-left: 18px;
}

/* FOOTER */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: clamp(50px, 7vw, 120px);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer nav {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  text-align: right;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--text);
}

/* NUMBERS / PRIVATE STATS */

.numbers-page {
  display: grid;
  gap: 28px;
}

.numbers-hero h1 {
  font-size: clamp(52px, 9vw, 128px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.numbers-grid,
.numbers-table-wrap {
  display: grid;
  gap: 18px;
}

/* JOBS — ONLY /jobs USES THIS DESIGN */

.jobs-page,
.jobs-document-page {
  --jobs-bg: #f5f1ea;
  --jobs-panel: #ffffff;
  --jobs-ink: #12110f;
  --jobs-muted: #716a60;
  --jobs-soft: #eee7dc;
  --jobs-line: rgba(18, 17, 15, 0.12);
  --jobs-dark: #151412;
  --jobs-gold: #b99654;
  --jobs-red: #a92b21;
  --jobs-green: #247a3d;
  color: var(--jobs-ink);
}

.jobs-page {
  display: grid;
  gap: 28px;
  padding: clamp(18px, 2.8vw, 34px);
  border-radius: 0;
  background:
    radial-gradient(circle at top left, rgba(198, 161, 91, 0.20), transparent 32%),
    linear-gradient(135deg, #faf8f3 0%, var(--jobs-bg) 100%);
}

.jobs-hero,
.jobs-detail-header {
  position: relative;
  display: grid;
  gap: 10px;
  padding: clamp(26px, 4vw, 52px);
  overflow: hidden;
  background: var(--jobs-dark);
  color: #ffffff;
}

.jobs-hero::after,
.jobs-detail-header::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -60%;
  width: 48%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.jobs-hero p,
.jobs-detail-header p,
.jobs-calendar-header p,
.jobs-payment-header p,
.jobs-availability-panel > p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.62);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.jobs-calendar-header p,
.jobs-payment-header p,
.jobs-availability-panel > p {
  color: var(--jobs-muted);
}

.jobs-hero h1,
.jobs-detail-header h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(62px, 10vw, 152px);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -0.085em;
  text-transform: uppercase;
}

.jobs-hero h2,
.jobs-detail-header h2 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(21px, 2.4vw, 38px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
}

.jobs-detail-header > a {
  position: relative;
  z-index: 2;
  width: fit-content;
  color: rgba(255, 255, 255, 0.72);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.jobs-detail-header > a:hover {
  color: #ffffff;
}

.jobs-message {
  padding: 14px 16px;
  background: #ffffff;
  border-left: 5px solid var(--jobs-green);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.jobs-message-error {
  border-left-color: var(--jobs-red);
}

.jobs-overview,
.jobs-payment-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--jobs-line);
}

.jobs-overview article,
.jobs-payment-cards article {
  min-height: 132px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 4px solid transparent;
}

.jobs-overview p,
.jobs-payment-cards p {
  color: var(--jobs-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  line-height: 1.15;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.jobs-overview strong,
.jobs-payment-cards strong {
  font-size: clamp(25px, 3.1vw, 46px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.06em;
}

.jobs-payment-cards span {
  color: var(--jobs-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}

.jobs-payment-card-overdue { border-top-color: var(--jobs-red) !important; }
.jobs-payment-card-unpaid { border-top-color: var(--jobs-gold) !important; }
.jobs-payment-card-paid { border-top-color: var(--jobs-dark) !important; }
.jobs-payment-card-not-invoiced { border-top-color: #a5a099 !important; }

.jobs-payment-section,
.jobs-calendar-section,
.jobs-availability-panel,
.jobs-panel,
.jobs-note {
  background: rgba(255, 255, 255, 0.86) !important;
  border: 1px solid var(--jobs-line);
  box-shadow: 0 22px 70px rgba(51, 42, 32, 0.08);
}

.jobs-payment-section,
.jobs-calendar-section,
.jobs-availability-panel {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.7vw, 30px) !important;
}

.jobs-calendar-header,
.jobs-payment-header {
  display: flex !important;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 0 !important;
}

.jobs-calendar-header h2,
.jobs-payment-header h2,
.jobs-availability-panel h3 {
  font-size: clamp(36px, 4.6vw, 74px) !important;
  font-weight: 400;
  line-height: 0.82 !important;
  letter-spacing: -0.075em !important;
}

.jobs-calendar-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.jobs-calendar-nav a,
.jobs-detail-actions a,
.jobs-secondary-button,
.jobs-form button,
.jobs-payment-actions a,
.jobs-payment-actions button,
.jobs-inline-action button,
.document-actions a,
.document-actions button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0;
  background: var(--jobs-dark);
  color: #ffffff;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 160ms ease, transform 160ms ease;
}

.jobs-calendar-nav a {
  background: #ffffff !important;
  color: var(--jobs-ink) !important;
  border: 1px solid var(--jobs-line);
}

.jobs-calendar-nav a:hover,
.jobs-detail-actions a:hover,
.jobs-secondary-button:hover,
.jobs-form button:hover,
.jobs-payment-actions a:hover,
.jobs-payment-actions button:hover,
.jobs-inline-action button:hover,
.document-actions a:hover,
.document-actions button:hover {
  opacity: 0.72;
  transform: translateY(-1px);
}

.jobs-grid,
.jobs-secondary-grid,
.jobs-detail-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.jobs-secondary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jobs-secondary-grid > .jobs-panel:last-child {
  grid-column: 1 / -1;
}

.jobs-detail-grid {
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1fr);
}

.jobs-panel {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.4vw, 30px);
}

.jobs-panel h2,
.jobs-payment-table-title {
  font-size: clamp(27px, 3vw, 46px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.jobs-form {
  display: grid;
  gap: 13px;
}

.jobs-form.compact {
  padding-top: 2px;
}

.jobs-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.jobs-form label {
  display: grid;
  gap: 6px;
}

.jobs-form span,
.jobs-status-form,
.jobs-delete-form,
.jobs-empty,
.jobs-note,
.jobs-table,
.jobs-mini-list,
.jobs-payment-badge {
  font-family: Arial, Helvetica, sans-serif;
}

.jobs-form label > span {
  color: var(--jobs-muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.jobs-form input,
.jobs-form select,
.jobs-form textarea,
.jobs-status-form select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--jobs-line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--jobs-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  outline: none;
}

.jobs-form textarea {
  min-height: 102px;
  resize: vertical;
}

.jobs-form input:focus,
.jobs-form select:focus,
.jobs-form textarea:focus,
.jobs-status-form select:focus {
  border-color: var(--jobs-dark);
  box-shadow: 0 0 0 2px rgba(21, 20, 18, 0.08);
}

.jobs-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.jobs-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.jobs-table th {
  padding: 12px 11px;
  background: var(--jobs-dark);
  color: #ffffff;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.jobs-table td {
  padding: 14px 11px;
  border-bottom: 1px solid var(--jobs-line);
  font-size: 12px;
  line-height: 1.35;
  vertical-align: top;
}

.jobs-table td strong,
.jobs-table td span,
.jobs-job-link strong,
.jobs-job-link span {
  display: block;
}

.jobs-table td span,
.jobs-job-link span {
  color: var(--jobs-muted);
  margin-top: 3px;
}

.jobs-job-link {
  color: var(--jobs-ink);
  text-decoration: none;
}

.jobs-job-link:hover {
  opacity: 0.62;
}

.jobs-table td a:not(.jobs-job-link) {
  display: inline-flex;
  margin: 0 6px 6px 0;
  color: var(--jobs-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.jobs-payment-badge,
.jobs-availability-badge {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  background: var(--jobs-soft);
  color: var(--jobs-ink);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.jobs-payment-badge.is-overdue { background: var(--jobs-red); color: #ffffff; }
.jobs-payment-badge.is-unpaid { background: var(--jobs-gold); color: #111111; }
.jobs-payment-badge.is-paid { background: var(--jobs-dark); color: #ffffff; }
.jobs-payment-badge.is-not-invoiced { background: #ded8cf; color: #49443d; }

.jobs-payment-actions,
.jobs-form-actions,
.jobs-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.jobs-detail-actions form,
.jobs-payment-actions form,
.jobs-delete-form {
  margin: 0;
}

.jobs-delete-form button {
  min-height: 30px;
  padding: 0 9px;
  border: 0;
  background: var(--jobs-red);
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jobs-empty,
.jobs-note {
  color: var(--jobs-muted);
  font-size: 13px;
  line-height: 1.45;
}

.jobs-note {
  padding: 18px;
}

.jobs-calendar-weekdays,
.jobs-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
}

.jobs-calendar-weekdays {
  background: var(--jobs-line);
}

.jobs-calendar-weekdays span {
  padding: 10px 9px;
  background: #ffffff;
  color: var(--jobs-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.jobs-calendar-day {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.92) !important;
}

.jobs-calendar-day.is-empty {
  background: rgba(255, 255, 255, 0.36) !important;
}

.jobs-calendar-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--jobs-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
}

.jobs-calendar-date strong {
  color: var(--jobs-ink);
  font-weight: 400;
}

.jobs-calendar-date .today {
  padding: 2px 6px;
  background: var(--jobs-dark);
  color: #ffffff;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jobs-calendar-event {
  display: grid;
  gap: 2px;
  padding: 8px 9px;
  border-left: 4px solid #9d9d9d;
  background: var(--jobs-soft) !important;
  color: var(--jobs-ink);
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
}

.jobs-calendar-event strong,
.jobs-calendar-event span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jobs-calendar-event strong {
  font-size: 12px;
}

.jobs-calendar-event span {
  color: var(--jobs-muted);
  font-size: 11px;
}

.jobs-calendar-event.calendar-status-quoted { border-left-color: var(--jobs-gold); }
.jobs-calendar-event.calendar-status-confirmed { border-left-color: var(--jobs-green); }
.jobs-calendar-event.calendar-status-invoiced { border-left-color: var(--blue); }
.jobs-calendar-event.calendar-status-paid { border-left-color: var(--jobs-dark); }
.jobs-calendar-event.calendar-status-cancelled { border-left-color: var(--jobs-red); opacity: 0.45; }

.jobs-calendar-legend {
  display: flex;
  gap: 10px 16px;
  flex-wrap: wrap;
  color: var(--jobs-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jobs-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.jobs-calendar-legend span::before {
  content: "";
  width: 14px;
  height: 7px;
  background: #9d9d9d;
}

.jobs-calendar-legend .quoted::before { background: var(--jobs-gold); }
.jobs-calendar-legend .confirmed::before { background: var(--jobs-green); }
.jobs-calendar-legend .invoiced::before { background: var(--blue); }
.jobs-calendar-legend .paid::before { background: var(--jobs-dark); }
.jobs-calendar-legend .cancelled::before { background: var(--jobs-red); }

.jobs-availability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.jobs-availability-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-left: 5px solid #9d9d9d;
  background: var(--jobs-soft) !important;
}

.jobs-availability-card h4 {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.jobs-availability-card p,
.jobs-availability-card a,
.jobs-availability-card li {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.25;
}

.jobs-availability-card p {
  color: var(--jobs-muted);
}

.jobs-availability-card ul {
  display: grid;
  gap: 4px;
  list-style: none;
}

.jobs-availability-card a {
  color: var(--jobs-ink);
  text-decoration: none;
}

.jobs-availability-card.is-available { border-left-color: var(--jobs-green); }
.jobs-availability-card.is-conflict { border-left-color: var(--jobs-red); }
.jobs-availability-card.is-pencilled,
.jobs-availability-card.is-manual { border-left-color: var(--jobs-gold); }
.jobs-availability-card.is-unavailable { border-left-color: var(--jobs-dark); opacity: 0.75; }
.jobs-availability-card.is-needs-dates { border-left-color: #9d9d9d; }

/* JOB DOCUMENTS */

.jobs-document-page {
  padding: clamp(20px, 3vw, 42px);
  background: #f2f2f2;
}

.document-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.jobs-document {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 54px);
  background: #ffffff;
  color: #111111;
}

.jobs-document-v2 {
  padding: 0;
  overflow: hidden;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.08);
}

.jobs-document-v2-inner {
  padding: clamp(34px, 5vw, 70px);
}

.jobs-document-v2-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.34fr);
  gap: 36px;
  align-items: start;
  padding-bottom: 46px;
}

.jobs-document-v2-logo {
  width: 185px;
  height: auto;
  display: block;
  margin-bottom: 28px;
}

.jobs-document-v2-kicker {
  margin-bottom: 12px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jobs-document-v2 h1,
.jobs-document-header h1 {
  font-size: clamp(64px, 8vw, 128px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.08em;
}

.jobs-document-v2-number,
.jobs-document-v2-card,
.jobs-document-v2-notes {
  background: #f4f4f4;
}

.jobs-document-v2-number {
  display: grid;
  gap: 13px;
  padding: 22px;
  font-family: Arial, Helvetica, sans-serif;
}

.jobs-document-v2-number dt,
.jobs-document-v2-card h2,
.jobs-document-v2-meta dt,
.jobs-document-v2-lines h2,
.jobs-document-v2-notes h2,
.jobs-document-header dt,
.jobs-document-meta dt,
.jobs-document-lines h2,
.jobs-document-notes h2 {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.jobs-document-v2-number dd {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.jobs-document-v2-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 34px;
}

.jobs-document-v2-card {
  min-height: 164px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
}

.jobs-document-v2-card p,
.jobs-document-v2-lines td,
.jobs-document-v2-total dt,
.jobs-document-v2-total dd,
.jobs-document-v2-notes p,
.jobs-document-v2-footer,
.jobs-document-lines table,
.jobs-document-footer,
.jobs-document-meta,
.jobs-document-parties {
  font-family: Arial, Helvetica, sans-serif;
}

.jobs-document-v2-card p {
  font-size: 14px;
  line-height: 1.35;
}

.jobs-document-v2-meta {
  padding: 26px 0 36px;
}

.jobs-document-v2-meta dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #dedede;
}

.jobs-document-v2-meta div {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 16px;
  background: #ffffff;
}

.jobs-document-v2-meta dd {
  font-size: 16px;
  line-height: 1.2;
}

.jobs-document-v2-lines {
  display: grid;
  gap: 16px;
}

.jobs-document-v2-lines table,
.jobs-document-lines table {
  width: 100%;
  border-collapse: collapse;
}

.jobs-document-v2-lines th,
.jobs-document-lines th {
  padding: 12px 10px;
  background: #111111;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

.jobs-document-v2-lines td,
.jobs-document-lines td {
  padding: 15px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
  font-size: 14px;
  line-height: 1.35;
  vertical-align: top;
}

.jobs-document-v2-lines td:last-child,
.jobs-document-v2-lines th:last-child {
  text-align: right;
}

.jobs-document-v2-lines small {
  color: var(--muted);
  font-size: 12px;
}

.jobs-document-v2-total {
  display: flex;
  justify-content: flex-end;
  padding: 28px 0 0;
}

.jobs-document-v2-total dl {
  width: min(380px, 100%);
  display: grid;
  gap: 1px;
  background: #dedede;
}

.jobs-document-v2-total div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 14px 16px;
  background: #f4f4f4;
}

.jobs-document-v2-total div:last-child {
  background: #111111;
  color: #ffffff;
}

.jobs-document-v2-total div:last-child dt {
  color: rgba(255, 255, 255, 0.66);
}

.jobs-document-v2-total div:last-child dd {
  font-size: 23px;
}

.jobs-document-v2-notes {
  display: grid;
  gap: 11px;
  margin-top: 34px;
  padding: 22px;
}

.jobs-document-v2-notes p {
  max-width: 760px;
  font-size: 13px;
  line-height: 1.45;
}

.jobs-document-v2-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(34px, 5vw, 70px);
  background: #111111;
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.jobs-document-header {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.jobs-document-header p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.jobs-document-header dl,
.jobs-document-meta dl {
  display: grid;
  gap: 9px;
}

.jobs-document-lines,
.jobs-document-notes,
.jobs-document-total,
.jobs-document-parties,
.jobs-document-meta {
  margin-top: 28px;
}

.jobs-document-parties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.jobs-document-parties > div,
.jobs-document-meta {
  padding: 18px;
  background: #f4f4f4;
}

.jobs-document-total {
  display: flex;
  justify-content: flex-end;
}

.jobs-document-total dl {
  width: min(380px, 100%);
}

.jobs-document-total div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.jobs-document-footer {
  margin-top: 34px;
  color: var(--muted);
  font-size: 11px;
}

/* RESPONSIVE */

@media screen and (max-width: 1000px) {
  .home-grid {
    gap: 26px;
  }

  .project-detail,
  .project-detail-secret-woman,
  .jobs-grid,
  .jobs-secondary-grid,
  .jobs-detail-grid,
  .jobs-overview,
  .jobs-payment-cards {
    grid-template-columns: 1fr;
  }

  .project-content {
    position: static;
  }

  .project-content h1 {
    white-space: normal;
  }
}

@media screen and (max-width: 760px) {
  .page {
    padding: 20px 16px 26px;
  }

  .site-header {
    align-items: flex-start;
    margin-bottom: 38px;
  }

  .brand-logo {
    width: 150px;
  }

  .menu-toggle {
    position: relative;
    z-index: 40;
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    display: none;
    max-width: none;
    padding: 18px 0 0;
    background: var(--bg);
    text-align: left;
  }

  .menu-open .main-nav {
    display: grid;
    justify-content: stretch;
    gap: 12px;
  }

  .main-nav a {
    width: 100%;
    padding: 4px 0;
  }

  .main-nav a::after {
    display: none;
  }

  .home-grid {
    display: block;
  }

  .home-column {
    display: contents;
  }

  .home-project {
    display: block;
    margin-bottom: 26px;
    order: var(--project-order);
  }

  .home-project-title,
  .home-project-media::after {
    opacity: 1;
  }

  .home-project-title {
    font-size: 11px;
  }

  .project-badge-row {
    top: 12px;
    left: 12px;
    gap: 6px;
  }

  .project-badge {
    min-height: 27px;
    padding: 0 11px;
    font-size: 9.5px;
  }

  .project-netflix-mark {
    width: 26px;
    height: 26px;
  }

  .project-detail {
    gap: 28px;
  }

  .project-content h1,
  .contact-page h1,
  .privacy-page h1,
  .simple-page h1 {
    letter-spacing: -0.075em;
  }

  .project-credits div {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
  }

  .footer {
    align-items: flex-start;
  }

  .footer nav {
    max-width: 230px;
    gap: 8px 14px;
  }

  .jobs-page {
    padding: 14px;
  }

  .jobs-hero,
  .jobs-detail-header {
    padding: 24px 18px;
  }

  .jobs-form-row,
  .jobs-calendar-header,
  .jobs-payment-header,
  .jobs-availability-grid,
  .jobs-document-v2-top,
  .jobs-document-v2-intro,
  .jobs-document-v2-meta dl,
  .jobs-document-parties {
    grid-template-columns: 1fr !important;
  }

  .jobs-calendar-header,
  .jobs-payment-header {
    display: grid !important;
    align-items: start;
  }

  .jobs-calendar-weekdays {
    display: none;
  }

  .jobs-calendar-grid {
    grid-template-columns: 1fr;
  }

  .jobs-calendar-day.is-empty {
    display: none;
  }

  .jobs-calendar-day {
    min-height: auto;
  }

  .jobs-document-header {
    display: grid;
  }
}

@media screen and (max-width: 560px) {
  .project-badge {
    min-height: 25px;
    padding: 0 10px;
    font-size: 9px;
  }

  .project-netflix-mark {
    width: 24px;
    height: 24px;
  }

  .footer {
    display: grid;
    gap: 12px;
  }

  .footer nav {
    justify-content: flex-start;
    text-align: left;
  }
}

@media print {
  .site-header,
  .footer,
  .no-print,
  .document-actions {
    display: none !important;
  }

  .page,
  .jobs-document-page {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .jobs-document,
  .jobs-document-v2 {
    max-width: none;
    box-shadow: none;
  }

  .jobs-document-v2-inner {
    padding: 0 0 24px;
  }

  .jobs-document-v2-footer {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ==========================================================================
   FRONTPAGE RESTORE
   Kun forsiden. Rører ikke kategori-grid eller titelsider.
   ========================================================================== */

body.is-frontpage {
  min-height: 100vh;
  background: #111;
  color: #fff;
}

body.is-frontpage .page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.10), transparent 34%),
    linear-gradient(180deg, #121212 0%, #0d0d0d 100%);
  color: #fff;
}

body.is-frontpage .site-header {
  position: relative;
  z-index: 10;
  background: transparent;
  color: #fff;
}

body.is-frontpage .main-nav a {
  color: #fff;
}

body.is-frontpage .main-nav a.active,
body.is-frontpage .main-nav a:hover {
  color: rgba(255,255,255,.58);
}

body.is-frontpage .brand-logo {
  filter: invert(1);
  opacity: .92;
}

body.is-frontpage .site-footer,
body.is-frontpage footer,
body.is-frontpage .footer,
body.is-frontpage .cookie,
body.is-frontpage .cookies,
body.is-frontpage .cookie-banner {
  display: none !important;
}

.frontpage {
  width: min(1680px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 70px) 0 70px;
}

.frontpage-hero {
  display: grid;
  gap: clamp(28px, 4vw, 58px);
}

.frontpage-heading {
  max-width: 720px;
}

.frontpage-heading p {
  margin: 0 0 10px;
  color: rgba(255,255,255,.54);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.frontpage-heading h1 {
  margin: 0;
  color: #fff;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(58px, 8vw, 132px);
  font-weight: 400;
  line-height: .78;
  letter-spacing: -.09em;
}

.frontpage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 52px);
  align-items: start;
}

.frontpage-card {
  min-width: 0;
}

.frontpage-card-link {
  display: grid;
  gap: 16px;
  color: inherit;
  text-decoration: none;
}

.frontpage-poster {
  width: 100%;
  background: transparent;
  overflow: visible;
}

.frontpage-poster img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
}

.frontpage-poster-placeholder {
  aspect-ratio: 2 / 3;
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.56);
  font-family: "Times New Roman", Times, serif;
  font-size: 34px;
  line-height: .9;
  text-align: center;
  letter-spacing: -.05em;
}

.frontpage-card-meta {
  display: grid;
  gap: 5px;
}

.frontpage-card-meta h2 {
  margin: 0;
  color: #fff;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(30px, 3.2vw, 58px);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.075em;
}

.frontpage-card-meta p {
  margin: 0;
  color: rgba(255,255,255,.58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.frontpage-empty {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.72);
}

.frontpage-empty a {
  color: #fff;
}

@media (min-width: 981px) {
  body.is-frontpage {
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.is-frontpage .page {
    min-height: 100vh;
  }
}

@media (max-width: 980px) {
  .frontpage {
    width: min(100% - 32px, 720px);
    padding-top: 34px;
  }

  .frontpage-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .frontpage-heading h1 {
    font-size: clamp(54px, 16vw, 92px);
  }
}

/* =========================================================
   FRONT PAGE
   ========================================================= */

body.is-frontpage {
  background: #0b0b0b;
  color: #ffffff;
  overflow-x: hidden;
}

body.is-frontpage .page {
  background: #0b0b0b;
  min-height: 100vh;
}

body.is-frontpage .site-header {
  background: transparent;
  border-bottom: none;
  padding-bottom: 0;
}

body.is-frontpage .site-header,
body.is-frontpage .site-header a,
body.is-frontpage .main-nav a {
  color: #ffffff;
}

body.is-frontpage .main-nav a {
  opacity: 0.9;
}

body.is-frontpage .main-nav a:hover,
body.is-frontpage .main-nav a.active {
  opacity: 1;
}

body.is-frontpage .site-footer {
  display: none;
}

.frontpage-home {
  max-width: 1700px;
  margin: 0 auto;
  padding: 28px 28px 60px;
}

.frontpage-hero {
  margin: 0 0 28px;
}

.frontpage-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.frontpage-heading {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: 0.95;
  font-weight: 400;
  color: #ffffff;
}

.frontpage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 18px;
  align-items: start;
}

.front-card {
  position: relative;
}

.front-card__link {
  display: block;
  text-decoration: none;
  color: #ffffff;
}

.front-card__media {
  position: relative;
  overflow: hidden;
  background: transparent;
}

.front-card__poster,
.front-card__placeholder {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}

.front-card__placeholder {
  aspect-ratio: 2 / 3;
  background: rgba(255,255,255,0.06);
}

.front-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.25s ease;
  pointer-events: none;
}

.front-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.38) 38%,
    rgba(0,0,0,0) 72%
  );
}

.front-card__link:hover .front-card__media::after,
.front-card__link:focus-visible .front-card__media::after {
  background: rgba(0,0,0,0.22);
}

.front-card__link:hover .front-card__overlay,
.front-card__link:focus-visible .front-card__overlay {
  opacity: 1;
}

.front-card__caption {
  max-width: 88%;
}

.front-card__title {
  margin: 0 0 6px;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(1.45rem, 2vw, 2.2rem);
  line-height: 0.95;
  font-weight: 400;
  color: #ffffff;
}

.front-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}

.front-card__meta span {
  display: inline-block;
}

/* Mobil / tablet */
@media (max-width: 1100px) {
  .frontpage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .frontpage-home {
    padding: 20px 18px 40px;
  }

  .frontpage-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .front-card__overlay {
    opacity: 1;
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.78) 0%,
      rgba(0,0,0,0.28) 40%,
      rgba(0,0,0,0) 70%
    );
  }

  .front-card__media::after {
    background: rgba(0,0,0,0.12);
  }
}

/* =========================================================
   FRONT PAGE
   ========================================================= */

body.is-frontpage {
  background: #0b0b0b;
  color: #ffffff;
  overflow-x: hidden;
}

body.is-frontpage .page {
  background: #0b0b0b;
  min-height: 100vh;
}

body.is-frontpage .site-header {
  background: transparent;
  border-bottom: none;
  padding-bottom: 0;
}

body.is-frontpage .site-header,
body.is-frontpage .site-header a,
body.is-frontpage .main-nav a {
  color: #ffffff;
}

body.is-frontpage .main-nav a {
  opacity: 0.9;
}

body.is-frontpage .main-nav a:hover,
body.is-frontpage .main-nav a.active {
  opacity: 1;
}

body.is-frontpage .site-footer {
  display: none;
}

.frontpage-home {
  max-width: 1700px;
  margin: 0 auto;
  padding: 28px 28px 60px;
}

.frontpage-hero {
  margin: 0 0 28px;
}

.frontpage-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.frontpage-heading {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: 0.95;
  font-weight: 400;
  color: #ffffff;
}

.frontpage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 18px;
  align-items: start;
}

.front-card {
  position: relative;
}

.front-card__link {
  display: block;
  text-decoration: none;
  color: #ffffff;
}

.front-card__media {
  position: relative;
  overflow: hidden;
  background: transparent;
}

.front-card__poster,
.front-card__placeholder {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}

.front-card__placeholder {
  aspect-ratio: 2 / 3;
  background: rgba(255,255,255,0.06);
}

.front-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.25s ease;
  pointer-events: none;
}

.front-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.38) 38%,
    rgba(0,0,0,0) 72%
  );
}

.front-card__link:hover .front-card__media::after,
.front-card__link:focus-visible .front-card__media::after {
  background: rgba(0,0,0,0.22);
}

.front-card__link:hover .front-card__overlay,
.front-card__link:focus-visible .front-card__overlay {
  opacity: 1;
}

.front-card__caption {
  max-width: 88%;
}

.front-card__title {
  margin: 0 0 6px;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(1.45rem, 2vw, 2.2rem);
  line-height: 0.95;
  font-weight: 400;
  color: #ffffff;
}

.front-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}

.front-card__meta span {
  display: inline-block;
}

/* Mobil / tablet */
@media (max-width: 1100px) {
  .frontpage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .frontpage-home {
    padding: 20px 18px 40px;
  }

  .frontpage-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .front-card__overlay {
    opacity: 1;
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.78) 0%,
      rgba(0,0,0,0.28) 40%,
      rgba(0,0,0,0) 70%
    );
  }

  .front-card__media::after {
    background: rgba(0,0,0,0.12);
  }
}

/* =========================================================
   FRONT PAGE MASONRY RESTORE
   Forsiden alene. Rører ikke kategorier eller titelsider.
   ========================================================= */

body.is-frontpage {
  background: #0b0b0b !important;
  color: #ffffff;
  overflow-x: hidden;
}

body.is-frontpage .page {
  min-height: 100vh;
  background: #0b0b0b !important;
  color: #ffffff;
}

body.is-frontpage .site-header {
  background: transparent;
  border-bottom: 0;
}

body.is-frontpage .site-header,
body.is-frontpage .site-header a,
body.is-frontpage .main-nav a {
  color: #ffffff;
}

body.is-frontpage .main-nav a {
  opacity: 0.88;
}

body.is-frontpage .main-nav a:hover,
body.is-frontpage .main-nav a.active {
  opacity: 1;
}

body.is-frontpage .brand-logo {
  filter: invert(1);
}

body.is-frontpage .site-footer,
body.is-frontpage footer {
  display: none !important;
}

body.is-frontpage .frontpage-home {
  width: min(100% - 96px, 1720px);
  margin: 0 auto;
  padding: 34px 0 80px;
}

body.is-frontpage .frontpage-intro {
  margin: 0 0 22px;
  padding: 0;
}

body.is-frontpage .frontpage-kicker {
  margin: 0;
  color: rgba(255,255,255,0.74);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.is-frontpage .frontpage-heading,
body.is-frontpage .frontpage-hero h1 {
  display: none !important;
}

body.is-frontpage .frontpage-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
}

body.is-frontpage .frontpage-column {
  display: flex;
  flex-direction: column;
  gap: 34px;
  min-width: 0;
}

body.is-frontpage .front-card {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.is-frontpage .front-card__link {
  display: block;
  color: #ffffff;
  text-decoration: none;
}

body.is-frontpage .front-card__media {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

body.is-frontpage .front-card__poster {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  background: transparent;
  transform: scale(1);
  transition:
    transform 0.28s ease,
    filter 0.28s ease,
    opacity 0.28s ease;
}

body.is-frontpage .front-card__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: rgba(255,255,255,0.07);
}

body.is-frontpage .front-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 20px;
  opacity: 0 !important;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.86) 0%,
      rgba(0,0,0,0.44) 34%,
      rgba(0,0,0,0.08) 70%,
      rgba(0,0,0,0.00) 100%
    );
  transition: opacity 0.24s ease;
}

body.is-frontpage .front-card__caption {
  max-width: 92%;
}

body.is-frontpage .front-card__title {
  margin: 0 0 7px;
  color: #ffffff;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(30px, 2.7vw, 54px);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.075em;
}

body.is-frontpage .front-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  color: rgba(255,255,255,0.82);
  font-size: 10px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

body.is-frontpage .front-card__link:hover .front-card__poster,
body.is-frontpage .front-card__link:focus-visible .front-card__poster {
  filter: brightness(0.68);
  transform: scale(1.015);
}

body.is-frontpage .front-card__link:hover .front-card__overlay,
body.is-frontpage .front-card__link:focus-visible .front-card__overlay {
  opacity: 1 !important;
}

body.is-frontpage .frontpage-empty {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  body.is-frontpage .frontpage-home {
    width: min(100% - 48px, 980px);
  }

  body.is-frontpage .frontpage-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  body.is-frontpage .frontpage-column {
    gap: 28px;
  }
}

@media (max-width: 700px) {
  body.is-frontpage .frontpage-home {
    width: min(100% - 32px, 620px);
    padding-top: 26px;
  }

  body.is-frontpage .frontpage-masonry {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  body.is-frontpage .frontpage-column {
    gap: 24px;
  }

  body.is-frontpage .front-card__overlay {
    opacity: 1 !important;
  }

  body.is-frontpage .front-card__poster {
    filter: brightness(0.82);
  }
}

/* =========================================================
   FRONT PAGE HEADER ALIGNMENT
   Logo og menu flugter med forside-plakaterne
   ========================================================= */

body.is-frontpage {
  --frontpage-edge: clamp(48px, 4.75vw, 80px);
}

body.is-frontpage .site-header {
  width: auto !important;
  max-width: none !important;
  margin-left: var(--frontpage-edge) !important;
  margin-right: var(--frontpage-edge) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;

  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
}

body.is-frontpage .frontpage-home {
  width: auto !important;
  max-width: none !important;
  margin-left: var(--frontpage-edge) !important;
  margin-right: var(--frontpage-edge) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.is-frontpage .brand {
  margin-left: 0 !important;
}

body.is-frontpage .main-nav {
  margin-right: 0 !important;
}

/* Tablet */
@media (max-width: 1100px) {
  body.is-frontpage {
    --frontpage-edge: 32px;
  }
}

/* Mobil */
@media (max-width: 700px) {
  body.is-frontpage {
    --frontpage-edge: 18px;
  }
}

/* =========================================================
   FRONT PAGE FINAL SPACING CONTROL
   Læg denne HELT nederst i style.css
   ========================================================= */

body.is-frontpage .main-nav {
  transform: translateY(8px) !important;
}

body.is-frontpage .frontpage-home {
  padding-top: 8px !important;
}

/* =========================================================
   FRONT PAGE FINAL POSITION TEST
   SKAL LIGGE HELT NEDERST I STYLE.CSS
   ========================================================= */

body.is-frontpage .site-header {
  padding-top: 28px !important;
  margin-bottom: 18px !important;
}

body.is-frontpage .main-nav {
  transform: translateY(10px) !important;
}

body.is-frontpage .frontpage-home {
  padding-top: 0 !important;
}

body.is-frontpage .frontpage-intro {
  margin-top: 0 !important;
  margin-bottom: 22px !important;
}

/* =========================================================
   CATEGORY PAGES — SAME STRUCTURE AS FRONTPAGE
   Gælder kategorisiderne, ikke forsiden og ikke titelsiderne.
   ========================================================= */

body:not(.is-frontpage) .category-gallery,
body:not(.is-frontpage) .home-gallery {
  width: 100%;
}

body:not(.is-frontpage) .home-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 34px !important;
  align-items: start !important;
}

body:not(.is-frontpage) .home-column {
  display: flex !important;
  flex-direction: column !important;
  gap: 34px !important;
  min-width: 0 !important;
}

body:not(.is-frontpage) .home-project {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  text-decoration: none !important;
}

body:not(.is-frontpage) .home-project-media {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
}

body:not(.is-frontpage) .home-project-media img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: contain !important;
  background: transparent !important;
  transform: scale(1);
  transition:
    transform 0.28s ease,
    filter 0.28s ease,
    opacity 0.28s ease !important;
}

body:not(.is-frontpage) .home-project-media::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  height: auto !important;
  opacity: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.86) 0%,
      rgba(0,0,0,0.44) 34%,
      rgba(0,0,0,0.08) 70%,
      rgba(0,0,0,0.00) 100%
    ) !important;
  transition: opacity 0.24s ease !important;
}

body:not(.is-frontpage) .home-project-title {
  position: absolute !important;
  left: 20px !important;
  right: 20px !important;
  bottom: 20px !important;
  z-index: 3 !important;

  display: block !important;
  width: auto !important;
  min-height: 0 !important;
  padding: 0 !important;

  color: #ffffff !important;
  font-family: "Times New Roman", Times, serif !important;
  font-size: clamp(30px, 2.7vw, 54px) !important;
  font-weight: 400 !important;
  line-height: 0.86 !important;
  letter-spacing: -0.075em !important;
  text-align: left !important;
  text-transform: uppercase !important;
  text-shadow: none !important;

  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.24s ease !important;
}

body:not(.is-frontpage) .home-project:hover .home-project-media img,
body:not(.is-frontpage) .home-project:focus-visible .home-project-media img {
  filter: brightness(0.68) !important;
  transform: scale(1.015) !important;
  box-shadow: none !important;
}

body:not(.is-frontpage) .home-project:hover .home-project-title,
body:not(.is-frontpage) .home-project:focus-visible .home-project-title,
body:not(.is-frontpage) .home-project:hover .home-project-media::after,
body:not(.is-frontpage) .home-project:focus-visible .home-project-media::after {
  opacity: 1 !important;
}

/* Tablet */
@media (max-width: 1100px) {
  body:not(.is-frontpage) .home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px !important;
  }

  body:not(.is-frontpage) .home-column {
    gap: 28px !important;
  }
}

/* Mobil */
@media (max-width: 760px) {
  body:not(.is-frontpage) .home-grid {
    display: block !important;
  }

  body:not(.is-frontpage) .home-column {
    display: contents !important;
  }

  body:not(.is-frontpage) .home-project {
    display: block !important;
    margin-bottom: 24px !important;
  }

  body:not(.is-frontpage) .home-project-title,
  body:not(.is-frontpage) .home-project-media::after {
    opacity: 1 !important;
  }

  body:not(.is-frontpage) .home-project-media img {
    filter: brightness(0.82) !important;
  }

  body:not(.is-frontpage) .home-project-title {
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
    font-size: clamp(28px, 11vw, 46px) !important;
  }
}