/* ============================================================
   Queed R&D House — landing
   Style: 1a "Blueprint" structure (drafting paper, hairline
   grid, IBM Plex Mono labels, signal blue) blended with
   1c "Research Institute" typography (Newsreader serif display).
   ============================================================ */

:root {
  --paper: #f4f2ee;
  --paper-hi: #fbfaf7;
  --ink: #1a1917;
  --rule: #d8d4cc;
  --rule-soft: #e2ded4;
  --muted: #4a463f;
  --faint: #8a857c;
  --blue: #0047d6;
  --blue-dark: #0038a8;
  --dark: #1a1917;
  --dark-muted: #a8a29a;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'Archivo', system-ui, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  background: #e8e6e1;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ---- sheet frame -------------------------------------------- */
.sheet {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--paper);
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
}

section { border-bottom: 1px solid var(--rule); }

.pad { padding: 72px 44px; }

/* ---- type helpers ------------------------------------------- */
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.kicker--faint { color: var(--faint); }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.section-head h2 { font-size: 42px; line-height: 1.08; }

.section-head .index {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--faint);
  white-space: nowrap;
}

.section-sub {
  margin: 10px 0 0;
  font-size: 17px;
  color: var(--muted);
  max-width: 56ch;
}

/* ---- buttons ------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 15px 26px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  border: 0;
}

.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #33302c; }

.btn--ghost {
  border: 1px solid #c6c1b7;
  color: var(--muted);
  padding: 14px 25px;
}
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ---- header ------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 44px;
  background: rgba(244, 242, 238, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}

.brand {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img { width: 26px; height: 26px; }

.brand .dim { color: var(--faint); }

.site-nav {
  display: flex;
  gap: 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.site-nav a:hover { color: var(--blue); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 12px;
}

.lang { color: var(--faint); }
.lang .off { color: #c6c1b7; }

.header-cta .btn { padding: 9px 16px; white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  color: var(--ink);
  cursor: pointer;
}

/* ---- hero --------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero-copy {
  padding: 80px 44px 64px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  border-right: 1px solid var(--rule);
}

.hero-copy h1 {
  font-size: 68px;
  line-height: 1.02;
  font-weight: 300;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-copy h1 .accent { color: var(--blue); }

.hero-copy .lede {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 44ch;
  text-wrap: pretty;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-spec {
  border-top: 1px solid var(--rule-soft);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
  max-width: 420px;
}

.hero-spec div { display: flex; justify-content: space-between; gap: 16px; }
.hero-spec span:last-child { color: var(--ink); text-align: right; }

.hero-fig {
  position: relative;
  min-height: 560px;
  background: repeating-linear-gradient(135deg, #e6e3dc 0 2px, var(--paper) 2px 9px);
}

.hero-fig img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fig-tag {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--paper);
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}

/* ---- stats strip -------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat { padding: 22px 44px; border-right: 1px solid var(--rule); }
.stat:not(:first-child) { padding: 22px 24px; }
.stat:last-child { border-right: 0; }

.stat .value { font-size: 26px; font-weight: 500; }

.stat .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-top: 4px;
  text-transform: uppercase;
}

/* ---- offer (editorial rows, 1c) ------------------------------ */
.offer-list { border-top: 1px solid var(--ink); }

.offer-row {
  display: grid;
  grid-template-columns: 52px 1fr 1.3fr;
  gap: 32px;
  padding: 30px 8px;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
  transition: background 0.15s ease;
}

.offer-row:hover { background: var(--paper-hi); }

.offer-row .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue);
  letter-spacing: 0.1em;
}

.offer-row .name { font-family: var(--serif); font-size: 27px; font-weight: 400; }

.offer-row p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

.offer-cta {
  margin-top: 40px;
  background: var(--blue);
  color: #fff;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.offer-cta p { margin: 0; font-size: 18px; line-height: 1.45; max-width: 44ch; }

.offer-cta a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 3px;
  white-space: nowrap;
}
.offer-cta a:hover { border-color: #fff; }

/* ---- machinery ---------------------------------------------- */
.mach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rule);
  background: var(--rule);
  gap: 1px;
}

.mach-col { background: var(--paper); padding: 32px 30px; }

.mach-col h3 {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--blue);
  text-transform: uppercase;
}

.mach-col .note { margin: 0 0 18px; font-size: 14px; color: var(--faint); }

.mach-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.mach-col li {
  padding: 10px 2px;
  border-bottom: 1px solid var(--rule-soft);
  display: flex;
  gap: 12px;
}

.mach-col li::before { content: '—'; color: var(--blue); }
.mach-col li:last-child { border-bottom: 0; }

.mach-note {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--muted);
}

.mach-note strong { font-weight: 600; color: var(--ink); }

.mach-photos {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mach-photos figure { margin: 0; position: relative; }

.mach-photos img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  filter: contrast(1.02);
}

.mach-photos figcaption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-top: 8px;
}

/* ---- about --------------------------------------------------- */
.about { display: grid; grid-template-columns: 1.05fr 0.95fr; }

.about-copy {
  padding: 72px 44px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-copy h2 { font-size: 40px; line-height: 1.1; }

.about-copy p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--muted); }

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 7px 12px;
  border: 1px solid var(--rule);
  color: var(--muted);
  text-transform: uppercase;
}

.about-fig { position: relative; min-height: 480px; }

.about-fig img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- why ------------------------------------------------------ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.why-cell { background: var(--paper); padding: 28px 26px; }

.why-cell .glyph {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 12px;
}

.why-cell h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

.why-cell p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* ---- technologies strip -------------------------------------- */
.tech { padding: 48px 44px; }

.tech-strip {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--rule);
}

.tech-strip span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 16px 24px;
  border-right: 1px solid var(--rule);
  flex: 1 1 auto;
  text-align: center;
  text-transform: uppercase;
}

.tech-strip span:last-child { border-right: 0; }

/* ---- team ----------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.member { background: var(--paper); padding: 26px; }

.member img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(0.15);
  margin-bottom: 18px;
}

.member .name { font-family: var(--serif); font-size: 24px; }

.member .role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--blue);
  text-transform: uppercase;
  margin: 4px 0 12px;
}

.member p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

.member--fill {
  background: repeating-linear-gradient(135deg, #e6e3dc 0 2px, var(--paper) 2px 9px);
  display: flex;
  align-items: flex-end;
}

.member--fill p { margin-top: 12px; font-size: 15px; max-width: 32ch; }

.member--fill a { color: var(--blue); border-bottom: 1px solid var(--blue); padding-bottom: 2px; }

/* ---- work ----------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project { position: relative; }

.project .frame {
  position: relative;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #e6e3dc 0 2px, var(--paper) 2px 9px);
}

.project img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project:hover img { transform: scale(1.03); }

.project .meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-top: 10px;
}

.project .title { font-family: var(--serif); font-size: 20px; }

.project .fig {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
  white-space: nowrap;
}

/* ---- pricing --------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.plan {
  background: var(--paper);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan--featured { background: var(--paper-hi); box-shadow: inset 0 3px 0 var(--blue); }

.plan h3 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 400; }

.plan .price { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; }

.plan .price small {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--faint);
  margin-left: 6px;
}

.plan .pitch { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); flex-grow: 0; }

.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
  flex-grow: 1;
}

.plan li {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-soft);
  display: flex;
  gap: 10px;
}

.plan li::before { content: '+'; font-family: var(--mono); color: var(--blue); }
.plan li.carry { color: var(--faint); font-style: italic; }
.plan li.carry::before { content: '↳'; }

.plan .btn { text-align: center; }

/* ---- contact (dark band, 1a) ----------------------------------- */
.contact {
  background: var(--dark);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
}

.contact-info {
  padding: 72px 44px;
  border-right: 1px solid #33302c;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contact-info h2 { font-size: 42px; line-height: 1.08; color: var(--paper); }

.contact-info .sub { margin: 0; font-size: 16px; color: var(--dark-muted); }

.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
}

.contact-lines a:hover { color: #fff; text-decoration: underline; }

.contact-lines .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--faint);
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.quick-chat { display: flex; gap: 10px; flex-wrap: wrap; }

.quick-chat a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  border: 1px solid #3a3734;
  padding: 9px 16px;
  color: var(--dark-muted);
}
.quick-chat a:hover { border-color: var(--paper); color: var(--paper); }

.contact-form { padding: 72px 44px; display: flex; flex-direction: column; gap: 16px; }

.contact-form label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dark-muted);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--paper);
  background: #232019;
  border: 1px solid #3a3734;
  padding: 13px 14px;
  width: 100%;
}

.contact-form select { appearance: none; }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.contact-form textarea { min-height: 130px; resize: vertical; }

.form-note { font-size: 12.5px; color: var(--faint); margin: 0; }
.form-note a { text-decoration: underline; }

.form-status { font-family: var(--mono); font-size: 12px; color: var(--dark-muted); margin: 0; }

/* ---- footer ---------------------------------------------------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 44px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.site-footer a:hover { color: var(--ink); }

/* ---- reveal animation ------------------------------------------ */
@keyframes qfade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.reveal { opacity: 0; }
.reveal.in { animation: qfade 0.6s ease forwards; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; }
  .reveal.in { animation: none; }
}

/* ---- privacy page ----------------------------------------------- */
.legal { padding: 72px 44px; max-width: 820px; }
.legal h1 { font-size: 48px; font-weight: 300; margin-bottom: 8px; }
.legal .updated { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: 0.08em; }
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); font-size: 16px; }
.legal a { color: var(--blue); }

/* ---- responsive -------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-copy h1 { font-size: 52px; }
  .team-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-cell:nth-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 900px) {
  .site-nav, .header-cta .lang { display: none; }
  .nav-toggle { display: block; }
  .site-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  .site-nav.open a { padding: 14px 44px; border-top: 1px solid var(--rule-soft); }
  .hero, .about, .contact { grid-template-columns: 1fr; }
  .hero-copy, .about-copy, .contact-info { border-right: 0; border-bottom: 1px solid var(--rule); }
  .contact-info { border-color: #33302c; }
  .hero-fig { min-height: 380px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat, .stat:not(:first-child) { padding: 20px 24px; border-bottom: 1px solid var(--rule); }
  .stat:nth-child(even) { border-right: 0; }
  .stat:nth-child(n+3) { border-bottom: 0; }
  .offer-row { grid-template-columns: 40px 1fr; }
  .offer-row p { grid-column: 2; }
  .mach-grid { grid-template-columns: 1fr; }
  .mach-photos { grid-template-columns: 1fr; }
  .mach-photos img { height: 220px; }
}

@media (max-width: 640px) {
  .pad, .hero-copy, .contact-info, .contact-form, .legal { padding-left: 22px; padding-right: 22px; }
  .site-header, .site-footer { padding-left: 22px; padding-right: 22px; }
  .site-nav.open a { padding-left: 22px; }
  .hero-copy h1 { font-size: clamp(28px, 8.6vw, 42px); }
  .section-head h2, .about-copy h2, .contact-info h2 { font-size: clamp(26px, 8vw, 32px); }
  .team-grid, .work-grid, .pricing-grid, .why-grid, .tech-strip { grid-template-columns: 1fr; }
  .tech-strip { flex-direction: column; }
  .tech-strip span { border-right: 0; border-bottom: 1px solid var(--rule); text-align: left; }
  .tech-strip span:last-child { border-bottom: 0; }
}
