@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap");

@font-face {
  font-family: "MADE Florence Sans";
  src: url("../fonts/MADEFlorenceSans.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Coinage Caps";
  src: url("../fonts/CoinageCapsHumphreyPagetW05.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* TETTPA design system */
:root {
  --bg: #030303;
  --surface: #0a0a0a;
  --surface-elevated: #111111;
  --surface-soft: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #f4f4f4;
  --muted: #8a8a8a;
  --muted-strong: #b7b7b7;
  --red: #e30613;
  --red-hot: #ff1a28;
  --red-glow: rgba(227, 6, 19, 0.38);
  --green: #5cdb8f;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
  /* TETTPÅ brand display face — used for the hero headline/tagline */
  --font-brand: "MADE Florence Sans", "Bebas Neue", sans-serif;
  --content: 1120px;
  --gutter: clamp(1rem, 4vw, 1.5rem);
  --header-height: 5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(227, 6, 19, 0.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.psychedelic-mode {
  filter: hue-rotate(90deg);
}

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

img,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: rgba(227, 6, 19, 0.75);
  color: #fff;
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--content));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 10001;
  transform: translateY(-140%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  color: var(--text);
  padding: 0.65rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: max(0.8rem, env(safe-area-inset-top)) var(--gutter) 1.4rem;
  background: linear-gradient(to bottom, rgba(3, 3, 3, 0.94), rgba(3, 3, 3, 0.68) 56%, transparent);
  transition: background 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
}

.site-header.is-scrolled {
  padding-bottom: 0.85rem;
  background: rgba(3, 3, 3, 0.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, var(--content));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  line-height: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.brand:focus-visible,
.nav-links a:focus-visible,
.nav-toggle:focus-visible,
.nav-overlay a:focus-visible,
.nav-overlay__close:focus-visible,
.btn:focus-visible,
.profile-hero__back:focus-visible,
.agency-tile:focus-visible,
.resident-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.brand__logo {
  display: block;
  width: auto;
  height: clamp(2.4rem, 5.5vw, 3.6rem);
}

.page-home .site-header:not(.is-scrolled) .brand {
  opacity: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.15rem;
}

.nav-links a,
.nav-overlay a,
.footer-nav a {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  background: rgba(3, 3, 3, 0.96);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.nav-overlay__links {
  display: grid;
  gap: 1rem;
}

.nav-overlay a {
  color: rgba(255, 255, 255, 0.56);
  font-size: clamp(3rem, 14vw, 7rem);
  line-height: 0.92;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-overlay a:hover,
.nav-overlay a.is-active {
  color: #fff;
}

.nav-overlay__close {
  position: absolute;
  top: max(1.25rem, env(safe-area-inset-top));
  right: max(1.25rem, env(safe-area-inset-right));
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-overlay__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.nav-overlay__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-overlay__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* Shared sections */
main {
  min-height: 60vh;
}

.section {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--border);
}

.section--no-border {
  border-top: 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-label {
  display: block;
  margin: 0 0 1rem;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

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

h1,
h2,
.display-heading {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

h1,
.display-heading {
  margin-bottom: 0.5rem;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.95;
}

.eyebrow {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.lead {
  max-width: 43rem;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.75;
}

.copy {
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.35rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
  color: #fff;
}

.btn-primary {
  border-color: transparent;
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-hot);
  box-shadow: 0 0 28px var(--red-glow);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* Homepage */
.hero {
  position: relative;
  min-height: 75vh;
  min-height: 75dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 6rem 0 max(3.5rem, env(safe-area-inset-bottom));
}

.hero__bg,
.hero__picture,
.hero__photo,
.hero__scrim {
  position: absolute;
  inset: 0;
}

.hero__bg {
  z-index: 0;
  overflow: hidden;
  background: var(--surface);
}

.hero__picture {
  display: block;
}

.hero__photo {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 36%;
  /* Fade the image downward into the page background — no hard edge */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0, 0, 0, 0.55) 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0, 0, 0, 0.55) 84%, transparent 100%);
}

.hero__scrim {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(3, 3, 3, 0.55) 35%, rgba(3, 3, 3, 0.25) 58%, rgba(3, 3, 3, 0.55) 100%),
    linear-gradient(105deg, rgba(227, 6, 19, 0.12) 0%, transparent 45%);
}

.hero-lockup {
  position: absolute;
  z-index: 2;
  top: auto;
  bottom: 10%;
  left: clamp(1.5rem, 6vw, 5rem);
  display: grid;
  justify-items: start;
  width: min(100% - 6rem, 50rem);
  transform: none;
  text-align: left;
  pointer-events: none;
}

.hero-lockup__logo {
  display: block;
  width: min(100%, clamp(19rem, 44vw, 42rem));
  height: auto;
  filter: drop-shadow(0 18px 44px rgba(0, 0, 0, 0.55));
}

.hero-logo-source.is-morph-source-hidden {
  visibility: hidden;
}

.hero-lockup__tagline {
  max-width: 30rem;
  margin: clamp(0.6rem, 1.4vw, 1rem) 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-brand);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.58);
  transition: opacity 0.18s linear, transform 0.18s linear;
  /* Text hidden per request — kept in the DOM (same height reserved) so the
     logo above it doesn't shift, and so the scroll-morph script (site.js)
     keeps working untouched. */
  visibility: hidden;
}

#hero-logo-morph {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 101;
  display: block;
  width: min(100%, clamp(19rem, 44vw, 42rem));
  height: auto;
  opacity: 0;
  pointer-events: none;
  transform-origin: top left;
  will-change: transform, opacity;
  filter: drop-shadow(0 18px 44px rgba(0, 0, 0, 0.55));
}

.hero-mail-form {
  width: min(100%, 30rem);
  animation: hero-form-in 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes hero-form-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-mail-pill {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.3rem 0.3rem 1.35rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-mail-pill:focus-within {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.hero-mail-pill input {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
}

.hero-mail-pill input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.hero-mail-btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  padding: 0.65rem 1.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.hero-mail-btn:hover {
  background: var(--red-hot);
  box-shadow: 0 0 22px var(--red-glow);
}

.about-lead {
  max-width: 52rem;
}

.about-lead h2 {
  float: left;
  margin: 0 1.75rem 0.35rem 0;
  font-size: clamp(3.2rem, 8vw, 5.2rem);
  line-height: 0.95;
}

.about-lead::after {
  content: "";
  display: table;
  clear: both;
}

.resident-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
  max-width: 720px;
  margin: 2.25rem auto 0;
}

.resident-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-align: center;
}

.resident-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.resident-card__img-wrap img,
.agency-tile__img,
.profile-hero__img,
.kompis-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.resident-card__img-wrap img {
  object-position: center top;
  transition: transform 0.5s ease, filter 0.35s ease;
}

.resident-card:hover img {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.resident-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.resident-card__role {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Agency */
.agency-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
}

.agency-tile {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border);
  color: var(--text);
}

.agency-tile:last-child {
  border-right: 0;
}

.agency-tile__img {
  position: absolute;
  inset: 0;
  object-position: center top;
  transition: transform 0.7s ease, filter 0.5s ease;
}

.agency-tile__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(3, 3, 3, 0.85) 0%, rgba(3, 3, 3, 0.3) 40%, rgba(3, 3, 3, 0.15) 70%, rgba(3, 3, 3, 0.4) 100%),
    linear-gradient(135deg, rgba(227, 6, 19, 0.07) 0%, transparent 55%);
  transition: opacity 0.5s ease;
}

.agency-tile__content {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
}

.agency-tile--right .agency-tile__content {
  align-items: flex-end;
  text-align: right;
}

.agency-tile__label {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.agency-tile__name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: text-shadow 0.4s ease;
}

.agency-tile:hover .agency-tile__img {
  transform: scale(1.04);
  filter: brightness(1.07);
}

.agency-tile:hover .agency-tile__scrim {
  opacity: 0.8;
}

.agency-tile:hover .agency-tile__name {
  text-shadow: 0 0 50px rgba(255, 255, 255, 0.18);
}

/* Archive */
.archive-main {
  padding: 0;
}

/* Contact */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 70% 20%, rgba(227, 6, 19, 0.08), transparent 34rem), var(--bg);
}

.page-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  filter: grayscale(100%);
}

.page-inner {
  position: relative;
  z-index: 1;
  padding-top: var(--header-height);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

.contact-panel,
.profile-sidebar,
.asset-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(10, 10, 10, 0.72);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 42rem;
}

.contact-form__field {
  display: grid;
  gap: 0.35rem;
}

.contact-form__label {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-form__input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: 0;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  padding: 0.8rem 1rem;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
}

.contact-form__input::placeholder {
  color: rgba(255, 255, 255, 0.24);
}

.contact-form__input:focus {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.contact-form__textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.65;
}

.contact-form__status {
  min-height: 1.2em;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.contact-form__status--ok {
  color: var(--green);
}

.contact-form__status--err {
  color: var(--red-hot);
}

.contact-sidebar {
  display: grid;
  gap: 1.5rem;
}

.contact-sidebar__block {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.contact-sidebar__block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-sidebar__label {
  margin: 0;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-sidebar__link,
.contact-sidebar__note {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.contact-sidebar__link:hover {
  color: var(--text);
}

/* Profiles */
.profile-hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.profile-hero__img {
  position: absolute;
  inset: 0;
  object-position: center top;
}

.profile-hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(3, 3, 3, 0.92) 0%, rgba(3, 3, 3, 0.5) 30%, rgba(3, 3, 3, 0.18) 65%, rgba(3, 3, 3, 0.45) 100%),
    linear-gradient(105deg, rgba(227, 6, 19, 0.1) 0%, transparent 45%);
}

.profile-hero__back {
  position: absolute;
  top: max(5.5rem, calc(env(safe-area-inset-top) + 4.5rem));
  left: max(var(--gutter), env(safe-area-inset-left));
  z-index: 2;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.2s ease;
}

.profile-hero__back:hover {
  color: var(--red-hot);
}

.profile-hero__inner {
  position: relative;
  z-index: 1;
  width: min(100% - (var(--gutter) * 2), var(--content));
  margin-inline: auto;
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
}

.profile-hero__name {
  margin: 0 0 0.3rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 13vw, 10rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 4px 60px rgba(0, 0, 0, 0.65);
}

.profile-hero__sub,
.profile-hero__scroll {
  display: block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.profile-hero__sub {
  margin-bottom: 1.75rem;
  color: var(--red);
  font-size: 0.68rem;
}

.profile-hero__scroll {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.62rem;
  animation: scroll-pulse 2.6s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  50% {
    opacity: 0.8;
    transform: translateY(4px);
  }
}

.profile-info__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

.profile-bio {
  max-width: 44rem;
}

.profile-bio__text {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.profile-bio__text strong {
  color: var(--text);
}

.profile-meta {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.profile-meta li {
  margin-bottom: 0.55rem;
}

.profile-meta span {
  display: inline-block;
  min-width: 5.5rem;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.profile-socials {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.profile-socials a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.2s ease;
}

.profile-socials a:last-child {
  border-bottom: 0;
}

.profile-socials a:hover {
  color: var(--text);
}

.video-embed,
.sc-embed {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #000;
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
}

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

.sc-embed iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}

.kompis-thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.kompis-thumb {
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.kompis-thumb img {
  transition: transform 0.4s ease;
}

.kompis-thumb:hover img {
  transform: scale(1.05);
}

.kompis-thumb-grid .kompis-thumb:last-child:nth-child(3n - 1) {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.profile-photos-coming {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  padding: 2rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Gallery tiles are clickable once the CMS-backed grids hydrate */
.kompis-thumb,
.photo {
  cursor: pointer;
}

/* Lightbox — shared by Kompis, Amnesi and Archive galleries */
dialog.lightbox {
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  background: rgba(3, 3, 3, 0.97);
  overflow: hidden;
}

dialog.lightbox::backdrop {
  background: rgba(3, 3, 3, 0.97);
  backdrop-filter: blur(10px);
}

.lightbox__box {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(94vw, 1400px);
  max-height: 86vh;
  max-height: 86dvh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.lightbox__close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.85);
  color: var(--text);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
}

.lightbox__counter {
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  height: 2.5rem;
  padding: 0 0.9rem;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.85);
  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  user-select: none;
}

.lightbox__bar {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lightbox__caption {
  display: none;
  height: 2.5rem;
  padding: 0 0.9rem;
  align-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.85);
  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.lightbox__caption:not(:empty) {
  display: inline-flex;
}

.lightbox__nav {
  display: flex;
  gap: 0.4rem;
}

.lightbox__nav button {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.85);
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox__nav button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
}

@media (max-width: 640px) {
  .lightbox__close,
  .lightbox__counter,
  .lightbox__nav button {
    width: 2.25rem;
    height: 2.25rem;
  }
}

/* 404 */
.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 1rem;
  width: min(100% - 2rem, 34rem);
  margin-inline: auto;
  padding: 2rem 0;
  text-align: center;
}

.not-found__logo {
  width: auto;
  height: 88px;
  opacity: 0.9;
}

.not-found .copy {
  margin-inline: auto;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) max(3rem, calc(1.5rem + env(safe-area-inset-bottom)));
  background: var(--bg);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 2rem;
  width: min(100%, var(--content));
  margin-inline: auto;
}

.site-footer__brand {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.site-footer__logo {
  display: block;
  width: auto;
  height: 80px;
  opacity: 0.88;
}

.site-footer__copy,
.site-footer__label,
.site-footer__link,
.site-footer__note {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.site-footer__copy {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.site-footer__label {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--red);
  font-family: var(--font-display);
  text-transform: uppercase;
}

.footer-nav,
.site-footer__col {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.footer-nav a,
.site-footer__link,
.site-footer__note {
  color: var(--muted);
}

.footer-nav a {
  font-size: 1rem;
}

.footer-nav a:hover,
.footer-nav a.is-active,
.site-footer__link:hover {
  color: var(--text);
}

.site-footer__note {
  margin: 0;
  font-family: var(--font-mono);
}

/* Toast and fun states */
.secret-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 10000;
  max-width: 90vw;
  transform: translateX(-50%) translateY(120%);
  border: 1px solid rgba(227, 6, 19, 0.35);
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  color: var(--text);
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.secret-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.glitch-mode .brand__logo,
.glitch-mode h1,
.glitch-mode h2 {
  animation: glitch 0.35s infinite;
}

@keyframes glitch {
  0% {
    filter: drop-shadow(2px 0 #0ff) drop-shadow(-2px 0 #f00);
    transform: translate(0);
  }

  25% {
    filter: drop-shadow(-2px 0 #0ff) drop-shadow(2px 0 #f00);
    transform: translate(-1px, 1px);
  }

  50% {
    filter: drop-shadow(2px 0 #f00) drop-shadow(-2px 0 #0ff);
    transform: translate(1px, -1px);
  }

  100% {
    filter: none;
    transform: translate(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .section-head,
  .contact-layout,
  .profile-info__grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 4.6rem;
  }

  .hero-lockup {
    top: auto;
    bottom: 5%;
    left: max(1.5rem, env(safe-area-inset-left));
    width: min(100% - 2.5rem, 32rem);
  }

  .hero-lockup__tagline {
    font-size: 1rem;
    line-height: 1.35;
  }

  .hero-mail-pill {
    padding-left: 1.05rem;
  }

  .hero-mail-btn {
    padding-inline: 1.05rem;
  }

  .about-lead h2 {
    float: none;
    margin: 0 0 1rem;
  }

  .resident-cards,
  .agency-stage {
    grid-template-columns: 1fr;
  }

  .agency-stage {
    height: auto;
  }

  .agency-tile {
    height: 65vh;
    height: 65dvh;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .agency-tile--right .agency-tile__content {
    align-items: flex-start;
    text-align: left;
  }

  .profile-meta span {
    display: block;
    min-width: 0;
    margin-bottom: 0.12rem;
  }

  .kompis-thumb-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sc-embed iframe {
    height: 300px;
  }
}

@media (max-width: 440px) {
  .brand__logo {
    height: 2.4rem;
  }

  .hero-mail-pill {
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
    border-radius: var(--radius-md);
    padding: 0.95rem;
  }

  .hero-mail-pill input {
    min-height: 42px;
  }

  .secret-toast {
    right: 1rem;
    left: 1rem;
    max-width: none;
    transform: translateY(120%);
  }

  .secret-toast.is-visible {
    transform: translateY(0);
  }
}

@media (hover: none) {
  .resident-card:hover img,
  .agency-tile:hover .agency-tile__img,
  .kompis-thumb:hover img {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  #hero-logo-morph {
    display: none !important;
  }

  .hero-logo-source {
    visibility: visible !important;
  }

  .hero-lockup__tagline,
  .brand {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   Added components — extend the existing system, do not replace
   ============================================================ */

/* Header nav + social cluster */
.site-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.9rem);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.social-links a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.social-links svg {
  display: block;
}

/* Footer brand: logo, tagline, social */
.site-footer__social {
  margin: 0.15rem 0 0.25rem -0.4rem;
}

.site-footer__social a {
  color: var(--muted);
}

.site-footer__social a:hover {
  color: var(--text);
}

/* Mobile nav-overlay social */
.nav-overlay__social {
  justify-content: center;
  margin-top: 2.75rem;
  gap: 1.5rem;
}

.nav-overlay__social a {
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.56);
}

/* Homepage About — two columns + stat strip */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: start;
}

.about-statement {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.about-body p.copy {
  max-width: 38rem;
  margin-bottom: 1.1rem;
}

.about-body p.copy:last-child {
  margin-bottom: 0;
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.stat-strip li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-strong);
}

.stat-strip li:not(:first-child)::before {
  content: "·";
  margin: 0 1.1rem;
  color: var(--red);
}

/* Homepage mailing-list CTA — centered section between About and Residents */
.mail-cta {
  display: grid;
  justify-items: center;
  max-width: 36rem;
  text-align: center;
}

.mail-cta .section-label {
  margin-bottom: 0.5rem;
}

.mail-cta h2 {
  margin-bottom: 0.75rem;
}

.mail-cta .copy {
  margin: 0 auto 2rem;
}

.mail-cta .hero-mail-form {
  margin-inline: auto;
}

/* "Fra arkivet" horizontal strip */
.archive-strip__scroller {
  display: flex;
  gap: 1rem;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.archive-strip__item {
  flex: 0 0 auto;
  width: clamp(13rem, 42vw, 17rem);
  scroll-snap-align: start;
}

.archive-strip__poster {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.archive-strip__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.35s ease;
}

.archive-strip__item:hover img {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.archive-strip__caption {
  margin: 0.65rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.archive-strip__player {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

/* Archive strip — scroll affordance (edge fade + prev/next) */
.archive-strip {
  position: relative;
}

.archive-strip::before,
.archive-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 1.25rem;
  width: clamp(1.5rem, 6vw, 3.5rem);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.archive-strip::before {
  left: calc(var(--gutter) * -1);
  background: linear-gradient(to right, var(--bg), transparent);
}

.archive-strip::after {
  right: calc(var(--gutter) * -1);
  background: linear-gradient(to left, var(--bg), transparent);
}

.archive-strip.can-scroll-left::before,
.archive-strip.can-scroll-right::after {
  opacity: 1;
}

.archive-strip__nav {
  position: absolute;
  top: calc(50% - 0.625rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.archive-strip__nav--prev {
  left: 0.25rem;
}

.archive-strip__nav--next {
  right: 0.25rem;
}

.archive-strip.can-scroll-left .archive-strip__nav--prev,
.archive-strip.can-scroll-right .archive-strip__nav--next {
  opacity: 1;
  pointer-events: auto;
}

.archive-strip__nav:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.archive-strip__nav:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

@media (hover: none) {
  .archive-strip__nav {
    display: none;
  }

  .archive-strip::before,
  .archive-strip::after {
    display: none;
  }
}

/* Archive page — intro header + grouped events */
.archive-intro {
  padding: calc(var(--header-height) + clamp(2rem, 6vw, 3.5rem)) 0 clamp(1.5rem, 4vw, 2.5rem);
}

.archive-intro .copy {
  margin-top: 0.75rem;
}

.archive-event {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--border);
}

.archive-event__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 2rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.archive-event__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.archive-event__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.archive-event__meta span {
  color: var(--muted-strong);
}

.archive-event__meta span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--red);
  vertical-align: middle;
}

.archive-event__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.archive-event__grid .photo--wide {
  grid-column: span 2;
}

.photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.photo--wide {
  aspect-ratio: 2 / 1;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.35s ease;
}

.photo:hover img {
  transform: scale(1.04);
  filter: brightness(0.85);
}

.photo__credit {
  position: absolute;
  inset: auto 0 0;
  padding: 0.7rem 0.85rem;
  background: linear-gradient(to top, rgba(3, 3, 3, 0.85), transparent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.photo:hover .photo__credit,
.photo:focus-within .photo__credit {
  opacity: 1;
  transform: translateY(0);
}

/* Profile "Book [artist]" CTA */
.profile-book {
  width: 100%;
  margin-top: 0.75rem;
}

.profile-sidebar .btn {
  width: 100%;
}

.profile-sidebar .btn + .btn {
  margin-top: 0.6rem;
}

@media (max-width: 768px) {
  .site-header__nav .social-links {
    display: none;
  }
}

@media (max-width: 900px) {
  .about-grid,
  .archive-event__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .archive-event__grid .photo--wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .archive-event__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .archive-event__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (hover: none) {
  .archive-strip__item:hover img,
  .photo:hover img {
    transform: none;
  }
}

