/* ============================================
   COASTAL CABINETS INC. — Premium Design System
   Typography: DM Serif Display + Outfit
   Palette: Warm neutrals, charcoal, stone, cream
   ============================================ */

/* ===== Self-hosted Fonts ===== */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-serif-display-latin-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-serif-display-latin-ext-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-serif-display-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-serif-display-latin-ext-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/outfit-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/outfit-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Colors — warm, muted, premium */
  --color-bg: #F5F0EB;
  --color-bg-deep: #EDE7E0;
  --color-bg-dark: #2C2825;
  --color-surface: #FFFFFF;
  --color-text: #2C2825;
  --color-text-muted: #7A746D;
  --color-text-light: #A39E97;
  --color-text-on-dark: #F5F0EB;
  --color-accent: #8B7355;
  --color-accent-hover: #74604A;
  --color-border: #D9D3CC;
  --color-border-light: #E8E3DD;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;

  /* Layout */
  --max-width: 1400px;
  --nav-height: 80px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.3s;
  --duration-medium: 0.6s;
  --duration-slow: 1s;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== Typography ===== */
.section-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.9375rem 2.25rem;
  border-radius: 0;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn--primary:hover {
  background: var(--color-accent);
}

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

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

.btn--large {
  padding: 1.125rem 3rem;
  font-size: 0.9375rem;
}

/* ===== Skip Link (Accessibility) ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text);
  color: var(--color-bg);
  padding: 0.75rem 1.5rem;
  z-index: 200;
  font-size: 0.875rem;
  font-weight: 500;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.nav.scrolled {
  background: rgba(245, 240, 235, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border-light);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.nav__links a:hover {
  color: var(--color-text);
}

.nav__cta {
  padding: 0.625rem 1.5rem;
  border: 1px solid var(--color-border);
  transition: all var(--duration-fast) var(--ease-out) !important;
}

.nav__cta:hover {
  border-color: var(--color-text) !important;
  color: var(--color-text) !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: all var(--duration-fast) var(--ease-out);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--nav-height) + var(--space-xl)) var(--space-lg) var(--space-xl);
  position: relative;
  overflow: hidden;
}

/* Video background */
.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Radial inward gradient mask — fades edges into the page background */
.hero__video-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 70% at center,
      rgba(245, 240, 235, 0.25) 0%,
      rgba(245, 240, 235, 0.5) 35%,
      rgba(245, 240, 235, 0.82) 60%,
      var(--color-bg) 80%
    );
}

.hero__content {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__text--centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__text {
  padding-right: 0;
}

.hero__label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.25rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.hero__title em {
  font-style: italic;
  color: var(--color-accent);
}

.hero__subtitle {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 500px;
  margin-bottom: var(--space-xl);
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
}

.btn--ghost-hero {
  border-color: var(--color-text);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.hero__scroll-line {
  width: 48px;
  height: 1px;
  background: var(--color-border);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  animation: scrollLine 2s var(--ease-out) infinite;
}

@keyframes scrollLine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ===== Scroll Video ===== */
.scroll-video {
  height: 300vh;
  position: relative;
  background: var(--color-bg-dark);
}

.scroll-video__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-video__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: contents;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.scroll-video__overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Radial gradient mask — blends scroll video edges into the page, like the hero */
.scroll-video__mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 80% 70% at center,
      transparent 0%,
      rgba(44, 40, 37, 0.12) 35%,
      rgba(44, 40, 37, 0.45) 55%,
      var(--color-bg-dark) 75%
    );
}

/* Top fade into cream hero above */
.scroll-video__fade-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 15vh;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--color-bg) 0%,
    rgba(245, 240, 235, 0.6) 30%,
    rgba(245, 240, 235, 0.15) 65%,
    transparent 100%
  );
}

/* Bottom fade into cream stats below */
.scroll-video__fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 15vh;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    var(--color-bg) 0%,
    rgba(245, 240, 235, 0.6) 30%,
    rgba(245, 240, 235, 0.15) 65%,
    transparent 100%
  );
}

.scroll-video__text {
  position: absolute;
  top: 50%;
  left: var(--space-2xl);
  transform: translateY(-50%);
  max-width: 520px;
  opacity: 0;
  transition: opacity 0.1s linear;
}

.scroll-video__text.visible {
  opacity: 1;
}

.scroll-video__text h2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-md);
}

.scroll-video__text h2 em {
  font-style: italic;
  color: var(--color-accent);
}

.scroll-video__text .section-label {
  color: rgba(245, 240, 235, 0.5);
  margin-bottom: var(--space-md);
}

.scroll-video__desc {
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(245, 240, 235, 0.6);
  max-width: 400px;
}

/* Text backdrop for legibility */
.scroll-video__text::before {
  content: '';
  position: absolute;
  top: -5rem;
  left: -6rem;
  right: -6rem;
  bottom: -5rem;
  background: radial-gradient(
    ellipse at center,
    rgba(44, 40, 37, 0.75) 0%,
    rgba(44, 40, 37, 0.45) 50%,
    rgba(44, 40, 37, 0.15) 70%,
    transparent 85%
  );
  z-index: -1;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .scroll-video {
    height: 250vh;
  }

  .scroll-video__text {
    left: var(--space-lg);
    right: var(--space-lg);
    max-width: none;
  }
}

/* ===== Stats ===== */
.stats {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-xl) var(--space-lg);
}

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

.stats__item {
  text-align: center;
  flex: 1;
}

.stats__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 0.25rem;
}

.stats__label {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.stats__divider {
  width: 1px;
  height: 48px;
  background: var(--color-border);
}

/* ===== About ===== */
.about {
  padding: var(--space-3xl) var(--space-lg);
}

.about__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about__image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.about__image img {
  transition: transform 6s var(--ease-out);
}

.about__image:hover img {
  transform: scale(1.03);
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about__text p {
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: 1.8;
}

.about__text p:first-child {
  font-size: 1.1875rem;
  color: var(--color-text);
}

/* ===== Services ===== */
.services {
  padding: var(--space-3xl) var(--space-lg);
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.services .section-label {
  color: var(--color-accent);
}

.services .section-title {
  color: var(--color-text-on-dark);
}

.services__header {
  max-width: var(--max-width);
  margin: 0 auto var(--space-2xl);
  max-width: 600px;
}

.services__intro {
  font-size: 1.125rem;
  font-weight: 300;
  color: rgba(245, 240, 235, 0.6);
  line-height: 1.7;
}

.services__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.services__card {
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid rgba(245, 240, 235, 0.08);
  transition: background var(--duration-fast) var(--ease-out);
}

.services__card:hover {
  background: rgba(245, 240, 235, 0.04);
}

.services__number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: rgba(245, 240, 235, 0.12);
  display: block;
  margin-bottom: var(--space-lg);
  line-height: 1;
}

.services__card-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.services__card p {
  font-size: 0.9375rem;
  font-weight: 300;
  color: rgba(245, 240, 235, 0.55);
  line-height: 1.7;
}

/* ===== Portfolio ===== */
.portfolio {
  padding: var(--space-3xl) var(--space-lg);
}

.portfolio__header {
  max-width: var(--max-width);
  margin: 0 auto var(--space-2xl);
}

.portfolio__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: var(--space-sm);
}

.portfolio__item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}

.portfolio__item--wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.portfolio__item--tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.portfolio__item img {
  transition: transform var(--duration-medium) var(--ease-out);
}

.portfolio__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44, 40, 37, 0);
  transition: background var(--duration-fast) var(--ease-out);
}

.portfolio__item:hover img {
  transform: scale(1.06);
}

.portfolio__item:hover::after {
  background: rgba(44, 40, 37, 0.15);
}

/* ===== Instagram CTA ===== */
.instagram-cta {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.instagram-cta__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
}

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

.instagram-cta__link:hover {
  color: var(--color-text);
  background: var(--color-bg-deep);
}

.instagram-cta__link svg:last-child {
  transition: transform var(--duration-fast) var(--ease-out);
}

.instagram-cta__link:hover svg:last-child {
  transform: translate(2px, -2px);
}

/* Nav social icon */
.nav__social {
  display: flex;
  align-items: center;
  opacity: 0.5;
  transition: opacity var(--duration-fast) var(--ease-out) !important;
}

.nav__social:hover {
  opacity: 1 !important;
}

/* ===== CTA Banner ===== */
.cta {
  padding: var(--space-3xl) var(--space-lg);
  background: var(--color-bg-deep);
}

.cta__inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.cta__text {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

/* ===== Contact ===== */
.contact {
  padding: var(--space-3xl) var(--space-lg);
}

.contact__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.contact__detail-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.375rem;
}

.contact__detail p {
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.contact__detail a {
  transition: color var(--duration-fast) var(--ease-out);
}

.contact__detail a:hover {
  color: var(--color-accent);
}

/* Form */
.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form__group--full {
  grid-column: span 2;
}

.form__group label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.form__group input,
.form__group textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--duration-fast) var(--ease-out);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: var(--color-text-light);
}

.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--color-accent);
}

.form__group textarea {
  resize: vertical;
  min-height: 140px;
}

.contact__form .btn {
  grid-column: span 2;
  justify-self: start;
  margin-top: var(--space-xs);
}

/* Select */
.form__group select {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  padding: 0.875rem 2.5rem 0.875rem 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--duration-fast) var(--ease-out);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  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='%237A746D' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  width: 100%;
}

.form__group select:focus {
  border-color: var(--color-accent);
}

/* Span-based group label (budget, timeline) */
.form__label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

/* Radio pill group */
.form__radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.125rem;
}

.form__radio-label {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  color: inherit;
}

.form__radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.form__radio-label span {
  display: block;
  padding: 0.625rem 1.125rem;
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-muted);
  background: var(--color-surface);
  transition: border-color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
  user-select: none;
}

.form__radio-label:hover span {
  border-color: var(--color-accent);
  color: var(--color-text);
}

.form__radio-label input[type="radio"]:checked + span {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff;
}

/* Checkbox acknowledgment */
.form__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--color-text-muted);
}

.form__checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  position: relative;
  transition: background var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.form__checkbox-label input[type="checkbox"]:checked {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.form__checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: 1.5px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.form__checkbox-label span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ===== FAQ ===== */
.faq {
  padding: var(--space-3xl) var(--space-lg);
  background: var(--color-surface);
}

.faq__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: var(--space-2xl);
  align-items: start;
}

.faq__header {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
}

.faq__list {
  border-top: 1px solid var(--color-border);
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-md) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
  gap: 1.5rem;
  transition: color var(--duration-fast) var(--ease-out);
}

.faq__question:hover {
  color: var(--color-accent);
}

.faq__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  top: 50%;
  left: 50%;
  transition: transform var(--duration-fast) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out);
}

.faq__icon::before {
  width: 12px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.faq__icon::after {
  width: 1.5px;
  height: 12px;
  transform: translate(-50%, -50%);
}

.faq__item.open .faq__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item.open .faq__question {
  color: var(--color-accent);
}

.faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--duration-medium) var(--ease-out);
}

.faq__answer p {
  padding-bottom: var(--space-md);
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: 1.75;
  font-size: 0.9375rem;
}

/* ===== Form Success Panel ===== */
.form__success {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  border: 1px solid var(--color-border-light);
  background: var(--color-surface);
  animation: successFadeIn var(--duration-medium) var(--ease-out);
}

@keyframes successFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form__success-icon {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.form__success-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.2;
}

.form__success-name {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  font-weight: 300;
}

.form__success-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.875rem;
  display: block;
}

.form__success-list {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.form__success-list li {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: 1.65;
}

.form__success-note {
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--color-border);
  background: var(--color-bg-deep);
}

.form__success-note p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: 1.65;
}

.form__success-reset {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-text-light);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  align-self: flex-start;
  transition: color var(--duration-fast) var(--ease-out);
}

.form__success-reset:hover {
  color: var(--color-accent);
}

/* Rejection Panel */
.form__rejection {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  border: 1px solid var(--color-border-light);
  background: var(--color-surface);
  animation: successFadeIn var(--duration-medium) var(--ease-out);
}

.form__rejection-text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 300;
  margin-top: 0.25rem;
}

.footer__links {
  display: flex;
  gap: var(--space-lg);
}

.footer__links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__links a:hover {
  color: var(--color-text);
}

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-light);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(44, 40, 37, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-out);
}

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

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  color: var(--color-text-on-dark);
  font-size: 2rem;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--duration-fast);
}

.lightbox__close:hover { opacity: 1; }

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-on-dark);
  font-size: 1.5rem;
  padding: var(--space-sm);
  opacity: 0.5;
  transition: opacity var(--duration-fast);
}

.lightbox__prev:hover,
.lightbox__next:hover { opacity: 1; }

.lightbox__prev { left: var(--space-lg); }
.lightbox__next { right: var(--space-lg); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero__text {
    max-width: 600px;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about__image {
    aspect-ratio: 16/10;
    max-height: 50vh;
  }

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

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

  .portfolio__item--wide {
    grid-column: span 2;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .faq__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .faq__header {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);
    transition: right var(--duration-medium) var(--ease-out);
  }

  .nav__links.open {
    right: 0;
  }

  .nav__links a {
    font-size: 1.5rem;
    font-family: var(--font-display);
    color: var(--color-text);
  }

  .nav__cta {
    font-size: 1rem !important;
    font-family: var(--font-body) !important;
  }

  .nav__toggle {
    display: flex;
    z-index: 101;
  }

  .nav__toggle.active span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
  }

  .nav__toggle.active span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
  }

  .hero__title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__scroll {
    display: none;
  }

  .stats__inner {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .stats__divider {
    width: 48px;
    height: 1px;
  }

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

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

  .portfolio__item--wide {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }

  .portfolio__item--tall {
    grid-row: span 1;
    aspect-ratio: 1;
  }

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

  .form__group--full {
    grid-column: span 1;
  }

  .contact__form .btn {
    grid-column: span 1;
    width: 100%;
  }

  .form__radio-group {
    flex-direction: column;
  }

  .form__radio-label span {
    width: 100%;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  :root {
    --space-lg: 1.5rem;
  }

  body {
    font-size: 1rem;
  }
}
