/* ============================================================
   LMR Studio — Standalone Pages (studio, services, contact, work index)
   Self-contained: redeclares the design tokens, matches home.css/work.css
   ============================================================ */

:root {
  --paper: #F2EEE6;
  --paper-dim: #E9E3D6;
  --ink: #16130F;
  --accent: #4B36F5;
  --accent-light: #9D93FF;
  --accent-soft: rgba(75, 54, 245, 0.08);
  --accent-line: rgba(75, 54, 245, 0.3);
  --orange: #FF4D00;
  --green: #1F9D55;
  --muted: rgba(22, 19, 15, 0.6);
  --label: rgba(22, 19, 15, 0.42);
  --line: rgba(22, 19, 15, 0.14);
  --pad: clamp(20px, 4.5vw, 76px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-d: 'Clash Display', 'Inter', system-ui, sans-serif;
  --font-s: 'Instrument Serif', Georgia, serif;
  --font-b: 'Inter', system-ui, sans-serif;
  --font-m: 'JetBrains Mono', ui-monospace, monospace;
  --cx: -500px;
  --cy: -500px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* Cursor glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9989;
  pointer-events: none;
  background: radial-gradient(480px circle at var(--cx) var(--cy), rgba(75, 54, 245, 0.06) 0%, transparent 65%);
}

/* Film grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (hover: none) { body::before { display: none; } }

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
  transform: translate(calc(var(--cx) - 50%), calc(var(--cy) - 50%));
  transition: transform 0.15s ease-out, opacity 0.2s;
  opacity: 0.9;
}
.cursor-dot.is-hovering { transform: translate(calc(var(--cx) - 50%), calc(var(--cy) - 50%)) scale(2.6); opacity: 0.45; }
@media (hover: none), (pointer: coarse) { .cursor-dot { display: none; } }

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 9500;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 10000;
  font-family: var(--font-m);
  font-size: 12px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ─── Nav ────────────────────────────────────────────────── */

#siteNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px var(--pad);
  border-bottom: 1px solid transparent;
  transition: padding 0.4s ease, background-color 0.4s ease, border-color 0.4s ease;
}
#siteNav.is-scrolled {
  padding-top: 13px;
  padding-bottom: 13px;
  background: rgba(242, 238, 230, 0.86);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav-monogram {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: flex-start;
  gap: 1px;
}
.nav-monogram sup { font-size: 8px; margin-top: 2px; }

.pg-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  font-family: var(--font-m);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pg-nav-links a { position: relative; padding: 4px 0; color: var(--muted); transition: color 0.3s ease; }
.pg-nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.pg-nav-links a:hover { color: var(--ink); }
.pg-nav-links a:hover::after, .pg-nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.pg-nav-links a[aria-current="page"] { color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-m);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: 100px;
  padding: 9px 18px;
  white-space: nowrap;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 860px) {
  .pg-nav-links { display: none; }
}

/* ─── Page shell ─────────────────────────────────────────── */

.pg-main { padding-top: clamp(120px, 16vh, 190px); }

.pg-section { padding: clamp(48px, 7vw, 96px) var(--pad); }
.pg-section + .pg-section { padding-top: 0; }

.pg-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(28px, 4vw, 52px);
}

.eyebrow {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
}
.eyebrow-right { text-align: right; }

.pg-hero { padding: 0 var(--pad) clamp(36px, 5vw, 72px); }

.pg-title {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(42px, 8.4vw, 118px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.pg-title em { font-family: var(--font-s); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.pg-lede {
  max-width: 46ch;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  color: var(--muted);
}
.pg-lede strong { color: var(--ink); font-weight: 500; }

.pg-manifesto {
  font-family: var(--font-d);
  font-weight: 500;
  font-size: clamp(20px, 3.1vw, 38px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  max-width: 30ch;
}

/* ─── Stats ──────────────────────────────────────────────── */

.pg-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 26px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.pg-stat-value {
  display: block;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.pg-stat-label { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); max-width: 26ch; }

/* ─── Service cards ──────────────────────────────────────── */

.svc-list { border-top: 1px solid var(--line); }
.svc {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(16px, 3vw, 46px);
  padding: clamp(26px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.svc-num { font-family: var(--font-m); font-size: 12px; color: var(--label); padding-top: 6px; }
.svc-title {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(20px, 2.7vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.svc-body p { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 54ch; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.svc-chips li {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.03em;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 11px;
  color: var(--muted);
}
.svc-related { margin-top: 16px; font-size: 13px; color: var(--label); }
.svc-related a { border-bottom: 1px solid var(--accent-line); color: var(--ink); transition: border-color 0.3s ease; }
.svc-related a:hover { border-bottom-color: var(--accent); }

@media (max-width: 940px) {
  .svc { grid-template-columns: 40px minmax(0, 1fr); }
  .svc-body { grid-column: 2; }
}

/* ─── Work index ─────────────────────────────────────────── */

.wk-group + .wk-group { margin-top: clamp(40px, 5vw, 70px); }
.wk-group-title {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 18px;
}
.wk-list { border-top: 1px solid var(--line); }
.wk-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.3fr) minmax(0, 1fr) 28px;
  align-items: center;
  gap: clamp(12px, 2.4vw, 34px);
  padding: clamp(18px, 2.2vw, 28px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.45s var(--ease), background-color 0.45s var(--ease);
}
.wk-item:hover { padding-left: 14px; background: rgba(75, 54, 245, 0.035); }
.wk-item-num { font-family: var(--font-m); font-size: 12px; color: var(--label); }
.wk-item-title {
  font-family: var(--font-d);
  font-weight: 500;
  font-size: clamp(18px, 2.3vw, 27px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.wk-item-cat { font-size: 13px; color: var(--muted); }
.wk-item-arrow { font-size: 15px; color: var(--accent); justify-self: end; transition: transform 0.4s var(--ease); }
.wk-item:hover .wk-item-arrow { transform: translate(3px, -3px); }

@media (max-width: 760px) {
  .wk-item { grid-template-columns: 34px minmax(0, 1fr) 24px; }
  .wk-item-cat { display: none; }
}

/* ─── Inline content blocks ──────────────────────────────── */

.pg-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 4vw, 60px);
}
.pg-block h2 {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(19px, 2.3vw, 27px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.pg-block p { color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 52ch; }
.pg-block p + p { margin-top: 12px; }

.pg-steps { counter-reset: step; margin-top: 8px; }
.pg-steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 0 20px 54px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.pg-steps li::before {
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 21px;
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--accent);
}
.pg-steps strong { display: block; font-family: var(--font-d); font-weight: 500; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 4px; }

.pg-stack {
  font-family: var(--font-d);
  font-weight: 500;
  font-size: clamp(19px, 3vw, 34px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  max-width: 34ch;
}
.pg-stack i { font-style: normal; color: var(--orange); padding: 0 6px; }

/* ─── Contact ────────────────────────────────────────────── */

.pg-contact-cta {
  display: block;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(30px, 5vw, 64px) 0;
  margin-bottom: clamp(30px, 4vw, 56px);
}
.pg-contact-cta .pg-contact-line {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(30px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  transition: color 0.35s var(--ease);
}
.pg-contact-cta:hover .pg-contact-line { color: var(--accent); }
.pg-contact-cta em { font-family: var(--font-s); font-style: italic; font-weight: 400; }
.pg-contact-arrow { font-size: 0.5em; color: var(--accent); }

.pg-faq dt {
  font-family: var(--font-d);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  padding-top: 20px;
}
.pg-faq dd { color: var(--muted); font-size: 15px; line-height: 1.65; padding: 8px 0 20px; border-bottom: 1px solid var(--line); max-width: 60ch; }

/* ─── Footer ─────────────────────────────────────────────── */

.pg-footer {
  border-top: 1px solid var(--line);
  padding: clamp(34px, 5vw, 60px) var(--pad) 34px;
  display: grid;
  gap: clamp(24px, 3vw, 44px);
}
.pg-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(22px, 3vw, 48px);
}
.pg-footer-label {
  display: block;
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 12px;
}
.pg-footer-col a, .pg-footer-col p { display: block; font-size: 14px; color: var(--muted); }
.pg-footer-col a:hover { color: var(--accent); }
.pg-footer-nav a { display: block; padding: 5px 0; font-size: 14px; color: var(--muted); transition: color 0.3s ease, transform 0.3s var(--ease); }
.pg-footer-nav a:hover { color: var(--ink); transform: translateX(3px); }
.pg-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--label);
}
.pg-footer-bar a:hover { color: var(--ink); }

.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, background-color 0.3s ease, color 0.3s ease;
  z-index: 9200;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: var(--paper); }

/* ─── Work index: title cell carries a one-line summary ──── */

.wk-item-cell { display: block; }
.wk-item-desc {
  display: block;
  margin-top: 7px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 58ch;
}

/* ─── Inline note ────────────────────────────────────────── */

.pg-note { font-size: 14px; line-height: 1.65; color: var(--muted); max-width: 64ch; }
.pg-note a { color: var(--ink); border-bottom: 1px solid var(--accent-line); transition: border-color 0.3s ease; }
.pg-note a:hover { border-bottom-color: var(--accent); }

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