/* =====================
   REVEAL
   ===================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in { opacity: 1; transform: none; }
.off-d1 { transition-delay: 0.1s; }
.off-d2 { transition-delay: 0.2s; }
.off-d3 { transition-delay: 0.3s; }

/* =====================
   SHARED UTILITIES
   ===================== */
.off-h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 68px);
  text-transform: uppercase;
  color: #F4F4F4;
  line-height: 1;
  letter-spacing: -0.01em;
}
.off-h2 em { color: #00BDFF; font-style: normal; }

/* =====================
   HERO
   ===================== */
.off-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #161719;
}
.off-hero__photo {
  position: absolute;
  inset: 0;
  background: url('/assets/office_photos/reception.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.28;
  pointer-events: none;
  will-change: transform;
}
.off-hero__grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(22,23,25,0.92) 0%,
    rgba(22,23,25,0.3) 55%,
    rgba(22,23,25,0.15) 100%
  );
  pointer-events: none;
}
.off-hero__wrap {
  position: relative;
  z-index: 1;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 140px 48px 72px;
  width: 100%;
}
.off-hero__h1 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(72px, 10vw, 140px);
  line-height: 0.9;
  color: #F4F4F4;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  max-width: 760px;
  opacity: 0;
  animation: offFadeUp 0.9s ease 0.35s forwards;
}
.off-hero__sub {
  font-family: 'Libre Franklin', sans-serif;
  font-size: clamp(17.5px, 1.8vw, 20px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: #B0B2B5;
  max-width: 480px;
  opacity: 0;
  animation: offFadeUp 0.9s ease 0.5s forwards;
}
@keyframes offFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* =====================
   AMENITIES
   ===================== */
.off-amenities {
  background: #161719;
  padding: 120px 0 0;
}
.off-amenities__wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 48px 64px;
}
.off-amenities__header {
  margin-bottom: 56px;
}
.off-amenities__sub {
  font-family: 'Libre Franklin', sans-serif;
  line-height: 1.7;
  color: #B0B2B5;
  margin-top: 16px;
  max-width: 520px;
  font-style: italic;
}

/* Card grid */
.off-amenities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(0,189,255,0.07);
}

/* Every card cell */
.off-amenity {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-top: 2px solid transparent;
  transition: border-color 0.35s ease;
  cursor: default;
}
.off-amenity:hover {
  border-top-color: rgba(0,189,255,0.55);
}

/* Photo cards */
.off-amenity__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: opacity 0.45s ease, transform 0.65s ease;
  will-change: transform;
}
.off-amenity:hover .off-amenity__photo {
  opacity: 0.82;
  transform: scale(1.05);
}

/* Every amenity carries a real photograph now — the gradient-and-icon
   placeholder card that stood in for Ping Pong is retired. */

/* Gradient overlay on all cards */
.off-amenity__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,16,18,0.97) 0%,
    rgba(13,16,18,0.55) 38%,
    rgba(13,16,18,0.08) 62%
  );
  pointer-events: none;
}

/* Content pinned to bottom */
.off-amenity__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 26px 26px;
}
.off-amenity__title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 23px);
  text-transform: uppercase;
  color: #F4F4F4;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.off-amenity__body {
  font-family: 'Libre Franklin', sans-serif;
  line-height: 1.65;
  color: #B0B2B5;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.off-amenity:hover .off-amenity__body {
  opacity: 1;
  transform: none;
}

/* =====================
   DIRECTIONS
   ===================== */
.off-directions {
  padding: 120px 0;
  background: #0d1012;
}
.off-directions__wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 48px;
}
.off-directions__header {
  margin-bottom: 56px;
}

/* Video pair */
.off-video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.off-video-panel {
  display: flex;
  flex-direction: column;
}
.off-video-label {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #F4F4F4;
  padding: 0 0 20px 0;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}
.off-video-label::before {
  display: none;
}
.off-video-iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid rgba(0,189,255,0.08);
  display: block;
}

/* Map + dir.jpg row */
.off-map-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
}
.off-map-panel {
  display: flex;
  flex-direction: column;
}
.off-map-label {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #F4F4F4;
  padding: 0 0 20px 0;
  background: transparent;
  border: none;
  margin-bottom: 0;
}
.off-dir-img {
  width: 100%;
  display: block;
  border: 1px solid rgba(0,189,255,0.15);
  object-fit: cover;
}
.off-map-iframe {
  width: 100%;
  flex: 1;
  min-height: 280px;
  border: 1px solid rgba(0,189,255,0.15);
  display: block;
  filter: invert(0.92) hue-rotate(185deg) saturate(0.8) brightness(0.85);
}

/* Address strip */
.off-address-strip {
  margin-top: 32px;
  background: #161719;
  border: 1px solid rgba(0,189,255,0.15);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.off-address-strip__main {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 14px;
  color: #F4F4F4;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}
.off-address-strip__main strong {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 16px;
  text-transform: uppercase;
  color: #F4F4F4;
  letter-spacing: -0.01em;
  margin-right: 8px;
}
.off-address-strip__contacts {
  display: flex;
  gap: 32px;
  flex-shrink: 0;
}
.off-address-strip__contact {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.off-addr-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #F4F4F4;
  white-space: nowrap;
}
.off-addr-val {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 14px;
  color: rgba(0,189,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.off-addr-val:hover { color: #00BDFF; }

/* =====================
   VIRTUAL TOUR
   ===================== */
.off-tour {
  padding: 120px 0;
  background: #161719;
}
.off-tour__wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 48px;
}
.off-tour__header {
  margin-bottom: 48px;
}
.off-tour__sub {
  font-family: 'Libre Franklin', sans-serif;
  font-style: italic;
  color: #B0B2B5;
  margin-top: 14px;
  max-width: 480px;
  line-height: 1.7;
}
.off-tour__embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1400 / 750;
  border: 1px solid rgba(0,189,255,0.15);
  background: #0d1012;
  overflow: hidden;
}
.off-tour__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* =====================
   GALLERY
   ===================== */
.off-gallery {
  padding: 120px 0 0;
  background: #0d1012;
}
.off-gallery__wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 48px 64px;
}
.off-gallery__header {
  margin-bottom: 56px;
}
/* The grid itself is the shared collage from css/photos-box.css, built by
   js/photos.js — the same machinery /photos and /mugshots run on. Nothing
   to style here beyond the wrap above. */

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 960px) {
  .off-hero__wrap { padding: 120px 32px 56px; }

  .off-amenities { padding: 80px 0 0; }
  .off-amenities__wrap { padding: 0 32px 56px; }
  .off-amenities__grid { grid-template-columns: repeat(2, 1fr); }

  .off-directions { padding: 80px 0; }
  .off-directions__wrap { padding: 0 32px; }
  .off-video-grid { grid-template-columns: 1fr; }
  .off-map-row { grid-template-columns: 1fr; }
  .off-address-strip { flex-direction: column; gap: 16px; }
  .off-address-strip__contacts { gap: 20px; }

  .off-tour { padding: 80px 0; }
  .off-tour__wrap { padding: 0 32px; }

  .off-gallery { padding: 80px 0 0; }
  .off-gallery__wrap { padding: 0 32px 56px; }
}

@media (max-width: 600px) {
  .off-hero__wrap { padding: 100px 24px 48px; }

  .off-amenities__wrap { padding: 0 24px 48px; }
  .off-amenities__grid { grid-template-columns: 1fr; }
  .off-amenity { aspect-ratio: 3/2; }
  .off-amenity__body { opacity: 1; transform: none; }

  .off-directions__wrap { padding: 0 24px; }
  .off-address-strip { padding: 20px 24px; }
  .off-address-strip__contacts { flex-direction: column; gap: 12px; }

  .off-tour__wrap { padding: 0 24px; }

  .off-gallery__wrap { padding: 0 24px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .off-amenity__photo { transition: none; }
  .off-amenity__body { transition: none; opacity: 1; transform: none; }
}
