/* ============ TYPE TOKENS ============ */
:root {
  /* headings: BDO Grotesk (open-source, SIL OFL) */
  --font-heading: 'BDO Grotesk', 'Inter', -apple-system, sans-serif;
  /* body: Articulat CF is a paid commercial font (Connary Fagen) — using General Sans
     (free, Fontshare) as a close, legally-clear stand-in until a licensed copy is provided */
  --font-body: 'General Sans', 'Inter', -apple-system, sans-serif;
  /* serif accent used for a single highlighted word inside titles */
  --font-serif: 'Lora', 'Georgia', serif;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
ul { list-style: none; }

/* ============ THEME TOKENS ============ */
:root[data-theme="dark"] {
  --bg: #0a0a0d;
  --bg-alt: #111116;
  --surface: #16161c;
  --surface-2: #1c1c24;
  --border: rgba(255,255,255,0.08);
  --text: #f4f3f0;
  --text-muted: #a8a7b3;
  --text-faint: #6f6e79;
  --accent: #36A9E1;
  --accent-2: #3EA0AB;
  --on-accent: #071019;
  --accent-gradient: linear-gradient(135deg, #4fc3ec 0%, #36A9E1 45%, #3EA0AB 100%);
  --accent-glow: rgba(54,169,225,0.35);
  --shadow: 0 20px 60px rgba(0,0,0,0.45);
}

:root[data-theme="light"] {
  --bg: #faf9f6;
  --bg-alt: #f1efe9;
  --surface: #ffffff;
  --surface-2: #f4f2ec;
  --border: rgba(20,18,10,0.08);
  --text: #17161a;
  --text-muted: #55545e;
  --text-faint: #8b8a93;
  --accent: #1C7EA3;
  --accent-2: #2B7D84;
  --on-accent: #f5fbfd;
  --accent-gradient: linear-gradient(135deg, #4fc3ec 0%, #1C7EA3 55%, #2B7D84 100%);
  --accent-glow: rgba(28,126,163,0.22);
  --shadow: 0 20px 60px rgba(20,18,10,0.08);
}

/* ============ BASE ============ */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.02em; }

/* single serif/italic accent word inside titles */
.title-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
}

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 100px;
  font-weight: 600; font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-gradient); color: var(--on-accent);
  box-shadow: 0 6px 22px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px var(--accent-glow); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-faint); transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { padding: 10px 20px; font-size: 0.85rem; }

/* ---- interactive hover effect (dot expand + text swap) ---- */
.btn-hover { position: relative; overflow: hidden; }
.btn-hover:hover { transform: none; }
.btn-ghost.btn-hover:hover,
.btn-outline.btn-hover:hover { box-shadow: 0 12px 30px var(--accent-glow); }

.btn-hover .btn-label {
  display: inline-block;
  transform: translateX(2px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.btn-hover:hover .btn-label { transform: translateX(28px); opacity: 0; }

.btn-hover .btn-reveal {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; transform: translateX(28px);
  transition: transform 0.3s ease, opacity 0.3s ease;
  font-weight: 600;
}
.btn-hover:hover .btn-reveal { opacity: 1; transform: translateX(0); }
.btn-hover .btn-reveal svg { width: 17px; height: 17px; }

.btn-hover .btn-dot {
  position: absolute; left: 20%; top: 40%;
  width: 8px; height: 8px; border-radius: 8px;
  transform: scale(1); transition: all 0.3s ease; z-index: 1;
}
.btn-hover:hover .btn-dot {
  left: 0; top: 0; width: 100%; height: 100%;
  border-radius: 100px; transform: scale(1.02);
}

.btn-primary.btn-hover .btn-dot { background: var(--bg); }
.btn-primary.btn-hover .btn-reveal { color: var(--text); }

.btn-ghost.btn-hover .btn-dot,
.btn-outline.btn-hover .btn-dot { background: var(--accent-gradient); }
.btn-ghost.btn-hover .btn-reveal,
.btn-outline.btn-hover .btn-reveal { color: var(--on-accent); }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; }
.logo .dot { color: var(--accent); text-shadow: 0 0 12px var(--accent-glow); }

/* logo mark keeps a fixed dark chip so the white artwork stays legible in both themes, with a soft accent glow ring */
.logo-mark {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: #0a0f14; padding: 5px; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 4px 16px var(--accent-glow);
  transition: box-shadow 0.3s ease;
}
.logo:hover .logo-mark { box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 6px 22px var(--accent-glow); }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.main-nav { display: flex; gap: 32px; }
.main-nav a { font-size: 0.92rem; color: var(--text-muted); transition: color 0.2s; }
.main-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: flex; align-items: center; gap: 2px;
  border: 1px solid var(--border); border-radius: 100px; padding: 4px;
}
.lang-btn {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  opacity: 0.4; filter: grayscale(65%); transform: scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}
.lang-btn:hover { opacity: 0.8; filter: grayscale(15%); }
.lang-btn.is-active {
  opacity: 1; filter: grayscale(0%); transform: scale(1);
  box-shadow: 0 0 0 1px var(--border), 0 4px 14px var(--accent-glow);
}
.lang-flag { font-size: 0.95rem; line-height: 1; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative; color: var(--text);
}
.theme-toggle svg { width: 18px; height: 18px; position: absolute; transition: opacity 0.3s, transform 0.3s; }
.icon-moon { opacity: 0; transform: scale(0.6) rotate(-30deg); }
[data-theme="dark"] .icon-sun { opacity: 0; transform: scale(0.6) rotate(30deg); }
[data-theme="dark"] .icon-moon { opacity: 1; transform: scale(1) rotate(0); }
[data-theme="light"] .icon-sun { opacity: 1; transform: scale(1) rotate(0); }

.menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; margin: -10px;
  flex-shrink: 0;
}
.menu-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ============ HERO ============ */
.hero { position: relative; padding: 90px 0 60px; text-align: center; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; }

/* -- subtle ambient background: floating gradient light + drifting particles -- */
.hero-particles {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0.7;
}
.hero-glow {
  position: absolute; z-index: 0; border-radius: 50%;
  filter: blur(90px); pointer-events: none; opacity: 0.3;
  will-change: transform;
}
.hero-glow-1 {
  width: 420px; height: 420px; top: -140px; left: 6%;
  background: var(--accent-gradient);
  animation: heroGlowFloat1 20s ease-in-out infinite;
}
.hero-glow-2 {
  width: 360px; height: 360px; top: 10%; right: 4%;
  background: var(--accent-2);
  animation: heroGlowFloat2 24s ease-in-out infinite;
  opacity: 0.22;
}
.hero-glow-3 {
  width: 320px; height: 320px; bottom: -140px; left: 42%;
  background: var(--accent);
  animation: heroGlowFloat3 28s ease-in-out infinite;
  opacity: 0.18;
}
[data-theme="light"] .hero-glow { opacity: 0.16; }
[data-theme="light"] .hero-glow-2 { opacity: 0.12; }
[data-theme="light"] .hero-glow-3 { opacity: 0.1; }
[data-theme="light"] .hero-particles { opacity: 0.45; }

@keyframes heroGlowFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 40px) scale(1.08); }
}
@keyframes heroGlowFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 50px) scale(1.05); }
}
@keyframes heroGlowFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -35px) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-glow { animation: none; }
  .hero-particles { display: none; }
}

.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text-muted);
  border: 1px solid var(--border); padding: 8px 16px; border-radius: 100px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: statusGlowPulse 3.2s ease-in-out infinite;
}
.status-badge::before {
  content: '';
  position: absolute;
  top: 0; left: -70%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, var(--accent-glow), transparent);
  transform: skewX(-18deg);
  animation: statusSweep 3.2s ease-in-out infinite;
  z-index: 0;
}
.status-badge > * { position: relative; z-index: 1; }

.status-dot {
  position: relative;
  width: 8px; height: 8px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74,222,128,0.15);
}
.status-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid rgba(74,222,128,0.55);
  animation: statusPing 2.2s cubic-bezier(0,0,0.2,1) infinite;
}

@keyframes statusSweep {
  0% { left: -70%; }
  55%, 100% { left: 130%; }
}
@keyframes statusGlowPulse {
  0%, 100% { box-shadow: 0 0 0 0 transparent; border-color: var(--border); }
  50% { box-shadow: 0 0 16px 1px var(--accent-glow); border-color: var(--accent); }
}
@keyframes statusPing {
  0% { transform: scale(0.8); opacity: 0.9; }
  75%, 100% { transform: scale(2.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .status-badge, .status-badge::before, .status-dot::after { animation: none; }
}

/* -- floating badges scattered around the headline, with cursor parallax + hover -- */
.hero-headline-wrap { position: relative; max-width: 960px; margin: 0 auto; }

.hero-float {
  position: absolute; z-index: 3;
  transform: translate(var(--px, 0px), var(--py, 0px)) rotate(var(--rot, 0deg));
  pointer-events: none;
}
.hero-float-1 { top: -2%; left: 2%; }
.hero-float-2 { top: 6%; right: 0%; }
.hero-float-3 { bottom: 20%; left: -1%; }
.hero-float-4 { bottom: 2%; right: 4%; }

.hero-float-pill {
  display: inline-flex; align-items: center; pointer-events: auto;
  padding: 9px 18px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  white-space: nowrap; cursor: default; user-select: none;
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
  animation: heroFloatBob 6s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.hero-float-1 .hero-float-pill { animation-delay: 0s; }
.hero-float-2 .hero-float-pill { animation-delay: 1.3s; }
.hero-float-3 .hero-float-pill { animation-delay: 0.7s; }
.hero-float-4 .hero-float-pill { animation-delay: 2s; }

.hero-float-pill:hover {
  transform: scale(1.12) rotate(calc(-1 * var(--rot, 0deg))) translateY(-4px);
  border-color: var(--accent); color: var(--text);
  background: var(--surface); box-shadow: 0 16px 34px var(--accent-glow);
  animation-play-state: paused;
}

@keyframes heroFloatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-float-pill { animation: none; }
}
@media (max-width: 720px) {
  .hero-float { display: none; }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.06;
  max-width: 900px;
  margin: 0 auto 26px;
}
.hero-title-static { display: block; }

.hero-rotator {
  position: relative;
  display: block;
  width: 100%;
  height: 1.2em;
  overflow: hidden;
  margin-top: 0.08em;
}
.hero-rotator-word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  transform: translateY(45px);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.hero-rotator-word.is-active { transform: translateY(0); opacity: 1; }
.hero-rotator-word.is-exit { transform: translateY(-45px); opacity: 0; }

.hero-sub {
  font-size: 1.15rem; color: var(--text-muted); text-align: center;
  max-width: 620px; margin: 0 auto 40px;
}
.hero-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 70px; }

.scroll-cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.78rem; color: var(--text-faint);
}
.scroll-cue svg { width: 16px; height: 16px; animation: bounce 2s infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0);} 50% { transform: translateY(6px);} }

/* ============ MARQUEE / PROOF ============ */
.proof { padding: 0; }
.proof-strip { overflow: hidden; white-space: nowrap; padding: 16px 0; }
.proof-strip-track { display: inline-flex; align-items: center; gap: 30px; width: max-content; animation: scroll 26s linear infinite; }
.proof-strip-track span:not(.proof-strip-dot) {
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  font-family: var(--font-heading); white-space: nowrap;
}
.proof-strip-dot { font-size: 0.7rem; }

.proof-strip-top { background: #05070a; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.proof-strip-top .proof-strip-track span:not(.proof-strip-dot) { color: #f4f4f2; }
.proof-strip-top .proof-strip-dot { color: var(--accent); opacity: 0.85; }

@media (prefers-reduced-motion: reduce) { .proof-strip-track { animation: none; } }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section { padding: 110px 0; }
.eyebrow { color: var(--accent); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.7rem); max-width: 680px; margin-bottom: 18px; }
.section-sub { color: var(--text-muted); max-width: 560px; font-size: 1.02rem; margin-bottom: 50px; }
.center-cta { display: flex; justify-content: center; margin-top: 50px; }

/* fade-in on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============ PORTFOLIO ============ */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.portfolio-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.portfolio-thumb { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; background: var(--surface-2); cursor: pointer; }

/* hover scrim + expand icon: signals the whole image is clickable, not just the text link below */
.portfolio-thumb-hint {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(5,7,10,0.05) 0%, rgba(5,7,10,0.5) 100%);
  opacity: 0; transition: opacity 0.3s ease;
}
.portfolio-card:hover .portfolio-thumb-hint,
.portfolio-thumb:focus-visible .portfolio-thumb-hint { opacity: 1; }
.portfolio-thumb-hint-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.95); color: #0b0d10;
  display: flex; align-items: center; justify-content: center;
  transform: scale(0.8); transition: transform 0.3s ease;
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}
.portfolio-card:hover .portfolio-thumb-hint-icon,
.portfolio-thumb:focus-visible .portfolio-thumb-hint-icon { transform: scale(1); }
.portfolio-thumb-hint-icon svg { width: 20px; height: 20px; }
.portfolio-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* full-page project screenshot: pans from top to bottom to reveal the whole page,
   on hover (desktop) or automatically (touch devices) — only needs one tall image */
.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: object-position 4.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-card:hover .portfolio-thumb img { object-position: bottom; }

@media (hover: none) {
  .portfolio-thumb img {
    animation: portfolioAutoPan 10s ease-in-out infinite;
  }
}
@keyframes portfolioAutoPan {
  0%, 12% { object-position: top; }
  50%, 62% { object-position: bottom; }
  100% { object-position: top; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-thumb img { transition: none; animation: none; object-position: top; }
}
.portfolio-meta { padding: 24px; }
.portfolio-date { font-size: 0.78rem; color: var(--text-faint); }
.portfolio-meta h3 { font-size: 1.25rem; margin: 8px 0 10px; }
.portfolio-meta p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 16px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tag { font-size: 0.75rem; border: 1px solid var(--border); padding: 5px 11px; border-radius: 100px; color: var(--text-muted); }

.btn-project-view {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; font-size: 0.85rem; font-weight: 600; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 100px;
  padding: 10px 16px 10px 18px; cursor: pointer; font-family: var(--font-body);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-project-view::after {
  content: '→'; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-gradient); color: var(--on-accent); font-size: 0.8rem;
  transition: transform 0.25s ease;
}
.btn-project-view:hover {
  color: var(--text); background: var(--surface); border-color: var(--accent);
  transform: translateY(-2px); box-shadow: 0 10px 24px var(--accent-glow);
}
.btn-project-view:hover::after { transform: translateX(3px); }

/* ============ PROJECT MODAL ============ */
.project-modal {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.project-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.project-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(5,5,8,0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.project-modal-panel {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; max-width: 720px; width: 100%; max-height: 85vh;
  overflow: hidden; box-shadow: var(--shadow);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-modal.is-open .project-modal-panel { transform: translateY(0) scale(1); }
.project-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  font-size: 1.3rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: color 0.2s ease, transform 0.2s ease;
}
.project-modal-close:hover { color: var(--accent); transform: scale(1.06); }
.project-modal-scroll { max-height: 85vh; overflow-y: auto; }
.project-modal-img { width: 100%; display: block; }
.project-modal-info { padding: 26px 28px 30px; }
.project-modal-date { font-size: 0.78rem; color: var(--text-faint); }
.project-modal-title { font-family: var(--font-heading); font-size: 1.4rem; margin: 8px 0 12px; }
.project-modal-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 16px; }
.project-modal-tags { margin-bottom: 0; }

@media (max-width: 640px) {
  .project-modal { padding: 0; }
  .project-modal-panel { max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .project-modal-scroll { max-height: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .project-modal, .project-modal-panel { transition: none; }
}

/* ============ BIO / SOBRE ============ */
.bio-inner {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: center;
}

/* -- photo card -- */
.bio-photo-wrap { position: relative; border-radius: 24px; }
.bio-photo {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: 24px; display: block;
  filter: grayscale(1) contrast(1.06);
  box-shadow: var(--shadow);
}

.bio-corner { position: absolute; width: 26px; height: 26px; z-index: 3; pointer-events: none; }
.bio-corner-tl { top: 20px; left: 20px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.bio-corner-tr { top: 20px; right: 20px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.bio-corner-bl { bottom: 20px; left: 20px; border-bottom: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.bio-corner-br { bottom: 20px; right: 20px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }

.bio-badge {
  position: absolute; z-index: 4;
  display: inline-flex; align-items: baseline; gap: 6px;
  background: var(--surface); color: var(--text);
  padding: 11px 18px; border-radius: 100px;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem;
  box-shadow: 0 14px 30px rgba(0,0,0,0.28);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.bio-badge .dot { color: var(--accent); }
.bio-badge small {
  font-family: var(--font-body); font-weight: 700; font-size: 0.6rem;
  letter-spacing: 0.06em; color: var(--text-faint); text-transform: uppercase;
}
.bio-badge-top { top: 34px; right: -16px; }
.bio-badge-brand { bottom: 74px; right: -14px; }

.bio-tag {
  position: absolute; left: 20px; bottom: 20px; right: 20px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  background: rgba(8,8,10,0.72); backdrop-filter: blur(6px);
  color: #fff; padding: 9px 15px; border-radius: 100px;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.14);
}
.bio-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-gradient); box-shadow: 0 0 8px var(--accent-glow); flex-shrink: 0; }

/* -- content -- */
.bio-content { display: flex; flex-direction: column; gap: 22px; }
.bio-name {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(2.1rem, 4vw, 3.2rem); letter-spacing: -0.02em; line-height: 1;
}
.bio-content p { color: var(--text-muted); font-size: 1.02rem; line-height: 1.7; max-width: 620px; }
.bio-content p strong { color: var(--text); font-weight: 700; }
.bio-content .hl { color: var(--accent); font-weight: 600; }

.bio-quote {
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 22px;
  font-family: var(--font-heading); font-weight: 500; font-size: 1.3rem;
  line-height: 1.45; color: var(--text); max-width: 600px;
}
.bio-quote .hl { color: var(--accent); }

.bio-output {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  padding: 8px 20px 8px 8px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text); transition: border-color 0.25s ease, transform 0.25s ease;
}
.bio-output:hover { border-color: var(--accent); transform: translateY(-2px); }
.bio-output-icon {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: #0a0a0d; color: #fff; font-size: 0.9rem; flex-shrink: 0;
}

@media (max-width: 960px) {
  .bio-inner { grid-template-columns: 1fr; gap: 50px; }
  .bio-badge-top, .bio-badge-brand { right: 14px; left: auto; }
}
@media (max-width: 520px) {
  .bio-badge { padding: 8px 13px; font-size: 0.9rem; }
  .bio-badge-top { top: 16px; right: 12px; }
  .bio-badge-brand { bottom: 62px; right: 12px; }
}


/* ============ PROCESS — VERTICAL SCROLL TIMELINE ============ */
.process-timeline { display: flex; flex-direction: column; gap: 64px; }

/* decorative badge showcase, centered above the steps */
.process-showcase { display: flex; justify-content: center; padding: 6px 0 4px; }

.process-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 44px;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}
.process-step-item { position: relative; padding-left: 78px; }
.process-step-item:not(:last-child)::before {
  content: ""; position: absolute; left: 27px; top: 58px; bottom: -44px; width: 1px;
  background: linear-gradient(var(--border), transparent);
}
.process-step-marker {
  position: absolute; top: 0; left: 0; width: 54px; height: 54px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; color: var(--text-faint);
  transition: background 0.5s ease, border-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
  z-index: 2;
}
.process-step-item.is-visible .process-step-marker {
  background: var(--accent-gradient); border-color: transparent; color: var(--on-accent);
  box-shadow: 0 0 22px var(--accent-glow);
}

.process-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 760px; margin: 0 auto; width: 100%; }

.bento-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 26px;
  padding: 32px; position: relative; display: flex; flex-direction: column;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.bento-card::before {
  content: ""; position: absolute; top: -60%; right: -30%; width: 60%; height: 140%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.bento-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.bento-kickoff { justify-content: space-between; min-height: 260px; }

.bento-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px; margin-bottom: 18px; flex-shrink: 0;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.bento-icon svg { width: 20px; height: 20px; }

.bento-card .process-step { font-size: 0.72rem; color: var(--text-faint); letter-spacing: 0.04em; text-transform: uppercase; }
.bento-card h3 { font-size: 1.3rem; margin: 10px 0 12px; }
.bento-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }
.bento-kickoff p { margin-bottom: 18px; }

.bento-stats { align-items: center; text-align: center; justify-content: center; }
.bento-stat-num {
  font-family: var(--font-heading); font-weight: 600; font-size: 2.6rem; line-height: 1;
  background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bento-stat-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 6px; margin-bottom: 18px; }
.bento-avatars { display: flex; align-items: center; justify-content: center; }
.bento-avatar {
  width: 34px; height: 34px; border-radius: 50%; margin-left: -10px;
  border: 2px solid var(--surface); object-fit: cover; background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: var(--on-accent);
}
.bento-avatar:first-child { margin-left: 0; }
.bento-avatar-more { background: var(--surface-2); color: var(--accent); }

.eyebrow-small { font-size: 0.68rem; margin-bottom: 16px; }
.bento-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bento-tags .tag { font-size: 0.72rem; }

.bento-cta {
  flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  background: var(--surface-2);
}
.bento-cta h3 { margin: 0 0 8px; }
.bento-cta p { margin: 0; }

/* -- central rotating badge, showcased above the timeline -- */
.process-badge {
  position: relative;
  width: 210px; height: 210px;
  perspective: 640px;
}
.process-badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: badgeSpin 26s linear infinite; }
.process-badge-text {
  font-family: var(--font-body); font-weight: 600; font-size: 9.5px;
  letter-spacing: 2.6px; fill: var(--text-faint); text-transform: uppercase;
}
.process-orbit { position: absolute; inset: 0; border-radius: 50%; }
.process-orbit-1 { animation: badgeSpin 13s linear infinite; }
.process-orbit-2 { animation: badgeSpin 18s linear infinite reverse; }
.process-orbit-3 { animation: badgeSpin 24s linear infinite; }
.process-orbit-dot {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-gradient); box-shadow: 0 0 10px var(--accent-glow);
}
.process-orbit-1 .process-orbit-dot { top: -2px; left: 50%; margin-left: -3.5px; }
.process-orbit-2 .process-orbit-dot { bottom: 20px; left: 10%; width: 6px; height: 6px; }
.process-orbit-3 .process-orbit-dot { top: 46%; right: -3px; width: 5px; height: 5px; opacity: 0.75; }

.process-badge-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 132px; height: 132px; border-radius: 50%;
  background: #05070a; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 22px 50px var(--accent-glow), inset 0 0 30px rgba(54,169,225,0.1);
  pointer-events: auto;
}
.process-badge-core img { width: 58%; height: 58%; object-fit: contain; filter: drop-shadow(0 0 16px var(--accent-glow)); }

/* floating 3D glass tool icons hovering around the badge */
.process-tool {
  position: absolute; width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  --glass-tint: var(--tool-tint, #ffffff);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0) 45%),
    linear-gradient(135deg, color-mix(in srgb, var(--glass-tint) 38%, rgba(255,255,255,0.08)), color-mix(in srgb, var(--glass-tint) 14%, rgba(255,255,255,0.02)));
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid color-mix(in srgb, var(--glass-tint) 45%, rgba(255,255,255,0.3));
  box-shadow:
    0 14px 26px -8px color-mix(in srgb, var(--glass-tint) 55%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -8px 12px rgba(0,0,0,0.18);
  transform-style: preserve-3d;
  animation: toolFloat var(--float-dur, 6s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  z-index: 3;
}
.process-tool svg { width: 54%; height: 54%; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35)); }
.tool-figma svg { width: 42%; height: auto; }
.tool-figma { top: -8px; left: -16px; }
.tool-claude { top: 8px; right: -24px; }
.tool-chatgpt { bottom: 4px; left: -26px; }
.tool-photoshop { bottom: -12px; right: -10px; }

@keyframes toolFloat {
  0%, 100% { transform: translateY(0) rotateX(10deg) rotateY(-12deg); }
  50% { transform: translateY(-12px) rotateX(-8deg) rotateY(12deg); }
}

@keyframes badgeSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .process-badge-ring, .process-orbit { animation: none; }
  .process-tool { animation: none; }
}

@media (max-width: 720px) {
  .process-timeline { gap: 48px; }
  .process-badge { width: 170px; height: 170px; }
  .process-badge-core { width: 108px; height: 108px; }
  .process-step-item { padding-left: 64px; }
  .process-step-marker { width: 46px; height: 46px; }
  .process-step-item:not(:last-child)::before { left: 22px; top: 50px; }
  .process-extra { grid-template-columns: 1fr; }
  .bento-cta { flex-direction: column; align-items: flex-start; }
}

/* ============ OFFER GRID ============ */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.offer-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 30px; transition: transform 0.3s, border-color 0.3s; }
.offer-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.offer-index { color: var(--text-faint); font-size: 0.8rem; }
.offer-card h3 { font-size: 1.2rem; margin: 12px 0 10px; }
.offer-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }

/* ============ TESTIMONIALS (CAROUSEL) ============ */
.testimonial-carousel { position: relative; }
.testimonial-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  margin: 0 -2px;
  scrollbar-width: none;
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-card {
  scroll-snap-align: start;
  flex: 0 0 calc((100% - 48px) / 3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
}
.testimonial-client { font-size: 0.78rem; color: var(--accent); margin-bottom: 14px; display: block; }
.testimonial-card p { color: var(--text-muted); font-size: 0.95rem; flex: 1; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.78rem; color: var(--text-faint); }

.testimonial-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.testimonial-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.testimonial-arrow:hover { background: var(--surface-2); border-color: var(--accent); transform: translateY(-2px); }
.testimonial-dots { display: flex; align-items: center; gap: 8px; }
.testimonial-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: var(--border); cursor: pointer; transition: background 0.2s, transform 0.2s, width 0.2s; }
.testimonial-dot.is-active { background: var(--accent); width: 22px; border-radius: 4px; }

/* ============ FAQ ============ */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; text-align: left; font-size: 1.02rem; font-weight: 600;
}
.faq-icon { font-size: 1.4rem; color: var(--accent); transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer p { color: var(--text-muted); padding-bottom: 24px; font-size: 0.95rem; max-width: 620px; }

/* ============ FOOTER ============ */
.site-footer { border-top: 1px solid var(--border); padding: 70px 0 30px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 14px; max-width: 240px; }
.footer-title { display: block; font-size: 0.78rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--text-muted);
  margin-bottom: 0; transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 30px; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-faint); }
.footer-bottom div { display: flex; gap: 20px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .bio-inner { grid-template-columns: 1fr; }
  .portfolio-grid, .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-card { flex: 0 0 calc((100% - 24px) / 2); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .section { padding: 88px 0; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .portfolio-grid, .offer-grid, .footer-inner { grid-template-columns: 1fr; }
  .testimonial-card { flex: 0 0 100%; }
  .section { padding: 70px 0; }
  .btn-small { display: none; }
  .hero { padding: 70px 0 50px; }

  .main-nav.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 10px 24px 20px;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .main-nav.open a { padding: 14px 0; border-bottom: 1px solid var(--border); }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .header-actions { gap: 8px; }
  .logo { font-size: 1.2rem; gap: 8px; }
  .logo-mark { width: 30px; height: 30px; }
  .lang-toggle { padding: 3px; }
  .lang-btn { width: 26px; height: 26px; }
  .theme-toggle { width: 36px; height: 36px; }
  .hero { padding: 60px 0 40px; }
  .section { padding: 56px 0; }
  .section-sub { margin-bottom: 36px; }

  .btn { padding: 12px 20px; font-size: 0.88rem; }
  .bento-card { padding: 24px; }
  .portfolio-meta { padding: 20px; }
  .offer-card, .testimonial-card { padding: 22px; }
  .project-modal-info { padding: 20px 20px 24px; }
}

/* safety net: on very narrow phones let long button labels wrap instead of clipping */
@media (max-width: 380px) {
  .btn { white-space: normal; text-align: center; }
}

.hero-sub-break { display: inline; }
@media (max-width: 600px) {
  .hero-sub-break { display: none; }
}
