/* Dotlancing Interior: layers on top of airports.css (shared header, cards, lightbox) */

/* home page: the hero sits directly under the fixed header */
.in-main { padding-top: 0; }
.in-main-pad { padding-top: 6.5rem; }

/* ---------- hero ---------- */
.in-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(92vh, 780px);
  min-height: min(92svh, 780px);
  overflow: hidden;
  background: #17111f;
  color: #fff;
}
.in-hero.is-empty {
  background:
    radial-gradient(900px 420px at 15% 10%, rgba(236, 72, 153, 0.35), transparent 60%),
    radial-gradient(800px 420px at 90% 90%, rgba(251, 146, 60, 0.3), transparent 60%),
    #17111f;
}
.in-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.in-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 8, 14, 0.88) 0%, rgba(10, 8, 14, 0.35) 52%, rgba(10, 8, 14, 0.5) 100%);
}
.in-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 9rem 4.5rem;
  /* line the copy up with the logo in the header: wrap padding + the header pill's own padding */
  padding-inline: 2.25rem;
  text-align: left;
}
@media (min-width: 768px) {
  .in-hero-inner { padding-inline: 3.75rem; }
}
.in-hero .eyebrow {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
}
.in-hero-title {
  /* no font-size was set before, so the h1 fell back to the browser default (~32px) */
  font-size: clamp(2.4rem, 5.6vw, 4.75rem);
  max-width: 13em;
  margin: 0;
  color: #fff;
  text-wrap: balance;
}
.in-hero-sub {
  max-width: 52ch;
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
}
.in-hero .ap-actions { margin-top: 2.25rem; }
.in-btn-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}
.in-btn-dark:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- header (same as Airports) ----------
   The Interior header uses the Airports header markup and styles: logo left, links right,
   transparent at the top, glass pill once the page scrolls. On the HOME page it sits on the
   always-dark hero image, where the Airports colours (dark text in light mode) disappear.
   So until the pill appears the text is white; after scrolling the pill gets the readable
   --nav-* background. Inner pages (no hero image) keep the plain Airports look. */
.in-page[data-page="home"] .in-header:not(.is-scrolled) :is(.brand-name, .nav-links a, .icon-btn) {
  color: #fff;
}
.in-page[data-page="home"] .in-header:not(.is-scrolled) .ap-brand-sub { color: rgba(255, 255, 255, 0.72); }
.in-page[data-page="home"] .in-header:not(.is-scrolled) .nav-links a:hover { color: rgba(255, 255, 255, 0.72); }
.in-page[data-page="home"] .in-header:not(.is-scrolled) .icon-btn {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
}
.in-page[data-page="home"] .in-header:not(.is-scrolled) .icon-btn:hover { background: rgba(255, 255, 255, 0.26); }
.in-page[data-page="home"] .in-header:not(.is-scrolled) .brand-mark img {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}
.in-page[data-page="home"] .in-header.is-scrolled .nav-bar {
  background: var(--nav-bg);
  border-color: var(--nav-border);
  box-shadow: var(--nav-shadow);
}
/* the logo has white parts: give it a soft dark edge on the light pill so it does not wash out */
.light .in-page[data-page="home"] .in-header.is-scrolled .brand-mark img {
  filter: drop-shadow(0 0 1.5px rgba(20, 10, 30, 0.7)) drop-shadow(0 1px 2px rgba(20, 10, 30, 0.35));
}
/* mobile menu opens over the hero: solid panel so the links are always readable */
.in-page[data-page="home"] .in-header .mobile-menu {
  background: var(--nav-bg-solid);
  border-color: var(--nav-border);
  box-shadow: var(--nav-shadow);
}
.in-page[data-page="home"] .in-header .mobile-menu nav a { color: var(--nav-link); }
.in-page[data-page="home"] .in-header .mobile-menu nav a:hover,
.in-page[data-page="home"] .in-header .mobile-menu nav a[aria-current="page"] { color: var(--primary); }

/* ---------- intro (heading + sub heading) ---------- */
.in-intro { text-align: center; }
.in-intro-title {
  max-width: 24ch;
  margin-inline: auto;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
}
.in-intro-sub {
  max-width: 62ch;
  margin: 1.25rem auto 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

/* ---------- portfolio masonry ---------- */
.in-masonry {
  columns: 1;
  column-gap: 1rem;
}
@media (min-width: 560px) { .in-masonry { columns: 2; } }
@media (min-width: 960px) { .in-masonry { columns: 3; } }
.in-tile {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  overflow: hidden;
  cursor: zoom-in;
  break-inside: avoid;
  background: var(--surface-2);
}
.in-tile img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 9rem;
  transition: transform 0.6s ease;
}
.in-tile:hover img { transform: scale(1.04); }
.in-tile-cap {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 2.2rem 1rem 0.9rem;
  text-align: left;
  color: #fff;
  background: linear-gradient(to top, rgba(10, 8, 14, 0.78), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.in-tile:hover .in-tile-cap,
.in-tile:focus-visible .in-tile-cap { opacity: 1; }
@media (hover: none) { .in-tile-cap { opacity: 1; } }
.in-tile-cap strong { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: -0.01em; }
.in-tile-cap small { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.in-tile.is-hidden { display: none; }

/* ---------- portfolio tabs: vertical sidebar on desktop, scrolling pills on phones ---------- */
.in-gallery { display: block; margin-top: 0.5rem; }
.in-tabs-label {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.in-tabs { display: flex; gap: 0.5rem; }
.in-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--card);
  color: var(--muted-foreground);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.in-tab:hover { color: var(--foreground); border-color: var(--primary); }
.in-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.in-tab-count {
  min-width: 1.6rem;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  background: var(--surface-2);
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
.in-tab.is-active {
  color: #fff;
  border-color: transparent;
  background-image: var(--gradient-brand);
  box-shadow: 0 8px 22px -10px rgba(236, 72, 153, 0.7);
}
.in-tab.is-active .in-tab-count { background: rgba(255, 255, 255, 0.24); color: #fff; }

/* phones + tablets: one swipeable row above the images */
@media (max-width: 899px) {
  .in-tabs-wrap { margin-bottom: 1.25rem; }
  .in-tabs {
    overflow-x: auto;
    padding: 0.2rem 0.1rem 0.5rem;
    margin-inline: -1rem;
    padding-inline: 1rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .in-tabs::-webkit-scrollbar { display: none; }
  .in-tab { flex: 0 0 auto; scroll-snap-align: start; }
}

/* desktop: sticky vertical menu on the left */
@media (min-width: 900px) {
  .in-gallery.has-tabs {
    display: grid;
    grid-template-columns: 15.5rem minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }
  .in-tabs-wrap {
    position: sticky;
    top: 6.5rem;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: var(--card);
    scrollbar-width: thin;
  }
  .in-tabs { flex-direction: column; gap: 0.25rem; }
  .in-tab {
    width: 100%;
    padding: 0.7rem 0.85rem 0.7rem 1rem;
    border-color: transparent;
    border-radius: 0.8rem;
    background: transparent;
    text-align: left;
    white-space: normal;
  }
  .in-tab::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22%;
    bottom: 22%;
    width: 3px;
    border-radius: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.25s;
  }
  .in-tab:hover { background: var(--surface-2); border-color: transparent; transform: translateX(2px); }
  .in-tab:hover::before { transform: scaleY(1); opacity: 0.45; }
  .in-tab.is-active { transform: none; }
  .in-tab.is-active::before { display: none; }
}
@media (min-width: 900px) and (max-width: 1099px) { .in-gallery.has-tabs { grid-template-columns: 13.5rem minmax(0, 1fr); gap: 1.75rem; } }

/* masonry inside the tabbed layout: fewer columns because the sidebar takes room */
.in-gallery.has-tabs .in-masonry { columns: 1; }
@media (min-width: 520px) { .in-gallery.has-tabs .in-masonry { columns: 2; } }
@media (min-width: 900px) { .in-gallery.has-tabs .in-masonry { columns: 2; } }
@media (min-width: 1240px) { .in-gallery.has-tabs .in-masonry { columns: 3; } }
.in-tile { animation: in-fade 0.35s ease both; }
@keyframes in-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .in-tile { animation: none; } .in-tab, .in-tab::before { transition: none; } }

/* lightbox caption */
.ap-lightbox-bar .in-lb-title { flex: 1; text-align: left; color: var(--foreground); font-weight: 600; }
