@import url("https://cdn.jsdelivr.net/npm/@fontsource/geist-sans@latest/index.css");

:root {
  /* colors */
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --card-bg: #141414;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f2ee;
  --text-muted: #9a9893;
  --text-faint: #6f6d69;
  --accent: #b7ae9c;
  --accent-hover: #c9c1b0;
  --accent-ink: #17160f;
  --status-dot: #7cb47c;
  --input-bg: #16161522;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;

  /* type */
  --font-display: "Geist Sans", "Geist", sans-serif;
  --font-body: "Geist Sans", "Geist", sans-serif;

  --ease: cubic-bezier(0.16, 0.8, 0.24, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.nav-locked {
  overflow: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.02em;
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 80px;
}
@media (max-width: 900px) {
  .container {
    padding: 0 32px;
  }
}
@media (max-width: 560px) {
  .container {
    padding: 0 24px;
  }
}

/* focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* =========================
   NAV
   ========================= */
.nav {
  position: sticky;
  top: 0;
  /* Must be higher than .nav-overlay's z-index (190). .nav establishes its
     own stacking context (position + z-index), and .nav-overlay lives
     outside <nav> in the DOM — so this comparison happens at the root
     level. If .nav's z-index were lower than the overlay's, the overlay
     would render (and capture clicks) on top of the entire nav, including
     the mobile drawer nested inside it, even though the drawer itself has
     a "higher" z-index of 200 — because that 200 is only compared *within*
     nav's own local stacking context, never against the overlay directly. */
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.92) 60%,
    rgba(10, 10, 10, 0)
  );
  backdrop-filter: blur(6px);
}
.nav.sub-nav {
  padding: 24px 0;
  background: var(--bg);
  backdrop-filter: none;
}
@media (max-width: 560px) {
  .nav {
    padding: 20px 0;
  }
  .nav.sub-nav {
    padding: 18px 0;
  }
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
/* groups nav-links with the always-visible lang-switch + toggle so the
   whole cluster sits at the right edge on desktop */
.nav-group {
  display: flex;
  align-items: center;
  gap: 40px;
}
/* lang-switch + hamburger: stay in normal flow at all sizes, kept close together */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* =========================
   NAV TOGGLE (hamburger)
   ========================= */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent;
  flex-shrink: 0;
  position: relative;
  z-index: 210;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav-toggle:hover {
  border-color: var(--text);
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.4px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(6.4px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.4px) rotate(-45deg);
}

/* backdrop behind the slide-in panel */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  z-index: 190;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 22px;
  width: auto;
  transition: opacity 0.3s var(--ease);
}
.logo:hover img {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}
.nav-links a span {
  position: relative;
}
.nav-links a span::after {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover span::after {
  transform: scaleX(1);
}
.nav-link-icon {
  display: none;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    padding: 100px 32px 40px;
    background: rgba(17, 17, 17, 0.92);
    backdrop-filter: blur(1000px) saturate(160%) invert(1);
    -webkit-backdrop-filter: blur(1000px) saturate(160%) invert(1);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: -24px 0 48px -24px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    z-index: 200;
    overflow-y: auto;
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    font-size: 17px;
    color: #ffffff !important;
  }
  .nav-link-icon {
    display: inline-flex;
    flex-shrink: 0;
    color: var(--text-muted);
    opacity: 1;
  }
}

.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.back-link svg {
  transition: transform 0.3s var(--ease);
}
.back-link:hover {
  color: var(--text);
}
.back-link:hover svg {
  transform: translateX(-4px);
}

.portfolio-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
}
.portfolio-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-dot);
  box-shadow: 0 0 8px var(--status-dot);
}
.portfolio-tag:hover {
  color: var(--text);
}

/* =========================
   BUTTONS
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 24px -8px rgba(183, 174, 156, 0.5);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}
.btn-block {
  width: 100%;
}

/* =========================
   HERO
   ========================= */
.hero {
  padding-top: 120px;
  padding-bottom: 100px;
  text-align: center;
}
@media (max-width: 900px) {
  .hero {
    padding-top: 88px;
    padding-bottom: 72px;
  }
}
@media (max-width: 560px) {
  .hero {
    padding-top: 64px;
    padding-bottom: 56px;
  }
  .hero-status {
    margin-bottom: 24px;
  }
  .hero p.sub {
    margin-bottom: 32px;
  }
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.hero-status .line {
  width: 44px;
  height: 1px;
}
.hero-status .line-left {
  background: linear-gradient(to right, transparent, var(--border-strong));
}
.hero-status .line-right {
  background: linear-gradient(to left, transparent, var(--border-strong));
}
.hero-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-dot);
  box-shadow: 0 0 0 0 rgba(124, 180, 124, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(124, 180, 124, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(124, 180, 124, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(124, 180, 124, 0);
  }
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 76px);
  font-weight: 700;
  line-height: 1.08;
  color: #e9e6df;
  max-width: 1100px;
  margin: 0 auto 28px;
}
.hero p.sub {
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 44px;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* entrance choreography (landing hero) */
.reveal-in {
  opacity: 0;
  transform: translateY(22px);
  animation: revealUp 0.8s var(--ease) forwards;
}
@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   SECTION HEADERS
   ========================= */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--text-muted);
}
.section-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  color: #f2f0ea;
}
.page-head {
  padding-top: 56px;
  padding-bottom: 48px;
}
.page-head .section-title {
  margin-bottom: 14px;
}
.page-head .sub {
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 560px;
}

.section {
  padding: 40px 0 100px;
}
.section-head-row {
  margin-bottom: 44px;
}
@media (max-width: 900px) {
  .section {
    padding: 32px 0 72px;
  }
  .section-head-row {
    margin-bottom: 32px;
  }
  .page-head {
    padding-top: 40px;
    padding-bottom: 32px;
  }
}
@media (max-width: 560px) {
  .section {
    padding: 24px 0 56px;
  }
  .page-head {
    padding-top: 32px;
    padding-bottom: 28px;
  }
}

/* =========================
   PROJECT CARDS
   ========================= */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 820px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1100px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .grid,
  .grid-3 {
    gap: 18px;
  }
}

.card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-bg);
  display: block;
  opacity: 0;
  transform: translateY(28px);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card.in-view {
  animation: revealUp 0.75s var(--ease) forwards;
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.55);
}

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 760/521;
  background: #000;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.card:hover .card-media img {
  transform: scale(1.045);
}

.card-body {
  padding: 22px 26px 26px;
}
@media (max-width: 560px) {
  .card-body {
    padding: 18px 20px 22px;
  }
  .card-title {
    font-size: 20px;
  }
}
.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.card-row .tag-right {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-faint);
  transition: color 0.3s var(--ease);
}
.tag-arrow {
  flex-shrink: 0;
  transition: transform 0.35s var(--ease), color 0.3s var(--ease);
}
.card:hover .tag-right {
  color: var(--accent);
}
.card:hover .tag-arrow {
  transform: translate(2px, -2px);
}

.card-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s var(--ease), transform 0.45s var(--ease),
    border-color 0.35s var(--ease);
  flex-shrink: 0;
}
.card-arrow svg {
  transition: transform 0.45s var(--ease);
}
.card:hover .card-arrow {
  background: var(--accent);
  border-color: var(--accent);
}
.card:hover .card-arrow svg {
  transform: rotate(45deg);
}
.card:hover .card-arrow svg path {
  stroke: var(--accent-ink);
}

.card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #f4f2ee;
}

/* link-card wrapper used on landing (whole card clickable) */
a.card {
  cursor: pointer;
}

/* =========================
   CONTACT SECTION
   ========================= */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}
@media (max-width: 560px) {
  .contact {
    gap: 36px;
  }
  .form-card {
    padding: 24px 20px;
  }
  .info-row {
    max-width: 100%;
    padding: 14px 16px;
  }
}
.contact-copy p.sub {
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 440px;
  margin-bottom: 28px;
}
.info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    background 0.3s var(--ease);
  max-width: 340px;
}
.info-row:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.02);
}
.info-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-row .label {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 2px;
}
.info-row .value {
  font-size: 14.5px;
  color: var(--text);
  font-weight: 500;
}

.form-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  background: var(--card-bg);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 520px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.field label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 9px;
}
.field input,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.045);
  outline: none;
}
.field {
  margin-bottom: 20px;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  margin-top: 14px;
  font-size: 14px;
  min-height: 20px;
  text-align: center;
  transition: opacity 0.3s var(--ease);
}
.form-status.ok {
  color: #8fc98f;
}
.form-status.err {
  color: #e08b8b;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: var(--accent-ink);
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn.loading .spinner {
  display: inline-block;
}
.btn.loading .btn-label {
  opacity: 0.7;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   FOOTER
   ========================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-links {
    gap: 20px;
    order: 2;
  }
  .footer-copy {
    order: 3;
  }
}
.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
  transition: color 0.3s var(--ease);
}
.footer-links a:hover {
  color: var(--text);
}
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.footer-links a:hover::after {
  width: 100%;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-faint);
}
.footer-logo img {
  height: 20px;
}

/* =========================
   SCROLL REVEAL (generic)
   ========================= */
.fx-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fx-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* stagger helper */
.fx-reveal:nth-child(1) {
  transition-delay: 0s;
}
.fx-reveal:nth-child(2) {
  transition-delay: 0.08s;
}
.fx-reveal:nth-child(3) {
  transition-delay: 0.16s;
}

/* subtle ambient glow behind hero (pure CSS, no images) — tall enough to
   bleed softly into the top of the section below, cool neutral tone */
.hero-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1100px;
  pointer-events: none;
  background: radial-gradient(
    46% 55% at 50% 18%,
    rgba(96, 101, 116, 0.18),
    transparent 68%
  );
  z-index: -1;
}
.hero-wrap {
  position: relative;
}

/* continues the hero glow softly behind the featured cards, but weaker */
#featured {
  position: relative;
}

/* ============================================================
   Language switcher (merged from lang-switch.css)
   ============================================================ */
/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.2s ease;
  font-family: inherit;
}

.lang-btn:hover {
  color: rgba(255,255,255,0.8);
}

.lang-btn.active {
  color: #fff;
}

.lang-divider {
  color: rgba(255,255,255,0.25);
  font-size: 13px;
  user-select: none;
}

/* Sub-nav adjustment */
.sub-nav .back-link {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 640px) {
  .lang-btn {
    font-size: 12px;
    padding: 3px 4px;
  }
}

/* =========================
   FAQ ACCORDION
   ========================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.faq-item:hover {
  border-color: var(--border-strong);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.faq-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.faq-icon svg {
  transition: transform 0.35s var(--ease);
}
.faq-icon svg path {
  transition: stroke 0.3s var(--ease);
}
.faq-item.open .faq-icon {
  background: var(--accent);
  border-color: var(--accent);
}
.faq-item.open .faq-icon svg {
  transform: rotate(45deg);
}
.faq-item.open .faq-icon svg path {
  stroke: var(--accent-ink);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-answer p {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
}
@media (max-width: 560px) {
  .faq-question {
    padding: 18px 18px;
    font-size: 15px;
    gap: 14px;
  }
  .faq-answer p {
    padding: 0 18px 18px;
    font-size: 14px;
  }
}

/* =========================
   CASE STUDY POPUP
   (project cards on brand-identity / digital-products / product-design)
   ========================= */
.card[data-case] {
  cursor: pointer;
}

.case-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  z-index: 300;
}
.case-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.case-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: min(90vw, 640px);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  z-index: 301;
}
.case-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.case-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  z-index: 2;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.case-close:hover {
  border-color: var(--text);
  transform: rotate(90deg);
}

.case-modal-media {
  position: relative;
  aspect-ratio: 760/460;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: #000;
}
.case-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-modal-body {
  padding: 28px 32px 36px;
}

.case-modal-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.case-modal-tag {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.case-modal-concept {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
}

.case-modal-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #f4f2ee;
  margin-bottom: 26px;
}

.case-block {
  margin-bottom: 22px;
}
.case-block:last-child {
  margin-bottom: 0;
}
.case-block-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.case-block-label::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--accent);
}
.case-block p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .case-modal {
    width: 92vw;
    max-height: 88vh;
  }
  .case-modal-body {
    padding: 22px 20px 28px;
  }
  .case-modal-title {
    font-size: 23px;
  }
}
