/* ================================================================
   CHAI CREATIVES — STYLESHEET
   Multi-page SPA, dark theme
================================================================ */

/* ── CUSTOM PROPERTIES ──────────────────────────────────────── */
:root {
  --bg:           #0d0d0d;
  --bg-card:      #000000;
  --text:         #ffffff;
  --text-dim:     rgba(255, 255, 255, 0.60);
  --text-muted:   #a3a3a3;
  --text-faint:   rgba(255, 255, 255, 0.32);
  --accent:       #E9C349;
  --border:       rgba(196, 199, 199, 0.10);
  --border-hover: rgba(255, 255, 255, 0.20);

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w:  1200px;
  --gutter: 64px;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-sharp: cubic-bezier(0.87, 0, 0.13, 1);
}

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

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-loading { overflow: hidden; }
body.nav-open   { overflow: hidden; }

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

.serif { font-family: var(--serif); }

/* ── CUSTOM CURSOR ───────────────────────────────────────────── */
.cursor {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--text);
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.35s var(--ease-out),
              height 0.35s var(--ease-out),
              opacity 0.3s ease;
  will-change: transform, width, height;
}

.cursor.is-visible { opacity: 1; }
.cursor.is-hover   { width: 36px; height: 36px; }
.cursor.is-hidden  { opacity: 0 !important; }

@media (hover: hover) and (pointer: fine) {
  .cursor          { display: block; }
  body             { cursor: none; }
  a, button        { cursor: none; }
}

/* ── LOADER ──────────────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s var(--ease-sharp);
  will-change: transform;
}

.loader.is-leaving { transform: translateY(-100%); }

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.loader-icon-wrap {
  opacity: 0;
  transform: translateY(14px) scale(0.88);
  animation: ldIconIn 0.85s var(--ease-out) 0.2s forwards;
  margin-bottom: 16px;
}

.loader-icon { width: 48px; height: 48px; }

.loader-name-clip { overflow: hidden; }

.loader-name {
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text);
  opacity: 0;
  transform: translateY(110%);
  animation: ldNameIn 0.75s var(--ease-out) 0.58s forwards;
}

.loader-tagline-clip { overflow: hidden; margin-top: 6px; }

.loader-tagline {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-dim);
  opacity: 0;
  transform: translateY(110%);
  animation: ldNameIn 0.75s var(--ease-out) 0.72s forwards;
}

.loader-track {
  width: 96px;
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 9999px;
  overflow: hidden;
  opacity: 0;
  animation: ldFadeIn 0.25s ease 1.1s forwards;
  margin-top: 28px;
}

.loader-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 9999px;
  animation: ldProgress 1.4s var(--ease-out) 1.17s forwards;
}

@keyframes ldIconIn { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes ldNameIn { to { opacity: 1; transform: translateY(0); } }
@keyframes ldFadeIn { to { opacity: 1; } }
@keyframes ldProgress { to { width: 100%; } }

/* ── SITE WRAPPER ────────────────────────────────────────────── */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  opacity: 0;
  transition: opacity 0.75s ease 0.05s;
}

.site.is-ready { opacity: 1; }

/* ── HEADER ──────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 48px 0 32px;
  flex-shrink: 0;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition:
    padding        0.35s var(--ease-out),
    border-color   0.35s ease,
    background     0.35s ease,
    backdrop-filter 0.35s ease;
}

/* Compact state — triggered once user scrolls past the top */
.header.is-scrolled {
  padding: 18px 0;
  background: rgba(13, 13, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(196, 199, 199, 0.10);
}

.header.is-scrolled .header-inner { gap: 14px; }

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  position: relative;
}

/* Brand — always vertical */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.brand-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

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

.nav-link {
  position: relative;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.01em;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--text);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover { color: var(--text); }

.nav-link.is-active {
  color: var(--text);
  font-weight: 700;
  font-style: italic;
}

.nav-link.is-active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 1;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 9999px;
  transform-origin: center;
  transition: transform 0.38s var(--ease-out), opacity 0.25s ease;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE NAV ──────────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 490;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.mobile-link {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.40);
  opacity: 0;
  transform: translateY(18px);
  transition: color 0.25s ease,
              opacity 0.45s var(--ease-out),
              transform 0.45s var(--ease-out);
}

.mobile-nav.is-open .mobile-link              { opacity: 1; transform: translateY(0); }
.mobile-nav.is-open .mobile-link:nth-child(1) { transition-delay: 0.04s; }
.mobile-nav.is-open .mobile-link:nth-child(2) { transition-delay: 0.09s; }
.mobile-nav.is-open .mobile-link:nth-child(3) { transition-delay: 0.14s; }
.mobile-nav.is-open .mobile-link:nth-child(4) { transition-delay: 0.19s; }
.mobile-nav.is-open .mobile-link:nth-child(5) { transition-delay: 0.24s; }

.mobile-link:hover       { color: var(--text); }
.mobile-link.is-active   { color: var(--text); font-weight: 700; font-style: italic; }

/* ── MAIN + PAGE SYSTEM ──────────────────────────────────────── */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page {
  display: none;
  flex-direction: column;
  flex: 1;
}

.page.is-active {
  display: flex;
  animation: pageIn 0.45s var(--ease-out);
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ── PAGE BODY ───────────────────────────────────────────────── */
.page-body {
  flex: 1;
  padding: 80px var(--gutter);
}

.page-body--centered {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

/* ── PAGE CTA ────────────────────────────────────────────────── */
.page-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px var(--gutter) 80px;
  text-align: center;
}

.cta-tagline {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.8;
  letter-spacing: 0.01em;
}

/* ── CTA BUTTON ──────────────────────────────────────────────── */
.cta-btn {
  display: inline-block;
  position: relative;
  overflow: hidden;
  padding: 13px 33px;
  border: 1px solid var(--text);
  border-radius: 2px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text);
  transition: color 0.38s ease, border-color 0.38s ease;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.42s var(--ease-out);
  z-index: 0;
}

.cta-btn span {
  position: relative;
  z-index: 1;
}

.cta-btn:hover              { color: var(--bg); border-color: var(--text); }
.cta-btn:hover::before      { transform: scaleX(1); }

/* ── PAGE CTA MUTED (Clients page) ──────────────────────────── */
.page-cta--muted .cta-tagline {
  color: var(--text-muted);
}

.page-cta--muted .cta-btn {
  border-color: rgba(196, 199, 199, 0.40);
}

/* ── ABOUT PORTFOLIO BUTTON ──────────────────────────────────── */
.about-portfolio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  align-self: flex-start;
  padding: 13px 33px;
  border: 1px solid rgba(196, 199, 199, 0.40);
  border-radius: 2px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-dim);
  transition: color 0.38s ease, border-color 0.38s ease;
}

.about-portfolio-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.42s var(--ease-out);
  z-index: 0;
}

.about-portfolio-btn span {
  position: relative;
  z-index: 1;
}

.about-portfolio-btn:hover {
  color: var(--bg);
  border-color: var(--text);
}

.about-portfolio-btn:hover::before { transform: scaleX(1); }

/* ── PAGE LABEL ──────────────────────────────────────────────── */
.page-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── STATEMENT CARD ──────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 80px;
  max-width: 896px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.card-heading {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.card-body p {
  font-size: 18px;
  line-height: 1.556;
  letter-spacing: 0.01em;
  color: var(--text);
  margin: 0;
}

/* ── SERVICES ────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 896px;
  width: 100%;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.3s ease, transform 0.4s var(--ease-out), box-shadow 0.4s ease;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.10), 0 4px 6px -4px rgba(0,0,0,0.10);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.40);
}

.service-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 40px;
}

.service-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 23px;
  margin-bottom: 40px;
}

.service-list li {
  font-size: 18px;
  color: var(--text);
  letter-spacing: 0.01em;
  line-height: 1.8;
}

.service-price {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.price-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.4;
}

.price-amount {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
}

/* ── VALUE ───────────────────────────────────────────────────── */
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 23px;
  transition: border-color 0.3s ease, transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.value-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.40);
}

.value-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.value-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
}

.value-icon {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  margin-top: 3px;
}

.value-body {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.556;
  letter-spacing: 0.01em;
}

.value-card:hover .value-body { color: rgba(255, 255, 255, 0.90); }

/* ── CLIENTS ─────────────────────────────────────────────────── */
.clients-intro {
  text-align: center;
  margin-bottom: 64px;
}

.clients-heading {
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.clients-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.8;
  letter-spacing: 0.01em;
  max-width: 560px;
  margin: 0 auto;
}

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

.logo-card {
  background: #ffffff;
  border: 1px solid rgba(116, 120, 120, 0.10);
  padding: 40px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.logo-card--wide { grid-column: span 2; }

.logo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  z-index: 1;
  position: relative;
}

.logo-card img {
  width: 100%;
  height: 100%;
  max-height: 80px;
  object-fit: contain;
}

.clients-grid .logo-card:nth-child(1) img { max-height: 52px; }
.clients-grid .logo-card:nth-child(3) img { max-height: 52px; }
.clients-grid .logo-card:nth-child(4) img { max-height: 100px; }

.clients-caption {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.8;
  letter-spacing: 0.01em;
  text-align: center;
}

/* ── ABOUT ───────────────────────────────────────────────────── */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 64px;
  max-width: 896px;
  width: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.40);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about-heading {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
}

.body-copy {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.556;
  letter-spacing: 0.01em;
}

.body-copy--sm {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(163, 163, 163, 0.60);
}

.about-top {
  display: flex;
  flex-direction: column;
  gap: 23px;
}

.about-divider {
  display: none;
}

.about-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  border-top: 1px solid rgba(196, 199, 199, 0.20);
  padding-top: 49px;
}

.col-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.expertise-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.expertise-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.expertise-list svg { flex-shrink: 0; }

.philosophy-quote {
  font-size: 24px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding: 7px 0 8px 26px;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  padding: 48px var(--gutter) 49px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.footer-links { display: flex; gap: 24px; }

.footer-link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.22s ease;
}

.footer-link:hover { color: var(--text-dim); }

/* ================================================================
   RESPONSIVE — TABLET  ≤ 960px
================================================================ */
@media (max-width: 960px) {
  :root { --gutter: 40px; }

  /* Page rhythm */
  .page-body        { padding: 64px var(--gutter); }
  .page-cta         { padding: 32px var(--gutter) 64px; }

  /* Statement — 40px side margin matches gutter */
  .card                { padding: 56px var(--gutter); }

  /* Centered pages (Statement, About) — 40px side margin at tablet */
  .page-body--centered { padding-left: var(--gutter); padding-right: var(--gutter); }

  /* Container inner padding removed — page-body already supplies the 40px gutter */
  .container           { padding-left: 0; padding-right: 0; }

  /* Services */
  .services-grid    { gap: 64px var(--gutter); }
  .service-card     { padding: 40px; }
  .service-title    { font-size: 20px; }
  .service-list li  { font-size: 15px; }
  .price-amount     { font-size: 20px; }

  /* Value — vertical stack */
  .value-grid  { display: flex; flex-direction: column; gap: 24px; }
  .value-card  { width: 100%; padding: 48px; }
  .value-title { font-size: 20px; }
  .value-body  { font-size: 15px; line-height: 1.867; }

  /* Header — tablet scale-down */
  .brand-name { font-size: 32px; }
  .nav-link   { font-size: 16px; }

  /* Clients */
  .clients-heading  { font-size: 48px; }
  .clients-grid     { grid-template-columns: repeat(3, 1fr); }
  .logo-card--wide  { grid-column: span 1; }

  /* About */
  .about-card       { padding: 48px; gap: 40px; }
  .about-bottom     { padding-top: 40px; }
}

/* ================================================================
   RESPONSIVE — SMALL TABLET  ≤ 768px
================================================================ */
@media (max-width: 768px) {
  /* Services — stack to single column on narrow tablets */
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ================================================================
   RESPONSIVE — MOBILE  ≤ 680px
================================================================ */
@media (max-width: 680px) {
  :root { --gutter: 24px; }

  /* Header → mobile: vertical brand (icon above name) + hamburger as flex sibling */
  .header        { padding: 24px 0; }
  .header-inner  { flex-direction: row; align-items: flex-start; justify-content: space-between; padding-left: 40px; padding-right: 40px; gap: 0; }
  .brand         { flex: 1; flex-direction: column; align-items: flex-start; gap: 16px; }
  .brand-icon    { width: 34px; height: 40px; }
  .brand-name    { font-size: 24px; letter-spacing: -0.04em; }
  .nav           { display: none; }
  .hamburger     { display: flex; position: static; transform: none; }
  .mobile-nav    { display: flex; }

  /* Page rhythm — centered pages get gutter side padding so cards don't touch edges */
  .page-body           { padding: 40px var(--gutter); }
  .page-body--centered { padding: 40px var(--gutter); }
  .page-cta            { padding: 24px var(--gutter) 48px; }

  /* Statement */
  .card         { padding: 24px; gap: 24px; }
  .card-heading { font-size: 20px; }
  .card-body p  { font-size: 15px; line-height: 1.867; }

  /* Services */
  .services-grid   { grid-template-columns: 1fr; gap: 16px; max-width: 100%; }
  .service-card    { padding: 32px 24px; }
  .service-title   { font-size: 20px; margin-bottom: 28px; }
  .service-list    { margin-bottom: 28px; gap: 16px; }
  .service-list li { font-size: 16px; }

  /* Value — full-width column */
  .value-card        { width: 100%; padding: 24px 20px; gap: 14px; }
  .value-card-top    { padding-bottom: 12px; }
  .value-title       { font-size: 16px; }
  .value-body        { font-size: 15px; line-height: 1.6; }

  /* Clients */
  .clients-grid    { grid-template-columns: repeat(2, 1fr); }
  .logo-card--wide { grid-column: span 2; }
  .logo-card       { padding: 24px 20px; min-height: 120px; }
  .clients-heading { font-size: 32px; }
  .clients-sub     { font-size: 16px; }
  .clients-intro   { margin-bottom: 32px; }
  .clients-caption { font-size: 15px; }

  /* About — Figma 75:474 */
  .about-card          { padding: 40px 24px; gap: 40px; }
  .about-bottom        { grid-template-columns: 1fr; gap: 40px; padding-top: 25px; }
  .philosophy-quote    { font-size: 20px; line-height: 1.4; }
  .body-copy           { font-size: 16px; }
  .body-copy--sm       { font-size: 16px; }
  .about-heading       { font-size: 20px; }
  .col-label           { margin-bottom: 24px; }
  .about-portfolio-btn { width: 100%; align-self: stretch; padding-top: 17px; padding-bottom: 17px; }

  /* CTA */
  .cta-tagline { font-size: 15px; line-height: 1.6; }
  .cta-btn     { font-size: 14px; padding: 13px 33px; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; text-align: left; }
  .footer       { padding: 25px var(--gutter) 24px; }
}

/* ================================================================
   RESPONSIVE — SMALL MOBILE  ≤ 420px
================================================================ */
@media (max-width: 420px) {
  :root { --gutter: 16px; }

  /* Value */
  .value-card        { padding: 20px 16px; }
  .value-body        { font-size: 13px; }

  .clients-grid    { grid-template-columns: 1fr; }
  .logo-card--wide { grid-column: span 1; }
  .mobile-link     { font-size: 30px; }
  .clients-heading { font-size: 26px; }
}

/* ================================================================
   ENQUIRY MODAL
================================================================ */

/* Prevent body scroll when modal is open */
body.modal-open { overflow: hidden; }

/* Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Modal panel */
.modal {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid rgba(196, 199, 199, 0.12);
  border-radius: 6px;
  padding: 48px;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.32s var(--ease-out);
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}

/* Close button */
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(196, 199, 199, 0.18);
  border-radius: 2px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.modal-close:hover {
  color: var(--text);
  border-color: rgba(196, 199, 199, 0.5);
}

/* Header */
.modal-header   { margin-bottom: 32px; }
.modal-title    { font-size: 28px; font-weight: 500; margin-bottom: 8px; line-height: 1.3; }
.modal-sub      { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

/* Form layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-req  { color: var(--accent); margin-left: 2px; }
.form-opt  { font-weight: 400; text-transform: none; font-size: 11px; color: var(--text-faint); margin-left: 4px; }

/* Inputs */
.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(196, 199, 199, 0.18);
  border-radius: 2px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--sans);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-input::placeholder { color: rgba(163, 163, 163, 0.35); }

.form-input:focus {
  border-color: rgba(233, 195, 73, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

/* Select */
.form-select-wrap { position: relative; }

.form-select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-muted);
  pointer-events: none;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 36px;
}

.form-select option { background: #111; color: var(--text); }

/* Textarea */
.form-textarea { resize: vertical; min-height: 96px; line-height: 1.6; }

/* Error */
.form-error {
  font-size: 13px;
  color: #e05a5a;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* Submit button */
.form-submit {
  width: 100%;
  padding: 14px 32px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--sans);
  letter-spacing: 0.02em;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity 0.2s ease;
}

.form-submit:hover    { opacity: 0.88; }
.form-submit:disabled { opacity: 0.45; cursor: not-allowed; }

/* Ensure hidden attribute always wins over display rules */
[hidden] { display: none !important; }

/* Success state */
.modal-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 24px 0 8px;
}

.success-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(233, 195, 73, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.modal-success .modal-sub { margin-bottom: 8px; }
.modal-success .form-submit { max-width: 200px; }


/* ── MODAL RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 680px) {
  .modal         { padding: 32px 24px; }
  .modal-title   { font-size: 24px; }
  .form-row      { grid-template-columns: 1fr; gap: 0; }
}
