/*
 * ENTROPYBYTES — Contact Portal
 * Contact page stylesheet | 2026-11-25
 * All presentation rules maintained in this file.
 *
 * Typography:
 *  - Display: locally installed Eurostile, otherwise Chakra Petch (webfont)
 *  - Body: Corbel (when installed), otherwise system sans-serif
 *  - Technical labels: IBM Plex Mono (webfont), otherwise system monospace
 *
 * For a completely self-hosted deployment, download and serve licensed/
 * open-source webfont files locally instead of using Google Fonts.
 */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  color-scheme: dark;

  --bg: #111113;
  --bg-soft: #18191c;
  --panel: #202125;
  --panel-2: #282a2e;
  --cyan: #28b8ed;
  --cyan-deep: #168fba;
  --cyan-hover: #51c7f0;
  --white: #f4f6f7;
  --muted: #a7afb6;
  --text-soft: #c6cbd0;
  --line: rgba(190, 198, 205, .16);

  --content: 1080px;
  --radius: 12px;
  --shadow: none;

  --font-body: Corbel, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-display: Eurostile, 'Eurostile Next', 'Chakra Petch', 'Arial Narrow', sans-serif;
  --font-mono: 'IBM Plex Mono', Consolas, 'Liberation Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
.shell { width: min(var(--content), calc(100% - 44px)); margin-inline: auto; }

/* Persistent actions for visitors arriving via the printed QR code. */
.actionbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: max(9px, env(safe-area-inset-top)) 0 9px;
  background: rgba(17, 17, 19, .96);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.actionbar-inner {
  width: min(var(--content), calc(100% - 28px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.action {
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(40,184,237,.36);
  border-radius: 9px;
  background: var(--panel);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .005em;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.action:hover { background: var(--panel-2); border-color: var(--cyan); }
.action.primary { background: var(--cyan); border-color: var(--cyan); color: var(--bg); }
.action.primary:hover { background: var(--cyan-hover); border-color: var(--cyan-hover); }
.action svg { width: 17px; height: 17px; flex: 0 0 auto; }

/* Hero: deliberately plain backdrop; no decorative circles or glows. */
.hero {
  position: relative;
  padding: clamp(76px, 12vw, 132px) 0 82px;
}
.hero::after { content: none; }
.hero-content { position: relative; max-width: 820px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: .73rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before,
.eyebrow::after {
  content: '';
  width: 29px;
  height: 1px;
  background: var(--cyan);
  flex: 0 0 auto;
}
.wordmark {
  margin: 25px 0 10px;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: clamp(2rem, 7.3vw, 5.5rem);
  font-weight: 600;
  letter-spacing: .008em;
  line-height: 1.08;
  white-space: nowrap;
}
/* Intentionally unify both halves of the brand wordmark in cyan. */
.wordmark .accent { color: inherit; }
.tagline {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: clamp(.78rem, 1.45vw, .91rem);
  font-weight: 400;
  letter-spacing: .005em;
}
h1 {
  max-width: 760px;
  margin: 55px 0 20px;
  font-family: var(--font-body);
  font-size: clamp(2.25rem, 5.1vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 700;
}
h1 span { color: var(--cyan); }
.intro {
  max-width: 675px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.78;
}
.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 32px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .005em;
}
.hero-note::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--cyan);
  border-radius: 50%;
}

section { scroll-margin-top: 92px; }
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-kicker,
.perspective-label {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: .73rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h2 {
  margin: 10px 0 12px;
  font-family: var(--font-body);
  font-size: clamp(1.85rem, 3.8vw, 2.7rem);
  line-height: 1.17;
  letter-spacing: -.03em;
  font-weight: 700;
}
.section-lead { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.capability {
  min-height: 270px;
  padding: 27px 25px 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}
.capability-number {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .055em;
}
.capability h3 {
  margin: 22px 0 12px;
  font-family: var(--font-display);
  font-size: 1.33rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .005em;
}
.capability p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.72; }
.capability .detail {
  display: block;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: .72rem;
  line-height: 1.7;
}

.perspective-wrap {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 54px;
  align-items: start;
}
/* Three-line engineering philosophy: progressively stronger emphasis. */
.perspective h2 { margin-top: 13px; }
.perspective-heading span { display: block; }
.perspective-heading-work { color: var(--white); font-weight: 400; }
.perspective-heading-last { color: var(--white); font-weight: 700; }
.perspective-heading-right { color: var(--cyan); font-weight: 700; }
.perspective-copy p { margin: 0 0 17px; color: var(--text-soft); font-size: 1.05rem; line-height: 1.82; }
.perspective-copy p:last-child { margin-bottom: 0; }
.principle {
  margin-top: 25px;
  padding: 17px 20px;
  border-left: 2px solid var(--cyan);
  background: var(--bg-soft);
  color: var(--white);
  font-size: 1rem;
  line-height: 1.65;
}

.signature {
  margin-top: 18px;
  text-align: right;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: .88rem;
}

.contact-section {
  padding: 66px 0 72px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.contact-panel { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.contact-panel h2 { max-width: 570px; margin-bottom: 12px; }
.contact-panel p { max-width: 570px; margin: 0; color: var(--muted); }
.contact-links { display: flex; gap: 10px; flex-wrap: wrap; flex: 0 0 auto; }
.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 10px 16px;
  border: 1px solid var(--cyan);
  border-radius: 9px;
  background: var(--cyan);
  color: var(--bg);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  transition: background-color .18s ease, border-color .18s ease;
}
.contact-links a:hover { background: var(--cyan-hover); border-color: var(--cyan-hover); }
.contact-links a.secondary { background: transparent; border-color: rgba(40,184,237,.55); color: var(--white); }
.contact-links a.secondary:hover { background: var(--panel-2); border-color: var(--cyan); }

footer {
  padding: 23px 0 calc(23px + env(safe-area-inset-bottom));
  color: #929aa1;
  font-family: var(--font-mono);
  font-size: .71rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.footer-brand { color: var(--cyan); font-family: var(--font-display); font-weight: 600; letter-spacing: .04em; }

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 36px), 600px); }
  .hero { padding: 76px 0 66px; }
  h1 { margin-top: 43px; }
  .section { padding: 58px 0; }
  .capabilities { grid-template-columns: 1fr; gap: 12px; }
  .capability { min-height: 0; padding: 23px 22px; }
  .capability h3 { margin-top: 14px; }
  .perspective-wrap { grid-template-columns: 1fr; gap: 20px; }
  .contact-panel { display: block; }
  .contact-links { margin-top: 24px; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .wordmark { font-size: clamp(1.65rem, 7.2vw, 2.8rem); letter-spacing: 0; }
  .hero-note { font-size: .66rem; }
}
@media (max-width: 390px) {
  .actionbar-inner { width: calc(100% - 18px); gap: 6px; }
  .action { gap: 6px; padding: 9px 5px; font-size: .78rem; }
  .action svg { width: 15px; height: 15px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
