/*
 Theme Name:   DannyDorko Child
 Theme URI:    https://dannydorko.com
 Description:  Child theme for GeneratePress – Polaroid table homepage
 Author:       Danny Dorko
 Template:     generatepress
 Version:      1.0.8
*/

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

/* ── Variables ── */
:root {
  --nav-width: 220px;
  --polaroid-white: #f0ece4;
  --nav-bg: #1c1a18;
  --nav-border: rgba(180, 100, 30, 0.2);
  --nav-text: #d4cfc8;
  --accent: #f0c000;
  --rust: #b85c1a;
  --charcoal: #252220;
  --steel: #3a3530;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─────────────────────────────────────────
   GLOBAL
───────────────────────────────────────── */

body.home,
body.dorko-interior {
  font-family: 'DM Mono', monospace;
  background: var(--nav-bg);
}

body.home { overflow: hidden; }
body.dorko-interior { overflow: auto; }

/* ── Hide mobile elements on desktop ── */
.mobile-topbar  { display: none; }
.mobile-drawer  { display: none; }
.drawer-overlay { display: none; }
.mobile-stack   { display: none; }
.mobile-grid    { display: none; }
.interior-footer { display: none; }

/* ─────────────────────────────────────────
   LAYOUT SHELL
───────────────────────────────────────── */

.dorko-shell {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

body.dorko-interior .dorko-shell {
  height: auto;
  min-height: 100vh;
  align-items: flex-start;
  overflow: visible;
}

/* ─────────────────────────────────────────
   LEFT NAV (Desktop)
───────────────────────────────────────── */

.dorko-nav {
  width: var(--nav-width);
  min-width: var(--nav-width);
  height: 100vh;
  background: var(--nav-bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 28px;
  position: relative;
  z-index: 100;
  border-right: 1px solid var(--nav-border);
}

/* Vertical yellow accent line */
.dorko-nav::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 30%;
  width: 2px;
  background: var(--accent);
  opacity: 0.7;
}

/* ── Logo ── */
.dorko-nav .site-logo {
  margin-bottom: 40px;
  width: 100%;
  text-align: left;
}

.dorko-nav .site-logo a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  gap: 10px;
}

.nav-logo-img {
  display: block;
  width: 150px;
  height: auto;
}

.nav-site-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  color: var(--nav-text);
  text-align: left;
  line-height: 1.4;
}

.nav-site-name span {
  display: block;
  color: var(--accent);
}

/* ── Nav Links ── */
.dorko-nav nav ul {
  list-style: none;
  width: 100%;
}

.dorko-nav nav ul li {
  margin-bottom: 4px;
}

.dorko-nav nav ul li a {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(212, 207, 200, 0.5);
  text-decoration: none;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  padding: 9px 0 9px 12px;
  border-left: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.dorko-nav nav ul li a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}

.dorko-nav nav ul li.current-menu-item a {
  color: var(--accent);
  border-left-color: var(--rust);
}

/* ── Nav Footer ── */
.dorko-nav .nav-footer {
  margin-top: auto;
  font-size: 0.58rem;
  color: rgba(212, 207, 200, 0.18);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-footer-link {
  display: block;
  margin-top: 6px;
  color: rgba(240, 192, 0, 0.3);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-footer-link:hover {
  color: var(--accent);
}

/* Interior nav is sticky */
body.dorko-interior .dorko-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* ─────────────────────────────────────────
   TABLE SURFACE (Homepage)
───────────────────────────────────────── */

.dorko-table {
  flex: 1;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: #111010;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 30% 40%, rgba(90, 45, 10, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(60, 30, 5, 0.12) 0%, transparent 50%);
}

/* Scratched metal lines */
.dorko-table::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      92deg,
      transparent,
      transparent 3px,
      rgba(255,255,255,0.012) 3px,
      rgba(255,255,255,0.012) 4px
    );
  pointer-events: none;
  z-index: 1;
}

/* Edge vignette */
.dorko-table::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow:
    inset 0 0 120px rgba(0, 0, 0, 0.7),
    inset 0 0 40px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 2;
}

/* ── Table Watermark ── */
.table-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.06;
}

.table-watermark img {
  width: 480px;
  height: auto;
  filter: grayscale(1);
}

/* ── Table Hint ── */
.table-hint {
  position: absolute;
  bottom: 24px;
  right: 28px;
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  font-weight: 300;
  color: rgba(240, 192, 0, 0.25);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 5;
}

/* ─────────────────────────────────────────
   POLAROIDS (Desktop)
───────────────────────────────────────── */

.polaroid {
  position: absolute;
  background: var(--polaroid-white);
  padding: 10px 10px 34px 10px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.5),
    0 8px 24px rgba(0,0,0,0.4),
    0 20px 60px rgba(0,0,0,0.3);
  cursor: grab;
  user-select: none;
  z-index: 10;
  transition: box-shadow 0.2s ease;
  will-change: transform;
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,0.6);
}

.polaroid:hover {
  box-shadow:
    0 4px 8px rgba(0,0,0,0.6),
    0 16px 40px rgba(0,0,0,0.5),
    0 32px 80px rgba(0,0,0,0.3),
    0 0 0 1px rgba(240, 192, 0, 0.15);
  z-index: 50;
}

.polaroid.is-dragging {
  cursor: grabbing;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.7),
    0 48px 100px rgba(0,0,0,0.4),
    0 0 0 1px rgba(240, 192, 0, 0.3);
  z-index: 200;
  transition: none;
}

.polaroid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: contrast(1.05) saturate(0.9);
}

/* ── Polaroid Captions ── */
.polaroid-caption {
  display: block;
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  font-weight: 400;
  color: #3a3530;
  text-align: center;
  padding-top: 6px;
  line-height: 1.2;
  pointer-events: none;
}

/* ─────────────────────────────────────────
   POLAROID MODAL
───────────────────────────────────────── */

#polaroid-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#polaroid-modal.active {
  display: flex;
}

#polaroid-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, 0.88);
  backdrop-filter: blur(4px);
  cursor: pointer;
  animation: modalFadeIn 0.25s ease;
}

#polaroid-frame {
  position: relative;
  z-index: 2;
  background: var(--polaroid-white);
  padding: 16px 16px 64px 16px;
  max-width: min(560px, 85vw);
  width: 100%;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.8),
    0 0 0 1px rgba(240,192,0,0.15);
  animation: polaroidDrop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

#polaroid-modal-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  filter: contrast(1.05) saturate(0.9);
}

#polaroid-modal-caption {
  display: block;
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  font-weight: 400;
  color: #3a3530;
  text-align: center;
  padding-top: 8px;
  min-height: 1.4em;
}

#polaroid-modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--charcoal);
  border: 1px solid rgba(240,192,0,0.3);
  color: var(--accent);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  z-index: 3;
}

#polaroid-modal-close:hover {
  background: var(--rust);
  border-color: var(--rust);
  color: #fff;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes polaroidDrop {
  from {
    opacity: 0;
    transform: rotate(var(--tilt, -2deg)) scale(0.85) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: rotate(var(--tilt, -2deg)) scale(1) translateY(0);
  }
}

/* ─────────────────────────────────────────
   INTERIOR PAGES (About, Contact)
───────────────────────────────────────── */

.dorko-interior-content {
  flex: 1;
  min-height: 100vh;
  padding: 60px 64px;
  background: var(--charcoal);
  overflow-y: auto;
}

.interior-inner {
  max-width: 760px;
}

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.interior-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--nav-text);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 32px;
}

/* ── About ── */
.bio-text {
  font-family: 'DM Mono', monospace;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(212, 207, 200, 0.75);
  max-width: 620px;
}

.bio-text p {
  margin-bottom: 1.4em;
}

.about-testimonials {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--nav-border);
}

.testimonials-wrap {
  margin-top: 24px;
  color: var(--nav-text);
}

/* ── Testimonials Grid ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
  align-items: start;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--nav-border);
  border-top: 2px solid var(--rust);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-top-color: var(--accent);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
}

.star        { font-size: 0.9rem; }
.star.filled { color: var(--accent); }
.star.empty  { color: rgba(212, 207, 200, 0.15); }

.testimonial-highlight {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  line-height: 1.1;
}
.testimonial-quote {
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(212, 207, 200, 0.8);
  font-style: italic;
  flex: 1;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 12px;
  border-top: 1px solid rgba(180, 100, 30, 0.15);
}

.testimonial-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--nav-text);
}

.testimonial-role {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
}

/* ── Contact ── */
.contact-intro {
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(212, 207, 200, 0.55);
  letter-spacing: 0.08em;
  margin-bottom: 40px;
}

.contact-form-wrap {
  max-width: 560px;
}

.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap textarea,
.contact-form-wrap select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(180, 100, 30, 0.3);
  border-radius: 0;
  color: var(--nav-text);
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  padding: 12px 14px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s ease;
}

.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
  border-color: var(--accent);
}

.contact-form-wrap textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form-wrap input[type="submit"],
.contact-form-wrap button[type="submit"] {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 32px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.contact-form-wrap input[type="submit"]:hover,
.contact-form-wrap button[type="submit"]:hover {
  background: var(--accent);
  color: var(--charcoal);
}

/* ─────────────────────────────────────────
   MOBILE — Homepage Stack (max 767px)
───────────────────────────────────────── */

@media (max-width: 767px) {

  body.home { overflow: hidden; }

  .dorko-shell {
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
  }

  /* Show mobile, hide desktop */
  .dorko-nav     { display: none; }
  .dorko-table   { display: none !important; }
  .table-hint    { display: none; }
  .mobile-topbar { display: flex; }
  .mobile-stack  { display: block; }

  /* ── Mobile Topbar ── */
  .mobile-topbar {
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    width: 100%;
    flex-shrink: 0;
  }

  .mobile-topbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }

  .mobile-topbar-logo-img {
    width: 56px;
    height: auto;
  }

  .nav-site-name {
    font-size: 0.78rem;
    text-align: left;
  }

  /* ── Hamburger ── */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 201;
  }

  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--nav-text);
    transition: all 0.3s ease;
    transform-origin: center;
  }

  .hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ── Drawer Overlay ── */
  .drawer-overlay.is-open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    z-index: 299;
  }

  /* ── Drawer ── */
  .mobile-drawer {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--nav-bg);
    border-left: 1px solid var(--nav-border);
    z-index: 300;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-direction: column;
  }

  .mobile-drawer.is-open {
    right: 0;
  }

  .drawer-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 40px 32px;
  }

  .drawer-logo {
    margin-bottom: 48px;
  }

  .drawer-logo-img {
    width: 80px;
    height: auto;
  }

  .drawer-nav ul { list-style: none; }
  .drawer-nav ul li { margin-bottom: 4px; }

  .drawer-nav ul li a {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.08em;
    color: rgba(212, 207, 200, 0.5);
    text-decoration: none;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
  }

  .drawer-nav ul li a:hover {
    color: var(--accent);
    border-bottom-color: rgba(240,192,0,0.2);
  }

  .drawer-socials {
    margin-top: auto;
    padding-top: 40px;
    border-top: 1px solid var(--nav-border);
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .drawer-social-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: rgba(212, 207, 200, 0.45);
    transition: color 0.2s ease;
  }

  .drawer-social-link:hover { color: var(--accent); }

  .drawer-social-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .drawer-social-link span {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .drawer-footer {
    margin-top: 28px;
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    color: rgba(212, 207, 200, 0.15);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .drawer-footer a {
    color: rgba(240, 192, 0, 0.25);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .drawer-footer a:hover { color: var(--accent); }

  /* ── Stack container ── */
  .mobile-stack {
    flex: 1;
    position: fixed;
    top: 69px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    background-color: #111010;
    background-image:
      radial-gradient(ellipse at 30% 40%, rgba(90,45,10,0.18) 0%, transparent 60%),
      radial-gradient(ellipse at 80% 70%, rgba(60,30,5,0.12) 0%, transparent 50%);
    cursor: grab;
  }

  .mobile-stack:active { cursor: grabbing; }

  /* Grain */
  .mobile-stack::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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)' opacity='0.06'/%3E%3C/svg%3E");
  }

  /* Vignette */
  .mobile-stack::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 80px rgba(0,0,0,0.65);
    pointer-events: none;
    z-index: 2;
  }

  /* ── Stack cards ── */
  .stack-card {
    position: absolute;
    left: 50%;
    top: 42%;
    width: 300px;
    background: var(--polaroid-white);
    padding: 10px 10px 48px 10px;
    border-top: 1px solid rgba(255,255,255,0.7);
    user-select: none;
    -webkit-user-select: none;
    will-change: transform;
    opacity: 0;
  }

  .stack-card img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
    filter: contrast(1.05) saturate(0.88);
    pointer-events: none;
  }

  /* ── Hint ── */
  #stack-hint {
    position: absolute;
    bottom: 56px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    pointer-events: none;
    transition: opacity 0.8s ease;
    text-align: center;
    white-space: nowrap;
  }

  .hint-text {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    color: rgba(240,192,0,0.35);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    animation: hintPulse 2s ease infinite;
  }

  @keyframes hintPulse {
    0%,100% { opacity: 0.35; }
    50%     { opacity: 0.8; }
  }

  /* ── Counter ── */
  #stack-bottom {
    position: absolute;
    bottom: 42px;
    left: 0; right: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }

  #stack-counter {
    font-family: 'DM Mono', monospace;
    font-size: 0.5rem;
    color: rgba(240,192,0,0.3);
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }

  /* ── Mobile Footer ── */
  .mobile-footer {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(17,16,16,0.95);
    border-top: 1px solid var(--nav-border);
  }

  .mobile-footer-copy {
    font-family: 'DM Mono', monospace;
    font-size: 0.52rem;
    color: rgba(212, 207, 200, 0.2);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .mobile-footer-link {
    font-family: 'DM Mono', monospace;
    font-size: 0.52rem;
    color: rgba(240, 192, 0, 0.3);
    text-decoration: none;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s ease;
  }

  .mobile-footer-link:hover { color: var(--accent); }
}

/* ─────────────────────────────────────────
   MOBILE — Interior Pages (max 768px)
───────────────────────────────────────── */

@media (max-width: 768px) {

  body.dorko-interior {
    overflow-x: hidden;
    width: 100%;
  }

  body.dorko-interior .dorko-shell {
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
  }

  body.dorko-interior .dorko-nav { display: none; }

  body.dorko-interior .mobile-topbar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    width: 100%;
  }

  .dorko-interior-content {
    padding: 100px 20px 60px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .interior-inner {
    max-width: 100%;
    width: 100%;
    overflow: hidden;
  }

  .interior-title { font-size: clamp(2rem, 10vw, 3rem); }

  .bio-text {
    font-size: 0.82rem;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .bio-text p { margin-bottom: 1.2em; }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .testimonial-card  { padding: 20px 16px; }
  .testimonial-quote { font-size: 0.78rem; }

  .contact-intro { font-size: 0.78rem; }

  .contact-form-wrap { max-width: 100%; }

  .contact-form-wrap input[type="text"],
  .contact-form-wrap input[type="email"],
  .contact-form-wrap input[type="tel"],
  .contact-form-wrap textarea,
  .contact-form-wrap select {
    font-size: 0.78rem;
    padding: 10px 12px;
  }

  .contact-form-wrap input[type="submit"],
  .contact-form-wrap button[type="submit"] {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }

  /* Interior mobile footer */
  .interior-footer {
    display: block;
    padding: 24px 20px;
    text-align: center;
    border-top: 1px solid var(--nav-border);
    background: var(--charcoal);
  }

  .interior-footer-copy {
    font-family: 'DM Mono', monospace;
    font-size: 0.52rem;
    color: rgba(212, 207, 200, 0.2);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
  }

  .interior-footer-link {
    font-family: 'DM Mono', monospace;
    font-size: 0.52rem;
    color: rgba(240, 192, 0, 0.3);
    text-decoration: none;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s ease;
  }

  .interior-footer-link:hover { color: var(--accent); }
}

/* ─────────────────────────────────────────
   SMALL PHONES (max 480px)
───────────────────────────────────────── */

@media (max-width: 480px) {
  .stack-card        { width: 275px; top: 42%; }
  .stack-card img    { height: 305px; }
  .nav-logo-img      { width: 44px; }
  .nav-site-name     { font-size: 0.68rem; }
  .testimonial-quote { font-size: 0.75rem; }
}

/* ─────────────────────────────────────────
   LANDSCAPE ORIENTATION INTERRUPT
───────────────────────────────────────── */

#landscape-interrupt {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--nav-bg);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.landscape-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px;
  text-align: center;
}

.landscape-logo {
  width: 80px;
  height: auto;
  opacity: 0.9;
}

.landscape-icon svg {
  width: 52px;
  height: 52px;
  color: var(--accent);
  animation: rotateHint 2.5s ease-in-out infinite;
}

@keyframes rotateHint {
  0%   { transform: rotate(0deg); opacity: 0.4; }
  40%  { transform: rotate(-90deg); opacity: 1; }
  60%  { transform: rotate(-90deg); opacity: 1; }
  100% { transform: rotate(-90deg); opacity: 0.4; }
}

.landscape-message {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--nav-text);
  line-height: 1.2;
}

.landscape-sub {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240, 192, 0, 0.4);
}

@media (max-width: 767px) and (orientation: landscape) {
  #landscape-interrupt {
    display: flex;
  }
}