:root {
  --bg: #f3efe9;
  --panel: rgba(255, 255, 255, 0.62);
  --panel-strong: rgba(255, 252, 248, 0.9);
  --text: #171410;
  --muted: #5e564d;
  --stroke: rgba(22, 18, 14, 0.12);
  --gold: #b98a4c;
  --gold-deep: #8f6838;
  --gold-soft: rgba(185, 138, 76, 0.12);
  --shadow: 0 26px 80px rgba(18, 13, 8, 0.18);
  --shadow-soft: 0 16px 40px rgba(30, 22, 12, 0.08);
  --dark-panel: #1b1714;
  --light-panel: #f8f2ec;
}
/* Default: show desktop panels, hide mobile */
.desktop-only { display: block; }
.mobile-only { display: none; }

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(20, 15, 12, 0.28), rgba(20, 15, 12, 0.28)),
    url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80') center/cover fixed no-repeat;
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 30px auto;
  padding: 24px 24px 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 249, 244, 0.72);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  position: relative;
}

.page-shell::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(184, 138, 76, 0.25);
  pointer-events: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 8px 26px;
  border-bottom: 1px solid var(--stroke);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #1b1714 0%, #6d4d2a 52%, #b98a4c 100%);
  color: #f8f1eb;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 24px rgba(31, 25, 19, 0.22);
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow.accent {
  color: var(--gold);
}

.hero-copy .eyebrow.accent {
  display: inline-block;
  padding: 12px 20px;
  margin: 0 0 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  background: var(--gold-deep);
  border: none;
  border-radius: 30px;
  color: #f9f3ee;
}

.page-banner .eyebrow.accent {
  display: inline-block;
  margin: 0 0 18px;
  padding: 10px 18px 9px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: rgba(22, 16, 12, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fffaf6;
  backdrop-filter: blur(4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
}

.brand-block h2,
.hero-copy h1,
.page-banner h1,
.timeline-head h3,
.info-card h3,
.project-body h3,
.contact-card h3 {
  font-family: 'Playfair Display', serif;
}

.brand-block h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  position: relative;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 48px 8px 28px;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(3.2rem, 5vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: #171410;
  text-shadow: 0 2px 0 rgba(255,255,255,0.4);
}

.lede {
  max-width: 620px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 28px 0 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary,
.button.secondary {
  background: linear-gradient(135deg, #1d1916 0%, #534430 100%);
  color: #f9f3ee;
  border: 1px solid transparent;
  box-shadow: 0 18px 30px rgba(17, 16, 15, 0.2);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary:hover,
.button.secondary:hover {
  background: rgba(255, 255, 255, 0.24);
  color: var(--text);
  border-color: rgba(18, 17, 15, 0.22);
  box-shadow: 0 18px 30px rgba(17, 16, 15, 0.12);
}

.mini-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 12px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--text);
}

.mini-list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.5;
}

.mini-list li::before {
  content: '•';
  color: var(--gold);
  position: absolute;
  left: 0;
  top: 0;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 18px 0 0;
}

.portrait-card {
  width: min(440px, 100%);
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow);
  background: #ddd;
  position: relative;
}

.portrait-card::after {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,0.34);
  border-radius: 24px;
  pointer-events: none;
}

.portrait-card img {
  width: 100%;
  height: 620px;
  object-fit: cover;
}

.floating-note {
  position: absolute;
  left: 26px;
  bottom: 22px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 248, 242, 0.82);
  border: 1px solid rgba(20, 18, 15, 0.1);
  backdrop-filter: blur(3px);
  box-shadow: 0 18px 32px rgba(29, 20, 13, 0.12);
}

.floating-note-right {
  position: absolute;
  right: 26px;
  bottom: 22px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 248, 242, 0.82);
  border: 1px solid rgba(20, 18, 15, 0.1);
  backdrop-filter: blur(3px);
  box-shadow: 0 18px 32px rgba(29, 20, 13, 0.12);
}

.floating-note-mobile {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 22px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 248, 242, 0.9);
  border: 1px solid rgba(20, 18, 15, 0.1);
  backdrop-filter: blur(3px);
  box-shadow: 0 12px 24px rgba(29, 20, 13, 0.12);
  text-align: left;
  font-size: 0.9rem;
}

.floating-note .label,
.floating-note-right .label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 8px 0 22px;
}

.stat-box,
.card-panel,
.info-card,
.project-card,
.contact-card,
.timeline-item,
.text-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,250,246,0.84));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
}

.stat-box {
  padding: 26px 22px;
  border-radius: 22px;
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: clamp(2rem, 3vw, 3rem);
  font-family: 'Playfair Display', serif;
  margin-bottom: 6px;
}

.stat-box span {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-banner {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
  margin: 28px 0 20px;
  padding: 42px 36px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.14);
  background-size: cover;
  background-position: center;
  color: #fff7f3;
  box-shadow: 0 28px 50px rgba(18, 12, 8, 0.18);
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 12, 9, 0.6), rgba(18, 12, 9, 0.2) 52%, rgba(18, 12, 9, 0.34));
}

.page-banner > div {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.page-banner h1 {
  margin: 0;
  font-size: clamp(3rem, 4.3vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.38);
}

.banner-about {
  background:
    linear-gradient(rgba(20, 17, 12, 0.35), rgba(20, 17, 12, 0.35)),
    url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.banner-experience {
  background:
    linear-gradient(rgba(19, 15, 12, 0.4), rgba(19, 15, 12, 0.4)),
    url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.banner-education {
  background:
    linear-gradient(rgba(18, 15, 12, 0.35), rgba(18, 15, 12, 0.35)),
    url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.banner-projects {
  background:
    linear-gradient(rgba(19, 16, 12, 0.35), rgba(19, 16, 12, 0.35)),
    url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.banner-certifications {
  background:
    linear-gradient(rgba(18, 15, 12, 0.35), rgba(18, 15, 12, 0.35)),
    url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.banner-contact {
  background:
    linear-gradient(rgba(19, 16, 12, 0.38), rgba(19, 16, 12, 0.38)),
    url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.content-grid,
.contact-panel,
.card-list,
.project-grid {
  display: grid;
  gap: 22px;
}

.split-layout {
  grid-template-columns: 1.2fr 0.8fr;
  padding: 10px 4px 24px;
}

.text-panel,
.card-panel,
.info-card,
.project-card,
.contact-card {
  border-radius: 22px;
  padding: 28px 26px;
}

.text-panel p,
.timeline-content p,
.project-body p,
.info-card p,
.contact-card h3 {
  color: var(--muted);
  line-height: 1.8;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.tag-list li {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #3c2d1d;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.timeline {
  display: grid;
  gap: 18px;
  padding: 10px 6px 24px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 18px;
  border-radius: 20px;
  padding: 22px 20px 20px;
  overflow: hidden;
}

.timeline-item::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), rgba(185,138,76,0));
}

.timeline-marker {
  width: 16px;
  height: 16px;
  margin-top: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #e7d6b7);
  box-shadow: 0 0 0 5px rgba(183, 144, 91, 0.15);
}

.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 10px;
}

.timeline-head h3,
.info-card h3,
.project-body h3 {
  margin: 0;
  font-size: clamp(2rem, 2vw, 2.4rem);
  line-height: 1;
}

.timeline-head p,
.meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-head span {
  white-space: nowrap;
  font-weight: 600;
  color: var(--gold);
}

.card-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 10px 6px 24px;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 10px 6px 24px;
}

.project-image {
  height: 200px;
  border-radius: 18px;
  background:
    linear-gradient(rgba(27, 20, 13, 0.15), rgba(27, 20, 13, 0.15)),
    url('https://images.unsplash.com/photo-1524758631624-e2822e304c36?auto=format&fit=crop&w=900&q=80') center/cover no-repeat;
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

.project-card:nth-child(2) .project-image {
  background:
    linear-gradient(rgba(27, 20, 13, 0.14), rgba(27, 20, 13, 0.14)),
    url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=900&q=80') center/cover no-repeat;
}

.project-card:nth-child(3) .project-image {
  background:
    linear-gradient(rgba(27, 20, 13, 0.14), rgba(27, 20, 13, 0.14)),
    url('https://images.unsplash.com/photo-1516321165247-4aa89a48be28?auto=format&fit=crop&w=900&q=80') center/cover no-repeat;
}

.project-body strong {
  display: block;
  margin-top: 18px;
  color: var(--text);
  line-height: 1.6;
}

.contact-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 6px 24px;
}

.contact-card {
  background: linear-gradient(180deg, rgba(26,22,18,0.98), rgba(60,46,32,0.96));
  color: #f2eae1;
  border-radius: 22px;
  padding: 22px 20px;
  min-height: 140px;
}

.large-card {
  min-height: 160px;
}

.small-card {
  min-height: 120px;
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #f7d7a5;
  opacity: 0.9;
}

.meta-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card .meta {
  margin: 0;
  color: #f7d7a5;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.contact-card h3 {
  color: #fff7f2;
}

.panel-heading-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.panel-heading-inline .meta-icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.panel-heading-inline .eyebrow.accent {
  margin: 0;
}

.numeric-value {
  font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  letter-spacing: 0.03em;
}

.contact-card a {
  color: inherit;
  text-decoration: none;
}

.contact-card a:hover,
.contact-card a:focus {
  text-decoration: underline;
}

.contact-form-wrap {
  padding: 8px 6px 28px;
}

.contact-form-panel {
  background: linear-gradient(180deg, rgba(18,14,11,0.96), rgba(42,32,24,0.96));
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 30px 28px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.contact-form-panel h2 {
  margin: 10px 0 20px;
  font-size: clamp(2rem, 2.5vw, 3rem);
  line-height: 1.1;
  color: #fff7f2;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #f4e9df;
  font-weight: 600;
}

.contact-form label span {
  color: #f4e9df;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.96);
  color: #171410;
  padding: 14px 16px;
  font: inherit;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(185, 138, 76, 0.8);
  box-shadow: 0 0 0 3px rgba(185, 138, 76, 0.18);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(23, 20, 16, 0.5);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #d6b37b);
  color: #1b120d;
  font-weight: 700;
  padding: 14px 22px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 20px rgba(183, 144, 91, 0.2);
}

.contact-form button:hover,
.contact-form button:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(183, 144, 91, 0.28);
}

.flash-message {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
}

.flash-message.success {
  background: rgba(66, 153, 102, 0.15);
  border: 1px solid rgba(66, 153, 102, 0.4);
  color: #dff5e8;
}

.flash-message.error {
  background: rgba(220, 110, 90, 0.12);
  border: 1px solid rgba(220, 110, 90, 0.4);
  color: #ffd7d0;
}

.cert-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  padding: 10px 6px 28px;
}

.cert-card {
  display: flex;
  min-height: 220px;
}

.cert-card > div {
  width: 100%;
}

.cert-card--featured {
  grid-column: 1 / -1;
  min-height: 180px;
}

.cert-card--wide {
  min-height: 360px;
}

.cert-card--compact {
  min-height: 210px;
}

.cert-list-items {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.cert-list-items li {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-left: 18px;
  line-height: 1.65;
  color: var(--muted);
}

.cert-list-items li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
}

.cert-list-items li > span {
  flex: 1;
}

.credential-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(183, 144, 91, 0.12);
  border: 1px solid rgba(183, 144, 91, 0.35);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.credential-link:hover,
.credential-link:focus {
  transform: translateY(-1px);
  background: rgba(183, 144, 91, 0.18);
  box-shadow: 0 8px 18px rgba(183, 144, 91, 0.18);
}

.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 18px 8px 8px;
  color: var(--muted);
  text-align: center;
}

.chatbot-launch {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d1916 0%, #534430 100%);
  color: #f9f3ee;
  padding: 14px 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 18px 30px rgba(17, 16, 15, 0.2);
  cursor: pointer;
}

.chatbot-widget {
  position: fixed;
  right: 22px;
  bottom: 86px;
  z-index: 35;
  width: min(380px, calc(100vw - 24px));
  background: rgba(255, 250, 246, 0.97);
  border: 1px solid rgba(18, 17, 15, 0.12);
  border-radius: 26px;
  box-shadow: 0 24px 46px rgba(17, 16, 15, 0.18);
  overflow: hidden;
  display: none;
  backdrop-filter: blur(8px);
}

.chatbot-widget.is-open {
  display: block;
  animation: chatbotOpen 0.22s ease;
}

@keyframes chatbotOpen {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 12px;
  background: linear-gradient(135deg, rgba(27, 23, 20, 0.96), rgba(90, 68, 43, 0.96));
  color: #f9f3ee;
}

.chatbot-header-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.chatbot-label {
  margin: 0 0 4px;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-family: 'Playfair Display', serif;
}

.chatbot-close {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #f9f3ee;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.chatbot-messages {
  padding: 14px 14px 10px;
  max-height: 300px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.25);
}

.chatbot-message {
  max-width: 90%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.chatbot-message.bot {
  background: #f3eadf;
  color: var(--text);
  border-top-left-radius: 4px;
}

.chatbot-message.user {
  background: linear-gradient(135deg, #1d1916 0%, #534430 100%);
  color: #f9f3ee;
  justify-self: end;
  border-top-right-radius: 4px;
}

.chatbot-message p {
  margin: 0;
}

.chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 10px;
  background: rgba(255,255,255,0.18);
}

.chatbot-suggestion {
  border: 1px solid rgba(18, 17, 15, 0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  color: var(--text);
  padding: 8px 10px;
  font-size: 0.76rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-suggestion:hover,
.chatbot-suggestion:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(185, 138, 76, 0.45);
  box-shadow: 0 8px 18px rgba(185, 138, 76, 0.12);
}

.chatbot-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 8px 14px 0;
}

.chatbot-clear {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chatbot-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px 0;
  background: rgba(255,255,255,0.18);
}

.chatbot-chip {
  border: 1px solid rgba(18, 17, 15, 0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  color: var(--text);
  padding: 8px 10px;
  font-size: 0.76rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-chip:hover,
.chatbot-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(185, 138, 76, 0.45);
  box-shadow: 0 8px 18px rgba(185, 138, 76, 0.12);
}

.chatbot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 14px 14px;
  background: rgba(255,255,255,0.36);
}

.chatbot-form input {
  width: 100%;
  border: 1px solid rgba(18, 17, 15, 0.12);
  border-radius: 999px;
  padding: 12px 14px;
  font: inherit;
  background: rgba(255,255,255,0.8);
  color: var(--text);
}

.chatbot-form input:focus {
  outline: 2px solid rgba(185, 138, 76, 0.28);
  outline-offset: 1px;
}

.chatbot-form button {
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #b98a4c 0%, #d1a868 100%);
  color: #1d1916;
  font-weight: 700;
  cursor: pointer;
}

.chatbot-form button:hover,
.chatbot-form button:focus-visible {
  box-shadow: 0 12px 20px rgba(185, 138, 76, 0.2);
}

.chatbot-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f3eadf;
  max-width: fit-content;
}

.chatbot-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(23, 20, 16, 0.55);
  animation: chatbotBounce 1s infinite ease-in-out;
}

.chatbot-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chatbot-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chatbotBounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  .hero-section,
  .split-layout,
  .project-grid,
  .contact-panel,
  .card-list {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {

  .desktop-only { display: none; }
  .mobile-only { display: block; }

  .page-shell {
    width: min(100% - 16px, 1200px);
    margin: 16px auto;
    padding: 16px 12px 10px;
  }

  .hero-section {
    padding-top: 26px;
  }

  .hero-actions,
  .timeline-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    gap: 12px 16px;
  }

  .mini-list {
    grid-template-columns: 1fr;
  }
}
