/* =========================================================
   Interapp Development — 2026 redesign
   Aesthetic: editorial/technical. Ink + cream + ember.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,300..900,0..100;1,9..144,300..900,0..100&family=Manrope:wght@300..800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink:        #0E0F10;
  --ink-2:      #17181A;
  --ink-3:      #1F2124;
  --rule:       #2A2B2E;
  --cream:      #F2EADA;
  --cream-dim:  #C8BFAE;
  --cream-mute: #8E8878;
  --ember:      #E8552B;
  --ember-soft: #F39E5C;
  --glow:       radial-gradient(ellipse at 70% 10%, rgba(232,85,43,0.22), transparent 55%),
                radial-gradient(ellipse at 10% 90%, rgba(243,158,92,0.10), transparent 60%);

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;

  --maxw: 1280px;
  --gut: clamp(1.25rem, 3vw, 2.5rem);
  --section-y: clamp(4rem, 10vh, 9rem);

  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.8'/></svg>");
}

main, header, footer { position: relative; z-index: 2; }

img { max-width: 100%; display: block; }

a { color: var(--cream); text-decoration: none; }
a:hover { color: var(--ember); }

::selection { background: var(--ember); color: var(--cream); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--cream);
  margin: 0 0 0.5em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

h1 { font-size: clamp(2.75rem, 7vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.75rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); font-variation-settings: "opsz" 72; }
h4 { font-size: 1.15rem; font-variation-settings: "opsz" 40; }

p { margin: 0 0 1em; color: var(--cream-dim); }
p strong { color: var(--cream); font-weight: 600; }

em {
  font-style: italic;
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--ember-soft);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--ember);
}

.index-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--cream-mute);
  letter-spacing: 0.1em;
}

/* ---------- Navigation ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 15, 16, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}

.main-nav .nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  gap: 2rem;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.logo img { height: 36px; width: auto; filter: brightness(0) invert(1); }

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2.25rem;
  align-items: center;
}
.nav-menu a {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.25s var(--ease);
}
.nav-menu a:hover { color: var(--cream); }
.nav-menu a.active { color: var(--ember); }
.nav-menu a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--ember);
}
.nav-menu a.btn-login {
  color: var(--ink);
  background: var(--cream);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-menu a.btn-login:hover {
  background: var(--ember);
  color: var(--cream);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--rule);
    padding: 1rem var(--gut) 2rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .nav-menu.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-menu li { border-bottom: 1px solid var(--rule); }
  .nav-menu a { display: block; padding: 1.1rem 0; font-size: 0.95rem; }
  .nav-menu a.btn-login { border-radius: 0; margin-top: 0.5rem; text-align: center; }
}

/* ---------- Buttons ---------- */

.btn, .cta-button {
  --bg: var(--ember);
  --fg: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bg);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn::after, .cta-button::after {
  content: "→";
  font-family: var(--body);
  font-size: 1rem;
  transition: transform 0.25s var(--ease);
}
.btn:hover, .cta-button:hover {
  transform: translateY(-2px);
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.btn:hover::after, .cta-button:hover::after { transform: translateX(4px); }

.btn-secondary { --bg: transparent; --fg: var(--cream); border-color: var(--cream); }
.btn-outline { --bg: transparent; --fg: var(--cream); border-color: var(--rule); }
.btn-outline:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- HERO (home) ---------- */

.hero {
  position: relative;
  padding: clamp(5rem, 13vh, 10rem) 0 clamp(4rem, 10vh, 8rem);
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--glow);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: end;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 {
  font-size: clamp(3rem, 9vw, 8rem);
  font-variation-settings: "opsz" 144, "SOFT" 30, "wght" 380;
  line-height: 0.95;
  margin: 1.5rem 0 0;
}
.hero h1 .line { display: block; }
.hero h1 .indent { display: inline-block; padding-left: clamp(2rem, 8vw, 7rem); }

.hero-subtitle {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--cream-dim);
  max-width: 48ch;
  margin: 2.5rem 0 2rem;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-mute);
  text-align: right;
  padding-bottom: 0.75rem;
}
.hero-meta .est {
  font-family: var(--display);
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 0.9;
  color: var(--ember);
  font-variation-settings: "opsz" 144, "wght" 300;
  letter-spacing: -0.04em;
}
@media (max-width: 900px) {
  .hero-meta { align-items: flex-start; text-align: left; margin-top: 2rem; }
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-scroll {
  margin-top: 4rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-mute);
}
.hero-scroll::before { content: ""; width: 40px; height: 1px; background: var(--cream-mute); }

/* ---------- Sections ---------- */

.section {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.section-head {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  margin-bottom: clamp(3rem, 6vh, 5rem);
  align-items: baseline;
}
.section-head .index-num { padding-top: 0.4rem; }
.section-head h2 { max-width: 22ch; }
.section-head .lede {
  grid-column: 2;
  color: var(--cream-dim);
  font-size: 1.1rem;
  max-width: 60ch;
  margin-top: 1rem;
}
@media (max-width: 700px) {
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
  .section-head .lede { grid-column: 1; }
}

.capabilities-overview { padding: var(--section-y) 0; border-bottom: 1px solid var(--rule); }

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.capability-card {
  padding: 2.5rem 1.75rem;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  position: relative;
  transition: background 0.35s var(--ease);
}
.capability-card:hover { background: var(--ink-2); }
.capability-card .num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--cream-mute);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1.5rem;
}
.capability-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.capability-card p { font-size: 0.95rem; color: var(--cream-dim); min-height: 4.5em; }
.capability-card .learn-more {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  transition: gap 0.25s var(--ease);
}
.capability-card .learn-more:hover { gap: 0.8rem; }

/* Quote */

.inspiration-widget {
  padding: clamp(4rem, 8vh, 6rem) 0;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.quote-box { max-width: 55ch; margin: 0 auto; }
.quote-box blockquote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.25;
  color: var(--cream);
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 80, "wght" 350;
  position: relative;
}
.quote-box blockquote::before {
  content: "“";
  position: absolute;
  left: -0.4em;
  top: -0.3em;
  font-size: 3em;
  color: var(--ember);
  opacity: 0.4;
  line-height: 1;
}

/* CTA */

.cta-section {
  padding: clamp(4rem, 10vh, 8rem) 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(232,85,43,0.18), transparent 65%);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 2; text-align: center; }
.cta-section h2 { font-size: clamp(2.25rem, 5vw, 4.5rem); max-width: 18ch; margin: 0 auto 1rem; }
.cta-section p { max-width: 48ch; margin: 0 auto 2.5rem; color: var(--cream-dim); }

/* Page headers */

.page-header, .page-hero {
  padding: clamp(4rem, 10vh, 7rem) 0 clamp(3rem, 6vh, 5rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.page-header::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(232,85,43,0.14), transparent 55%);
  pointer-events: none;
}
.page-header .container, .page-hero .container { position: relative; z-index: 2; }
.page-header h1, .page-hero h1 {
  font-size: clamp(2.75rem, 7vw, 6rem);
  max-width: 16ch;
}
.page-subtitle, .page-hero .lead {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  color: var(--cream-dim);
  max-width: 58ch;
  margin: 1.5rem 0 0;
  font-variation-settings: "opsz" 72, "SOFT" 60;
}

/* Content section (about) */

.content-section { padding: var(--section-y) 0; border-bottom: 1px solid var(--rule); }
.content-section.alt-bg { background: var(--ink-2); }
.content-wrapper { max-width: 960px; }
.content-wrapper h2 { margin-bottom: 1.5rem; }
.lead-text {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--cream);
  max-width: 62ch;
  margin-bottom: 3rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.info-card {
  padding: 2rem;
  border: 1px solid var(--rule);
  background: var(--ink-2);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.info-card:hover { border-color: var(--ember); transform: translateY(-3px); }
.info-card h3 { margin-bottom: 1rem; font-size: 1.35rem; }
.info-card p { font-size: 0.95rem; margin: 0; }

.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--rule);
}
.timeline-item { position: relative; padding-bottom: 3rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.3rem;
  top: 0.5rem;
  width: 11px; height: 11px;
  background: var(--ember);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--ink);
}
.timeline-year {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--ember);
  margin-bottom: 0.5rem;
}
.timeline-content h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.cta-card {
  display: block;
  padding: 2rem;
  border: 1px solid var(--rule);
  background: var(--ink-2);
  color: var(--cream);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.cta-card:hover { background: var(--ink-3); border-color: var(--ember); transform: translateY(-3px); color: var(--cream); }
.cta-card h3 { margin-bottom: 0.75rem; font-size: 1.35rem; }
.cta-card p { font-size: 0.9rem; margin-bottom: 1rem; }
.cta-link {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
}

/* Capabilities page */

.core-services, .tech-stack, .project-approach {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--rule);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.service-card {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 0.3s var(--ease);
  position: relative;
}
.service-card:hover { background: var(--ink-2); }
.service-card::before {
  content: "+";
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--mono);
  color: var(--cream-mute);
  font-size: 1rem;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.service-card:hover::before { color: var(--ember); transform: rotate(90deg); }
.service-card h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.service-card p { font-size: 0.95rem; margin: 0; }
.service-card a { color: var(--ember); border-bottom: 1px solid var(--ember); }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.tech-category {
  border-left: 2px solid var(--ember);
  padding: 0.25rem 0 0.25rem 1.25rem;
}
.tech-category h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.tech-category p { font-size: 0.95rem; margin: 0; color: var(--cream-dim); }

.approach-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  counter-reset: approach;
}
.approach-item {
  counter-increment: approach;
  position: relative;
  padding-top: 3.5rem;
}
.approach-item::before {
  content: "0" counter(approach);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--display);
  font-size: 3rem;
  color: var(--ember);
  font-variation-settings: "opsz" 144, "wght" 300;
  line-height: 1;
}
.approach-item h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }

/* Experience page */

.primary-industry, .additional-industries, .domain-expertise {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--rule);
}

.industry-feature {
  padding: 3rem;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ember);
}
.industry-feature h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}
.industry-icon { font-size: 1.5rem; filter: saturate(0.85); }
.industry-content p { font-size: 1.05rem; }
.industry-details {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.industry-details li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--cream-dim);
  font-size: 0.95rem;
}
.industry-details li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--ember);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.industry-card {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 0.3s var(--ease);
}
.industry-card:hover { background: var(--ink-2); }
.industry-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
.industry-card p { font-size: 0.95rem; margin: 0; }

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.expertise-item {
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}
.expertise-item h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.expertise-item p { font-size: 0.95rem; margin: 0; }

/* Products page */

.products-section { padding: var(--section-y) 0; border-bottom: 1px solid var(--rule); }
.products-section.coming-soon { background: var(--ink-2); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}
.product-card {
  padding: 2.5rem;
  border: 1px solid var(--rule);
  background: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.products-section.coming-soon .product-card { background: var(--ink-3); }
.product-card:hover { transform: translateY(-4px); border-color: var(--ember); }
.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.product-header h3 { font-size: 1.6rem; margin: 0; }
.product-badge {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember);
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--ember);
  border-radius: 999px;
  white-space: nowrap;
}
.product-card p { font-size: 0.95rem; margin: 0; flex: 1; }
.product-links { margin-top: 0.5rem; }
.product-status { margin-top: auto; }
.status-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-mute);
}

.section-intro {
  font-size: 1.1rem;
  max-width: 60ch;
  color: var(--cream-dim);
  margin-bottom: 3rem;
}
.private-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.private-product {
  padding: 2rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.private-product h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.private-product p { font-size: 0.9rem; margin: 1rem 0 0; }
.industry-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember-soft);
}

/* Contact / forms */

.contact-section { padding: var(--section-y) 0; border-bottom: 1px solid var(--rule); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 3rem; } }
.contact-form-wrapper h2, .contact-info h2 { margin-bottom: 1.5rem; }

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-mute);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--cream);
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.75rem 0;
  transition: border-color 0.25s var(--ease);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-bottom-color: var(--ember); }
.checkbox-group label {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--body);
  color: var(--cream-dim);
  font-size: 0.9rem;
}
.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  display: none;
}
.form-message.success { display: block; border-left: 2px solid #4ade80; color: #86efac; }
.form-message.error   { display: block; border-left: 2px solid var(--ember); color: var(--ember-soft); }

.contact-info .email-link {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--ember);
  margin: 0.5rem 0 2rem;
  border-bottom: 1px solid var(--ember);
  padding-bottom: 0.25rem;
  font-variation-settings: "opsz" 72, "SOFT" 80;
}
.why-contact { padding-top: 2rem; border-top: 1px solid var(--rule); }
.why-contact h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.why-contact ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0.6rem;
}
.why-contact li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--cream-dim);
  font-size: 0.95rem;
}
.why-contact li::before { content: "—"; position: absolute; left: 0; color: var(--ember); }

/* Login page */

.login-section { padding: clamp(4rem, 10vh, 7rem) 0; border-bottom: 1px solid var(--rule); }
.login-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 800px) { .login-wrapper { grid-template-columns: 1fr; gap: 3rem; } }
.login-box {
  padding: 3rem;
  border: 1px solid var(--rule);
  background: var(--ink-2);
}
.login-box h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}
.login-subtitle { color: var(--cream-dim); margin-bottom: 2rem; }
.login-links { margin-top: 1.5rem; text-align: center; }
.forgot-link {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-mute);
}
.forgot-link:hover { color: var(--ember); }
.security-info h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.security-info ul {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: grid; gap: 0.5rem;
}
.security-info li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--cream-dim);
  font-size: 0.95rem;
}
.security-info li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ember);
  font-family: var(--mono);
}

/* Legal pages */

.privacy-policy, .terms-of-service {
  padding: clamp(4rem, 8vh, 6rem) 0;
  border-bottom: 1px solid var(--rule);
}
.privacy-policy h1, .terms-of-service h1 {
  max-width: 20ch;
  margin-bottom: 0.5rem;
}
.last-updated {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-mute);
  margin-bottom: 3rem;
}
.policy-content, .terms-content {
  max-width: 72ch;
  font-size: 1rem;
}
.policy-content h2, .terms-content h2 {
  font-size: 1.6rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.policy-content h3, .terms-content h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  color: var(--ember-soft);
}
.policy-content ul, .terms-content ul {
  padding-left: 1.25rem;
  color: var(--cream-dim);
}
.policy-content li, .terms-content li { margin-bottom: 0.4rem; }
.policy-content .contact-info, .terms-content .contact-info {
  margin-top: 1rem;
  padding: 1.5rem;
  border-left: 2px solid var(--ember);
  background: var(--ink-2);
}

/* Footer */

footer {
  padding: 3rem 0 2.5rem;
  background: var(--ink);
  border-top: 1px solid var(--rule);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-info p {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--cream-mute);
  margin: 0.25rem 0;
}
.footer-info a { color: var(--cream-dim); }
.footer-info a:hover { color: var(--ember); }

/* Page-load reveal */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: reveal 0.9s var(--ease) forwards;
  }
  .reveal.d1 { animation-delay: 0.08s; }
  .reveal.d2 { animation-delay: 0.18s; }
  .reveal.d3 { animation-delay: 0.28s; }
  .reveal.d4 { animation-delay: 0.38s; }
  .reveal.d5 { animation-delay: 0.48s; }
}
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

/* Marquee stack bar */

.stack-bar {
  display: flex;
  gap: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-mute);
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
          mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.stack-bar-track {
  display: flex;
  gap: 2.5rem;
  animation: marquee 45s linear infinite;
}
.stack-bar-track span::before {
  content: "◆";
  color: var(--ember);
  margin-right: 0.65rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
