/* =========================================================
   CUBESOB TEMPLATES — Design System
   ========================================================= */

:root {
  /* Palette */
  --ink: #08080a;
  --surface-1: #0f0f12;
  --surface-2: #16161b;
  --surface-3: #1d1d24;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f2ee;
  --text-dim: #a5a3a0;
  --muted: #6b6b71;
  --ember: #ff5722;
  --ember-warm: #ff7a45;
  --ember-soft: rgba(255, 87, 34, 0.1);

  /* Type */
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-italic: "Instrument Serif", Georgia, serif;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.7, 0, 0.3, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max: 1400px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 12vw, 160px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}

::selection {
  background: var(--ember);
  color: #fff;
}

/* Grain overlay (subtle film noise) */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* =========================================================
   Typography
   ========================================================= */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text);
}

.display-xl {
  font-size: clamp(3.5rem, 11vw, 11rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.92;
}
.display-l {
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.96;
}
.display-m {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  display: inline-block;
}

.serif {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
}

/* =========================================================
   Container & Section
   ========================================================= */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

section {
  position: relative;
}

.section {
  padding-block: var(--section-y);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  --bg: var(--ember);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    transform 0.4s var(--ease-out),
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(255, 87, 34, 0.5);
}
.btn--ghost {
  --bg: transparent;
  --fg: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: var(--text);
  color: var(--ink);
  box-shadow: none;
}
.btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Underline link */
.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  padding-bottom: 4px;
}
.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 0.6s var(--ease-out);
}
.link:hover::after {
  transform-origin: left;
  transform: scaleX(0.4);
}

/* =========================================================
   Reveal Animation Base
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(56px);
  transition:
    opacity 1.6s var(--ease-out),
    transform 1.6s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Stronger variant for hero CTAs / important moments */
.reveal-strong {
  opacity: 0;
  transform: translateY(90px);
  transition:
    opacity 1.9s var(--ease-out),
    transform 1.9s var(--ease-out);
  will-change: opacity, transform;
}
.reveal-strong.in {
  opacity: 1;
  transform: translateY(0);
}

/* Image mask reveal (clip-path slide) */
.reveal-mask {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.6s var(--ease-out);
}
.reveal-mask.in {
  clip-path: inset(0 0 0 0);
}

.split-line {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: inherit;
}
.split-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.5s var(--ease-out);
}
.in .split-line > span,
.split-line.in > span {
  transform: translateY(0);
}

/* =========================================================
   Top Bar (homepage)
   ========================================================= */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 10, 0.85),
    rgba(8, 8, 10, 0)
  );
  backdrop-filter: blur(6px);
}
.topbar .wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.topbar .brand-logo img {
  height: 42px;
  width: auto;
  display: block;
}
.brand-logo svg {
  display: block;
  width: 26px;
  height: 26px;
}
.topbar nav {
  display: flex;
  gap: 28px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.topbar nav a {
  position: relative;
  transition: color 0.3s ease;
}
.topbar nav a:hover {
  color: var(--text);
}
.topbar .loc {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
@media (max-width: 880px) {
  .topbar .brand-logo img {
    height: 38px;
  }
}
@media (max-width: 768px) {
  .topbar nav {
    display: none;
  }
}
/* Mobile: compact, balanced homepage header */
@media (max-width: 600px) {
  .topbar {
    padding: 14px 18px;
  }
  .topbar .wordmark {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    gap: 10px;
  }
  .topbar .brand-logo img {
    height: 32px;
  }
  .topbar .loc {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }
}
@media (max-width: 380px) {
  .topbar .loc {
    display: none;
  }
}

/* =========================================================
   Landing — Hero & Branches Grid
   ========================================================= */
.landing-hero {
  position: relative;
  padding-top: 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-intro {
  padding: clamp(40px, 8vw, 90px) var(--gutter) clamp(30px, 5vw, 50px);
  max-width: 1100px;
}
.landing-intro .eyebrow {
  margin-bottom: 18px;
}
.landing-intro h1 {
  font-size: clamp(2.6rem, 7.5vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin-bottom: 28px;
}
.landing-intro h1 em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--ember-warm);
}
.landing-intro p {
  max-width: 560px;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
}

.branches-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(48vh, 1fr);
  gap: 0;
  width: 100%;
  border-top: 1px solid var(--line);
}
.branches-grid > .branch-tile {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.branches-grid > .branch-tile:nth-child(2n) {
  border-right: none;
}
.branches-grid > .branch-tile:nth-last-child(-n + 2) {
  border-bottom: none;
}

.branch-tile {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background: var(--surface-1);
  min-height: 56vh;
  color: var(--text);
  transition: background 0.5s ease;
  animation: tile-in 1.5s var(--ease-out) both;
}
.branches-grid .branch-tile:nth-child(1) {
  animation-delay: 0.55s;
}
.branches-grid .branch-tile:nth-child(2) {
  animation-delay: 0.7s;
}
.branches-grid .branch-tile:nth-child(3) {
  animation-delay: 0.85s;
}
.branches-grid .branch-tile:nth-child(4) {
  animation-delay: 1s;
}
@keyframes tile-in {
  from {
    opacity: 0;
    transform: translateY(48px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Branch tile inner content cascades after the tile arrives */
.branch-tile__inner > * {
  opacity: 0;
  transform: translateY(20px);
  animation: tile-content-in 1.2s var(--ease-out) both;
}
.branch-tile__inner > *:nth-child(1) {
  animation-delay: 1.1s;
}
.branch-tile__inner > *:nth-child(2) {
  animation-delay: 1.25s;
}
.branches-grid .branch-tile:nth-child(2) .branch-tile__inner > *:nth-child(1) {
  animation-delay: 1.25s;
}
.branches-grid .branch-tile:nth-child(2) .branch-tile__inner > *:nth-child(2) {
  animation-delay: 1.4s;
}
.branches-grid .branch-tile:nth-child(3) .branch-tile__inner > *:nth-child(1) {
  animation-delay: 1.4s;
}
.branches-grid .branch-tile:nth-child(3) .branch-tile__inner > *:nth-child(2) {
  animation-delay: 1.55s;
}
.branches-grid .branch-tile:nth-child(4) .branch-tile__inner > *:nth-child(1) {
  animation-delay: 1.55s;
}
.branches-grid .branch-tile:nth-child(4) .branch-tile__inner > *:nth-child(2) {
  animation-delay: 1.7s;
}
@keyframes tile-content-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.branch-tile__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.branch-tile__media img,
.branch-tile__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) brightness(0.7);
  transform: scale(1.04);
  transition:
    transform 2s var(--ease-out),
    filter 1.2s ease;
}
.branch-tile__media video {
  opacity: 0;
  z-index: 1;
  transition:
    opacity 1.2s var(--ease-out),
    transform 2s var(--ease-out),
    filter 1.2s ease;
}
.branch-tile__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(8, 8, 10, 0.85) 0%,
    rgba(8, 8, 10, 0.2) 50%,
    rgba(8, 8, 10, 0.55) 100%
  );
  transition: background 0.6s ease;
}
.branch-tile__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 48px);
  min-height: 56vh;
}
.branch-tile__top {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}
.branch-tile__loc {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
}
.branch-tile__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.branch-tile__name {
  font-size: clamp(2rem, 4.6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin-bottom: 6px;
}
.branch-tile__sub {
  font-size: 0.95rem;
  color: var(--text-dim);
}
.branch-tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text);
  position: relative;
}
.branch-tile__cta .arrow {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--text);
  color: var(--ink);
  transition:
    transform 0.5s var(--ease-out),
    background 0.3s ease;
}
.branch-tile__cta .arrow svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Hover state */
.branch-tile:hover .branch-tile__media img,
.branch-tile:hover .branch-tile__media video {
  transform: scale(1.08);
  filter: grayscale(0) brightness(0.65);
}
.branch-tile:hover .branch-tile__media video {
  opacity: 1;
}
.branch-tile:hover .branch-tile__overlay {
  background: linear-gradient(
    to top,
    rgba(8, 8, 10, 0.92) 0%,
    rgba(8, 8, 10, 0.35) 60%,
    rgba(8, 8, 10, 0.7) 100%
  );
}
.branch-tile:hover .branch-tile__cta .arrow {
  transform: translateX(6px) rotate(-45deg);
  background: var(--ember);
  color: #fff;
}

@media (max-width: 880px) {
  .branches-grid {
    grid-template-columns: 1fr;
  }
  .branches-grid > .branch-tile {
    border-right: none;
  }
  .branches-grid > .branch-tile:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .branch-tile {
    min-height: 60vh;
  }
  .branch-tile__inner {
    min-height: 60vh;
  }
}

/* Fluid layout guardrails for phones, tablets, and wide screens. */
html,
body {
  width: 100%;
  min-width: 0;
}
main,
section,
header,
footer {
  max-width: 100%;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 600px) {
  .landing-hero {
    padding-top: 64px;
  }
  .landing-intro {
    padding-inline: 18px;
  }
  .branch-tile,
  .branch-tile__inner {
    min-height: min(72vh, 620px);
  }
  .stats-row {
    padding-inline: 18px;
  }
  .statement,
  .things-section,
  .faq-section,
  .services-section {
    padding-inline: 18px;
  }
  .btn {
    max-width: 100%;
  }
}

/* =========================================================
   Brand statement / about strip (homepage)
   ========================================================= */
.statement {
  padding: var(--section-y) var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--surface-1);
}
.statement-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.statement .eyebrow {
  margin-bottom: 24px;
}
.statement h2 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.statement h2 em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--ember-warm);
}
.statement-body {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
}
.statement-body p + p {
  margin-top: 1.2em;
}
@media (max-width: 880px) {
  .statement-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 60px var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--ink);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.stat__num .unit {
  color: var(--ember);
  margin-left: 4px;
  font-size: 0.55em;
  vertical-align: super;
}
.stat__label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--text-dim);
}
@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Marquee — static by default, slow drift on hover */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  overflow: hidden;
  padding: 28px 0;
}
.marquee__track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 180s linear infinite;
  animation-play-state: paused;
}
.marquee:hover .marquee__track {
  animation-play-state: running;
}
.marquee span {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 48px;
  transition: color 0.5s ease;
}
.marquee:hover span {
  color: var(--text);
}
.marquee span::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--ember);
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Editorial list block */
.things-section {
  border-top: 1px solid var(--line);
  background: var(--ink);
  padding: clamp(70px, 10vw, 130px) var(--gutter);
}
.things-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 80px;
  align-items: start;
}
.things-aside {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--text-dim);
  line-height: 1.45;
}
.things-aside small {
  display: block;
  margin-top: 18px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.things-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.things-list li {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.025em;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  position: relative;
  transition:
    color 0.5s var(--ease-out),
    padding-left 0.5s var(--ease-out);
}
.things-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ember);
  opacity: 0;
  transform: translateX(-12px);
  transition:
    opacity 0.4s ease,
    transform 0.4s var(--ease-out);
}
.things-list li:hover {
  padding-left: 28px;
  color: var(--ember-warm);
}
.things-list li:hover::before {
  opacity: 1;
  transform: translateX(0);
}
@media (max-width: 768px) {
  .things-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* =========================================================
   Footer
   ========================================================= */
footer {
  background: var(--surface-1);
  border-top: 1px solid var(--line);
  padding: clamp(60px, 8vw, 100px) var(--gutter) 32px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.footer-brand p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 320px;
}
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.3s ease;
}
.footer-col a:hover {
  color: var(--text);
}
.footer-col a.active {
  color: var(--ember);
}

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .copyright {
  font-size: 0.8rem;
  color: var(--muted);
}
.cubesob-credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 5px 12px 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}
.cubesob-credit:hover {
  color: var(--text);
  border-color: var(--ember);
  transform: translateY(-2px);
}
.cubesob-credit img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
}
.social-icons {
  display: flex;
  gap: 14px;
}
.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition:
    background 0.3s ease,
    transform 0.4s var(--ease-out),
    border-color 0.3s ease;
}
.social-icons a:hover {
  background: var(--ember);
  border-color: var(--ember);
  transform: translateY(-2px);
}
.social-icons svg {
  width: 18px;
  height: 18px;
  fill: var(--text);
}

@media (max-width: 880px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand {
    grid-column: span 2;
  }
}
@media (max-width: 540px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: span 1;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .cubesob-credit {
    align-self: flex-start;
  }
}

/* =========================================================
   Utility
   ========================================================= */
.text-orange {
  color: var(--ember);
}
.no-scroll {
  overflow: hidden;
}

/* Respect reduced motion only for entrance/reveal animations,
   not the marquee (which is user-triggered via hover) or hover transitions. */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-strong,
  .reveal-mask,
  .split-line > span {
    transition-duration: 0.01ms !important;
  }
  .branch-tile,
  .branch-tile__inner > * {
    animation-duration: 0.01ms !important;
  }
}

/* =========================================================
   Q&A / FAQ  (homepage)
   ========================================================= */
.faq-section {
  padding: var(--section-y) var(--gutter);
  background: var(--ink);
  border-top: 1px solid var(--line);
}
.faq-section .wrap-narrow {
  max-width: 1000px;
  margin: 0 auto;
}
.faq-section .section-header {
  margin-bottom: 48px;
}
.faq-section .section-header h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.faq-section .section-sub {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 56ch;
  line-height: 1.6;
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 44px 24px 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.25s ease;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  color: var(--ember-warm);
}
/* plus / minus indicator */
.faq-item summary::after,
.faq-item summary::before {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  background: var(--text-dim);
  transition:
    transform 0.3s var(--ease-out),
    background 0.25s ease;
}
.faq-item summary::before {
  width: 15px;
  height: 1.5px;
  transform: translateY(-50%);
}
.faq-item summary::after {
  width: 1.5px;
  height: 15px;
  right: 10.75px;
  transform: translateY(-50%);
}
.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(90deg);
  opacity: 0;
}
.faq-item[open] summary {
  color: var(--ember-warm);
}
.faq-item[open] summary::before {
  background: var(--ember-warm);
}
.faq-answer {
  padding: 0 44px 26px 0;
  color: var(--text-dim);
  font-size: 0.94rem;
  line-height: 1.7;
  max-width: 78ch;
  animation: faqReveal 0.35s var(--ease-out);
}
@keyframes faqReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .faq-answer {
    animation: none;
  }
}
@media (max-width: 540px) {
  .faq-item summary {
    padding: 20px 38px 20px 0;
  }
  .faq-answer {
    padding-right: 0;
  }
}

/* =========================================================
   Bookings: Day Pass / BCA / Hiring  (homepage)
   ========================================================= */
.services-section {
  padding: var(--section-y) var(--gutter);
  background: var(--surface-1);
  border-top: 1px solid var(--line);
}
.services-section .wrap-narrow {
  max-width: var(--max);
  margin: 0 auto;
}
.services-section .section-header {
  margin-bottom: 48px;
}
.services-section .section-header h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.services-section .section-sub {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 56ch;
  line-height: 1.6;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 34px 30px;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition:
    transform 0.4s var(--ease-out),
    border-color 0.3s ease,
    background 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background: var(--surface-3);
}
.service-card .svc-ico {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ember-soft);
  border: 1px solid rgba(255, 87, 34, 0.22);
}
.service-card .svc-ico svg {
  width: 22px;
  height: 22px;
  fill: var(--ember);
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.service-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}
.service-card .svc-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember);
}
.service-card .svc-cta svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  transition: transform 0.4s var(--ease-out);
}
.service-card:hover .svc-cta svg {
  transform: translateX(5px);
}
/* two-up row inside the booking modal */
.modal-content .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.modal-content .form-row > span {
  display: flex;
  flex-direction: column;
}
@media (max-width: 480px) {
  .modal-content .form-row {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Modal (shared with branch pages)
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 20px;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: clamp(32px, 5vw, 48px);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  position: relative;
  transform: scale(0.96) translateY(20px);
  transition: transform 0.5s var(--ease-out);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}
.close-modal {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-3);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s var(--ease-out);
  border: none;
}
.close-modal:hover {
  background: var(--ember);
  color: #fff;
  transform: rotate(90deg);
}
.modal-content::-webkit-scrollbar {
  width: 6px;
}
.modal-content::-webkit-scrollbar-track {
  background: transparent;
}
.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--ember);
}
.modal-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.modal-content h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.modal-content .modal-sub {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.form-group {
  margin-bottom: 18px;
  text-align: left;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.form-group input,
.form-group select {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  box-sizing: border-box;
  color-scheme: dark;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}
.form-group input:hover,
.form-group select:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: var(--surface-2);
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--ember);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.16);
}
.form-group input[readonly] {
  color: var(--ember);
  font-weight: 600;
  cursor: default;
  border-color: rgba(255, 87, 34, 0.25);
  background: rgba(255, 87, 34, 0.05);
}
.form-group input[type="date"] {
  cursor: pointer;
}
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8) sepia(1) saturate(5) hue-rotate(345deg);
  cursor: pointer;
  opacity: 0.8;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
  transform: scale(1.15);
  opacity: 1;
}

/* Native select fallback */
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ff5722' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 14px) center;
  background-size: 16px 16px;
}
.form-group select option {
  background-color: #141418;
  color: #f2f2f2;
  padding: 12px 14px;
}
.form-group select option:checked {
  background-color: #1e1e24;
  color: var(--ember);
}

/* =========================================================
   Custom Dropdown Component
   ========================================================= */
.custom-select-wrap {
  position: relative;
  width: 100%;
}
.custom-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.custom-select-trigger {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}
.custom-select-trigger:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background-color: var(--surface-2);
}
.custom-select-wrap.is-open .custom-select-trigger,
.custom-select-trigger:focus-visible {
  outline: none;
  border-color: var(--ember);
  background-color: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.18);
}
.custom-select-val {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  color: #fff;
  font-weight: 500;
}
.custom-select-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ember);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-select-arrow svg {
  width: 16px;
  height: 16px;
  display: block;
}
.custom-select-wrap.is-open .custom-select-arrow {
  transform: rotate(180deg);
}

/* Custom Dropdown Menu */
.custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 120;
  background: #131317;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 6px;
  margin: 0;
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition:
    opacity 0.22s var(--ease-out),
    transform 0.22s var(--ease-out),
    visibility 0.22s;
  pointer-events: none;
}
.custom-select-wrap.is-open .custom-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.custom-select-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text-dim);
  border-radius: 6px;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    padding-left 0.18s ease;
  user-select: none;
}
.custom-select-item:hover {
  background: rgba(255, 87, 34, 0.12);
  color: #fff;
  padding-left: 17px;
}
.custom-select-item.is-selected {
  background: rgba(255, 87, 34, 0.18);
  color: #ffffff;
  font-weight: 600;
}
.custom-opt-text {
  flex: 1;
}
.custom-opt-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ember);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
  margin-left: 10px;
}
.custom-opt-check svg {
  width: 15px;
  height: 15px;
}
.custom-select-item.is-selected .custom-opt-check {
  opacity: 1;
  transform: scale(1);
}
.custom-select-menu::-webkit-scrollbar {
  width: 5px;
}
.custom-select-menu::-webkit-scrollbar-track {
  background: transparent;
}
.custom-select-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 10px;
}
.custom-select-menu::-webkit-scrollbar-thumb:hover {
  background: var(--ember);
}

.modal-content .btn {
  width: 100%;
  margin-top: 8px;
}
