/* ==========================================================================
   ARCHITECTURAL EDITORIAL STYLESHEET
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-stone);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.55;
  padding-bottom: 5rem;
  position: relative;
  overflow-x: hidden;
}

/* ── Container ── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2.5rem;
  position: relative;
  z-index: 2;
}

/* ── Header ── */
.arch-header {
  border-bottom: 1px solid var(--line-hairline);
  padding: 1.6rem 0;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 10;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1;
}

.brand-divider {
  width: 1px;
  height: 34px;
  background: var(--line-hairline);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Nav Links */
.arch-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  flex-shrink: 0;
}

.arch-nav a {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #444444;
  white-space: nowrap;
  transition: color 0.15s ease;
  position: relative;
  padding-bottom: 2px;
}

.arch-nav a:hover {
  color: var(--text-main);
}

.arch-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-main);
  transition: width 0.2s ease;
}

.arch-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-pdf-link {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-main);
  border: 1px solid var(--line-strong);
  padding: 0 14px;
  background: transparent;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.btn-pdf-link:hover {
  background: var(--text-main);
  color: #ffffff;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  background: transparent;
  height: 32px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.lang-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 0 11px;
  height: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.lang-btn.active {
  background: var(--text-main);
  color: #ffffff;
}

.lang-btn:not(.active):hover {
  background: rgba(17, 17, 17, 0.08);
}

/* ── Hero Section (The Iconic Split View) ── */
.hero-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  position: relative;
  margin-top: 0.8rem;
  margin-bottom: 5.5rem;
  min-height: 480px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 3;
}

.hero-kicker-line {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 16px;
  margin-bottom: 1.5rem;
}

.kicker-dash {
  width: 28px;
  height: 1.5px;
  background: var(--text-main);
}

.kicker-text {
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-title-main {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 4.3vw, 4.4rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 1.6rem;
}

.hero-title-ghost {
  color: #9e9890;
  font-weight: 400;
  display: block;
}

.hero-paragraph {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: #383430;
  line-height: 1.65;
  max-width: 490px;
  margin-bottom: 2.2rem;
}

.hero-paragraph p + p {
  margin-top: 10px;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: auto;
  padding-bottom: 0;
}

.btn-action-solid {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #111111;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 24px;
  text-decoration: none;
  border: 1px solid #111111;
  transition: all 0.2s ease;
}

.btn-action-solid:hover {
  background: var(--color-red);
  border-color: var(--color-red);
}

.btn-action-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1.5px solid var(--text-main);
  padding-bottom: 3px;
  transition: all 0.2s ease;
}

.btn-action-line:hover {
  color: var(--color-red);
  border-bottom-color: var(--color-red);
}

.btn-arrow {
  font-family: var(--font-mono);
  font-size: 12px;
  transition: transform 0.15s ease;
}

.btn-action-solid:hover .btn-arrow,
.btn-action-line:hover .btn-arrow {
  transform: translateX(3px);
}

/* Hero Right: Architectural Canvas & Backdrop Circle */
.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 3;
}

.hero-drafting-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  min-height: 480px;
  margin-left: auto;
}

/* Large Soft Beige Backdrop Circle */
.hero-circle-disc {
  position: absolute;
  top: 48%;
  left: 52%;
  transform: translate(-50%, -50%);
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: #e3dcd4;
  pointer-events: none;
  z-index: 1;
}

/* Subtle Concentric Drafting Outer Ring */
.hero-circle-orbit {
  position: absolute;
  top: 48%;
  left: 52%;
  transform: translate(-50%, -50%);
  width: 466px;
  height: 466px;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, 0.12);
  pointer-events: none;
  z-index: 1;
}

/* Horizontal Hairline Baseline */
.hero-axis-h {
  position: absolute;
  bottom: 0;
  left: -140px;
  right: -40px;
  height: 1px;
  background: rgba(17, 17, 17, 0.18);
  pointer-events: none;
  z-index: 4;
}

/* Red Anchor Square on the baseline */
.hero-anchor-red {
  position: absolute;
  bottom: -6px;
  left: 28px;
  width: 12px;
  height: 12px;
  background: #e03222;
  pointer-events: none;
  z-index: 6;
}

/* Technical Drafting Tag (Upper Right) */
.hero-drafting-tag {
  position: absolute;
  top: 14px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 5;
}

.crosshair-icon {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-main);
  line-height: 1;
}

.drafting-meta {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Portrait Cutout Stage (Aligned with baseline, shifted left for optimal editorial balance) */
.hero-portrait-stage {
  position: relative;
  z-index: 3;
  width: 380px;
  height: 460px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform: translateX(-20px);
}

.hero-portrait-stage img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
  filter: contrast(1.02);
  transition: transform 0.3s ease;
}

.hero-portrait-stage:hover img {
  transform: scale(1.01);
}

/* ── Architectural Horizon Strip: 12+ Years ── */
.metrics-strip-single {
  border-top: 1px solid var(--line-hairline);
  border-bottom: 1px solid var(--line-hairline);
  padding: 1.8rem 0;
  margin-bottom: 5.5rem;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.metric-single-simple {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.metric-single-num {
  font-family: var(--font-heading);
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1;
  color: var(--text-main);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.metric-single-lbl {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  line-height: 1;
}

/* ── Section Structure ── */
.section-wrap {
  margin-bottom: 5.5rem;
  position: relative;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1.5px solid var(--text-main);
  padding-bottom: 12px;
  margin-bottom: 2rem;
}

.section-title-group {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--color-red);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.section-meta-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Architectural Bento Cards ── */
.arch-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--line-hairline);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0.25s ease;
  position: relative;
}

.arch-card:hover {
  border-color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.arch-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line-hairline);
  padding-bottom: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.arch-card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin-bottom: 6px;
}

.arch-card-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.arch-card-desc {
  font-size: 13.5px;
  color: #444444;
  line-height: 1.6;
}

/* ── Stack Tool Matrix ── */
.stack-tool-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.stack-tool-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line-hairline);
  padding-bottom: 9px;
  gap: 14px;
}

.stack-tool-info {
  display: flex;
  flex-direction: column;
}

.stack-tool-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-main);
  line-height: 1.3;
}

.stack-tool-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: var(--font-body);
  margin-top: 2px;
  line-height: 1.4;
}

.stack-tool-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111111;
  background: var(--bg-card-muted);
  border: 1px solid var(--line-hairline);
  padding: 2px 7px;
  border-radius: 2px;
  white-space: nowrap;
}

.arch-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-hairline);
}

.arch-card-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-card-muted);
  padding: 3px 6px;
}

/* Contact Strip */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line-hairline);
  padding: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.contact-card:hover {
  border-color: var(--text-main);
  transform: translateY(-2px);
}

/* Footer */
.arch-footer {
  border-top: 1px solid var(--line-hairline);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

/* ── Scroll Appearance & Disappearance Motion (Bauhaus Motion Architecture) ── */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay for grid elements */
.arch-grid-3 .reveal-item:nth-child(1) { transition-delay: 0.05s; }
.arch-grid-3 .reveal-item:nth-child(2) { transition-delay: 0.12s; }
.arch-grid-3 .reveal-item:nth-child(3) { transition-delay: 0.19s; }
.arch-grid-3 .reveal-item:nth-child(4) { transition-delay: 0.26s; }
.arch-grid-3 .reveal-item:nth-child(5) { transition-delay: 0.33s; }
.arch-grid-3 .reveal-item:nth-child(6) { transition-delay: 0.40s; }

.arch-grid-2 .reveal-item:nth-child(1) { transition-delay: 0.06s; }
.arch-grid-2 .reveal-item:nth-child(2) { transition-delay: 0.16s; }

.contact-grid .reveal-item:nth-child(1) { transition-delay: 0.06s; }
.contact-grid .reveal-item:nth-child(2) { transition-delay: 0.14s; }
.contact-grid .reveal-item:nth-child(3) { transition-delay: 0.22s; }

/* Metrics Stagger */
.metrics-strip .metric-col,
.metrics-strip .dot-matrix {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.metrics-strip.is-visible .metric-col:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.metrics-strip.is-visible .metric-col:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.12s; }
.metrics-strip.is-visible .metric-col:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.19s; }
.metrics-strip.is-visible .metric-col:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.26s; }
.metrics-strip.is-visible .dot-matrix { opacity: 1; transform: translateY(0); transition-delay: 0.33s; }

/* Skill fill progress animation */
.skill-fill {
  width: 0% !important;
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-visible .skill-fill[data-target-width] {
  width: var(--target-width, 100%) !important;
}

/* Background graphics soft parallax transition */
.bg-disc-black,
.bg-sun-red,
.bg-mondrian-cluster,
.bg-circle-draft-right {
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-stage {
    grid-template-columns: 1fr;
  }
  .arch-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .metrics-strip {
    grid-template-columns: 1fr 1fr;
  }
  .dot-matrix {
    display: none;
  }
}

@media (max-width: 680px) {
  .arch-grid-3, .arch-grid-2, .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
