:root {
  --ink: #0f172a;
  --muted: #475569;
  --soft: #64748b;
  --ivory: #f8fafc;
  --paper: #ffffff;
  --white: #ffffff;
  --forest: #0284c7;
  --forest-deep: #0f172a;
  --gold: #d97706;
  --gold-light: #fef3c7;
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --line: rgba(226, 232, 240, 0.8);
  --line-strong: rgba(148, 163, 184, 0.3);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1180px;
  --narrow: 780px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  color: var(--ink);
  background: #f8fafc;
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; transition: color 0.2s ease; }
img { display: block; max-width: 100%; height: auto; }
button, select { font: inherit; }
h1, h2, h3 { margin: 0; font-family: Manrope, system-ui, sans-serif; font-weight: 800; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.8rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.wrap-narrow { width: min(calc(100% - 32px), var(--narrow)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 16px; border-radius: 999px; background: var(--forest-deep); color: #fff; transform: translateY(-160%); transition: transform 0.2s; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* HEADER & NAVBAR */
.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand small { color: var(--accent); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.brand strong { font-size: 0.95rem; font-weight: 800; color: var(--ink); }
.desktop-nav { display: flex; align-items: center; gap: 20px; }
.desktop-nav a, .mobile-nav a { color: var(--muted); font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: color 0.15s ease; }
.desktop-nav a:hover, .mobile-nav a:hover { color: var(--accent); }
.language-select { min-height: 38px; padding: 0 30px 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); background: var(--white); font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.menu-button { display: none; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--white); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.mobile-nav { display: none; padding-block: 12px 20px; border-top: 1px solid var(--line); background: #ffffff; }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.95rem; }
.mobile-nav a:active, .mobile-nav a:hover { background: var(--accent-light); color: var(--accent); }

/* HERO SECTION */
.hero { padding: clamp(40px, 8vw, 80px) 0 clamp(40px, 6vw, 64px); background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr); align-items: center; gap: clamp(32px, 5vw, 64px); }
.eyebrow, .kicker { color: var(--accent); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.hero h1 { margin-top: 12px; color: var(--ink); }
.hero-lead { margin-top: 18px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.18rem); font-weight: 450; max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-socials { display: flex; gap: 10px; margin-top: 24px; align-items: center; }
.hero-socials a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; background: #ffffff; color: var(--muted); font-size: 1rem; text-decoration: none; transition: all 0.2s ease; box-shadow: var(--shadow-sm); }
.hero-socials a:hover { transform: translateY(-2px); background: var(--accent); color: #ffffff; border-color: var(--accent); }

/* FAB BUTTONS */
.fab-actions { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.btn-fab { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border: 0; border-radius: 50%; color: #fff; font-size: 1.1rem; text-decoration: none; cursor: pointer; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2); transition: all 0.25s ease; }
.btn-fab:hover { transform: scale(1.08); }
.btn-contact-fab { background: var(--accent); }
.btn-contact-fab:hover { background: #1d4ed8; }
.fab-socials { display: flex; flex-direction: column; gap: 9px; }
.fab-social-link { width: 42px; height: 42px; font-size: 0.95rem; opacity: 0; pointer-events: none; transform: translateY(12px) scale(0.8); }
.fab-actions.is-open .fab-social-link { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.fab-social-link:nth-child(1) { transition-delay: 40ms; background: #0a66c2; }
.fab-social-link:nth-child(2) { transition-delay: 80ms; background: #1877f2; }
.fab-social-link:nth-child(3) { transition-delay: 120ms; background: #0f172a; }
.fab-social-link:nth-child(4) { transition-delay: 160ms; background: #0068ff; font-weight: 800; }
.fab-actions.is-open .btn-contact-fab { transform: rotate(45deg); background: #64748b; }
.btn-scroll-top { background: var(--forest-deep); opacity: 0; pointer-events: none; transform: translateY(10px); }
.btn-scroll-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* BUTTONS & BADGES */
.btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font-size: 0.9rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: all 0.2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-secondary { border-color: var(--line-strong); background: #ffffff; color: var(--ink); }
.btn-secondary:hover { background: var(--accent-light); color: var(--accent); }

/* CV DROPDOWN */
.cv-dropdown { position: relative; display: inline-block; }
.btn-cv-dropdown {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #6d28d9 100%);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-cv-dropdown:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 50%, #5b21b6 100%);
}
.btn-cv-dropdown .cv-dropdown-icon {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}
.cv-dropdown.is-open .btn-cv-dropdown .cv-dropdown-icon {
  transform: rotate(180deg);
}
.cv-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 120;
  min-width: 240px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.cv-dropdown.is-open .cv-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cv-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink, #0f172a);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.cv-dropdown-menu a:hover {
  background-color: var(--accent-light, #eff6ff);
  color: var(--accent, #2563eb);
}
.cv-dropdown-menu a i {
  color: #ef4444;
  font-size: 1rem;
}

.portrait-card { position: relative; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #ffffff; box-shadow: var(--shadow); }
.portrait-card img { width: 100%; aspect-ratio: 4 / 5; border-radius: calc(var(--radius-lg) - 6px); object-fit: cover; object-position: center top; }
.portrait-badge { position: absolute; right: 16px; bottom: 24px; padding: 10px 16px; border-radius: 12px; background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #ffffff; font-size: 0.8rem; font-weight: 700; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, 0.15); }

/* SECTIONS & CARDS */
.section { padding: clamp(48px, 7vw, 96px) 0; scroll-margin-top: 70px; }
.section-tint { background: #ffffff; border-block: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 1.1fr); gap: 20px 48px; align-items: end; margin-bottom: 36px; }
.section-heading h2 { margin-top: 8px; }
.section-intro { color: var(--muted); font-size: 1rem; }

.grid-2, .grid-3, .updates-grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3, .updates-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: #ffffff; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.content-card { padding: clamp(20px, 3vw, 28px); }
.content-card h3 { margin-bottom: 10px; }
.content-card p { color: var(--muted); font-size: 0.95rem; }
.card-index { display: inline-block; margin-bottom: 16px; padding: 4px 10px; border-radius: 6px; background: var(--accent-light); color: var(--accent); font-size: 0.75rem; font-weight: 800; }
.structured-list { display: grid; gap: 12px; margin-top: 18px !important; padding: 0 !important; list-style: none; }
.structured-list li { padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.structured-list strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 0.88rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 0.72rem; font-weight: 700; }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--accent); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ABOUT SECTION */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; }
.about-statement { padding: clamp(24px, 4vw, 36px); }
.about-statement p { color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.capability-list { display: grid; gap: 12px; }
.capability { padding: 18px 22px; }
.capability h3 { margin-bottom: 4px; font-size: 1rem; font-weight: 750; }
.capability span { color: var(--muted); font-size: 0.88rem; }

/* TIMELINE SECTION */
.timeline { position: relative; display: grid; gap: 16px; }
.timeline::before { position: absolute; top: 12px; bottom: 12px; left: 120px; width: 2px; background: var(--line-strong); content: ""; }
.timeline-item { display: grid; grid-template-columns: 100px 1fr; gap: 36px; }
.timeline-period { padding-top: 20px; color: var(--accent); font-size: 0.8rem; font-weight: 800; text-align: right; }
.exp-heading-right { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.btn-toggle-all-exp { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 0.85rem; font-weight: 600; color: var(--accent); background: var(--accent-light); border: 1px solid rgba(13, 148, 136, 0.2); border-radius: 20px; cursor: pointer; transition: all 0.2s ease; margin-top: 4px; }
.btn-toggle-all-exp:hover { background: var(--accent); color: #ffffff; border-color: var(--accent); }

.timeline-card { position: relative; padding: 22px; transition: all 0.25s ease; border: 1px solid var(--line); }
.timeline-card::before { position: absolute; top: 25px; left: -25px; width: 10px; height: 10px; border: 2px solid #ffffff; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--accent); content: ""; }
.timeline-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; cursor: pointer; user-select: none; border: none; background: transparent; width: 100%; text-align: left; padding: 0; font: inherit; color: inherit; }
.timeline-card-header:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.timeline-card-main { flex: 1; min-width: 0; }

.timeline-card p { margin-top: 8px; color: var(--muted); font-size: 0.92rem; }
.timeline-card .timeline-context { margin: 0 0 6px; color: var(--accent); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.btn-exp-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; font-size: 0.8rem; font-weight: 600; color: var(--accent); background: var(--accent-light); border: 1px solid rgba(13, 148, 136, 0.2); border-radius: 20px; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: all 0.2s ease; margin-top: 2px; }
.timeline-card-header:hover .btn-exp-toggle, .btn-exp-toggle:hover { background: var(--accent); color: #ffffff; border-color: var(--accent); }

.exp-chevron { transition: transform 0.3s ease; font-size: 0.75rem; }

.timeline-card.is-expanded { border-color: var(--accent); box-shadow: 0 4px 20px rgba(13, 148, 136, 0.1); }
.timeline-card.is-expanded .exp-chevron { transform: rotate(180deg); }

.timeline-details { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease, padding-top 0.3s ease; opacity: 0; overflow: hidden; margin-top: 0; }
.timeline-card.is-expanded .timeline-details { grid-template-rows: 1fr; opacity: 1; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.timeline-details > ul { min-height: 0; margin: 0; padding-left: 20px; color: var(--muted); font-size: 0.9rem; line-height: 1.65; overflow: hidden; }
.timeline-details > ul > li { margin-bottom: 8px; }
.timeline-details > ul > li:last-child { margin-bottom: 0; }


/* VENTURES SECTION */
.venture-card { overflow: hidden; display: flex; flex-direction: column; }
.venture-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0f172a; }
.venture-cover > img { width: 100%; height: 100%; object-fit: cover; }
.venture-body { padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; flex: 1; }
.venture-body h3 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); margin-top: 4px; }
.venture-body > p { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.role-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.88rem; }
.role-block strong { display: block; margin-bottom: 6px; color: var(--ink); }
.role-block ul { margin: 0; padding-left: 18px; color: var(--muted); }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 20px; }

/* PRODUCTS SECTION */
.product-card { display: flex; flex-direction: column; }
.product-card .eyebrow { margin-bottom: 6px; font-size: 0.72rem; }

/* CASE STUDIES SECTION */
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.case-card { padding: clamp(22px, 3vw, 32px); }
.case-step { margin-top: 16px; }
.case-step dt { color: var(--accent); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.case-step dd { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }
.evidence-note { margin-top: 20px; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--accent-light); color: var(--muted); font-size: 0.82rem; border-radius: 0 8px 8px 0; }

/* UPDATES SECTION */
.update-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; }
.update-card > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0f172a; }
.update-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.update-card h3 { margin-top: 8px; font-size: 1.15rem; }
.update-card p { margin-top: 10px; color: var(--muted); font-size: 0.9rem; }
.update-card .text-link { margin-top: auto; padding-top: 16px; }
.draft-label { display: inline-flex; align-items: center; gap: 6px; color: var(--soft); font-size: 0.73rem; font-weight: 700; }
.draft-label::before { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); content: ""; }

/* CONTACT SECTION */
.contact-panel { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: clamp(24px, 4vw, 40px); background: var(--forest-deep); border-radius: var(--radius-lg); color: #ffffff; }
.contact-panel h2 { color: #ffffff; }
.contact-panel p { margin-top: 10px; color: #94a3b8; font-size: 0.98rem; }
.contact-actions { display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
.contact-panel .btn-primary { background: #ffffff; color: var(--forest-deep); }
.contact-panel .btn-primary:hover { background: #f1f5f9; }
.contact-panel .contact-btn-secondary { border-color: rgba(255, 255, 255, 0.2); background: transparent; color: #ffffff; }
.contact-panel .contact-btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }


/* PORTFOLIO MASTER SECTION STYLES */
.portfolio-tabs-container { margin-bottom: 24px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.portfolio-tabs { display: inline-flex; gap: 8px; padding: 6px; background: #f1f5f9; border-radius: 999px; border: 1px solid var(--line); }
.portfolio-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: none; border-radius: 999px; background: transparent; color: var(--muted); font-size: 0.88rem; font-weight: 700; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; }
.portfolio-tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.6); }
.portfolio-tab.active { background: var(--white); color: var(--accent); box-shadow: var(--shadow-sm); }
.portfolio-tab i { font-size: 0.9rem; }

.portfolio-category-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; padding: 12px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.portfolio-category-filter.hidden { display: none; }
.filter-label { font-size: 0.82rem; font-weight: 700; color: var(--muted); margin-right: 4px; }
.category-btn { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--muted); font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.15s ease; }
.category-btn:hover, .category-btn.active { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }

.portfolio-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portfolio-grid-full { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.portfolio-item-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: clamp(20px, 3vw, 26px); box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.portfolio-item-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.portfolio-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.portfolio-badge-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.badge-status-active { background: #dcfce7; color: #15803d; }
.badge-status-business { background: #fef3c7; color: #b45309; }
.badge-status-prototype { background: #f1f5f9; color: #475569; }

.portfolio-highlight-metric { margin-top: 12px; padding: 8px 12px; background: var(--accent-light); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; color: var(--ink); font-size: 0.82rem; font-weight: 700; }
.portfolio-footer-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.portfolio-links { display: flex; gap: 10px; }
.portfolio-link-btn { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.78rem; transition: all 0.15s ease; }
.portfolio-link-btn:hover { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }

@media (max-width: 980px) {
  .portfolio-grid, .portfolio-grid-full { grid-template-columns: 1fr; }
  .portfolio-tabs { border-radius: var(--radius-sm); }
}

/* FOOTER */
.site-footer { padding: 30px 0; border-top: 1px solid var(--line); background: #ffffff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 0.85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

/* RESPONSIVE DESIGN (MOBILE FIRST & TABLET/DESKTOP BREAKPOINTS) */
@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .menu-button { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .portrait-card { width: min(100%, 420px); margin-inline: auto; }
  .section-heading { grid-template-columns: 1fr; align-items: start; gap: 12px; }
  .grid-3, .updates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wrap, .wrap-narrow { width: min(calc(100% - 24px), var(--max)); }
  .header-inner { min-height: 60px; }
  .brand span { display: none; }
  .language-select { width: 80px; padding: 0 24px 0 10px; font-size: 0.78rem; }
  .hero { padding-top: 36px; }
  .hero-grid, .about-grid, .grid-2, .grid-3, .updates-grid, .case-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 6px; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; padding-left: 24px; }
  .timeline-period { padding-top: 0; text-align: left; }
  .timeline-card::before { top: 24px; left: -24px; }
  .contact-panel { grid-template-columns: 1fr; text-align: center; }
  .contact-actions { width: 100%; min-width: 0; }
}
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 12px; }
}

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

