/* ================================================
   SYNTHOS — Premium Web Development Studio
   styles.css
   ================================================ */

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  --color-bg:        #060D18;
  --color-bg-alt:    #0A1628;
  --color-bg-card:   #0E1B30;
  --color-surface:   #121F36;
  --color-gold:      #C9A84C;
  --color-gold-light:#D4BA6A;
  --color-gold-dark: #A8893A;
  --color-text:      #E8E6E1;
  --color-text-muted:#8A95A7;
  --color-text-dim:  #5A6578;
  --color-border:    rgba(201,168,76,0.12);
  --color-border-subtle: rgba(255,255,255,0.06);
  --color-glass:     rgba(10,22,40,0.82);

  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --header-h: 72px;
  --max-w: 1200px;

  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

::selection {
  background: rgba(201,168,76,0.3);
  color: #fff;
}

/* ---------- BILINGUAL (contract — verbatim) ---------- */
[data-l]{display:none}
:root:not(.lang-es) [data-l="en"]{display:revert}
:root.lang-es [data-l="es"]{display:revert}

/* ---------- SKIP LINK ----------
   Offscreen until keyboard focus, then drops in over the header. */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 2000;
  padding: 0.6rem 1.2rem;
  background: var(--color-gold);
  color: var(--color-bg);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: none;
}
.skip-link:focus {
  top: 0.75rem;
  outline: 2px solid var(--color-gold-light);
  outline-offset: 2px;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}

h1, h2, h3 { text-wrap: balance; }

h1 { font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

em {
  font-style: italic;
  color: var(--color-gold);
}

.gold-text { color: var(--color-gold); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}
.section-tag::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.6;
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-subtitle {
  max-width: 600px;
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

/* ---------- SVG UNDERLINE DRAW (.uline) ----------
   Markup: heading span carries .uline and contains an inline SVG with a
   stroke path. Path MUST have pathLength="1"; vector-effect keeps stroke
   width in screen px. Resting state (no-JS, reduced-motion, print) = drawn. */
.uline {
  position: relative;
  display: inline-block;
}
.uline svg {
  position: absolute;
  left: 0;
  bottom: -0.18em;
  width: 100%;
  height: auto;
  overflow: visible;
  pointer-events: none;
}
.uline path {
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 2.5px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.9;
}
.js .uline path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.35s;
}
.js .uline.in path {
  stroke-dashoffset: 0;
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

/* Keep section content above the .glow fields */
.section > .container {
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: var(--space-xl);
}

/* ---------- GLOW FIELDS (.glow) ----------
   Static stacked radial gold washes behind hero/work/investment.
   Pure CSS, zero animation. Parent section is position:relative. */
.glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 42% at 16% 18%, rgba(201,168,76,0.06) 0%, transparent 65%),
    radial-gradient(ellipse 46% 38% at 84% 72%, rgba(201,168,76,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 30% 24% at 55% 4%, rgba(212,186,106,0.07) 0%, transparent 75%);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 45%, var(--color-gold-dark) 100%);
  color: var(--color-bg);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.3);
}
.btn-primary:hover::after {
  left: 130%;
}

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--color-text);
}
.btn-ghost:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn-full { width: 100%; }

/* ---------- LANGUAGE PILL (.lang-pill) ----------
   #langToggle (desktop, in header) + #langToggleM (mobile overlay clone). */
.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  background: rgba(201,168,76,0.05);
  border: 1px solid rgba(201,168,76,0.35);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  transition: all var(--transition-base);
}
.lang-pill:hover {
  color: var(--color-gold-light);
  border-color: var(--color-gold);
  background: rgba(201,168,76,0.12);
}
.mobile-nav-overlay .lang-pill {
  font-size: 0.82rem;
  padding: 0.5rem 1.3rem;
  margin-top: 0.75rem;
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  background: var(--color-glass);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  position: relative;
  z-index: 1001;
}
.logo-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  transition: transform var(--transition-slow);
}
.logo:hover .logo-mark {
  transform: rotate(90deg);
}
.logo-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #fff;
}
.logo-os {
  color: var(--color-gold);
}

/* Desktop Nav */
.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  position: relative;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-base);
  letter-spacing: 0.02em;
}
.nav-link:hover { color: #fff; }
.nav-link:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}
.nav-link:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-cta {
  color: var(--color-bg) !important;
  background: var(--color-gold);
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.nav-cta:hover {
  background: var(--color-gold-light);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}
.menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}
.menu-toggle.active .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active .menu-bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(6,13,24,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
}
.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}
.mobile-nav-list {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-base);
  display: inline-block;
  transform: translateY(20px);
  opacity: 0;
}
.mobile-nav-overlay.open .mobile-nav-link {
  transform: translateY(0);
  opacity: 1;
}
.mobile-nav-overlay.open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-overlay.open .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-overlay.open .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-overlay.open .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav-overlay.open .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav-overlay.open .mobile-nav-link:nth-child(6) { transition-delay: 0.35s; }
.mobile-nav-overlay.open .mobile-nav-link:nth-child(7) { transition-delay: 0.4s; }
.mobile-nav-link:hover { color: var(--color-gold); }
.mobile-nav-cta {
  color: var(--color-gold) !important;
  font-weight: 600;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(201,168,76,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(10,22,40,0.8) 0%, transparent 50%),
    linear-gradient(180deg, transparent 0%, var(--color-bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-h) + var(--space-xl));
  padding-bottom: var(--space-xl);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-gold);
  border: 1px solid rgba(201,168,76,0.25);
  background: rgba(201,168,76,0.05);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: var(--space-md);
}

.hero-headline .gold-text {
  font-style: italic;
  letter-spacing: -0.01em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  max-width: 800px;
  margin-bottom: var(--space-md);
}

.hero-sub {
  max-width: 560px;
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--color-gold), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ---------- SERVICES ---------- */
.services {
  background: var(--color-bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.service-card {
  padding: var(--space-lg) var(--space-md);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 60%);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover::after { width: 100%; }

/* Corner gold tint + hover light sweep (generalized from .btn-primary::after) */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 40%, rgba(212,186,106,0.10) 50%, transparent 60%) no-repeat,
    linear-gradient(135deg, rgba(201,168,76,0.04) 0%, transparent 50%);
  background-size: 250% 100%, 100% 100%;
  background-position: 130% 0, 0 0;
  opacity: 0;
  transition: opacity var(--transition-slow), background-position 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  border-color: var(--color-border);
  translate: 0 -2px;
}
.service-card:hover::before {
  opacity: 1;
  background-position: -30% 0, 0 0;
}

.service-number {
  position: absolute;
  top: 1.1rem;
  right: 1.5rem;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  color: rgba(201,168,76,0.1);
  -webkit-text-stroke: 1px rgba(201,168,76,0.28);
  letter-spacing: 0;
  margin-bottom: 0;
  pointer-events: none;
  transition: all var(--transition-slow);
}
.service-card:hover .service-number {
  color: rgba(201,168,76,0.18);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: var(--space-sm);
  padding-right: 4.5rem;
}

.service-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.service-line {
  width: 40px;
  height: 2px;
  background: var(--color-gold);
  margin-top: var(--space-md);
  opacity: 0.5;
  transition: all var(--transition-base);
}
.service-card:hover .service-line {
  width: 60px;
  opacity: 1;
}

/* ---------- DIFFERENCE ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.diff-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

/* Diamond-outline icon frame (rotated square, icon counter-rotated) */
.diff-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: 9px 12px 9px 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 8px;
  background: rgba(201,168,76,0.04);
  color: var(--color-gold);
  transform: rotate(45deg);
  transition: border-color var(--transition-base), background var(--transition-base);
}
.diff-icon svg {
  width: 20px;
  height: 20px;
  transform: rotate(-45deg);
}
.diff-item:hover .diff-icon {
  border-color: var(--color-gold);
  background: rgba(201,168,76,0.08);
}

.diff-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.diff-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---------- WORK / CASE STUDY ---------- */
.work {
  background: var(--color-bg-alt);
}

/* Portfolio grid — three framed screenshot figures, no links */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg) var(--space-md);
  margin-bottom: var(--space-xl);
}

.pf-item {
  margin: 0;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30%;
  grid-template-rows: auto auto;
}

.pf-item .browser-frame {
  grid-column: 1 / -1;
  grid-row: 1;
  margin-right: 7%;
}

.pf-item .phone-frame {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  width: 93%;
  transform: translateY(12%);
  z-index: 2;
}

.pf-item figcaption {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: calc(9% + 1rem);
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.pf-item figcaption strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-text);
}

/* Browser frame — top bar with three 8px dots, hairline border, deep shadow */
.browser-frame {
  position: relative;
  padding-top: 30px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-bg-card);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 10px 30px rgba(0,0,0,0.45),
    0 30px 80px rgba(0,0,0,0.35);
}
.browser-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 30px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-subtle);
}
.browser-frame::after {
  content: '';
  position: absolute;
  top: 11px;
  left: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(201,168,76,0.55);
  box-shadow:
    14px 0 0 rgba(138,149,167,0.35),
    28px 0 0 rgba(138,149,167,0.18);
}
.browser-frame img {
  width: 100%;
  height: auto;
}

/* Phone frame — 28px radius, notch bar, overlaps browser lower-right */
.phone-frame {
  position: relative;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 28px;
  overflow: hidden;
  background: var(--color-bg-card);
  box-shadow:
    0 12px 32px rgba(0,0,0,0.5),
    0 30px 70px rgba(0,0,0,0.4);
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 46%;
  height: 15px;
  background: var(--color-bg-card);
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.case-study {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-surface) 100%);
}

.case-study-inner {
  padding: var(--space-xl);
}

.case-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
  display: block;
}

.case-client {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0.25rem;
}

.case-type {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
}

.case-narrative {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
  max-width: 680px;
  margin-bottom: var(--space-lg);
}
.case-narrative strong { color: var(--color-gold); font-weight: 600; }

.case-stats {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.stat { display: flex; flex-direction: column; }
.stat-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600; /* Cormorant loads at 600 max — no synthetic bold */
  color: #fff;
  line-height: 1;
}
.stat-unit {
  font-size: 1.2rem;
  color: var(--color-gold);
  font-weight: 500;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

.case-quote {
  border-left: 3px solid var(--color-gold);
  padding-left: var(--space-md);
  max-width: 600px;
}
.case-quote p {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.case-quote cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--color-gold);
  font-weight: 500;
}

/* ---------- PROCESS ---------- */
.process-steps {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(180deg, var(--color-gold), var(--color-border-subtle));
}

/* Connector line draws in on reveal (JS only; full line under no-JS/RM) */
.js .process-steps.reveal::before {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}
.js .process-steps.reveal.in::before {
  transform: scaleY(1);
}

/* The container itself never fades or slides — it carries .reveal only so
   the IO fires the connector draw. The steps inside run their own reveals. */
.js .process-steps.reveal {
  opacity: 1;
  transform: none;
}

.process-step {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md) 0;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-gold);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-bg);
  position: relative;
  z-index: 1;
  letter-spacing: 0.05em;
}

.step-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.step-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- INVESTMENT / PRICING ---------- */
.investment {
  background: var(--color-bg-alt);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  align-items: start;
}

.pricing-card {
  padding: var(--space-lg) var(--space-md);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-slow);
  position: relative;
}

/* Hover light sweep (generalized from .btn-primary::after; full-cover
   pseudo so the floating .pricing-badge is never clipped) */
.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(212,186,106,0.10) 50%, transparent 60%) no-repeat;
  background-size: 250% 100%;
  background-position: 130% 0;
  opacity: 0;
  transition: opacity var(--transition-slow), background-position 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
  border-color: var(--color-border);
  translate: 0 -2px;
}
.pricing-card:hover::before {
  opacity: 1;
  background-position: -30% 0;
}

.pricing-featured {
  border-color: var(--color-gold) !important;
  background: linear-gradient(180deg, rgba(201,168,76,0.06) 0%, transparent 40%);
  box-shadow: 0 0 60px rgba(201,168,76,0.08);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: var(--space-md);
  background: var(--color-gold);
  color: var(--color-bg);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}

.pricing-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.pricing-amount {
  margin-bottom: var(--space-sm);
}

.pricing-from {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.pricing-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600; /* Cormorant loads at 600 max — no synthetic bold */
  color: #fff;
}

.pricing-period {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.pricing-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--color-text);
  padding-left: 1.2rem;
  position: relative;
}
.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
}

/* ---------- STUDIO ---------- */
.studio-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xl);
  align-items: start;
}

.studio-text .section-tag { margin-bottom: var(--space-sm); }
.studio-text .section-title { margin-bottom: var(--space-lg); }

.studio-text p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.studio-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
}

.detail-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.detail-value {
  font-size: 1rem;
  color: var(--color-text);
}

/* ---------- STUDIO ET CHIP (.chip) ----------
   "Replies within 24 hours" pill; dot is drawn by ::before so JS only
   swaps text. Dot pulse goes static under reduced motion. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  background: rgba(201,168,76,0.05);
  padding: 0.45rem 1rem;
  border-radius: 100px;
}
.chip::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
  animation: pulse-dot 2s ease-in-out infinite;
}
.studio-details .chip { align-self: flex-start; }

/* ---------- CONTACT ---------- */
.contact {
  background: var(--color-bg-alt);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-text .section-tag { margin-bottom: var(--space-sm); }
.contact-text .section-title { margin-bottom: var(--space-md); }

.contact-intro {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
  font-size: 0.95rem;
  transition: color var(--transition-base);
}
.contact-item:hover { color: var(--color-gold); }
.contact-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--color-gold); }

.contact-footer {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Form */
.contact-form-wrap {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  transition: border-color var(--transition-base);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A95A7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

/* Placeholders are meaningful hints — muted, not dim (contrast law) */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

/* ---------- FOOTER ---------- */
.site-footer {
  padding: var(--space-xl) 0 var(--space-md);
  border-top: 1px solid var(--color-border-subtle);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.footer-brand .logo-mark {
  width: 30px;
  height: 30px;
}
.footer-brand .logo-text {
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--color-text);
}
.footer-brand .logo-os {
  color: var(--color-gold);
}

/* Meaningful text — muted, not dim (contrast law) */
.footer-tagline {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  line-height: 1.6;
}

.footer-made {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color var(--transition-base);
}
.footer-links a:hover { color: var(--color-gold); }

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ---------- SCROLL REVEAL ANIMATION ----------
   All hiding is gated behind .js (set by the inline head seed script).
   Without JS every .reveal/.fade-in is fully visible — no-JS bug fixed. */
.js .fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.js .fade-in.visible,
.js .fade-in.in {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    translate 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  /* Stagger only the reveal properties; hover translate/border stay instant */
  transition-delay: calc(var(--i,0)*70ms), calc(var(--i,0)*70ms), 0s, 0s, 0s;
}

/* Tilt-and-straighten: cards arrive at .6deg and settle to 0 in the same
   transition (.js .reveal.in below wins by source order at equal specificity) */
.js .service-card.reveal,
.js .pricing-card.reveal {
  transform: translateY(40px) rotate(0.6deg);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 500px; }
  .studio-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .pf-grid { gap: var(--space-lg) var(--space-sm); }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
    --space-2xl: 5rem;
  }

  .main-nav { display: none; }
  .menu-toggle { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; gap: var(--space-md); }

  .pf-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .pf-item {
    max-width: 540px;
    width: 100%;
    margin: 0 auto;
  }

  .hero-headline { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .hero-sub { font-size: 1rem; }

  .case-study-inner { padding: var(--space-md); }
  .case-stats { flex-direction: column; gap: var(--space-md); }

  .process-steps::before { left: 23px; }

  .studio-layout { gap: var(--space-md); }
  .studio-details { padding: var(--space-md); }

  .contact-form-wrap { padding: var(--space-md); }

  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-sm); }
  .hero-content { padding-top: calc(var(--header-h) + var(--space-lg)); }
  .nav-list { gap: 1.5rem; }
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: #1C2A42; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #2A3B5C; }

/* ---------- REDUCED MOTION ----------
   Every animation gets an explicit resting state — nothing hidden,
   nothing mid-draw. (Hero canvas static frame is handled in script.js.) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .fade-in, .reveal,
  .js .fade-in, .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .js .uline path {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }
  .js .process-steps.reveal::before {
    transform: none !important;
    transition: none !important;
  }
  .badge-dot, .chip::before { animation: none !important; opacity: 1; }
  .scroll-line { animation: none !important; opacity: 0.6; transform: none; }
  .btn-primary::after,
  .service-card::before,
  .pricing-card::before { transition: none !important; }
  .btn-primary:hover { transform: none; }
  .service-card:hover,
  .pricing-card:hover { translate: none; }
  .logo:hover .logo-mark { transform: none; }
}

/* ---------- PRINT ---------- */
@media print {
  *, *::before, *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .site-header,
  .menu-toggle,
  .mobile-nav-overlay,
  .hero-bg,
  .hero-scroll-indicator,
  .glow,
  .lang-pill,
  #heroCanvas { display: none !important; }

  .hero { min-height: auto; padding: 2rem 0; }
  .section { padding: 2rem 0; }

  .fade-in, .reveal,
  .js .fade-in, .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .uline path {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }
  .uline path { stroke: #000 !important; }
  .js .process-steps.reveal::before { transform: none !important; }
  .badge-dot, .chip::before { animation: none !important; }
  .pf-item .phone-frame { transform: none; }

  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
  .btn::after { display: none; }

  body { font-size: 12pt; line-height: 1.5; }
  h1 { font-size: 24pt; }
  h2 { font-size: 18pt; }
  h3 { font-size: 14pt; }
}
