:root {
  --accent: #E63946;
  --accent-hover: #C41E2A;
  --dark: #0D1B2A;
  --dark-mid: #152238;
  --concrete: #5C6B73;
  --paper: #F5F5F0;
  --white: #FFFFFF;
  --line: rgba(13,27,42,.10);
  --radius: 0;
  --radius-lg: 0;
  --shell: 1200px;
  --ease-out: cubic-bezier(.16,1,.3,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Manrope', system-ui, sans-serif; color: var(--dark); background: var(--white); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

.shell { width: min(var(--shell), 100% - 48px); margin-inline: auto; }

.display { font-family: 'Plein', 'Manrope', system-ui, sans-serif; font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.body-copy { font-size: 1.125rem; line-height: 1.7; color: var(--concrete); max-width: 540px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow span { display: block; width: 32px; height: 2px; background: currentColor; border-radius: 1px; }
.eyebrow.dark { color: var(--accent); }
.eyebrow.dark span { background: var(--accent); }
.eyebrow.light { color: rgba(255,255,255,.7); }
.eyebrow.light span { background: rgba(255,255,255,.4); }

.button { display: inline-flex; align-items: center; gap: 8px; padding: 16px 32px; border-radius: 0; font-size: 1rem; font-weight: 700; transition: all .3s var(--ease-out); cursor: pointer; }
.button-accent { background: var(--accent); color: var(--white); box-shadow: 0 4px 16px rgba(230,57,70,.25); }
.button-accent:hover { background: var(--accent-hover); box-shadow: 0 6px 24px rgba(230,57,70,.35); transform: translateY(-2px); }
.button-ghost { border: 1.5px solid rgba(255,255,255,.35); color: var(--white); backdrop-filter: blur(4px); }
.button-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

.section { padding: 120px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 64px; flex-wrap: wrap; }
.heading-note { font-size: 1.125rem; color: var(--concrete); max-width: 340px; line-height: 1.6; }

/* ═══ HEADER ═══ */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  transition: background .35s, padding .35s, box-shadow .35s;
}
.site-header.is-scrolled {
  background: rgba(13,27,42,.92); backdrop-filter: blur(16px) saturate(1.4);
  padding-block: 14px; box-shadow: 0 2px 24px rgba(0,0,0,.15);
}

.brand { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--white); }
.brand-symbol { flex-shrink: 0; }
.brand-name { font-size: 1.5rem; letter-spacing: -.01em; }

.desktop-nav { display: flex; gap: 32px; order: -1; }
.nav-link { position: relative; display: block; overflow: hidden; height: 1.15em; line-height: 1.15; font-size: 1rem; font-weight: 600; color: var(--white); }
.nav-chars { display: block; white-space: nowrap; line-height: 1.15; }
.nav-chars--alt { color: var(--accent); }
.nav-char { display: inline-block; transition: transform .4s var(--ease-out); transition-delay: calc(var(--i) * .025s); }
.nav-link:hover .nav-char { transform: translateY(-1.15em); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone { display: flex; align-items: center; gap: 8px; color: var(--white); font-weight: 700; font-size: 1.125rem; transition: color .25s; }
.header-phone:hover { color: var(--accent); }
.header-phone svg { flex-shrink: 0; }
.header-cta { display: none; padding: 10px 24px; font-size: .875rem; }

.menu-toggle { display: none; width: 32px; height: 20px; position: relative; }
.menu-toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.menu-toggle span:first-child { top: 0; }
.menu-toggle span:last-child { bottom: 0; }
.menu-toggle.is-open span:first-child { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-toggle.is-open span:last-child { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--dark);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 40px;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 24px; text-align: center; }
.mobile-menu nav a { font-size: 2rem; font-weight: 800; color: var(--white); display: flex; align-items: baseline; justify-content: center; gap: 12px; }
.mobile-menu nav small { font-size: 1rem; font-weight: 600; color: var(--accent); }
.mobile-menu > a { font-size: 1.25rem; color: rgba(255,255,255,.5); font-weight: 600; }

/* ═══ HERO ═══ */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  overflow: hidden; background: var(--dark);
}
.hero-media {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,27,42,.55) 0%, rgba(13,27,42,.4) 40%, rgba(13,27,42,.7) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  flex: 1; justify-content: center;
  padding-top: 120px; padding-bottom: 40px;
}
.hero-eyebrow { color: var(--white); margin-bottom: 28px; justify-content: center; }
#hero-title { color: var(--white); margin-bottom: 24px; font-size: clamp(3.5rem, 9vw, 7rem); line-height: 1.02; letter-spacing: -.03em; }
.title-mask { display: block; overflow: hidden; }
.title-mask span { display: block; }
.hero-sub { font-size: 1.25rem; font-weight: 500; color: var(--white); max-width: 780px; line-height: 1.7; margin-bottom: 40px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-cta { padding: 20px 40px; font-size: 1.125rem; }
.hero-cta svg { flex-shrink: 0; }

.trust-row {
  position: relative; z-index: 2;
  display: flex; justify-content: center; align-items: center; gap: 80px; flex-wrap: wrap;
  padding-bottom: 48px;
}
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-row svg { color: var(--accent); flex-shrink: 0; }
.trust-row p { font-size: 1.0625rem; font-weight: 700; color: var(--white); white-space: nowrap; }
.trust-sep { width: 1px; height: 28px; background: rgba(255,255,255,.25); }

/* ═══ ABOUT ═══ */
.about { position: relative; overflow: hidden; }
.about-blueprint {
  position: absolute; bottom: 0; right: 0; width: 45%; height: 55%;
  opacity: .045;
  background:
    repeating-linear-gradient(0deg, var(--concrete) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, var(--concrete) 0 1px, transparent 1px 48px);
  pointer-events: none;
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-photos { position: relative; padding-bottom: 48px; }
.about-photo-main { overflow: hidden; aspect-ratio: 3/4; }
.about-photo-main img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-small {
  position: absolute; bottom: 0; right: -24px; width: 45%;
  overflow: hidden; border: 5px solid var(--white);
  box-shadow: -8px -8px 32px rgba(0,0,0,.1);
}
.about-photo-small img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.about-copy .display { margin: 20px 0 24px; }
.about-copy .body-copy { margin-bottom: 16px; }
.about-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; position: relative; margin-top: 32px;
}
.badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge-symbol { position: relative; z-index: 2; }

/* ═══ SERVICES — 3D FLIP CARDS ═══ */
.services { background: var(--paper); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { perspective: 800px; }
.service-card-img {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-num {
  position: absolute; top: 16px; left: 16px;
  font-size: 1rem; font-weight: 800; color: var(--white);
  background: var(--accent); padding: 4px 12px; border-radius: 0;
}
.service-card-body {
  background: var(--white); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 28px 24px;
  transform-origin: top center;
  transform: rotateX(-90deg);
  opacity: 0;
  transition: transform .7s var(--ease-out), opacity .5s;
  backface-visibility: hidden;
}
.service-card.is-flipped .service-card-body {
  transform: rotateX(0deg);
  opacity: 1;
}
.service-card-body h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.service-card-body p { font-size: 1rem; color: var(--concrete); line-height: 1.6; }

/* ═══ WHY ═══ */
.why {
  position: relative; overflow: hidden;
  background: var(--dark);
}
.why-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.35); opacity: .7;
}
.why-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,27,42,.7) 0%, rgba(13,27,42,.85) 100%);
}
.why-inner { position: relative; z-index: 2; }
.why-head { margin-bottom: 64px; }
.why-head .display { color: var(--white); margin: 20px 0 20px; }
.why-subtitle { font-size: 1.125rem; color: rgba(255,255,255,.6); max-width: 540px; line-height: 1.7; }
.why-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 36px 28px;
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
.why-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.why-card span { display: block; font-size: 1rem; font-weight: 800; color: var(--accent); margin-bottom: 16px; }
.why-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 10px; }
.why-card p { font-size: 1rem; color: var(--concrete); line-height: 1.6; }

/* ═══ PROJECTS ═══ */
.projects { background: var(--paper); padding: 120px 0 0; overflow: hidden; }
.projects-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 64px; flex-wrap: wrap; }
.projects-intro p { font-size: 1.125rem; color: var(--concrete); max-width: 340px; }

.projects-scroll { padding-left: max(24px, calc((100% - var(--shell)) / 2)); }
.projects-track {
  display: flex; gap: 24px; padding: 0 48px 80px 0;
  will-change: transform;
}
.project-card { flex: 0 0 420px; }
.project-image {
  position: relative; aspect-ratio: 3/4; border-radius: var(--radius-lg);
  overflow: hidden; cursor: crosshair;
}
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.project-card:hover .project-image img { transform: scale(1.04); }
.project-number {
  position: absolute; top: 20px; left: 20px;
  font-size: 1rem; font-weight: 800; color: var(--white);
  background: rgba(13,27,42,.6); backdrop-filter: blur(8px);
  padding: 4px 14px; border-radius: 0;
}
.project-meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 20px 4px 0;
}
.project-meta p { font-size: 1rem; color: var(--concrete); }
.project-meta h3 { font-size: 1.25rem; font-weight: 700; }

/* ═══ REVIEWS ═══ */
.reviews { background: var(--white); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
  background: var(--paper); border-radius: var(--radius-lg); padding: 36px 28px;
  display: flex; flex-direction: column; gap: 20px;
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
.review-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.review-card.featured {
  background: var(--dark); color: var(--white);
}
.review-card.featured .reviewer-info span,
.review-card.featured blockquote { color: rgba(255,255,255,.65); }
.review-card.featured .stars { color: var(--accent); }

.review-header { display: flex; align-items: center; gap: 14px; }
.reviewer-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .875rem; letter-spacing: .02em;
  overflow: hidden;
}
.reviewer-avatar::after { content: attr(data-initials); }
.reviewer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.reviewer-info { display: flex; flex-direction: column; gap: 2px; }
.reviewer-info strong { font-size: 1rem; font-weight: 700; }
.reviewer-info span { font-size: 1rem; color: var(--concrete); }
.review-card blockquote { font-size: 1rem; line-height: 1.7; color: var(--concrete); flex: 1; }
.stars { color: var(--accent); font-size: 1rem; letter-spacing: 2px; }

/* ═══ AREAS ═══ */
.areas { background: var(--white); position: relative; overflow: visible; }
.areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.areas-copy .display { margin: 20px 0 20px; }
.areas-copy .body-copy { margin-bottom: 28px; }
.area-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.area-tags span {
  padding: 10px 20px; border-radius: 0;
  border: 1.5px solid var(--line);
  font-size: 1rem; font-weight: 600; color: var(--dark);
  transition: all .25s var(--ease-out);
}
.area-tags span:hover { border-color: var(--accent); color: var(--accent); }

.areas-map-wrap { display: flex; justify-content: center; }
.areas-map { width: 100%; max-width: 420px; }
.map-dot circle { transition: r .3s var(--ease-out); }
.map-dot:hover circle { r: 8; }
.map-dot.main:hover circle:first-child { r: 13; }

.circle-decoration {
  position: absolute; right: 40px; bottom: -80px; z-index: 10;
  width: 180px; height: 180px;
  display: flex; align-items: center; justify-content: center;
}
.circle-ring {
  position: absolute; inset: 0;
  border: 2px solid var(--accent);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.brand-mark-lg {
  width: 56px; height: 56px; font-size: 1.125rem;
  position: relative; z-index: 2;
}

/* ═══ CONTACT ═══ */
.contact {
  background: var(--dark); padding: 100px 0;
  text-align: center;
}
.contact .eyebrow { justify-content: center; margin-bottom: 20px; }
.contact .display { color: var(--white); margin-bottom: 16px; }
.contact-sub { font-size: 1.125rem; color: rgba(255,255,255,.55); max-width: 520px; margin: 0 auto 48px; line-height: 1.7; }

.contact-form { max-width: 640px; margin: 0 auto; text-align: left; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 1rem; font-weight: 600; color: rgba(255,255,255,.7); margin-bottom: 20px; }
.field-row label { margin-bottom: 0; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; padding: 16px 20px;
  background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.12);
  border-radius: var(--radius); color: var(--white);
  font: inherit; font-size: 1rem; transition: border-color .25s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.3); }
.contact-form select { appearance: none; cursor: pointer; }
.contact-form select option { background: var(--dark); color: var(--white); }
.contact-form textarea { resize: vertical; min-height: 120px; }

.privacy-check { flex-direction: row !important; align-items: flex-start; gap: 12px !important; }
.privacy-check input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--accent);
}
.privacy-check span { font-size: 1rem; font-weight: 400; color: rgba(255,255,255,.5); }
.privacy-check a { color: var(--accent); text-decoration: underline; }

.submit-button { width: 100%; justify-content: center; margin-top: 8px; }
.form-status { font-size: 1rem; color: rgba(255,255,255,.5); text-align: center; margin-top: 16px; min-height: 24px; }

/* ═══ FOOTER ═══ */
footer { background: var(--dark-mid); padding: 64px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand p { font-size: 1rem; color: rgba(255,255,255,.4); max-width: 280px; line-height: 1.6; }

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 1rem; font-weight: 700; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.footer-col a { font-size: 1rem; color: rgba(255,255,255,.55); transition: color .25s; }
.footer-col a:hover { color: var(--white); }
.footer-col p { font-size: 1rem; color: rgba(255,255,255,.4); line-height: 1.6; }

.footer-social { display: flex; gap: 16px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 0;
  border: 1.5px solid rgba(255,255,255,.15);
  font-size: 1rem; font-weight: 700; color: rgba(255,255,255,.55);
  transition: all .25s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center;
  padding: 24px 0;
  font-size: 1rem; color: rgba(255,255,255,.3);
}
.footer-bottom a { color: rgba(255,255,255,.3); transition: color .25s; }
.footer-bottom a:hover { color: rgba(255,255,255,.6); }

/* ═══ MOBILE BAR ═══ */
.mobile-actions {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--dark); border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-actions a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px; font-size: 1rem; font-weight: 700; color: var(--white);
  transition: background .2s;
}
.mobile-actions a:first-child { border-right: 1px solid rgba(255,255,255,.08); }
.mobile-actions a:hover { background: rgba(255,255,255,.05); }

/* ═══ IMAGE REVEAL ═══ */
.image-reveal { overflow: hidden; }

/* ═══ ANIMATIONS ═══ */
/* .reveal initial state handled by GSAP */

/* ═══ RESPONSIVE ═══ */
@media (min-width: 1120px) {
  .header-cta { display: inline-flex; }
}

@media (max-width: 1120px) {
  .shell { width: min(var(--shell), 100% - 40px); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .header-phone span { display: none; }
  .menu-toggle { display: block; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo-main { max-height: 420px; }
  .about-photo-small { right: 0; width: 50%; }

  .projects-track { gap: 16px; }
  .project-card { flex: 0 0 320px; }

  .areas-grid { grid-template-columns: 1fr; }
  .areas-map-wrap { order: -1; }
  .circle-decoration { display: none; }

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

@media (max-width: 700px) {
  .section { padding: 80px 0; }
  .section-heading { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
  .display { font-size: clamp(1.75rem, 7vw, 2.5rem); }

  #hero-title { font-size: clamp(2.5rem, 12vw, 4rem); }
  .hero-content { padding-top: 100px; padding-bottom: 40px; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .button { width: 100%; justify-content: center; }
  .trust-row { flex-direction: column; gap: 16px; align-items: flex-start; padding: 0 24px 32px; }
  .trust-sep { display: none; }

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

  .field-row { grid-template-columns: 1fr; }
  .contact { padding: 80px 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  .mobile-actions { display: flex; }
  footer { padding-bottom: 72px; }
}
