/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background-color: #faf9f6;
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── TOKENS ── */
:root {
  --cream:      #faf9f6;
  --white:      #ffffff;
  --black:      #101828;
  --text-dark:  #1e2939;
  --text-body:  #364153;
  --text-muted: #4a5565;
  --text-dim:   #6a7282;
  --blue:       #0085ff;
  --blue-light: #dbeafe;
  --orange:     #ffa500;
  --border:     #e5e7eb;
  --layout-max: 1280px;
}

/* ── LAYOUT ── */
.container {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--cream);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  max-width: var(--layout-max);
}

/* ── LOGO ── */
.logo {
  display: inline-flex;
  align-items: flex-start;
  text-decoration: none;
}

.logo-name {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: logoNameIn 400ms cubic-bezier(0.16, 1, 0.3, 1) 0s forwards;
}

.logo-name img {
  width: 163px;
  height: 30px;
  display: block;
}

.logo-asterisk {
  display: inline-block;
  opacity: 0;
  transform: scale(0.4) rotate(-30deg);
  transform-origin: center 25%;
  animation: logoAsteriskIn 500ms cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
}

.logo-asterisk img {
  width: 16px;
  height: 30px;
  display: block;
}

@keyframes logoNameIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes logoAsteriskIn {
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-name,
  .logo-asterisk {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ── NAV ── */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-dark);
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  border-radius: 2px;
  transition: background 0.2s;
}
.nav-link:hover::after        { background: var(--text-dark); }
.nav-link--active             { font-weight: 600; }
.nav-link--active::after      { background: var(--text-dark); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 60px;
  padding: 0 32px;
  border-radius: 9999px;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-primary {
  background-color: var(--blue);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 14px rgba(0, 133, 255, 0.35);
}
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-primary.is-loading {
  opacity: 1;
  cursor: wait;
  pointer-events: none;
}
.btn-primary.is-loading::after {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.btn-secondary {
  background-color: var(--white);
  color: var(--text-dark);
  border: 2px solid var(--text-dark);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.btn-cta-white {
  background-color: var(--white);
  color: var(--blue);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.btn-cta-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.55);
}
.btn-cta-outline:hover { background-color: rgba(255,255,255,0.1); opacity: 1; }

.btn-icon-calendar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  color: var(--black);
}

.btn-service-title {
  font-size: 14px;
  font-weight: 700;
  margin-right: 10px;
  letter-spacing: 0.02em;
}

.btn-copy {
  font-size: 16px;
}

.btn-compact {
  height: 48px;
  padding: 0 26px;
  font-size: 15px;
  border-radius: 9999px;
}

.btn-compact:hover {
  transform: translateY(-1px);
}

/* ── SECTION HEADER ── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.section-subtitle {
  margin-top: 12px;
  font-size: 18px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.link-inline {
  color: var(--blue);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.brand-ref { text-decoration: none; }

/* ── HERO ── */
.hero {
  background-color: var(--cream);
  padding: 0 0 96px;
  margin-top: 70px;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  max-width: var(--layout-max);
}

.hero-text {
  flex: 0 0 60%;
  max-width: 60%;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 24px;
}
.hero-badge-label { color: var(--text-dark); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; font-size: 16px; }
.hero-badge-flag { width: 18px; height: auto; display: inline-block; }

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0.7;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-green {
  background: #22c55e;
  animation: dot-pulse 2.5s ease infinite;
}

.dot-amber {
  background: #f59e0b;
  animation: dot-pulse 2.5s ease infinite;
}

.dot-grey { background: #9ca3af; }

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50% { opacity: 0.6; transform: scale(0.85); box-shadow: 0 0 0 3px rgba(34,197,94,0); }
}

@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
}

/* Title */
.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1.2px;
  color: var(--text-dark);
  margin-bottom: 24px;
}

/* Bio */
.hero-bio {
  font-size: 28px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 32px;
}

/* Subheadline */
.hero-subtitle {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 36px;
}

/* Decorative oblique highlight for emphasized words */
.hero-strong {
  font-weight: 800;
  color: var(--text-dark);
}

.keyword {
  display: inline;
  font-style: normal;
  white-space: nowrap;
}

.keyword { color: #0085ff; }

/* CTA row */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Photo */
.hero-photo {
  position: relative;
  flex-shrink: 0;
}

.hero-photo-glow {
  position: absolute;
  inset: -24px;
  background: radial-gradient(circle at 50% 50%, var(--blue) 0%, transparent 70%);
  filter: blur(48px);
  opacity: 0.18;
  z-index: 0;
  border-radius: 50%;
}

.hero-photo-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 24px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22), 0 4px 16px rgba(0,0,0,0.10);
  transform: rotate(3deg);
  width: 275px;
  height: 357px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-photo-card:hover {
  transform: rotate(6deg);
}

.hero-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* ── SELECTED WORK ── */
.work {
  background-color: var(--white);
  padding: 96px 0;
}

.work .container {
  max-width: var(--layout-max);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.work-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  display: block;
  aspect-ratio: 520 / 338;
  background-color: #f3f4f6;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  padding: 0;
  font-family: inherit;
  width: 100%;
  text-align: left;
}
.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.work-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Text overlay (TUI, Printed) */
.work-card-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 12px;
}
.work-card-text::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(9,20,33,0.35) 100%);
  pointer-events: none;
}
.work-card-text h3 {
  display: block;
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(7, 13, 23, 0.75);
  padding: 8px 14px;
  border-radius: 999px;
  margin: 0;
}
.work-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* Brand logo overlay */
.work-card-brand {
  position: absolute;
  bottom: 20px;
  left: 20px;
  max-height: 28px;
  width: auto;
}
.work-card-brand--light {
  filter: brightness(10);
  bottom: 20px;
  left: 20px;
}

/* Lock badge */
.work-card-lock {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* ── MY SERVICES ── */
.services {
  background-color: var(--cream);
  padding: 96px 0;
}

.services .container {
  max-width: var(--layout-max);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: 24px 20px 20px;
  opacity: 0;
  animation: service-card-settle 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: transform 220ms cubic-bezier(.22,.9,.31,1), box-shadow 220ms cubic-bezier(.22,.9,.31,1), background-color 220ms cubic-bezier(.22,.9,.31,1);
}

@keyframes service-card-settle {
  0% {
    opacity: 0;
    transform: rotate(var(--tilt-start)) translateY(12px);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) translateY(0);
  }
}

.service-card:nth-child(1) { --tilt-start: -1.5deg; animation-delay: 0.05s; }
.service-card:nth-child(2) { --tilt-start:  1.2deg; animation-delay: 0.15s; }
.service-card:nth-child(3) { --tilt-start: -1deg;   animation-delay: 0.25s; }
.service-card:nth-child(4) { --tilt-start:  1.5deg; animation-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  .service-card {
    animation: none;
    opacity: 1;
  }
}


.service-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
}

.service-card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  animation: icon-float 5s ease-in-out infinite;
}

.service-card:nth-child(2) .service-card-icon { animation-delay: 0.4s; }
.service-card:nth-child(3) .service-card-icon { animation-delay: 0.8s; }
.service-card:nth-child(4) .service-card-icon { animation-delay: 1.2s; }

@keyframes icon-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-4deg); }
}

@media (prefers-reduced-motion: reduce) {
  .service-card-icon { animation: none; }
}

.service-card-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.service-card-headline {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text-dark);
}

.service-card-body {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Hover / focus interaction: subtle lift, shadow, and warm background */
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 50px rgba(24,39,51,0.08), 0 6px 18px rgba(24,39,51,0.06);
  cursor: pointer;
}

.service-card:active {
  transform: translateY(-2px) scale(1.005);
}

/* ── TESTIMONIALS ── */
.testimonials {
  background-color: var(--white);
  padding: 96px 0;
}

.testimonials .container {
  max-width: var(--layout-max);
}

/* Testimonial card interaction */
.testimonial-card {
  transition: transform 240ms cubic-bezier(.22,.9,.31,1), box-shadow 240ms cubic-bezier(.22,.9,.31,1), border-color 240ms ease;
  border-radius: 12px;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(16,30,44,0.06), 0 6px 18px rgba(16,30,44,0.04);
  border-color: rgba(16,30,44,0.06);
}
.testimonial-card blockquote p { transition: color 180ms ease; }
.testimonial-card:hover blockquote p,
.testimonial-card:focus-within blockquote p {
  color: var(--text-dark);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: var(--blue);
}

.testimonial-stars svg {
  width: 20px;
  height: 20px;
}

.testimonial-card blockquote {
  flex: 1;
}

.testimonial-card blockquote p {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.7;
}

.testimonial-card footer {
  margin-top: auto;
}

.testimonial-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.testimonial-role {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dark);
  margin-top: 2px;
}


/* ── FOOTER ── */
.footer {
  background-color: var(--black);
  padding: 20px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-copy {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

.footer-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.2s, background-color 0.2s;
}

.footer-icon-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.06);
}

.footer-icon-btn img {
  width: 16px;
  height: 16px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.footer-icon-btn:hover img {
  opacity: 1;
}

.footer-scroll-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--blue);
  border: none;
  cursor: pointer;
  color: #ffffff;
  transition: background-color 0.2s, transform 0.2s;
}

.footer-scroll-top:hover {
  background-color: #0070d6;
  transform: translateY(-2px);
}

/* ── PASSWORD MODAL ── */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.is-open { display: flex; }

.modal {
  background: var(--white);
  border-radius: 24px;
  padding: 40px 36px;
  max-width: 500px;
  width: 100%;
  position: relative;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-dim);
  cursor: pointer;
  line-height: 1.2;
  padding: 0;
  font-family: inherit;
}
.modal-close:hover { color: var(--text-dark); }

.modal-icon {
  width: 72px;
  height: 72px;
  background-color: var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.modal-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.modal-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.modal-form { text-align: left; }

.modal-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.modal-input-wrap {
  position: relative;
}

.modal-input {
  width: 100%;
  height: 56px;
  border: 2px solid var(--blue);
  border-radius: 9999px;
  padding: 0 52px 0 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  outline: none;
  background: var(--white);
}
.modal-input:focus { box-shadow: 0 0 0 3px rgba(0, 133, 255, 0.15); }

.modal-input-toggle {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-eye-hide { display: none; }

.modal-error {
  font-size: 14px;
  color: #dc2626;
  margin-top: 8px;
  min-height: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.modal-btn {
  flex: 1;
  justify-content: center;
}

.modal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

.modal-footer-text {
  font-size: 16px;
  color: var(--text-muted);
}

/* ── CASE STUDY ── */

.cs-hero {
  background-color: var(--cream);
  padding: 70px 0 64px;
}

.cs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 40px;
}

.cs-breadcrumb-link,
.cs-breadcrumb-current {
  font-size: 16px;
  line-height: 1.2;
  display: flex;
  align-items: center;
}

.cs-breadcrumb-link {
  color: var(--text-muted);
  transition: color 0.2s;
}
.cs-breadcrumb-link:hover { color: var(--text-dark); }

.cs-breadcrumb-sep {
  flex-shrink: 0;
  display: block;
}

.cs-breadcrumb-current {
  font-weight: 500;
  color: var(--text-dark);
}

.cs-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.cs-intro {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.7;
  max-width: 860px;
  margin-bottom: 40px;
}

.cs-meta {
  display: flex;
  gap: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.1);
  flex-wrap: wrap;
}

.cs-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-meta-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.cs-meta-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
}

/* Hero image */
.cs-hero-image {
  background-color: var(--cream);
  padding-bottom: 80px;
}

.cs-img-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.cs-img-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.cs-img-card--mt { margin-top: 48px; }

.cs-img-card--tall img { max-height: 500px; }

/* Live coded design-system card components (TUI case study) — Material Design style */
.tui-cards-wrap {
  max-width: 820px;
  margin: 0;
}

.tui-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.tui-card {
  background-color: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.30), 0 1px 3px 1px rgba(0,0,0,0.15);
  transition: box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.tui-card:hover {
  box-shadow: 0 1px 2px rgba(0,0,0,0.30), 0 2px 6px 2px rgba(0,0,0,0.15);
}

.tui-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.tui-card--horizontal {
  flex-direction: row;
  width: 100%;
}

.tui-card--horizontal .tui-card-media {
  aspect-ratio: auto;
  flex: 0 0 260px;
}

.tui-card--horizontal .tui-card-body {
  flex: 1;
  min-width: 0;
  justify-content: center;
}

.tui-card--horizontal .tui-card-text {
  -webkit-line-clamp: 2;
}

.tui-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tui-card-body {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
}

.tui-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: #241569;
  line-height: 1.3;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.3em * 2);
}

.tui-card-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tui-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.tui-card-link {
  color: var(--blue);
  font-weight: 500;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: default;
}

.tui-card-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
  margin: 0;
}

.tui-card-price-label {
  font-size: 12px;
  color: var(--text-dim);
}

.tui-card-price-value {
  font-size: 22px;
  font-weight: 700;
  color: #241569;
  line-height: 1;
}

.tui-card-price-suffix {
  font-size: 11px;
  font-weight: 700;
  color: #241569;
}

@media (max-width: 640px) {
  .tui-card-grid { grid-template-columns: 1fr; }
  .tui-card--horizontal { flex-direction: column; }
  .tui-card--horizontal .tui-card-media { flex-basis: auto; aspect-ratio: 16 / 9; }
}

/* Component library showcase (TUI case study) */
.tui-showcase {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.tui-showcase-col--card { flex: 0 0 280px; }

.tui-showcase-col--stack {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tui-showcase-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}

/* Mobile article card */
.tui-mobile-card {
  width: 100%;
  max-width: 280px;
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.30), 0 1px 3px 1px rgba(0,0,0,0.15);
}

.tui-mobile-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.tui-mobile-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tui-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #241569;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 9999px;
}

.tui-save-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tui-mobile-card-body { padding: 16px 18px 18px; }

.tui-mobile-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #241569;
  line-height: 1.35;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tui-mobile-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.tui-stars { color: var(--orange); font-size: 13px; letter-spacing: 1px; }
.tui-rating-value { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.tui-rating-count { font-size: 12px; color: var(--text-dim); }

/* Buttons */
.tui-btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.tui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  border-radius: 9999px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: default;
}

.tui-btn--primary { background-color: #241569; color: #fff; }

.tui-btn--secondary {
  background-color: #fff;
  color: #241569;
  border: 2px solid #241569;
}

.tui-btn--ghost {
  height: auto;
  padding: 0 4px;
  color: #241569;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Promotion card */
.tui-promo-card {
  background-color: #f4f1fa;
  border: 1px solid #e4dcf5;
  border-radius: 14px;
  padding: 24px 26px;
}

.tui-promo-tag {
  display: inline-block;
  background-color: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.tui-promo-title {
  font-size: 19px;
  font-weight: 700;
  color: #241569;
  line-height: 1.3;
  margin-bottom: 8px;
}

.tui-promo-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .tui-showcase { flex-direction: column; align-items: stretch; }
  .tui-showcase-col--card { flex-basis: auto; max-width: 280px; }
}

/* Content sections */
.cs-section {
  padding: 80px 0;
}

.cs-section--white { background-color: var(--white); }
.cs-section--cream { background-color: var(--cream); }

.cs-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.cs-heading {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 24px;
  max-width: 860px;
}

.cs-body {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.8;
  max-width: 860px;
}

.cs-body + .cs-body {
  margin-top: 24px;
}

.cs-feature-list + .cs-body {
  margin-top: 40px;
}

.cs-cta-btn {
  margin-top: 40px;
  font-size: 18px;
  height: 56px;
  padding: 0 32px;
}

/* Two column layout */
.cs-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.cs-two-col-text .cs-body { max-width: none; }

.cs-feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}

.cs-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.75;
}

.cs-feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--blue);
  margin-top: 10px;
}

.cs-process-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 48px;
}

.cs-process-item {
  display: flex;
  gap: 24px;
}

.cs-process-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.cs-process-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.cs-process-content .cs-body {
  max-width: none;
}

/* Wireframe exploration row */
.wf-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin: 24px 0 8px;
}

.wf-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  border: 1px solid #e8e8e5;
}

.wf-card svg {
  display: block;
  width: 100%;
}

.wf-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 4px;
}

.wf-tag--v1 { background: #fff0e8; color: #c0653a; }
.wf-tag--v2 { background: #fff8e0; color: #b8930a; }
.wf-tag--v3 { background: #eafaf0; color: #2d9d5f; }

.wf-caption {
  font-size: 0.74rem;
  color: #666;
  margin-top: 10px;
  line-height: 1.5;
}

.wf-note {
  font-size: 0.78rem;
  color: #999;
  font-style: italic;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .wf-row { grid-template-columns: 1fr; }
}

/* Key design decisions — card layout */
.cs-decision-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
}

.cs-decision-top {
  padding: 36px 40px 28px;
}

.cs-decision-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 10px;
}

.cs-decision-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cs-decision-bottom {
  background: var(--cream);
  padding: 28px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  border-top: 1px solid #eee;
}

.cs-decision-col label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 8px;
  font-weight: 500;
}

.cs-decision-col p {
  font-size: 0.9rem;
  font-weight: 300;
  color: #444;
  line-height: 1.7;
  max-width: none;
}

/* Final UI showcase */
.cs-ui-showcase {
  margin: 40px 0;
}

.cs-ui-showcase img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  display: block;
}

.cs-ui-caption {
  font-size: 0.8rem;
  color: #999;
  margin-top: 10px;
  text-align: center;
  font-style: italic;
}

.cs-ui-split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  margin: 40px 0;
}

.cs-ui-split img {
  width: 220px;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

@media (max-width: 640px) {
  .cs-decision-bottom { grid-template-columns: 1fr; }
  .cs-ui-split { grid-template-columns: 1fr; }
  .cs-ui-split img { width: 100%; }
}

/* ── FAQ PAGE ── */

.faq-section {
  background-color: var(--white);
  padding: 80px 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 848px;
}

.faq-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-question {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
}

.faq-answer {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.75;
}

.contact-section {
  background-color: var(--white);
  padding: 80px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-sidebar {
  background: linear-gradient(135deg, #0085ff 0%, #0066cc 100%);
  border-radius: 24px;
  padding: 48px 40px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-sidebar-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin: 0;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: gap 0.2s, opacity 0.2s;
  padding: 8px 0;
}

.contact-link:hover {
  gap: 18px;
  opacity: 0.9;
}

.contact-link-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke: currentColor;
}

.contact-link span {
  flex: 1;
}

.contact-link-arrow {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke: currentColor;
}


/* ── CONTACT FORM ── */

.contact-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--cream);
  color: var(--text-dark);
  font-family: 'Outfit', sans-serif;
  transition: border-color 0.2s, background-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background-color: var(--white);
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

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

.contact-form .btn {
  align-self: flex-start;
  margin-top: 12px;
}


/* ── ABOUT PAGE ── */

.about-bio {
  background-color: var(--white);
  padding: 80px 0;
}

.about-bio-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-photo-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  aspect-ratio: 536 / 500;
}

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


.about-bio-heading {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 24px;
}

.about-bio-body {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-bio-body:last-child { margin-bottom: 0; }

/* ── HAMBURGER BUTTON ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 4px 24px 8px;
    border-bottom: 3px solid var(--border);
    box-shadow: 0 8px 20px rgba(0,0,0,0.10);
  }
  .nav.is-open { display: flex; }

  .nav-link {
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-link:last-child { border-bottom: none; }
  .nav-link:hover, .nav-link--active { border-bottom-color: var(--border); }
}

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    align-items: center;
  }
  .hero-title  { font-size: 56px; }
  .hero-bio    { max-width: 100%; }
  .hero-actions { justify-content: center; }

  .hero-photo-card { width: 260px; height: 338px; transform: none; box-shadow: none; }
  .hero-photo-card:hover { transform: none; }

  .work-grid { grid-template-columns: 1fr; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .footer {
    padding: 20px 0;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 14px;
  }

  .footer-line {
    display: none;
  }

  .footer-copy {
    flex: 1 1 100%;
  }

  .cs-title { font-size: 36px; }
  .cs-intro { font-size: 18px; }
  .cs-two-col { grid-template-columns: 1fr; gap: 40px; }

  .cs-process-item { gap: 16px; }
  .cs-process-number { width: 40px; height: 40px; font-size: 16px; }
  .cs-process-title { font-size: 20px; }

  .about-bio-inner { grid-template-columns: 1fr; gap: 48px; }

  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-sidebar { min-height: auto; padding: 40px 32px; }
}

/* ── TABLET LANDSCAPE ── */
@media (min-width: 901px) and (max-width: 1440px) and (orientation: landscape) {
  .about-bio-inner { align-items: flex-start; }
  .cs-title { margin-bottom: 0; }
  .cs-intro { margin-top: 16px; margin-bottom: 0; }
  .cs-meta { margin-top: 24px; }
}

/* ── TABLET PORTRAIT ── */
@media (min-width: 641px) and (max-width: 900px) and (orientation: portrait) {
  .hero-text { flex: 0 0 80%; max-width: 80%; }
  .cs-hero { padding: 0; }
  .cs-breadcrumb { margin-bottom: 0; }
  .cs-title { margin-bottom: 0; padding: 24px 0; }
  .about-bio { padding-top: 24px; }
  .faq-section { padding: 0; padding-top: 24px; }
  .cs-intro { margin-bottom: 24px; }
}

/* ── MOBILE LANDSCAPE ── */
@media (orientation: landscape) and (max-height: 500px) {
  main { margin-top: 24px; }
  .hero { padding: 0 0 48px; margin-top: 0; }
  .cs-hero { padding: 0; }
  .cs-breadcrumb { margin-bottom: 0; }
  .cs-title { margin-bottom: 0; padding: 24px 0; }
  .faq-section { padding: 48px 0; }
  .cs-hero-image { margin-top: 48px; }
  .about-bio-inner { align-items: flex-start; }
  .hero-inner {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 32px;
  }
  .hero-text { flex: 0 0 55%; max-width: 55%; }

  .hero-bio { font-size: 18px; }
  .hero-subtitle { font-size: 16px; }
  .hero-actions { justify-content: flex-start; }
  .hero-photo { flex: 1; display: flex; justify-content: center; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 48px 0; }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }

  .modal-overlay { align-items: center; padding: 12px; }
  .modal { padding: 16px 20px; max-width: 400px; }
  .modal-icon { width: 40px; height: 40px; margin-bottom: 8px; }
  .modal-title { font-size: 18px; margin-bottom: 6px; }
  .modal-desc { font-size: 13px; margin-bottom: 12px; }
  .modal-label { font-size: 14px; margin-bottom: 6px; }
  .modal-input { height: 40px; font-size: 14px; }
  .modal-error { font-size: 13px; }
  .modal-actions { margin-top: 10px; gap: 8px; }
  .modal-btn { height: 40px; font-size: 14px; padding: 0 20px; }
  .modal-divider { margin: 12px 0; }
  .modal-footer-text { font-size: 13px; }
  .hero-photo-card {
    width: 200px;
    height: 260px;
    transform: rotate(3deg);
    box-shadow: 0 24px 60px rgba(0,0,0,0.22), 0 4px 16px rgba(0,0,0,0.10);
  }
  .hero-photo-card:hover { transform: rotate(6deg); }
}

@media (max-width: 640px) {
  .hero { padding: 16px 0 48px; margin-top: 0; }
  .hero-inner { text-align: left; align-items: center; gap: 24px; }
  .hero-text { flex: 0 0 100%; max-width: 100%; }
  .hero-actions { justify-content: flex-start; }
  .hero-title { font-size: 38px; letter-spacing: -1px; line-height: 1.2; }
  .hero-bio   { font-size: 21px; }
  .hero-subtitle { font-size: 18px; }

  .section-title { font-size: 32px; }
  .section-header { margin-bottom: 24px; }
  .section { padding: 48px 0; }
  .services-grid { grid-template-columns: 1fr; gap: 14px; }

  .cs-title { font-size: 28px; }
  .cs-heading { font-size: 28px; }
  .cs-meta { gap: 24px; margin-top: 16px; padding-top: 16px; }
  .cs-section { padding: 56px 0; }
  .cs-img-card img { height: 300px; object-fit: cover; }

  .cs-hero { padding: 16px 0 48px; }
  .cs-breadcrumb { margin-bottom: 16px; }
  .cs-title { margin-bottom: 0; }
  .cs-intro { margin-top: 16px; margin-bottom: 0; }
  .faq-section { padding: 48px 0; }

  .modal { padding: 28px 24px; }
  .modal-icon { width: 52px; height: 52px; margin-bottom: 16px; }
  .modal-title { font-size: 22px; margin-bottom: 8px; }
  .modal-desc { font-size: 14px; margin-bottom: 20px; }
  .modal-input { height: 44px; }
  .modal-actions { margin-top: 16px; }
  .modal-divider { margin: 20px 0; }
  .about-bio-inner { gap: 16px; }
  .about-bio-text { margin-top: 48px; }
  .about-bio-heading { margin-bottom: 16px; }
  .about-bio-body { margin-bottom: 16px; }
}

/* ── LANG TOGGLE ── */
.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #ede9e3;
  border-radius: 9999px;
  padding: 4px;
  flex-shrink: 0;
}

.lang-toggle-pill {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  background: var(--white);
  border-radius: 9999px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.13);
  transition: left 0.32s cubic-bezier(0.34, 1.2, 0.64, 1), width 0.32s cubic-bezier(0.34, 1.2, 0.64, 1);
  pointer-events: none;
}

.lang-toggle-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 9999px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  transition: color 0.25s;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.lang-toggle-btn.is-active {
  color: var(--text-dark);
}

.lang-toggle-btn img {
  width: 20px;
  height: 15px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.lang-select-wrap { display: none; flex-shrink: 0; }

/* ── MOBILE LANGUAGE CUSTOM DROPDOWN ── */
.lang-custom-select { position: relative; }

.lang-custom-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ede9e3;
  border: none;
  border-radius: 9999px;
  padding: 6px 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
}

.lang-custom-btn .lang-flag {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.lang-chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.lang-custom-btn[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.13);
  list-style: none;
  margin: 0;
  padding: 4px;
  min-width: 90px;
  z-index: 200;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  transition: background 0.15s;
}

.lang-option img {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.lang-option:hover  { background: #f5f3ef; }
.lang-option.is-active { font-weight: 700; }

@media (max-width: 768px) {
  .header-right { gap: 10px; }
  .lang-toggle-btn { padding: 6px 10px; font-size: 13px; gap: 5px; }
  .lang-toggle-btn img { width: 18px; height: 13px; }
  .header-right > .lang-toggle { display: none; }
  .lang-select-wrap { display: flex; align-items: center; }
}
