/* ═══════════════════════════════════════════
   ALTER-CONSULT — style.css
   Editorial Luxury × African Modernism
═══════════════════════════════════════════ */

:root {
  --obsidian:    #0e0d0b;
  --terracotta:  #c2522a;
  --sand:        #e8d5b0;
  --gold:        #c9a84c;
  --fog:         #f2ede6;
  --charcoal:    #2a2620;
  --muted:       #7a7265;
  --white:       #faf9f7;
  --border-dark: rgba(232,213,176,0.08);
  --border-light:rgba(14,13,11,0.10);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;
  --font-body:    'Outfit', system-ui, sans-serif;

  --ease-out-expo: cubic-bezier(0.16,1,0.3,1);
}

/* ─── Reset ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--obsidian); color: var(--sand); font-family: var(--font-body); font-weight: 300; overflow-x: hidden; cursor: none; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; }
button { cursor: none; border: none; background: none; }
textarea, input, select { font-family: var(--font-body); }

/* ─── Cursor ─────────────────────────────── */
.cursor {
  position: fixed; width: 10px; height: 10px;
  background: var(--terracotta); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .3s, height .3s, background .3s;
}
.cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1px solid rgba(194,82,42,.5); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: left .12s ease, top .12s ease, width .3s, height .3s;
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor { width: 18px; height: 18px; background: var(--gold); }
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring { width: 56px; height: 56px; }

/* ─── Grain ──────────────────────────────── */
body::before {
  content:''; position: fixed; inset: 0; pointer-events: none; z-index: 9990;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  opacity: .3;
}

/* ─── Skip link (a11y) ─────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: 1rem;
  background: var(--terracotta); color: var(--white);
  padding: .5rem 1rem; font-size: .85rem;
  z-index: 10000;
}
.skip-link:focus { left: 1rem; }

/* ─── Keyframes ──────────────────────────── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes lineReveal { from { opacity:0; transform:translateY(105%); } to { opacity:1; transform:translateY(0); } }
@keyframes navIn    { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
@keyframes marquee  { from { transform:translateX(0); } to { transform:translateX(-50%); } }
@keyframes scrollLine { 0%{transform:translateX(-100%)} 50%{transform:translateX(0)} 100%{transform:translateX(100%)} }
@keyframes pulse    { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15)} }
@keyframes dotBlink { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes typing   { 0%{opacity:.3} 50%{opacity:1} 100%{opacity:.3} }

/* ═══ NAV ════════════════════════════════ */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(14,13,11,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
  animation: navIn .9s ease forwards;
}
nav {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem 2.5rem; gap: 2rem;
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
  letter-spacing: .08em; color: var(--white);
}
.nav-logo span { color: var(--terracotta); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted); transition: color .3s;
}
.nav-links a:hover { color: var(--sand); }
.nav-cta {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--terracotta);
  border: 1px solid var(--terracotta); padding: .55rem 1.3rem;
  transition: background .3s, color .3s; white-space: nowrap;
}
.nav-cta:hover { background: var(--terracotta); color: var(--white); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .3rem; }
.nav-toggle span { width: 22px; height: 1px; background: var(--sand); display: block; transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ═══ HERO ════════════════════════════════ */
.hero {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  position: relative; overflow: hidden; padding-top: 72px;
}
.hero-left {
  background: var(--obsidian); display: flex; flex-direction: column;
  justify-content: flex-end; padding: 6rem 3rem 5rem; position: relative; z-index: 2;
}
.hero-right { background: var(--charcoal); position: relative; overflow: hidden; }
.hero::after {
  content: ''; position: absolute; top: 0; left: calc(50% - 50px);
  width: 100px; height: 100%; background: var(--obsidian);
  clip-path: polygon(35% 0%,65% 0%,100% 100%,0% 100%); z-index: 3;
}
.hero-right::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(201,168,76,.04) 40px, rgba(201,168,76,.04) 41px),
    repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(194,82,42,.03) 40px, rgba(194,82,42,.03) 41px);
}
.hero-right-inner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 4rem 3rem 4rem 5rem; }
.hero-tag {
  font-family: var(--font-mono); font-size: .63rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--terracotta); margin-bottom: 1.8rem;
  opacity: 0; animation: fadeUp .8s ease .3s forwards;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(3rem,6vw,6.5rem);
  font-weight: 300; line-height: .95; letter-spacing: -.02em; color: var(--white); margin-bottom: 2rem;
}
.hero-title em { font-style: italic; color: var(--sand); }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span { display: block; opacity: 0; transform: translateY(100%); animation: lineReveal .9s var(--ease-out-expo) forwards; }
.hero-title .line:nth-child(1) span { animation-delay: .4s; }
.hero-title .line:nth-child(2) span { animation-delay: .55s; }
.hero-title .line:nth-child(3) span { animation-delay: .7s; }
.hero-sub { font-size: .92rem; line-height: 1.75; color: var(--muted); max-width: 340px; opacity: 0; animation: fadeUp .8s ease .9s forwards; }
.hero-right-content { opacity: 0; animation: fadeUp .8s ease 1s forwards; }
.hero-desc { font-size: .88rem; line-height: 1.85; color: var(--muted); max-width: 340px; margin-bottom: 2.5rem; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.stat-num { font-family: var(--font-display); font-size: 3.2rem; font-weight: 300; color: var(--gold); line-height: 1; }
.stat-plus { font-size: 2rem; vertical-align: super; }
.stat-label { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-top: .4rem; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.5rem; opacity: 0; animation: fadeUp .8s ease 1.1s forwards; }
.scroll-indicator { display: flex; align-items: center; gap: 1rem; margin-top: 3rem; opacity: 0; animation: fadeUp .8s ease 1.4s forwards; }
.scroll-line { width: 40px; height: 1px; background: var(--terracotta); position: relative; overflow: hidden; }
.scroll-line::after { content:''; position:absolute; inset:0; background:var(--gold); transform:translateX(-100%); animation: scrollLine 2s ease-in-out 1.5s infinite; }
.scroll-text { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ═══ BUTTONS ════════════════════════════ */
.btn-primary {
  display: inline-block; background: var(--terracotta); color: var(--white);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .85rem 1.8rem; transition: background .3s, transform .2s;
}
.btn-primary:hover { background: #a8421d; transform: translateY(-2px); }
.btn-ghost {
  display: inline-block; color: var(--sand); border: 1px solid rgba(232,213,176,.25);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .85rem 1.8rem; transition: border-color .3s, transform .2s;
}
.btn-ghost:hover { border-color: var(--sand); transform: translateY(-2px); }

/* ═══ SECTION COMMONS ════════════════════ */
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 4rem; }
.section-tag { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--terracotta); margin-bottom: .9rem; }
.section-title { font-family: var(--font-display); font-size: clamp(2.5rem,4vw,4rem); font-weight: 300; line-height: 1.05; color: var(--obsidian); }
.section-title em { font-style: italic; color: var(--terracotta); }
.section-title.light { color: var(--sand); }
.section-link {
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--muted); padding-bottom: .3rem;
  transition: color .3s, border-color .3s; white-space: nowrap;
}
.section-link:hover { color: var(--terracotta); border-color: var(--terracotta); }
.section-link.muted { color: rgba(122,114,101,.6); border-color: rgba(122,114,101,.3); }

/* ═══ SERVICES ═══════════════════════════ */
.services { background: var(--fog); padding: 8rem 3rem; max-width: 100%; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border-light); }
.service-card {
  padding: 2.8rem 2.2rem; border-right: 1px solid var(--border-light);
  position: relative; overflow: hidden; transition: background .4s;
}
.service-card:nth-child(3), .service-card:nth-child(6) { border-right: none; }
.service-card:nth-child(1), .service-card:nth-child(2), .service-card:nth-child(3) { border-bottom: 1px solid var(--border-light); }
.service-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px;
  background: var(--terracotta); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out-expo);
}
.service-card:hover { background: rgba(14,13,11,.04); }
.service-card:hover::before { transform: scaleX(1); }
.service-num { font-family: var(--font-display); font-size: 3.8rem; font-weight: 300; color: rgba(14,13,11,.06); line-height: 1; margin-bottom: 1.2rem; }
.service-icon { width: 32px; height: 32px; margin-bottom: 1.2rem; color: var(--terracotta); }
.service-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; color: var(--obsidian); margin-bottom: .8rem; line-height: 1.2; }
.service-desc { font-size: .82rem; line-height: 1.8; color: var(--muted); margin-bottom: 1.2rem; }
.service-cta { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); transition: letter-spacing .3s; }
.service-card:hover .service-cta { letter-spacing: .2em; }

/* ═══ WORK ═══════════════════════════════ */
.work { background: var(--obsidian); padding: 8rem 3rem; }
.work-list { margin-top: 0; }
.work-item {
  display: grid; grid-template-columns: 80px 1fr auto; align-items: center;
  gap: 2rem; padding: 2.2rem 0; border-bottom: 1px solid var(--border-dark);
  color: var(--sand); position: relative; overflow: hidden;
  transition: padding-left .4s var(--ease-out-expo);
}
.work-item::before { content:''; position:absolute; left:0; top:0; width:3px; height:100%; background:var(--terracotta); transform:scaleY(0); transform-origin:bottom; transition:transform .35s ease; }
.work-item:hover { padding-left: 1rem; }
.work-item:hover::before { transform: scaleY(1); }
.work-num { font-family: var(--font-mono); font-size: .62rem; color: var(--muted); letter-spacing: .1em; }
.work-title { font-family: var(--font-display); font-size: 1.7rem; font-weight: 300; line-height: 1.1; transition: color .3s; }
.work-item:hover .work-title { color: var(--gold); }
.work-detail { font-size: .78rem; color: var(--muted); line-height: 1.7; margin-top: .4rem; max-width: 500px; }
.work-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.work-tag { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: rgba(232,213,176,.06); padding: .22rem .65rem; }
.work-arrow { font-size: 1.4rem; color: var(--muted); transition: transform .3s, color .3s; }
.work-item:hover .work-arrow { transform: translateX(6px); color: var(--terracotta); }

/* ═══ ABOUT ══════════════════════════════ */
.about { background: var(--charcoal); padding: 8rem 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.about-title { color: var(--white); }
.about-body { font-size: .88rem; line-height: 1.9; color: var(--muted); margin-top: 1.5rem; }
.about-body strong { color: var(--sand); font-weight: 500; }
.about-pillars { display: flex; border: 1px solid rgba(232,213,176,.1); margin-top: 2.5rem; }
.pillar { padding: 1.4rem; border-right: 1px solid rgba(232,213,176,.1); flex: 1; }
.pillar:last-child { border-right: none; }
.pillar-icon { font-size: 1rem; margin-bottom: .4rem; }
.pillar-label { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); margin-bottom: .25rem; }
.pillar-text { font-size: .78rem; color: var(--muted); line-height: 1.5; }
.about-visual { position: relative; height: 480px; }
.about-block { position: absolute; background: var(--terracotta); width: 68%; height: 68%; top: 0; right: 0; }
.about-block-2 { position: absolute; background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.25); width: 62%; height: 62%; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; }
.about-quote { font-family: var(--font-display); font-size: 1.15rem; font-style: italic; font-weight: 300; color: var(--gold); text-align: center; padding: 1.5rem; line-height: 1.7; }
.about-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 76px; height: 76px; background: var(--obsidian); border: 2px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 2; }
.about-badge-text { font-family: var(--font-mono); font-size: .48rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); text-align: center; line-height: 1.5; }

/* ═══ MARQUEE ════════════════════════════ */
.stack { background: var(--fog); padding: 3rem 0; overflow: hidden; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.marquee-wrap { overflow: hidden; }
.marquee { display: flex; gap: 3rem; animation: marquee 24s linear infinite; white-space: nowrap; }
.marquee-item { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.marquee-item::before { content: '◆'; color: var(--terracotta); font-size: .45rem; }

/* ═══ FAQ ════════════════════════════════ */
.faq-section { background: var(--fog); padding: 8rem 3rem; }
.faq-list { max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-item:first-child { border-top: 1px solid var(--border-light); }
.faq-q {
  list-style: none; font-family: var(--font-display); font-size: 1.3rem; font-weight: 400;
  color: var(--obsidian); padding: 1.5rem 0; cursor: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q::after { content: '+'; font-family: var(--font-mono); font-size: 1.2rem; color: var(--terracotta); transition: transform .3s; flex-shrink: 0; }
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-item[open] .faq-q { color: var(--terracotta); }
.faq-a { font-size: .88rem; line-height: 1.85; color: var(--muted); padding: 0 0 1.5rem; max-width: 680px; }

/* ═══ CONTACT ════════════════════════════ */
.contact-section { background: var(--obsidian); padding: 8rem 3rem; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 6rem; align-items: start; max-width: 1200px; margin: 0 auto; }
.cta-title { font-family: var(--font-display); font-size: clamp(2.8rem,5vw,5rem); font-weight: 300; line-height: 1; color: var(--white); margin: .5rem 0 1.2rem; }
.cta-title em { font-style: italic; color: var(--sand); }
.cta-sub { font-size: .88rem; color: var(--muted); line-height: 1.7; margin-bottom: 2.5rem; }
.contact-details { display: flex; flex-direction: column; gap: .8rem; }
.contact-detail { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; color: var(--muted); display: flex; align-items: center; gap: .6rem; transition: color .3s; }
.contact-detail span { color: var(--terracotta); font-size: .9rem; }
.contact-detail:hover { color: var(--sand); }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: .45rem; }
.form-group label { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.form-group input, .form-group select, .form-group textarea {
  background: rgba(232,213,176,.04); border: 1px solid var(--border-dark);
  color: var(--sand); padding: .85rem 1rem; font-size: .88rem;
  transition: border-color .3s, background .3s; outline: none; resize: vertical;
}
.form-group input:focus, .form-group select, .form-group textarea:focus { border-color: var(--terracotta); background: rgba(194,82,42,.04); }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%237a7265' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.form-group select option { background: var(--charcoal); }
.form-submit { align-self: flex-start; font-size: .75rem; padding: 1rem 2.2rem; }
.form-note { font-family: var(--font-mono); font-size: .65rem; color: var(--gold); letter-spacing: .08em; min-height: 1.2em; }

/* ═══ FOOTER ══════════════════════════════ */
footer { background: var(--charcoal); border-top: 1px solid var(--border-dark); padding: 3rem; }
.footer-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-logo { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--white); letter-spacing: .06em; }
.footer-logo span { color: var(--terracotta); }
.footer-tagline { font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.footer-links { display: flex; gap: 2rem; list-style: none; flex-wrap: wrap; }
.footer-links a { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.footer-links a:hover { color: var(--sand); }
.footer-copy { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .08em; color: rgba(122,114,101,.5); }

/* ═══ CHATBOT ════════════════════════════ */
.chatbot-widget { position: fixed; bottom: 2rem; right: 2rem; z-index: 1000; }
.chatbot-toggle {
  width: 58px; height: 58px; border-radius: 50%; background: var(--terracotta);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(194,82,42,.4);
  transition: transform .3s var(--ease-out-expo), background .3s;
  position: relative;
}
.chatbot-toggle:hover { transform: scale(1.08); background: #a8421d; }
.chat-icon-open, .chat-icon-close { width: 22px; height: 22px; color: var(--white); position: absolute; transition: opacity .3s, transform .3s; }
.chat-icon-close { opacity: 0; transform: rotate(-90deg); }
.chatbot-toggle.open .chat-icon-open { opacity: 0; transform: rotate(90deg); }
.chatbot-toggle.open .chat-icon-close { opacity: 1; transform: rotate(0); }
.chat-badge {
  position: absolute; top: -2px; right: -2px; width: 18px; height: 18px;
  background: var(--gold); border-radius: 50%; font-family: var(--font-mono); font-size: .6rem;
  color: var(--obsidian); display: flex; align-items: center; justify-content: center; font-weight: 400;
  animation: pulse 2s ease-in-out infinite;
}
.chat-badge.hidden { display: none; }
.chat-panel {
  position: absolute; bottom: 72px; right: 0;
  width: 370px; background: var(--charcoal);
  border: 1px solid var(--border-dark); border-radius: 2px;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  display: flex; flex-direction: column;
  transform: scale(.92) translateY(12px); transform-origin: bottom right;
  opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease-out-expo), opacity .3s ease;
  max-height: 560px;
}
.chat-panel.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }
.chat-header {
  padding: 1rem 1.2rem; background: var(--obsidian); display: flex; align-items: center; gap: .8rem;
  border-bottom: 1px solid var(--border-dark); flex-shrink: 0;
}
.chat-avatar { width: 34px; height: 34px; background: var(--terracotta); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: .6rem; color: var(--white); flex-shrink: 0; }
.chat-title { font-family: var(--font-display); font-size: 1rem; font-weight: 400; color: var(--white); }
.chat-status { font-family: var(--font-mono); font-size: .55rem; letter-spacing: .1em; color: var(--muted); display: flex; align-items: center; gap: .4rem; margin-top: .15rem; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; animation: dotBlink 2s ease-in-out infinite; }
.chat-close-btn { margin-left: auto; font-size: .8rem; color: var(--muted); transition: color .2s; }
.chat-close-btn:hover { color: var(--sand); }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .8rem; min-height: 200px; }
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(232,213,176,.15); border-radius: 2px; }
.chat-msg { max-width: 88%; display: flex; flex-direction: column; gap: .25rem; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }
.chat-bubble {
  padding: .7rem .95rem; font-size: .82rem; line-height: 1.6;
  border-radius: 2px;
}
.chat-msg.bot .chat-bubble { background: rgba(232,213,176,.07); color: var(--sand); border-left: 2px solid var(--terracotta); }
.chat-msg.user .chat-bubble { background: var(--terracotta); color: var(--white); }
.chat-time { font-family: var(--font-mono); font-size: .52rem; color: var(--muted); letter-spacing: .05em; }
.chat-msg.user .chat-time { text-align: right; }
.chat-typing { align-self: flex-start; padding: .6rem .95rem; background: rgba(232,213,176,.07); border-left: 2px solid var(--terracotta); display: flex; gap: 4px; align-items: center; }
.chat-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: typing 1.2s ease-in-out infinite; }
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
.chat-suggestions { padding: .6rem 1rem; display: flex; flex-wrap: wrap; gap: .4rem; border-top: 1px solid var(--border-dark); flex-shrink: 0; }
.chat-suggestion {
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--terracotta); border: 1px solid rgba(194,82,42,.3); padding: .3rem .7rem;
  transition: background .2s, color .2s; white-space: nowrap;
}
.chat-suggestion:hover { background: var(--terracotta); color: var(--white); }
.chat-input-area { padding: .8rem 1rem; border-top: 1px solid var(--border-dark); display: flex; gap: .6rem; align-items: flex-end; flex-shrink: 0; }
.chat-input {
  flex: 1; background: rgba(232,213,176,.05); border: 1px solid var(--border-dark);
  color: var(--sand); padding: .65rem .9rem; font-size: .82rem; resize: none;
  max-height: 100px; outline: none; line-height: 1.5;
  transition: border-color .3s;
}
.chat-input:focus { border-color: var(--terracotta); }
.chat-input::placeholder { color: var(--muted); }
.chat-send { width: 36px; height: 36px; background: var(--terracotta); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .3s; }
.chat-send:hover { background: #a8421d; }
.chat-send svg { width: 15px; height: 15px; color: var(--white); }

/* ─── Scroll reveal ──────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══ RESPONSIVE ══════════════════════════ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero::after { display: none; }
  .hero-right { display: none; }
  .hero-left { padding: 5rem 2rem 4rem; min-height: calc(100vh - 72px); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card:nth-child(2n) { border-right: none; }
  .service-card:nth-child(3) { border-right: 1px solid var(--border-light); }
  .about { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { height: 320px; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  nav { padding: 1.1rem 1.5rem; }
  .nav-links { display: none; flex-direction: column; gap: 1.5rem; position: absolute; top: 100%; left: 0; right: 0; background: rgba(14,13,11,.97); padding: 2rem 1.5rem; border-bottom: 1px solid var(--border-dark); }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: .75rem; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .services, .work, .about, .faq-section, .contact-section { padding: 5rem 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none !important; border-bottom: 1px solid var(--border-light); }
  .service-card:last-child { border-bottom: none; }
  .work-item { grid-template-columns: 50px 1fr auto; gap: 1rem; }
  .work-detail { display: none; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  footer { padding: 2rem 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .chat-panel { width: calc(100vw - 2rem); right: -1rem; }
  .chatbot-widget { bottom: 1.5rem; right: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .cursor, .cursor-ring { display: none; }
  body { cursor: auto; }
}

/* ═══════════════════════════════════════════
   ADDITIONS v3 — Logo · Social · Feedback · Lead
═══════════════════════════════════════════ */

/* ─── Logo ─────────────────────────────── */
.site-logo { height: 36px; width: auto; display: block; }
.nav-logo, .footer-logo { display: flex; align-items: center; }

/* ─── Social icons in contact + footer ── */
.social-link { display: flex; align-items: center; gap: .5rem; }
.social-icon  { width: 16px; height: 16px; display: flex; align-items: center; flex-shrink: 0; }
.social-icon svg { width: 100%; height: 100%; }

.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; list-style: none; }
.footer-social-link {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); transition: color .3s;
}
.footer-social-link:hover { color: var(--terracotta); }
.footer-social-icon { width: 14px; height: 14px; display: flex; align-items: center; }
.footer-social-icon svg { width: 100%; height: 100%; }

/* ─── Chatbot feedback ──────────────────── */
.chat-feedback {
  display: flex; gap: .4rem; margin-top: .35rem;
  padding-top: .35rem; border-top: 1px solid rgba(232,213,176,.08);
}
.fb-btn {
  background: none; border: 1px solid rgba(232,213,176,.12); cursor: none;
  font-size: .75rem; padding: .2rem .5rem;
  border-radius: 2px; transition: background .2s, border-color .2s;
  line-height: 1;
}
.fb-btn:hover { background: rgba(232,213,176,.08); border-color: rgba(232,213,176,.3); }
.fb-thanks {
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .08em;
  color: var(--gold); display: flex; align-items: center;
}

/* ─── Chat bubble links ─────────────────── */
.chat-bubble a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.chat-bubble a:hover { color: var(--sand); }

/* ─── Lead form status ──────────────────── */
#formStatus { transition: color .3s; margin-top: .5rem; }

/* ─── Contact social row ────────────────── */
.contact-details { display: flex; flex-direction: column; gap: .7rem; }
.contact-detail  { transition: color .3s; }
.contact-detail:hover { color: var(--sand); }

/* ═══════════════════════════════════════════
   v5 ADDITIONS — Feedback · Social · Logo
═══════════════════════════════════════════ */

/* Logo */
.site-logo { height: 36px; width: auto; display: block; }
.nav-logo, .footer-logo { display: flex; align-items: center; }

/* Social icons */
.social-link { display: flex; align-items: center; gap: .5rem; }
.social-icon  { width: 16px; height: 16px; display: flex; align-items: center; flex-shrink: 0; }
.social-icon svg { width: 100%; height: 100%; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; list-style: none; }
.footer-social-link { display: flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.footer-social-link:hover { color: var(--terracotta); }
.footer-social-icon { width: 14px; height: 14px; display: flex; align-items: center; }
.footer-social-icon svg { width: 100%; height: 100%; }

/* Chatbot feedback */
.chat-feedback { display: flex; align-items: center; gap: .4rem; margin-top: .4rem; padding-top: .4rem; border-top: 1px solid rgba(232,213,176,.08); }
.fb-label { font-family: var(--font-mono); font-size: .55rem; letter-spacing: .06em; color: var(--muted); }
.fb-btn { background: none; border: 1px solid rgba(232,213,176,.12); cursor: pointer; font-size: .75rem; padding: .18rem .45rem; border-radius: 2px; transition: background .2s, border-color .2s; line-height: 1; }
.fb-btn:hover { background: rgba(232,213,176,.08); border-color: rgba(232,213,176,.3); }
.fb-thanks { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .06em; color: var(--gold); }

/* Chat bubble links */
.chat-bubble a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.chat-bubble a:hover { color: var(--sand); }
.chat-bubble strong { color: var(--white); }

/* Contact details social row */
.contact-details { display: flex; flex-direction: column; gap: .7rem; }
.contact-detail { transition: color .3s; }
.contact-detail:hover { color: var(--sand); }

/* Form status */
#formStatus { transition: color .3s; margin-top: .5rem; min-height: 1.4em; }
