/* ============================================
   GROUNDWORK — Final Build
   Survivalist hero + Glass cards + Icon row
   Pure B&W, refined weights
   ============================================ */

@import url('variables.css');

:root {
  --bg:          #050505;
  --bg-raised:   #0c0c0c;
  --bg-card:     #111111;

  --text:        #ffffff;
  --text-dim:    rgba(255,255,255,0.5);
  --text-faint:  rgba(255,255,255,0.15);

  --glass-bg:    rgba(255,255,255,0.03);
  --glass-border: rgba(255,255,255,0.07);
  --glass-hover: rgba(255,255,255,0.06);

  --font-display: 'Syne', sans-serif;
  --font-serif:   'Instrument Serif', serif;
  --font-body:    'Satoshi', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: min(1280px, 100% - 4rem);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg) url('../images/bg-texture-ribbon.png') center top / 100% auto no-repeat;
  overflow-x: hidden;
}

/* Flowing ribbon texture -- applied to body, scrolls with page */

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }

::selection { background: #333; color: #fff; }

.container { width: var(--container); margin: 0 auto; }

/* ============================================
   LOADING SCREEN — Wave loader
   ============================================ */

.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #050505;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-bars {
  display: flex;
  gap: 4px;
  align-items: center;
}

.loader-bar {
  width: 3px;
  height: 20px;
  background: #fff;
  transform-origin: bottom;
  animation: waveBar 1s ease-in-out infinite;
}

.loader-bar:nth-child(1) { animation-delay: 0s; }
.loader-bar:nth-child(2) { animation-delay: 0.1s; }
.loader-bar:nth-child(3) { animation-delay: 0.2s; }
.loader-bar:nth-child(4) { animation-delay: 0.3s; }
.loader-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes waveBar {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(2); }
}

.loader-text {
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.25);
}

/* Film grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}

/* Shared */
.section-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 3rem;
}

/* ============================================
   NAV
   ============================================ */

.nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  padding: 1.2rem 0;
  transition: all 0.5s var(--ease);
}
.nav.scrolled {
  background: rgba(5,5,5,0.9);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.9rem 0;
}

.nav-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
}
.nav-logo-icon { width: 22px; height: 22px; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.nav-links { display: flex; align-items: center; gap: 0.5rem; }

.nav-link {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  transition: all 0.3s;
}
.nav-link:hover { color: var(--text); }
.nav-link:focus-visible, .nav-cta:focus-visible, .btn-primary:focus-visible,
.work-card:focus-visible, .hero-cta-outline:focus-visible {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 2px;
}

.nav-cta {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bg);
  background: var(--text);
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  transition: all 0.3s;
}
.nav-cta:hover { opacity: 0.85; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); }

/* ============================================
   HERO — Survivalist-inspired centered
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: contrast(1.3);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, var(--bg) 75%);
}

/* Scattered details */
.hero-detail {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.5rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  z-index: 2;
}
.hero-detail-tl { top: 6rem; left: 3rem; }
.hero-detail-tr { top: 6rem; right: 3rem; }
.hero-detail-bl { bottom: 6rem; left: 3rem; }

/* Center visual */
.hero-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-visual {
  position: relative;
  width: 480px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
}
.hero-ring-1 { width: 100%; height: 100%; }
.hero-ring-2 { width: 140%; height: 140%; }

.hero-keycap {
  width: 360px;
  height: 360px;
  object-fit: contain;
  filter: brightness(1.1) contrast(1.1);
  transition: transform 0.8s var(--ease);
}
.hero-keycap:hover { transform: rotate(-6deg) scale(1.05); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.3vw, 2.65rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.hero .hero-title {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.25) 0%,
    rgba(255,255,255,1) 45%,
    rgba(255,255,255,1) 55%,
    rgba(255,255,255,0.25) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shinyText 8s ease-in-out infinite;
}
.work-card .hero-title {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
  animation: none;
}

@keyframes shinyText {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.hero-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
  white-space: nowrap;
  line-height: 1.6;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.45;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hero-cta-outline {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  transition: all 0.3s var(--ease);
}
.hero-cta-outline:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
}

/* Bottom bar */
.hero-bottom {
  position: absolute;
  bottom: 2.5rem;
  left: 0; right: 0;
  width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
}
.hero-bottom-left {
  display: flex;
  flex-direction: column;
  font-size: 0.7rem;
  color: var(--text-faint);
  line-height: 1.5;
}
.hero-scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}
.hero-scroll-arrow {
  font-size: 0.8rem;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ============================================
   PROBLEM — Single column pain copy
   ============================================ */

.section-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  pointer-events: none;
}

.problem {
  padding: 8rem 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.problem-copy {
  max-width: 720px;
}

.problem-text {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.problem-text strong {
  color: var(--text);
  font-weight: 500;
}

.problem-punch {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-top: 2rem;
}

/* ============================================
   RISK REVERSAL — Glass cards
   ============================================ */

.risk-reversal {
  padding: 8rem 0;
  background: transparent;
}

.risk-reversal-intro {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.85;
  max-width: 640px;
  margin-bottom: 3rem;
}

.risk-reversal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* ============================================
   CTA FORM — Inline homepage form
   ============================================ */

.cta-form {
  padding: 8rem 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.cta-form-content {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.cta-form .cta-title {
  text-align: center;
}

.cta-form .cta-desc {
  text-align: center;
  margin-bottom: 3rem;
}

.homepage-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.homepage-form .form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.homepage-form .form-group input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  transition: all 0.3s;
}

.homepage-form .form-group input::placeholder {
  color: rgba(255,255,255,0.2);
}

.homepage-form .form-group input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.03);
}

.homepage-form .form-submit-btn {
  display: inline-flex;
  align-self: center;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.9rem 2.5rem;
  border-radius: 100px;
  background: #fff;
  color: #050505;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.homepage-form .form-submit-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,255,255,0.08);
}

.homepage-form .form-submit-btn.loading {
  opacity: 0.5;
  cursor: wait;
  pointer-events: none;
}

.homepage-form .form-error {
  font-size: 0.85rem;
  color: rgba(255,100,100,0.8);
}

.hp-form-success {
  padding: 2rem 0;
  text-align: center;
}

.hp-form-success h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.hp-form-success p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ============================================
   SERVICES — Glass cards
   ============================================ */

.services {
  padding: 8rem 0;
  background: transparent;
}

.glass-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.glass-card {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.05) 0%,
    rgba(255,255,255,0.02) 100%
  );
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.06),
    0 4px 24px rgba(0,0,0,0.2);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}
.glass-card:hover {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.07) 0%,
    rgba(255,255,255,0.03) 100%
  );
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.08),
    0 8px 32px rgba(0,0,0,0.3);
}

.glass-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.glass-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.glass-card p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.services-detail {
  padding: 8rem 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.glass-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Feature cards with grid decorator */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature-card {
  text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.06),
    0 4px 24px rgba(0,0,0,0.2);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}
.feature-card:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 100%);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.08),
    0 8px 32px rgba(0,0,0,0.3);
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.feature-decorator {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 0.5rem;
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%);
}
.feature-decorator-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}
.feature-decorator-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-left: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
}

/* ============================================
   PROCESS — 1, 2, 3 steps
   ============================================ */

.process {
  padding: 8rem 0;
  background: transparent;
}

.process-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 3rem;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 0 2rem;
}

.process-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.08);
  margin-bottom: 1rem;
  line-height: 1;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.process-step p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.process-divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.08), transparent);
  flex-shrink: 0;
  margin-top: 1rem;
}

/* ============================================
   WORK
   ============================================ */

.work {
  padding: 8rem 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}


.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

.work-link {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  transition: color 0.3s;
}
.work-link:hover { color: var(--text); }

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.work-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.work-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/11;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.04),
    0 4px 20px rgba(0,0,0,0.3);
  transition: all 0.5s var(--ease);
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.06),
    0 20px 50px rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.15);
}

/* ---- Hero-style work cards ---- */
.work-card .card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--ease);
}
.work-card:hover .card-bg { transform: scale(1.04); }
.work-card .card-overlay { position: absolute; inset: 0; z-index: 1; }

.work-card .mini-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.1rem;
}
.work-card .mini-nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.work-card .mini-nav-links span { opacity: 0.35; }
.work-card:hover .mini-nav-links span { opacity: 0.5; }

.work-card .hero-content { position: absolute; z-index: 2; }
.work-card .hero-bottom { position: absolute; z-index: 2; }

/* -- TSC: Luxury editorial -- */
.card-tsc .card-bg { background-image: url('../images/hero-tsc.png'); }
.card-tsc .card-overlay {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(15,12,8,0.2) 0%, rgba(15,12,8,0.65) 100%),
    linear-gradient(to top, rgba(15,12,8,0.7) 0%, transparent 50%);
}
.card-tsc .mini-nav { border-bottom: 1px solid rgba(210,185,130,0.08); }
.card-tsc .mini-nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.55rem; font-weight: 600;
  color: rgba(255,255,255,0.6); letter-spacing: 0.03em; white-space: nowrap;
}
.card-tsc .mini-nav-links span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.36rem; color: rgba(255,255,255,0.5); letter-spacing: 0.04em;
}
.card-tsc .mini-nav-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.35rem; font-weight: 500;
  color: rgba(210,185,130,0.7);
  border: 1px solid rgba(210,185,130,0.25);
  padding: 0.15rem 0.45rem; border-radius: 2px;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}
.card-tsc .hero-content {
  inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem;
}
.card-tsc .hero-title {
  font-family: 'Bodoni Moda', serif;
  font-size: 2.2rem; font-weight: 800;
  color: #fff; line-height: 0.85;
  letter-spacing: -0.02em; text-transform: uppercase;
  font-variation-settings: 'opsz' 72;
}
.card-tsc .hero-title em {
  display: block;
  font-family: 'Pinyon Script', cursive;
  font-style: normal; font-weight: 400;
  text-transform: none; letter-spacing: 0.02em;
  font-size: 1.6rem;
  color: rgba(210,185,130,0.8);
  margin-top: 0.15rem;
}
.card-tsc .hero-bottom {
  bottom: 1.1rem; left: 0; right: 0;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
}
.card-tsc .hero-divider {
  width: 30px; height: 1px;
  background: rgba(210,185,130,0.4);
  margin-bottom: 0.5rem;
}
.card-tsc .hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.42rem; text-transform: uppercase;
  letter-spacing: 0.25em; color: rgba(255,255,255,0.35); font-weight: 400;
}
.card-tsc .hero-cta {
  margin-top: 0.6rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.38rem; font-weight: 500;
  color: rgba(210,185,130,0.75);
  border: 1px solid rgba(210,185,130,0.3);
  padding: 0.25rem 0.8rem; border-radius: 2px;
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* -- Plumber: Bold industrial -- */
.card-plumber .card-bg { background-image: url('../images/hero-plumber.png'); }
.card-plumber .card-overlay {
  background: radial-gradient(ellipse at 50% 50%,
    rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.85) 100%);
}
.card-plumber .mini-nav { border-bottom: 1px solid rgba(255,255,255,0.04); }
.card-plumber .mini-nav-logo {
  font-family: 'Archivo', sans-serif;
  font-size: 0.5rem; font-weight: 800;
  color: rgba(255,255,255,0.6); letter-spacing: -0.02em;
  text-transform: uppercase; white-space: nowrap;
}
.card-plumber .mini-nav-links span {
  font-family: 'Space Mono', monospace;
  font-size: 0.34rem; color: rgba(255,255,255,0.5); letter-spacing: 0.02em;
}
.card-plumber .mini-nav-cta {
  font-family: 'Archivo', sans-serif;
  font-size: 0.3rem; font-weight: 700;
  color: #fff; background: #dc2626;
  padding: 0.18rem 0.5rem; border-radius: 3px;
  letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}
.card-plumber .hero-content,
.card-electrician .hero-content {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.card-plumber .hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.35rem; color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em; margin-bottom: 0.3rem;
}
.card-plumber .hero-title {
  font-family: 'Archivo', sans-serif;
  font-size: 1.6rem; font-weight: 900;
  color: #fff; line-height: 0.9;
  letter-spacing: -0.04em; text-transform: uppercase;
}
.card-plumber .hero-title span {
  display: block; font-size: 0.85rem; font-weight: 500;
  color: rgba(255,255,255,0.4); letter-spacing: -0.01em;
  margin-top: 0.15rem; text-transform: none;
}
.card-plumber .hero-cta {
  display: inline-block; margin-top: 0.6rem;
  font-family: 'Archivo', sans-serif;
  font-size: 0.35rem; font-weight: 700;
  color: #0a0a0a; background: #fff;
  padding: 0.22rem 0.7rem; border-radius: 3px;
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* -- Electrician: Warm architectural -- */
.card-electrician .card-bg { background-image: url('../images/hero-electrician.png'); }
.card-electrician .card-overlay {
  background: radial-gradient(ellipse at 50% 50%,
    rgba(5,8,18,0.2) 0%, rgba(5,8,18,0.55) 45%, rgba(5,8,18,0.8) 100%);
}
.card-electrician .mini-nav { border-bottom: 1px solid rgba(245,200,100,0.06); }
.card-electrician .mini-nav-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 0.5rem; font-weight: 700;
  color: rgba(255,255,255,0.6); letter-spacing: -0.01em; white-space: nowrap;
}
.card-electrician .mini-nav-links span {
  font-family: 'Outfit', sans-serif;
  font-size: 0.3rem; color: rgba(255,255,255,0.5);
  font-weight: 400; letter-spacing: 0.02em;
}
.card-electrician .mini-nav-cta {
  font-family: 'Outfit', sans-serif;
  font-size: 0.3rem; font-weight: 600;
  color: rgba(245,200,100,0.8);
  border: 1px solid rgba(245,200,100,0.25);
  padding: 0.15rem 0.45rem; border-radius: 3px;
  letter-spacing: 0.03em; white-space: nowrap;
}
.card-electrician .hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem; font-weight: 700;
  color: #fff; line-height: 1.1; letter-spacing: -0.02em;
}
.card-electrician .hero-title em {
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: italic; font-weight: 400;
  font-size: 1.3rem; color: rgba(245,200,100,0.65);
  letter-spacing: 0.01em; margin-top: 0.1rem;
}
.card-electrician .hero-cta {
  display: inline-block; margin-top: 0.65rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.35rem; font-weight: 600;
  color: rgba(245,200,100,0.75);
  border: 1px solid rgba(245,200,100,0.25);
  padding: 0.22rem 0.7rem; border-radius: 3px;
  letter-spacing: 0.05em;
}

/* -- Cafe: Artisan warmth -- */
.card-cafe .card-bg {
  background-image: url('../images/hero-cafe.png');
  background-position: 65% center;
}
.card-cafe .card-overlay {
  background: linear-gradient(to right,
    rgba(12,10,8,0.92) 0%, rgba(12,10,8,0.55) 40%,
    rgba(12,10,8,0.1) 70%, transparent 100%);
}
.card-cafe .mini-nav { border-bottom: 1px solid rgba(200,165,90,0.06); }
.card-cafe .mini-nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 0.55rem; font-weight: 400; font-style: italic;
  color: rgba(245,240,232,0.6);
  font-variation-settings: 'opsz' 24; white-space: nowrap;
}
.card-cafe .mini-nav-logo b {
  font-style: italic; font-weight: 400;
  color: rgba(200,165,90,0.7);
}
.card-cafe .mini-nav-links span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.3rem; color: rgba(255,255,255,0.5); letter-spacing: 0.03em;
}
.card-cafe .mini-nav-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.34rem; font-weight: 600;
  color: #141210; background: rgba(200,165,90,0.8);
  padding: 0.15rem 0.45rem; border-radius: 3px;
  letter-spacing: 0.04em; white-space: nowrap;
}
.card-cafe .hero-content {
  top: 50%; left: 1.5rem;
  transform: translateY(-50%);
}
.card-cafe .hero-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.35rem; text-transform: uppercase;
  letter-spacing: 0.22em; color: rgba(200,165,90,0.5);
  margin-bottom: 0.5rem; font-weight: 500;
}
.card-cafe .hero-title {
  font-family: 'Fraunces', serif;
  font-size: 1.7rem; font-weight: 400;
  color: #f5f0e8; line-height: 0.9;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 40;
}
.card-cafe .hero-title em {
  font-style: italic; font-weight: 300;
  color: #c8a55a;
  font-variation-settings: 'opsz' 72;
}
.card-cafe .hero-cta {
  display: inline-block; margin-top: 0.6rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.32rem; font-weight: 600;
  color: #141210; background: rgba(200,165,90,0.85);
  padding: 0.2rem 0.6rem; border-radius: 4px;
  letter-spacing: 0.04em;
}

/* ============================================
   CTA
   ============================================ */

.cta {
  padding: 10rem 0;
  background: rgba(5,5,5,0.85);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.1;
  filter: contrast(1.3);
}
.cta-content { position: relative; z-index: 1; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 1.2rem;
}
.cta-title .serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  text-transform: none;
  color: rgba(255,255,255,0.35);
}
.cta-desc { color: var(--text-dim); margin-bottom: 2rem; }

.btn-primary {
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.9rem 2rem;
  border-radius: 100px;
  background: #fff;
  color: #050505;
  transition: all 0.3s;
}
.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,255,255,0.08);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  border-top: 1px solid var(--glass-border);
  padding: 2.5rem 0;
  background: rgba(5,5,5,0.9);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-brand svg { width: 14px; height: 14px; color: var(--text-faint); }
.footer-brand img.footer-lockup { height: 16px; width: auto; opacity: 0.35; }
.footer-email { font-size: 0.6rem; color: var(--text-faint); transition: color 0.3s; }
.footer-email:hover { color: var(--text-dim); }
.footer-brand span {
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-faint);
}
.footer-right { font-size: 0.6rem; color: var(--text-faint); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.03);
  font-size: 0.5rem;
  color: var(--text-faint);
}

/* ============================================
   PANEL STACKING
   ============================================ */

.panel { position: relative; }

/* ============================================
   ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-scale {
  opacity: 0; transform: scale(0.92);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.hero-reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.hero-reveal.visible { opacity: 1; transform: translateY(0); }

.rd1 { transition-delay: 0.08s; }
.rd2 { transition-delay: 0.16s; }
.rd3 { transition-delay: 0.24s; }
.rd4 { transition-delay: 0.32s; }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: rgba(5,5,5,0.97);
  backdrop-filter: blur(30px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  :root { --container: min(1280px, 100% - 2rem); }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero { height: 90vh; }
  .hero-title { font-size: clamp(1.6rem, 6vw, 2.5rem); letter-spacing: 0.15em; }
  .hero-visual { width: 300px; height: 300px; }
  .hero-keycap { width: 240px; height: 240px; }
  .hero-detail { display: none; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .problem { padding: 5rem 0; }
  .problem-punch { font-size: 1.3rem; }

  .glass-grid { grid-template-columns: 1fr; }
  .glass-grid-4 { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .services { padding: 5rem 0; }
  .process-grid { flex-direction: column; gap: 0; }
  .process-divider { width: 60px; height: 1px; margin: 1rem auto; }
  .process-step { padding: 1.5rem 0; }
  .hero-ctas { flex-direction: column; gap: 0.75rem; }
  .hero-tagline { white-space: normal; }

  .work-grid, .work-grid-4 { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr; }
  .risk-reversal-grid { grid-template-columns: 1fr 1fr; }
  .risk-reversal { padding: 5rem 0; }
  .cta-form { padding: 5rem 0; }
  .homepage-form .form-submit-btn { align-self: center; }
  .work { padding: 5rem 0; }
  .work-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  .cta { padding: 5rem 0; }

  .footer-inner, .footer-bottom {
    flex-direction: column; gap: 0.5rem; text-align: center;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .loader { display: none; }
  body::after { display: none; }
  .reveal, .reveal-right, .reveal-left, .reveal-scale, .hero-reveal {
    opacity: 1; transform: none;
  }
}
