/* ==========================================================================
   Davit Design System Stylesheet
   Directly matching reference image:
   - Deep slate container border / framing
   - Two-tone split: Top clean white with subtle grid, Bottom deep teal (#1f4659 / #23485a)
   - Classical editorial typography (Instrument Serif / Playfair feel)
   - Tilted colorful capsules (cyan, crimson, amber, brown, light-teal, pink)
   - Arch Portal with organic wavy background & golden sun sphere
   - Circular rotating "• HIRE ME • HIRE ME •" stamp badge with arrow
   ========================================================================== */

:root {
  /* Brand Palette from Reference */
  --frame-bg: #2d3748;         /* Outer framing border */
  --top-white: #ffffff;        /* Top hero bg */
  --bottom-teal: #23485a;      /* Deep moody teal */
  --bottom-teal-dark: #1b3947;
  --text-dark: #193240;        /* Deep petrol blue/dark text */
  --text-light: #ffffff;
  --text-muted: #5a7382;
  --border-light: #e5edf2;
  
  /* Capsule Colors directly from Reference */
  --cap-cyan: #7fe4f0;
  --cap-crimson: #a62b45;
  --cap-amber: #f7941d;
  --cap-brown: #9e5b22;
  --cap-teal-light: #9ee5dd;
  --cap-pink: #f28da3;

  /* Typewriter Fonts across the website */
  --font-serif: 'Courier Prime', 'Special Elite', 'Courier New', Courier, monospace;
  --font-sans: 'Courier Prime', 'Courier New', Courier, monospace;
  --font-mono: 'Courier Prime', 'JetBrains Mono', Courier, monospace;

  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--frame-bg);
  color: var(--text-dark);
  font-family: var(--font-sans);
  line-height: 1.6;
  padding: 32px;
  min-height: 100vh;
}

@media (max-width: 900px) {
  body {
    padding: 12px;
  }
}

/* Outer Framed Site Card (Exact Reference Framing) */
.site-frame {
  max-width: 1320px;
  margin: 0 auto;
  border-radius: 20px;
  overflow-x: clip;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.45);
  background-color: var(--top-white);
  position: relative;
}

/* ==========================================================================
   Top White Section (Grid Texture + Editorial Serif Title)
   ========================================================================== */
.hero-top-white {
  background-color: var(--top-white);
  /* Subtle architectural graph grid background */
  background-image: 
    linear-gradient(to right, rgba(230, 238, 243, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(230, 238, 243, 0.6) 1px, transparent 1px);
  background-size: 40px 40px;
  padding: 12px 64px 16px;
  position: relative;
}

@media (max-width: 768px) {
  .hero-top-white {
    padding: 10px 20px 16px;
  }
}

/* Sticky / Fixed Navbar */
.davit-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  margin: 0;
  padding: 16px 64px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 238, 243, 0.9);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .davit-nav {
    margin: 0;
    padding: 14px 20px;
    border-radius: 14px 14px 0 0;
  }
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.davit-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-cube {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(35, 72, 90, 0.15);
}

.logo-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.davit-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.davit-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s;
}

.davit-menu a:hover, .davit-menu a.active {
  color: var(--bottom-teal);
}

.cms-link {
  font-size: 0.8rem !important;
  color: var(--cap-amber) !important;
  background: rgba(247, 148, 29, 0.1);
  padding: 4px 10px;
  border-radius: 9999px;
}

.nav-contact-btn {
  background-color: var(--text-dark);
  color: #ffffff !important;
  padding: 10px 24px;
  border-radius: 9999px;
  font-weight: 600 !important;
  transition: var(--transition);
}

.nav-contact-btn:hover {
  background-color: var(--bottom-teal);
  transform: translateY(-2px);
}

@media (max-width: 800px) {
  .davit-menu a:not(.nav-contact-btn):not(.cms-link) {
    display: none;
  }
}

/* Hero Section Layout (Headline on Left, Arch Profile Portal on Right) */
.hero-text-area {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  position: relative;
  margin-top: -12px;
  padding-bottom: 0px;
  scroll-margin-top: 100px;
}

section[id], div[id] {
  scroll-margin-top: 90px;
}

.hero-inner {
  max-width: 680px;
}

@media (max-width: 1050px) {
  .hero-text-area {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Hero Typography */
.hero-serif-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.2vw, 5.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  min-height: calc(3 * clamp(2.8rem, 5.2vw, 5.2rem) * 1.15);
}

.italic-serif {
  font-style: italic;
  font-weight: 400;
  color: var(--bottom-teal);
}

.discipline-tagline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  min-height: 38px;
}

.tag-word {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-dark);
}

.star-icon {
  color: var(--cap-amber);
  font-size: 1.2rem;
}

.hero-cta-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 52px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font-sans);
}

.btn-dark-pill {
  background-color: var(--text-dark);
  color: #ffffff;
}

.btn-dark-pill:hover {
  background-color: var(--bottom-teal);
  transform: translateY(-2px);
}

.btn-white-pill {
  background-color: #ffffff;
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.btn-white-pill:hover {
  border-color: var(--text-dark);
  transform: translateY(-2px);
}

.exp-badge-pill {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cap-amber);
  background: rgba(247, 148, 29, 0.12);
  padding: 8px 18px;
  border-radius: 9999px;
}

/* ==========================================================================
   Bottom Deep Teal Section (Arch Portal, Capsules & Rotating Stamp)
   ========================================================================== */
.hero-bottom-teal {
  background-color: var(--bottom-teal);
  color: #ffffff;
  padding: 45px 40px;
  position: relative;
  overflow: visible;
}

@media (max-width: 768px) {
  .hero-bottom-teal {
    padding: 35px 20px;
  }
}

.teal-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Staggered Tilted Capsules with Fall & Scatter Physics */
.capsules-cluster {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px 24px;
  justify-content: center;
  align-items: center;
  padding: 18px 0;
  max-width: 1080px;
  position: relative;
  min-height: 140px;
}

.capsule {
  padding: 14px 34px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(0, 0, 0, 0.85);
  cursor: grab;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  user-select: none;
  position: relative;
  will-change: transform, opacity;
  opacity: 0; /* Hidden before fall animation triggers */
}

.capsule:active {
  cursor: grabbing;
}

.capsule:hover {
  transform: translate(var(--scatter-x, 0px), var(--scatter-y, 0px)) scale(1.12) rotate(var(--scatter-rot, 0deg)) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  z-index: 50;
}

/* Falling Water-Drop Physics (Tear-drop elongation, impact squash & fluid ripple) */
@keyframes waterDropFall {
  0% {
    opacity: 0;
    /* High up, condensed droplet beginning to release */
    transform: translate(0px, -520px) scale(0.65, 0.75) rotate(0deg);
  }
  15% {
    opacity: 1;
  }
  /* Gravity acceleration: droplet stretches vertically into teardrop streamline */
  60% {
    transform: translate(calc(var(--scatter-x, 0px) * 0.15), -40px) scale(0.82, 1.32) rotate(calc(var(--scatter-rot, 0deg) * 0.3));
  }
  /* Splash Impact point: squashes wide like a liquid droplet hitting a surface */
  74% {
    transform: translate(calc(var(--scatter-x, 0px) * 0.65), 14px) scale(1.35, 0.72) rotate(calc(var(--scatter-rot, 0deg) * 0.7));
  }
  /* Elastic rebound upward splash */
  83% {
    transform: translate(calc(var(--scatter-x, 0px) * 0.88), -12px) scale(0.92, 1.15) rotate(calc(var(--scatter-rot, 0deg) * 0.9));
  }
  /* Secondary gentle squash */
  92% {
    transform: translate(calc(var(--scatter-x, 0px) * 0.98), 4px) scale(1.06, 0.96) rotate(calc(var(--scatter-rot, 0deg) * 1.02));
  }
  /* Settled comfortably into scattered organic orientation */
  100% {
    opacity: 1;
    transform: translate(var(--scatter-x, 0px), var(--scatter-y, 0px)) scale(1, 1) rotate(var(--scatter-rot, 0deg));
  }
}

.capsule.animate-scatter {
  animation: waterDropFall 1.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Individual tilted capsule stylings matching reference photo */
.cap-cyan {
  background-color: var(--cap-cyan);
  color: #0f2733;
}

.cap-crimson {
  background-color: var(--cap-crimson);
  color: #ffffff;
}

.cap-amber {
  background-color: var(--cap-amber);
  color: #ffffff;
}

.cap-brown {
  background-color: var(--cap-brown);
  color: #ffffff;
}

.cap-teal-light {
  background-color: var(--cap-teal-light);
  color: #0f2733;
}

.cap-pink {
  background-color: var(--cap-pink);
  color: #0f2733;
}

/* Center/Right Wrapper for Portal & Stamp */
.portal-and-stamp-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* The Arch Portal (Matching Reference Silhouette) */
.arch-portal-container {
  position: relative;
  width: 330px;
  height: 410px;
  margin-top: 0;
  z-index: 10;
}

@media (max-width: 1200px) {
  .arch-portal-container {
    width: 300px;
    height: 375px;
  }
}

@media (max-width: 950px) {
  .arch-portal-container {
    margin: 16px auto 0;
    width: 280px;
    height: 350px;
  }
}

.arch-inner-frame {
  width: 100%;
  height: 100%;
  /* Architectural Roman Arch border-radius: top 50% circular, bottom square */
  border-radius: 180px 180px 30px 30px;
  overflow: hidden;
  position: relative;
  border: 4px solid #6dd9e6; /* Aqua teal outline */
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  background-color: #5ecad8;
}

/* Wavy Topographic Background Inside Arch */
.arch-pattern-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 30% 40%, rgba(255,255,255,0.3) 0%, transparent 50%),
    repeating-radial-gradient(circle at 50% 50%, #5ecad8 0, #5ecad8 20px, #4bb9c7 20px, #4bb9c7 40px);
  opacity: 0.85;
  z-index: 1;
}

/* Yellow-Orange Sun Sphere (from reference) */
.sun-sphere {
  position: absolute;
  bottom: 80px;
  right: 15px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle at 35% 35%, #ffb830, #e67e22);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4);
}

/* Character Portrait inside Arch with Smooth Hover Crossfade */
.arch-portrait-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  cursor: pointer;
}

.arch-portrait-img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  height: 88%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

/* Default: Vector Avatar visible, Real Photo hidden */
.portrait-vector {
  opacity: 1;
  z-index: 4;
}

.portrait-real {
  opacity: 0;
  z-index: 5;
}

/* On hover over the arch frame or portrait wrapper: crossfade to real photo */
.arch-portal-container:hover .portrait-vector,
.arch-inner-frame:hover .portrait-vector,
.arch-portrait-wrapper:hover .portrait-vector {
  opacity: 0;
  transform: translateX(-50%) scale(1.02);
}

.arch-portal-container:hover .portrait-real,
.arch-inner-frame:hover .portrait-real,
.arch-portrait-wrapper:hover .portrait-real {
  opacity: 1;
  transform: translateX(-50%) scale(1.02);
}

/* Circular Rotating Stamp (Matching Reference '• HIRE ME • HIRE ME •') */
.stamp-circular {
  position: absolute;
  bottom: -20px;
  left: -35px;
  width: 110px;
  height: 110px;
  background-color: #193240;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.stamp-circular:hover {
  transform: scale(1.1) rotate(15deg);
}

.stamp-svg {
  width: 100%;
  height: 100%;
  animation: rotateStamp 20s linear infinite;
}

@keyframes rotateStamp {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.stamp-center-arrow {
  position: absolute;
  color: #ffffff;
  font-size: 1.3rem;
}

/* ==========================================================================
   Editorial About Section
   ========================================================================== */
.editorial-about-section {
  padding: 100px 64px;
  background-color: var(--top-white);
  border-bottom: 1px solid var(--border-light);
}

@media (max-width: 768px) {
  .editorial-about-section {
    padding: 60px 20px;
  }
}

.about-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 950px) {
  .about-container {
    grid-template-columns: 1fr;
  }
}

.sub-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--cap-amber);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-serif-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 20px;
}

.about-bio-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.credentials-badge-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.cred-item {
  display: flex;
  flex-direction: column;
}

.cred-item strong {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bottom-teal);
}

.cred-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cred-sep {
  width: 1px;
  height: 36px;
  background-color: var(--border-light);
}

.vibe-philosophy-card {
  background-color: #f7fafc;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 36px 36px 32px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.vibe-card-top-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}

.vibe-mascot-banner {
  width: 100%;
  max-width: 380px;
  margin: 0 auto 8px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.vibe-mascot-img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(35, 72, 90, 0.16));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  margin: 0 auto;
}

.vibe-philosophy-card:hover .vibe-mascot-img {
  transform: scale(1.05) translateY(-4px);
}

.card-sparkle-icon {
  font-size: 1.8rem;
  color: var(--cap-amber);
  margin-bottom: 0;
}

.vibe-philosophy-card h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.vibe-philosophy-card p {
  font-style: italic;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.68;
  margin-bottom: 22px;
}

.philosophy-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-light);
}

.author-mini-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--cap-amber);
}

.philosophy-author strong {
  display: block;
  font-size: 0.95rem;
}

.philosophy-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Works & Projects Catalog (SQLite Fed)
   ========================================================================== */
.editorial-works-section {
  padding: 100px 64px;
  background-color: #fafbfc;
}

@media (max-width: 768px) {
  .editorial-works-section {
    padding: 60px 20px;
  }
}

.works-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
}

.work-category-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-chip {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover, .filter-chip.active {
  background-color: var(--text-dark);
  color: #ffffff;
  border-color: var(--text-dark);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}

.work-item-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.work-item-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--bottom-teal);
}

.card-top-preview {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.preview-badge-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-body-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body-content h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--text-dark);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.card-body-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  /* Allow full uncropped text to breathe */
  display: block;
  overflow: visible;
}

.card-pill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
  margin-top: auto;
}

.card-pill-tags span {
  font-size: 0.75rem;
  font-weight: 700;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--text-muted);
}

.works-footer-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.btn-outline-dark {
  background: transparent;
  border: 1.5px solid var(--text-dark);
  color: var(--text-dark);
}

.btn-outline-dark:hover {
  background: var(--text-dark);
  color: #ffffff;
}

/* ==========================================================================
   Education & Certifications Section
   ========================================================================== */
.education-section {
  padding: 90px 64px;
  background-color: var(--top-white);
  border-bottom: 1px solid var(--border-light);
}

@media (max-width: 768px) {
  .education-section {
    padding: 60px 20px;
  }
}

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

/* ---------------------------------------------------------
   Exact Infographics Design Template (Slit/Pocket 5-Panel Architecture)
   Faithful replication of the user's reference image:
   - Soft silver neutral background (#d5d8dc) with vertical seam slits
   - Clean white asymmetric cards (curved top-right & bottom-left corners)
   - Deep horizontal inset cutout pill with saturated color block & numbers
   - Subtitles ("FIRST OPTION", "INFOGRAPHICS", description text)
   - Minimalist line-art domain icons at the bottom
   --------------------------------------------------------- */
.education-section {
  padding: 80px 32px 100px;
  background-color: #d6d9de; /* Exact soft matte grey background canvas */
}

.education-container {
  max-width: 1360px;
  margin: 0 auto;
}

/* 5-Column Infographic Board */
.infographic-slits-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 56px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 1200px) {
  .infographic-slits-board {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 0;
  }
}

@media (max-width: 768px) {
  .infographic-slits-board {
    grid-template-columns: 1fr;
    gap: 32px 0;
  }
}

/* Individual Vertical Column Track */
.slit-column {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: stretch; /* All columns stretch to identical height */
  padding: 30px 10px;
}

/* Vertical Slit lines separating each panel */
.slit-line-left,
.slit-line-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
}

.slit-line-left {
  left: 0;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: -1px 0 2px rgba(0, 0, 0, 0.04);
}

.slit-line-right {
  right: 0;
  background: rgba(0, 0, 0, 0.1);
  box-shadow: 1px 0 2px rgba(255, 255, 255, 0.4);
}

/* The Hanging Slotted Card */
.slit-card {
  width: 100%;
  max-width: 236px;
  min-height: 400px; /* Uniform height baseline across all cards */
  height: 100%;      /* Stretches to match tallest sibling card perfectly */
  background: #f1f3f5;
  /* Exact asymmetric rounded silhouette from reference image:
     Top-left: 0px, Top-right: 28px, Bottom-right: 0px, Bottom-left: 28px */
  border-radius: 0 28px 0 28px;
  box-shadow: 
    -6px 12px 24px rgba(0, 0, 0, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 24px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.slit-column:hover .slit-card {
  transform: translateY(-8px);
  box-shadow: 
    -8px 18px 32px rgba(0, 0, 0, 0.16),
    0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Deep Recessed Cutout Horizontal Pill Window */
.slit-pill-window {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Number aligned to right like in template */
  padding-right: 18px;
  margin-bottom: 22px;
  /* Deep inset recessed cutout shadow */
  box-shadow: 
    inset 0 3px 6px rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(255, 255, 255, 0.8);
  position: relative;
  transition: transform 0.3s ease;
}

.slit-column:hover .slit-pill-window {
  transform: scale(1.02);
}

/* Clean White Number Inside Pill */
.pill-number {
  font-family: var(--font-sans);
  font-size: 1.65rem;
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* Saturated Palette directly extracted from reference graphic:
   1: Brick Red / Terracotta: #b63728
   2: Tangerine Orange: #e6751d
   3: Warm Gold / Yellow: #e5bd1d
   4: Olive Green: #8da427
   5: Steel / Ocean Blue: #3d7994
*/
.col-red .slit-pill-window { background: linear-gradient(180deg, #aa3123 0%, #bd3e2f 100%); }
.col-red .slit-subtitle, .col-red .slit-subheading, .col-red .slit-footer-icon { color: #b63728; }

.col-orange .slit-pill-window { background: linear-gradient(180deg, #db6c15 0%, #f07e24 100%); }
.col-orange .slit-subtitle, .col-orange .slit-subheading, .col-orange .slit-footer-icon { color: #e6751d; }

.col-yellow .slit-pill-window { background: linear-gradient(180deg, #d8b115 0%, #edc625 100%); }
.col-yellow .slit-subtitle, .col-yellow .slit-subheading, .col-yellow .slit-footer-icon { color: #c49a0e; }

.col-green .slit-pill-window { background: linear-gradient(180deg, #819822 0%, #95ad2c 100%); }
.col-green .slit-subtitle, .col-green .slit-subheading, .col-green .slit-footer-icon { color: #8da427; }

.col-blue .slit-pill-window { background: linear-gradient(180deg, #326b85 0%, #44839f 100%); }
.col-blue .slit-subtitle, .col-blue .slit-subheading, .col-blue .slit-footer-icon { color: #3d7994; }

/* Card Content Interior */
.slit-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  flex: 1 1 auto;
}

.slit-subtitle {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2px;
  line-height: 1.2;
}

.slit-subheading {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1.2;
}

.slit-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.25;
  color: #2c3e50;
  margin-bottom: 6px;
  font-weight: 700;
  min-height: 2.8em; /* Equal 2-line baseline height for all titles */
  display: block;
  text-align: center;
}

.slit-school {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  min-height: 2.2em; /* Equal baseline for school/institution text */
  display: block;
  text-align: center;
}

.slit-desc {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  line-height: 1.5;
  color: #64748b;
  margin-bottom: 22px;
  flex-grow: 1; /* Pushes the bottom icon to the exact same vertical baseline across all cards */
}

/* Minimalist Domain Icon at the Bottom */
.slit-footer-icon {
  font-size: 1.45rem;
  margin-top: auto;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.slit-column:hover .slit-footer-icon {
  transform: scale(1.18);
  opacity: 1;
}
/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
  padding: 100px 64px;
  background-color: var(--bottom-teal);
  color: #ffffff;
}

@media (max-width: 768px) {
  .contact-section {
    padding: 60px 20px;
  }
}

.contact-box-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 950px) {
  .contact-box-editorial {
    grid-template-columns: 1fr;
  }
}

.contact-intro .section-serif-heading {
  color: #ffffff;
}

.contact-intro p {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.contact-direct-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.direct-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
}

.direct-link i {
  color: var(--cap-cyan);
}

.direct-link a:hover {
  text-decoration: underline;
}

/* Contact Form Container */
.contact-form-editorial {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(10px);
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .contact-section {
    padding: 50px 14px;
  }
  .contact-form-editorial {
    padding: 24px 16px;
    border-radius: 18px;
  }
}

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

@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  width: 100%;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.form-field input, .form-field textarea {
  background: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.form-field input:focus, .form-field textarea:focus {
  box-shadow: 0 0 0 3px var(--cap-cyan);
}

/* Phone & WhatsApp Verification Styles */
.phone-input-row {
  display: flex;
  gap: 8px;
  width: 100%;
  flex-wrap: wrap;
}

.phone-input-row input {
  flex: 1 1 200px;
  min-width: 0;
}

.btn-whatsapp-verify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #25d366;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s, transform 0.15s;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .phone-input-row .btn-whatsapp-verify {
    width: 100%;
    padding: 11px 14px;
  }
}

.btn-whatsapp-verify:hover {
  background-color: #1ebd59;
  transform: translateY(-1px);
}

.btn-whatsapp-verify:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.phone-verified-badge {
  display: none;
  align-items: center;
  gap: 6px;
  color: #22c55e;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 4px;
}

.phone-verified-badge.active {
  display: inline-flex;
}

.otp-verification-box {
  display: none;
  background: rgba(37, 211, 102, 0.1);
  border: 1px dashed rgba(37, 211, 102, 0.4);
  border-radius: 12px;
  padding: 14px;
  margin-top: 8px;
  width: 100%;
  box-sizing: border-box;
}

.otp-verification-box.active {
  display: block;
}

.otp-inner-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}

.otp-input-field {
  flex: 1 1 120px !important;
  min-width: 100px !important;
  max-width: 160px;
  letter-spacing: 0.25em;
  font-weight: 800;
  font-family: var(--font-mono) !important;
  text-align: center;
  padding: 10px 12px !important;
  font-size: 1.1rem !important;
  box-sizing: border-box;
}

.btn-confirm-otp {
  background: #ffffff;
  color: #193240;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .otp-input-field {
    max-width: 100%;
    width: 100% !important;
    flex: 1 1 100% !important;
  }
  .btn-confirm-otp {
    flex: 1 1 100%;
    padding: 11px 14px;
    text-align: center;
  }
  .otp-inner-row .btn-whatsapp-verify {
    flex: 1 1 100%;
    width: 100%;
  }
}

.btn-confirm-otp:hover {
  background: var(--cap-cyan);
}

.btn-submit-full {
  width: 100%;
  background-color: var(--cap-cyan);
  color: #0f2733;
  padding: 14px;
  font-weight: 800;
  margin-top: 10px;
}

.btn-submit-full:hover {
  background-color: #ffffff;
}

.status-feedback {
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  margin-top: 10px;
}

/* ==========================================================================
   Works Confidentiality / NDA Badges & Notice
   ========================================================================== */
.work-nda-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 3px 8px;
  border-radius: 999px;
  margin-top: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.work-nda-notice-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 14px 0 20px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.work-nda-notice-box i {
  color: #d97706;
  font-size: 1.05rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.work-nda-notice-title {
  font-weight: 800;
  font-size: 0.8rem;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.work-nda-notice-desc {
  font-size: 0.82rem;
  color: #78350f;
  line-height: 1.45;
  margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.davit-footer {
  padding: 40px 64px;
  background-color: var(--bottom-teal-dark);
  color: #94a3b8;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .davit-footer {
    padding: 30px 20px;
  }
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.footer-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-right {
  display: flex;
  gap: 24px;
}

.footer-right a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-right a:hover {
  color: var(--cap-cyan);
}

/* ==========================================================================
   Floating Glass WhatsApp Widget
   ========================================================================== */
.floating-whatsapp-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999990;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-whatsapp-widget:hover {
  transform: translateY(-4px) scale(1.04);
}

.whatsapp-glass-disc {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), rgba(185, 235, 245, 0.75) 50%, rgba(127, 228, 240, 0.9) 100%);
  box-shadow:
    0 10px 25px -4px rgba(35, 72, 90, 0.35),
    0 0 20px rgba(127, 228, 240, 0.45),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -2px 5px rgba(35, 72, 90, 0.2);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.floating-whatsapp-widget:hover .whatsapp-glass-disc {
  box-shadow:
    0 16px 32px -4px rgba(35, 72, 90, 0.45),
    0 0 28px rgba(127, 228, 240, 0.7),
    inset 0 2px 5px #ffffff,
    inset 0 -2px 6px rgba(35, 72, 90, 0.25);
}

.whatsapp-glass-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  pointer-events: none;
}

/* Subtle gentle floating bob animation */
@keyframes whatsappFloatAnim {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.floating-whatsapp-widget {
  animation: whatsappFloatAnim 3.8s ease-in-out infinite;
}

.floating-whatsapp-widget:hover {
  animation-play-state: paused;
}

/* Hover Tooltip / Callout Pill */
.whatsapp-floating-tooltip {
  background: rgba(27, 57, 71, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(127, 228, 240, 0.35);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.floating-whatsapp-widget:hover .whatsapp-floating-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive adjustment for small screens */
@media (max-width: 600px) {
  .floating-whatsapp-widget {
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-glass-disc {
    width: 54px;
    height: 54px;
  }
  .whatsapp-floating-tooltip {
    display: none;
  }
}

