/* Base Reset & Design Tokens — v1.0.5 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Unified background tone sampled from reference ref.png */
  --bg-page: #ebe9e3;           /* Page body background */
  --bg-main: #ebe9e3;           /* Section & card light background */
  --accent-color: #B57762;      /* Primary terracotta accent color */
  --accent-hover: #9e634e;      /* Slightly deeper accent tone for hover */
  --bg-card-hover: var(--accent-color); /* Solid accent background on hover */
  --bg-btn-secondary: #dfddd7;  /* Secondary button fill */

  --text-dark: #0a0b0c;
  --text-light: #f5f4ee;
  --text-muted: #66645e;
  --text-muted-hover: #8c8a84;

  --border-color: #c8c6be;      /* Hairline grid border */
  --border-dark-card: #1c1d1f;

  --font-mono: 'Space Mono', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  padding: 24px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

/* Page Frame Container */
.page-container {
  width: 100%;
  max-width: 1180px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  background-color: var(--bg-main);
}

/* Generic Section Frame (Default Framed) */
.section {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

/* Header & Nav Bars */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dark);
  background-color: var(--bg-main);
}

.nav-brand, .section-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 400;
}

.sep {
  color: var(--text-muted);
  opacity: 0.6;
}

.nav-brand .role {
  color: var(--text-muted);
}

.section-tagline {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Live System Indicator & Status Pulse */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  background-color: rgba(181, 119, 98, 0.08);
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid rgba(181, 119, 98, 0.25);
  margin-left: 4px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-color);
  border-radius: 50%;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-color);
  opacity: 0;
  animation: pulse-ring 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.4);
    opacity: 0.9;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.pulse-status-mini {
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
}

/* Pipeline Code Notation in Headers */
.pipeline-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-color);
  letter-spacing: 0.02em;
  background: rgba(181, 119, 98, 0.07);
  padding: 2px 7px;
  border-radius: 2px;
  border: 1px solid rgba(181, 119, 98, 0.2);
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.pipeline-code::before {
  content: '>';
  margin-right: 4px;
  font-weight: 700;
  opacity: 0.6;
}

.section-header:hover .pipeline-code {
  background: rgba(181, 119, 98, 0.14);
  border-color: rgba(181, 119, 98, 0.35);
}

.card-fn {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  opacity: 0.75;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.case-card:hover .card-fn {
  color: rgba(255, 255, 255, 0.85);
  opacity: 1;
}

.flagship-col:hover .card-fn {
  color: var(--accent-color);
  opacity: 1;
}

/* SECTION 1: HERO (FRAMED SECTION) */
.hero-section {
  overflow: hidden;
  height: 80vh;
  min-height: 600px;
}

.hero-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  min-height: 100%;
  align-items: stretch;
}

.hero-left-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border-color);
  background-color: var(--bg-main);
}

.hero-left-column .top-nav {
  border-bottom: 1px solid var(--border-color);
  padding: 14px 28px;
}

.hero-content {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.hero-title-group {
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(3.6rem, 6.8vw, 6.2rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.045em;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--text-dark);
  font-weight: 400;
  max-width: 420px;
  margin-bottom: 12px;
}

.hero-ai-principle {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-dark);
  font-weight: 500;
  max-width: 440px;
  margin-top: 14px;
  margin-bottom: 22px;
  padding-left: 14px;
  border-left: 2px solid var(--accent-color);
  font-style: normal;
}

/* Stack bar moved directly under description */
.hero-stack-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-top: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--text-light);
  border-color: var(--accent-color);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-btn-secondary);
  color: var(--text-dark);
  border-color: #b8b6ad;
}

.btn-secondary:hover {
  background-color: var(--accent-color);
  color: var(--text-light);
  border-color: var(--accent-color);
  transform: translateY(-1px);
}

.arrow-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn:hover .arrow-icon,
.case-card:hover .arrow-icon,
.flagship-col:hover .arrow-icon,
.contact-link-card:hover .arrow-icon,
.footer-btn:hover .arrow-icon {
  transform: translate(2px, -2px);
}

/* Hero Visual Frame — 50% Width & 100% Full Height of Section */
.hero-visual {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0;
  margin: 0;
}

.hero-visual picture {
  width: 100%;
  height: 100%;
  display: block;
}

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

/* Absolute Scroll Indicator on Image */
.absolute-scroll {
  position: absolute;
  bottom: 16px;
  right: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  background-color: rgba(235, 233, 227, 0.85);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border: 1px solid rgba(200, 198, 190, 0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.absolute-scroll:hover {
  opacity: 0.8;
  transform: translateY(2px);
}

/* Left-column Footer (50% width pagination) */
.hero-footer-left {
  display: flex;
  align-items: center;
  padding: 14px 28px;
  border-top: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dark);
  background-color: var(--bg-main);
}

.pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.progress-line {
  flex-grow: 1;
  max-width: 100px;
  height: 1px;
  background-color: var(--text-dark);
}

/* VISUAL STRIP DIVIDER (BETWEEN HERO AND EVIDENCE) */
.visual-strip-divider {
  width: 100%;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-main);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.strip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.visual-strip-divider:hover .strip-img {
  opacity: 1;
}

/* VISUAL CONVERGENCE DIVIDER (BETWEEN EVIDENCE AND FLAGSHIP) */
.visual-convergence-divider {
  width: 100%;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-main);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.convergence-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.visual-convergence-divider:hover .convergence-img {
  opacity: 1;
}

/* VISUAL PIPELINE DIVIDER (BEFORE APPROACH / POSITIONING) */
.visual-pipeline-divider {
  width: 100%;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-main);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.pipeline-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.visual-pipeline-divider:hover .pipeline-img {
  opacity: 1;
}

/* MOBILE CONTACT STRIP DIVIDER */
.visual-contact-mobile-divider {
  display: none;
  width: 100%;
  height: 110px;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-main);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  justify-content: center;
}

.mobile-contact-strip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.95;
}

/* SECTION 2: EVIDENCE (COMPLETELY BORDERLESS ARCHITECTURAL SECTION) */
.evidence-section {
  border: none !important;
  background-color: transparent !important;
  padding-left: 0 !important;
  box-shadow: none !important;
}

.evidence-section .section-header {
  border: none !important;
  background-color: transparent !important;
  padding: 0 0 16px 0;
}

.evidence-headline-wrapper {
  padding: 24px 0 32px 0;
  background-color: transparent !important;
}

.evidence-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-dark);
}

.evidence-subtitle {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 640px;
  margin-top: 16px;
  font-weight: 400;
}

/* Cases Grid (Floating Borderless Cards) */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 0 32px 0;
  background-color: transparent !important;
}

/* Case Cards Default */
.case-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 0;
  cursor: default;
  background-color: rgba(224, 222, 215, 0.45);
  color: var(--text-dark);
  border: none !important;
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease;
}

.case-card:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-light);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.card-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-section .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.case-card:hover .card-section .label {
  color: rgba(255, 255, 255, 0.85);
}

.card-section .value {
  font-size: 14.5px;
  line-height: 1.45;
  font-weight: 400;
}

.card-section .value.title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.card-divider {
  margin: 16px 0;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
  transition: border-color 0.3s ease;
}

.case-card:hover .card-divider,
.flagship-col:hover .card-divider {
  border-top: 1px dashed rgba(255, 255, 255, 0.25);
}

/* Highlighted Result Section */
.result-section {
  margin-top: 8px;
  padding: 14px 16px;
  background-color: rgba(0, 0, 0, 0.04);
  border-left: 3px solid var(--accent-color);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.case-card:hover .result-section {
  background-color: rgba(255, 255, 255, 0.12);
  border-left-color: #ffffff;
}

.result-section .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark) !important;
  opacity: 0.9;
}

.case-card:hover .result-section .label {
  color: #ffffff !important;
  opacity: 1;
}

.result-highlight {
  font-size: 19.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 6px 0 3px 0;
  color: var(--accent-color);
  line-height: 1.2;
}

.case-card:hover .result-highlight {
  color: #ffffff !important;
}

.result-sub {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.35;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.case-card:hover .result-sub {
  color: #ffffff;
  opacity: 0.95;
}

/* Evidence Footer */
.evidence-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none !important;
  padding: 8px 0 0 0;
  background-color: transparent !important;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
  border: none !important;
}

.grid-icon-box {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
}

.skills-list-horizontal {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  font-weight: 700;
}

.skills-list-horizontal span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.skills-list-horizontal span::before {
  content: '▪';
  font-size: 9px;
  opacity: 0.6;
}

/* SECTION 3: FLAGSHIP PROJECTS */
.flagship-section {
  border: 1px solid var(--border-color);
  background-color: var(--bg-main);
}

.flagship-headline-wrapper {
  padding: 36px 44px 28px 44px;
  background-color: var(--bg-main);
}

.flagship-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-dark);
}

.flagship-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border-color);
  padding: 0;
  background-color: var(--bg-main);
}

.flagship-col {
  padding: 36px 40px 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: none;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.flagship-col:first-child {
  border-right: 1px solid var(--border-color);
}

.flagship-col:hover {
  background-color: rgba(12, 13, 14, 0.035);
}

.card-top-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.card-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Side-by-Side Layout: Text Left, Logo Right */
.project-header-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-top: 8px;
  margin-bottom: 16px;
}

.project-info-left {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Clean 1:1 Square Brand Logos */
.project-icon-box {
  width: 130px;
  height: 130px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  border: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 0;
  border-radius: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  display: block;
}

.flagship-col:hover .project-icon-box {
  background-color: transparent !important;
  border-color: transparent !important;
  transform: scale(1.05);
}

.project-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--accent-color);
  transition: color 0.3s ease;
}

.flagship-col:hover .project-title {
  color: var(--accent-color) !important;
}

.project-url {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  margin-top: 4px;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
  margin-bottom: 12px;
}

.project-desc {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 0;
  color: var(--text-dark);
}

.feature-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-block .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.feature-list li {
  font-size: 14px;
  line-height: 1.45;
  position: relative;
  padding-left: 16px;
}

.feature-list li::before {
  content: '▪';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 10px;
  opacity: 0.7;
}

.feature-list li strong {
  font-weight: 700;
}

.stack-section {
  margin-top: 20px;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.stack-tags span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  background-color: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
}

/* SECTION 4: APPROACH (OPEN HORIZONTAL ROW SYSTEM - BORDERLESS) */
.approach-section {
  border: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.approach-section .section-header {
  border: none !important;
  border-bottom: 1px solid var(--border-color) !important;
  background-color: transparent !important;
  padding: 0 0 16px 0;
}

.approach-headline-wrapper {
  padding: 32px 0 28px 0;
  background-color: transparent !important;
}

.approach-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text-dark);
  max-width: 680px;
}

.approach-rows {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-color);
}

.approach-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  padding: 32px 0;
  border-top: 1px solid var(--border-color);
  transition: background-color 0.25s ease, padding-left 0.25s ease;
}

.approach-row:hover {
  background-color: rgba(12, 13, 14, 0.025);
  padding-left: 12px;
}

.row-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  padding-top: 2px;
}

.row-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 520px;
}

.row-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.row-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* SECTION 5: STACK (AIRY 3-COLUMN CHIP SYSTEM - FRAMED SECTION) */
.stack-section-main {
  border: 1px solid var(--border-color);
  background-color: var(--bg-main);
}

.stack-headline-wrapper {
  padding: 36px 44px 28px 44px;
}

.stack-main-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-dark);
}

.stack-columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-main);
}

.stack-col {
  padding: 36px 32px 44px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: 1px solid var(--border-color);
}

.stack-col:last-child {
  border-right: none;
}

.stack-col-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-color);
}

.col-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.col-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dark);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  background-color: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  transition: all 0.2s ease;
  cursor: default;
}

.chip:hover {
  background-color: var(--accent-color);
  color: #f5f4ee;
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

/* SECTION 6: CONTACT */
.contact-section {
  border: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.contact-section .section-header {
  border: none !important;
  border-bottom: 1px solid var(--border-color) !important;
  background-color: transparent !important;
  padding: 0 0 16px 0;
}

.contact-body {
  padding: 48px 0 32px 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: flex-start;
  background-color: transparent !important;
}

.contact-left-col {
  display: flex;
  flex-direction: column;
}

.contact-title {
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.contact-subtitle {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 32px;
  max-width: 520px;
}

.direct-contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
  width: 100%;
}

.contact-link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 22px;
  background-color: rgba(224, 222, 215, 0.45);
  border: none !important;
  text-decoration: none;
  color: var(--text-dark);
  min-height: 110px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-link-card:hover {
  background-color: var(--accent-color);
  color: #f5f4ee;
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(181, 119, 98, 0.25);
}

.contact-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.contact-link-card:hover .contact-label {
  color: rgba(255, 255, 255, 0.85);
}

.contact-value {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Inline Architectural Contact Form (Borderless, exact matching style with contact buttons above) */
.inline-contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px;
  background-color: rgba(224, 222, 215, 0.45);
  border: none !important;
  width: 100%;
  box-sizing: border-box;
}

.inline-form-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

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

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

.inline-contact-form label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  font-weight: 700;
}

.inline-contact-form input,
.inline-contact-form textarea {
  padding: 13px 16px;
  background-color: rgba(235, 233, 227, 0.75);
  border: none !important;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.inline-contact-form input:focus,
.inline-contact-form textarea:focus {
  background-color: #ffffff;
  box-shadow: 0 0 0 1px var(--accent-color);
}

.form-submit-btn {
  align-self: flex-start;
  margin-top: 4px;
}

/* Right Column Standalone 3D Charcoal Cube */
.contact-right-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  padding: 0;
  margin: 0;
}

.contact-cube-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0;
  padding: 0;
}

.contact-right-col:hover .contact-cube-img {
  transform: translateY(-6px) scale(1.03);
}

/* Contact Footer */
.contact-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 0 0;
  margin-top: 48px;
  border-top: 1px solid var(--border-color) !important;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  background-color: transparent !important;
  gap: 24px;
}

.contact-footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-footer .pagination {
  width: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-footer .progress-line {
  width: 60px;
  height: 1px;
  background-color: var(--text-dark);
}

/* CUSTOM ARCHITECTURAL NOTIFICATION MODAL WITH FULL-WIDTH BANNER */
.notification-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 11, 12, 0.55);
  backdrop-filter: blur(5px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.notification-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.notification-content {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 460px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.notification-overlay.active .notification-content {
  transform: translateY(0) scale(1);
}

.notification-banner-frame {
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-main);
}

.notification-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.notification-body-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 12px;
}

.notification-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.notif-close-x {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-dark);
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.notif-close-x:hover {
  opacity: 1;
}

.notification-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-top: 4px;
}

.notification-desc {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.notification-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.notif-btn {
  padding: 10px 18px;
  font-size: 11px;
}

/* MODAL DIALOG */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 11, 12, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 500px;
  padding: 0;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-banner-frame {
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-main);
}

.modal-body-content {
  padding: 24px 28px 28px 28px;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-dark);
  line-height: 1;
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  font-weight: 700;
}

.form-group input, .form-group textarea {
  padding: 12px 14px;
  background-color: #dfddd7;
  border: 1px solid var(--border-color);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: #0c0d0e;
}

.full-width {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 960px) {
  body {
    padding: 12px;
  }

  .hero-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-left-column {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .hero-content {
    padding: 32px 20px;
  }

  /* Bigger Title on Mobile */
  .hero-title {
    font-size: clamp(3.4rem, 14.5vw, 5.2rem);
    line-height: 0.92;
    margin-bottom: 24px;
    padding-bottom: 20px;
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  .hero-stack-bar {
    margin-top: 14px;
    margin-bottom: 28px;
    gap: 8px;
    font-size: 11px;
  }

  /* Full 1:1 Square Mobile Hero Visual */
  .hero-visual {
    height: auto;
    aspect-ratio: 1 / 1;
    min-height: auto;
    max-height: 480px;
    border-top: 1px solid var(--border-color);
  }

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

  /* Full-bleed Edge-to-Edge Visual Dividers on Mobile */
  .visual-convergence-divider,
  .visual-pipeline-divider,
  .visual-strip-divider,
  .contact-divider,
  .visual-contact-mobile-divider {
    margin-left: -12px;
    margin-right: -12px;
    width: calc(100% + 24px);
    max-width: none;
    border-left: none;
    border-right: none;
  }


  /* Hide strip divider on mobile */
  .visual-strip-divider {
    display: none !important;
  }


  .visual-contact-mobile-divider {
    display: flex;
  }

  .cases-grid {
    grid-template-columns: 1fr;
    padding: 0 0 28px 0;
  }

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

  .flagship-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .flagship-col {
    padding: 28px 24px;
  }

  .project-header-layout {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 12px;
  }

  .project-icon-box {
    width: 110px;
    height: 110px;
  }

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

  .stack-col {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 28px 24px;
  }

  .stack-col:last-child {
    border-bottom: none;
  }

  .approach-row {
    grid-template-columns: 50px 1fr;
    padding: 24px 0;
  }

  .contact-body {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 28px 0 36px 0;
  }

  .contact-right-col {
    display: none !important;
  }

  .direct-contacts-grid {
    grid-template-columns: 1fr;
  }

  .form-row-2col {
    grid-template-columns: 1fr;
  }

  .inline-contact-form {
    padding: 20px 16px;
  }

  .contact-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0 0 0;
  }

  .evidence-headline-wrapper, .flagship-headline-wrapper, .approach-headline-wrapper, .stack-headline-wrapper {
    padding: 24px 0 20px 0;
  }

  .flagship-headline-wrapper, .stack-headline-wrapper {
    padding: 28px 24px 20px 24px;
  }

  .evidence-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 540px) {
  .section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
  }

  .nav-brand {
    flex-wrap: wrap;
    gap: 6px 8px;
  }

  .section-meta {
    gap: 6px;
    font-size: 11px;
  }

  .section-tagline {
    font-size: 11px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .pipeline-code {
    font-size: 9.5px;
    padding: 1px 5px;
  }

  .live-badge {
    font-size: 9px;
    padding: 2px 5px;
    margin-left: 0;
  }

  .card-fn {
    font-size: 9.5px;
  }

  .modal-body-content {
    padding: 18px 18px 24px 18px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}

/* Header Word Gradation */
.word-gradation {
  display: inline;
  transition: opacity 0.25s ease, color 0.25s ease;
}


.contact-divider, .contact-right-col {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
