/* =========================================================
   Kenia Charlene — Portfolio
   Author: built for Kenia Charlene
   Sections: tokens / base / layout / nav / hero / about /
   stats / services / tools / experience / portfolio /
   process / skills / results / why / testimonials / faq /
   contact / footer / floating / animations / responsive
   ========================================================= */

/* ---------- Design tokens / theming ----------
   Palette: dark green + beige (minimalist).
   Legacy variable names (--blue/--cyan/--orange…) are kept but remapped
   to the green/beige palette so existing rules need no edits. */
:root {
  /* brand greens */
  --green: #2F4030;         /* primary dark green */
  --green-2: #3C4E3B;
  --green-3: #4C6149;       /* lighter sage-green */
  --sage: #6E7D5B;          /* secondary accent */

  /* legacy names remapped */
  --blue: #2F4030;
  --accent: #2F4030;        /* primary accent = dark green */
  --cyan: #6E7D5B;          /* secondary accent = sage */
  --orange: #8C7C55;        /* warm taupe (stars, etc.) */
  --amber: #A8925F;
  --yellow: #C7B487;
  --li: #0A66C2;            /* keep LinkedIn brand blue for its button */

  --grad-brand: linear-gradient(120deg, #2F4030 0%, #3C4E3B 55%, #4C6149 100%);
  --grad-ig: linear-gradient(45deg, #FBBF24, #F97316, #EC4899);

  /* light theme (beige) — default */
  --bg: #E9E4D7;
  --surface: #F5F1E8;
  --surface-2: #DFD8C7;
  --text: #212B21;
  --muted: #59604F;
  --border: rgba(33, 43, 33, 0.12);
  --glass-bg: rgba(245, 241, 232, 0.72);
  --glass-brd: rgba(255, 255, 255, 0.55);
  --shadow: 0 18px 50px rgba(33, 43, 33, 0.14);
  --shadow-sm: 0 8px 24px rgba(33, 43, 33, 0.10);

  --radius: 20px;
  --radius-sm: 14px;
  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-pad: clamp(3.5rem, 8vw, 7rem);
  --ease: cubic-bezier(.22,.61,.36,1);
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

[data-theme="dark"] {
  /* dark theme (deep green) */
  --bg: #1A231B;
  --surface: #232E24;
  --surface-2: #2B372C;
  --text: #ECE7DB;          /* beige text */
  --muted: #A9B09D;
  --border: rgba(236, 231, 219, 0.12);
  --glass-bg: rgba(35, 46, 36, 0.60);
  --glass-brd: rgba(236, 231, 219, 0.10);
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.4);
  /* lift text accents so they read on dark green */
  --accent: #B9C9A6;
  --cyan: #9FB58C;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul, ol { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-pad); position: relative; }

.skip-link {
  position: fixed; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--accent); color: #fff; padding: .6rem 1.2rem; border-radius: 0 0 12px 12px;
  z-index: 1000; transition: top .3s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Headings / shared ---------- */
.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
  background: none; padding: 0; border-radius: 0;
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 30px; height: 3px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }
.section__head { max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }
.section__title { font-size: clamp(1.6rem, 3.6vw, 2.6rem); letter-spacing: -.02em; }
.section__lead { color: var(--muted); margin-top: .9rem; font-size: 1.05rem; }

.gradient-text { color: var(--accent); }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow);
}

/* ---------- Buttons ---------- */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.6rem; border-radius: 999px; position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s;
  will-change: transform;
}
.btn--sm { padding: .6rem 1.15rem; font-size: .9rem; }
.btn--primary { background: var(--grad-brand); background-size: 180% auto; color: #fff; box-shadow: 0 12px 30px rgba(47,64,48,.35); }
.btn--primary:hover { background-position: right center; transform: translateY(-3px); box-shadow: 0 18px 40px rgba(47,64,48,.45); }
.btn--ghost { background: var(--surface); color: var(--text); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent); }
.btn--text { background: transparent; color: var(--muted); padding-inline: .6rem; }
.btn--text:hover { color: var(--accent); }
.btn--wa { background: #25D366; color: #073d22; }
.btn--li { background: var(--li); color: #fff; }
.btn--ig { background: var(--grad-ig); color: #fff; }
.btn--wa:hover, .btn--li:hover, .btn--ig:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding-block: 1.1rem;
}
.nav.is-scrolled {
  background: var(--glass-bg); backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-sm); padding-block: .6rem;
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 700; }
.nav__brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad-brand); color: #fff; font-weight: 800; font-size: .95rem;
  box-shadow: 0 8px 18px rgba(47,64,48,.35);
}
.nav__brand-text { font-size: 1.05rem; }
.nav__menu { display: flex; align-items: center; gap: .35rem; }
.nav__link {
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--muted);
  padding: .5rem .85rem; border-radius: 999px; position: relative; transition: color .25s, background .25s;
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.nav__link--cta { background: var(--grad-brand); color: #fff; }
.nav__link--cta:hover { color: #fff; transform: translateY(-2px); }
.nav__actions { display: flex; align-items: center; gap: .6rem; }

.theme-toggle {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), color .3s;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.05); color: var(--accent); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav__burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.nav__burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(7rem, 14vw, 10rem); min-height: 100vh; display: flex; align-items: center; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__eyebrow { font-family: var(--font-head); font-weight: 500; color: var(--muted); margin-bottom: .6rem; }
.hero__title { font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.hero__roles { font-size: clamp(1.1rem, 3vw, 1.7rem); margin-top: .8rem; color: var(--text); min-height: 1.4em; font-weight: 600; }
.typewriter { color: var(--accent); }
.caret { color: var(--cyan); animation: blink 1s steps(1) infinite; font-weight: 400; }
@keyframes blink { 50% { opacity: 0; } }
.hero__headline { margin-top: 1.2rem; color: var(--muted); font-size: 1.1rem; max-width: 46ch; }
.hero__headline strong { color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; align-items: center; }
.hero__stats-mini { display: flex; gap: 2rem; margin-top: 2.4rem; }
.hero__stats-mini strong { display: block; font-family: var(--font-head); font-size: 1.8rem; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__stats-mini span { color: var(--muted); font-size: .85rem; }
.hero__art { position: relative; display: grid; place-items: center; }
.hero__img { width: 100%; max-width: 560px; filter: drop-shadow(0 30px 50px rgba(33,43,33,.18)); }

.scroll-hint { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.scroll-hint span { width: 22px; height: 36px; border: 2px solid var(--border); border-radius: 12px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; top: 6px; left: 50%; width: 4px; height: 7px; background: var(--accent); border-radius: 2px; transform: translateX(-50%); animation: scrollDot 1.6s var(--ease) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- Divider ---------- */
.divider svg { width: 100%; height: 60px; display: block; }

/* ---------- About ---------- */
.about__inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__content p { color: var(--muted); margin-top: .9rem; }
.about__content p strong { color: var(--text); }
.about__badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.badge { padding: .45rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .85rem; font-weight: 600; box-shadow: var(--shadow-sm); }

/* ---------- Stats ---------- */
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.stat-card { border-radius: var(--radius); padding: 1.6rem 1.2rem; text-align: center; transition: transform .3s var(--ease); }
.stat-card:hover { transform: translateY(-6px); }
.stat-card strong { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card span { color: var(--muted); font-size: .85rem; font-weight: 500; }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.service-card { border-radius: var(--radius); padding: 2rem 1.8rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease); position: relative; overflow: hidden; }
.service-card::before { content: ""; position: absolute; inset: 0; background: var(--grad-brand); opacity: 0; transition: opacity .35s; z-index: -1; }
.service-card:hover, .service-card:focus-within { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(47,64,48,.22); }
.service-card__icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin-bottom: 1.2rem; transition: transform .35s var(--ease); }
.service-card:hover .service-card__icon { transform: rotate(-8deg) scale(1.08); }
.icon-grad-1 { background: linear-gradient(135deg, #2F4030, #4C6149); }
.icon-grad-2 { background: linear-gradient(135deg, #3C4E3B, #6E7D5B); }
.icon-grad-3 { background: linear-gradient(135deg, #24331F, #3C4E3B); }
.icon-grad-4 { background: linear-gradient(135deg, #4C6149, #8C7C55); }
.icon-grad-5 { background: linear-gradient(135deg, #2F4030, #6E7D5B); }
.service-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.service-card > p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.service-card ul { display: grid; gap: .45rem; }
.service-card li { position: relative; padding-left: 1.5rem; color: var(--muted); font-size: .92rem; }
.service-card li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }

/* ---------- Tools ---------- */
.tools__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; }
.tool-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.4rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .7rem; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.tool-card:hover { transform: translateY(-8px) scale(1.03); box-shadow: var(--shadow); }
.tool-card svg { width: 44px; height: 44px; }
.tool-card span { font-family: var(--font-head); font-weight: 600; font-size: .9rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 820px; margin-inline: auto; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--grad-brand); }
.timeline__item { position: relative; margin-bottom: 1.6rem; }
.timeline__dot { position: absolute; left: -2rem; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 4px solid var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); }
.timeline__card { border-radius: var(--radius); padding: 1.6rem 1.8rem; transition: transform .3s var(--ease); }
.timeline__card:hover { transform: translateX(6px); }
.timeline__date { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8rem; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: .3rem .8rem; border-radius: 999px; margin-bottom: .6rem; }
.timeline__card h3 { font-size: 1.2rem; }
.timeline__org { color: var(--cyan); font-weight: 600; margin-bottom: .8rem; }
.timeline__card ul { display: grid; gap: .4rem; }
.timeline__card li { position: relative; padding-left: 1.3rem; color: var(--muted); font-size: .92rem; }
.timeline__card li::before { content: "›"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------- Portfolio ---------- */
.portfolio__filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.2rem; }
.filter-btn { font-family: var(--font-head); font-weight: 600; font-size: .9rem; padding: .55rem 1.2rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: all .25s var(--ease); }
.filter-btn:hover { color: var(--text); }
.filter-btn.is-active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(47,64,48,.3); }
.portfolio__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.project-card { border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, opacity .4s, scale .4s; }
.project-card.is-hidden { display: none; }
.project-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(33,43,33,.22); }
.project-card__media { position: relative; overflow: hidden; }
.project-card__media img { width: 100%; transition: transform .5s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__tag { position: absolute; top: 1rem; left: 1rem; background: var(--glass-bg); backdrop-filter: blur(8px); border: 1px solid var(--glass-brd); padding: .35rem .9rem; border-radius: 999px; font-size: .78rem; font-weight: 600; font-family: var(--font-head); }
.project-card__body { padding: 1.6rem; }
.project-card__body h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.project-card__body > p { color: var(--muted); font-size: .94rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.chips span { font-size: .76rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.project-card__more summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--accent); list-style: none; padding: .4rem 0; }
.project-card__more summary::-webkit-details-marker { display: none; }
.project-card__more summary::after { content: " +"; }
.project-card__more[open] summary::after { content: " –"; }
.project-card__more ul { display: grid; gap: .35rem; margin-top: .5rem; }
.project-card__more li { padding-left: 1.2rem; position: relative; color: var(--muted); font-size: .88rem; }
.project-card__more li::before { content: "•"; position: absolute; left: 0; color: var(--cyan); }

/* ---------- Process ---------- */
.process__track { position: relative; }
.process__line { position: absolute; top: 28px; left: 0; right: 0; height: 4px; background: var(--border); border-radius: 4px; }
.process__line span { display: block; height: 100%; width: 0; background: var(--grad-brand); border-radius: 4px; transition: width 1.2s var(--ease); }
.process__steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; position: relative; }
.process-step { text-align: center; }
.process-step__num { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 1rem; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); color: var(--accent); font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; box-shadow: 0 0 0 6px var(--bg); transition: transform .3s var(--ease), background .3s, color .3s; }
.process-step:hover .process-step__num { background: var(--grad-brand); color: #fff; border-color: transparent; transform: scale(1.1); }
.process-step h3 { font-size: 1rem; margin-bottom: .3rem; }
.process-step p { color: var(--muted); font-size: .85rem; }

/* ---------- Skills ---------- */
.skills__bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem 2.5rem; max-width: 900px; margin-inline: auto; }
.skill__top { display: flex; justify-content: space-between; font-family: var(--font-head); font-weight: 600; font-size: .92rem; margin-bottom: .45rem; }
.skill__top em { color: var(--accent); font-style: normal; }
.skill__bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.skill__bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--grad-brand); transition: width 1.4s var(--ease); }
.skills__chips { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 2.4rem; }
.skills__chips span { padding: .5rem 1.1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .88rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), color .25s, border-color .25s; }
.skills__chips span:hover { transform: translateY(-4px); color: var(--accent); border-color: var(--accent); }

/* ---------- Results ---------- */
.results__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.1rem; }
.result-card { border-radius: var(--radius); padding: 1.6rem; display: flex; gap: 1rem; align-items: center; transition: transform .3s var(--ease); }
.result-card:hover { transform: translateY(-6px); }
.result-card__ic { flex-shrink: 0; color: var(--accent); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.result-card p { font-weight: 600; font-size: .95rem; }

/* ---------- Why ---------- */
.why__card { max-width: 860px; margin-inline: auto; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; position: relative; overflow: hidden; }
.why__card::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: var(--grad-brand); opacity: .12; filter: blur(40px); top: -100px; right: -100px; }
.why__card p { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }
.why__card p strong { color: var(--text); }
.why__card .btn { margin-top: 1.8rem; }

/* ---------- Testimonials ---------- */
.testimonials__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.testi-card { border-radius: var(--radius); padding: 1.8rem; transition: transform .3s var(--ease); }
.testi-card:hover { transform: translateY(-8px); }
.testi-card__stars { color: var(--orange); letter-spacing: 2px; margin-bottom: .8rem; }
.testi-card blockquote { font-size: 1rem; color: var(--text); line-height: 1.7; }
.testi-card figcaption { display: flex; align-items: center; gap: .8rem; margin-top: 1.4rem; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--a, var(--accent)); color: #fff; font-family: var(--font-head); font-weight: 700; }
.testi-card figcaption strong { display: block; font-family: var(--font-head); }
.testi-card figcaption em { color: var(--muted); font-style: normal; font-size: .85rem; }

/* ---------- FAQ ---------- */
.faq__list { max-width: 760px; margin-inline: auto; display: grid; gap: .9rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.2rem 1.4rem; font-family: var(--font-head); font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-item__icon::before, .faq-item__icon::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .3s var(--ease); }
.faq-item__icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-item__icon::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq-item[open] .faq-item__icon::after { transform: rotate(90deg); opacity: 0; }
.faq-item__body { padding: 0 1.4rem 1.2rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: start; }
.contact__card { border-radius: var(--radius); padding: 1.8rem; margin-bottom: 1.4rem; box-shadow: none; }
.contact__card h3 { font-size: 1.3rem; }
.contact__role { color: var(--cyan); font-weight: 600; margin-bottom: 1.2rem; }
.contact__details { display: grid; gap: .8rem; margin-bottom: 1.4rem; }
.contact__details li { display: flex; align-items: center; gap: .7rem; color: var(--muted); }
.contact__details .ic { display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.contact__details a:hover { color: var(--accent); }
.contact__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.contact__form { border-radius: var(--radius); padding: 1.8rem; display: grid; gap: 1.1rem; box-shadow: none; }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; }
.field input, .field textarea { padding: .8rem 1rem; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); transition: border-color .25s, box-shadow .25s; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ef4444; }
.field__error { color: #ef4444; font-size: .8rem; min-height: 1em; }
.form-status { font-weight: 600; font-size: .92rem; min-height: 1.2em; }
.form-status.ok { color: #16a34a; }
.form-status.err { color: #ef4444; }

/* ---------- Footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 3rem; margin-top: 2rem; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 2rem; align-items: start; padding-bottom: 2rem; }
.footer__brand p { color: var(--muted); margin-top: .8rem; max-width: 30ch; }
.footer__nav { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; }
.footer__nav a { color: var(--muted); font-weight: 500; transition: color .2s; }
.footer__nav a:hover { color: var(--accent); }
.footer__social { display: flex; gap: .6rem; }
.footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 700; transition: transform .25s var(--ease), background .25s, color .25s; }
.footer__social a:hover { transform: translateY(-4px); background: var(--grad-brand); color: #fff; }
.footer__bottom { padding-block: 1.4rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; text-align: center; }

/* ---------- Scroll to top + progress ---------- */
.to-top { position: fixed; right: 1.2rem; bottom: 1.4rem; z-index: 80; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--grad-brand); color: #fff; box-shadow: 0 12px 28px rgba(47,64,48,.4); opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px) scale(1.05); }
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad-brand); z-index: 200; transition: width .1s linear; }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 9999; background: var(--bg); display: grid; place-items: center; gap: 1.4rem; grid-auto-flow: row; transition: opacity .5s var(--ease), visibility .5s; }
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__logo { display: flex; gap: .2rem; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; }
.preloader__logo span { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; animation: popIn .6s var(--ease) both; }
.preloader__logo span:nth-child(2) { animation-delay: .15s; }
.preloader__bar { width: 160px; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 40%; background: var(--grad-brand); border-radius: 4px; animation: loadBar 1s var(--ease) infinite; }
@keyframes loadBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.8); } to { opacity: 1; transform: none; } }

/* ---------- Hero portrait ---------- */
.hero__photo {
  width: 100%; max-width: 440px; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  object-fit: cover; aspect-ratio: 4 / 5;
}

/* ---------- Brand / client logos ---------- */
.brands__grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.2rem; }
.brand-logo {
  display: grid; place-items: center; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 1.4rem 1.8rem;
  min-width: 200px; min-height: 110px; flex: 1 1 220px; max-width: 300px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.brand-logo:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.brand-logo img { max-height: 64px; width: auto; object-fit: contain; }

/* ---------- Company link on timeline / portfolio ---------- */
.timeline__org a, .project-card__body h3 a { color: inherit; border-bottom: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.timeline__org a:hover, .project-card__body h3 a:hover { color: var(--accent); }
.project-card__link {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .8rem;
  font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--accent);
}
.project-card__link:hover { gap: .6rem; }

/* ---------- Contact email lead ---------- */
.contact__lead { color: var(--muted); margin-top: .6rem; font-size: 1.02rem; }
.contact__lead a { color: var(--accent); font-weight: 600; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.contact__lead a:hover { border-bottom-color: var(--accent); }

/* ---------- Reveal / floats ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.float-y { animation: floatY 6s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner, .about__inner { grid-template-columns: 1fr; }
  .about__art { order: -1; max-width: 460px; margin-inline: auto; }
  .hero__art { max-width: 460px; margin-inline: auto; }
  .contact__grid { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: repeat(3, 1fr); gap: 1.6rem 1rem; }
  .process__line { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav__menu {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); flex-direction: column;
    align-items: stretch; gap: .3rem; padding: 6rem 1.4rem 2rem; background: var(--surface);
    border-left: 1px solid var(--border); box-shadow: -10px 0 40px rgba(0,0,0,.2);
    transform: translateX(105%); transition: transform .4s var(--ease); z-index: 99;
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__link { font-size: 1.05rem; padding: .8rem 1rem; }
  .nav__burger { display: flex; }
  .hero__stats-mini { gap: 1.4rem; }
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .nav__brand-text { display: none; }
  .hero__cta { gap: .6rem; }
  .btn { padding: .75rem 1.3rem; }
}
