/* ============================================
   Haim Dimer -- Monochrome Luxe Split Screen
   Design: Oswald / Raleway / Playfair Display
   Palette: Black, white, copper accents
   ============================================ */

/* --- Custom Properties --- */
:root {
  /* Monochrome Luxe palette */
  --black: #0E0E0E;
  --white: #FFFFFF;
  --off-white: #F8F8F8;
  --text-dark: #1A1A1A;
  --text-light: #E8E8E8;
  --copper: #B87D4B;
  --gray: #777777;

  /* Typography */
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Raleway', sans-serif;
  --font-accent: 'Playfair Display', serif;

  /* Spacing */
  --section-padding: 4.5rem 2rem;
  --section-gap: 9rem;
}


/* ============================================
   1. Reset & Base
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}


/* ============================================
   2. Split Hero
   ============================================ */

.hero {
  display: flex;
  min-height: 100vh;
}

.hero__left {
  flex: 1;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 4rem 4rem 6rem;
  position: relative;
}

.hero__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 2rem;
}

.hero__accent-rule {
  width: 40px;
  height: 2px;
  background: var(--copper);
  margin-bottom: 2rem;
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: none;
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.hero__rule {
  width: 60px;
  height: 1px;
  background: var(--copper);
  border: none;
  margin-bottom: 1.5rem;
}

.hero__tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  color: var(--text-light);
  max-width: 420px;
  line-height: 1.65;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero__stat-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  color: var(--white);
  letter-spacing: 0.05em;
}

.hero__stat-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 0.25rem;
}

.hero__cta {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  text-decoration: none;
  padding: 0.9rem 2.2rem;
  border: 1px solid var(--copper);
  transition: background 0.4s ease, color 0.4s ease;
  align-self: flex-start;
}

.hero__cta:hover {
  background: var(--copper);
  color: var(--black);
}

.hero__right {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.hero__right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: filter 0.8s ease;
}

.hero__right:hover img {
  filter: grayscale(0);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 4rem;
}

.hero__scroll span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  display: block;
  text-align: center;
}

.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--copper), transparent);
  margin: 0.75rem auto 0;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}


/* ============================================
   3. Section Utilities
   ============================================ */

.section {
  padding: var(--section-gap) 2rem;
}

.section--white {
  background: var(--white);
}

.section--off-white {
  background: var(--off-white);
}

.section--dark {
  background: var(--black);
  color: var(--text-light);
}

.section__inner {
  max-width: 820px;
  margin: 0 auto;
}

.section__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.section--dark .section__title {
  color: var(--white);
}

.section__rule {
  width: 40px;
  height: 1px;
  background: var(--copper);
  border: none;
  margin-bottom: 2.5rem;
}


/* ============================================
   4. Chat / Conversation (Interview Style)

   The JS creates these classes dynamically:
     .message-row.visitor  >  .bubble.visitor-bubble
     .message-row.host     >  .message-avatar + .bubble.host-bubble
     .typing-indicator     >  .message-avatar + .typing-dots > .dot
     .system-message       >  p
     .error-bubble         (added on error)
     .streaming            (added during stream, removed after)
     .stream-target        (the p receiving streamed text)
   ============================================ */

/* --- Messages container --- */
.messages {
  overflow-y: visible;
  padding: 2rem 0;
}

/* --- Message rows --- */
.message-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
  animation: messageIn 0.5s ease both;
}

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

/* Remove old alignment rules; interview style is all left-aligned */
.message-row.visitor {
  justify-content: flex-start;
}

.message-row.host {
  justify-content: flex-start;
}

/* --- Speaker labels via CSS pseudo-elements ---
   The JS creates .message-row.visitor and .message-row.host;
   we add the speaker label above each bubble using ::before. */

.message-row.visitor .bubble::before {
  content: 'YOU';
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.message-row.host .bubble::before {
  content: 'HAIM';
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.5rem;
}

/* Standalone speaker label class (for templates or custom markup) */
.conversation__speaker {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}

.conversation__speaker--haim {
  font-weight: 700;
  color: var(--copper);
}

/* --- Bubbles: NO bubble shape. Interview typography only. --- */
.bubble {
  max-width: 680px;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
  background: none;
  border: none;
  border-radius: 0;
  position: relative;
}

.bubble p + p {
  margin-top: 0.75rem;
}

/* Visitor bubble: plain text, no background, no rounding */
.visitor .bubble,
.bubble.visitor-bubble {
  background: none;
  border: none;
  border-radius: 0;
  color: var(--text-dark);
}

/* Host bubble: left copper border, no background, no rounding */
.host .bubble,
.bubble.host-bubble {
  padding-left: 1.5rem;
  border-left: 3px solid var(--copper);
  background: none;
  border-radius: 0;
  color: var(--text-dark);
}

/* Override any grouping radius from old styles */
.message-row.host.group-first .bubble,
.message-row.host.group-middle .bubble,
.message-row.host.group-last .bubble,
.message-row.visitor.group-first .bubble,
.message-row.visitor.group-middle .bubble,
.message-row.visitor.group-last .bubble {
  border-radius: 0;
}

/* --- Message avatar: hide it --- */
.message-avatar {
  display: none;
}

.message-avatar-spacer {
  display: none;
}

/* --- Date divider --- */
.date-divider {
  text-align: center;
  padding: 1rem 0 1.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}


/* ============================================
   5. Typing Indicator
   ============================================ */

.typing-indicator {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  animation: messageIn 0.5s ease both;
}

/* Label above dots */
.typing-indicator::before {
  content: 'HAIM';
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}

.typing-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 0;
  background: none;
  border: none;
  border-radius: 0;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
  animation: dotBounce 1.4s ease-in-out infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.15s;
}

.dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dotBounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}


/* ============================================
   6. System Message
   ============================================ */

.system-message {
  text-align: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--gray);
  padding: 1.5rem 0;
  letter-spacing: 0.02em;
  position: relative;
}

.system-message::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--copper);
  margin: 0 auto 1rem;
}


/* ============================================
   7. Error Bubble
   ============================================ */

.error-bubble {
  color: #991b1b !important;
  border-left-color: #dc2626 !important;
}

.error-bubble::before {
  color: #dc2626 !important;
}


/* ============================================
   8. Streaming Text (cursor blink)
   ============================================ */

.bubble.streaming .stream-target::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--copper);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.8s steps(2) infinite;
}

@keyframes cursorBlink {
  0% { opacity: 1; }
  100% { opacity: 0; }
}


/* ============================================
   9. Input Bar
   ============================================ */

.input-bar {
  padding: 1.5rem 0;
  border-top: 1px solid #E5E5E5;
  flex-shrink: 0;
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #D5D5D5;
  padding-bottom: 0.75rem;
  transition: border-color 0.3s ease;
}

.input-wrapper:focus-within {
  border-bottom-color: var(--copper);
}

#messageInput {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.5;
  padding: 0.5rem 0;
  letter-spacing: 0.01em;
}

#messageInput::placeholder {
  color: var(--gray);
  opacity: 0.6;
  font-style: italic;
}

#messageInput:disabled {
  cursor: default;
}

.send-btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  background: none;
  border: 1px solid var(--copper);
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.send-btn:hover {
  background: var(--copper);
  color: var(--white);
}

.send-btn:active {
  opacity: 0.8;
}

/* Hide the SVG icon inside send button; show "Ask" text via pseudo-element */
.send-btn svg {
  display: none;
}

.send-btn::before {
  content: 'Ask';
}

.send-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.send-btn:disabled:hover {
  background: none;
  color: var(--copper);
}

/* --- Input bar hero variant (above conversation) --- */
.input-bar--hero {
  padding: 0 0 1.5rem;
  border-top: none;
  margin-bottom: 2rem;
}

.input-bar--hero .input-wrapper {
  border-bottom-width: 2px;
  padding-bottom: 1rem;
}

.input-bar--hero #messageInput {
  font-size: 1.1rem;
  font-family: var(--font-accent);
  font-style: italic;
}

.input-bar--hero #messageInput::placeholder {
  font-family: var(--font-accent);
  font-style: italic;
  opacity: 0.5;
}

.input-topics {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gray);
  text-align: center;
  margin-top: 1rem;
  opacity: 0.6;
}

/* --- Typewriter custom placeholder (JS-driven) --- */
.typewriter-placeholder {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gray);
  opacity: 0.5;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}

.typewriter-placeholder .cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--copper);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.8s steps(2) infinite;
}

.input-bar--hero .input-wrapper {
  position: relative;
}

/* Hide native placeholder when typewriter is active */
.typewriter-active::placeholder {
  color: transparent !important;
}

/* --- Sample exchange label --- */
.sample-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  opacity: 0.5;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #E5E5E5;
}

/* --- Sample messages: muted style --- */
.messages--sample .message-row {
  opacity: 0.8;
}

.messages--sample .message-row .bubble {
  font-size: 0.95rem;
}

/* When live messages are added, remove the muted state */
.messages--live .message-row {
  opacity: 1;
}

.messages--live .message-row .bubble {
  font-size: 1.05rem;
}


/* ============================================
   10. Encryption Badge (subtle section note)
   ============================================ */

.encryption-badge {
  text-align: center;
  padding: 1rem 2rem 0;
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--gray);
  letter-spacing: 0.02em;
}

.encryption-badge svg {
  width: 12px;
  height: 12px;
  vertical-align: -1px;
  margin-right: 4px;
  opacity: 0.5;
}


/* ============================================
   11. App Shell (chat layout wrapper)
   ============================================ */

.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* --- Sidebar --- */
.sidebar {
  width: 320px;
  flex-shrink: 0;
  height: 100vh;
  background: var(--black);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 20;
  position: sticky;
  top: 0;
}

.sidebar-header {
  padding: 24px 24px 0;
}

.sidebar-header h2 {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray);
}

/* Profile card */
.profile-card {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 0;
  background: var(--copper);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  position: relative;
}

.profile-info {
  min-width: 0;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}

.profile-title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--gray);
  line-height: 1.4;
}

.profile-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--gray);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(184, 125, 75, 0.4);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 5px rgba(184, 125, 75, 0);
  }
}

/* Sidebar sections */
.sidebar-section {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.stat-row span:first-child {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--gray);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.03em;
}

.sidebar-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  background: rgba(184, 125, 75, 0.12);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
  border: none;
  border-radius: 0;
}

/* Sidebar footer */
.sidebar-footer {
  margin-top: auto;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-footer p {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.6;
}


/* ============================================
   12. Chat Area (main content)
   ============================================ */

.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--off-white);
}

/* Chat header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  border-bottom: 1px solid #E5E5E5;
  background: var(--white);
  flex-shrink: 0;
  z-index: 10;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.hamburger-btn:hover {
  color: var(--copper);
}

.hamburger-btn svg {
  width: 20px;
  height: 20px;
}

.chat-header-avatar {
  display: none;
  width: 32px;
  height: 32px;
  background: var(--copper);
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 400;
  flex-shrink: 0;
}

.chat-header-info h1 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.chat-header-info p {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--gray);
  margin-top: 1px;
  letter-spacing: 0.02em;
}

.chat-header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-link:hover {
  color: var(--copper);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--gray);
  transition: color 0.2s ease;
}

.icon-btn:hover {
  color: var(--copper);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* Messages within the chat-area shell get more room */
.chat-area .messages {
  flex: 1;
  padding: 2rem 3rem;
  max-height: none;
}


/* ============================================
   13. Project Cards (inside bubbles)
   ============================================ */

.project-cards {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-top: 1.25rem;
}

.project-card {
  flex: 1;
  padding: 1.25rem 1.5rem;
  border: 1px solid #E5E5E5;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.project-card:hover {
  border-color: var(--copper);
}

.project-card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.project-card-desc {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.6;
}

.project-card-tag {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 3px 10px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(184, 125, 75, 0.1);
  color: var(--copper);
}


/* ============================================
   14. Testimonial (inside bubbles)
   ============================================ */

.testimonial {
  padding: 1.25rem 0 1.25rem 1.5rem;
  border-left: 3px solid var(--copper);
  margin-top: 1rem;
}

.testimonial-text {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.testimonial-author {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 0.75rem;
}


/* ============================================
   15. Contact Actions (inside bubbles)
   ============================================ */

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.25rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.contact-btn svg {
  width: 14px;
  height: 14px;
}

/* Primary: copper fill */
.contact-btn.primary {
  background: var(--copper);
  color: var(--white);
}

.contact-btn.primary:hover {
  background: #a06b3d;
}

/* Secondary: copper outline */
.contact-btn.secondary {
  background: transparent;
  border: 1px solid var(--copper);
  color: var(--copper);
}

.contact-btn.secondary:hover {
  background: var(--copper);
  color: var(--white);
}

/* Tertiary: subtle */
.contact-btn.tertiary {
  background: transparent;
  border: 1px solid #D5D5D5;
  color: var(--gray);
}

.contact-btn.tertiary:hover {
  border-color: var(--copper);
  color: var(--copper);
}


/* ============================================
   16. Pull Quote
   ============================================ */

/* Full-width dark pull quote */
.pull-quote-full {
  padding: 7rem 2rem;
  background: var(--black);
  text-align: center;
}

.pull-quote-full__text {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--text-light);
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto;
}

.pull-quote-full__rule {
  width: 40px;
  height: 1px;
  background: var(--copper);
  border: none;
  margin: 1.5rem auto 0;
}

/* Inline pull quote (within sections) */
.pull-quote {
  margin: 3rem 0;
  padding: 2rem 0 2rem 2rem;
  border-left: 3px solid var(--copper);
}

.pull-quote__text {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--text-dark);
  line-height: 1.6;
}

.section--dark .pull-quote__text {
  color: var(--text-light);
}

.pull-quote__attribution {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 1rem;
  letter-spacing: 0.05em;
}


/* ============================================
   17. About Section
   ============================================ */

.about__content {
  overflow: hidden;
}

/* --- Offset overlap layout --- */
.about__offset {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.about__photo-wrap {
  flex-shrink: 0;
  width: 300px;
  margin-top: -40px;
  position: relative;
  z-index: 1;
}

.about__photo-offset {
  width: 100%;
  height: auto;
  display: block;
}

.about__text-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .about__offset {
    flex-direction: column;
    gap: 2rem;
  }

  .about__photo-wrap {
    width: 100%;
    margin-top: 0;
  }

  .about__photo-offset {
    max-height: 300px;
    object-fit: cover;
    object-position: center 20%;
  }
}

.about__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-dark);
}

.about__text + .about__text {
  margin-top: 1.25rem;
}


/* ============================================
   18. Career Timeline
   ============================================ */

.timeline {
  position: relative;
  padding-left: 2.5rem;
}

/* --- Themes (Path B: themes not jobs) --- */
.themes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
}

.theme__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.theme__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .themes {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0;
  width: 1px;
  background: #333;
}

.timeline__item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -2.5rem;
  top: 0.35rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--copper);
  transform: translateX(-4px);
}

/* Current role: larger dot with glow */
.timeline__item:first-child .timeline__dot {
  width: 11px;
  height: 11px;
  transform: translateX(-5px);
  box-shadow: 0 0 0 3px rgba(184, 125, 75, 0.2);
}

.timeline__dates {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.35rem;
}

.timeline__role {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.timeline__company {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 0.6rem;
}

.timeline__location {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  color: #555;
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}

.timeline__highlights {
  list-style: none;
  padding: 0;
}

.timeline__highlights li {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.3rem;
  opacity: 0.85;
}

.timeline__highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 1px;
  background: var(--copper);
}

/* Timeline on light backgrounds */
.section--off-white .timeline::before {
  background: #D5D5D5;
}

.section--off-white .timeline__role {
  color: var(--text-dark);
}

.section--off-white .timeline__highlights li {
  color: var(--text-dark);
  opacity: 0.8;
}


/* ============================================
   19. Gallery Cards + Strip + Lightbox
   ============================================ */

.gallery-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-card {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.gallery-card.active {
  border-color: var(--copper);
}

.gallery-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.gallery-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-card__info {
  padding: 1rem 1.25rem;
}

.gallery-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.gallery-card__year {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--copper);
  margin-right: 1rem;
}

.gallery-card__count {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--gray);
}

/* Gallery strip */
.gallery-strip {
  max-height: 0;
  overflow: hidden;
  background: var(--black);
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 1.5rem;
  border-radius: 4px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-strip.open {
  max-height: 500px;
}

.gallery-strip__header {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #222;
}

.gallery-strip__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--copper);
}

.gallery-strip__count {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--gray);
  margin-left: 1rem;
}

.gallery-strip__close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 0.5rem;
  transition: color 0.2s;
}

.gallery-strip__close:hover {
  color: var(--white);
}

.gallery-strip__scroll {
  display: flex;
  gap: 8px;
  padding: 1rem 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
}

.gallery-strip__scroll::-webkit-scrollbar {
  display: none;
}

.gallery-strip__scroll img {
  height: 320px;
  width: auto;
  flex-shrink: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.gallery-strip__scroll img:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(14, 14, 14, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox.hidden {
  display: none;
}

.lightbox__img {
  max-height: 85vh;
  max-width: 90vw;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
}

.lightbox__prev, .lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--copper);
  font-size: 3rem;
  cursor: pointer;
  padding: 1rem;
  z-index: 10;
  transition: color 0.2s;
}

.lightbox__prev:hover, .lightbox__next:hover {
  color: var(--white);
}

.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }

.lightbox__counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--gray);
  letter-spacing: 0.1em;
}


/* ============================================
   20. Writing: Split Screen
   ============================================ */

/* ---- Writing: Typewriter feed ---- */

.writing-feed-container {
  max-width: 820px;
  margin: 0 auto;
}



/* Feed list */
.writing-feed {
  display: flex;
  flex-direction: column;
  position: relative;
}

.writing-feed::before {
  content: '';
  position: absolute;
  left: 55px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(184, 125, 75, 0.2);
}

.feed-line {
  display: grid;
  grid-template-columns: 56px 100px 1fr;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid rgba(14, 14, 14, 0.08);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.feed-line:hover {
  background: var(--off-white);
}

.feed-line:hover .feed-line__title {
  color: var(--copper);
}

.feed-line__number {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--copper);
  text-align: right;
  padding-right: 20px;
  user-select: none;
  font-variant-numeric: tabular-nums;
}

.feed-line__date {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-right: 24px;
  white-space: nowrap;
}

.feed-line__title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
  transition: color 0.2s ease;
}

/* Featured (first article) */
.feed-line.featured {
  padding: 32px 0;
  border-bottom: 2px solid rgba(14, 14, 14, 0.12);
}

.feed-line.featured .feed-line__number {
  font-size: 18px;
}

.feed-line.featured .feed-line__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--black);
}

.feed-line.featured .feed-line__date {
  font-size: 13px;
  color: var(--copper);
  font-weight: 600;
}


/* --- Article reader overlay --- */
.article-reader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--white);
  overflow-y: auto;
}

.article-reader.hidden {
  display: none;
}

.article-reader__header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 1rem 2rem;
  border-bottom: 1px solid #E5E5E5;
}

.article-reader__back {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--copper);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
  letter-spacing: 0.03em;
}

.article-reader__back:hover {
  color: var(--text-dark);
}

.article-reader__content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

.article-reader__cover {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 2.5rem;
}

.article-reader__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: 0.02em;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.article-reader__date {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--copper);
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #E5E5E5;
}

.article-reader__body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-dark);
}

.article-reader__body h1 { display: none; }

.article-reader__body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  margin: 2.5rem 0 1rem;
}

.article-reader__body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
}

.article-reader__body p {
  margin-bottom: 1.25rem;
}

.article-reader__body strong {
  font-weight: 600;
}

.article-reader__body a {
  color: var(--copper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-reader__body a:hover {
  color: var(--text-dark);
}

.article-reader__body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1.5rem 0;
}


/* ============================================
   21. Speaking
   ============================================ */

.speaking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.speaking-card {
  padding: 2rem;
  border: 1px solid #333;
  transition: border-color 0.3s ease;
}

.speaking-card:hover {
  border-color: var(--copper);
}

.speaking-card__event {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.speaking-card__rule {
  width: 24px;
  height: 1px;
  background: var(--copper);
  border: none;
  margin-bottom: 0.75rem;
}

.speaking-card__topic {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.5;
}


/* ============================================
   22. Contact Section
   ============================================ */

.contact__inner {
  text-align: center;
}

.contact__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.contact-prompt {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
  text-align: left;
}

.contact-reveal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark);
  background: none;
  border: 1.5px solid var(--text-dark);
  padding: 0.75rem 1.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.contact-reveal-btn:hover {
  color: var(--copper);
  border-color: var(--copper);
}

.contact-reveal-btn svg {
  transition: transform 0.3s ease;
}

.contact-reveal-btn.active svg {
  transform: rotate(180deg);
}

.contact-form-wrap {
  max-width: 560px;
  margin: 2rem auto 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease;
  max-height: 700px;
  opacity: 1;
}

.contact-form-wrap.hidden {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.contact-form-iframe {
  border: none;
  width: 100%;
  min-height: 620px;
}

.contact__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact__link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  text-decoration: none;
  padding: 0.7rem 1.8rem;
  border: 1px solid var(--copper);
  transition: background 0.3s ease, color 0.3s ease;
}

.contact__link:hover {
  background: var(--copper);
  color: var(--white);
}


/* ============================================
   23. Footer
   ============================================ */

.footer {
  background: var(--off-white);
  padding: 4rem 2rem 3rem;
  text-align: center;
  border-top: 1px solid #E0E0E0;
}

.footer__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer__rule {
  width: 30px;
  height: 1px;
  background: var(--copper);
  border: none;
  margin: 0 auto 1.5rem;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer__link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--white);
}

.footer__affiliations {
  margin-bottom: 2rem;
}

.footer__affiliation {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--gray);
  line-height: 1.8;
}

.footer__affiliation span {
  color: var(--copper);
}

.footer__tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.footer__social {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.footer__social-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__social-link:hover {
  color: var(--text-dark);
}

.footer__legal {
  margin-bottom: 0.75rem;
}

.footer__legal-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--gray);
  text-decoration: none;
  letter-spacing: 0.03em;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.footer__legal-link:hover {
  opacity: 1;
  color: var(--copper);
}

.footer__legal-sep {
  color: var(--gray);
  opacity: 0.4;
  margin: 0 0.5rem;
  font-size: 0.75rem;
}

.footer__copyright {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--gray);
  letter-spacing: 0.05em;
  opacity: 0.6;
}


/* ============================================
   24. Conversation (mockup interview classes)
   ============================================ */

.conversation {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.conversation__exchange {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.conversation__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.conversation__text--answer {
  padding-left: 1.5rem;
  border-left: 3px solid var(--copper);
}


/* ============================================
   25. Mobile Overlay
   ============================================ */

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 14, 0.6);
  z-index: 15;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.mobile-overlay.show {
  display: block;
  opacity: 1;
}


/* ============================================
   26. Utility Classes
   ============================================ */

.hidden {
  display: none !important;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 8px 16px;
  background: var(--copper);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 1000;
  text-decoration: none;
  transition: top 0.2s;
}

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

/* Status indicator in sidebar */
.status-indicator {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
  animation: pulse 2s ease-in-out infinite;
}

/* Selection color */
::selection {
  background: rgba(184, 125, 75, 0.2);
  color: var(--text-dark);
}

::-moz-selection {
  background: rgba(184, 125, 75, 0.2);
  color: var(--text-dark);
}

/* Bubble timestamp (if used) */
.bubble-time {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--gray);
  margin-top: 0.5rem;
  opacity: 0.6;
}

/* Grayscale photo utility */
.grayscale {
  filter: grayscale(1);
  transition: filter 0.6s ease;
}

.grayscale:hover {
  filter: grayscale(0);
}

/* Hide old design artifacts (background orbs) */
.orb {
  display: none;
}


/* ============================================
   27. Responsive: max-width 1024px
   ============================================ */

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    position: relative;
    overflow: hidden;
  }

  .hero__right {
    position: absolute;
    inset: 0;
    min-height: 100%;
    z-index: 0;
  }

  .hero__right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(1);
  }

  .hero__left {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 0 2rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(
      to bottom,
      rgba(14, 14, 14, 0.2) 0%,
      rgba(14, 14, 14, 0.6) 40%,
      rgba(14, 14, 14, 0.9) 70%,
      rgba(14, 14, 14, 0.97) 100%
    );
  }

  .hero__scroll {
    display: none;
  }

  .chat-area .messages {
    padding: 2rem;
  }

  .chat-header {
    padding: 1.25rem 2rem;
  }
}


/* ============================================
   28. Responsive: max-width 768px
   ============================================ */

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -320px;
    top: 0;
    height: 100vh;
    transition: left 0.3s ease;
    z-index: 25;
  }

  .sidebar.open {
    left: 0;
  }

  .hamburger-btn {
    display: flex;
  }

  .chat-header-avatar.mobile-only {
    display: flex;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .hero {
    flex-direction: column;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
  }

  .hero__right {
    position: absolute;
    inset: 0;
    min-height: 100%;
    z-index: 0;
  }

  .hero__right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(1);
  }

  .hero__left {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 0 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(
      to bottom,
      rgba(14, 14, 14, 0.2) 0%,
      rgba(14, 14, 14, 0.6) 40%,
      rgba(14, 14, 14, 0.9) 70%,
      rgba(14, 14, 14, 0.97) 100%
    );
  }

  .hero__scroll {
    display: none;
  }

  .hero__stats {
    gap: 1.5rem;
  }

  .hero__name {
    font-size: 2.5rem;
  }

  .hero__tagline {
    font-size: 0.95rem;
  }

  .chat-area .messages {
    padding: 1.5rem;
  }

  .chat-header {
    padding: 1rem 1.5rem;
  }

  .bubble {
    max-width: 100%;
    font-size: 0.95rem;
  }

  .input-bar {
    padding: 1rem 0;
  }

  .about__portrait {
    float: none;
    width: 100%;
    max-width: 350px;
    margin: 0 auto 2rem;
  }

  .gallery-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-strip__scroll img {
    height: 220px;
  }

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

  .writing-feed-container {
    padding: 3rem 1.2rem;
  }

  .writing-feed__title {
    font-size: 32px;
    letter-spacing: 2px;
  }

  .feed-line {
    grid-template-columns: 40px 1fr;
    gap: 0;
  }

  .feed-line__date {
    display: none;
  }

  .feed-line.featured .feed-line__title {
    font-size: 18px;
  }

  .feed-line__title {
    font-size: 15px;
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline::before {
    left: 0;
  }

  .timeline__dot {
    left: -2rem;
  }

  .timeline__item:first-child .timeline__dot {
    left: -2rem;
  }

  .footer__links {
    gap: 1rem;
  }

  .pull-quote-full {
    padding: 3.5rem 1.5rem;
  }

  .project-cards {
    flex-direction: column;
  }

  .contact-actions {
    flex-direction: column;
  }

  .contact-btn {
    justify-content: center;
  }

  .encryption-badge {
    padding: 0.75rem 1.5rem 0;
  }
}


/* ============================================
   29. Responsive: max-width 480px
   ============================================ */

@media (max-width: 480px) {
  body {
    font-size: 0.9rem;
  }

  .chat-header-info h1 {
    font-size: 0.9rem;
  }

  .chat-header-info p {
    font-size: 0.68rem;
  }

  .bubble {
    font-size: 0.9rem;
  }

  #messageInput {
    font-size: 0.88rem;
  }

  .send-btn {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
  }

  .hero__stats {
    gap: 1.2rem;
  }

  .hero__stat-value {
    font-size: 1.5rem;
  }

  .hero__cta {
    padding: 0.75rem 1.5rem;
    font-size: 0.7rem;
  }

  .chat-area .messages {
    padding: 1.25rem;
  }

  .gallery-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
