/* ixmops — landing styles
   Palette: warm paper, ink, oxblood accent. Editorial serif + grotesk + mono. */

:root {
  --accent: #7A2E2A;
  --ink: #1B1A16;
  --sec: #6E6B63;
  --faint: #9A968C;
  --line: #E4E0D6;
  --bg: #FBFAF6;
  --bg-alt: #F6F4EE;
  --pad-x: clamp(22px, 5vw, 64px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration: none; }

*:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@keyframes im-rot { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .im-mark, .status-dot { animation: none !important; }
  .marquee-track { animation: none !important; }
}

.section-inner { max-width: 1200px; margin: 0 auto; position: relative; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(251, 250, 246, 0.78);
  backdrop-filter: saturate(1.1) blur(10px);
  -webkit-backdrop-filter: saturate(1.1) blur(10px);
}
.nav-border {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity 0.25s;
}
.nav-border.visible { opacity: 1; }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font: 600 20px/1 'Hanken Grotesk', sans-serif;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}
.dot { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: clamp(22px, 3vw, 40px); }
.nav-link {
  font: 500 13px/1 'Hanken Grotesk', sans-serif;
  letter-spacing: 0.01em;
  color: var(--ink);
  padding: 6px 0;
  transition: opacity 0.2s;
}
.nav-link:hover { opacity: 0.55; }
.nav-cta {
  font: 500 12px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 9px 15px;
  transition: transform 0.22s, background 0.22s, color 0.22s;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); transform: translateY(-1px); }
.nav-menu-btn {
  background: none;
  border: 1px solid var(--line);
  padding: 9px 12px;
  cursor: pointer;
  font: 500 11px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
@media (min-width: 820px) { .nav-menu-btn { display: none; } }
@media (max-width: 819px) { .nav-links { display: none; } }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--bg);
  padding: 22px var(--pad-x);
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s, visibility 0.2s;
}
.mobile-menu.open { visibility: visible; opacity: 1; }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu-logo {
  font: 600 20px/1 'Hanken Grotesk', sans-serif;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.mobile-close-btn {
  background: none;
  border: 1px solid var(--line);
  padding: 9px 12px;
  cursor: pointer;
  font: 500 11px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.mobile-nav-links { margin: auto 0; display: flex; flex-direction: column; gap: 6px; }
.mobile-nav-link {
  font: 400 40px/1.15 'Newsreader', serif;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.mobile-cta-link {
  font: 500 12px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  padding: 16px;
  text-align: center;
  display: block;
}

/* ── REVEAL ── */
[data-reveal] { opacity: 0; transform: translateY(12px); will-change: opacity, transform; }
[data-reveal][data-rule] { opacity: 1; transform: scaleX(0); transform-origin: left; }

/* ── HERO ── */
.hero {
  scroll-margin-top: 88px;
  position: relative;
  padding: clamp(120px, 17vw, 190px) var(--pad-x) clamp(60px, 8vw, 96px);
}
.hero-rules {
  position: absolute;
  inset: 0;
  max-width: 1200px;
  margin: 0 auto;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--pad-x);
}
.hero-rules span { width: 1px; background: linear-gradient(to bottom, transparent, var(--line) 30%, transparent 85%); opacity: 0.6; }
.hero-annotations {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  font: 400 11px/1.5 'IBM Plex Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.hero-annotations .slash { color: var(--line); }
.hero-status { display: inline-flex; align-items: center; gap: 8px; color: var(--sec); }
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: im-rot 0s;
  box-shadow: 0 0 0 3px rgba(122, 46, 42, 0.12);
}
.hero-label {
  margin: 0 0 clamp(22px, 3vw, 34px);
  font: 400 12px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sec);
}
h1 { margin: 0; max-width: 17ch; }
.h1-line {
  display: block;
  font: 300 clamp(38px, 6.8vw, 88px)/1.02 'Newsreader', serif;
  letter-spacing: -0.028em;
  color: var(--ink);
}
.h1-accent { font-style: italic; color: var(--accent); }
.hero-desc { margin: clamp(30px, 4vw, 46px) 0 0; max-width: 56ch; }
.hero-desc p {
  margin: 0;
  font: 400 clamp(16px, 1.4vw, 19px)/1.6 'Hanken Grotesk', sans-serif;
  color: var(--sec);
}
.hero-ctas {
  margin-top: clamp(34px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 34px);
  flex-wrap: wrap;
}
.btn-primary {
  font: 600 14px/1 'Hanken Grotesk', sans-serif;
  letter-spacing: 0.01em;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 16px 26px;
  display: inline-block;
  transition: transform 0.22s, background 0.22s;
}
.btn-primary:hover { background: #000; transform: translateY(-1px); color: var(--bg); }
.btn-link-arrow {
  font: 500 14px/1 'Hanken Grotesk', sans-serif;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: gap 0.22s;
}
.btn-link-arrow:hover { gap: 14px; color: var(--ink); }
.btn-link-arrow .arrow { font-family: 'IBM Plex Mono', monospace; }
.hero-rule { height: 1px; background: var(--line); margin-top: clamp(56px, 7vw, 88px); }
.hero-footline { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hero-caption {
  margin: 16px 0 0;
  font: 400 italic 13px/1.4 'IBM Plex Mono', monospace;
  color: var(--faint);
}
.hero-caption-right { font-style: normal; }

/* ── MARQUEE ── */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 14px 0;
  background: var(--bg);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-group {
  font: 400 12px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sec);
  white-space: nowrap;
  padding-right: 8px;
}
.marquee-group i { font-style: normal; color: var(--accent); padding: 0 14px; }

/* ── SECTION HEADER ── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-tag {
  margin: 0 0 14px;
  font: 500 11px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sec);
}
.section-title {
  margin: 0;
  font: 400 clamp(28px, 3.7vw, 46px)/1.06 'Newsreader', serif;
  letter-spacing: -0.022em;
  color: var(--ink);
  max-width: 16ch;
}
.section-subtitle {
  margin: 0;
  max-width: 36ch;
  font: 400 15px/1.6 'Hanken Grotesk', sans-serif;
  color: var(--sec);
}

/* ── SERVICES ── */
.section-services {
  scroll-margin-top: 88px;
  padding: clamp(72px, 9vw, 128px) var(--pad-x);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 0;
}
.service-card {
  border-top: 1px solid var(--line);
  padding: 26px clamp(18px, 2vw, 32px) 34px 0;
  position: relative;
}
.service-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  height: 1px; width: 0;
  background: var(--accent);
  transition: width 0.5s cubic-bezier(0.22, 0.61, 0.28, 1);
}
.service-card:hover::before { width: min(100%, calc(100% - clamp(18px, 2vw, 32px))); }
.service-head { display: flex; justify-content: space-between; align-items: baseline; padding-right: 4px; }
.service-num { font: 400 13px/1 'IBM Plex Mono', monospace; color: var(--faint); }
.service-tick {
  font-size: 11px;
  color: var(--line);
  transition: color 0.3s, transform 0.5s;
}
.service-card:hover .service-tick { color: var(--accent); transform: rotate(90deg); }
.service-title {
  margin: 16px 0 10px;
  font: 400 22px/1.2 'Newsreader', serif;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.service-desc {
  margin: 0;
  font: 400 14.5px/1.6 'Hanken Grotesk', sans-serif;
  color: var(--sec);
}

/* ── STATEMENT ── */
.statement {
  padding: clamp(64px, 8vw, 110px) var(--pad-x);
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}
.statement-text {
  margin: 0;
  max-width: 34ch;
  font: 300 clamp(26px, 3.4vw, 44px)/1.25 'Newsreader', serif;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.statement-text em { font-style: italic; color: var(--accent); }

/* ── WORK ── */
.section-work {
  scroll-margin-top: 88px;
  padding: clamp(72px, 9vw, 128px) var(--pad-x);
  background: var(--bg-alt);
}
.work-rule { height: 1px; background: var(--line); }
.work-article {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 4vw, 52px);
  align-items: flex-start;
  padding: clamp(28px, 4vw, 44px) 0;
  position: relative;
}
.work-num {
  font: 300 clamp(28px, 4.4vw, 56px)/1 'Newsreader', serif;
  font-style: italic;
  color: var(--faint);
  min-width: 66px;
  font-variant-numeric: tabular-nums;
  transition: color 0.4s;
}
.work-article:hover .work-num { color: var(--accent); }
.work-info { flex: 1 1 220px; min-width: 200px; }
.work-name {
  margin: 0 0 8px;
  font: 400 clamp(22px, 2.5vw, 30px)/1.1 'Newsreader', serif;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.work-meta {
  margin: 0;
  font: 500 11px/1.4 'IBM Plex Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.work-desc {
  flex: 1 1 300px;
  max-width: 44ch;
  margin: 0;
  font: 400 15px/1.6 'Hanken Grotesk', sans-serif;
  color: var(--sec);
}
.work-arrow {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--accent);
  align-self: center;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s;
}
.work-article:hover .work-arrow { opacity: 1; transform: translateX(0); }
@media (max-width: 819px) { .work-arrow { display: none; } }

/* ── ABOUT ── */
.section-about {
  scroll-margin-top: 88px;
  padding: clamp(72px, 9vw, 128px) var(--pad-x);
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.about-title {
  margin: 0 0 24px;
  font: 400 clamp(28px, 3.6vw, 44px)/1.08 'Newsreader', serif;
  letter-spacing: -0.022em;
  color: var(--ink);
  max-width: 16ch;
}
.about-text {
  margin: 0 0 16px;
  font: 400 clamp(15px, 1.3vw, 17px)/1.65 'Hanken Grotesk', sans-serif;
  color: var(--sec);
  max-width: 50ch;
}
.about-list-rule { height: 1px; background: var(--line); margin-bottom: 8px; }
.about-list-item { display: flex; gap: 16px; padding: 15px 0; align-items: baseline; }
.about-list-num { font: 400 12px/1 'IBM Plex Mono', monospace; color: var(--accent); min-width: 22px; }
.about-list-text { font: 400 15.5px/1.5 'Hanken Grotesk', sans-serif; color: var(--ink); }
.about-tagline {
  margin: 24px 0 0;
  font: 400 italic 14px/1.5 'IBM Plex Mono', monospace;
  color: var(--faint);
}
.section-divider { height: 1px; background: var(--line); margin: clamp(52px, 7vw, 84px) 0; }
.engage-title {
  margin: 0 0 22px;
  font: 400 clamp(28px, 3.6vw, 44px)/1.08 'Newsreader', serif;
  letter-spacing: -0.022em;
  color: var(--ink);
  max-width: 15ch;
}
.engage-text {
  margin: 0 0 14px;
  font: 400 clamp(15px, 1.3vw, 17px)/1.65 'Hanken Grotesk', sans-serif;
  color: var(--sec);
  max-width: 48ch;
}
.engage-tagline { margin: 0; font: 400 italic 14px/1.5 'IBM Plex Mono', monospace; color: var(--faint); }
.engage-list-rule { height: 1px; background: var(--line); }
.engage-list-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.engage-list-item:last-child { border-bottom: none; }
.engage-item-name { font: 400 clamp(17px, 1.6vw, 20px)/1.3 'Newsreader', serif; color: var(--ink); }
.engage-item-num { font: 400 12px/1 'IBM Plex Mono', monospace; color: var(--faint); }

/* ── DARK WRAP (contact + footer) ── */
.dark-wrap {
  --ink: #F4F1E8;
  --sec: #A8A399;
  --faint: #7B766B;
  --line: #33312A;
  --bg: #14130F;
  --accent: #C4766A;
  background: var(--bg);
  color: var(--ink);
}
.dark-wrap ::selection { background: var(--accent); color: var(--bg); }

/* ── CONTACT ── */
.section-contact {
  scroll-margin-top: 88px;
  padding: clamp(72px, 9vw, 132px) var(--pad-x) clamp(60px, 8vw, 100px);
}
.contact-title {
  margin: 0 0 22px;
  font: 400 clamp(30px, 4.6vw, 58px)/1.04 'Newsreader', serif;
  letter-spacing: -0.026em;
  color: var(--ink);
  max-width: 18ch;
}
.contact-desc {
  margin: 0 0 clamp(40px, 5vw, 64px);
  max-width: 52ch;
  font: 400 clamp(15px, 1.3vw, 17px)/1.65 'Hanken Grotesk', sans-serif;
  color: var(--sec);
}
.success-box {
  border-top: 1px solid var(--ink);
  padding-top: clamp(32px, 4vw, 48px);
  max-width: 640px;
  display: none;
}
.success-box.visible { display: block; }
.success-label {
  margin: 0 0 18px;
  font: 400 12px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.success-title {
  margin: 0 0 16px;
  font: 400 clamp(24px, 3vw, 36px)/1.15 'Newsreader', serif;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.success-text { margin: 0; font: 400 15px/1.6 'Hanken Grotesk', sans-serif; color: var(--sec); }
.contact-form { max-width: 820px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(24px, 3vw, 40px) clamp(28px, 4vw, 56px);
}
.form-field-full { grid-column: 1 / -1; }
.form-label {
  display: block;
  font: 500 11px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sec);
  margin-bottom: 12px;
}
.form-label-opt { color: var(--faint); text-transform: none; letter-spacing: 0; }
.form-input, .form-textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 2px;
  font: 400 16px/1.4 'Hanken Grotesk', sans-serif;
  color: var(--ink);
  outline: none;
  border-radius: 0;
  transition: border-color 0.25s;
  -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus { border-bottom-color: var(--ink); }
.form-textarea { resize: vertical; line-height: 1.5; }
.form-error {
  margin: 8px 0 0;
  font: 400 12.5px/1.4 'Hanken Grotesk', sans-serif;
  color: var(--accent);
  display: none;
}
.form-error.visible { display: block; }
.form-actions {
  margin-top: clamp(36px, 4vw, 52px);
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.btn-submit {
  font: 600 14px/1 'Hanken Grotesk', sans-serif;
  letter-spacing: 0.01em;
  color: #14130F;
  background: #F4F1E8;
  border: 1px solid #F4F1E8;
  padding: 16px 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.22s, background 0.22s, opacity 0.22s;
}
.btn-submit:hover:not(:disabled) { background: #fff; transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.7; cursor: default; transform: none; }
.spinner {
  display: inline-block;
  width: 11px; height: 11px;
  border: 1.5px solid rgba(20, 19, 15, 0.3);
  border-top-color: #14130F;
  border-radius: 50%;
  animation: im-rot 0.7s linear infinite;
}
.form-note { margin: 0; max-width: 38ch; font: 400 12.5px/1.5 'IBM Plex Mono', monospace; color: var(--faint); }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 60px) var(--pad-x); }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
}
.footer-logo { font: 600 20px/1 'Hanken Grotesk', sans-serif; letter-spacing: -0.03em; color: var(--ink); }
.footer-tagline {
  margin: 12px 0 0;
  font: 400 12px/1.5 'IBM Plex Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer-cols { display: flex; gap: clamp(32px, 5vw, 72px); flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-label {
  font: 500 10px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 2px;
}
.footer-link { font: 400 14px/1 'Hanken Grotesk', sans-serif; color: var(--ink); transition: color 0.2s; }
.footer-link:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px;
  margin: clamp(32px, 4vw, 48px) auto 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font: 400 11px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.06em;
  color: var(--faint);
}

/* ── PROGRESS ── */
.progress-indicator {
  position: fixed;
  left: clamp(14px, 2vw, 26px);
  bottom: clamp(14px, 2vw, 26px);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 9px;
  pointer-events: none;
  font: 400 11px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6E6B63;
  transition: color 0.4s;
}
.progress-indicator.on-dark { color: #A8A399; }
.progress-mark {
  display: inline-block;
  color: #7A2E2A;
  font-size: 12px;
  animation: im-rot 9s linear infinite;
}
.progress-indicator.on-dark .progress-mark { color: #C4766A; }
.progress-slash { opacity: 0.4; }
