:root {
  /* User-provided Coffee & Burgundy Palette (colnikmah.jpeg) */
  --bg-obsidian: #24090D;
  --bg-deep: #561C24;
  --bg-wine: #6D2932;
  --surface-taupe: #C7B7A3;
  --surface-cream: #E8D8C4;
  --surface-light: #F3E9DC;

  --text-on-dark: #E8D8C4;
  --text-on-dark-muted: #D5C5B2;
  --text-on-light: #350F14;
  --text-on-light-muted: #561C24;

  --border-dark: rgba(232, 216, 196, 0.2);
  --border-light: rgba(86, 28, 36, 0.22);

  --font-sans: "Plus Jakarta Sans", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container-max: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-on-dark);
  background-color: var(--bg-obsidian);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a,
button {
  cursor: pointer;
  font-family: inherit;
}

:focus-visible {
  outline: 3px solid var(--surface-cream);
  outline-offset: 3px;
}

.profile-card :focus-visible,
.detail-card-light :focus-visible {
  outline-color: var(--bg-deep);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background-color: var(--surface-cream);
  color: var(--text-on-light);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(36, 9, 13, 0.95);
  border-bottom: 1px solid var(--border-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand-name {
  color: var(--surface-cream);
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  background: transparent;
  color: var(--surface-cream);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.primary-nav a:hover {
  background-color: var(--bg-deep);
}

.primary-nav a.nav-cta {
  background-color: var(--surface-cream);
  color: var(--text-on-light);
  font-weight: 600;
}

.primary-nav a.nav-cta:hover {
  background-color: var(--surface-light);
}

/* Halftone Dot Texture (Signature Reference Detail) */
.halftone-dots {
  background-image: radial-gradient(rgba(199, 183, 163, 0.35) 2.2px, transparent 2.2px);
  background-size: 14px 14px;
  pointer-events: none;
}

/* Hero Section (Full-Bleed Web) */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 68px) 0 36px;
  background: linear-gradient(135deg, var(--bg-obsidian) 0%, var(--bg-deep) 55%, var(--bg-wine) 100%);
  border-bottom: 1px solid var(--border-dark);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: blur(10px) saturate(0.85);
  transform: scale(1.06);
  opacity: 0.38;
}

.hero-backdrop-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(36, 9, 13, 0.94) 0%,
    rgba(86, 28, 36, 0.78) 52%,
    rgba(36, 9, 13, 0.85) 100%
  );
}

.hero-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 240px;
  z-index: 1;
  opacity: 0.65;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 44px;
  align-items: stretch;
}

/* Left Cream Profile Card (Reference-inspired) */
.profile-card {
  background-color: var(--surface-light);
  color: var(--text-on-light);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 20px 44px rgba(18, 4, 6, 0.55);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-top-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card-dot-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-deep);
  color: var(--surface-cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-kicker {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bg-deep);
}

.card-sub-role {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--bg-wine);
}

.profile-photo-thumb {
  width: 112px;
  height: 132px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--bg-deep);
  background-color: var(--surface-taupe);
}

.profile-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-specs {
  margin: 0;
  background: linear-gradient(160deg, var(--bg-wine) 0%, var(--bg-obsidian) 100%);
  color: var(--surface-cream);
  border-radius: 12px;
  padding: 12px 14px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(232, 216, 196, 0.16);
  font-size: 0.82rem;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row dt {
  color: var(--surface-taupe);
}

.spec-row dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  color: var(--surface-cream);
}

.profile-mini-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  background-color: var(--surface-cream);
  border: 1px solid var(--border-light);
  border-radius: 999px;
}

.profile-mini-strip img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.mini-strip-text {
  min-width: 0;
  flex: 1;
}

.mini-strip-text strong {
  display: block;
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--text-on-light);
}

.mini-strip-text span {
  display: block;
  font-size: 0.72rem;
  color: var(--bg-wine);
}

.mini-strip-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--bg-deep);
  color: var(--surface-cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.mini-strip-btn:hover {
  background-color: var(--bg-wine);
}

.profile-card-pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--bg-deep);
  background-color: transparent;
  color: var(--bg-deep);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.profile-card-pill-btn:hover {
  background-color: var(--bg-deep);
  color: var(--surface-cream);
}

/* Right Hero Content */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 0;
  gap: 32px;
}

.hero-content-top h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--surface-light);
  max-width: 18ch;
}

.hero-lead {
  margin: 0 0 18px;
  font-size: 1rem;
  color: var(--text-on-dark-muted);
  max-width: 48ch;
}

.hero-identity-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  background-color: rgba(86, 28, 36, 0.85);
  border: 1px solid var(--surface-taupe);
  font-size: 0.84rem;
  color: var(--surface-cream);
}

.hero-identity-pill img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.hero-content-bottom {
  align-self: flex-end;
  text-align: right;
  max-width: 44ch;
}

.hero-quote {
  margin: 0 0 10px;
  font-size: 0.94rem;
  color: var(--surface-cream);
}

.hero-mail-link {
  color: var(--surface-taupe);
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 3-Segment Divider */
.segment-divider {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.segment {
  height: 4px;
  border-radius: 2px;
  background-color: rgba(199, 183, 163, 0.28);
}

.segment-active {
  background-color: var(--surface-cream);
}

/* Section 2: Full-Bleed Curved Split About Section */
.about-section {
  background-color: var(--bg-deep);
  border-bottom: 1px solid var(--border-dark);
  padding: clamp(48px, 6vw, 72px) 0;
}

.about-stage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  min-height: 400px;
}

.about-narrative {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-narrative h2 {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  line-height: 1.22;
  color: var(--surface-light);
  max-width: 18ch;
}

.about-narrative p {
  margin: 0 0 14px;
  font-size: 0.96rem;
  color: var(--text-on-dark-muted);
  max-width: 54ch;
}

.about-mini-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mini-badge-item {
  padding: 6px 14px;
  border-radius: 999px;
  background-color: var(--bg-obsidian);
  border: 1px solid var(--surface-taupe);
  color: var(--surface-cream);
  font-size: 0.82rem;
  font-weight: 500;
}

.about-visual-panel {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-dots {
  position: absolute;
  inset: 0;
  opacity: 0.55;
}

.curved-photo-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border-bottom-left-radius: 260px;
  overflow: hidden;
  border-left: 3px solid var(--surface-taupe);
}

.curved-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Section 3: Full-Bleed Dual-Column Dark-Burgundy Showcase */
.showcase-section {
  background-color: var(--bg-obsidian);
  padding: clamp(52px, 6vw, 76px) 0;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.showcase-left {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-obsidian) 100%);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.panel-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-dark);
}

.topbar-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--surface-cream);
}

.topbar-status {
  font-size: 0.82rem;
  color: var(--surface-taupe);
}

.project-bubbles {
  display: grid;
  gap: 16px;
}

.project-bubble {
  background-color: var(--bg-wine);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 20px;
}

.project-bubble.bubble-accent {
  background-color: rgba(109, 41, 50, 0.58);
}

.bubble-meta {
  margin-bottom: 10px;
}

.bubble-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-on-light);
  background-color: var(--surface-taupe);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.project-bubble h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--surface-light);
}

.project-bubble p {
  margin: 0 0 10px;
  font-size: 0.93rem;
  color: var(--text-on-dark-muted);
}

.project-bubble .bubble-goal {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--border-dark);
  font-size: 0.88rem;
  color: var(--surface-cream);
}

/* Right Showcase Column */
.showcase-right {
  background: linear-gradient(165deg, var(--bg-wine) 0%, var(--bg-obsidian) 100%);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.right-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: var(--surface-taupe);
}

.right-panel-header img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--surface-cream);
}

.right-panel-title {
  margin: 0 0 20px;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.25;
  color: var(--surface-light);
}

.right-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.detail-card {
  border-radius: var(--radius-md);
  padding: 18px;
}

.detail-card-light {
  background-color: var(--surface-cream);
  color: var(--text-on-light);
}

.detail-card-light h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--bg-deep);
}

.detail-subtitle {
  margin: 10px 0 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--bg-wine);
}

.detail-card-dark {
  background-color: rgba(36, 9, 13, 0.78);
  border: 1px solid var(--border-dark);
  color: var(--surface-cream);
}

.detail-card-dark h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--surface-light);
}

.detail-list {
  margin: 0;
  padding-left: 16px;
  font-size: 0.86rem;
  display: grid;
  gap: 6px;
}

/* Section 4: Contact */
.contact-section {
  background-color: var(--bg-deep);
  border-top: 1px solid var(--border-dark);
  padding: clamp(52px, 6vw, 72px) 0;
}

.contact-box {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.contact-intro h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--surface-light);
}

.contact-intro p {
  margin: 0;
  color: var(--text-on-dark-muted);
  max-width: 44ch;
}

.contact-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 16px;
  background-color: var(--bg-obsidian);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  color: var(--surface-cream);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.contact-item:hover {
  background-color: var(--bg-wine);
  border-color: var(--surface-taupe);
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--surface-taupe);
}

.contact-item small {
  display: block;
  font-size: 0.76rem;
  color: var(--surface-taupe);
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
  word-break: break-word;
}

/* Footer */
.site-footer {
  background-color: var(--bg-obsidian);
  border-top: 1px solid var(--border-dark);
  padding: 22px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 0.9rem;
}

.footer-inner p {
  margin: 0;
  color: var(--text-on-dark-muted);
}

.footer-note {
  color: var(--surface-taupe);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
  color: var(--surface-cream);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.back-to-top:hover {
  background-color: var(--bg-deep);
}

/* Basic Scroll Fade-In (30k Standard Tier) */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .profile-card {
    max-width: 420px;
  }

  .hero-content-bottom {
    align-self: flex-start;
    text-align: left;
  }

  .about-stage {
    grid-template-columns: 1fr;
  }

  .about-visual-panel,
  .curved-photo-wrap {
    min-height: 300px;
  }

  .curved-photo-wrap {
    border-bottom-left-radius: 160px;
  }

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

  .contact-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-obsidian);
    border-bottom: 1px solid var(--border-dark);
    padding: 12px 24px 20px;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav a {
    width: 100%;
  }

  .right-cards-grid,
  .contact-links {
    grid-template-columns: 1fr;
  }
}
