:root {
  --bg: #0d0d0d;
  --bg-card: #161616;
  --footer-gold: #D4A24C;
  --footer-text-soft: #CCCCCC;
  --bg-texture: #0a0a0a;
  --text: #ffffff;
  --text-muted: #b0b0b0;
  --accent: #e8a84a;
  --accent-hover: #f0bc6a;
  --gold-glow: rgba(232, 168, 74, 0.35);
  --gold-glow-strong: rgba(212, 162, 76, 0.5);
  --border: rgba(255, 255, 255, 0.15);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-script: 'Great Vibes', cursive;
  --touch-min: 44px;
  --safe-top: env(safe-area-inset-top, 0);
  --safe-right: env(safe-area-inset-right, 0);
  --safe-bottom: env(safe-area-inset-bottom, 0);
  --safe-left: env(safe-area-inset-left, 0);
  --content-max: min(1280px, 96vw);
  --content-padding: clamp(1rem, 4vw, 2.5rem);
  --content-padding-mobile: max(1rem, var(--safe-left));
  --section-padding-y: clamp(2.5rem, 6vw, 5.5rem);
  --section-padding-y-sm: clamp(2rem, 4vw, 3rem);
  --gap-rel: clamp(1rem, 3vw, 2rem);
  --gap-rel-lg: clamp(1.5rem, 4vw, 3rem);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.5s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  font-size: 100%;
}

@media (max-width: 480px) {
  html {
    font-size: clamp(16px, 4.5vw, 18px);
  }
}

/* Skip link – visible when focused (keyboard/screen reader) */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 300;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 0;
  transform: translateY(-100%);
  transition: transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--bg);
  outline-offset: 2px;
}

/* Focus visible – keyboard/screen reader friendly, minimal for pointer */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skip-link {
    transition: none;
  }
}

/* Premium: keyframe animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes shimmer {
  from { background-position: -200% 0; }
  to { background-position: 200% 0; }
}

/* Scroll-reveal: soft, elegant entrance on every page */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll-delay-1 { transition-delay: 0.08s; }
.animate-on-scroll-delay-2 { transition-delay: 0.16s; }
.animate-on-scroll-delay-3 { transition-delay: 0.24s; }
.animate-on-scroll-delay-4 { transition-delay: 0.32s; }

/* Subtle page load: gentle fade for main content */
main {
  animation: fadeIn 0.5s ease-out both;
}
@media (prefers-reduced-motion: reduce) {
  main {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  text-align: justify;
  background: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-width: 0;
  -webkit-tap-highlight-color: rgba(232, 168, 74, 0.2);
  overflow-wrap: break-word;
  word-wrap: break-word;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Device-friendly interactivity: remove tap delay, ensure touch targets */
a,
button,
.btn,
.nav-toggle,
.nav-links a,
.portfolio-carousel-dot,
.portfolio-carousel-prev,
.portfolio-carousel-next,
.inquire-modal-close,
input[type="submit"],
input[type="button"],
.faq-question,
.js-open-policy-modal {
  touch-action: manipulation;
}

@media (pointer: coarse) {
  .portfolio-carousel-dot,
  .portfolio-carousel-prev,
  .portfolio-carousel-next,
  .btn,
  .nav-toggle,
  .back-to-top,
  .inquire-modal-close,
  .inquire-form .btn,
  input[type="submit"],
  input[type="button"],
  button {
    min-width: var(--touch-min);
    min-height: var(--touch-min);
  }
  .nav-links a {
    min-height: var(--touch-min);
  }
}

/* Tablet & iPad – relative padding and layout */
@media (min-width: 769px) and (max-width: 1024px) {
  .section {
    padding-top: var(--section-padding-y-sm);
    padding-bottom: var(--section-padding-y-sm);
  }
}

/* Bigger screens – constrain justified text to optimal line length (avoids wide gaps) */
@media (min-width: 1024px) {
  /* Full-width intro/lead paragraphs */
  .services-intro,
  .services-page-lead,
  .who-intro,
  .hero-home-lead,
  .section-subtitle,
  .portfolio-category-page-caption,
  .inquire-modal-subtext,
  .inquire-modal-how-to {
    max-width: 55ch;
    margin-left: auto;
    margin-right: auto;
  }
  .about-preview-lead,
  .about-preview-text {
    max-width: 46ch;
    margin-left: auto;
    margin-right: auto;
  }
  /* Card descriptions in grids */
  .services-pillar-card-desc,
  .pillar-card-desc,
  .who-block-desc {
    max-width: 42ch;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: max(var(--content-padding), var(--safe-left));
    padding-right: max(var(--content-padding), var(--safe-right));
  }
}

/* Prevent horizontal overflow on all viewports */
pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Keep all content aligned and within bounds on any viewport */
main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

img:not(.logo-img):not(.gallery-item img):not(.hero-photo-wrap img) {
  max-width: 100%;
  height: auto;
  display: block;
}

svg:not(.footer-contact svg):not(.footer-links svg):not(.footer-icons svg):not(.nav-links svg) {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(var(--content-padding), var(--safe-left));
  padding-right: max(var(--content-padding), var(--safe-right));
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .container {
    padding-left: var(--content-padding-mobile);
    padding-right: max(1rem, var(--safe-right));
  }
}

.container--wide {
  max-width: var(--content-max);
  width: 100%;
  min-width: 0;
  padding-left: max(var(--content-padding), var(--safe-left));
  padding-right: max(var(--content-padding), var(--safe-right));
}

/* Inner pages: content below fixed header */
body.page main {
  padding-top: 5.5rem;
  padding-top: calc(5.5rem + var(--safe-top));
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: rgba(15, 20, 25, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding-top: var(--safe-top);
}

.nav {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding: clamp(0.75rem, 2vw, 1rem) max(var(--content-padding), var(--safe-right)) clamp(0.75rem, 2vw, 1rem) max(var(--content-padding), var(--safe-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  box-sizing: border-box;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.logo:hover {
  color: var(--accent-hover);
}

.logo-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.logo:hover .logo-circle {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--gold-glow);
}

.logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

#currency-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.5rem;
}
.currency-switcher-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.currency-switcher-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.currency-switcher-btn:hover {
  color: var(--text);
  border-color: var(--text-muted);
}
.currency-switcher-btn.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(232, 168, 74, 0.08);
}
@media (max-width: 700px) {
  #currency-switcher {
    margin-right: 0.25rem;
  }
  .currency-switcher-label {
    display: none;
  }
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--duration-normal) ease, transform var(--duration-fast) var(--ease-out-quart);
}

.nav-links a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-item-has-children {
  position: relative;
}
.nav-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-item-has-children > a::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
}
.nav-item-has-children:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
}
.nav-dropdown li {
  margin: 0;
  padding: 0;
  border: none;
}
.nav-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  white-space: nowrap;
}
.nav-dropdown a:hover {
  background: var(--bg);
  color: var(--accent);
}

/* Desktop nav: touch-friendly hit areas on tablet/touch devices */
@media (min-width: 901px) and (pointer: coarse) {
  .nav-links a {
    padding: 0.5rem 0.25rem;
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
  }
  .nav-dropdown a {
    min-height: var(--touch-min);
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* Split section titles (BOLD + script) – same size as other section titles; hero/main titles override */
.split-title .title-bold {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.split-title .title-script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.5rem;
  margin-left: 0.15em;
  color: var(--accent);
}

/* Hero – Top Page layout (name, PORTFOLIO, photo overlap, script subtitle, decorations) */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem max(1.5rem, var(--safe-left)) 4rem max(1.5rem, var(--safe-right));
  padding-bottom: calc(4rem + var(--safe-bottom));
  background: var(--bg);
  overflow: hidden;
}

/* Hero splash: name, PORTFOLIO, tagline, View My Work (before main hero) */
.hero-splash {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 6rem 1.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-splash-bg {
  position: absolute;
  inset: 0;
  background: #0a0806 radial-gradient(ellipse 80% 50% at 50% 120%, rgba(200, 100, 30, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(255, 140, 50, 0.15) 0%, transparent 45%),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(255, 180, 60, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255, 120, 40, 0.08) 0%, transparent 35%);
  background-color: #0d0b09;
}
.hero-splash-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 20%, rgba(255, 160, 50, 0.2) 0%, transparent 8%),
    radial-gradient(circle at 70% 30%, rgba(255, 200, 80, 0.15) 0%, transparent 6%),
    radial-gradient(circle at 50% 60%, rgba(230, 130, 40, 0.18) 0%, transparent 7%),
    radial-gradient(circle at 15% 70%, rgba(255, 180, 60, 0.12) 0%, transparent 5%),
    radial-gradient(circle at 85% 80%, rgba(255, 140, 50, 0.14) 0%, transparent 5%);
  pointer-events: none;
}
.hero-splash-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 36rem;
}
.hero-splash-name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  color: #e8a84a;
  margin: 0 0 0.5rem;
  letter-spacing: 0.06em;
}
.hero-splash-title {
  font-family: var(--font-body);
  font-size: clamp(2.75rem, 12vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0;
  line-height: 1.05;
  text-transform: uppercase;
}
.hero-splash-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 1.8vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e8a84a;
  margin: 1.25rem 0 1.75rem;
}
.hero-splash-cta {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  background: #d4923a;
  color: #fff;
  border: none;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-splash-cta:hover {
  background: #e8a84a;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232, 168, 74, 0.4);
}

.hero-top-page {
  background: var(--bg) url("Assets/hero-particles-bg.png") center center / cover no-repeat;
}

.hero-top-page .hero-name-top {
  position: absolute;
  top: 8rem;
  left: 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
  z-index: 5;
}

.hero-center-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  min-height: 280px;
  min-width: 0;
  gap: 0;
  padding-left: max(0.5rem, var(--safe-left));
  padding-right: max(0.5rem, var(--safe-right));
}

.hero-photo-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-58%, -50%);
  z-index: 2;
  width: 220px;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-name {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.25rem;
  text-align: center;
  animation: heroFadeIn 0.8s ease-out 0.1s both;
}

.hero-portfolio-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(4rem, 14vw, 10rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
  min-width: 0;
  animation: heroFadeIn 0.8s ease-out;
}

.hero-tagline {
  margin: 1rem 0 1.5rem;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.95;
  text-align: center;
  z-index: 1;
  animation: heroFadeIn 0.8s ease-out 0.2s both;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero-cta {
  z-index: 1;
  animation: heroFadeIn 0.8s ease-out 0.35s both;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 168, 74, 0.35);
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-name,
  .hero-portfolio-title,
  .hero-tagline,
  .hero-cta {
    animation: none;
    opacity: 1;
  }
  .btn:hover,
  .nav-links a:hover,
  .footer-icons a:hover,
  .hero-cta:hover,
  .hero-splash-cta:hover,
  .back-to-top:hover,
  .services-overview-card:hover,
  .portfolio-carousel-prev:hover,
  .portfolio-carousel-next:hover,
  .footer-contact a:hover,
  .footer-links a:hover {
    transform: none;
  }
  .btn:hover {
    box-shadow: 0 2px 8px rgba(232, 168, 74, 0.2);
  }
  .gallery-item:hover img,
  .portfolio-curated-grid .gallery-item:hover img,
  .portfolio-featured-item .gallery-item:hover img {
    transform: none;
  }
}

.hero-top-page .hero-portfolio-subtitle {
  position: absolute;
  bottom: 22%;
  right: 12%;
  font-family: var(--font-script);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--text);
  margin: 0;
  z-index: 3;
}

.hero-cta-top {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.hero-deco {
  position: absolute;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.hero-deco-feathers {
  bottom: 2rem;
  left: 1.5rem;
  width: 70px;
  height: 100px;
}

.hero-deco-feathers svg {
  width: 100%;
  height: 100%;
}

.hero-deco-arrow {
  bottom: 2.5rem;
  right: 1.5rem;
  width: 50px;
  height: 70px;
}

.hero-deco-arrow svg {
  width: 100%;
  height: 100%;
}


.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  min-height: var(--touch-min);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background var(--duration-normal) ease, color var(--duration-normal) ease, border-color var(--duration-normal) ease, transform var(--duration-normal) var(--ease-out-quart), box-shadow var(--duration-normal) ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--gold-glow), 0 0 0 1px rgba(232, 168, 74, 0.2);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--bg);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: max(1.5rem, var(--safe-bottom));
  left: max(1.5rem, var(--safe-left));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  background: var(--footer-gold, var(--accent));
  color: #0d0d0d;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(212, 162, 76, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-hover);
  color: #0d0d0d;
  box-shadow: 0 0 20px var(--gold-glow-strong), 0 4px 16px var(--gold-glow);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* Sections – full width with relative vertical padding */
.section {
  padding: var(--section-padding-y) 0;
  padding-left: 0;
  padding-right: 0;
  border-top: 1px solid var(--border);
  width: 100%;
  box-sizing: border-box;
}

/* Gold color for all titles (excluding buttons/CTA) */
main h1, main h2, main h3, main h4, main h5, main h6 {
  color: var(--accent);
}

.section-title {
  margin: 0 0 2rem;
  font-size: 1.5rem;
  color: var(--accent);
}

.section-title.split-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25em;
  min-width: 0;
}

@media (max-width: 700px) {
  .section {
    padding-top: var(--section-padding-y-sm);
    padding-bottom: var(--section-padding-y-sm);
  }
}

@media (max-width: 480px) {
  .section {
    padding-top: clamp(1.75rem, 5vw, 2.5rem);
    padding-bottom: clamp(1.75rem, 5vw, 2.5rem);
  }
}

.section-title-spaced {
  margin-top: 3.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  margin: -0.5rem 0 2rem;
  font-size: 0.95rem;
}

.section-subtitle a {
  color: var(--accent);
  text-decoration: none;
}

.section-subtitle a:hover {
  text-decoration: underline;
}

/* Home intro (illustration section) – full width, relative padding */
.home-intro {
  padding: var(--section-padding-y) max(var(--content-padding), var(--safe-left)) var(--section-padding-y) max(var(--content-padding), var(--safe-right));
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  background:
    linear-gradient(135deg, rgba(232, 168, 74, 0.06) 0%, transparent 40%),
    linear-gradient(225deg, rgba(232, 168, 74, 0.04) 0%, transparent 35%),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(232, 168, 74, 0.08) 0%, transparent 55%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.015) 2px,
      rgba(255, 255, 255, 0.015) 4px
    ),
    linear-gradient(180deg, var(--bg-card) 0%, var(--bg) 50%, var(--bg-card) 100%);
}

.home-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(232, 168, 74, 0.05) 0%, transparent 45%);
  pointer-events: none;
}

.home-intro .container--wide {
  position: relative;
  z-index: 1;
}

.home-intro__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Home page – new structure (hero split, pillars, featured, about preview, final CTA) */
.home-top-spacer {
  padding-top: 3rem;
}
.hero-home {
  min-height: auto;
  padding: var(--section-padding-y) max(var(--content-padding), var(--safe-left)) var(--section-padding-y) max(var(--content-padding), var(--safe-right));
  display: block;
  background: var(--bg);
  width: 100%;
  box-sizing: border-box;
}
.hero-home-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-rel-lg);
  align-items: center;
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}
.hero-home-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-home-caricature {
  width: 100%;
  max-width: clamp(200px, 30vw, 280px);
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.hero-home-content {
  min-width: 0;
  text-align: left;
}
.hero-home-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(0.7rem, 3.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 0 0 0.5rem;
  white-space: nowrap;
}
.hero-home-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.15em;
  letter-spacing: 0.02em;
}
.hero-home-lead {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 1.75rem;
}
.hero-home-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}
.hero-home-ctas .btn {
  min-height: var(--touch-min);
}

.section-home {
  padding-top: var(--section-padding-y-sm);
  padding-bottom: var(--section-padding-y-sm);
  border-top: none;
  width: 100%;
}
.section-home.section-who {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.who-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 auto 2rem;
  max-width: 36em;
}
.who-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.who-list li {
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}
.who-list li strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--accent);
  font-weight: 600;
}

/* Who This Is For – row 1: 3 columns, row 2: 2 columns centered */
.section-who .who-list.who-list-premium {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  list-style: none;
}
.section-who .who-list-premium .who-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem;
  text-align: center;
  background: linear-gradient(145deg, rgba(22, 22, 22, 0.98) 0%, rgba(18, 18, 18, 0.98) 100%);
  border: 1px solid rgba(232, 168, 74, 0.5);
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.section-who .who-list-premium .who-block:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--accent), 0 0 24px var(--gold-glow);
}
.section-who .who-list-premium .who-block-title {
  display: block;
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.section-who .who-list-premium .who-block-desc {
  color: var(--text);
  text-align: center;
}
/* Row 1: three blocks, each spanning 2 of 6 columns */
.section-who .who-list-premium .who-block:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
.section-who .who-list-premium .who-block:nth-child(2) { grid-column: 3 / 5; grid-row: 1; }
.section-who .who-list-premium .who-block:nth-child(3) { grid-column: 5 / 7; grid-row: 1; }
/* Row 2: two blocks centered (columns 2–3 and 4–5, leaving 1 empty each side) */
.section-who .who-list-premium .who-block:nth-child(4) { grid-column: 2 / 4; grid-row: 2; }
.section-who .who-list-premium .who-block:nth-child(5) { grid-column: 4 / 6; grid-row: 2; }
@media (max-width: 599px) {
  .section-who .who-list.who-list-premium {
    grid-template-columns: 1fr;
  }
  .section-who .who-list-premium .who-block:nth-child(1),
  .section-who .who-list-premium .who-block:nth-child(2),
  .section-who .who-list-premium .who-block:nth-child(3),
  .section-who .who-list-premium .who-block:nth-child(4),
  .section-who .who-list-premium .who-block:nth-child(5) {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

.section-home.section-pillars {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}
/* Single separator between home sections: use hr only, no section border */
main:has(.section-home) .premium-divider {
  margin: 1rem 0;
}
.text-center {
  text-align: center;
}
.container-narrow {
  max-width: min(36rem, 100%);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: max(var(--content-padding), var(--safe-left));
  padding-right: max(var(--content-padding), var(--safe-right));
  box-sizing: border-box;
}
.container .container-narrow {
  padding-left: 0;
  padding-right: 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pillar-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.pillar-card-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 1rem;
}
.pillar-card .btn {
  margin: 0;
}

.section-title-home {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin: 0 0 2rem;
  text-align: center;
}
.section-featured .section-title-home {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1rem;
  margin-bottom: var(--gap-rel-lg);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.featured-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: center;
}
.featured-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 28px var(--gold-glow);
}
.featured-item-img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg);
}
.featured-item-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.featured-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  padding: 0.6rem 0.85rem 0.15rem;
}
.featured-item-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  padding: 0 0.85rem 0.85rem;
}
.featured-cta-wrap {
  text-align: center;
  margin: 0;
}

/* Homepage testimonials – generous spacing, 2–3 short */
.section-testimonials {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}
.testimonials-grid {
  display: grid;
  gap: var(--gap-rel-lg);
  margin-top: var(--gap-rel-lg);
}
.testimonial {
  margin: 0;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
}
.testimonial:first-child {
  border-top: none;
  padding-top: 0;
}
.testimonial-stars {
  font-size: 1rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
  letter-spacing: 0.05em;
  text-align: center;
}
.testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 1rem;
}
.testimonial-attribution {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
  margin: 0;
  text-align: center;
}
.testimonial-short .testimonial-quote {
  font-weight: 500;
}

/* Homepage testimonials – premium card style */
.testimonials-premium .testimonials-premium-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(232, 168, 74, 0.25);
  margin-bottom: 0.5rem;
}
.testimonials-grid-premium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-rel);
  margin-top: var(--gap-rel-lg);
}

@media (max-width: 900px) {
  .testimonials-grid-premium {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .testimonials-grid-premium {
    grid-template-columns: 1fr;
  }
}
.testimonials-premium .testimonial-card {
  margin: 0;
  padding: 1.75rem 1.5rem;
  border: none;
  border-top: none;
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.98) 0%, rgba(14, 14, 14, 0.98) 100%);
  border: 1px solid rgba(232, 168, 74, 0.25);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}
.testimonials-premium .testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
  border-radius: 12px 12px 0 0;
}
.testimonials-premium .testimonial-card:hover {
  border-color: rgba(232, 168, 74, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 24px var(--gold-glow);
}
.testimonials-premium .testimonial-card .testimonial-stars {
  font-size: 1.05rem;
  color: var(--accent);
  margin: 0 0 0.85rem;
  letter-spacing: 0.12em;
  text-align: center;
}
.testimonials-premium .testimonial-card .testimonial-quote {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 auto 1rem;
  max-width: 48ch;
  text-align: center;
}
.testimonials-premium .testimonial-card .testimonial-attribution {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: normal;
  margin: 0;
  text-align: center;
}

/* Portfolio: one testimonial per category */
.portfolio-testimonial {
  margin: 2rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.portfolio-testimonial,
.services-pillar-testimonial {
  border: none;
  background: none;
}
.portfolio-testimonial .testimonial-stars {
  font-size: 0.95rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
  text-align: center;
}
.portfolio-testimonial .testimonial-quote {
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0 auto 0.75rem;
  max-width: 48ch;
  text-align: center;
}
.portfolio-testimonial .testimonial-attribution {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* Services: testimonial under each pillar */
.services-pillar-testimonial {
  margin: 1.5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.services-pillar-testimonial .testimonial-quote {
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0 auto 0.5rem;
  max-width: 48ch;
  text-align: center;
}
.services-pillar-testimonial .testimonial-attribution {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.about-preview-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.about-preview-content {
  min-width: 0;
  text-align: center;
}
.about-preview-lead {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.65;
  margin: 0 auto 1rem;
  max-width: 48ch;
  text-wrap: balance;
}
.about-preview-text {
  font-size: 0.9em;
  font-weight: 550;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 auto 2rem;
  max-width: 48ch;
  text-wrap: balance;
}
.about-preview-cta {
  margin: 0;
}
.about-preview-photo {
  flex-shrink: 0;
}
.about-preview-photo img {
  width: 300px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
}

@media (max-width: 700px) {
  .about-preview-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about-preview-content {
    text-align: center;
  }
  .about-preview-lead,
  .about-preview-text {
    margin-left: auto;
    margin-right: auto;
  }
  .about-preview-photo {
    order: -1;
    justify-self: center;
  }
  .about-preview-photo img {
    width: 260px;
    max-width: 100%;
  }
}

/* Home page: FAQ section (collapsible) – premium, elegant, all closed by default */
.section-faq {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
.section-faq .container-narrow {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.section-faq .section-title-home {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  letter-spacing: 0.02em;
}
.faq-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
  max-width: 32em;
}
.faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(22, 22, 22, 0.5);
  overflow: hidden;
}
/* FAQ item: grid so answer panel can animate height */
.faq-item {
  display: grid;
  grid-template-rows: auto 0fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: grid-template-rows 0.4s var(--ease-out-quart), background 0.25s ease;
  overflow: hidden;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-item[open] {
  grid-template-rows: auto 1fr;
  background: rgba(255, 255, 255, 0.03);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.01em;
  text-align: justify;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(232, 168, 74, 0.2);
  touch-action: manipulation;
  min-height: var(--touch-min);
  font-family: inherit;
  list-style: none;
  transition: color 0.2s ease;
}
.faq-question::-webkit-details-marker,
.faq-question::marker {
  display: none;
}
.faq-question::after {
  content: "";
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
  margin-bottom: 0.2rem;
  transition: transform 0.25s var(--ease-out-quart), border-color 0.2s ease;
}
.faq-item[open] .faq-question::after {
  transform: rotate(-135deg);
  margin-bottom: -0.2rem;
  border-color: var(--accent);
}
.faq-question:hover {
  color: var(--accent);
}
.faq-question:hover::after {
  border-color: var(--accent);
}
.faq-item:hover {
  background: rgba(232, 168, 74, 0.04);
}
.faq-answer-wrap {
  min-height: 0;
  overflow: hidden;
  padding: 0 1.25rem 0 1.25rem;
  transition: padding 0.3s ease;
}
.faq-item[open] .faq-answer-wrap {
  padding: 0 1.25rem 1.15rem;
}
.faq-answer {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.35s ease 0.06s, transform 0.35s var(--ease-out-quart) 0.06s;
}
.faq-item[open] .faq-answer {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .faq-item {
    transition: none;
  }
  .faq-answer {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* FAQ page – tabs + panels */
.faq-page-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.faq-page-title {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
}
.faq-page-intro {
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 40em;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}
.faq-page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.faq-page-tab {
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.faq-page-tab:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
}
.faq-page-tab.active {
  color: var(--accent);
  background: rgba(232, 168, 74, 0.1);
  border-color: rgba(232, 168, 74, 0.4);
}
.faq-page-panel {
  display: none;
  margin-bottom: 2.5rem;
}
.faq-page-panel.active {
  display: block;
}
.faq-page-section .faq-list {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.faq-page-cta {
  text-align: center;
  padding-top: 2rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
}
.faq-page-cta-text {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}
.faq-page-cta .btn {
  min-height: var(--touch-min);
}

@media (max-width: 700px) {
  .faq-page-tabs {
    gap: 0.4rem;
    margin-bottom: 1.5rem;
  }
  .faq-page-tab {
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
  }
}

/* About page: ABOUT Me section */
.about-me-section {
  padding-top: 4rem;
  padding-bottom: 5rem;
}
.about-me-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}
.about-me-photo {
  flex-shrink: 0;
}
.about-me-photo img {
  width: 300px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.about-me-content {
  min-width: 0;
}
.about-me-lead,
.about-me-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.about-me-lead {
  color: var(--text);
}
.about-me-languages {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}
.about-me-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.about-me-ctas .btn {
  min-height: var(--touch-min);
}

@media (max-width: 700px) {
  .about-me-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about-me-photo {
    order: -1;
    justify-self: center;
  }
  .about-me-photo img {
    width: 260px;
  }
}

/* About page: full layout (hero, approach, divisions, experience, direct) */
.about-page-section {
  padding-top: 4rem;
  padding-bottom: 5rem;
}
.about-page-section .container-narrow {
  max-width: 42rem;
}

.about-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 0;
}
.about-hero-photo {
  flex-shrink: 0;
}
.about-hero-photo img {
  width: 280px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.about-hero-content {
  min-width: 0;
}
.about-hero-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.25rem;
}
.about-hero-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
.about-hero-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.about-hero-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
.about-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.about-hero-ctas .btn {
  min-height: var(--touch-min);
}

.about-divider {
  height: 1px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.03);
  margin: 2.5rem 0;
}

.about-block-title,
.about-division-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem;
}
.about-block-lead {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}
.about-block-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.about-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.about-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.35rem;
}
.about-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.about-list-numbered {
  list-style: decimal;
  padding-left: 1.25rem;
}
.about-list-numbered li::before {
  content: none;
}

.about-division {
  margin-bottom: 0;
}
.about-division-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
.about-icons-row {
  margin: 0 0 1.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.about-icons-row::-webkit-scrollbar {
  display: none;
}
.about-icons-row li {
  flex-shrink: 0;
}

.about-direct {
  margin-bottom: 0;
}
.about-direct-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
.about-direct-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.2rem;
}
.about-direct-title {
  font-size: 0.95rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
.about-direct-portfolio {
  margin: 0;
  font-size: 0.9rem;
}
.about-direct-portfolio a {
  color: var(--accent);
  text-decoration: none;
}
.about-direct-portfolio a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .about-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about-hero-photo {
    order: -1;
    justify-self: center;
  }
  .about-hero-photo img {
    width: 260px;
  }
}

.final-cta-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}
.final-cta-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
  margin: 0 0 1.75rem;
}
.final-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

@media (max-width: 1024px) {
  .hero-home-inner {
    grid-template-columns: 1fr;
    gap: var(--gap-rel-lg);
    text-align: center;
  }
  .hero-home-content {
    text-align: center;
  }
  .hero-home-caricature {
    max-width: min(240px, 60vw);
  }
  .hero-home-ctas {
    justify-content: center;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .pillar-card {
    padding: 1.75rem 1.5rem;
  }
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .section-home {
    padding-top: var(--section-padding-y-sm);
    padding-bottom: var(--section-padding-y-sm);
  }
  .hero-home {
    padding-top: var(--section-padding-y-sm);
    padding-bottom: var(--section-padding-y-sm);
  }
}

/* About */
.about-inner {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 1.5rem;
}

.about-photo-wrap {
  flex-shrink: 0;
  width: 220px;
  min-width: 0;
}

.about-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.about-content {
  flex: 1;
  min-width: 0;
  text-align: justify;
  overflow-wrap: break-word;
}


@media (max-width: 640px) {
  .about-inner {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .about-photo-wrap {
    width: 180px;
  }
}

.about-content .lead {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.about-content p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.skill-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.skill-card {
  min-width: 0;
}

.skill-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  overflow-wrap: break-word;
}

/* Software & Personal Skills */
.software-logos {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1.5rem;
  justify-items: center;
  margin-bottom: 2rem;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.software-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.software-logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.software-logo-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.section-title-spaced {
  margin-top: 3.5rem;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1rem;
  margin: -0.25rem 0 1.25rem;
  max-width: 50ch;
}

.personal-skills-bubbles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.skill-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 12px;
  text-align: center;
  min-height: 3.5rem;
}

@media (max-width: 700px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .software-logos {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }

  .software-logo-img {
    width: 52px;
    height: 52px;
  }

  .software-logo-name {
    font-size: 0.8rem;
  }

  .personal-skills-bubbles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .software-logos {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .software-logo-img {
    width: 44px;
    height: 44px;
  }

  .software-logo-name {
    font-size: 0.75rem;
  }
}

/* Expertise & Capabilities (Skills page – premium) */
.expertise-page.section {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.expertise-page .container {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.expertise-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5.5vw, 3rem);
  font-weight: 400;
  color: var(--text);
  margin: 0 0 0.5rem;
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.expertise-hero-subtitle {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  text-align: center;
}

.expertise-block {
  margin-bottom: 4.5rem;
}

.expertise-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  margin: 0 0 1rem;
  letter-spacing: 0.03em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.expertise-section-title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
  margin-top: 0.5rem;
  border-radius: 1px;
}

.expertise-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 2.25rem;
  max-width: 76ch;
  white-space: normal;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 2.25rem;
}

.expertise-card {
  background: linear-gradient(145deg, rgba(22, 22, 22, 0.98) 0%, rgba(18, 18, 18, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 2rem 2rem 1.75rem;
  min-width: 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.expertise-card:hover {
  border-color: rgba(232, 168, 74, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 24px var(--gold-glow);
}

.expertise-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1.15rem;
  letter-spacing: 0.04em;
}

.expertise-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.expertise-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.expertise-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

.expertise-tools-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  margin: -0.15rem 0 1.5rem;
  line-height: 1.6;
  max-width: 76ch;
  white-space: normal;
}

.tools-platforms-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2rem;
  margin-bottom: 2.25rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.tools-platform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tools-platform-icon-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  opacity: 0.92;
}

.tools-platform-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.tools-platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2rem;
  align-items: start;
}

.tools-platforms-col {
  background: linear-gradient(145deg, rgba(22, 22, 22, 0.98) 0%, rgba(18, 18, 18, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  min-width: 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.tools-platforms-col:hover {
  border-color: rgba(232, 168, 74, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px var(--gold-glow);
}

.tools-platforms-col-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1.1rem;
  letter-spacing: 0.03em;
}

.tools-platforms-list {
  margin: 0;
}

.tools-platforms-list li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.expertise-spec-intro {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: -0.15rem 0 1.5rem;
  max-width: 76ch;
  white-space: normal;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
  max-width: 56rem;
}

.spec-group {
  min-width: 0;
  padding: 1.75rem 2rem;
  background: linear-gradient(145deg, rgba(22, 22, 22, 0.95) 0%, rgba(18, 18, 18, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  border-left: 3px solid var(--accent);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.spec-group-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1rem;
  letter-spacing: 0.03em;
}

.spec-list {
  margin: 0;
}

.spec-list li {
  margin-bottom: 0.45rem;
}

.expertise-cta {
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 2.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.expertise-cta-text {
  font-size: 1.2rem;
  color: var(--text);
  margin: 0 0 1.5rem;
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-weight: 500;
}

@media (max-width: 768px) {
  .expertise-page.section {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
  }

  .expertise-block {
    margin-bottom: 3.5rem;
  }

  .expertise-hero-subtitle {
    margin-bottom: 2rem;
  }

  .expertise-intro,
  .expertise-tools-tagline,
  .expertise-spec-intro {
    max-width: 100%;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .expertise-card {
    padding: 1.75rem 1.5rem;
  }

  .tools-platforms-icons {
    padding: 1rem 1.25rem;
  }

  .tools-platforms-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .tools-platforms-col {
    padding: 1.5rem 1.5rem;
  }

  .spec-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .spec-group {
    padding: 1.5rem 1.75rem;
  }

  .expertise-cta {
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .expertise-hero-title {
    margin-bottom: 2rem;
  }

  .expertise-intro {
    margin-bottom: 1.5rem;
  }

  .tools-platforms-grid {
    grid-template-columns: 1fr;
  }

  .tools-platforms-icons {
    gap: 1rem 1.25rem;
    margin-bottom: 1.5rem;
  }

  .tools-platform-icon-img {
    width: 36px;
    height: 36px;
  }

  .tools-platform-label {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
  }
}

/* Services overview (main Services page) */
#services .section-title.split-title {
  justify-content: center;
  text-align: center;
}

#services .services-hero-subtitle {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: -0.25rem auto 0.75rem;
  max-width: 42rem;
  text-align: center;
}

#services .services-intro-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 auto 2rem;
  max-width: 42rem;
  text-align: justify;
}

.services-overview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.services-overview-card-hybrid {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 28rem;
}

.services-overview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.services-overview-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  border-radius: 16px 0 0 16px;
}

.services-overview-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 0 24px var(--gold-glow), 0 0 0 1px rgba(232, 168, 74, 0.2);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.services-overview-title {
  margin: 0;
  font-size: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25em;
}

.services-pillar-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0.25rem 0 0.5rem;
  line-height: 1.4;
}

.services-overview-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.services-includes-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 1rem 0 0.5rem;
}

.services-includes {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.services-includes li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
}

.services-includes li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.services-overview-card .btn {
  align-self: center;
  margin-top: 0.25rem;
}

.services-overview-card-hybrid .services-overview-desc {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .services-overview {
    grid-template-columns: 1fr;
  }
  .services-overview-card-hybrid {
    max-width: none;
  }
}

/* Services page – two pillars layout */
.services-pillars-section {
  padding-top: 4rem;
  padding-bottom: 5rem;
}
.services-page-header {
  margin-bottom: 2rem;
}
.services-pillars-section .services-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--footer-gold);
  text-align: center;
  margin: 0 auto 0.5rem;
}
.services-pillars-section .services-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  text-align: center;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.75rem;
  display: block;
}
.services-page-subtitle {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-align: center;
  margin: 0 auto 1.5rem;
  display: block;
}
.services-pillars-section .services-intro.services-page-lead {
  margin-bottom: 0.75rem;
}
.services-pillars-section .services-page-subtitle {
  margin-bottom: 1.5rem;
}
.services-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.services-pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.services-pillar-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--footer-gold);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.services-pillar-card-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 1rem;
}
.services-pillar-card .btn-outline {
  background: var(--bg);
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}
.services-pillar-card .btn-outline:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

@media (max-width: 700px) {
  .services-pillars-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .services-pillar-card {
    padding: 1.75rem 1.5rem;
  }
}

/* Back link on service subpages */
.services-back-link {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.services-back-link a {
  color: var(--text-muted);
  text-decoration: none;
}

.services-back-link a:hover {
  color: var(--accent);
}

/* Graphic Design Services (from flyer) */
.services-byline {
  color: var(--text-muted);
  font-size: 1rem;
  margin: -0.75rem 0 2rem;
}

/* HR Services page – premium */
.hr-services-page.section {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.hr-services-page .container {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.hr-services-page .services-back-link {
  margin-bottom: 1.5rem;
  display: none; /* "Back to Services" link removed per request */
}

.hr-services-page .section-title.split-title.hr-services-hero-title {
  font-size: clamp(1.4rem, 3.8vw, 1.75rem);
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 0.75rem;
  justify-content: center;
  text-align: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.25rem;
}

.hr-services-page .section-title.split-title.hr-services-hero-title::before,
.hr-services-page .section-title.split-title.hr-services-hero-title::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  flex-shrink: 0;
  border-radius: 1px;
  opacity: 0.9;
}

.hr-services-page .section-title.split-title.hr-services-hero-title .title-bold {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.5vw, 1.7rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hr-services-page .section-title.split-title.hr-services-hero-title .title-script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-style: italic;
  margin-left: 0;
  color: var(--accent);
}

.hr-services-byline {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
}

.hr-services-hero-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0 auto 2.5rem;
  max-width: 52ch;
  text-align: center;
  letter-spacing: 0.01em;
}

.hr-services-page .services-offered {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hr-services-page .hr-services-block-intro {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 1.5rem;
  text-align: center;
}

.hr-services-block-intro + .hr-services-block-intro {
  margin-top: -1rem;
}

.hr-services-page .services-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.5rem;
  border-bottom: none;
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.hr-services-page .services-subtitle:first-of-type {
  margin-top: 0;
}

.hr-services-page .services-subtitle-with-line {
  border-bottom: none;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
  position: relative;
}

.hr-services-page .services-subtitle-with-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.03);
}

.hr-services-page .services-subtitle-small {
  font-size: 0.98rem;
  color: var(--accent);
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
  text-align: center;
}

.hr-services-page .services-subtitle-small:first-of-type {
  margin-top: 0;
}

.hr-services-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.hr-services-cards-grid .hr-services-list-card:first-child {
  border-right: 1px solid rgba(232, 168, 74, 0.2);
  margin-right: -1px;
}

.hr-services-list-card {
  padding: 2rem 1.75rem;
  background: linear-gradient(160deg, rgba(24, 24, 24, 0.98) 0%, rgba(16, 16, 16, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  border-left: 2px solid rgba(232, 168, 74, 0.5);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  min-width: 0;
}

.hr-services-list-card:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 1px var(--accent), 0 0 24px var(--gold-glow);
}

.hr-services-list-card .services-subtitle-small {
  margin-top: 0;
  margin-bottom: 0.85rem;
  text-align: center;
}

.hr-services-list-card .services-list-simple {
  margin-bottom: 0;
}

.hr-services-list-card .services-list-simple li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.hr-services-list-card .services-list-simple li:last-child {
  margin-bottom: 0;
}

.hr-services-coverage-card {
  margin-top: 0;
  padding: 2rem 2.25rem;
  background: linear-gradient(160deg, rgba(24, 24, 24, 0.98) 0%, rgba(16, 16, 16, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  border-top: 1px solid rgba(232, 168, 74, 0.25);
  border-left: 2px solid rgba(232, 168, 74, 0.5);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hr-services-coverage-card:hover {
  border-top-color: rgba(232, 168, 74, 0.4);
  border-left-color: rgba(232, 168, 74, 0.7);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hr-services-coverage-card .services-subtitle-small {
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
}

.hr-services-coverage-card .services-coverage {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
  letter-spacing: 0.02em;
}

.hr-services-page .services-list-simple {
  margin-bottom: 1.5rem;
}

.hr-services-page .services-list-simple li {
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

.hr-services-page .premium-divider {
  margin: 2.5rem 0 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.03);
}

.graphic-design-hero-divider {
  display: block;
  height: 1px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  margin: 2rem 0;
  padding: 0;
}

.graphic-design-page .services-offered > .graphic-design-hero-divider {
  margin: 0 0 1rem;
}

.hr-services-accent-divider {
  display: block;
  border: none;
  height: 2px;
  background: var(--accent);
  opacity: 0.5;
  margin: 2.5rem 0;
  padding: 0;
}

.hr-services-page .services-process-block {
  margin-top: 0;
  padding: 2rem 2.25rem;
  background: linear-gradient(160deg, rgba(24, 24, 24, 0.98) 0%, rgba(16, 16, 16, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  border-left: 2px solid rgba(232, 168, 74, 0.5);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  text-align: justify;
  touch-action: manipulation;
  cursor: pointer;
}

.hr-services-page .services-process-block:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 1px var(--accent), 0 0 24px var(--gold-glow);
}

.hr-services-page .services-process-block .services-subtitle-small {
  margin-top: 0;
  margin-bottom: 0.75rem;
  text-align: center;
}

.hr-services-page .services-process-list {
  margin: 0;
  padding-left: 1.35rem;
  line-height: 1.65;
  text-align: justify;
}

.hr-services-page .services-process-list li {
  margin-bottom: 0.5rem;
  text-align: justify;
}

.hr-services-how-section {
  margin-top: 2rem;
  text-align: center;
}

.hr-services-how-section .hr-services-how-title {
  white-space: nowrap;
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.hr-services-process-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-top: 0;
  align-items: start;
}

.hr-services-process-cards .services-process-block {
  min-width: 0;
}

.hr-services-process-cards .services-process-block:first-child {
  border-right: 1px solid rgba(232, 168, 74, 0.2);
  margin-right: -1px;
}

.hr-services-process-cards .services-process-block:last-child {
  margin-left: 0;
}

.hr-services-page .services-tagline {
  margin-top: 2rem;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
  color: var(--text);
}

.hr-services-bottom-blocks {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hr-services-coverage-why-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

.hr-services-coverage-why-row .hr-services-coverage-card,
.hr-services-coverage-why-row .hr-services-why-main {
  min-width: 0;
}

.hr-services-coverage-why-row > div:first-child {
  border-right: 1px solid rgba(232, 168, 74, 0.2);
  margin-right: -1px;
}

.hr-services-page .hr-services-why-main,
.hr-services-page .hr-services-cta-main {
  padding: 2rem 2.25rem;
  background: linear-gradient(160deg, rgba(24, 24, 24, 0.98) 0%, rgba(16, 16, 16, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  border-top: 1px solid rgba(232, 168, 74, 0.25);
  border-left: 2px solid rgba(232, 168, 74, 0.5);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hr-services-page .hr-services-why-main:hover,
.hr-services-page .hr-services-cta-main:hover {
  border-top-color: rgba(232, 168, 74, 0.4);
  border-left-color: rgba(232, 168, 74, 0.7);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hr-services-page .hr-services-why-main .services-subtitle,
.hr-services-page .hr-services-cta-main .services-subtitle {
  margin-top: 0;
  margin-bottom: 1rem;
  border-bottom: none;
  padding-bottom: 0;
  text-align: center;
}

.hr-services-page .hr-services-why-main {
  text-align: center;
}

.hr-services-page .hr-services-why-main .services-check-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hr-services-page .hr-services-why-main .services-check-list li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-left: 0;
}

.hr-services-page .hr-services-why-main .services-check-list li::before {
  position: static;
}

.hr-services-page .hr-services-why-main .services-check-list li:last-child {
  margin-bottom: 0;
}

.hr-services-page .hr-services-why-main .services-cta-wrap.hr-services-why-cta {
  margin-top: 1.25rem;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
}

.hr-services-page .hr-services-cta-main .hr-services-cta-intro,
.hr-services-page .hr-services-cta-main .hr-services-cta-sub {
  margin: 0 0 0.6rem;
}

.hr-services-page .hr-services-cta-main .hr-services-cta-sub {
  margin-bottom: 1.25rem;
}

.hr-services-page .hr-services-cta-main {
  text-align: center;
}

.hr-services-page .hr-services-cta-main .services-cta-wrap {
  margin: 0;
  display: flex;
  justify-content: center;
}

.hr-services-page .hr-services-cta-fullwidth {
  grid-column: 1 / -1;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.hr-services-cta-removed {
  display: none !important;
}

.hr-services-page .hr-services-bottom-blocks .services-box-inquire {
  margin-top: 0;
  padding: 2rem 2.25rem;
  background: linear-gradient(160deg, rgba(24, 24, 24, 0.98) 0%, rgba(16, 16, 16, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  border-top: 1px solid rgba(232, 168, 74, 0.25);
  border-left: 2px solid rgba(232, 168, 74, 0.5);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.hr-services-page .hr-services-bottom-blocks .services-box-inquire:hover {
  border-top-color: rgba(232, 168, 74, 0.4);
  border-left-color: rgba(232, 168, 74, 0.7);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hr-services-page .hr-services-bottom-blocks .services-box-inquire .services-subtitle {
  margin-top: 0;
  margin-bottom: 0.75rem;
  border-bottom: none;
  padding-bottom: 0;
  text-align: center;
}

.hr-services-page .hr-services-bottom-blocks .services-box-inquire .services-inquire-intro {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hr-services-page .hr-services-bottom-blocks .services-box-inquire .btn {
  display: inline-block;
}

.hr-services-cta-intro,
.hr-services-cta-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 0.5rem;
}

.hr-services-cta-sub {
  margin-bottom: 1.5rem;
}

.hr-services-page .services-sidebar {
  gap: 1.75rem;
}

.hr-services-page .services-sidebar .services-box {
  background: linear-gradient(145deg, rgba(22, 22, 22, 0.98) 0%, rgba(18, 18, 18, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hr-services-page .services-sidebar .services-box:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.hr-services-page .services-sidebar .services-box-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin: 0 0 1rem;
  line-height: 1.35;
}

.hr-services-page .services-sidebar .hr-services-why-sidebar {
  border-left: 3px solid var(--accent);
}

.hr-services-page .services-sidebar .hr-services-why-sidebar:hover {
  border-left-color: var(--accent);
  border-color: rgba(232, 168, 74, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.hr-services-page .services-sidebar .hr-services-why-sidebar .services-check-list {
  margin-bottom: 0;
}

.hr-services-page .services-sidebar .hr-services-why-sidebar .services-check-list li {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.hr-services-page .services-sidebar .hr-services-why-sidebar .services-check-list li:last-child {
  margin-bottom: 0;
}

.hr-services-page .services-sidebar .hr-services-cta-sidebar {
  border-left: 3px solid rgba(255, 255, 255, 0.12);
}

.hr-services-page .services-sidebar .hr-services-cta-sidebar .hr-services-cta-intro,
.hr-services-page .services-sidebar .hr-services-cta-sidebar .hr-services-cta-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

.hr-services-page .services-sidebar .hr-services-cta-sidebar .hr-services-cta-sub {
  margin-bottom: 1.25rem;
}

.hr-services-page .services-sidebar .hr-services-cta-sidebar .btn {
  width: 100%;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hr-services-page .services-sidebar .services-box-inquire {
  border-left: 3px solid var(--accent);
}

.hr-services-page .services-sidebar .services-box-inquire:hover {
  border-left-color: var(--accent);
  border-color: rgba(232, 168, 74, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.hr-services-page .services-sidebar .services-box-inquire .services-inquire-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.hr-services-page .services-coverage {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.graphic-design-page .services-offered > .hr-services-block-intro {
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.graphic-design-page .hr-services-process-cards {
  grid-template-columns: 1fr;
}

.graphic-design-page .graphic-design-second-row {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.graphic-design-page .graphic-design-second-row .services-process-block {
  margin-top: 0;
  min-width: 0;
}

.graphic-design-page .hr-services-list-card-why .services-check-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.graphic-design-page .hr-services-list-card-why .services-check-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.graphic-design-page .hr-services-list-card-why .services-check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}

.graphic-design-page .hr-services-list-card-why .services-cta-wrap {
  margin-top: 0;
  text-align: center;
}

.graphic-design-page .graphic-design-cta-only {
  grid-template-columns: 1fr;
  margin-top: 2.5rem;
}

.graphic-design-page .graphic-design-cta-only .hr-services-cta-main {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.graphic-design-page .hr-services-hero-title .title-bold {
  text-transform: uppercase;
}

.graphic-design-page .services-offered .hr-services-block-intro {
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .hr-services-page.section {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
  }

  .hr-services-page .services-subtitle {
    margin-top: 1.75rem;
  }

  .hr-services-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.25rem;
  }

  .hr-services-cards-grid .hr-services-list-card:first-child {
    border-right: none;
    margin-right: 0;
  }

  .hr-services-list-card {
    padding: 1.5rem 1.5rem;
  }

  .hr-services-coverage-card {
    margin-top: 1.25rem;
  }

  .hr-services-process-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hr-services-process-cards .services-process-block:first-child {
    border-right: none;
    margin-right: 0;
  }

  .hr-services-coverage-why-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hr-services-coverage-why-row > div:first-child {
    border-right: none;
    margin-right: 0;
  }

  .hr-services-page .services-process-block {
    padding: 1.5rem 1.5rem;
  }

  .hr-services-bottom-blocks {
    margin-top: 2rem;
    gap: 1.75rem;
  }

  .hr-services-page .hr-services-why-main,
  .hr-services-page .hr-services-cta-main,
  .hr-services-page .hr-services-bottom-blocks .services-box-inquire {
    padding: 1.5rem 1.5rem;
  }

  .graphic-design-page .graphic-design-second-row {
    grid-template-columns: 1fr;
  }
}

/* HR Package page (Pricing & Engagement Models) */
.hr-package-page.section {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.hr-package-page .container {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.hr-package-page .services-back-link {
  margin-bottom: 1.5rem;
}

.hr-package-page .section-title.split-title.hr-package-hero-title {
  justify-content: center;
  text-align: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.25rem;
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 0.5rem;
}

.hr-package-page .section-title.split-title.hr-package-hero-title::before,
.hr-package-page .section-title.split-title.hr-package-hero-title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
  border-radius: 1px;
}

.hr-package-page .hr-package-byline {
  text-align: center;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.hr-package-page .hr-package-tagline {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hr-package-page .hr-package-intro {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 auto 2.5rem;
  max-width: 56ch;
}

.hr-package-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.hr-package-card {
  padding: 1.75rem 2rem;
  background: linear-gradient(145deg, rgba(22, 22, 22, 0.98) 0%, rgba(18, 18, 18, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hr-package-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.hr-package-card-essential {
  border-left: 3px solid #22c55e;
}

.hr-package-card-growth {
  border-left: 3px solid #eab308;
}

.hr-package-card-strategic {
  border-left: 3px solid #ef4444;
}

.hr-package-card-badge {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.hr-package-card-growth .hr-package-card-badge {
  color: var(--accent);
}

.hr-package-badge-rec {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-left: 0.35rem;
}

.hr-package-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.hr-package-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.hr-package-card-sub {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 1rem 0 0.4rem;
}

.hr-package-card .services-check-list,
.hr-package-card .services-list-simple {
  margin: 0 0 0.75rem;
}

.hr-package-card .services-list-simple li {
  margin-bottom: 0.25rem;
}

.hr-package-investment {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hr-package-investment strong {
  color: var(--text);
}

.hr-package-investment em {
  font-size: 0.9rem;
  opacity: 0.9;
}

.hr-package-guarantees,
.hr-package-payment,
.hr-package-process {
  margin-bottom: 2rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(145deg, rgba(22, 22, 22, 0.98) 0%, rgba(18, 18, 18, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  border-left: 3px solid var(--accent);
}

.hr-package-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin: 0 0 1rem;
  text-align: center;
}

.hr-package-guarantees .services-check-list,
.hr-package-payment .services-list-simple {
  margin: 0;
}

.hr-package-process-list {
  margin: 0;
  padding-left: 1.35rem;
  line-height: 1.7;
}

.hr-package-process-list li {
  margin-bottom: 0.4rem;
}

.hr-package-cta {
  margin-top: 2.5rem;
  padding: 2rem 2.25rem;
  background: linear-gradient(145deg, rgba(22, 22, 22, 0.98) 0%, rgba(18, 18, 18, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  border-left: 3px solid var(--accent);
  text-align: center;
}

.hr-package-cta-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.hr-package-cta-intro {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.hr-package-cta .services-cta-wrap {
  margin: 0;
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .hr-package-page.section {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
  }

  .hr-package-card {
    padding: 1.5rem 1.5rem;
  }

  .hr-package-guarantees,
  .hr-package-payment,
  .hr-package-process {
    padding: 1.25rem 1.5rem;
  }

  .hr-package-cta {
    padding: 1.5rem 1.5rem;
  }
}

.services-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
  min-width: 0;
}

.services-layout > * {
  min-width: 0;
}

.services-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-category {
  margin-bottom: 1.25rem;
}

.service-category:last-child {
  margin-bottom: 0;
}

.service-cat-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.service-category ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.service-category li {
  margin-bottom: 0.2rem;
}

/* Brand & Visual Strategy page (graphic-design.html) — premium layout */
.brand-strategy-page .brand-strategy-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: -0.25rem 0 2.5rem;
  max-width: 40rem;
}

.brand-strategy-page .brand-build-heading {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.brand-strategy-page .brand-block {
  margin-bottom: 2.25rem;
}

.brand-strategy-page .brand-block:last-of-type {
  margin-bottom: 0;
}

.brand-strategy-page .brand-block-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.4rem;
  line-height: 1.35;
}

.brand-strategy-page .brand-block-num {
  color: var(--accent);
  margin-right: 0.25rem;
}

.brand-strategy-page .brand-block-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 0.75rem;
  padding-left: 1.5rem;
}

.brand-strategy-page .brand-block-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.brand-strategy-page .brand-block-list li {
  margin-bottom: 0.4rem;
  position: relative;
}

.brand-strategy-page .brand-block-list li::before {
  content: "•";
  position: absolute;
  left: -0.75rem;
  color: var(--accent);
}

.brand-strategy-page .design-process {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.brand-strategy-page .design-process-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.brand-strategy-page .design-process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: design-step;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.brand-strategy-page .design-process-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
  counter-increment: design-step;
}

.brand-strategy-page .design-process-list li::before {
  content: counter(design-step);
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--accent);
}

.services-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.services-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.services-box-why {
  border-left: 3px solid var(--accent);
}

.services-box-together {
  border-left: 3px solid #c41e3a;
}

.services-box-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.services-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.services-check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.4rem;
}

.services-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}

.services-contact-item {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.services-contact-item a {
  color: var(--text);
  text-decoration: none;
}

.services-contact-item a:hover {
  color: var(--accent);
}

.services-contact-item em {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.services-icon {
  margin-right: 0.35rem;
}

.services-divider {
  height: 1px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.03);
  margin: 2.5rem 0;
}

.services-second-title {
  margin-top: 0;
}

.services-intro {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 1.25rem;
  max-width: 50ch;
}

.services-list-simple {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.services-list-simple li {
  margin-bottom: 0.35rem;
}

.services-coverage {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.services-subtitle-small {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  color: var(--text);
}

.services-cta-wrap {
  margin: 1rem 0;
}

.services-process-block {
  margin-top: 1rem;
}

.services-process-list {
  margin: 0 0 0 1.25rem;
  padding-left: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}

.services-process-list li {
  margin-bottom: 0.35rem;
}

.services-tagline {
  font-weight: 600;
  text-align: center;
  color: var(--text);
  font-size: 0.95rem;
}

.services-box-inquire {
  margin-top: 1rem;
  border-left: 3px solid var(--accent);
}

.services-inquire-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.services-inquire-btn {
  display: inline-block;
  margin-bottom: 1.25rem;
  width: 100%;
  text-align: center;
}

.services-box-inquire .inquire-form {
  margin-top: 0;
}

.services-box-package {
  margin-top: 1rem;
  border-left: 3px solid var(--border);
}

.services-package-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.services-package-link {
  display: inline-block;
  width: 100%;
  text-align: center;
}

.services-box-cta {
  margin-top: 1rem;
  border-left: 3px solid #c41e3a;
}

.services-cta-text {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.services-cta-sub {
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.services-slogan {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.services-contact {
  font-size: 0.9rem;
  margin: 0;
}

.services-contact a {
  color: var(--text);
  text-decoration: none;
}

.services-contact a:hover {
  color: var(--accent);
}

@media (max-width: 700px) {
  .services-layout {
    grid-template-columns: 1fr;
  }
}

/* Experience page – premium */
.experience-page.section {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.experience-page .container {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.experience-page .section-title.split-title {
  font-size: clamp(1.4rem, 3.8vw, 1.75rem);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1rem;
}

.experience-page .section-title.split-title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
  margin-top: 0.5rem;
  border-radius: 1px;
}

.experience-highlights {
  list-style: none;
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  background: linear-gradient(145deg, rgba(22, 22, 22, 0.98) 0%, rgba(18, 18, 18, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.experience-highlights li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.experience-highlights li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.experience-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 2.25rem;
  max-width: 56ch;
}

.timeline-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
  line-height: 1.55;
}

.timeline-item-group .timeline-content {
  padding-bottom: 0.5rem;
}

.timeline-group-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

.timeline-sub-role {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline-sub-role:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.timeline-sub-role h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.25rem;
  letter-spacing: 0.02em;
}

.timeline-sub-role .timeline-meta {
  margin-bottom: 0.5rem;
}

.timeline-sub-role ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.timeline-sub-role li {
  margin-bottom: 0.35rem;
}

.experience-cta {
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 2.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.experience-cta-text {
  font-size: 1.2rem;
  color: var(--text);
  margin: 0 0 1.5rem;
  line-height: 1.6;
  font-weight: 500;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 0;
  border-left: none;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 0;
  background: linear-gradient(145deg, rgba(22, 22, 22, 0.98) 0%, rgba(18, 18, 18, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  border-left: 3px solid var(--accent);
  padding: 1.75rem 2rem 1.75rem 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.timeline-item:hover {
  border-left-color: var(--accent-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.timeline-item:last-child {
  padding-bottom: 1.75rem;
}

.timeline-marker {
  display: none;
}

.timeline-content {
  margin: 0;
}

.timeline-meta {
  font-size: 0.9rem;
  font-style: normal;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
  letter-spacing: 0.02em;
}

.timeline-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.timeline-content ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.timeline-content li {
  margin-bottom: 0.4rem;
}

.timeline-item-group {
  border-left-color: rgba(255, 255, 255, 0.15);
  transition: border-left-color 0.25s ease;
}

.timeline-item-group:hover {
  border-left-color: var(--accent);
}

@media (max-width: 768px) {
  .experience-page.section {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
  }

  .experience-highlights {
    padding: 1rem 1.25rem;
    gap: 0.4rem 1.25rem;
  }

  .timeline-item {
    padding: 1.5rem 1.25rem;
  }

  .experience-cta {
    padding: 2.5rem 1.5rem;
  }
}

/* Gallery */
/* Portfolio – curated 5-section layout (premium) */
.portfolio-curated .portfolio-curated-section {
  margin-bottom: 2.5rem;
}
.portfolio-curated .portfolio-curated-section:last-of-type {
  margin-bottom: 1.5rem;
}

.portfolio-curated-section-title {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin: 0 0 0.5rem;
  text-align: center;
}

.portfolio-curated-title {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
.portfolio-curated-caption {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
  margin: 0 0 1rem;
}
.portfolio-curated-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.94rem;
  width: 100%;
  max-width: 65rem;
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
}
.portfolio-curated-grid .gallery-item {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--bg-card);
  min-height: 0;
}
.portfolio-curated-grid .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s;
}
.portfolio-curated-grid .gallery-item:hover img {
  transform: scale(1.05);
}
.portfolio-curated-cta {
  margin: 1.25rem 0 0;
  padding: 0;
  text-align: center;
}
.portfolio-curated-cta .btn {
  font-size: 0.9rem;
}
/* Premium section divider – subtle thin line (refined, soft) */
.premium-divider,
.portfolio-curated-divider {
  display: block;
  height: 1px;
  border: none;
  margin: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.03);
}

.premium-divider {
  margin: 2.5rem 0;
}

.portfolio-curated-divider {
  margin: 0 0 2.5rem;
}

/* Portfolio category gallery pages (View More landing) */
.portfolio-category-page .section-title.split-title {
  justify-content: center;
  font-size: 1.85rem;
}
.portfolio-category-page .section-title.split-title .title-bold,
.portfolio-category-page .section-title.split-title .title-script {
  font-size: 1.85rem;
}
.portfolio-category-page .portfolio-category-page-caption {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 auto 1.5rem;
  max-width: 56ch;
  text-align: center;
}
.portfolio-category-page .portfolio-category-cta {
  margin-top: 2rem;
  padding: 0;
}
.portfolio-category-page .gallery.portfolio-category-gallery {
  margin-top: 0;
}

/* Premium category carousel (no duplicates across categories) */
.portfolio-carousel-wrap {
  position: relative;
  max-width: 800px;
  margin: 0 auto 1.875rem;
  padding: 0 3.125rem;
}
.portfolio-carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  border: 1px solid var(--border);
}
.portfolio-carousel-viewport {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4/3;
  max-height: 62.5vh;
}
.portfolio-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
}
.portfolio-carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.06rem;
  box-sizing: border-box;
}
.portfolio-carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
}
.portfolio-carousel-prev,
.portfolio-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.portfolio-carousel-prev:hover,
.portfolio-carousel-next:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-50%) scale(1.08);
}
.portfolio-carousel-prev { left: 0.4rem; }
.portfolio-carousel-next { right: 0.4rem; }
.portfolio-carousel-prev svg,
.portfolio-carousel-next svg { width: 22px; height: 22px; }
.portfolio-carousel-dots,
.portfolio-carousel-counter {
  display: none !important; /* Arrows only — hide slide count from clients */
}
.portfolio-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.portfolio-carousel-dot:hover { background: rgba(255,255,255,0.5); }
.portfolio-carousel-dot[aria-current="true"] {
  background: var(--accent);
  transform: scale(1.25);
}
.portfolio-carousel-counter {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .portfolio-carousel-wrap {
    padding: 0 2.8rem;
    max-width: 92vw;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
  }
  .portfolio-carousel {
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
  }
  .portfolio-carousel-viewport { aspect-ratio: 3/4; max-height: 60vh; }
  .portfolio-carousel-prev,
  .portfolio-carousel-next { width: 40px; height: 40px; min-width: var(--touch-min); min-height: var(--touch-min); }
  .portfolio-carousel-prev { left: 0.3rem; }
  .portfolio-carousel-next { right: 0.3rem; }
  .portfolio-carousel-slide { padding: 0.75rem; }
  .portfolio-carousel-slide img { border-radius: 8px; }
}

@media (max-width: 480px) {
  .portfolio-carousel-wrap {
    padding: 0 2.5rem;
    margin-bottom: 1.25rem;
    max-width: 92vw;
    margin-left: auto;
    margin-right: auto;
  }
  .portfolio-carousel {
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
  }
  .portfolio-carousel-viewport { aspect-ratio: 3/4; max-height: 55vh; }
  .portfolio-carousel-slide { padding: 0.75rem; }
  .portfolio-carousel-slide img { border-radius: 8px; }
  .portfolio-carousel-prev,
  .portfolio-carousel-next { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
  .portfolio-carousel-prev { left: 0.25rem; }
  .portfolio-carousel-next { right: 0.25rem; }
  .portfolio-carousel-prev svg,
  .portfolio-carousel-next svg { width: 22px; height: 22px; }
  .portfolio-carousel-dots { gap: 0.35rem; margin-top: 0.75rem; }
  .portfolio-carousel-dot {
    width: 10px;
    height: 10px;
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    padding: 17px;
    border-radius: 50%;
    background-clip: content-box;
    box-sizing: content-box;
  }
  .portfolio-carousel-dot[aria-current="true"] { transform: scale(1.15); }
  .portfolio-carousel-counter { font-size: 0.8rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .portfolio-carousel-wrap { max-width: 700px; padding: 0 3.125rem; }
  .portfolio-carousel-viewport { max-height: 60vh; }
}

@media (max-width: 800px) {
  .portfolio-curated-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    max-width: 45rem;
  }
  .portfolio-curated .portfolio-curated-section {
    margin-bottom: 2rem;
  }
  .portfolio-curated-divider {
    margin: 0 0 2rem;
  }
}
@media (max-width: 480px) {
  .portfolio-curated-title {
    font-size: 1.5rem;
  }
  .portfolio-curated-caption {
    font-size: 0.9rem;
  }
}

/* Portfolio Highlights – headline, intro, captions */
.portfolio-highlights .portfolio-highlights-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  color: var(--accent);
  margin: 0 0 0.5rem;
  line-height: 1.2;
  text-align: center;
}
.portfolio-highlights .portfolio-highlights-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 auto 3rem;
  max-width: 56ch;
  text-align: center;
}
.portfolio-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.06rem;
  width: 100%;
  max-width: 65rem;
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
}
.portfolio-featured-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.portfolio-featured-item .gallery-item {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--bg-card);
  min-height: 0;
}
.portfolio-featured-item .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s;
}
.portfolio-featured-item .gallery-item:hover img {
  transform: scale(1.05);
}
.portfolio-item-caption {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  font-style: normal;
  text-align: center;
}
.portfolio-item-description {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0.35rem 0 0;
  font-style: normal;
  text-align: center;
}
.portfolio-highlights .portfolio-testimonial {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
@media (max-width: 800px) {
  .portfolio-featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.94rem;
    max-width: 45rem;
  }
}
@media (max-width: 480px) {
  .portfolio-featured-grid {
    grid-template-columns: 1fr;
    gap: 0.81rem;
    max-width: 35rem;
  }
  .portfolio-highlights .portfolio-highlights-intro {
    margin-bottom: 2.5rem;
  }
}

/* Sample Layouts – category nav and sections (legacy, when not .portfolio-curated) */
.portfolio-categories {
  display: grid;
  grid-template-rows: auto auto;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.6rem 0.85rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 900px) {
  .portfolio-categories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto;
    grid-auto-rows: auto;
  }
}

@media (max-width: 520px) {
  .portfolio-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.portfolio-categories a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.75rem 0.6rem;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  text-align: center;
  min-width: 0;
  min-height: 2.75rem;
  min-height: var(--touch-min);
  line-height: 1.3;
  -webkit-tap-highlight-color: transparent;
}

.portfolio-categories a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.portfolio-category {
  margin-bottom: 3.5rem;
}

.portfolio-category:last-of-type {
  margin-bottom: 0;
}

.portfolio-category-title {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
}
.portfolio-category-page .portfolio-category-title {
  font-size: 1.75rem;
}

.gallery-item-more {
  display: none;
}

.portfolio-category.is-expanded .gallery-item-more {
  display: block;
}

.category-actions {
  margin: 1.25rem 0 0;
  text-align: center;
}

.btn-see-more {
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  width: 100%;
  min-width: 0;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--bg-card);
  min-height: 0;
}

.gallery-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Lightbox – desktop: full viewport; mobile: contained within portfolio area */
.portfolio-highlights,
.portfolio-curated {
  position: relative;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, var(--safe-top)) max(1rem, var(--safe-right)) max(1rem, var(--safe-bottom)) max(1rem, var(--safe-left));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  pointer-events: none;
  touch-action: manipulation;
}

.lightbox[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: max(1rem, var(--safe-top));
  right: max(1rem, var(--safe-right));
  width: 44px;
  height: 44px;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  font-size: 2rem;
  line-height: 1;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  z-index: 201;
}

.lightbox-close:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Mobile: contained image within viewport, not full-site centering */
@media (max-width: 768px) {
  .lightbox {
    padding: 1rem;
    align-items: flex-start;
    padding-top: max(3rem, env(safe-area-inset-top));
  }

  .lightbox-inner {
    max-width: 100%;
    max-height: calc(100dvh - 5rem);
    max-height: calc(100vh - 5rem);
  }

  .lightbox img {
    max-width: 100%;
    max-height: calc(100dvh - 6rem);
    max-height: calc(100vh - 6rem);
  }

  .lightbox-close {
    top: max(0.75rem, env(safe-area-inset-top));
    right: 0.75rem;
  }
}

/* Touch-friendly gallery items */
.portfolio-featured-item .gallery-item,
.portfolio-curated-grid .gallery-item {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Mobile: portfolio placeholders show full photo, same size */
@media (max-width: 800px) {
  .portfolio-curated-grid .gallery-item,
  .portfolio-featured-item .gallery-item {
    aspect-ratio: 1;
  }
  .portfolio-curated-grid .gallery-item img,
  .portfolio-featured-item .gallery-item img {
    object-fit: contain;
    object-position: center;
    width: 100%;
    height: 100%;
  }
}

/* Policy viewer modal (no nav, minimal footer) */
.policy-modal {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, var(--safe-top)) max(1rem, var(--safe-right)) max(1rem, var(--safe-bottom)) max(1rem, var(--safe-left));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.policy-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.policy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}
.policy-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 42rem;
  max-height: 80vh;
  max-height: 80dvh;
  margin: 2rem 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.policy-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.policy-modal-close:hover {
  background: var(--accent);
  color: var(--bg);
}
.policy-modal-iframe-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.policy-modal-iframe-wrap iframe {
  display: block;
  width: 100%;
  height: 70vh;
  min-height: 400px;
  border: none;
}
.policy-modal-footer {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.policy-modal-footer a {
  color: var(--accent);
  text-decoration: none;
}
.policy-modal-footer a:hover {
  text-decoration: underline;
}

/* Universal CTA (before footer on every page) */
.universal-cta {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.universal-cta .container { max-width: 36rem; margin: 0 auto; }
.universal-cta-headline {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.universal-cta-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}
.universal-cta .btn {
  display: inline-block;
  width: auto;
}
.universal-cta .services-inquire-btn {
  width: auto;
  margin-bottom: 0;
}

body.policy-modal-view .universal-cta { display: none !important; }

/* Inquire modal (services page) – above header, footer, back-to-top */
.inquire-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, var(--safe-top)) max(1rem, var(--safe-right)) max(1rem, var(--safe-bottom)) max(1rem, var(--safe-left));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  min-height: 100vh;
  min-height: 100dvh;
  pointer-events: none;
}
.inquire-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.inquire-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.inquire-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  max-height: 80vh;
  max-height: 80dvh;
  margin: 2rem 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  -webkit-overflow-scrolling: touch;
  isolation: isolate;
}

.inquire-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.inquire-modal-close:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.inquire-modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  margin: 0 0 0.5rem;
  padding-right: 2.5rem;
  text-align: center;
}

.inquire-modal-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 1rem;
  text-align: center;
}

.inquire-modal-how-to {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1.25rem;
  text-align: center;
}

.inquire-modal-after-form {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.inquire-modal-after-form p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 0.35rem;
}

.inquire-modal-after-form p:last-child {
  margin-bottom: 0;
}

.inquire-modal .inquire-form {
  margin-top: 0;
}

/* Inquire modal – tablet & mobile */
@media (max-width: 768px) {
  .inquire-modal-box {
    max-height: min(90vh, 90dvh);
    padding: 1.5rem max(1.25rem, var(--safe-left)) max(1.5rem, calc(1.25rem + var(--safe-bottom))) max(1.25rem, var(--safe-right));
    -webkit-overflow-scrolling: touch;
  }
  .inquire-modal-close {
    width: 44px;
    height: 44px;
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    top: 0.75rem;
    right: max(0.75rem, var(--safe-right));
  }
  .inquire-modal-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-right: 3rem;
  }
}

@media (max-width: 640px) {
  .inquire-modal {
    padding: max(0.5rem, var(--safe-top)) max(0.5rem, var(--safe-right)) max(0.5rem, var(--safe-bottom)) max(0.5rem, var(--safe-left));
    align-items: flex-end;
  }

  .inquire-modal-box {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 1.25rem max(1rem, var(--safe-left)) calc(1.25rem + var(--safe-bottom)) max(1rem, var(--safe-right));
    border-radius: 12px 12px 0 0;
  }
}

/* Education */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.education-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.education-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.education-card .school,
.education-card .date {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}

.education-card ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.education-card a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.education-card a:hover {
  text-decoration: underline;
}

/* Certifications section (separate from Education) */
.certifications-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.certifications-list li {
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.certifications-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.certificates-subtitle {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 0 0 1.25rem;
}

.certificates-subtitle.section-title-spaced {
  margin-top: 5rem;
}

.certificates-folder-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.certificate-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.certificate-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.certificate-card {
  min-width: 0;
}

.certificate-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.certificate-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}

.certificate-link:hover {
  text-decoration: underline;
}

.certifications-drive-link {
  margin: 2rem 0 0;
  text-align: center;
}

.certifications-drive-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.certifications-drive-link a:hover {
  text-decoration: underline;
}

/* Credentials page – Education & Professional Development */
.credentials-page.section {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.credentials-page .container {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.credentials-page-title {
  margin-bottom: 1.5rem;
}

.credentials-section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 400;
  color: var(--text);
  margin: 0 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.credentials-academic {
  max-width: 28rem;
  margin-bottom: 0;
}

.credentials-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 1.75rem;
  max-width: 56ch;
}

.credentials-group {
  margin-bottom: 2.5rem;
}

.credentials-group-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.credential-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.credential-card {
  display: block;
  background: linear-gradient(145deg, rgba(22, 22, 22, 0.98) 0%, rgba(18, 18, 18, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.credential-card:hover {
  border-color: rgba(232, 168, 74, 0.3);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.credential-card[href="#"] {
  cursor: default;
  opacity: 0.92;
}

.credential-card[href="#"]:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.credential-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: block;
}

.credentials-group-cta {
  margin: 1rem 0 0;
}

.credentials-cta {
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.credentials-cta-text {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 0.5rem;
  line-height: 1.6;
}

.credentials-cta-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

@media (max-width: 768px) {
  .credential-cards {
    grid-template-columns: 1fr;
  }

  .credentials-cta {
    padding: 2rem 1.25rem;
  }
}

/* Contact */
.contact-content {
  text-align: center;
  color: var(--text-muted);
}

.contact-content p {
  margin: 0.5rem 0;
}

.contact-content a {
  color: var(--accent);
  text-decoration: none;
}

.contact-content a:hover {
  text-decoration: underline;
}

.contact-cta {
  margin-top: 1.5rem !important;
}

/* Inquire / Start a Project section – center heading and form */
#start-project .section-title.split-title,
#inquire .section-title.split-title {
  justify-content: center;
}

#start-project .container,
#inquire .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-form-subtitle {
  margin: -0.5rem 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
}

.contact-form-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.contact-optional {
  font-weight: 400;
  color: var(--text-muted);
}

.inquire-form select {
  width: 100%;
  max-width: 100%;
  padding: 0.6rem 2.25rem 0.6rem 0.75rem;
  font-size: 1rem;
  font-size: max(16px, 1rem);
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23b0b0b0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1.25rem;
}

.inquire-form select:focus {
  border-color: var(--accent);
}

.inquire-form select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .inquire-form select {
    padding: 0.75rem 2.25rem 0.75rem 0.85rem;
    min-height: 48px;
  }
}

/* Inquire form */
.inquire-form {
  max-width: 32rem;
  width: 100%;
  width: min(100%, 32rem);
  margin-left: auto;
  margin-right: auto;
  margin-top: 2.5rem;
  margin-bottom: 0;
  padding: 2rem max(1.5rem, var(--safe-right)) 2rem max(1.5rem, var(--safe-left));
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .inquire-form {
    margin-top: 1.5rem;
    padding: 1.5rem max(1rem, var(--safe-left)) 1.5rem max(1rem, var(--safe-right));
  }
}

.inquire-form-row {
  margin-bottom: 1.25rem;
}

.inquire-form-row:last-of-type {
  margin-bottom: 1.5rem;
}

.privacy-checkbox-row {
  margin-bottom: 1rem;
}
.privacy-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
}
.privacy-checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  margin: 0;
  margin-top: 0.2rem;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  accent-color: var(--accent);
  cursor: pointer;
  -webkit-appearance: checkbox;
  appearance: checkbox;
}
.privacy-checkbox-label a {
  color: var(--accent);
  text-decoration: none;
}
.privacy-checkbox-label a:hover {
  text-decoration: underline;
}

.inquire-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.inquire-form .required {
  color: var(--accent);
}

.inquire-form input:not([type="checkbox"]),
.inquire-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  font-size: max(16px, 1rem);
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

@media (max-width: 700px) {
  .inquire-form input:not([type="checkbox"]),
  .inquire-form textarea {
    padding: 0.75rem 0.85rem;
    min-height: 48px;
  }

  .inquire-form textarea {
    min-height: 140px;
  }

  .inquire-form-row {
    margin-bottom: 1rem;
  }

  .inquire-form-row:last-of-type {
    margin-bottom: 1.25rem;
  }

  .inquire-form label {
    font-size: 1rem;
  }
}

.inquire-form input:focus,
.inquire-form textarea:focus {
  border-color: var(--accent);
}

.inquire-form input:focus-visible,
.inquire-form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.inquire-form textarea {
  resize: vertical;
  min-height: 120px;
}

.inquire-form-actions {
  margin-top: 1.5rem;
}

.inquire-form .btn {
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

/* Contact page – hero, Rovic, two cards, direct, form */
.contact-page-section {
  text-align: center;
}

.contact-page-section .container-narrow {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.contact-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-hero .section-title {
  margin-bottom: 0.75rem;
}

.contact-page-section .section-title.split-title {
  justify-content: center;
  text-align: center;
}

.contact-lead {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.contact-intro {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 auto 0.5rem;
  max-width: 36rem;
}

.contact-cta-text {
  font-size: 0.95rem;
  color: var(--accent);
  margin: 0;
  font-weight: 500;
}

.contact-rovic {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.contact-rovic-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.25rem;
}

.contact-rovic-title {
  font-size: 0.95rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.contact-rovic-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  min-width: 0;
  text-align: center;
}

.contact-card-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.25rem;
}

.contact-card-subtitle {
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.contact-card-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.contact-card-heading {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.contact-card-details {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.85rem;
}

.contact-card-details li {
  margin: 0.25rem 0;
}

.contact-detail-label {
  color: var(--text-muted);
  margin-right: 0.35rem;
}

.contact-card-details a,
.contact-direct-details a {
  color: var(--text);
  text-decoration: none;
}

.contact-card-details a:hover,
.contact-direct-details a:hover {
  color: var(--accent);
}

.contact-card-icons {
  margin: 0 auto;
  justify-content: center;
}

.contact-direct {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.contact-direct-block {
  margin-top: 2rem;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.contact-direct-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.contact-direct-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.contact-direct-details {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.9rem;
}

.contact-direct-details li {
  margin: 0.35rem 0;
}

.contact-direct-icons {
  margin: 0 auto;
  justify-content: center;
}

/* Contact page: form section – heading/subtitle centered, form left-aligned */
#start-project.section {
  text-align: center;
}

#start-project .inquire-form {
  text-align: justify;
}

#start-project .inquire-form label {
  text-align: justify;
}

/* Footer — Premium theme: three-column, dark luxury */
.footer {
  position: relative;
  padding: 0 max(var(--content-padding), var(--safe-right)) calc(0.5rem + var(--safe-bottom)) max(var(--content-padding), var(--safe-left));
  padding-top: 0.5rem;
  background: #0a0a0a;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  color: var(--text);
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.footer-accent {
  height: 1px;
  background: var(--footer-gold);
  margin-bottom: 0.75rem;
}

.footer-inner {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  align-items: start;
  text-align: center;
  min-width: 0;
}

.footer-inner > * {
  min-width: 0;
  padding: 0 0.5rem;
}

.footer-inner > .footer-col:first-child {
  padding-left: 0;
}

.footer-inner > .footer-col:last-child {
  padding-right: 0;
}

/* Vertical separators between columns */
.footer-inner > .footer-col:not(:first-child) {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    max-width: 100%;
    text-align: center;
    gap: var(--gap-rel);
  }

  .footer-inner > * {
    padding: 0;
  }

  .footer-inner > .footer-col:not(:first-child) {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    margin-top: 0.5rem;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-col-links .footer-quicklinks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: center;
  align-items: start;
  gap: 0.4rem 1.5rem;
  text-align: center;
}

.footer-quicklinks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: center;
  align-items: start;
  gap: 0.4rem 1.5rem;
  font-size: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 600px) {
  .footer-quicklinks {
    gap: 0.35rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 380px) {
  .footer-quicklinks { gap: 0.35rem 0.5rem; }
  .footer .container,
  .footer { padding-left: max(1rem, var(--safe-left)); padding-right: max(1rem, var(--safe-right)); }
}

.footer-quicklinks a {
  color: var(--footer-text-soft);
  text-decoration: none;
  transition: color var(--duration-normal) ease;
  transition: color 0.2s ease, box-shadow 0.2s ease;
}

.footer-quicklinks a:hover {
  color: var(--footer-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-quicklinks a:last-child {
  grid-column: 1 / -1;
  justify-self: center;
}

.footer-brand {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--footer-gold);
  overflow-wrap: break-word;
}

.footer-brand {
  text-align: center;
}

.footer-subtitle {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.footer-intro {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--footer-text-soft);
  overflow-wrap: break-word;
}

.footer-col-brand .footer-copyright {
  margin-top: 1rem;
  margin-bottom: 0;
}

.footer-intro {
  text-align: center;
}

.footer-icons {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.footer-icons::-webkit-scrollbar {
  display: none;
}

.footer-icons li {
  flex-shrink: 0;
}

.footer-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--footer-text-soft);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

/* Tablet & mobile: larger footer icon touch targets */
@media (max-width: 900px) {
  .footer-icons a {
    width: 44px;
    height: 44px;
    min-width: var(--touch-min);
    min-height: var(--touch-min);
  }
  .footer-icons svg { width: 18px; height: 18px; }
}
@media (pointer: coarse) {
  .footer-quicklinks a {
    padding: 0.35rem 0.25rem;
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
  }
}

.footer-icons a:hover {
  background: rgba(212, 162, 76, 0.12);
  color: var(--footer-gold);
  border-color: var(--footer-gold);
  box-shadow: 0 0 16px var(--gold-glow-strong), 0 0 0 1px rgba(212, 162, 76, 0.2);
  transform: scale(1.05);
}

.footer-icons svg,
.footer-icons img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
}


.footer-nav-title {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin: 0 0 0.25rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-nav a:hover {
  color: var(--accent);
  padding-left: 2px;
}

.footer-bottom {
  width: 100%;
  margin-top: 2rem;
  padding-top: 1.25rem;
  padding-left: max(var(--content-padding), var(--safe-left));
  padding-right: max(var(--content-padding), var(--safe-right));
  padding-bottom: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.25rem;
  box-sizing: border-box;
}

.footer-bottom-premium {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-bottom .footer-copyright {
  font-size: 0.8rem;
  color: var(--footer-text-soft);
  text-align: center;
  width: auto;
  flex-shrink: 0;
}

.footer-bottom .footer-legal-wrap {
  text-align: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-legal-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.8rem;
}

.footer-legal-wrap a {
  color: var(--footer-text-soft);
  text-decoration: none;
  transition: color var(--duration-normal) ease;
  transition: color var(--duration-normal) ease;
  transition: color 0.2s ease;
}

.footer-legal-wrap a:hover {
  color: var(--footer-gold);
}

.footer-legal-divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.7rem;
}

.footer-avatar-wrap {
  flex-shrink: 0;
}

.footer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--footer-gold);
}

.footer-copyright {
  margin: 0;
  font-size: 0.8rem;
  color: var(--footer-text-soft);
}

.footer-copyright-link {
  color: var(--footer-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-copyright-link:hover {
  color: var(--footer-gold);
  text-decoration: underline;
}

.footer-disclaimer {
  margin: 0.5rem auto 0;
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.85;
  line-height: 1.4;
  text-align: center;
  display: block;
  width: 100%;
  white-space: nowrap;
}

/* Legacy footer contact/links (e.g. contact page section) */
.footer-contact,
.footer-links {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.footer-contact::-webkit-scrollbar,
.footer-links::-webkit-scrollbar {
  display: none;
}

.footer-contact li,
.footer-links li {
  margin: 0;
  flex-shrink: 0;
}

.footer-contact a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.footer-contact a:hover,
.footer-links a:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  transform: scale(1.08);
}

.footer-contact-icon,
.footer-contact svg,
.footer-links svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer-contact-icon-viber {
  width: 18px;
  height: 18px;
}

.footer-contact img {
  opacity: 1;
}

/* Client Policy page (client-policy.html) */
.client-terms { margin-top: 0; padding: 2rem 0; max-width: 42rem; margin-left: auto; margin-right: auto; }
.client-terms-title { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.05em; color: var(--accent); margin: 0 0 0.35rem; }
.client-terms-subtitle { font-size: 0.95rem; color: var(--text-muted); margin: 0 0 2rem; }
.client-terms-block { margin-bottom: 2.5rem; }
.client-terms-block:last-child { margin-bottom: 0; }
.client-terms-block-title { font-size: 1rem; font-weight: 700; color: var(--text); margin: 0 0 0.75rem; }
.client-terms-block p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin: 0 0 0.5rem; }
.client-terms-block ul { margin: 0.4rem 0 0; padding-left: 1.25rem; font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }
.client-terms-block ul li { margin-bottom: 0.35rem; }
.client-terms-block .client-terms-sublist { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.client-terms-divider { font-size: 1.25rem; color: var(--text-muted); margin: 2.5rem 0 1rem; letter-spacing: 0.2em; text-align: center; }
.client-terms-confirm { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin: 0; font-style: italic; text-align: center; }
.client-terms-back-wrap { margin: 1.25rem 0 0; }
.btn-back-services {
  background: var(--bg-card);
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-back-services:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 0.5rem;
    padding-left: max(var(--content-padding), var(--safe-left));
    padding-right: max(var(--content-padding), var(--safe-right));
    padding-bottom: 1rem;
  }

  .footer-bottom-premium {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom .footer-copyright {
    width: 100%;
  }

  .footer-bottom .footer-copyright,
  .footer-bottom .footer-legal-wrap {
    text-align: center;
  }

  .footer-quicklinks {
    justify-items: center;
  }
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
}
.footer p:not(.footer-brand) {
  color: var(--text-muted);
}

/* Tablet & mobile: hamburger menu (iPad portrait and below) */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    padding: 0.5rem;
  }

  .nav-links {
    position: fixed;
    top: calc(57px + var(--safe-top));
    left: 0;
    right: 0;
    bottom: auto;
    max-height: calc(100vh - 57px - var(--safe-top));
    max-height: calc(100dvh - 57px - var(--safe-top));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: max(1rem, var(--safe-top)) max(1.5rem, var(--safe-right)) max(1.5rem, var(--safe-bottom)) max(1.5rem, var(--safe-left));
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    padding: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    min-height: var(--touch-min);
    font-size: 1.05rem;
    line-height: 1.4;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-item-has-children > a::after {
    margin-left: auto;
    transform: rotate(0deg);
    transition: transform 0.2s;
  }
  .nav-item-has-children.is-open > a::after {
    transform: rotate(180deg);
  }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-radius: 0;
    min-width: 0;
    padding: 0 0 0.5rem 0.5rem;
    background: transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-item-has-children.is-open .nav-dropdown {
    max-height: 300px;
  }
  .nav-item-has-children:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
  }
  .nav-dropdown a {
    padding: 0.75rem 0;
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
    font-size: 0.98rem;
    white-space: normal;
  }
  .nav-dropdown li {
    border-bottom: none;
  }

  .hero-top-page .hero-name-top {
    top: 6.5rem;
    left: 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
  }

  .hero {
    padding-left: max(1rem, var(--safe-left));
    padding-right: max(1rem, var(--safe-right));
    padding-top: 5rem;
  }

  .hero-portfolio-title {
    font-size: clamp(2.5rem, 16vw, 4rem);
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
  }

  .hero-photo-wrap {
    width: 140px;
    height: 180px;
    transform: translate(-55%, -50%);
  }

  .hero-center-wrap {
    min-height: 220px;
  }

  .hero-cta {
    padding: 0.85rem 1.5rem;
    min-height: 48px;
  }

  .hero-top-page .hero-portfolio-subtitle {
    bottom: 26%;
    right: 8%;
    font-size: 1.5rem;
  }

  .hero-deco-feathers,
  .hero-deco-arrow {
    opacity: 0.6;
  }

  .btn {
    width: 100%;
    text-align: center;
    padding: 0.85rem 1.25rem;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .section-title.split-title .title-bold {
    font-size: 1.5rem;
  }

  .section-title.split-title .title-script {
    font-size: 1.5rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo-circle {
    width: 36px;
    height: 36px;
  }

  .logo-img {
    width: 100%;
    height: 100%;
  }

  .nav {
    padding-left: max(1.25rem, var(--safe-left));
    padding-right: max(1.25rem, var(--safe-right));
  }

  .footer-intro {
    max-width: 100%;
  }

  .services-box,
  .skill-card,
  .education-card,
  .certificate-card {
    padding: 1.25rem;
  }

  .timeline {
    padding-left: 1.25rem;
    margin-left: 0.25rem;
  }

  .back-to-top {
    width: 44px;
    height: 44px;
    bottom: max(1rem, var(--safe-bottom));
    left: max(1rem, var(--safe-left));
  }

  .back-to-top svg {
    width: 22px;
    height: 22px;
  }

}

@media (max-width: 480px) {
  body.page main {
    padding-top: calc(5rem + var(--safe-top));
  }

  .hero-photo-wrap {
    width: 120px;
    height: 155px;
  }

  .hero-portfolio-title {
    font-size: clamp(2.25rem, 14vw, 3rem);
  }

  .hero-center-wrap {
    padding-left: max(1rem, var(--safe-left));
    padding-right: max(1rem, var(--safe-right));
  }

  .hero-tagline {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin: 0.75rem 0 1rem;
  }

  .portfolio-categories {
    gap: 0.5rem;
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
  }

  .portfolio-categories a {
    font-size: 0.8rem;
    padding: 0.65rem 0.5rem;
  }

  .portfolio-category {
    margin-bottom: 2rem;
  }

  .portfolio-category-title {
    font-size: 1.5rem;
  }

  .gallery {
    gap: 0.5rem;
  }

  .lightbox img {
    max-width: 100%;
    max-height: calc(100dvh - 6rem);
  }
}

/* Device-friendly: mobile, tablet, laptop, desktop */
table, pre, .container {
  overflow-wrap: break-word;
}

table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
}

@media (max-width: 360px) {
  .container {
    padding-left: max(0.75rem, var(--safe-left));
    padding-right: max(0.75rem, var(--safe-right));
  }
  .section { padding-top: 2rem; padding-bottom: 2rem; }
}

/* ─── Blog article: premium article-style layout ─── */
.blog-post {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(4rem, 10vw, 6rem);
}

.blog-post .container {
  max-width: min(42rem, 90vw);
  margin: 0 auto;
}

.blog-post-header {
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-post-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 400;
  color: var(--text);
  margin: 0 0 0.75rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.blog-post-meta {
  font-size: 0.8125rem;
  color: var(--accent);
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.9;
}

.blog-post-body {
  text-align: left;
  max-width: 38rem;
  margin: 0 auto;
}

.blog-post-body > p:first-of-type {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 2rem;
}

.blog-post-body p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin: 0 0 1.5rem;
}

.blog-post-body h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--accent);
  margin: 2.75rem 0 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding-left: 0;
}

.blog-post-body h2::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-bottom: 0.5rem;
}

.blog-post-body ul {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.blog-post-body li {
  margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
  .blog-post-body {
    max-width: 100%;
  }
  .blog-post-body > p:first-of-type {
    font-size: 1.05rem;
  }
  .blog-post-body p {
    font-size: 1rem;
  }
  .blog-post-body h2 {
    font-size: 1.05rem;
    margin-top: 2.25rem;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .section-title.split-title .title-bold { font-size: 1.5rem; }
  .portfolio-carousel-wrap { margin-left: auto; margin-right: auto; }
}
