/* ============================================================
   style.css - Ramsell Construction
   Design tokens, brand colors, all component styles
   Light mode ONLY - no dark mode
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
  /* --- Brand Colors --- */
  --brand-blue:          #2B7BB9;
  --brand-blue-dark:     #1D5F96;
  --brand-blue-deeper:   #1A4F7D;
  --brand-blue-light:    #D6E8F5;
  --brand-orange:        #E8852A;
  --brand-orange-dark:   #C96D1A;
  --brand-orange-light:  #FAE8D5;

  /* --- Surfaces --- */
  --color-bg:            #FAFAF8;
  --color-surface:       #FFFFFF;
  --color-surface-2:     #F5F4F0;
  --color-surface-offset:#EDECE8;
  --color-divider:       #E2E0DA;
  --color-border:        oklch(from #2B7BB9 l c h / 0.12);

  /* --- Text --- */
  --color-text:          #1A1A18;
  --color-text-muted:    #5A5A56;
  --color-text-faint:    #9A9A96;
  --color-text-inverse:  #FAFAF8;

  /* --- Primary = Brand Blue --- */
  --color-primary:        var(--brand-blue);
  --color-primary-hover:  var(--brand-blue-dark);
  --color-primary-active: var(--brand-blue-deeper);

  /* --- Accent = Brand Orange --- */
  --color-accent:         var(--brand-orange);
  --color-accent-hover:   var(--brand-orange-dark);

  /* --- Type Scale (fluid) --- */
  --text-xs:    clamp(0.75rem,  0.7rem   + 0.25vw, 0.875rem);
  --text-sm:    clamp(0.875rem, 0.8rem   + 0.35vw, 1rem);
  --text-base:  clamp(1rem,     0.9rem   + 0.5vw,  1.125rem);
  --text-lg:    clamp(1.125rem, 0.95rem  + 0.85vw, 1.5rem);
  --text-xl:    clamp(1.5rem,   1rem     + 1.5vw,  2.25rem);
  --text-2xl:   clamp(2rem,     1.2rem   + 2.5vw,  3.5rem);
  --text-3xl:   clamp(2.5rem,   1rem     + 4vw,    5rem);
  --text-hero:  clamp(3rem,     0.5rem   + 7vw,    8rem);

  /* --- 4px Spacing System --- */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

  /* --- Radius --- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
  --t-fast:    180ms cubic-bezier(0.16, 1, 0.3, 1);
  --t-med:     300ms cubic-bezier(0.16, 1, 0.3, 1);
  --t-slow:    500ms cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Shadows (warm-tinted) --- */
  --shadow-sm: 0 1px 3px oklch(0.18 0.02 240 / 0.08), 0 1px 2px oklch(0.18 0.02 240 / 0.05);
  --shadow-md: 0 4px 16px oklch(0.18 0.02 240 / 0.10), 0 2px 6px oklch(0.18 0.02 240 / 0.06);
  --shadow-lg: 0 12px 40px oklch(0.18 0.02 240 / 0.14), 0 4px 16px oklch(0.18 0.02 240 / 0.08);
  --shadow-xl: 0 24px 64px oklch(0.18 0.02 240 / 0.18), 0 8px 24px oklch(0.18 0.02 240 / 0.10);

  /* --- Content Widths --- */
  --content-narrow:  640px;
  --content-default: 960px;
  --content-wide:    1280px;
  --content-full:    100%;

  /* --- Fonts --- */
  --font-display: 'Barlow Condensed', 'Impact', sans-serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;

  /* --- Nav height --- */
  --nav-height: 72px;
}

/* ============================================================
   GLOBAL LAYOUT UTILITIES
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}
@media (min-width: 1024px) {
  .container { padding-inline: var(--space-12); }
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .reveal {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

.reveal-clip {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .reveal-clip {
    clip-path: inset(8% 0 0 0);
    opacity: 0;
    animation: reveal-clip-anim linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
}

@keyframes reveal-clip-anim {
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}

/* Stagger delays for grid children */
.stagger-children > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children > *:nth-child(2) { animation-delay: 50ms; }
.stagger-children > *:nth-child(3) { animation-delay: 100ms; }
.stagger-children > *:nth-child(4) { animation-delay: 150ms; }
.stagger-children > *:nth-child(5) { animation-delay: 200ms; }
.stagger-children > *:nth-child(6) { animation-delay: 250ms; }
.stagger-children > *:nth-child(7) { animation-delay: 300ms; }
.stagger-children > *:nth-child(8) { animation-delay: 350ms; }
.stagger-children > *:nth-child(9) { animation-delay: 400ms; }
.stagger-children > *:nth-child(10) { animation-delay: 450ms; }
.stagger-children > *:nth-child(11) { animation-delay: 500ms; }
.stagger-children > *:nth-child(12) { animation-delay: 550ms; }

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--t-med), box-shadow var(--t-med), backdrop-filter var(--t-med);
}

.site-header.scrolled {
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.site-header.at-top {
  background: transparent;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (min-width: 1024px) {
  .nav-inner { padding-inline: var(--space-12); }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo-name {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color var(--t-fast);
}

.site-header.at-top .nav-logo-name {
  color: #fff;
}

.nav-logo-sub {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--t-fast);
}

.site-header.at-top .nav-logo-sub {
  color: rgba(255,255,255,0.7);
}

.nav-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color var(--t-fast);
  position: relative;
  padding-block: var(--space-1);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast);
  border-radius: var(--radius-full);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.site-header.at-top .nav-links a {
  color: rgba(255,255,255,0.8);
}

.site-header.at-top .nav-links a:hover {
  color: #fff;
}

.nav-cta {
  display: none;
}

@media (min-width: 768px) {
  .nav-cta { display: flex; }
}

.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: background var(--t-fast);
  cursor: pointer;
}

@media (min-width: 768px) {
  .nav-hamburger { display: none; }
}

.nav-hamburger:hover {
  background: var(--color-surface-offset);
}

.ham-bar {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition: transform var(--t-fast), opacity var(--t-fast), background var(--t-fast);
  transform-origin: center;
}

.site-header.at-top .ham-bar {
  background: #fff;
}

.nav-hamburger[aria-expanded="true"] .ham-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] .ham-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger[aria-expanded="true"] .ham-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  top: var(--nav-height);
  background: var(--color-surface);
  z-index: 99;
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transform: translateX(100%);
  transition: transform var(--t-med);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
  transition: color var(--t-fast);
}

.mobile-menu a:hover {
  color: var(--color-primary);
}

.mobile-menu-cta {
  margin-top: auto;
  padding-top: var(--space-8);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition:
    background var(--t-fast),
    color var(--t-fast),
    box-shadow var(--t-fast),
    transform var(--t-fast);
  min-height: 44px;
  min-width: 44px;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-accent:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-ghost:hover {
  background: var(--brand-blue-light);
  transform: translateY(-1px);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
  min-height: 52px;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */

.section-header {
  margin-bottom: clamp(var(--space-12), 5vw, var(--space-20));
}

.section-header.centered {
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: clamp(var(--space-12), 5vw, var(--space-20));
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1.05;
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 60ch;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Multi-layer overlay for drama + readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      in oklab,
      rgba(10, 20, 40, 0.72) 0%,
      rgba(10, 20, 40, 0.45) 50%,
      rgba(10, 20, 40, 0.60) 100%
    );
  z-index: 1;
}

/* Subtle texture grain overlay */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--space-8) var(--space-6);
  max-width: 1100px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: hero-fade-up 0.8s var(--ease-out) 0.2s forwards;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--brand-orange);
  opacity: 0.7;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: hero-fade-up 0.9s var(--ease-out) 0.4s forwards;
}

.hero-title span {
  color: var(--brand-orange);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  margin-bottom: clamp(var(--space-10), 4vw, var(--space-16));
  opacity: 0;
  animation: hero-fade-up 0.9s var(--ease-out) 0.6s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  opacity: 0;
  animation: hero-fade-up 0.9s var(--ease-out) 0.8s forwards;
}

.hero-stats {
  position: absolute;
  bottom: var(--space-16);
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  opacity: 0;
  animation: hero-fade-up 0.9s var(--ease-out) 1.0s forwards;
}

@media (max-width: 480px) {
  .hero-stats {
    gap: var(--space-6);
    bottom: var(--space-20);
  }
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.hero-stat-number span {
  color: var(--brand-orange);
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: var(--space-1);
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  animation: hero-fade-up 0.9s var(--ease-out) 1.2s forwards;
}

.scroll-indicator-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-full);
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-indicator-dot {
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-full);
  animation: scroll-dot 2s ease-in-out infinite;
}

.scroll-indicator-text {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

@keyframes scroll-dot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
}

@keyframes hero-fade-up {
  from { opacity: 0; clip-path: inset(5% 0 0 0); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */

.services {
  background: var(--color-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: var(--space-4);
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition:
    box-shadow var(--t-fast),
    border-color var(--t-fast),
    transform var(--t-fast);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklch, var(--color-primary) 30%, transparent);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-blue-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
  transition: background var(--t-fast), color var(--t-fast);
}

.service-card:hover .service-icon {
  background: var(--color-primary);
  color: #fff;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.service-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: 1.15;
}

.service-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: none;
}

/* ============================================================
   PROJECTS PORTFOLIO
   ============================================================ */

.portfolio {
  background: var(--color-surface-2);
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: clamp(var(--space-10), 4vw, var(--space-16));
}

.filter-btn {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-divider);
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: pointer;
  transition:
    background var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast),
    box-shadow var(--t-fast);
  min-height: 36px;
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--brand-blue-light);
}

.filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: var(--space-6);
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

.project-card {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  cursor: zoom-in;
  transition:
    box-shadow var(--t-fast),
    transform var(--t-fast);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.project-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.project-card[data-hidden="true"] {
  display: none;
}

.project-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.project-card:hover .project-thumb img {
  transform: scale(1.04);
}

.project-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(in oklab, rgba(10,20,40,0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--t-med);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card:hover .project-thumb-overlay {
  opacity: 1;
}

.project-thumb-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transform: scale(0.8);
  transition: transform var(--t-fast), background var(--t-fast);
}

.project-card:hover .project-thumb-icon {
  transform: scale(1);
  background: rgba(255,255,255,0.3);
}

.project-thumb-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.project-count-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: rgba(10,20,40,0.7);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  letter-spacing: 0.04em;
}

.project-info {
  padding: var(--space-5) var(--space-6);
}

.project-category-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.project-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: var(--space-2);
}

.project-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: none;
}

.project-view-cta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  transition: gap var(--t-fast), color var(--t-fast);
}

.project-card:hover .project-view-cta {
  gap: var(--space-3);
  color: var(--color-primary-hover);
}

.project-view-cta svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  flex-shrink: 0;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 20, 0.95);
  cursor: zoom-out;
}

.lightbox-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: var(--space-16) var(--space-6) var(--space-8);
}

@media (min-width: 768px) {
  .lightbox-inner {
    padding: var(--space-20) var(--space-16) var(--space-12);
  }
}

.lightbox-img-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.lightbox-img {
  max-height: 72vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transition: opacity var(--t-med), transform var(--t-med);
}

.lightbox-img.transitioning {
  opacity: 0;
  transform: scale(0.97);
}

.lightbox-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(5,10,20,0.8) 0%, transparent 100%);
}

.lightbox-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.lightbox-counter {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.lightbox-close {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast);
  flex-shrink: 0;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-nav svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.lightbox-prev {
  left: var(--space-4);
}

.lightbox-prev:hover {
  transform: translateY(-50%) translateX(-2px);
}

.lightbox-next {
  right: var(--space-4);
}

.lightbox-next:hover {
  transform: translateY(-50%) translateX(2px);
}

@media (min-width: 768px) {
  .lightbox-prev { left: var(--space-8); }
  .lightbox-next { right: var(--space-8); }
}

.lightbox-dots {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
  max-width: 400px;
}

.lightbox-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  border: none;
}

.lightbox-dot.active {
  background: var(--brand-orange);
  transform: scale(1.3);
}

.lightbox-dot:hover {
  background: rgba(255,255,255,0.5);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */

.about {
  background: var(--color-bg);
}

.about-inner {
  display: grid;
  gap: clamp(var(--space-10), 5vw, var(--space-20));
  align-items: center;
}

@media (min-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .about-inner {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-20);
  }
}

.about-content {}

.about-content .section-title {
  margin-bottom: var(--space-6);
}

.about-lead {
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: 1.65;
  font-weight: 500;
  margin-bottom: var(--space-6);
  max-width: 55ch;
}

.about-body {
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-6);
  max-width: 55ch;
}

.about-body + .about-body {
  margin-top: calc(-1 * var(--space-2));
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.about-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--brand-blue-light);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary-hover);
}

.about-badge svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.about-visual {
  position: relative;
}

.about-image-main {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

@media (max-width: 767px) {
  .about-image-main {
    aspect-ratio: 16 / 9;
  }
}

.about-image-accent {
  position: absolute;
  bottom: calc(-1 * var(--space-6));
  left: calc(-1 * var(--space-6));
  width: 55%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--color-bg);
}

@media (max-width: 767px) {
  .about-image-accent { display: none; }
}

.about-quote {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-xl);
  max-width: 200px;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

@media (max-width: 767px) {
  .about-quote { display: none; }
}

.about-quote::after {
  content: '"';
  position: absolute;
  top: -12px;
  left: var(--space-4);
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--brand-orange);
  opacity: 0.8;
}

/* ============================================================
   PROCESS SECTION
   ============================================================ */

.process {
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.process::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.process .section-title {
  color: #fff;
}

.process .section-tag {
  color: var(--brand-orange);
}

.process .section-tag::before {
  background: var(--brand-orange);
}

.process .section-desc {
  color: rgba(255,255,255,0.7);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: var(--space-6);
  margin-top: clamp(var(--space-10), 4vw, var(--space-16));
  position: relative;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    right: calc(-1 * var(--space-3));
    width: var(--space-6);
    height: 2px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
  }
}

.process-step {
  position: relative;
  padding: var(--space-6);
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
}

.process-step-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 700;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.process-step-icon {
  width: 44px;
  height: 44px;
  background: var(--brand-orange);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: #fff;
}

.process-step-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.process-step-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: var(--space-3);
}

.process-step-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  max-width: none;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */

.contact {
  background: var(--color-bg);
}

.contact-inner {
  display: grid;
  gap: clamp(var(--space-10), 5vw, var(--space-16));
}

@media (min-width: 768px) {
  .contact-inner {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

.contact-info {}

.contact-info .section-title {
  margin-bottom: var(--space-4);
}

.contact-info .section-desc {
  margin-bottom: var(--space-8);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  text-decoration: none;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
  background: var(--color-surface);
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast),
    transform var(--t-fast);
}

a.contact-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--brand-blue-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.contact-item-content {}

.contact-item-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-1);
}

.contact-item-value {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
}

.contact-area-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background: var(--brand-orange-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border-left: 3px solid var(--brand-orange);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-divider);
}

.form-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

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

@media (min-width: 480px) {
  .form-row.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1.5px solid var(--color-divider);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast);
  min-height: 44px;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-primary) 15%, transparent);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

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

.form-submit-wrap {
  margin-top: var(--space-6);
}

.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
  text-align: center;
}

/* Form success state */
.form-success {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  display: none;
}

.form-success.visible {
  display: block;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  background: color-mix(in oklch, var(--color-primary) 12%, transparent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: var(--color-primary);
}

.form-success-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.form-success-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-success-msg {
  color: var(--color-text-muted);
  max-width: 40ch;
  margin: 0 auto;
}

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

.site-footer {
  background: #111318;
  color: rgba(255,255,255,0.7);
  padding: clamp(var(--space-12), 5vw, var(--space-20)) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  margin-bottom: var(--space-5);
}

.footer-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  opacity: 0.9;
}

.footer-logo-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
}

.footer-logo-sub {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-tagline {
  font-style: italic;
  color: rgba(255,255,255,0.5);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
  max-width: 36ch;
  line-height: 1.6;
}

.footer-usps {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-usp {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
}

.footer-usp svg {
  width: 14px;
  height: 14px;
  color: var(--brand-orange);
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  flex-shrink: 0;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: var(--space-5);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--t-fast);
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.footer-contact-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
}

.footer-contact-value {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
}

.footer-contact-value a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

.footer-contact-value a:hover {
  color: #fff;
}

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: var(--space-8);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  max-width: none;
}

.footer-copy strong {
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
}

.footer-badge svg {
  width: 12px;
  height: 12px;
  stroke: var(--brand-orange);
  fill: none;
  stroke-width: 2;
}

/* ============================================================
   UTILITY: Orange accent bar on section transitions
   ============================================================ */

.accent-bar {
  height: 4px;
  background: linear-gradient(in oklab, var(--brand-orange), var(--brand-blue));
}

/* ============================================================
   DELIGHT: Animated orange underline on headings
   ============================================================ */

.underline-accent {
  position: relative;
  display: inline-block;
}

.underline-accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-orange);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}

.underline-accent.in-view::after {
  transform: scaleX(1);
}
