/* ============ INNMADE SITE STYLES ============ */
:root {
  --bg: #0a0a0a;
  --bg-soft: #141414;
  --fg: #f2f1ec;
  --fg-dim: #9a998f;
  --fg-mute: #5c5c56;
  --line: #26251f;
  --accent: #E8FF5C;
  --accent-ink: #0a0a0a;
  --display: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  --density: 1;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body { font-size: 15px; line-height: 1.55; letter-spacing: -0.005em; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: 0; background: none; color: inherit; cursor: pointer; padding: 0; }

::selection { background: var(--accent); color: var(--accent-ink); }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-dim); }
.display { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; line-height: 0.92; }
.italic { font-style: italic; }
.accent-text { color: var(--accent); }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.hr { height: 1px; background: var(--line); width: 100%; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(12px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center;
  color: var(--accent-ink); font-family: var(--display); font-size: 20px; line-height: 1;
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px dashed var(--accent); opacity: 0.35;
  animation: spin 24s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.brand-name { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; }
.brand-name em { font-style: italic; color: var(--accent); }

.nav-links { display: flex; gap: 28px; }
.nav-link { font-size: 14px; color: var(--fg-dim); transition: color .2s; position: relative; }
.nav-link:hover { color: var(--fg); }
.nav-link::before { content: attr(data-idx); font-family: var(--mono); font-size: 9px; color: var(--fg-mute); margin-right: 6px; vertical-align: top; }

.nav-right { display: flex; align-items: center; gap: 18px; }
.lang-toggle {
  display: flex; align-items: center; font-family: var(--mono); font-size: 11px; gap: 6px;
  border: 1px solid var(--line); padding: 6px 10px; border-radius: 999px;
}
.lang-toggle button { color: var(--fg-mute); padding: 0 2px; transition: color .2s; }
.lang-toggle button.active { color: var(--fg); }
.lang-toggle span { color: var(--fg-mute); }

.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 13px; font-weight: 500;
  transition: transform .2s, box-shadow .2s;
}
.cta-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px color-mix(in oklab, var(--accent) 30%, transparent); }
.cta-btn .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ============ HERO ============ */
.hero {
  position: relative; padding: 140px 32px 60px;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.hero-eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); }
  70% { box-shadow: 0 0 0 14px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-title {
  font-size: clamp(64px, 11.5vw, 200px);
  margin: 0;
}
.hero-title .row { display: block; overflow: hidden; }
.hero-title .rotator {
  display: inline-block;
  font-style: italic;
  color: var(--accent);
  position: relative;
  min-height: 1em;
}
.hero-title .rotator-inner {
  display: inline-block;
  transition: transform .55s cubic-bezier(.7,0,.2,1), opacity .3s;
}
.hero-title .rotator-inner.out { transform: translateY(-24%); opacity: 0; filter: blur(4px); }

.hero-bottom {
  margin-top: 80px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; align-items: end;
}
.hero-sub { font-size: 17px; max-width: 44ch; color: var(--fg); line-height: 1.45; }
.hero-meta { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); line-height: 1.7; }
.hero-meta strong { color: var(--fg); font-weight: 400; }

.hero-scroll {
  position: absolute; bottom: 28px; right: 32px;
  font-family: var(--mono); font-size: 11px; color: var(--fg-dim);
  display: flex; align-items: center; gap: 8px;
}
.hero-scroll .arrow { width: 20px; height: 1px; background: var(--fg-dim); position: relative; }
.hero-scroll .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-right: 1px solid var(--fg-dim); border-bottom: 1px solid var(--fg-dim); transform: rotate(-45deg); }

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 22px 0;
  display: flex; gap: 60px; white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; gap: 60px; animation: marq 40s linear infinite; flex-shrink: 0; }
.marquee-item { font-family: var(--display); font-size: 40px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 60px; }
.marquee-item::after { content: "✦"; color: var(--accent); font-size: 20px; }
@keyframes marq { to { transform: translateX(-100%); } }

/* ============ SECTION SHELL ============ */
.section { padding: 120px 32px; position: relative; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 180px 1fr; gap: 48px; margin-bottom: 72px; align-items: start; }
.section-kicker { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; padding-top: 12px; }
.section-title { font-family: var(--display); font-size: clamp(44px, 6vw, 88px); line-height: 0.96; letter-spacing: -0.02em; margin: 0; white-space: pre-line; }
.section-body { font-size: 17px; color: var(--fg-dim); max-width: 52ch; margin-top: 20px; line-height: 1.5; }

/* ============ SERVICES ============ */
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); }
.service {
  grid-column: span 2;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 32px 28px 40px; min-height: 380px;
  position: relative; overflow: hidden;
  transition: background .3s;
  display: flex; flex-direction: column;
}
.service:nth-child(3n) { border-right: 0; }
.service:hover { background: var(--bg-soft); }
.service:hover .service-name { color: var(--accent); }
.service.featured {
  grid-column: span 6;
  background: var(--accent);
  color: var(--accent-ink);
  min-height: 360px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  padding: 44px 40px 48px;
}
.service.featured .service-n, .service.featured .service-tag { color: var(--accent-ink); border-color: color-mix(in oklab, var(--accent-ink) 40%, transparent); }
.service.featured .service-name { color: var(--accent-ink); font-size: 76px; margin: 12px 0 20px; max-width: 14ch; }
.service.featured:hover .service-name { color: var(--accent-ink); }
.service.featured .service-desc { color: color-mix(in oklab, var(--accent-ink) 85%, transparent); font-size: 17px; line-height: 1.5; max-width: 44ch; }
.service.featured .service-deliverables { color: var(--accent-ink); grid-template-columns: 1fr 1fr; font-size: 11px; padding-top: 0; align-self: end; }
.service.featured .service-deliverables li::before { color: var(--accent-ink); }
.service.featured .feat-left { display: flex; flex-direction: column; }
.service.featured .feat-right { display: flex; flex-direction: column; justify-content: space-between; }
.service.featured .feat-badge { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 12px; border: 1px solid var(--accent-ink); border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; }
.service.featured .feat-badge::before { content: "★"; }
.service-n { font-family: var(--mono); font-size: 11px; color: var(--fg-mute); }
.service-tag { font-family: var(--mono); font-size: 10px; color: var(--fg-dim); padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; display: inline-block; margin-top: 14px; }
.service-name {
  font-family: var(--display); font-size: 42px; line-height: 1; letter-spacing: -0.02em;
  margin: 28px 0 16px; transition: color .25s;
}
.service-desc { font-size: 14px; color: var(--fg-dim); line-height: 1.55; max-width: 36ch; }
.service-deliverables {
  margin-top: auto; padding-top: 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px;
  font-family: var(--mono); font-size: 10px; color: var(--fg-dim);
}
.service-deliverables li { list-style: none; padding-left: 14px; position: relative; }
.service-deliverables li::before { content: "+"; position: absolute; left: 0; color: var(--accent); }

/* ============ WORK ============ */
.work-list { border-top: 1px solid var(--line); }
.work-row {
  display: grid; grid-template-columns: 80px 1fr 1.4fr 160px 40px;
  gap: 32px; padding: 28px 16px; align-items: center;
  border-bottom: 1px solid var(--line);
  position: relative; transition: padding .3s;
  cursor: pointer;
}
.work-row::before {
  content: ""; position: absolute; inset: 0;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.7,0,.2,1);
  z-index: 0;
}
.work-row > * { position: relative; z-index: 1; }
.work-row:hover::before { transform: scaleX(1); }
.work-row:hover { color: var(--accent-ink); padding-left: 32px; }
.work-row:hover .work-tag { color: var(--accent-ink); border-color: var(--accent-ink); }
.work-year { font-family: var(--mono); font-size: 12px; }
.work-client { font-family: var(--display); font-size: 36px; letter-spacing: -0.02em; line-height: 1; }
.work-project { font-size: 16px; color: var(--fg-dim); transition: color .3s; }
.work-row:hover .work-project { color: var(--accent-ink); }
.work-tag { font-family: var(--mono); font-size: 10px; color: var(--fg-dim); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; width: fit-content; transition: color .3s, border-color .3s; }
.work-arrow { text-align: right; font-family: var(--mono); font-size: 18px; transition: transform .3s; }
.work-row.featured { background: transparent; }
.work-row.featured .work-client { font-style: italic; }
.work-row.featured .work-star { position: absolute; left: -6px; top: 50%; transform: translateY(-50%); width: 10px; height: 10px; border-radius: 50%; background: var(--accent); z-index: 2; }

/* ============ PROCESS ============ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.step {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 32px 28px 44px; min-height: 280px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
}
.step-n { font-family: var(--display); font-size: 96px; line-height: 0.9; color: var(--accent); letter-spacing: -0.04em; }
.step-n sup { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); vertical-align: top; margin-left: 4px; }
.step-name { font-family: var(--display); font-size: 28px; margin-top: 28px; }
.step-body { font-size: 14px; color: var(--fg-dim); margin-top: 12px; line-height: 1.55; }

/* ============ ABOUT / STATS ============ */
.about-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; }
.about-body { font-size: 19px; line-height: 1.5; color: var(--fg); max-width: 48ch; }
.about-body p + p { margin-top: 20px; color: var(--fg-dim); font-size: 16px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat { padding: 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 160px; display: flex; flex-direction: column; justify-content: space-between; }
.stat-k { font-family: var(--display); font-size: 64px; letter-spacing: -0.03em; line-height: 1; }
.stat-v { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.05em; max-width: 20ch; }

/* ============ CONTACT ============ */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 4px; }
.field { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); padding: 16px 0; transition: border-color .2s; }
.field:focus-within { border-color: var(--accent); }
.field label { font-family: var(--mono); font-size: 10px; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  background: transparent; border: 0; outline: 0; color: var(--fg);
  font-family: var(--sans); font-size: 18px; padding: 4px 0;
}
.field textarea { resize: vertical; min-height: 80px; }
.field select { appearance: none; }
.submit-row { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.big-btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 18px 28px;
  background: var(--accent); color: var(--accent-ink); border-radius: 999px;
  font-size: 15px; font-weight: 500;
  transition: transform .2s;
}
.big-btn:hover { transform: translate(-2px, -2px); }
.big-btn .arrow-ico { width: 18px; height: 18px; border-radius: 50%; background: var(--accent-ink); color: var(--accent); display: grid; place-items: center; font-size: 11px; }

.contact-aside { position: sticky; top: 100px; }
.contact-aside .huge-mail { font-family: var(--display); font-style: italic; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -0.02em; }
.contact-aside .huge-mail:hover { color: var(--accent); }
.contact-info { margin-top: 40px; font-family: var(--mono); font-size: 12px; color: var(--fg-dim); line-height: 2; }
.contact-info strong { color: var(--fg); font-weight: 400; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: 60px 32px 40px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-tag { font-family: var(--display); font-size: 24px; max-width: 22ch; line-height: 1.1; letter-spacing: -0.01em; }
.footer-col h5 { font-family: var(--mono); font-size: 10px; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 16px; font-weight: 400; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 4px 0; font-size: 14px; color: var(--fg); }
.footer-col li:hover { color: var(--accent); }
.footer-bottom { margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--fg-mute); }
.footer-big {
  font-family: var(--display); font-size: clamp(100px, 18vw, 280px); line-height: 0.85;
  letter-spacing: -0.04em; margin-top: 64px;
  background: linear-gradient(180deg, var(--fg) 20%, transparent 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  overflow: hidden;
}

/* ============ TWEAKS PANEL ============ */
.tweaks-panel {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  width: 280px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px; display: none;
  font-family: var(--mono); font-size: 11px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.tweaks-panel.open { display: block; }
.tweaks-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.tweaks-head h4 { margin: 0; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 400; color: var(--fg-dim); }
.tweak-row { margin-bottom: 14px; }
.tweak-row label { display: block; color: var(--fg-dim); margin-bottom: 8px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.swatches { display: flex; gap: 8px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: transform .2s; }
.swatch.active { border-color: var(--fg); transform: scale(1.08); }
.seg { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button { flex: 1; padding: 7px 10px; color: var(--fg-dim); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.seg button.active { background: var(--accent); color: var(--accent-ink); }
.toggle { display: flex; justify-content: space-between; align-items: center; }
.toggle .sw { width: 32px; height: 18px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; }
.toggle .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--fg); transition: left .2s; }
.toggle.on .sw { background: var(--accent); }
.toggle.on .sw::after { left: 16px; background: var(--accent-ink); }

/* film grain */
.grain::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.15 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5; mix-blend-mode: overlay;
}

/* density */
[data-density="comfortable"] .section { padding-top: 160px; padding-bottom: 160px; }
[data-density="tight"] .section { padding-top: 80px; padding-bottom: 80px; }
[data-density="tight"] .service { min-height: 320px; padding-top: 22px; }

/* type systems */
[data-type="neo"] { --display: "Fraunces", "Instrument Serif", serif; }
[data-type="grotesk"] { --display: "Space Grotesk", "Helvetica Neue", sans-serif; --sans: "Space Grotesk", "Helvetica Neue", sans-serif; }
[data-type="grotesk"] .brand-name, [data-type="grotesk"] .display, [data-type="grotesk"] .hero-title, [data-type="grotesk"] .section-title, [data-type="grotesk"] .service-name, [data-type="grotesk"] .work-client, [data-type="grotesk"] .step-n, [data-type="grotesk"] .step-name, [data-type="grotesk"] .stat-k, [data-type="grotesk"] .footer-tag, [data-type="grotesk"] .footer-big, [data-type="grotesk"] .marquee-item, [data-type="grotesk"] .contact-aside .huge-mail { font-family: "Space Grotesk", "Helvetica Neue", sans-serif; font-weight: 500; font-style: normal; letter-spacing: -0.035em; }

/* custom cursor */
.cur-on { cursor: none; }
.cur-dot { position: fixed; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); pointer-events: none; z-index: 999; mix-blend-mode: difference; transform: translate(-50%, -50%); transition: width .25s, height .25s; }
.cur-dot.hover { width: 36px; height: 36px; }

/* responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 48px; }
  .services-grid { grid-template-columns: 1fr; }
  .service { grid-column: span 1; border-right: 0 !important; }
  .service.featured { grid-column: span 1; grid-template-columns: 1fr; gap: 20px; padding: 28px 22px 32px; min-height: auto; }
  .service.featured .service-name { font-size: 44px; }
  .work-row { grid-template-columns: 40px 1fr 28px; gap: 16px; padding: 20px 12px; }
  .work-client { font-size: 22px; line-height: 1.1; word-break: break-word; }
  .work-project, .work-tag { display: none; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .about-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .tweaks-panel { right: 12px; left: 12px; width: auto; bottom: 12px; }
}
