/* ==========================================================================
   WZ-AGENCY-011 — 누리결 에이전시 (NURIGYEOL AGENCY)
   Reference: https://the7.io/elementor-agency/
   ========================================================================== */

:root {
  --ag-blue: #0376EA;
  --ag-blue-dark: #025BB8;
  --ag-blue-soft: rgba(3, 118, 234, 0.08);
  --ag-blue-soft-hover: rgba(3, 118, 234, 0.15);
  --ag-green: #03D87D;
  --ag-green-dark: #02B468;
  --ag-green-soft: rgba(3, 216, 125, 0.12);
  --ag-navy: #0B0F1F;
  --ag-hero-top: #263D81;
  --ag-hero-gradient: radial-gradient(circle at 50% 0%, #263D81 0%, #050814 70%, #000000 100%);
  --ag-white: #FFFFFF;
  --ag-black: #000000;
  --ag-text: #000000;
  --ag-text-muted: #5F656C;
  --ag-text-light: #969B9F;
  --ag-border: rgba(0, 0, 0, 0.11);
  --ag-border-soft: rgba(0, 0, 0, 0.07);
  --ag-border-dark: rgba(255, 255, 255, 0.16);
  --ag-radius-sm: 4px;
  --ag-radius-md: 6px;
  --ag-radius-lg: 8px;
  --ag-container: 1200px;
  --ag-container-narrow: 840px;
  --font-heading: 'Comfortaa', 'SUIT Variable', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --font-body: 'Manrope', 'SUIT Variable', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --ag-transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::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-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ag-text);
  background-color: var(--ag-white);
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ag-transition), background-color var(--ag-transition), border-color var(--ag-transition), opacity var(--ag-transition), transform var(--ag-transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul, ol {
  list-style: none;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--ag-blue);
  color: var(--ag-white);
  font-weight: 600;
  border-radius: var(--ag-radius-sm);
}
.skip-link:focus {
  top: 12px;
}

/* ==========================================================================
   Member Bar (TPL-001 4-1절 Variant A / B)
   ========================================================================== */
.member-bar {
  background: #060913;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1;
  position: relative;
  z-index: 200;
}

.member-bar-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 50px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.member-bar a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.member-bar a:hover {
  color: var(--ag-green);
}

.member-bar-divider {
  width: 1px;
  height: 11px;
  background: rgba(255, 255, 255, 0.2);
}

html.no-member-bar .member-bar {
  display: none !important;
}

/* ==========================================================================
   Site Header (Shared across all pages)
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 150;
  height: 120px;
  margin-bottom: -120px;
  width: 100%;
  transition: background-color 0.3s ease, height 0.3s ease, box-shadow 0.3s ease;
}

/* On Home page, the header sits at the bottom of the 900px hero before scrolling */
body.is-home .site-header:not(.is-sticky) {
  transform: translateY(780px);
  border-top: 1px solid var(--ag-border-dark);
}

/* On Subpages, the header sits at the top of the page-hero with a bottom border */
body:not(.is-home) .site-header:not(.is-sticky) {
  border-bottom: 1px solid var(--ag-border-dark);
}

.site-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  margin-bottom: 0;
  transform: none !important;
  background: rgba(11, 15, 31, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.header-inner {
  max-width: 1920px;
  height: 100%;
  margin: 0 auto;
  padding: 0 50px;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  align-items: center;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.header-brand img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.header-nav a {
  color: var(--ag-white);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 0;
  position: relative;
}

.header-nav a:hover,
.header-nav a.is-active {
  color: rgba(255, 255, 255, 0.72);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ag-white);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.header-cta svg {
  width: 22px;
  height: 22px;
  color: var(--ag-green);
  flex-shrink: 0;
  transition: transform var(--ag-transition);
}

.header-cta:hover {
  color: var(--ag-green);
}

.header-cta:hover svg {
  transform: scale(1.08);
}

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--ag-white);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Off-Canvas Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  visibility: hidden;
}

.mobile-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 20, 0.72);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-drawer.is-open .mobile-drawer-backdrop {
  opacity: 1;
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--ag-navy);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  border-right: 1px solid var(--ag-border-dark);
}

.mobile-drawer.is-open .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ag-white);
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-drawer-nav a {
  color: var(--ag-white);
  font-size: 18px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-nav a:hover {
  color: var(--ag-green);
}

.mobile-drawer-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

/* ==========================================================================
   Hero Sections (Home Hero & Subpage Hero)
   ========================================================================== */
.home-hero,
.page-hero {
  position: relative;
  background: var(--ag-hero-gradient);
  color: var(--ag-white);
  overflow: hidden;
}

.home-hero::before,
.page-hero::before,
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../assets/brand/constellation-net.svg');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.85;
  pointer-events: none;
}

.home-hero {
  height: 900px;
  padding: 90px 30px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -50px;
}

.home-hero-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 34px;
}

.home-hero-title {
  font-family: var(--font-heading);
  font-size: 62px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ag-white);
  margin-bottom: 18px;
}

.home-hero-subtitle {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.page-hero {
  height: 420px;
  padding: 120px 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-hero.is-tall {
  height: 446px;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
}

.page-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ag-green);
  margin-bottom: 14px;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: 50px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ag-white);
}

/* ==========================================================================
   Layout Containers & Common Typography
   ========================================================================== */
.container {
  max-width: var(--ag-container);
  margin: 0 auto;
  padding: 0 30px;
}

.container-narrow {
  max-width: var(--ag-container-narrow);
  margin: 0 auto;
  padding: 0 30px;
}

.section {
  padding: 130px 0;
  position: relative;
}

.section-bg-soft {
  background-color: var(--ag-blue-soft);
}

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

.section-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-eyebrow.is-blue {
  color: var(--ag-blue);
}

.section-eyebrow.is-green {
  color: var(--ag-green);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ag-text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--ag-text);
  font-weight: 600;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 16px 32px;
  min-height: 48px;
  border-radius: var(--ag-radius-sm);
  border: 1px solid transparent;
  transition: all var(--ag-transition);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--ag-blue);
  color: var(--ag-white);
}

.btn-primary:hover {
  background-color: var(--ag-blue-dark);
  color: var(--ag-white);
}

.btn-soft {
  background-color: var(--ag-blue-soft);
  color: var(--ag-blue);
}

.btn-soft:hover {
  background-color: var(--ag-blue);
  color: var(--ag-white);
}

.btn-outline-blue {
  background-color: transparent;
  border-color: var(--ag-blue);
  color: var(--ag-blue);
}

.btn-outline-blue:hover {
  background-color: var(--ag-blue);
  color: var(--ag-white);
}

.btn-green {
  background-color: var(--ag-green);
  color: var(--ag-white);
  font-size: 16px;
  padding: 18px 42px;
  min-height: 54px;
}

.btn-green:hover {
  background-color: var(--ag-green-dark);
  color: var(--ag-white);
}

.btn-dark {
  background-color: var(--ag-black);
  color: var(--ag-white);
}

.btn-dark:hover {
  background-color: #262A32;
}

.btn-gray-soft {
  background-color: rgba(0, 0, 0, 0.06);
  color: var(--ag-text);
}

.btn-gray-soft:hover {
  background-color: rgba(0, 0, 0, 0.14);
}

.btn-sm {
  font-size: 13px;
  padding: 11px 20px;
  min-height: 36px;
}

.btn-xs {
  font-size: 12px;
  padding: 8px 16px;
  min-height: 30px;
}

.btn-lg {
  font-size: 16px;
  padding: 18px 38px;
  min-height: 54px;
}

.btn-xl {
  font-size: 18px;
  padding: 20px 44px;
  min-height: 60px;
}

/* ==========================================================================
   Section 2 (Home): Who We Are + Counters
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
  margin-bottom: 90px;
}

.about-lead-title {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 22px;
}

.about-text p {
  color: var(--ag-text-muted);
  font-size: 16px;
  line-height: 1.72;
  margin-bottom: 18px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 34px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ag-text);
}

.check-list svg {
  width: 20px;
  height: 20px;
  color: var(--ag-green);
  flex-shrink: 0;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  padding-top: 20px;
}

.counter-number {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ag-blue);
  margin-bottom: 10px;
}

.counter-label {
  font-size: 15px;
  color: var(--ag-text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Edge-to-Edge 50/50 Split Sections
   ========================================================================== */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
  background-color: var(--ag-blue-soft);
}

.split-media {
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.split-media picture,
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 10%;
}

.feature-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px 44px;
  text-align: center;
}

.feature-mini-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-mini-icon {
  color: var(--ag-blue);
  margin-bottom: 16px;
}

.feature-mini-icon svg {
  width: 30px;
  height: 30px;
}

.feature-mini-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ag-text);
  max-width: 230px;
}

/* ==========================================================================
   Section 4 (Home): Services 3x2 Grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 48px;
  text-align: center;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circle-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--ag-green);
  color: var(--ag-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
  transition: transform var(--ag-transition), box-shadow var(--ag-transition);
}

.circle-icon svg {
  width: 28px;
  height: 28px;
}

.service-card:hover .circle-icon {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(3, 216, 125, 0.28);
}

.service-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
}

.service-card-desc {
  color: var(--ag-text-muted);
  font-size: 15px;
  line-height: 1.68;
  max-width: 320px;
}

/* ==========================================================================
   Section 5 (Home): Testimonials Split Carousel
   ========================================================================== */
.testimonial-slider {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 0 40px;
}

.testimonial-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.35s ease;
}

.testimonial-slide.is-active {
  display: flex;
}

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

.testimonial-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 24px;
}

.testimonial-quote {
  font-size: 16px;
  line-height: 1.72;
  color: var(--ag-text-muted);
  margin-bottom: 24px;
}

.testimonial-author {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--ag-text);
  margin-bottom: 4px;
}

.testimonial-role {
  font-size: 13px;
  color: var(--ag-blue);
  font-weight: 500;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ag-text-light);
  transition: color var(--ag-transition);
}

.slider-arrow:hover {
  color: var(--ag-blue);
}

.slider-arrow.is-prev {
  left: -6px;
}

.slider-arrow.is-next {
  right: -6px;
}

.slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(3, 118, 234, 0.28);
  transition: all var(--ag-transition);
}

.slider-dot.is-active {
  background: var(--ag-blue);
  transform: scale(1.3);
}

/* ==========================================================================
   Section 6 (Home): Portfolio Filter + 3x2 Grid
   ========================================================================== */
.portfolio-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ag-text);
  border-radius: var(--ag-radius-sm);
  transition: all var(--ag-transition);
}

.filter-btn:hover {
  color: var(--ag-blue);
}

.filter-btn.is-active {
  background-color: var(--ag-blue);
  color: var(--ag-white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 36px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.portfolio-card.is-hidden {
  display: none;
}

.portfolio-thumb {
  position: relative;
  border-radius: var(--ag-radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 18px;
  background: #F2F5F8;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.05);
}

.portfolio-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--ag-text);
  margin-bottom: 6px;
}

.portfolio-card:hover .portfolio-card-title {
  color: var(--ag-blue);
}

.portfolio-card-cat {
  font-size: 13px;
  color: var(--ag-text-light);
}

.portfolio-more-wrap {
  text-align: center;
  margin-top: 52px;
}

/* ==========================================================================
   Section 7 (Home & Project): CTA Constellation Banner
   ========================================================================== */
.cta-banner {
  position: relative;
  background: var(--ag-hero-gradient);
  color: var(--ag-white);
  padding: 115px 30px;
  text-align: center;
  overflow: hidden;
}

.cta-banner-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.cta-banner-eyebrow {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--ag-green);
  margin-bottom: 18px;
}

.cta-banner-title {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ag-white);
  margin-bottom: 36px;
}

/* ==========================================================================
   Section 8 (Home): Pricing Plans 3-Column Grid
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pricing-card {
  position: relative;
  border: 1px solid var(--ag-border);
  border-radius: var(--ag-radius-sm);
  padding: 52px 36px 44px;
  text-align: center;
  background: var(--ag-white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pricing-ribbon {
  position: absolute;
  top: 16px;
  left: -34px;
  width: 130px;
  padding: 5px 0;
  background: var(--ag-blue);
  color: var(--ag-white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-45deg);
}

.pricing-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}

.pricing-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--ag-green);
  margin-bottom: 26px;
}

.pricing-price {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 50px;
  font-weight: 600;
  line-height: 1;
  color: var(--ag-text);
  margin-bottom: 28px;
}

.pricing-currency {
  font-size: 20px;
  font-weight: 600;
  margin-top: 6px;
  margin-right: 3px;
}

.pricing-unit {
  font-size: 18px;
  font-weight: 600;
  margin-top: 6px;
  margin-left: 2px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 14px;
  color: var(--ag-text-muted);
}

.pricing-note {
  margin-top: 22px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ag-text-light);
  max-width: 240px;
}

/* ==========================================================================
   Section 9 (Home): Founder Quote Split
   ========================================================================== */
.founder-box {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.founder-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 22px;
}

.founder-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.founder-role {
  font-size: 13px;
  color: var(--ag-blue);
  font-weight: 500;
  margin-bottom: 22px;
}

.founder-quote {
  font-size: 16px;
  line-height: 1.72;
  color: var(--ag-text-muted);
  margin-bottom: 24px;
}

.founder-socials {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.founder-socials a {
  color: var(--ag-text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.founder-socials a:hover {
  color: var(--ag-blue);
}

.founder-socials svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Section 10 (Home): How We Work 3x2 Steps
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 48px;
}

.process-step-num {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 600;
  color: var(--ag-blue);
  line-height: 1.1;
  margin-bottom: 14px;
}

.process-step-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 12px;
}

.process-step-desc {
  font-size: 15px;
  line-height: 1.68;
  color: var(--ag-text-muted);
}

/* ==========================================================================
   Section 11 (Home) & Contact Info Stack
   ========================================================================== */
.contact-stack {
  display: flex;
  flex-direction: column;
  gap: 38px;
  text-align: center;
  align-items: center;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-item-icon {
  color: var(--ag-blue);
  margin-bottom: 12px;
}

.contact-item-icon svg {
  width: 28px;
  height: 28px;
}

.contact-item-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--ag-text);
  margin-bottom: 4px;
}

.contact-item-sub {
  font-size: 13px;
  color: var(--ag-text-light);
}

/* Contact Page 3-Col Row */
.contact-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  text-align: center;
}

/* Contact Form & Interactive Pin */
.contact-form-box {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.contact-form-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 34px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-control {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  background-color: var(--ag-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--ag-radius-sm);
  font-size: 15px;
  color: var(--ag-text);
  transition: border-color var(--ag-transition), box-shadow var(--ag-transition);
}

.form-control::placeholder {
  color: var(--ag-text-light);
}

.form-control:focus {
  outline: none;
  border-color: var(--ag-blue);
  box-shadow: 0 0 0 3px rgba(3, 118, 234, 0.12);
}

textarea.form-control {
  height: 150px;
  padding: 14px 16px;
  resize: vertical;
}

.form-submit-full {
  width: 100%;
  margin-top: 18px;
}

.form-feedback {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--ag-radius-sm);
  background: var(--ag-green-soft);
  color: #027A48;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  display: none;
}

.form-feedback.is-visible {
  display: block;
}

.map-pin-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ag-white);
  color: var(--ag-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: transform var(--ag-transition);
}

.map-pin-badge:hover {
  transform: translate(-50%, -54%) scale(1.06);
}

.map-pin-badge svg {
  width: 28px;
  height: 28px;
}

.map-pin-tooltip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ag-navy);
  color: var(--ag-white);
  padding: 10px 16px;
  border-radius: var(--ag-radius-sm);
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ag-transition);
}

.map-pin-badge:hover .map-pin-tooltip,
.map-pin-badge.is-active .map-pin-tooltip {
  opacity: 1;
}

/* ==========================================================================
   News Page (news.html)
   ========================================================================== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.news-card {
  background-color: var(--ag-blue-soft);
  border-radius: var(--ag-radius-md);
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 36px;
  align-items: center;
}

.news-card-title {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.38;
  margin-bottom: 8px;
}

.news-card-title a:hover {
  color: var(--ag-blue);
}

.news-card-meta {
  font-size: 13px;
  color: var(--ag-text-light);
  margin-bottom: 16px;
}

.news-card-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ag-text-muted);
  margin-bottom: 22px;
}

.news-card-thumb {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.news-card:hover .news-card-thumb img {
  transform: scale(1.06);
}

/* ==========================================================================
   Single Post Page (post-006.html) & Legal Pages
   ========================================================================== */
.post-hero-image {
  border-radius: var(--ag-radius-md);
  overflow: hidden;
  margin-bottom: 48px;
}

.post-hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.prose h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.38;
  margin: 40px 0 18px;
}

.prose h3:first-child {
  margin-top: 0;
}

.prose h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin: 34px 0 14px;
}

.prose p {
  font-size: 16px;
  line-height: 1.78;
  color: var(--ag-text-muted);
  margin-bottom: 20px;
}

.prose ul,
.prose ol {
  margin: 16px 0 24px 20px;
  color: var(--ag-text-muted);
}

.prose ul li {
  list-style: disc;
  margin-bottom: 8px;
}

.prose ol li {
  list-style: decimal;
  margin-bottom: 8px;
}

.share-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 48px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--ag-radius-sm);
  border: 1px solid;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
}

.share-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.share-btn.is-fb {
  border-color: #3b5998;
  color: #3b5998;
}
.share-btn.is-tw {
  border-color: #1da1f2;
  color: #1da1f2;
}
.share-btn.is-li {
  border-color: #0077b5;
  color: #0077b5;
}
.share-btn.is-pi {
  border-color: #bd081c;
  color: #bd081c;
}

.share-btn:hover {
  opacity: 0.78;
  transform: translateY(-2px);
}

/* 4-Column Carousel (More articles / More projects) */
.carousel-wrap {
  position: relative;
  padding: 0 36px;
}

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

.carousel-card {
  text-align: center;
}

.carousel-card-thumb {
  border-radius: var(--ag-radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 16px;
}

.carousel-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.carousel-card:hover .carousel-card-thumb img {
  transform: scale(1.05);
}

.carousel-card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 6px;
}

.carousel-card-meta {
  font-size: 12px;
  color: var(--ag-text-light);
}

/* ==========================================================================
   Project Case Study Page (project017.html)
   ========================================================================== */
.project-meta-bar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 30px;
  align-items: center;
  padding-bottom: 72px;
  margin-bottom: 72px;
  border-bottom: 1px solid var(--ag-border-soft);
}

.project-meta-label {
  font-size: 13px;
  color: var(--ag-text-light);
  margin-bottom: 4px;
}

.project-meta-value {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
}

.project-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.project-sec-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
}

.icon-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.icon-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 500;
}

.icon-list svg {
  width: 20px;
  height: 20px;
  color: var(--ag-green);
  flex-shrink: 0;
}

.project-counters-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
  margin-top: 90px;
}

.project-counter-val {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 600;
  color: var(--ag-text);
  margin-bottom: 10px;
}

.photo-strip-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  position: relative;
}

.photo-strip-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.photo-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-strip-item:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   Demo Design System Page (demo-design-system.html)
   ========================================================================== */
.ds-block {
  padding: 56px 0;
  border-bottom: 1px solid var(--ag-border);
}

.ds-block:last-child {
  border-bottom: none;
}

.ds-label {
  font-size: 12px;
  color: var(--ag-text-light);
  margin-bottom: 28px;
}

.ds-title-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ds-h1 { font-size: 50px; line-height: 1.2; }
.ds-h2 { font-size: 36px; line-height: 1.28; }
.ds-h3 { font-size: 26px; line-height: 1.35; }
.ds-h4 { font-size: 20px; line-height: 1.4; }
.ds-h5 { font-size: 16px; line-height: 1.45; }
.ds-h6 { font-size: 14px; line-height: 1.5; }

.ds-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.ds-swatch-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ds-swatch-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

.ds-swatch-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ds-icon-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ds-images-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ds-images-4 img {
  border-radius: var(--ag-radius-sm);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ds-btn-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
  text-align: center;
}

.ds-btn-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

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

.ds-box {
  padding: 44px 30px;
  border-radius: var(--ag-radius-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ds-box-icon {
  color: var(--ag-blue);
  margin-bottom: 14px;
}

.ds-box-icon svg {
  width: 26px;
  height: 26px;
}

.ds-box-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.ds-box-desc {
  font-size: 14px;
  color: var(--ag-text-muted);
  line-height: 1.6;
}

.ds-form-tier {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 36px;
  padding: 40px 0;
  border-bottom: 1px solid var(--ag-border-soft);
  align-items: start;
}

.ds-form-tier:last-child {
  border-bottom: none;
}

/* ==========================================================================
   404 Page (404.html)
   ========================================================================== */
.error-404-wrap {
  min-height: calc(100vh - 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 60px 24px;
  text-align: center;
  overflow: hidden;
  background: var(--ag-white);
}

html.no-member-bar .error-404-wrap {
  min-height: 100vh;
}

.error-404-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: clamp(180px, 32vw, 440px);
  font-weight: 700;
  color: rgba(0, 0, 0, 0.045);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.error-404-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-404-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 40px;
}

.error-404-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 36px;
}

/* ==========================================================================
   Site Footer (Shared across all pages except 404)
   ========================================================================== */
.site-footer {
  background-color: var(--ag-black);
  color: var(--ag-white);
  padding: 96px 30px 72px;
  text-align: center;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--ag-white);
  margin-bottom: 32px;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
}

.footer-social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--ag-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social-btn:hover {
  background: var(--ag-blue);
  color: var(--ag-white);
}

.footer-social-btn svg {
  width: 18px;
  height: 18px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 24px;
}

.footer-links a,
.footer-links button {
  color: var(--ag-white);
  font-size: 13px;
  font-weight: 500;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--ag-green);
}

.footer-biz-info {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.46);
  margin-bottom: 10px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
}

/* ==========================================================================
   Search Overlay & Lightbox Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(6, 9, 19, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.modal-close {
  position: absolute;
  top: 28px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--ag-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--ag-blue);
}

.search-modal-box {
  width: 100%;
  max-width: 640px;
  text-align: center;
  color: var(--ag-white);
}

.search-modal-title {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--ag-white);
  margin-bottom: 24px;
}

.search-input-wrap {
  display: flex;
  gap: 12px;
}

.search-input-wrap input {
  flex: 1;
  height: 54px;
  padding: 0 20px;
  border-radius: var(--ag-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ag-white);
  font-size: 16px;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--ag-radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Responsive Design (<= 991px and 375px Mobile)
   ========================================================================== */
@media (max-width: 991px) {
  .member-bar-inner {
    padding: 0 18px;
    height: 34px;
    font-size: 12px;
  }

  .site-header {
    height: 60px;
    margin-bottom: -60px;
  }

  body.is-home .site-header:not(.is-sticky) {
    transform: translateY(380px);
  }

  .site-header.is-sticky {
    height: 60px;
  }

  .header-inner {
    padding: 0 18px;
    grid-template-columns: auto 1fr;
  }

  .header-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    margin-right: 8px;
  }

  .header-brand img {
    width: 32px;
    height: 32px;
  }

  .header-cta {
    font-size: 14px;
  }

  .home-hero {
    height: 440px;
    padding: 40px 20px 60px;
  }

  .home-hero-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 18px;
  }

  .home-hero-title {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .home-hero-subtitle {
    font-size: 16px;
  }

  .page-hero,
  .page-hero.is-tall {
    height: 280px;
    padding: 60px 20px 0;
  }

  .page-hero-title {
    font-size: 30px;
  }

  .section {
    padding: 76px 0;
  }

  .container,
  .container-narrow {
    padding: 0 20px;
  }

  .section-header {
    margin-bottom: 44px;
  }

  .section-title {
    font-size: 24px;
  }

  .about-grid,
  .split-section,
  .project-two-col,
  .ds-grid-2 {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .split-section {
    min-height: auto;
  }

  .split-content {
    padding: 56px 24px;
  }

  .split-media {
    min-height: 260px;
    max-height: 340px;
  }

  .counters-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
  }

  .counter-number {
    font-size: 34px;
  }

  .feature-2x2,
  .services-grid,
  .portfolio-grid,
  .pricing-grid,
  .process-grid,
  .contact-row-3,
  .project-counters-3,
  .ds-btn-matrix,
  .ds-boxes-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .btn-row {
    flex-direction: column;
  }

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

  .cta-banner {
    padding: 72px 20px;
  }

  .cta-banner-title {
    font-size: 28px;
  }

  .news-card {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    text-align: left;
  }

  .news-card-thumb {
    width: 110px;
    height: 110px;
    order: -1;
  }

  .share-bar,
  .carousel-grid-4,
  .photo-strip-4,
  .ds-images-4 {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .project-meta-bar {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 40px;
    margin-bottom: 40px;
  }

  .form-grid-2,
  .ds-form-tier {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .share-bar,
  .carousel-grid-4 {
    grid-template-columns: 1fr;
  }
}
