/* ============================================
   shameek.me — Editorial Minimalism
   ============================================ */

/* --- Fonts loaded via <link> in HTML <head> for non-blocking render (P0 #4) --- */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #faf8f5;
  --bg-secondary: #f2ede6;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f5f0;
  --text-primary: #1a1815;
  --text-secondary: #4a443c;
  --text-muted: #7a7368;
  --accent: #c4704b;
  --accent-hover: #b5613e;
  --accent-subtle: rgba(196, 112, 75, 0.08);
  --accent-glow: rgba(196, 112, 75, 0.04);
  --border: rgba(26, 24, 21, 0.08);
  --border-hover: rgba(26, 24, 21, 0.14);
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 780px;
  --max-width-wide: 1080px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;
  --space-2xl: 10rem;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* --- Skip Link (P2 #17) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  z-index: 200;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0.5rem;
}

/* --- Noise Texture Overlay --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.018;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(250, 248, 245, 0.9);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s ease;
}

.nav.scrolled {
  padding: 0.9rem 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  line-height: 1;
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

.nav-logo-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent) 60%, transparent);
  transition: opacity 0.3s ease;
}

.nav-logo-dot {
  color: var(--accent);
}

.nav-logo:hover .nav-logo-text {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Sections --- */
section {
  padding: var(--space-xl) var(--space-md);
  position: relative;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-inner--wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

/* --- Section Dividers --- */
.section-divider {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--border) 20%,
    var(--border-hover) 50%,
    var(--border) 80%,
    transparent 100%
  );
}

/* --- Section Labels --- */
.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-hover), transparent);
  max-width: 120px;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(196, 112, 75, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  max-width: 700px;
}

.hero-body p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  max-width: 620px;
}

.hero-body p:last-of-type {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-top: var(--space-md);
}

.hero-id {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.hero-id p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-id strong {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

/* --- Hero ID with photo (P1 #5) --- */
.hero-id-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.hero-photo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid var(--border-hover);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Featured In Bar (P1 #6) --- */
.featured-in {
  padding: 2.5rem var(--space-md);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.featured-in-label {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.25rem;
}

.featured-in-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3.5rem;
}

.press-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.press-logo:hover {
  opacity: 1;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 112, 75, 0.2);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* --- About --- */
.about-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.about-text p:first-child {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.5;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.about-text p strong {
  color: var(--text-primary);
  font-weight: 400;
}

/* --- About: Phase Markers (P1 #7) --- */
.about-phase-marker {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-top: var(--space-md);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* --- About: Pull Quotes (P1 #7) --- */
.about-pullquote {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.5;
  margin: var(--space-md) 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
}

/* --- About: Ventures Framing (P2 #18) --- */
.ventures-framing {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  max-width: 700px;
}

.about-credentials {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border-left: 2px solid var(--accent);
  background: var(--accent-subtle);
}

.about-credentials p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

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

.about-coda {
  margin-top: var(--space-md);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-primary);
  line-height: 1.6;
}

/* --- Building Now (Cards) --- */
.ventures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.venture-card {
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.venture-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.venture-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.venture-card:hover::before {
  transform: scaleX(1);
}

.venture-card-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.venture-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.venture-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.venture-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.3s ease;
}

.venture-card:hover .card-link {
  gap: 0.7rem;
}

.venture-card--full {
  grid-column: 1 / -1;
}

/* Secondary cards */
.ventures-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

.venture-secondary-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.venture-secondary-card:hover {
  border-color: var(--border-hover);
}

.venture-secondary-card h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.venture-secondary-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- Speaking Topics --- */
.speaking-topics {
  list-style: none;
  margin-top: var(--space-md);
}

.speaking-topics li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.speaking-topics li:first-child {
  border-top: 1px solid var(--border);
}

.speaking-topics li:hover {
  padding-left: 1rem;
  border-color: var(--border-hover);
}

.speaking-topic-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.speaking-topic-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.speaking-coda {
  margin-top: var(--space-md);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Vibe Projects --- */
.vibe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: var(--space-md);
}

.vibe-card {
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: all 0.35s ease;
  text-decoration: none;
  display: block;
}

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

.vibe-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.vibe-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.vibe-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
  transition: gap 0.3s ease;
}

.vibe-card:hover .card-link {
  gap: 0.7rem;
}

.vibe-coda {
  margin-top: var(--space-md);
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- Writing & Media --- */
.writing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: var(--space-md);
}

.writing-block h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.writing-block ul {
  list-style: none;
}

.writing-block li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.writing-block li em {
  color: var(--text-primary);
  font-style: normal;
  font-weight: 400;
}

.writing-block p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: var(--space-md);
}

.testimonial-card {
  padding: var(--space-md);
  border-left: 2px solid var(--accent);
  background: var(--bg-card);
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.testimonial-attr {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.testimonial-attr strong {
  color: var(--text-secondary);
  font-weight: 500;
  display: block;
  margin-bottom: 0.15rem;
}

/* --- Contact --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.contact-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.contact-text .contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-text .contact-email:hover {
  color: var(--accent-hover);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  padding: 0.9rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid var(--border-hover);
  outline: none;
  transition: all 0.3s ease;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-submit {
  align-self: flex-start;
}

/* --- Footer --- */
.footer {
  padding: var(--space-lg) var(--space-md);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-left p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 500px;
}

.footer-socials {
  display: flex;
  gap: 1.75rem;
}

.footer-socials a {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: var(--accent);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }

/* --- Hero stagger animation --- */
.hero-content > * {
  opacity: 0;
  transform: translateY(25px);
  animation: heroReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.2s; }
.hero-content > *:nth-child(2) { animation-delay: 0.45s; }
.hero-content > *:nth-child(3) { animation-delay: 0.65s; }
.hero-content > *:nth-child(4) { animation-delay: 0.85s; }

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .ventures-grid {
    grid-template-columns: 1fr;
  }

  .ventures-secondary {
    grid-template-columns: 1fr;
  }

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

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

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
}

@media (max-width: 700px) {
  html {
    font-size: 16px;
  }

  section {
    padding: var(--space-lg) 1.25rem;
  }

  .nav {
    padding: 1rem 1.25rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: #faf8f5;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 1px solid var(--border);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding-top: 7rem;
    padding-bottom: var(--space-lg);
  }

  .hero-headline {
    font-size: 2rem;
  }

  .hero-id-row {
    flex-direction: column;
    gap: 1rem;
  }

  .featured-in-logos {
    gap: 2rem;
  }

  .press-logo {
    font-size: 1.1rem;
  }

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

  .hero-ctas {
    flex-direction: column;
  }

  .btn {
    text-align: center;
    justify-content: center;
  }
}

/* --- Chat Widget — Editorial White --- */
.chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 150;
  font-family: var(--font-sans);
}

/* Toggle button */
.chat-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.5rem;
  background: var(--accent);
  color: #faf8f5;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow:
    0 4px 16px rgba(196, 112, 75, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.2);
}

.chat-toggle:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow:
    0 8px 32px rgba(196, 112, 75, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.15);
}

.chat-toggle-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.chat-toggle-label {
  white-space: nowrap;
}

/* Panel — warm white card */
.chat-panel {
  position: absolute;
  bottom: calc(100% + 0.85rem);
  right: 0;
  width: 390px;
  max-height: 540px;
  background: #faf8f5;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

.chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Header — terracotta bar */
.chat-header {
  padding: 1.1rem 1.35rem;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Subtle grain on header */
.chat-header::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 128 128' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}

.chat-header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #faf8f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.chat-header-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.chat-header-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: #faf8f5;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.chat-header-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chat-header-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a8e6a3;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(168, 230, 163, 0.5);
}

/* Messages area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 280px;
  max-height: 360px;
  background: #faf8f5;
}

.chat-messages::-webkit-scrollbar {
  width: 3px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #d4cdc4;
  border-radius: 3px;
}

.chat-message {
  display: flex;
  animation: chatMsgIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

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

.chat-message-user {
  justify-content: flex-end;
}

.chat-message-assistant {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: 82%;
  padding: 0.75rem 1.05rem;
  font-size: 0.88rem;
  line-height: 1.6;
  border-radius: 14px;
}

.chat-message-user .chat-bubble {
  background: var(--accent);
  color: #faf8f5;
  border-bottom-right-radius: 4px;
  font-weight: 400;
  box-shadow: 0 2px 8px rgba(196, 112, 75, 0.2);
}

.chat-message-assistant .chat-bubble {
  background: #f0ece6;
  color: #3d3832;
  border-bottom-left-radius: 4px;
  border: 1px solid #e4ded6;
}

/* Typing indicator */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.85rem 1.2rem;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8a898;
  animation: chatTypingPulse 1.4s infinite ease-in-out;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes chatTypingPulse {
  0%, 60%, 100% { opacity: 0.3; transform: scale(1); }
  30% { opacity: 1; transform: scale(1.25); }
}

/* Input area */
.chat-input-form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid #e8e2d8;
  background: #f5f1ec;
}

.chat-input {
  flex: 1;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 300;
  color: #2a2622;
  background: #fff;
  border: 1px solid #ddd7cf;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.chat-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 112, 75, 0.1);
}

.chat-input::placeholder {
  color: #b0a898;
}

.chat-input:disabled {
  opacity: 0.45;
}

.chat-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: #faf8f5;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.chat-send:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.chat-send:active {
  transform: scale(0.97);
}

.chat-send svg {
  width: 16px;
  height: 16px;
}

/* Mobile chat */
@media (max-width: 700px) {
  .chat-widget {
    bottom: 1rem;
    right: 1rem;
  }

  .chat-panel {
    width: calc(100vw - 2rem);
    right: 0;
    max-height: 70vh;
    border-radius: 14px;
  }

  .chat-messages {
    min-height: 200px;
    max-height: 50vh;
  }

  .chat-toggle-label {
    display: none;
  }

  .chat-toggle {
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }

  .chat-toggle-icon {
    width: 22px;
    height: 22px;
  }
}
