/* =====================================================
   DRAFTLINE STUDIO — styles.css
   Modern architectural drafting website
   ===================================================== */

/* ── 1. CSS CUSTOM PROPERTIES ── */
:root {
  /* Colors */
  --clr-navy: #1d3a4e;
  --clr-navy-mid:   #2d4a6e;
  --clr-navy-light: #3d6494;
  --clr-blue:       #4a7fb5;
  --clr-blue-light: #6fa3d8;
  --clr-accent: #000;
  --clr-accent-lt: #000;
  --clr-white:      #ffffff;
  --clr-off-white:  #f7f8fa;
  --clr-bg:         #f0f4f8;
  --clr-text:       #1e2a3a;
  --clr-text-mid:   #4a5568;
  --clr-text-light: #718096;
  --clr-border:     #dde3ec;
  --clr-success:    #27ae60;
  --clr-error:      #e74c3c;

  /* Typography */
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:   'Playfair Display', Georgia, serif;

  /* Sizing */
  --container:    1200px;
  --nav-h:        72px;
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.08);
  --shadow-xl:    0 24px 60px rgba(0,0,0,.16);

  /* Transitions */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);
  --duration:     300ms;
}

/* ── 2. RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--clr-text);
  background: var(--clr-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── 3. UTILITIES ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-header--left {
  text-align: left;
  margin: 0 0 40px;
}

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

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-navy);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--clr-text-mid);
  line-height: 1.7;
}

/* ── 4. BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--clr-accent);
  color: var(--clr-white);
  box-shadow: 0 4px 14px rgba(200,150,60,.3);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--clr-accent-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200,150,60,.4);
}

.btn--ghost {
  background: transparent;
  color: var(--clr-white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: rgba(255,255,255,.1);
  border-color: var(--clr-white);
  transform: translateY(-2px);
}

.btn--full { width: 100%; }

.btn__loading {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn--loading .btn__text { opacity: .6; }
.btn--loading .btn__loading { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── 5. SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease-out),
              transform .65s var(--ease-out);
}
.reveal--delay-1 { transition-delay: .1s; }
.reveal--delay-2 { transition-delay: .2s; }
.reveal--delay-3 { transition-delay: .3s; }
.reveal--delay-4 { transition-delay: .4s; }
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── 6. NAVIGATION ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              backdrop-filter var(--duration) var(--ease);
}

.site-header.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.site-header.scrolled .nav__logo-text { color: var(--clr-navy); }
.site-header.scrolled .nav__logo-icon { color: var(--clr-navy-mid); }
.site-header.scrolled .nav__link { color: var(--clr-text-mid); }
.site-header.scrolled .nav__link:hover { color: var(--clr-navy); }
.site-header.scrolled .nav__link--cta { color: var(--clr-white); }
.site-header.scrolled .nav__hamburger span { background: var(--clr-navy); }

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav__logo-icon {
  width: 34px;
  height: 34px;
  color: var(--clr-white);
  transition: color var(--duration) var(--ease);
  flex-shrink: 0;
}

.nav__logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-white);
  letter-spacing: -.01em;
  transition: color var(--duration) var(--ease);
  line-height: 1;
}
.nav__logo-text span {
  font-weight: 300;
  opacity: .85;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__link {
  font-size: .875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  color: rgba(255,255,255,.88);
  transition: color var(--duration) var(--ease),
              background var(--duration) var(--ease);
}
.nav__link:hover { color: var(--clr-white); background: rgba(255,255,255,.1); }

.nav__link--cta {
  background: var(--clr-accent);
  color: var(--clr-white) !important;
  padding: 9px 20px;
}
.nav__link--cta:hover {
  background: var(--clr-accent-lt);
  background: var(--clr-accent-lt) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200,150,60,.35);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 6px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease),
              opacity var(--duration) var(--ease),
              background var(--duration) var(--ease);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 7. HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--clr-navy) 0%, #0f2640 50%, #1a3a5c 100%);
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* ── Carousel background (z-index 0 — bottom of hero stack) ── */
.hero__carousel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.2;
}

.hero__slide {
  position: absolute;
  inset: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}
.hero__slide--visible { opacity: 1; }
.hero__slide--hidden  { opacity: 0; }

.hero__slide-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  overflow: hidden;
}

/* Slow zoom — alternates in/out each slide */
.hero__slide-inner--zoom-in {
  animation: hero-bg-zoom-in 20s ease-in-out forwards;
}
.hero__slide-inner--zoom-out {
  animation: hero-bg-zoom-out 20s ease-in-out forwards;
}
@keyframes hero-bg-zoom-in {
  from { transform: scale(1.12); }
  to   { transform: scale(1.45); }
}
@keyframes hero-bg-zoom-out {
  from { transform: scale(1.45); }
  to   { transform: scale(1.12); }
}

.hero__canvas {
  display: block;
  /* no max constraints — cover scaling handled in JS */
  max-width: none;
  max-height: none;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero__blueprint {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hero__blueprint svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 3;
  padding: 80px 0 60px;
  max-width: 760px;
}

.hero__eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 18px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--clr-white);
  margin-bottom: 24px;
}
.hero__title em {
  font-style: normal;
  color: var(--clr-blue-light);
}

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat__number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1;
}

.stat__suffix {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-accent);
}

.stat__label {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: 4px;
}

.stat__divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.15);
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: .5;
  transition: opacity var(--duration) var(--ease);
}
.hero__scroll:hover { opacity: 1; }

.hero__scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--clr-white);
  border-radius: 50%;
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ── 8. SERVICES ── */
.services {
  background: var(--clr-off-white);
}

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

.service-card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  border: 1px solid var(--clr-border);
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--clr-navy-mid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }

.service-card--accent { border-color: var(--clr-navy-mid); }
.service-card--accent::before { transform: scaleX(1); }

.service-card__icon {
  width: 52px;
  height: 52px;
  color: var(--clr-navy-mid);
  margin-bottom: 20px;
}

.service-card__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--clr-navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card__desc {
  font-size: .9rem;
  color: var(--clr-text-mid);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-card__list li {
  font-size: .84rem;
  color: var(--clr-text-light);
  padding-left: 16px;
  position: relative;
}
.service-card__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--clr-accent);
  font-size: .75rem;
}

/* ── 9. PORTFOLIO ── */
.portfolio {
  background: var(--clr-white);
}

.portfolio__filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 40px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--clr-text-mid);
  border: 1.5px solid var(--clr-border);
  transition: all var(--duration) var(--ease);
  background: var(--clr-white);
}
.filter-btn:hover, .filter-btn--active {
  background: var(--clr-navy);
  color: var(--clr-white);
  border-color: var(--clr-navy);
  box-shadow: 0 4px 12px rgba(26,46,74,.2);
}

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

.portfolio-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.portfolio-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.portfolio-item--hidden {
  display: none;
}

.portfolio-item__img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}

/* PDF thumbnail replacing the old SVG drawing div */
.portfolio-item__thumb {
  width: 100%;
  height: 100%;
  position: relative;
  background: #e8edf4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform .5s var(--ease);
}
.portfolio-item:hover .portfolio-item__thumb { transform: scale(1.04); }

.portfolio-item__canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.portfolio-item__thumb-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8edf4;
  transition: opacity .35s var(--ease);
}
.portfolio-item__thumb-loader.hidden { opacity: 0; pointer-events: none; }

.portfolio-item__spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(45,74,110,.15);
  border-top-color: var(--clr-navy-mid);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,46,74,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}
.portfolio-item:hover .portfolio-item__overlay { opacity: 1; }

.portfolio-item__btn {
  padding: 12px 28px;
  background: var(--clr-white);
  color: var(--clr-navy);
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  transform: translateY(8px);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.portfolio-item:hover .portfolio-item__btn { transform: none; box-shadow: var(--shadow-md); }
.portfolio-item__btn:hover { background: var(--clr-accent); color: var(--clr-white); }

.portfolio-item__info {
  padding: 20px 24px 24px;
}

.portfolio-item__tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 8px;
}

.portfolio-item__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-navy);
  line-height: 1.35;
  margin-bottom: 6px;
}

.portfolio-item__meta {
  font-size: .82rem;
  color: var(--clr-text-light);
}

/* ── 10. PROMO VIDEO ── */
.promo-video {
  background: #111;
}

/* ── 10. ABOUT ── */
.about {
  background: linear-gradient(180deg, var(--clr-off-white) 0%, var(--clr-white) 100%);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__visual {
  position: relative;
}

.about__drawing-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--clr-border);
  background: var(--clr-bg);
  transition: transform .5s var(--ease);
}
.about__drawing-frame:hover { transform: translateY(-4px) rotate(-0.5deg); }
.about__drawing-frame svg { width: 100%; height: auto; }

.about__badges {
  position: absolute;
  bottom: -16px;
  right: -16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about__badge {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: .8rem;
  color: var(--clr-text-mid);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.about__badge strong {
  color: var(--clr-navy);
  margin-right: 4px;
}

.about__body {
  font-size: 1.025rem;
  color: var(--clr-text-mid);
  line-height: 1.75;
  margin-bottom: 20px;
}

.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}

.about__feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.about__feature-icon {
  width: 28px;
  height: 28px;
  background: var(--clr-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--clr-white);
  padding: 5px;
  margin-top: 2px;
}

.about__feature strong {
  display: block;
  font-size: .92rem;
  color: var(--clr-navy);
  margin-bottom: 3px;
}

.about__feature p {
  font-size: .84rem;
  color: var(--clr-text-mid);
  line-height: 1.55;
}

/* ── 11. PROCESS ── */
.process {
  background: var(--clr-navy);
  color: var(--clr-white);
}

.process .section-eyebrow { color: var(--clr-accent-lt); }
.process .section-title { color: var(--clr-white); }

.process__steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
  margin-top: 60px;
}

.process__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}

.process__step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 2px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--clr-accent-lt);
  margin-bottom: 20px;
  transition: background var(--duration), border-color var(--duration);
}
.process__step:hover .process__step-number {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: var(--clr-white);
}

.process__step-content h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--clr-white);
  margin-bottom: 10px;
}

.process__step-content p {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
}

.process__connector {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,.15);
  margin-top: 30px;
  position: relative;
}
.process__connector::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-accent);
}

/* ── 12. TESTIMONIALS ── */
.testimonials {
  background: var(--clr-off-white);
  overflow: hidden;
}

.testimonials__track {
  display: grid;
  grid-template-columns: repeat(4, 100%);
  gap: 0;
  transition: transform .5s var(--ease);
}

.testimonial-card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  padding: 40px;
  border: 1px solid var(--clr-border);
  margin: 0 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial-card__stars {
  color: #f4b942;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.testimonial-card__quote {
  font-size: 1.025rem;
  color: var(--clr-text-mid);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  background: var(--clr-navy);
  color: var(--clr-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  flex-shrink: 0;
}

.testimonial-card__author strong {
  display: block;
  font-size: .9rem;
  color: var(--clr-navy);
}
.testimonial-card__author span {
  font-size: .8rem;
  color: var(--clr-text-light);
}

.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.testimonial-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--clr-border);
  background: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-mid);
  transition: all var(--duration) var(--ease);
}
.testimonial-nav:hover {
  background: var(--clr-navy);
  border-color: var(--clr-navy);
  color: var(--clr-white);
}
.testimonial-nav svg { width: 18px; height: 18px; }

.testimonials__dots {
  display: flex;
  gap: 8px;
}

.testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-border);
  border: none;
  transition: all var(--duration) var(--ease);
  padding: 0;
}
.testimonials__dot--active, .testimonials__dot:hover {
  background: var(--clr-navy);
  transform: scale(1.3);
}

/* ── 13. CONTACT ── */
.contact {
  background: var(--clr-white);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact__desc {
  font-size: 1rem;
  color: var(--clr-text-mid);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact__detail-icon {
  width: 40px;
  height: 40px;
  background: var(--clr-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-navy-mid);
  flex-shrink: 0;
}
.contact__detail-icon svg { width: 18px; height: 18px; }

.contact__detail strong {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--clr-text-light);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.contact__detail a, .contact__detail span {
  font-size: .95rem;
  color: var(--clr-navy);
}
.contact__detail a:hover { color: var(--clr-blue); }

/* Form styles */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--clr-off-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--clr-border);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: .83rem;
  font-weight: 600;
  color: var(--clr-text);
  letter-spacing: .02em;
}
.form-group label span { color: var(--clr-error); }

.form-group input,
.form-group textarea,
.form-group select {
  padding: 11px 14px;
  border: 1.5px solid var(--clr-border);
  border-radius: 8px;
  font-size: .9rem;
  color: var(--clr-text);
  background: var(--clr-white);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--clr-text-light); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--clr-blue);
  box-shadow: 0 0 0 3px rgba(74,127,181,.15);
}
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: var(--clr-error);
  box-shadow: 0 0 0 3px rgba(231,76,60,.1);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

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

.form-error {
  font-size: .78rem;
  color: var(--clr-error);
  min-height: 18px;
}

.form-group--checkbox { flex-direction: row; align-items: center; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: .875rem;
  color: var(--clr-text-mid);
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--clr-border);
  border-radius: 4px;
  background: var(--clr-white);
  flex-shrink: 0;
  position: relative;
  transition: all var(--duration) var(--ease);
}
.checkbox-label input:checked + .checkbox-custom {
  background: var(--clr-navy);
  border-color: var(--clr-navy);
}
.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 2px;
  width: 6px;
  height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(40deg);
}

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(39,174,96,.08);
  border: 1.5px solid rgba(39,174,96,.25);
  border-radius: 8px;
  color: var(--clr-success);
  font-size: .9rem;
}
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }
.form-success.visible { display: flex; }

.form-send-error {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(231,76,60,.07);
  border: 1.5px solid rgba(231,76,60,.25);
  border-radius: 8px;
  color: var(--clr-error);
  font-size: .9rem;
  line-height: 1.5;
}
.form-send-error svg { width: 20px; height: 20px; flex-shrink: 0; }
.form-send-error a { color: var(--clr-error); text-decoration: underline; }
.form-send-error.visible { display: flex; }

/* ── 14. FOOTER ── */
.footer {
  background: var(--clr-navy);
  color: rgba(255,255,255,.7);
  padding: 72px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer__brand .nav__logo-text { color: var(--clr-white); }
.footer__brand .nav__logo-icon { color: rgba(255,255,255,.8); }

.footer__tagline {
  font-size: .875rem;
  line-height: 1.65;
  margin-top: 16px;
  color: rgba(255,255,255,.5);
  max-width: 260px;
}

.footer__col h4 {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-white);
  margin-bottom: 20px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col ul a {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  transition: color var(--duration) var(--ease);
}
.footer__col ul a:hover { color: var(--clr-white); }

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: all var(--duration) var(--ease);
}
.footer__social-link:hover {
  background: var(--clr-accent);
  color: var(--clr-white);
}
.footer__social-link svg { width: 16px; height: 16px; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
}
.footer__bottom-links a { color: rgba(255,255,255,.35); transition: color var(--duration); }
.footer__bottom-links a:hover { color: rgba(255,255,255,.7); }

/* ── 15. LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #0009;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  backdrop-filter: blur(8px);
  animation: fadeIn .25s var(--ease);
}
.lightbox[hidden] { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2rem;
  color: rgba(255,255,255,.7);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all var(--duration);
}
.lightbox__close:hover { color: white; background: rgba(255,255,255,.1); }

.lightbox__content {
  max-width: 920px;
  width: 100%;
  background: var(--clr-navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: scaleIn .3s var(--ease-out);
}
@keyframes scaleIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* PDF stage inside lightbox */
.lightbox__pdf-stage {
  position: relative;
  background: #e8edf4;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  max-height: 55vh;
  overflow: hidden;
}

.lightbox__pdf-canvas {
  display: block;
  max-width: 100%;
  max-height: 55vh;
  width: auto;
  height: auto;
}

/* Thumbnail strip */
.lightbox__thumb-strip {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  background: rgba(6,12,22,.75);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}
.lightbox__thumb-strip:empty { display: none; }
.lightbox__thumb-strip::-webkit-scrollbar { height: 4px; }
.lightbox__thumb-strip::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.18);
  border-radius: 2px;
}

.lightbox__thumb-btn {
  flex-shrink: 0;
  position: relative;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.48;
  transition: opacity var(--duration) var(--ease), border-color var(--duration) var(--ease);
  cursor: pointer;
  padding: 0;
  background: #c8d0dc;
  min-width: 48px;
}
.lightbox__thumb-btn:hover { opacity: 0.8; }
.lightbox__thumb-btn.active {
  border-color: var(--clr-accent);
  opacity: 1;
}
.lightbox__thumb-btn canvas {
  display: block;
  height: 76px;
  width: auto;
}
.lightbox__thumb-num {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: .6rem;
  font-family: monospace;
  color: rgba(255,255,255,.9);
  background: rgba(10,18,30,.55);
  padding: 1px 0 2px;
  line-height: 1.2;
}

.lightbox__pdf-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8edf4;
  transition: opacity .3s var(--ease);
  z-index: 1;
}
.lightbox__pdf-loader.hidden { opacity: 0; pointer-events: none; }

.lightbox__pdf-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(45,74,110,.18);
  border-top-color: var(--clr-navy-mid);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

/* Bottom bar: title + navigation */
.lightbox__pdf-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--clr-navy);
  gap: 16px;
  flex-wrap: wrap;
}

.lightbox__pdf-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-accent-lt);
  letter-spacing: -.01em;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox__pdf-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lightbox__pdf-counter {
  font-size: 1rem;
  color: #000;
  font-family:  var(--font-serif);
  /* letter-spacing: .04em; */
  white-space: nowrap;
  font-weight: 700;
}

.lightbox__pdf-nav-group {
  display: flex;
  gap: 6px;
}

.lightbox__pdf-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.2);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.lightbox__pdf-btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.45); }
.lightbox__pdf-btn svg { width: 15px; height: 15px; }

/* ── 16. BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--clr-navy);
  color: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all var(--duration) var(--ease);
}
.back-to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--clr-accent); transform: translateY(-2px); }
.back-to-top svg { width: 18px; height: 18px; }

/* ── 17. DRAWINGS CAROUSEL ── */
.drawings {
  background: var(--clr-navy);
  color: var(--clr-white);
  padding-bottom: 60px;
}
.drawings .section-eyebrow { color: var(--clr-accent-lt); }
.drawings .section-title   { color: var(--clr-white); }
.drawings .section-subtitle { color: rgba(255,255,255,.65); }

.drawings__carousel {
  width: 100%;
}

.drawings__stage {
  position: relative;
  background: #e8edf4;
  overflow: hidden;
  width: 100%;
  height: 78vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  outline: none;
}
.drawings__stage:focus-visible {
  box-shadow: inset 0 0 0 3px var(--clr-accent);
}
.drawings__stage:active { cursor: grabbing; }

/* Slide wrappers — one per canvas, stacked absolutely */
.drawings__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.drawings__slide--center { transform: translateX(0); }
.drawings__slide--left   { transform: translateX(-100%); }
.drawings__slide--right  { transform: translateX(100%); }

.drawings__canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.drawings__loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #e8edf4;
  transition: opacity .3s var(--ease);
}
.drawings__loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.drawings__spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(45,74,110,.18);
  border-top-color: var(--clr-navy-mid);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

.drawings__loading-text {
  font-size: .82rem;
  color: var(--clr-text-light);
  font-family: var(--font-sans);
  letter-spacing: .04em;
}

.drawings__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 2px 8px;
  min-height: 44px;
}

.drawings__project-label {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-accent-lt);
  letter-spacing: -.01em;
}

.drawings__counter {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  font-family: monospace;
  letter-spacing: .04em;
}

.drawings__controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  margin-bottom: 8px;
}

.drawings__nav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.22);
  color: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}
.drawings__nav:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.5);
  transform: scale(1.08);
}
.drawings__nav svg { width: 20px; height: 20px; }

.drawings__project-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  flex: 1;
  justify-content: center;
}

.drawings__pill {
  padding: 5px 13px;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.6);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .01em;
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
  white-space: nowrap;
}
.drawings__pill:hover {
  border-color: var(--clr-accent-lt);
  color: var(--clr-white);
  transform: translateY(-1px);
}
.drawings__pill--active {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: var(--clr-white);
}

/* ── 18. RESPONSIVE ── */

/* Tablet */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about__grid {
    gap: 48px;
  }
  .process__steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .process__step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    padding: 0 0 40px;
  }
  .process__step-number {
    flex-shrink: 0;
    margin-bottom: 0;
    margin-right: 20px;
  }
  .process__connector {
    width: 2px;
    height: 24px;
    margin: 0 0 0 29px;
    display: block;
  }
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile large */
@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(20,36,60,.98);
    backdrop-filter: blur(16px);
    padding: 16px;
    gap: 4px;
    transform: translateY(-110%);
    transition: transform .35s var(--ease);
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav__links.is-open {
    transform: none;
  }
  .nav__link {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1rem;
  }
  .nav__link--cta { text-align: center; margin-top: 8px; }
  .nav__hamburger { display: flex; }

  .hero__content { padding: 60px 0 48px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { justify-content: center; }
  .hero__stats { gap: 20px; justify-content: center; }

  .services__grid { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .drawings__stage { height: 60vh; min-height: 320px; }
  .drawings__controls { gap: 10px; }
  .drawings__pill { font-size: .7rem; padding: 4px 10px; }

  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__badges { position: static; flex-direction: row; flex-wrap: wrap; margin-top: 16px; }
  .about__features { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .contact__form { padding: 28px 24px; }

  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* Mobile small */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__title { font-size: 2rem; }
  .section-title { font-size: 1.7rem; }
  .hero__stats { flex-direction: column; align-items: flex-start; gap: 16px; }
  .stat__divider { display: none; }
  .testimonial-card { padding: 28px 22px; }
  .about__badge { font-size: .76rem; }
  .drawings__stage { height: 52vh; min-height: 240px; }
  .drawings__nav { width: 36px; height: 36px; }
  .drawings__project-pills { gap: 5px; }
  .drawings__pill { font-size: .65rem; padding: 3px 8px; }
}
