/* ==========================================================================
   Vagner Bom Jesus | Portfolio
   Design system + layout. Mobile-first, no build step.
   Palette (from the mock, nothing else): #D7D7D7 light grey, #000000 black,
   #FFFFFF white, #C4C4C4 grey boxes, #909090 muted grey.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Accent = black on light surfaces; dark surfaces flip it to white (see .on-dark scope below) */
  --accent: #000000;
  --accent-dark: #909090;
  --accent-light: #C4C4C4;
  --accent-glow: rgba(0, 0, 0, 0.25);

  --bg: #D7D7D7;
  --bg-elev: #FFFFFF;
  --bg-dark: #000000;
  --bg-darker: #000000;
  --bg-card-dark: #000000;
  --box: #C4C4C4;

  --text: #000000;
  --text-soft: #000000;
  --text-muted: #909090;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: #C4C4C4;

  --line: #000000;
  --line-soft: #C4C4C4;
  --line-on-dark: rgba(255, 255, 255, 0.22);

  --font-head: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --header-h: 64px;
  --container: 1100px;
  --container-narrow: 720px;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark surfaces: flip the accent so underlines, badges and icons stay visible */
.site-header, .hero__media, .featured, .section--dark, .site-footer, .cookie-banner {
  --accent: #FFFFFF;
  --accent-dark: #C4C4C4;
  --accent-light: #909090;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-dark); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); line-height: 1.2; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--container-narrow); text-align: center; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: #000000; color: #FFFFFF; padding: 10px 16px; border-radius: var(--radius);
  font-weight: 600; transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1001;
  background: #000000; transition: width 0.1s linear;
}

/* ---------- 3. Typography helpers ---------- */
.section-title {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  padding: 14px 40px 14px 46px; /* extra left compensates letter-spacing */
  border: 2px solid var(--line);
  color: var(--text);
  margin-bottom: 40px;
  position: relative;
  background: var(--bg);
}
.section-title::after {
  content: ''; position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%);
  width: 46px; height: 3px; background: var(--accent);
}
.section-title--light { color: var(--text-on-dark); border-color: var(--text-on-dark); background: transparent; }

.lead { font-size: 1.02rem; color: var(--text-soft); max-width: 62ch; margin-left: auto; margin-right: auto; }
.section-intro { color: var(--text-soft); max-width: 60ch; margin-bottom: 40px; }

.ornament {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--accent); margin: 44px auto 0;
}
.ornament__line { width: 56px; height: 2px; background: currentColor; opacity: 0.8; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.32em; text-transform: uppercase;
  padding: 12px 26px 12px 30px;
  color: var(--text); background: transparent;
  border: 0; border-left: 2px solid var(--line); border-right: 2px solid var(--line);
  position: relative; isolation: isolate; overflow: hidden;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.btn:hover, .btn:focus-visible { color: #fff; border-color: var(--accent); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn--solid { background: var(--text); color: #fff; border-color: var(--text); }
.btn--solid:hover { background: #909090; border-color: #909090; }
.btn--light { color: var(--text-on-dark); border-color: var(--text-on-dark); }
.btn--light:hover, .btn--light:focus-visible { color: #000000; border-color: #FFFFFF; }
.btn--small { padding: 8px 16px 8px 20px; font-size: 0.66rem; }

/* ---------- 5. Header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--text-on-dark);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); background: rgba(0, 0, 0, 0.97); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-head); font-weight: 800; letter-spacing: 0.12em; }
.brand:hover { color: #fff; }
.brand__mark { color: #fff; }
.brand__text { font-size: 0.95rem; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__list { display: flex; align-items: center; gap: 26px; }
.site-nav__link {
  color: var(--text-on-dark); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em;
  position: relative; padding: 6px 0;
}
.site-nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.site-nav__link:hover, .site-nav__link.is-active { color: #fff; }
.site-nav__link:hover::after, .site-nav__link.is-active::after { transform: scaleX(1); }
.site-nav__cta {
  display: inline-block; background: #fff; color: var(--text);
  font-family: var(--font-head); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 999px; transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.site-nav__cta:hover { background: #C4C4C4; color: #000000; transform: translateY(-1px); }

.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; }
.lang-switch__btn { background: none; border: 0; color: var(--text-on-dark-muted); padding: 4px 2px; border-bottom: 2px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; }
.lang-switch__btn:hover { color: #fff; }
.lang-switch__btn.is-active { color: #fff; border-bottom-color: var(--accent); }
.lang-switch__sep { color: var(--text-on-dark-muted); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0;
  flex-direction: column; justify-content: center; gap: 6px;
}
.nav-toggle__bar { display: block; height: 2px; width: 100%; background: #fff; transition: transform 0.3s var(--ease), opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1fr 1fr;
  padding-top: var(--header-h);
  background: var(--bg);
  overflow: hidden;
}
.hero__content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px 48px 96px max(48px, calc((100vw - var(--container)) / 2 + 24px));
  animation: rise 0.8s var(--ease) both;
}
.hero__greeting { font-size: 1.05rem; color: var(--text-soft); margin-bottom: 8px; letter-spacing: 0.02em; }
.hero__name { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.hero__role { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; color: var(--text-muted); margin: 14px 0 34px; }
.hero__social { margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px 22px; }

.hero__media {
  position: relative;
  background: var(--bg-dark);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  display: flex; align-items: center; justify-content: center;
  animation: fade 1s ease both;
}
.hero__media::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.08), transparent 55%);
}
.hero__photo-wrap {
  position: relative; width: min(58%, 380px); aspect-ratio: 1; margin-left: 12%;
  border-radius: 50%; padding: 8px;
  background: linear-gradient(135deg, #C4C4C4, transparent 60%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  animation: float 7s ease-in-out infinite;
}
.hero__photo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--bg-card-dark); }
.hero__note {
  position: absolute; right: 24px; bottom: 28px;
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-on-dark-muted);
  border-left: 2px solid var(--accent); padding-left: 10px;
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text); border: 2px solid var(--line); background: var(--bg);
  animation: bob 2s ease-in-out infinite; z-index: 2;
}
.hero__scroll:hover { color: #FFFFFF; background: #000000; border-color: #000000; }

/* ---------- 7. Social ---------- */
.social-list { display: flex; align-items: center; gap: 12px; }
.social-btn {
  position: relative; width: 44px; height: 44px; border-radius: 4px;
  display: grid; place-items: center; font-size: 1.05rem;
  color: #000000; background: var(--box);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease;
}
.social-btn:hover { background: #000000; color: #FFFFFF; transform: translateY(-3px); }
.social-list--light .social-btn { background: transparent; border: 1.5px solid var(--text-on-dark-muted); color: var(--text-on-dark); }
.social-list--light .social-btn:hover { background: #FFFFFF; border-color: #FFFFFF; color: #000000; }
.social-btn[data-tooltip]::after {
  content: attr(data-tooltip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -4px);
  background: #000000; color: #FFFFFF; font-size: 0.66rem; letter-spacing: 0.06em; padding: 4px 8px; border-radius: 3px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
}
.social-btn[data-tooltip]:hover::after { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 8. Featured band ---------- */
.featured { background: var(--bg-dark); color: var(--text-on-dark); position: relative; overflow: hidden; }
.featured::before {
  content: ''; position: absolute; right: 12%; top: -40%; width: 420px; height: 180%;
  background: rgba(255, 255, 255, 0.05); transform: skewX(-18deg);
}
.featured__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.featured__title { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; margin-bottom: 18px; }
.featured__title::before { content: ''; display: inline-block; width: 10px; height: 10px; background: #FFFFFF; margin-right: 14px; vertical-align: middle; }
.featured__desc { color: var(--text-on-dark-muted); font-size: 0.92rem; max-width: 60ch; margin-bottom: 26px; }
.featured__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.featured__link { color: var(--text-on-dark); font-size: 0.85rem; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.featured__link:hover { color: var(--accent); }
.featured__badge {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(3.5rem, 9vw, 7rem); letter-spacing: 0.05em;
  color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.35); text-align: right; line-height: 1; user-select: none;
  transform: rotate(-8deg);
}

/* ---------- 9. Sections ---------- */
.section { padding: 96px 0; text-align: center; position: relative; }
.section--tight { padding-top: 40px; }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section--dark::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 18px);
}
.section--dark > .container { position: relative; }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; text-align: left; counter-reset: step; }
.process-step {
  position: relative; padding: 32px 26px 28px; background: var(--bg-elev);
  border: 1px solid var(--line-soft); border-top: 3px solid var(--text);
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}
.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.process-step__num { position: absolute; right: 20px; top: 14px; font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: rgba(0, 0, 0, 0.08); line-height: 1; }
.process-step__icon { font-size: 1.6rem; color: #000000; margin-bottom: 18px; display: block; }
.process-step__title { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; margin-bottom: 12px; }
.process-step__desc { font-size: 0.88rem; color: var(--text-soft); margin: 0; }

.pub-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }
.pub-links .btn { border-left-color: var(--line); border-right-color: var(--line); }

/* Expertise / What I do */
.prose-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; text-align: left; }
.prose-block { background: var(--bg-elev); border: 1px solid var(--line-soft); border-top: 3px solid var(--text); padding: 30px 26px; transition: transform 0.3s var(--ease), box-shadow 0.3s ease; }
.prose-block:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.prose-block__icon { font-size: 1.7rem; color: #000000; margin-bottom: 16px; display: block; }
.prose-block__title { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 12px; }
.prose-block__text { font-size: 0.9rem; color: var(--text-soft); margin: 0; line-height: 1.75; }
@media (max-width: 860px) { .prose-grid { grid-template-columns: 1fr; } }

/* Skills */
.skills-group { margin-bottom: 44px; text-align: left; }
.skills-group:last-child { margin-bottom: 0; }
.skills-group__title { font-size: 0.95rem; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 26px; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 26px 16px; }
.skill { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; transition: transform 0.3s var(--ease); }
.skill:hover { transform: translateY(-6px); }
.skill__icon { font-size: 3rem; line-height: 1; height: 52px; display: grid; place-items: center; }
.skill__icon--fa { color: #000000; font-size: 2.5rem; }
.skill__icon--flag svg { border-radius: 3px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); }
.skill__name { font-family: var(--font-head); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-soft); line-height: 1.5; }

/* Portfolio */
.filter-bar { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 34px; margin-bottom: 44px; border-bottom: 1px solid var(--line-on-dark); }
.filter-btn {
  background: none; border: 0; color: var(--text-on-dark-muted);
  font-family: var(--font-head); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase;
  padding: 12px 6px; position: relative; transition: color 0.2s ease;
}
.filter-btn::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform 0.25s var(--ease); }
.filter-btn:hover { color: #fff; }
.filter-btn.is-active { color: #fff; }
.filter-btn.is-active::after { transform: scaleX(1); }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; text-align: left; }
.portfolio-skeleton { height: 220px; background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.card {
  position: relative; display: flex; flex-direction: column; min-height: 220px;
  background: var(--bg-card-dark); border: 1px solid var(--line-on-dark);
  padding: 26px 24px 22px; overflow: hidden;
  animation: rise 0.5s var(--ease) both;
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}
.card::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.card:hover { transform: translateY(-6px); border-color: #FFFFFF; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); }
.card:hover::before { transform: scaleX(1); }
.card.is-hidden { display: none; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card__type { display: inline-flex; align-items: center; gap: 8px; font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-on-dark-muted); font-family: var(--font-head); font-weight: 600; }
.card__type i { color: var(--accent); font-size: 1rem; }
.card__badges { display: flex; gap: 6px; }
.badge { font-family: var(--font-head); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.badge--featured { background: #FFFFFF; color: #000000; }
.badge--new { background: #C4C4C4; color: #000000; }
.card__title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; letter-spacing: 0.01em; }
.card__desc { font-size: 0.86rem; color: var(--text-on-dark-muted); flex: 1; margin-bottom: 20px; }
.card__link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: #fff; border-bottom: 1px solid var(--accent); padding-bottom: 4px; align-self: flex-start; }
.card__link i { color: var(--accent); transition: transform 0.25s var(--ease); }
.card__link:hover { color: var(--accent); }
.card__link:hover i { transform: translate(3px, -3px); }
.card__link::after { content: ''; position: absolute; inset: 0; } /* whole card clickable */
.portfolio-empty { color: var(--text-on-dark-muted); margin-top: 24px; }
.portfolio-more { margin: 48px 0 0; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--text-on-dark); }

/* Contact */
.contact-form { margin-top: 40px; text-align: left; }
.field { position: relative; margin-bottom: 26px; }
.field__input {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--text);
  background: transparent; border: 0; border-bottom: 2px solid var(--line); border-left: 2px solid var(--line);
  padding: 22px 12px 8px 14px; border-radius: 0; transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field__input--area { resize: vertical; min-height: 140px; border-right: 2px solid var(--line); border-top: 2px solid transparent; }
.field__input:focus { outline: none; border-color: var(--accent); }
.field__input.is-invalid { border-color: #909090; border-style: dashed; }
.field__label {
  position: absolute; left: 14px; top: 16px; pointer-events: none;
  font-family: var(--font-head); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-muted);
  transition: transform 0.2s var(--ease), color 0.2s ease, font-size 0.2s ease;
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label { transform: translateY(-11px); font-size: 0.56rem; color: var(--accent); }
.form-status { min-height: 1.4em; font-size: 0.85rem; color: var(--text-soft); text-align: center; margin: 0 0 12px; }
.form-status.is-error { color: #000000; font-weight: 600; }
.form-status.is-ok { color: var(--accent); }
.contact-form__actions { text-align: center; }

/* ---------- 10. Footer ---------- */
.site-footer { background: var(--bg-darker); color: var(--text-on-dark); text-align: center; }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: 48px; padding-bottom: 36px; }
.footer-top { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-on-dark); font-family: var(--font-head); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; }
.footer-top i { color: var(--accent); transition: transform 0.25s var(--ease); }
.footer-top:hover { color: #fff; }
.footer-top:hover i { transform: translateY(-4px); }
.site-footer__copy { margin: 0; font-size: 0.8rem; color: var(--text-on-dark-muted); }
.site-footer__copy strong { color: #fff; font-weight: 600; }
.site-footer__links { margin: 0; font-size: 0.74rem; color: var(--text-on-dark-muted); display: flex; gap: 10px; }
.site-footer__links a { color: var(--text-on-dark-muted); }
.site-footer__links a:hover { color: #fff; }

/* ---------- Ad slots ---------- */
.ad-slot {
  max-width: var(--container); margin: 24px auto 8px; padding: 0 24px;
  min-height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.ad-slot__label {
  font-family: var(--font-head); font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px;
}
.ad-slot .adsbygoogle { display: block; width: 100%; }

.link-btn {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: var(--text-on-dark-muted); text-decoration: none;
}
.link-btn:hover { color: #FFFFFF; }

/* ---------- 11. Utilities: cookie banner, back to top, reveal ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 950;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: #000000; color: #FFFFFF; font-size: 0.8rem; line-height: 1.5;
  padding: 16px 18px; border-left: 4px solid #FFFFFF; box-shadow: var(--shadow);
  animation: rise 0.5s var(--ease) both;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { flex: 1 1 320px; min-width: 0; }
.cookie-banner__text strong { display: block; font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 4px; }
.cookie-banner a { color: #FFFFFF; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex: 0 0 auto; margin-left: auto; }
.cookie-banner .btn--fill { background: #FFFFFF; color: #000000; }
.cookie-banner .btn--fill:hover, .cookie-banner .btn--fill:focus-visible { background: #C4C4C4; color: #000000; border-color: #C4C4C4; }
@media (min-width: 760px) { .cookie-banner { left: auto; max-width: 560px; } }
@media (max-width: 520px) { .cookie-banner__actions { width: 100%; } .cookie-banner__actions .btn { flex: 1; } }

.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 940;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #000000; color: #FFFFFF; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0.3s;
  box-shadow: 0 8px 20px var(--accent-glow);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: #909090; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.no-js .reveal, .no-observer .reveal { opacity: 1; transform: none; }

/* ---------- 12. Legal / simple pages ---------- */
.page { padding: calc(var(--header-h) + 48px) 0 80px; }
.page .container { max-width: 800px; }
.page__back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 28px; color: var(--text); }
.page__back:hover { color: var(--accent); }
.page__panel { background: var(--bg-elev); border: 1px solid var(--line-soft); border-top: 3px solid var(--text); padding: 44px 40px; }
.page__title { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.page__updated { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 30px; }
.page__panel h2 { font-size: 0.9rem; letter-spacing: 0.2em; text-transform: uppercase; margin: 32px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.page__panel h2:first-of-type { margin-top: 0; }
.page__panel p, .page__panel li { font-size: 0.9rem; color: var(--text-soft); }
.page__panel ul { list-style: square; padding-left: 20px; margin-bottom: 14px; }
.page__panel ul li::marker { color: var(--accent); }
.page__panel li { margin-bottom: 6px; }

/* 404 */
.error-page { min-height: 100vh; display: grid; place-items: center; padding: calc(var(--header-h) + 40px) 24px 60px; text-align: center; }
.error-code { font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 18vw, 10rem); line-height: 1; color: var(--text); letter-spacing: 0.04em; }
.error-code span { color: var(--accent); }
.error-title { font-size: 1.1rem; letter-spacing: 0.3em; text-transform: uppercase; margin: 12px 0 18px; }
.error-desc { color: var(--text-soft); max-width: 46ch; margin: 0 auto 10px; }
.error-path { display: inline-block; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.78rem; background: #FFFFFF; border: 1px solid var(--line-soft); padding: 6px 12px; margin-bottom: 30px; word-break: break-all; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 22px; }
.error-countdown { margin-top: 22px; font-size: 0.78rem; color: var(--text-muted); }

/* ---------- 13. Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { gap: 20px; }
  .hero__content { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  /* Full-screen menu overlay with the CTA as a white bar at the bottom (matches the mock) */
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    z-index: 890;
    display: flex; flex-direction: column; align-items: center;
    background: #000000;
    transform: translateX(100%); transition: transform 0.35s var(--ease);
  }
  .site-nav.is-open { transform: none; }
  .site-nav__list { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 38px; }
  .site-nav__link { font-size: 1.2rem; letter-spacing: 0.18em; text-transform: uppercase; font-family: var(--font-head); font-weight: 600; }
  .site-nav__list li:last-child { position: absolute; left: 0; right: 0; bottom: 0; }
  .site-nav__cta { display: block; width: 100%; border-radius: 0; background: #FFFFFF; color: #000000; padding: 24px; font-size: 0.9rem; letter-spacing: 0.22em; }
  .site-nav__cta:hover { background: #C4C4C4; color: #000000; transform: none; }
  .lang-switch { position: absolute; left: 0; right: 0; bottom: 84px; justify-content: center; font-size: 0.95rem; }

  .nav-open .cookie-banner { display: none; }

  /* Hero: full-bleed photo with a diagonal translucent band and vertical social icons */
  .hero {
    display: block; position: relative;
    min-height: 100vh; min-height: 100svh;
    grid-template-columns: none; grid-template-rows: none;
    background: #000000; color: var(--text-on-dark);
    padding-top: var(--header-h); overflow: hidden;
  }
  .hero__media {
    position: absolute; left: 0; right: 0; top: var(--header-h); bottom: 0;
    order: 0; display: block; clip-path: none; min-height: 0; padding: 0; background: #000000;
  }
  .hero__media::before { display: none; }
  .hero__photo-wrap {
    position: absolute; right: 0; top: 0; bottom: 0; width: 94%;
    margin: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; animation: none;
  }
  .hero__photo { width: 100%; height: 100%; border-radius: 0; object-fit: cover; object-position: top center; background: #000000; }
  .hero__content {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    display: block; text-align: left; padding: 150px 22px 26px;
    background: linear-gradient(202deg, transparent 40%, rgba(20, 20, 20, 0.55) 52%, rgba(12, 12, 12, 0.92) 78%);
  }
  .hero__greeting { color: #eaeaea; font-size: 1rem; margin-bottom: 2px; }
  .hero__name { color: #FFFFFF; font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero__role { color: #cfcfcf; font-size: 0.82rem; margin: 6px 0 0; }
  .hero__social {
    position: absolute; right: 14px; top: -62px; z-index: 4;
    flex-direction: column; gap: 12px;
  }
  .hero__social .social-btn { width: 38px; height: 38px; background: transparent; color: #FFFFFF; box-shadow: none; border-radius: 50%; }
  .hero__social .social-btn:hover { background: rgba(255, 255, 255, 0.15); color: #FFFFFF; transform: none; }
  .hero__social .social-btn[data-tooltip]::after { display: none; }
  .hero__actions { display: none; }
  .hero__scroll { display: none; }
  .hero__note { display: none; }

  .featured__inner { grid-template-columns: 1fr; text-align: center; }
  .featured__desc { margin-left: auto; margin-right: auto; }
  .featured__actions { justify-content: center; }
  .featured__badge { text-align: center; transform: none; order: -1; -webkit-text-stroke-color: rgba(255, 255, 255, 0.16); }
  .featured::before { display: none; }

  .process-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .section-title { letter-spacing: 0.3em; padding: 12px 24px 12px 30px; margin-bottom: 34px; }
  .skills-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 22px 8px; }
  .skill__icon { font-size: 2.6rem; }
}

@media (max-width: 600px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .filter-bar { gap: 4px 18px; }
  .filter-btn { letter-spacing: 0.2em; }
  .page__panel { padding: 28px 20px; }
  .hero__name { font-size: 2rem; }
  .btn { letter-spacing: 0.24em; padding-left: 22px; padding-right: 18px; }
}
