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

:root {
  --bg: #030303;
  --surface: #0a0a0a;
  --border: rgba(255, 255, 255, 0.06);
  --text: #f4f4f4;
  --muted: #8a8a8a;
  --red: #e30613;
  --red-hot: #ff1a28;
  --red-glow: rgba(227, 6, 19, 0.4);
  --font-display: "Coinage Caps Humphrey Paget", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.055;
  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");
}

a { color: var(--red-hot); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { color: #ff5c66; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 1.5rem);
  padding-left: max(clamp(1rem, 4vw, 1.5rem), env(safe-area-inset-left));
  padding-right: max(clamp(1rem, 4vw, 1.5rem), env(safe-area-inset-right));
}

/* nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(3,3,3,0.92) 0%, rgba(3,3,3,0.7) 55%, transparent 100%);
  padding: max(0.85rem, env(safe-area-inset-top)) 0 1.75rem;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  border-radius: 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.nav-toggle:hover { background: rgba(255,255,255,0.1); }
.nav-toggle:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.primary-nav {
  display: flex;
  align-items: center;
}
.logo-btn {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-radius: 0.6rem;
  transition: box-shadow 0.25s, transform 0.2s;
}
.logo-btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.logo-btn:hover { transform: translateY(-1px); }
.logo-wrap {
  display: inline-block;
  line-height: 0;
}
.site-logo {
  display: block;
  height: clamp(2.15rem, 5vw, 2.65rem);
  width: auto;
}
header .logo-btn .site-logo {
  height: clamp(2.55rem, 6.25vw, 3.35rem);
}
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.15rem;
  justify-content: flex-end;
}
.primary-nav a {
  font-family: var(--font-display);
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  -webkit-tap-highlight-color: transparent;
}
.primary-nav a:hover { color: #fff; }
.primary-nav a[aria-current="page"] { color: #fff; }

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    flex: 1 0 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .primary-nav.is-open {
    max-height: min(70vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 0 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
  }
  .primary-nav li { width: 100%; }
  .primary-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.35rem 0;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .primary-nav li:last-child a { border-bottom: none; }
}

@media (min-width: 769px) {
  .primary-nav {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6rem 0 max(3.5rem, env(safe-area-inset-bottom));
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--bg);
  overflow: hidden;
}
.hero__picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
}
.hero__photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center 36%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(3,3,3,0.55) 35%, rgba(3,3,3,0.25) 55%, rgba(3,3,3,0.5) 100%),
    linear-gradient(105deg, rgba(227,6,19,0.12) 0%, transparent 45%);
}

/*
  Portrait phones: <picture> loads assets/images/residents/axel/hero.jpg.
*/
@media (max-width: 768px) and (max-aspect-ratio: 1/1) {
  .hero__photo {
    object-position: center 42%;
  }
}

@media (max-width: 896px) and (orientation: landscape) {
  .hero__photo {
    object-position: center 40%;
  }
}
.hero__inner {
  position: relative;
  z-index: 1;
}
.hero__mark {
  margin-bottom: 1.25rem;
}
.hero__mark .site-logo {
  height: clamp(4.5rem, 14vw, 7.5rem);
  filter: drop-shadow(0 8px 36px rgba(0, 0, 0, 0.85));
}
.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(5rem, 22vw, 16rem);
  letter-spacing: 0.03em;
  line-height: 1;
  margin: 0 0 0.75rem;
  text-shadow: 0 0 60px rgba(227, 6, 19, 0.25);
  font-weight: 400;
}
.hero .sub {
  margin-top: 0;
  color: var(--muted);
  max-width: 30rem;
  font-size: 0.88rem;
}
.hero .sub strong { color: var(--text); }
.oslo-hit {
  cursor: default;
  border-bottom: 1px dashed rgba(227, 6, 19, 0.45);
  color: var(--text);
}
.cta-row {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-mail-form {
  margin-top: 1.75rem;
  max-width: min(100%, 32rem);
}
.hero-mail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
}
.hero-mail-row input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  margin-bottom: 0;
}
.hero-mail-row .btn {
  flex: 0 0 auto;
}
@media (max-width: 480px) {
  .hero-mail-row .btn {
    flex: 1 1 auto;
    min-width: min(100%, 200px);
    justify-content: center;
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 480px) {
  .cta-row .btn {
    flex: 1 1 auto;
    min-width: min(100%, 200px);
    justify-content: center;
  }
}
.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: transparent;
}
.btn-primary:hover {
  background: var(--red-hot);
  box-shadow: 0 0 28px var(--red-glow);
  color: #fff;
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.12); }

/* sections */
section {
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
}
@media (max-width: 600px) {
  section { padding: 0.5rem 0; }
}
.section-label {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 0.5rem;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.15rem);
  letter-spacing: 0.035em;
  margin: 0 0 1.35rem;
  font-weight: 400;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.35rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: rgba(227, 6, 19, 0.3);
  box-shadow: 0 0 0 1px rgba(227, 6, 19, 0.06);
}
.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}
.card p { margin: 0; color: var(--muted); font-size: 0.85rem; }

.event-list { display: flex; flex-direction: column; gap: 0.75rem; }
.event {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}
@media (max-width: 600px) {
  .event {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 1rem;
  }
  .event > span:last-child {
    justify-self: start;
  }
}
.event-date {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--red);
  letter-spacing: 0.035em;
  line-height: 1;
  font-weight: 400;
}
.event-info h3 { margin: 0 0 0.25rem; font-size: 0.95rem; }
.event-info p { margin: 0; color: var(--muted); font-size: 0.8rem; }

/* gallery */
#gallery .gallery-grid,
.page-archive .gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}
@media (max-width: 900px) {
  #gallery .gallery-grid,
  .page-archive .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  #gallery .gallery-grid,
  .page-archive .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
.gallery-cell {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  background: #111;
}
.gallery-cell--wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}
.gallery-cell--tall {
  grid-row: span 2;
  aspect-ratio: 1 / 2;
}
@media (max-width: 900px) {
  .gallery-cell--wide { grid-column: span 3; aspect-ratio: 16 / 9; }
  .gallery-cell--tall { grid-row: span 1; aspect-ratio: 1; grid-column: span 1; }
}
@media (max-width: 520px) {
  .gallery-cell--wide { grid-column: span 2; }
}
.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transition: transform 0.5s ease, filter 0.35s ease;
}
.gallery-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(227,6,19,0.2) 0%, transparent 42%);
  opacity: 0.85;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.gallery-cell:hover img {
  transform: scale(1.04);
  filter: saturate(1.15) contrast(1.1);
}
.gallery-cell:hover::after {
  opacity: 0.35;
}
@media (hover: none) {
  .gallery-cell:hover img {
    transform: none;
    filter: saturate(1.05) contrast(1.05);
  }
  .gallery-cell:hover::after { opacity: 0.85; }
}
.gallery-note {
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* forms */
.form-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 1rem;
  max-width: 100%;
  overflow-x: hidden;
}
label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
input, textarea, select {
  width: 100%;
  max-width: 100%;
  background: #000;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
@media (max-width: 768px) {
  input, textarea, select { font-size: 16px; }
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(227, 6, 19, 0.5);
  box-shadow: 0 0 0 1px rgba(227, 6, 19, 0.18);
}
textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 0.75rem; color: var(--muted); margin-top: -0.5rem; margin-bottom: 1rem; }

footer {
  padding: 3rem 0 max(4rem, calc(1.5rem + env(safe-area-inset-bottom)));
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
}
footer .footer-logo {
  margin-bottom: 1rem;
}
footer .footer-logo .site-logo { height: 2rem; }
footer .mono-hit {
  cursor: pointer;
  color: var(--muted);
  border-bottom: 1px dotted rgba(255,255,255,0.2);
}

body.glitch-mode .site-logo,
body.glitch-mode .hero__tagline,
body.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); }
}
.secret-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: #111;
  border: 1px solid rgba(227, 6, 19, 0.35);
  color: var(--text);
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  z-index: 10000;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}
.secret-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
@media (max-width: 480px) {
  .secret-toast {
    bottom: max(1rem, env(safe-area-inset-bottom));
    left: max(1rem, env(safe-area-inset-left));
    right: max(1rem, env(safe-area-inset-right));
    transform: translateY(120%);
    max-width: none;
    width: auto;
  }
  .secret-toast.show {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-cell img,
  .kompis-thumb img,
  .btn,
  .primary-nav,
  .nav-toggle span {
    transition: none !important;
  }
}

img {
  max-width: 100%;
  height: auto;
}
.gallery-cell img,
.kompis-hero-slot img,
.kompis-thumb img,
.hero__picture .hero__photo {
  height: 100%;
  max-width: none;
}

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

/* Kompis resident */
.kompis-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-top: 2rem;
}
.kompis-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 880px) {
  .kompis-layout { grid-template-columns: 1fr 1.05fr; }
}
.kompis-intro h3 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: 0.035em;
  margin: 0 0 0.5rem;
  line-height: 1;
  font-weight: 400;
}
.kompis-role {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--red);
  margin: 0 0 1.25rem;
}
.kompis-copy {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 1rem;
}
.kompis-copy strong { color: var(--text); }
.kompis-meta {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.kompis-meta li { margin-bottom: 0.45rem; }
.kompis-meta span {
  display: inline-block;
  min-width: 5.5rem;
  color: var(--text);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
@media (max-width: 480px) {
  .kompis-meta span {
    display: block;
    min-width: 0;
    margin-bottom: 0.15rem;
  }
}
.kompis-video-note {
  font-size: 0.75rem;
  color: var(--muted);
  border-left: 2px solid rgba(227, 6, 19, 0.45);
  padding-left: 0.85rem;
  margin: 1rem 0 0;
  max-width: 36rem;
}
.kompis-visual {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.kompis-hero-slot {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #080808;
  aspect-ratio: 4 / 5;
  max-height: min(70vh, 520px);
}
@media (max-width: 600px) {
  .kompis-hero-slot {
    max-height: min(58vh, 440px);
    aspect-ratio: 3 / 4;
  }
}
.kompis-hero-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kompis-thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}
.kompis-thumb-grid:empty { display: none; }
@media (max-width: 520px) {
  .kompis-thumb-grid { grid-template-columns: repeat(2, 1fr); }
}
.kompis-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 0.45rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a0a0a;
}
.kompis-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.kompis-thumb:hover img { transform: scale(1.05); }
@media (hover: none) {
  .kompis-thumb:hover img { transform: none; }
}

main.page-inner > section:first-of-type {
  padding-top: max(5.75rem, calc(env(safe-area-inset-top) + 4.5rem));
}

/* ============================================
   Agency split-screen landing
   ============================================ */
.agency-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
}

.agency-tile {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  border-right: 1px solid var(--border);
}
.agency-tile:last-child { border-right: none; }

.agency-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  max-width: none;
  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;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 1;
}
.agency-tile--right .agency-tile__content {
  align-items: flex-end;
  text-align: right;
}

.agency-tile__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  display: block;
}
.agency-tile__name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--text);
  display: block;
  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);
}
.agency-tile:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -3px;
}

@media (max-width: 600px) {
  .agency-stage {
    grid-template-columns: 1fr;
    height: auto;
  }
  .agency-tile {
    border-right: none;
    border-bottom: 1px solid var(--border);
    height: 65dvh;
  }
  .agency-tile:last-child { border-bottom: none; }
  .agency-tile--right .agency-tile__content {
    align-items: flex-start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agency-tile__img,
  .agency-tile__scrim,
  .agency-tile__name { transition: none !important; }
}

/* ============================================
   Profile pages (kompis.html / amnesi.html)
   ============================================ */
.profile-hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.profile-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  max-width: none;
}
.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(clamp(1rem, 4vw, 1.5rem), env(safe-area-inset-left));
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  text-decoration: none;
  z-index: 2;
  transition: color 0.2s, opacity 0.2s;
}
.profile-hero__back:hover { color: var(--red-hot); }

.profile-hero__inner {
  position: relative;
  z-index: 1;
  padding: 0 max(clamp(1rem, 4vw, 1.5rem), env(safe-area-inset-left)) clamp(2.5rem, 6vh, 4rem);
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}
.profile-hero__name {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 13vw, 10rem);
  letter-spacing: 0.03em;
  line-height: 1;
  margin: 0 0 0.3rem;
  font-weight: 400;
  color: var(--text);
  text-shadow: 0 4px 60px rgba(0,0,0,0.65);
}
.profile-hero__sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  margin: 0 0 1.75rem;
  display: block;
}
.profile-hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.28);
  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); }
}
@media (prefers-reduced-motion: reduce) {
  .profile-hero__scroll { animation: none; }
}

.profile-info {
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
}
@media (max-width: 600px) { .profile-info { padding: 0.5rem 0; } }

.profile-info__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem 4rem;
  align-items: start;
}
@media (max-width: 768px) {
  .profile-info__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.profile-bio { max-width: 42rem; }
.profile-bio__text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0.75rem 0 0;
}
.profile-bio__text strong { color: var(--text); }

.profile-sidebar .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.profile-socials {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.profile-socials a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.profile-socials a:last-child { border-bottom: none; }
.profile-socials a:hover { color: var(--text); }
.profile-socials a span { opacity: 0.4; font-size: 0.7em; }

.profile-photos {
  padding: 0 0 0.5rem;
}
@media (max-width: 600px) { .profile-photos { padding-bottom: 0.5rem; } }
.profile-photos-coming {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
}

.profile-video {
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
}
@media (max-width: 600px) {
  .profile-video { padding-top: 0.5rem; padding-bottom: 0.5rem; }
}
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.sc-embed {
  width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.sc-embed iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: none;
}
@media (max-width: 600px) {
  .sc-embed iframe { height: 300px; }
}

@media (min-width: 1100px) {
  .page-archive .gallery-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 0.45rem;
  }
}

/* ============================================
   PAGE BACKGROUND IMAGE
   ============================================ */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.page-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.12;
  filter: grayscale(100%);
}
.page-inner {
  position: relative;
  z-index: 1;
}

/* ============================================
   CONTACT LAYOUT
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-top: 0.25rem;
}

.contact-sidebar__block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.contact-sidebar__block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

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

.contact-sidebar__link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  display: block;
}
.contact-sidebar__link:hover { color: var(--text); }

.contact-sidebar__note {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

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

.contact-form__input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.8rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
}

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

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

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

.contact-form__actions {
  padding-top: 0;
}

.contact-form__submit {
  min-width: 160px;
}

.contact-form__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.contact-form__status--ok { color: #5cdb8f; }
.contact-form__status--err { color: var(--red-hot); }
