/* ===== Arkivision Studio — shared styles ===== */

:root {
  --bg: #0b0c0e;
  --bg-alt: #111214;
  --surface: #17181b;
  --surface-2: #1e2023;
  --border: rgba(255, 255, 255, 0.09);
  --text: #ece9e2;
  --text-dim: #9c988e;
  --text-faint: #6c6862;
  --accent: #c8a05e;
  --accent-soft: rgba(200, 160, 94, 0.14);
  --danger: #d16060;
  --radius: 2px;
  --maxw: 1360px;
  --nav-h: 76px;
  font-size: 16px;
}

* { box-sizing: border-box; }

/* Discourage casual saving of portfolio media (deters right-click/drag; not a hard security boundary) */
img, video {
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-dim); }

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}

.hero .eyebrow { font-size: 0.9rem; }

.section {
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin: 0 0 64px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary { background: var(--accent); color: #17140d; position: relative; overflow: hidden; }
.btn-primary:hover { background: #dcb376; transform: translateY(-1px); }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: btn-shine 3.4s ease-in-out 1.8s infinite;
}
@keyframes btn-shine {
  0% { left: -60%; }
  35%, 100% { left: 130%; }
}

.btn-outline { border-color: rgba(255,255,255,0.25); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost { color: var(--text-dim); }
.btn-ghost:hover { color: var(--accent); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 500;
  background: rgba(11, 12, 14, 0.55);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
  transform: translateY(-100%);
  animation: nav-in 0.7s cubic-bezier(.22, 1, .36, 1) 0.05s forwards;
}
@keyframes nav-in { to { transform: translateY(0); } }

.nav.scrolled {
  background: rgba(11, 12, 14, 0.92);
  backdrop-filter: blur(10px);
  border-color: var(--border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}
.logo .accent { color: var(--accent); }
.logo-mark { width: 26px; height: 43px; flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0; padding: 0;
}

.nav-links a {
  position: relative;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(.4, 0, .2, 1);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { display: flex; align-items: center; gap: 24px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../assets/hero-bg.png') center / cover no-repeat;
  transform: scale(1);
  animation: hero-zoom 24s ease-in-out infinite alternate;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.hero-bg-video.active { display: block; }
@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(11,12,14,0.46) 0%, rgba(11,12,14,0.40) 42%, rgba(11,12,14,0.22) 75%, rgba(11,12,14,0.13) 100%),
    linear-gradient(0deg, rgba(11,12,14,0.52) 0%, rgba(11,12,14,0.16) 40%, rgba(11,12,14,0.07) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: var(--nav-h);
}

.hero-watermark {
  position: absolute;
  z-index: 1;
  left: 10%;
  right: auto;
  top: 38%;
  transform: translate(-50%, -50%);
  width: clamp(110px, 11.5vw, 185px);
  opacity: 1;
  pointer-events: none;
}
.hero-watermark svg { width: 100%; height: auto; display: block; }

@media (max-width: 980px) {
  .hero-watermark { display: none; }
}

.hero-content {
  max-width: 760px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.85), 0 1px 4px rgba(0,0,0,0.9);
}

.subscribe-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: fit-content;
  margin: -20px auto 56px;
  padding: 10px 24px 18px;
  text-align: center;
  border: none;
  border-top: 1px solid rgba(74, 144, 255, 0.55);
  border-bottom: 1px solid rgba(74, 144, 255, 0.55);
  overflow: visible;
  transition: transform 0.3s ease;
}
.subscribe-bar:hover { transform: scale(1.04); }
.subscribe-text {
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-shadow: 0 2px 18px rgba(0,0,0,0.85), 0 1px 4px rgba(0,0,0,0.9);
}
.subscribe-btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 30px;
  border-radius: var(--radius);
  border: none;
  background: var(--accent);
  color: #17140d;
  cursor: pointer;
  box-shadow: 0 0 0 6px rgba(230, 196, 110, 0.28);
  animation: subscribe-blink 1.4s ease-in-out infinite;
  transition: transform 0.25s ease;
}
.subscribe-btn:hover { animation-play-state: paused; opacity: 1; transform: scale(1.1); }
@keyframes subscribe-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@media (max-width: 640px) {
  .subscribe-bar { margin-top: 14px; margin-bottom: 40px; gap: 10px; }
  .subscribe-text { font-size: 0.88rem; }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  margin-bottom: 28px;
}
.hero h1 .line { display: block; }
.hero h1 .line-inner { display: inline; }
.hero h1 .line-accent .line-inner { color: var(--accent); }

/* Typewriter caret — placed after the last revealed character by JS and
   left blinking once typing finishes. */
.type-caret {
  display: inline-block;
  width: 3px;
  height: 0.82em;
  margin-left: 3px;
  vertical-align: -0.08em;
  background: var(--accent);
  animation: caret-blink 0.9s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.reveal-fade {
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up 0.8s cubic-bezier(.22, 1, .36, 1) forwards;
}
.eyebrow.reveal-fade { animation-delay: 0s; }
.hero p.lead.reveal-fade { animation-delay: 0.6s; }
.hero-actions.reveal-fade { animation-delay: 0.78s; }
.hero-stats.reveal-fade { animation-delay: 0.94s; }
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }

.hero p.lead {
  font-size: 1.15rem;
  max-width: 560px;
  color: var(--text);
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 36px;
  flex-wrap: wrap;
  text-shadow: none;
}

.hero-stats {
  display: flex;
  gap: 56px;
  margin-top: 90px;
  flex-wrap: wrap;
}
.hero-stats .stat-num {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.hero-stats .stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.hero-banner {
  margin-top: 64px;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0,0,0,0.85), 0 1px 4px rgba(0,0,0,0.9);
}
.hero-banner-text {
  width: 100%;
  margin: 0;
  padding: 10px 0;
  font-size: 1.7rem;
  line-height: 1.5;
  color: var(--text);
  text-align: justify;
  text-align-last: justify;
  white-space: nowrap;
  background: transparent;
  transition: font-size 0.4s ease, background-color 0.4s ease, color 0.4s ease, padding 0.4s ease;
}
.hero-banner-sub {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 400;
  color: var(--text-dim);
  background: transparent;
  border-radius: 8px;
  transition: font-size 0.4s ease, background-color 0.4s ease, color 0.4s ease, padding 0.4s ease, border-radius 0.4s ease;
  box-shadow: 0 0 0 6px rgba(230, 196, 110, 0.28);
  animation: banner-sub-heartbeat 1.8s ease-in-out infinite;
}
.hero-banner:hover .hero-banner-sub {
  font-size: 1.5rem;
  padding: 6px 18px;
  background-color: rgba(47, 95, 219, 0.5);
  color: #fff;
  animation-play-state: paused;
}
@keyframes banner-sub-heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.18); }
  28% { transform: scale(1); }
  42% { transform: scale(1.14); }
  70% { transform: scale(1); }
}
.hero-banner:hover .hero-banner-text {
  font-size: 1.1rem;
  padding: 14px 0;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: fade-up 0.8s cubic-bezier(.22, 1, .36, 1) 1.3s forwards;
}
.scroll-cue.hidden { opacity: 0 !important; }
.scroll-cue span {
  position: relative;
  width: 1px;
  height: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}
.scroll-cue span::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: cue-drip 1.8s ease-in-out infinite;
}
@keyframes cue-drip {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}
.scroll-cue small {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  position: relative;
  background: var(--bg);
  padding: 44px 36px;
  transition: background 0.25s ease, transform 0.5s cubic-bezier(.22, 1, .36, 1), box-shadow 0.5s ease;
  cursor: pointer;
  overflow: hidden;
  transform: scale(1);
}
/* Scaling the card scales its title/paragraph/icon with it as one unit —
   the text doesn't need its own separate scale on top of this. */
.service-card:hover, .service-card:focus-visible {
  background: var(--surface);
  transform: scale(1.3);
  z-index: 5;
  box-shadow: 0 30px 70px -16px rgba(0, 0, 0, 0.6);
}
.service-card:focus-visible { outline: none; }

/* Drawn border — traces the card outline on hover/focus */
.card-border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.card-border rect {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.7s cubic-bezier(.4, 0, .2, 1);
}
.service-card:hover .card-border rect,
.service-card:focus-visible .card-border rect { stroke-dashoffset: 0; }

.service-icon {
  width: 42px; height: 42px;
  margin-bottom: 24px;
  color: var(--accent);
  overflow: visible;
}

/* Line-draw: any stroked shape with pathLength="1" traces in on hover */
.service-icon .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.6s cubic-bezier(.4, 0, .2, 1);
  transition-delay: calc(var(--i, 0) * 0.12s);
}
.service-card:hover .service-icon .draw,
.service-card:focus-visible .service-icon .draw { stroke-dashoffset: 0; }

/* Pop: small flourish details (windows, lamp glow, motion lines) fade + scale in after the lines draw */
.service-icon .pop {
  opacity: 0;
  transform: scale(0.4);
  transform-origin: center;
  transform-box: fill-box;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transition-delay: calc(0.42s + var(--i, 0) * 0.1s);
}
.service-card:hover .service-icon .pop,
.service-card:focus-visible .service-icon .pop { opacity: 1; transform: scale(1); }

/* Walkthroughs: play glyph pulses like a pressed play button once revealed */
.service-card:hover .icon-walkthrough .icon-play,
.service-card:focus-visible .icon-walkthrough .icon-play {
  animation: play-pulse 1.3s ease-in-out 0.55s infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes play-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

/* Aerial: stacked layers separate into an exploded view */
.icon-aerial .layer { transition: transform 0.45s cubic-bezier(.4, 0, .2, 1); }
.service-card:hover .icon-aerial .layer-top,
.service-card:focus-visible .icon-aerial .layer-top { transform: translateY(-2.4px); }
.service-card:hover .icon-aerial .layer-bottom,
.service-card:focus-visible .icon-aerial .layer-bottom { transform: translateY(2.4px); }

/* Virtual Staging: furniture rises into place from the floor */
.icon-staging .rise {
  transform: scaleY(0.82) translateY(3px);
  transform-origin: bottom;
  transform-box: fill-box;
  transition: transform 0.5s cubic-bezier(.4, 0, .2, 1);
  transition-delay: calc(var(--i, 0) * 0.12s);
}
.service-card:hover .icon-staging .rise,
.service-card:focus-visible .icon-staging .rise { transform: scaleY(1) translateY(0); }

/* Title: words lift and warm to accent gold on hover */
.service-title { font-size: 1.2rem; margin-bottom: 12px; }
.service-title .word {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(.4, 0, .2, 1), color 0.35s ease;
}
.service-card:hover .service-title .word,
.service-card:focus-visible .service-title .word { transform: translateY(-3px); color: var(--accent); }
.service-title .word:nth-child(1) { transition-delay: 0s; }
.service-title .word:nth-child(2) { transition-delay: 0.05s; }
.service-title .word:nth-child(3) { transition-delay: 0.1s; }
.service-title .word:nth-child(4) { transition-delay: 0.15s; }
.service-title .word:nth-child(5) { transition-delay: 0.2s; }

.service-card p {
  margin: 0;
  font-size: 0.94rem;
  transition: color 0.4s ease;
}
.service-card:hover p,
.service-card:focus-visible p { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .service-icon .draw, .service-icon .pop, .card-border rect,
  .service-title .word, .icon-aerial .layer, .icon-staging .rise,
  .icon-walkthrough .icon-play, .testimonial-card, .testimonial-name {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Process ---------- */

.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.process-step {
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.process-num {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.process-step h4 { font-size: 1.02rem; margin-bottom: 8px; }
.process-step p { font-size: 0.88rem; margin: 0; }

/* ---------- Portfolio ---------- */

.portfolio-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 9px 18px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--text); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #17140d; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.project-card {
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.project-thumb {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
}
.project-thumb img, .project-thumb video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover .project-thumb img,
.project-card:hover .project-thumb video { transform: scale(1.06); }

.play-badge {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.play-badge svg {
  width: 52px; height: 52px;
  color: #fff;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
}

.project-info { padding: 20px 22px 24px; }
.project-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.project-info h3 { font-size: 1.08rem; margin: 0; }

.portfolio-empty {
  border: 1px dashed var(--border);
  padding: 70px 40px;
  text-align: center;
  color: var(--text-dim);
}
.portfolio-empty h3 { color: var(--text); margin-bottom: 10px; }

/* ---------- Testimonials ---------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testimonial-card {
  position: relative;
  border: 1px solid var(--border);
  padding: 34px 30px;
  background: var(--surface);
  cursor: default;
  transform: scale(1);
  transition: transform 0.5s cubic-bezier(.22, 1, .36, 1), box-shadow 0.5s ease, background 0.3s ease;
}
/* !important because .reveal-on-scroll.in-view (also applied to these
   cards) sets transform: translateY(0) at the same specificity and wins
   the cascade by source order, silently cancelling the hover scale.
   Scoped to (hover: hover) and (pointer: fine) — real mouse devices only.
   On touch devices, a scale-on-hover here means the first tap only
   triggers the simulated hover state (shifting the video under the
   finger) instead of the actual click, so playing a testimonial video
   took 2-3 taps. Keyboard focus-visible stays active for all devices. */
@media (hover: hover) and (pointer: fine) {
  .testimonial-card:hover {
    transform: scale(1.3) !important;
    z-index: 5;
    background: var(--surface-2);
    box-shadow: 0 30px 70px -16px rgba(0, 0, 0, 0.6);
    outline: none;
  }
}
.testimonial-card:focus-visible {
  transform: scale(1.3) !important;
  z-index: 5;
  background: var(--surface-2);
  box-shadow: 0 30px 70px -16px rgba(0, 0, 0, 0.6);
  outline: none;
}
.testimonial-quote {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 22px;
  transition: color 0.35s ease;
}

.testimonial-video {
  width: 100%;
  border-radius: 2px;
  margin-bottom: 18px;
  background: #000;
}
.testimonial-video[hidden] { display: none; }
.testimonial-quote::before { content: '\201C'; color: var(--accent); }
.testimonial-quote::after { content: '\201D'; color: var(--accent); }
.testimonial-name {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.35s ease, transform 0.35s ease;
}
.testimonial-role { font-size: 0.8rem; color: var(--text-faint); transition: color 0.35s ease; }

.testimonial-card:hover .testimonial-name,
.testimonial-card:focus-visible .testimonial-name {
  color: var(--accent);
  transform: translateY(-2px);
}
.testimonial-card:hover .testimonial-role,
.testimonial-card:focus-visible .testimonial-role { color: var(--text-dim); }

.testimonial-card .card-border rect { stroke-width: 0.6; }
.testimonial-card:hover .card-border rect,
.testimonial-card:focus-visible .card-border rect { stroke-dashoffset: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, #17140d, #0b0c0e 60%);
  border-top: 1px solid var(--border);
  padding: 100px 0;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); max-width: 700px; margin: 0 auto 30px; }
.cta-band .eyebrow { font-size: 0.864rem; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2px 1.3fr;
  gap: 34px;
}

.contact-divider {
  position: relative;
  width: 2px;
  justify-self: center;
  background: linear-gradient(
    180deg,
    rgba(74, 144, 255, 0) 0%,
    rgba(74, 144, 255, 0.85) 10%,
    rgba(74, 144, 255, 0.85) 90%,
    rgba(74, 144, 255, 0) 100%
  );
  pointer-events: none;
}
.contact-divider .flare {
  position: absolute;
  left: 50%;
  top: 4%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: radial-gradient(circle, #cfe4ff 0%, rgba(120, 175, 255, 0.7) 45%, rgba(120, 175, 255, 0) 75%);
  box-shadow: 0 0 18px 5px rgba(96, 165, 250, 0.55);
  animation: flare-travel 4.5s linear infinite alternate;
}
@keyframes flare-travel {
  0%   { top: 4%;  transform: scale(0.85); }
  50%  { top: 50%; transform: scale(1.3); }
  100% { top: 96%; transform: scale(0.85); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-divider .flare { animation: none; top: 50%; transform: scale(1); }
}

/* Same line + flare system as .contact-divider, rotated to horizontal:
   left-to-right travel instead of top-to-bottom, identical 4.5s linear
   alternate timing and the same 30%-bigger-at-the-midpoint scale pulse. */
.process-divider {
  position: relative;
  height: 2px;
  margin-top: 48px;
  background: linear-gradient(
    90deg,
    rgba(74, 144, 255, 0) 0%,
    rgba(74, 144, 255, 0.85) 10%,
    rgba(74, 144, 255, 0.85) 90%,
    rgba(74, 144, 255, 0) 100%
  );
  pointer-events: none;
}
.process-divider .flare {
  position: absolute;
  top: 50%;
  left: 4%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: radial-gradient(circle, #cfe4ff 0%, rgba(120, 175, 255, 0.7) 45%, rgba(120, 175, 255, 0) 75%);
  box-shadow: 0 0 18px 5px rgba(96, 165, 250, 0.55);
  animation: process-flare-travel 4.5s linear infinite alternate;
}
@keyframes process-flare-travel {
  0%   { left: 4%;  transform: scale(0.85); }
  50%  { left: 50%; transform: scale(1.3); }
  100% { left: 96%; transform: scale(0.85); }
}
@media (prefers-reduced-motion: reduce) {
  .process-divider .flare { animation: none; left: 50%; transform: scale(1); }
}

.contact-info-item {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}
.contact-info-item .label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint);
  display: block; margin-bottom: 6px;
}
.contact-info-item .value { font-size: 1.05rem; color: var(--text); }

form.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field label {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 14px;
  font-family: inherit;
  font-size: 0.94rem;
  border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 120px; }

.form-note { font-size: 0.8rem; color: var(--text-faint); margin-top: 4px; }

.form-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.form-actions .btn-outline.copied { border-color: var(--accent); color: var(--accent); }

@media (max-width: 480px) {
  .form-actions { flex-direction: column; align-items: stretch; }
}

/* ---------- Footer ---------- */

footer {
  padding: 60px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h5 {
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-dim); font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.8rem; color: var(--text-faint);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0;
  background: rgba(6, 6, 7, 0.96);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px;
}
.lightbox.open { display: flex; }

.lightbox-stage {
  max-width: 1100px;
  width: 100%;
  max-height: 82vh;
}
.lightbox-stage img, .lightbox-stage video {
  max-height: 76vh;
  width: 100%;
  object-fit: contain;
  margin: 0 auto;
  background: #000;
}
.lightbox-caption {
  text-align: center;
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  border-radius: 50%;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  border-color: var(--accent); color: var(--accent);
}
.lightbox-close { top: 28px; right: 32px; }
.lightbox-prev, .lightbox-next {
  position: static;
  flex-shrink: 0;
  width: 138px;
  height: 138px;
  font-size: 3rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(3, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-divider { display: none; }
  .hero-stats { gap: 36px; }
  .hero-banner-text {
    white-space: normal;
    text-align: center;
    text-align-last: auto;
    font-size: 1.2rem;
  }
  .hero-banner:hover .hero-banner-text { font-size: 1rem; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    background: rgba(11, 12, 14, 0.98);
    padding: 20px 32px 30px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
}

/* Phone-sized lightbox: fills the entire screen edge-to-edge in both
   portrait (max-width) and landscape (short max-height) orientations,
   instead of a small letterboxed box floating in a mostly-black screen. */
@media (max-width: 600px), (max-height: 500px) and (orientation: landscape) {
  .lightbox { gap: 0; padding: 0; }
  .lightbox-stage {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .lightbox-stage img, .lightbox-stage video {
    width: auto;
    height: auto;
    max-width: 100vw;
    max-height: 100dvh;
  }
  .lightbox-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    margin: 0;
    padding: 10px 60px;
    background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  }
  .lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    font-size: 1.7rem;
    background: rgba(6, 6, 7, 0.45);
    z-index: 2;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close {
    top: 12px;
    right: 12px;
    background: rgba(6, 6, 7, 0.45);
    z-index: 2;
  }
}

/* ---------- Scroll-triggered reveals ---------- */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(.22, 1, .36, 1), transform 0.75s cubic-bezier(.22, 1, .36, 1);
}
.reveal-on-scroll.in-view { opacity: 1; transform: translateY(0); }

.process-step.reveal-on-scroll:nth-child(1) { transition-delay: 0s; }
.process-step.reveal-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.process-step.reveal-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.process-step.reveal-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.process-step.reveal-on-scroll:nth-child(5) { transition-delay: 0.32s; }

.testimonial-card.reveal-on-scroll:nth-child(1) { transition-delay: 0s; }
.testimonial-card.reveal-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.testimonial-card.reveal-on-scroll:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .nav, .hero-bg, .hero h1 .line-inner, .reveal-fade,
  .scroll-cue span::after, .btn-primary::after, .reveal-on-scroll {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ---------- Chat assistant ---------- */

.chat-toggle {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  color: #17140d;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}
.chat-toggle:hover { transform: translateY(-2px); background: #dcb376; }
.chat-toggle svg { width: 26px; height: 26px; }
.chat-toggle .chat-icon-close { display: none; }
.chat-toggle.open .chat-icon-open { display: none; }
.chat-toggle.open .chat-icon-close { display: block; }

.chat-panel {
  position: fixed;
  bottom: 96px;
  right: 26px;
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 520px;
  max-height: calc(100vh - 140px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 700;
}
.chat-panel.open { display: flex; }

.chat-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.chat-title { font-family: 'Fraunces', serif; font-size: 1.05rem; color: var(--text); }
.chat-subtitle { font-size: 0.74rem; color: var(--text-faint); margin-top: 3px; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 84%;
  padding: 10px 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  border-radius: 3px;
}
.chat-msg.bot {
  align-self: flex-start;
  background: var(--surface-2);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--accent-soft);
  color: var(--text);
  border: 1px solid rgba(200, 160, 94, 0.3);
}
.chat-msg a { color: var(--accent); text-decoration: underline; }

.chat-quickreplies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 14px;
}
.chat-quickreplies button {
  font-size: 0.76rem;
  padding: 7px 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.chat-quickreplies button:hover { border-color: var(--accent); color: var(--accent); }

.chat-input-row {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.chat-input-row input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.86rem;
  border-radius: 3px;
}
.chat-input-row input:focus { outline: none; border-color: var(--accent); }
.chat-send {
  width: 40px;
  background: var(--accent);
  border: none;
  color: #17140d;
  cursor: pointer;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-send svg { width: 17px; height: 17px; }
.chat-send:hover { background: #dcb376; }

.chat-lead-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.chat-lead-form input, .chat-lead-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.82rem;
  border-radius: 3px;
}
.chat-lead-form textarea { min-height: 60px; resize: vertical; }
.chat-lead-actions { display: flex; gap: 8px; }
.chat-lead-actions button {
  flex: 1;
  font-size: 0.76rem;
  padding: 8px 0;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
}
.chat-lead-actions button.primary { background: var(--accent); color: #17140d; border-color: var(--accent); }

@media (max-width: 480px) {
  .chat-panel {
    right: 14px;
    left: 14px;
    width: auto;
    bottom: 90px;
  }
  .chat-toggle { right: 18px; bottom: 18px; }
}
