/* ============================================================
   BUILD DESIGN — COMPONENTS STYLESHEET
   Premium Architecture Studio · 빌드디자인
   ============================================================ */

/* ── Page Hero: nav-spacer 이중 여백 제거 ─────────────────── */
/* page-hero는 자체적으로 padding-top: calc(nav-height + extra)를 가지므로
   nav-spacer가 있으면 이중 여백이 생김 → nav-spacer 숨김 */
body:has(.page-hero) .nav-spacer,
body:has(.portfolio-page-hero) .nav-spacer,
body:has(.gp-hero) .nav-spacer {
  display: none;
}

/* ── Section Layouts ──────────────────────────────────────── */
.section-full {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-lg {
  padding: 120px 0;
}

.section-md {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

/* ════════════════════════════════════════════════════════════
   INTRO SECTION
   ══════════════════════════════════════════════════════════ */
.intro-section {
  padding: 160px 0 120px;
  text-align: center;
  position: relative;
}

.intro-body {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  max-width: 900px;
  margin: 0 auto;
}

.intro-body em {
  font-style: normal;
  color: var(--text-primary);
}

/* Word-by-word reveal */
.word-reveal {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.2;
  margin: 0 0.08em;
}

.word-reveal__inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 0.65s var(--ease-out),
    opacity   0.65s var(--ease-out);
}

.word-reveal.is-visible .word-reveal__inner {
  transform: translateY(0);
  opacity: 1;
}

/* Stagger delays via JS data-index or nth-child approximation */
.word-reveal:nth-child(1)  .word-reveal__inner { transition-delay: 0.00s; }
.word-reveal:nth-child(2)  .word-reveal__inner { transition-delay: 0.04s; }
.word-reveal:nth-child(3)  .word-reveal__inner { transition-delay: 0.08s; }
.word-reveal:nth-child(4)  .word-reveal__inner { transition-delay: 0.12s; }
.word-reveal:nth-child(5)  .word-reveal__inner { transition-delay: 0.16s; }
.word-reveal:nth-child(6)  .word-reveal__inner { transition-delay: 0.20s; }
.word-reveal:nth-child(7)  .word-reveal__inner { transition-delay: 0.24s; }
.word-reveal:nth-child(8)  .word-reveal__inner { transition-delay: 0.28s; }
.word-reveal:nth-child(9)  .word-reveal__inner { transition-delay: 0.32s; }
.word-reveal:nth-child(10) .word-reveal__inner { transition-delay: 0.36s; }

.intro-accent-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.intro-accent-line::before,
.intro-accent-line::after {
  content: '';
  width: 64px;
  height: 1px;
  background: var(--border);
}

.intro-accent-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ════════════════════════════════════════════════════════════
   STATS SECTION
   ══════════════════════════════════════════════════════════ */
.stats-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

.stat-item {
  padding: var(--space-8) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
}

/* Dividers between items */
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-subtle);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  /* Counter animation prep via JS */
  --target: 0;
}

.stat-number sup {
  font-size: 0.4em;
  vertical-align: top;
  margin-top: 0.3em;
  color: var(--accent-primary);
  font-family: var(--font-mono);
}

.stat-number .stat-suffix {
  color: var(--accent-primary);
  font-size: 0.6em;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

/* ════════════════════════════════════════════════════════════
   SERVICES SECTION
   ══════════════════════════════════════════════════════════ */
.services-section {
  padding: 120px 0;
  background: var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

/* Service Card */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  transition:
    border-color 0.3s,
    box-shadow   0.3s,
    transform    0.15s;

  /* Corner accent */
  clip-path: polygon(20px 0%, 100% 0%, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0% 100%, 0% 20px);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.service-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover::after {
  transform: scaleX(1);
}

/* 3D tilt — applied via JS mousemove, CSS provides the perspective */
.service-card:hover {
  transform: perspective(1000px) rotateX(var(--rot-x, 0deg)) rotateY(var(--rot-y, 0deg)) translateZ(4px);
}

.service-card__number {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.3s, background 0.3s;
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent-primary);
  fill: none;
  stroke-width: 1.5;
  transition: transform 0.3s var(--ease-back);
}

.service-card:hover .service-card__icon {
  border-color: var(--accent-primary);
  background: var(--accent-glow);
}

.service-card:hover .service-card__icon svg {
  transform: scale(1.1) rotate(-5deg);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1;
}

.service-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-top: var(--space-6);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}

.service-card__link svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}

.service-card:hover .service-card__link {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover .service-card__link svg {
  transform: translateX(3px);
}

/* ════════════════════════════════════════════════════════════
   PORTFOLIO GRID
   ══════════════════════════════════════════════════════════ */
.portfolio-section {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.portfolio-filters {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.portfolio-filter {
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.portfolio-filter:hover,
.portfolio-filter.is-active {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-glow);
}

/* Masonry grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: var(--space-4);
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
}

/* Span variants for masonry feel */
.portfolio-item--tall   { grid-row: span 2; }
.portfolio-item--wide   { grid-column: span 2; }
.portfolio-item--square { grid-row: span 1; }

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.4s;
  filter: saturate(0.7) brightness(0.85);
}

.portfolio-item:hover img {
  transform: scale(1.06);
  filter: saturate(1) brightness(1);
}

/* Overlay slides up on hover */
.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  background: linear-gradient(to top, rgba(7,12,20,0.95) 0%, rgba(7,12,20,0.6) 60%, transparent 100%);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s;
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-category {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: var(--space-2);
}

.portfolio-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1;
}

.portfolio-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: var(--space-2);
}

/* Portfolio item skeleton */
.portfolio-item--loading {
  background: var(--bg-card);
  animation: skeleton 1.5s ease-in-out infinite;
}

@keyframes skeleton {
  0%   { background-color: var(--bg-card); }
  50%  { background-color: var(--bg-card-hover); }
  100% { background-color: var(--bg-card); }
}

/* ════════════════════════════════════════════════════════════
   PROCESS / TIMELINE (HORIZONTAL)
   ══════════════════════════════════════════════════════════ */
.process-section {
  padding: 120px 0;
  background: var(--bg-primary);
  overflow: hidden;
}

.process-steps {
  display: flex;
  gap: 0;
  position: relative;
  padding-top: var(--space-4);
}

/* Connecting line */
.process-steps::before {
  content: '';
  position: absolute;
  top: 20px; /* aligns with circle center */
  left: calc(var(--space-12) / 2);
  right: calc(var(--space-12) / 2);
  height: 1px;
  background: var(--border-subtle);
  z-index: 0;
}

/* Animated progress line */
.process-steps::after {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(var(--space-12) / 2);
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  z-index: 1;
  transition: width 1.5s var(--ease-out);
}

.process-steps.is-animated::after {
  width: calc(100% - var(--space-12));
}

.process-step {
  flex: 1;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 2;
}

.process-step__number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  position: relative;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.process-step.is-active .process-step__number {
  border-color: var(--accent-primary);
  background: var(--accent-glow);
  color: var(--accent-primary);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.3);
}

.process-step__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  line-height: 1;
}

.process-step__desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════════════════════ */
.cta-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  z-index: 0;
}

/* Texture overlay */
.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(0,0,0,0.04) 40px,
    rgba(0,0,0,0.04) 80px
  );
  z-index: 1;
}

.cta-inner {
  position: relative;
  z-index: 2;
}

.cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(7, 12, 20, 0.7);
  margin-bottom: var(--space-4);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--bg-primary);
  line-height: 0.95;
  margin-bottom: var(--space-6);
}

.cta-sub {
  font-size: 1rem;
  color: rgba(7, 12, 20, 0.65);
  max-width: 480px;
  margin: 0 auto var(--space-10);
  line-height: 1.65;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 16px 48px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: var(--bg-primary);
  border: none;
  clip-path: polygon(12px 0%, 100% 0%, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0% 100%, 0% 12px);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* ════════════════════════════════════════════════════════════
   GALLERY GRID
   ══════════════════════════════════════════════════════════ */
.gallery-section {
  padding: 80px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
}

.gallery-item {
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.4s;
  filter: brightness(0.9);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

/* Lightbox-ready overlay */
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 20, 0.0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.gallery-item__overlay svg {
  width: 40px;
  height: 40px;
  color: var(--text-primary);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s;
}

.gallery-item:hover .gallery-item__overlay {
  background: rgba(7, 12, 20, 0.45);
}

.gallery-item:hover .gallery-item__overlay svg {
  opacity: 1;
  transform: scale(1);
}

/* ════════════════════════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════════════════════ */

/* About hero banner */
.about-hero {
  height: 60vh;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.about-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(0.7);
}

.about-hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-12) var(--space-8);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.about-hero-content::before {
  content: '';
  position: absolute;
  inset: 0;
  bottom: auto;
  top: auto;
  background: linear-gradient(to top, rgba(7,12,20,0.95) 0%, transparent 100%);
  pointer-events: none;
}

/* About timeline */
.about-timeline {
  padding: 120px 0;
  position: relative;
}

/* Vertical center line */
.timeline-track {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-subtle);
  transform: translateX(-50%);
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--accent-primary);
  transition: height 2s var(--ease-out);
}

.timeline-track.is-animated::before {
  height: 100%;
}

.timeline-items {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: start;
  gap: var(--space-8);
}

/* Center dot */
.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  transition: border-color 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
}

.timeline-item.is-active .timeline-dot {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.3);
}

/* Odd items: content left, even: content right */
.timeline-item:nth-child(even) .timeline-content--left  { order: 3; text-align: left; }
.timeline-item:nth-child(even) .timeline-content--right { order: 1; text-align: right; }

.timeline-content {
  padding: var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent-primary);
  margin-bottom: var(--space-2);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  padding: 80px 0;
}

.team-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 3 / 4;
  cursor: pointer;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%);
  transition: transform 0.5s var(--ease-out), filter 0.4s;
}

.team-card:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* Hover reveal overlay */
.team-card__reveal {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  background: linear-gradient(to top, rgba(7,12,20,0.97) 0%, rgba(7,12,20,0.6) 60%, transparent 100%);
  transform: translateY(calc(100% - 80px));
  transition: transform 0.4s var(--ease-out);
}

.team-card:hover .team-card__reveal {
  transform: translateY(0);
}

.team-card__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1;
}

.team-card__role {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-top: var(--space-1);
}

.team-card__bio {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: var(--space-3);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s 0.1s, transform 0.3s 0.1s;
}

.team-card:hover .team-card__bio {
  opacity: 1;
  transform: translateY(0);
}

.team-card__links {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s 0.15s, transform 0.3s 0.15s;
}

.team-card:hover .team-card__links {
  opacity: 1;
  transform: translateY(0);
}

.team-card__links a {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color 0.2s;
}

.team-card__links a:hover {
  color: var(--accent-primary);
}

/* ════════════════════════════════════════════════════════════
   SERVICES PAGE
   ══════════════════════════════════════════════════════════ */
.service-hero {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.service-detail {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-12);
  align-items: start;
}

.service-detail-icon {
  width: 80px;
  height: 80px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: var(--space-6);
  position: sticky;
  top: calc(var(--nav-height) + 40px);
}

.service-detail-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--accent-primary);
  fill: none;
  stroke-width: 1.5;
}

.service-detail-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.02em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-6);
}

.service-detail-body p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-6);
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.service-features li::before {
  content: '—';
  color: var(--accent-primary);
  flex-shrink: 0;
  font-family: var(--font-mono);
}

/* ════════════════════════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════════════════════ */
.contact-section {
  padding: calc(var(--nav-height) + 80px) 0 120px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

/* Map side */
.contact-map {
  height: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-height) + 40px);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(100%) invert(92%) hue-rotate(180deg) brightness(0.9);
}

[data-theme="light"] .contact-map iframe {
  filter: grayscale(20%);
}

/* Contact info */
.contact-info {
  padding: 0;
}

.contact-info__group {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.contact-info__group:first-child {
  padding-top: 0;
}

.contact-info__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: var(--space-3);
}

.contact-info__value {
  font-size: 1.0625rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.contact-info__value a {
  transition: color 0.2s;
}

.contact-info__value a:hover {
  color: var(--accent-primary);
}

/* Contact Form */
.contact-form {
  margin-top: var(--space-10);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  position: relative;
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  transition: color 0.2s;
}

.form-group:focus-within .form-label {
  color: var(--accent-primary);
}

/* No border box — only bottom border */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: var(--space-3) 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

/* Focus glow effect via bottom border and shadow */
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-bottom-color: var(--accent-primary);
  box-shadow: 0 1px 0 0 var(--accent-primary);
}

/* Animated underline */
.form-group::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--accent-primary);
  transition: width 0.3s var(--ease-out);
}

.form-group:focus-within::after {
  width: 100%;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a9ab5' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--accent-primary);
  border: none;
  clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px);
  cursor: pointer;
  margin-top: var(--space-4);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease-inout);
}

.form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

.form-submit:hover::before {
  transform: translateX(100%);
}

/* ════════════════════════════════════════════════════════════
   BUTTONS & BADGES
   ══════════════════════════════════════════════════════════ */

/* Size variants */
.btn-sm {
  padding: 8px 20px;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
}

.btn-lg {
  padding: 18px 48px;
  font-size: 0.9375rem;
  letter-spacing: 0.14em;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-card);
}

.badge--accent {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-glow);
}

.badge--gold {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(200, 169, 110, 0.08);
}

/* Tag */
.tag {
  display: inline-flex;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.tag:hover {
  border-color: var(--border);
  color: var(--text-secondary);
}

/* ════════════════════════════════════════════════════════════
   SKELETON LOADING
   ══════════════════════════════════════════════════════════ */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: shimmer 1.8s ease-in-out infinite;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2)::before { display: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border-subtle); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border-subtle); }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-map {
    height: 320px;
    position: static;
  }

  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-icon {
    position: static;
  }

  .timeline-item {
    grid-template-columns: 40px 1fr;
  }

  .timeline-content--right { display: none; }
  .timeline-item:nth-child(even) .timeline-content--left { order: 2; text-align: left; }
  .timeline-item:nth-child(even) .timeline-content--right { display: none; }

  .process-steps {
    flex-direction: column;
    gap: var(--space-8);
    padding-left: var(--space-10);
  }

  /* Vertical connecting line for mobile */
  .process-steps::before {
    top: 0;
    bottom: 0;
    left: 20px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .process-steps::after {
    top: 0;
    bottom: auto;
    left: 20px;
    right: auto;
    width: 1px;
    height: 0%;
    transition: height 1.5s var(--ease-out);
  }

  .process-steps.is-animated::after {
    width: 1px;
    height: calc(100% - 40px);
  }

  .process-step {
    padding: 0 0 0 var(--space-8);
  }
}

@media (max-width: 768px) {
  .section-lg { padding: 80px 0; }
  .section-md { padding: 56px 0; }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid .stat-item::before { display: none; }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .portfolio-item--tall,
  .portfolio-item--wide {
    grid-row: span 1;
    grid-column: span 1;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .intro-section {
    padding: 100px 0 80px;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .word-reveal__inner {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .portfolio-item img,
  .team-card img,
  .gallery-item img {
    transition: none;
  }

  .portfolio-overlay,
  .team-card__reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .skeleton::after,
  .process-steps::after,
  .timeline-track::before {
    animation: none;
    transition: none;
  }
}
