:root {
  --paper: #f4ead7;
  --paper-light: #fbf5e9;
  --ink: #24201b;
  --muted: #6f675d;
  --cardboard: #b9793d;
  --cardboard-dark: #75461f;
  --line: #d8c7ad;
  --white: #fffdf8;
  --shadow: 0 18px 45px rgba(67, 43, 21, .12);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117,70,31,.035) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  z-index: -1;
}

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

a { color: inherit; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(117,70,31,.16);
  background: rgba(244,234,215,.92);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -.04em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--cardboard-dark);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--cardboard);
  font-weight: 950;
}

.brand span:last-child { font-size: 1.05rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 9px 13px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 750;
  font-size: .92rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: rgba(185,121,61,.13);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.hero {
  padding: 92px 0 72px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 70px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--cardboard-dark);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 900;
  font-size: .76rem;
}

h1, h2, h3 {
  line-height: 1.08;
  letter-spacing: -.045em;
  margin-top: 0;
}

h1 { font-size: clamp(3rem, 7vw, 6.3rem); margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.25rem; }

.lead {
  color: var(--muted);
  font-size: 1.13rem;
  max-width: 680px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  text-decoration: none;
  font-weight: 850;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--cardboard);
}

.button.primary { background: var(--ink); color: var(--white); }
.button.secondary { background: transparent; }

.box-art {
  min-height: 390px;
  display: grid;
  place-items: center;
  position: relative;
}

.box {
  width: min(390px, 76vw);
  aspect-ratio: 1 / .78;
  position: relative;
  background: linear-gradient(145deg, #cf965c, #a96732);
  border: 4px solid var(--cardboard-dark);
  box-shadow: 22px 25px 0 rgba(117,70,31,.18), var(--shadow);
  transform: rotate(-4deg);
}

.box::before,
.box::after {
  content: "";
  position: absolute;
  top: -31%;
  width: 53%;
  height: 34%;
  background: #dba66d;
  border: 4px solid var(--cardboard-dark);
}

.box::before {
  left: -4px;
  transform: skewY(-25deg);
  transform-origin: bottom left;
}

.box::after {
  right: -4px;
  transform: skewY(25deg);
  transform-origin: bottom right;
}

.box-label {
  position: absolute;
  inset: 24% 15%;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(70,39,17,.45);
  color: rgba(70,39,17,.85);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 950;
  letter-spacing: -.06em;
}

.section { padding: 88px 0; }
.section.alt { background: rgba(255,253,248,.55); border-block: 1px solid rgba(117,70,31,.1); }

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.grid-3, .grid-2 {
  display: grid;
  gap: 20px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: rgba(255,253,248,.84);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 8px 25px rgba(67,43,21,.05);
}

.card .number {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cardboard);
  color: var(--white);
  font-weight: 900;
  margin-bottom: 20px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.stat {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 1.6rem; }
.stat span { color: var(--muted); font-size: .88rem; }

.compare {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th, td {
  text-align: left;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

th {
  background: #ead8bd;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

tr:last-child td { border-bottom: 0; }

.form-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow);
}

form { display: grid; gap: 18px; }

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

input, textarea, select {
  width: 100%;
  border: 1.5px solid #c9b99f;
  background: #fffefa;
  color: var(--ink);
  border-radius: 10px;
  padding: 13px 14px;
  font: inherit;
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--cardboard-dark);
  box-shadow: 0 0 0 3px rgba(185,121,61,.18);
}

textarea { min-height: 150px; resize: vertical; }

.honeypot { position: absolute; left: -9999px; opacity: 0; }

.notice {
  padding: 15px 17px;
  border-left: 4px solid var(--cardboard-dark);
  background: #f0e0c7;
  border-radius: 8px;
  color: #5d432d;
}

.footer {
  padding: 38px 0 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

.secret-link {
  opacity: .22;
  font-size: .72rem;
}

.page-hero {
  padding: 78px 0 56px;
  background: rgba(255,253,248,.44);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); max-width: 900px; }

.warning {
  border: 2px solid #6f251e;
  background: #f4d9d4;
  color: #5b211b;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 28px;
}

.sighting-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

@media (max-width: 850px) {
  .hero-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .box-art { min-height: 310px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .hero { padding-top: 64px; }
  .section { padding: 64px 0; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

/* =========================================================
   BOX CORP. INTERNAL OPERATIONS THEME
   Dark green / covert surveillance aesthetic
   ========================================================= */

.internal-ops {
  --paper: #0b120e;
  --paper-light: #101a13;
  --ink: #c7d8c8;
  --muted: #718276;
  --cardboard: #3d7a50;
  --cardboard-dark: #1d4d2c;
  --line: #263b2b;
  --white: #dce9dd;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);

  background:
    linear-gradient(rgba(49, 117, 65, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 117, 65, .035) 1px, transparent 1px),
    #0b120e;

  color: var(--ink);
}

/* Give the whole page a subtle monitor/surveillance texture */
.internal-ops::before {
  opacity: .08;
  background-image:
    linear-gradient(
      rgba(87, 255, 116, .025) 50%,
      transparent 50%
    );
  background-size: 100% 4px;
}

/* Header */
.internal-ops .site-header {
  background: rgba(8, 15, 10, .94);
  border-bottom-color: #294732;
}

/* Box Corp. logo */
.internal-ops .brand-mark {
  background: #13251a;
  border-color: #4c8058;
  color: #91c59a;
  box-shadow: 4px 4px 0 #21472c;
}

.internal-ops .brand {
  color: #b9d3bd;
}

/* Navigation */
.internal-ops .nav-links a {
  color: #64766a;
}

.internal-ops .nav-links a:hover,
.internal-ops .nav-links a.active {
  color: #a9c8ae;
  background: rgba(61, 122, 80, .15);
}

/* Internal page hero */
.internal-ops .page-hero {
  background:
    radial-gradient(
      circle at 75% 20%,
      rgba(54, 126, 70, .12),
      transparent 35%
    ),
    #0d1710;

  border-bottom-color: #294732;
}

/* Green operational labels */
.internal-ops .kicker {
  color: #1b301f;
}

/* Headings */
.internal-ops h1,
.internal-ops h2,
.internal-ops h3 {
  color: #d1dfd2;
}

/* Body copy */
.internal-ops p {
  color: #87978b;
}

/* Cards */
.internal-ops .card {
  background: rgba(14, 25, 17, .92);
  border-color: #294432;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .28);
}

/* Number badges */
.internal-ops .card .number {
  background: #245a33;
  color: #a9d4b0;
  border: 1px solid #42764e;
}

/* Warning box */
.internal-ops .warning {
  background: #171d17;
  border-color: #4d8a59;
  color: #9fc5a5;
  box-shadow:
    inset 0 0 25px rgba(64, 135, 76, .04),
    0 8px 25px rgba(0, 0, 0, .25);
}

/* Forms */
.internal-ops input,
.internal-ops textarea,
.internal-ops select {
  background: #0b130d;
  color: #c4d5c6;
  border-color: #304936;
}

.internal-ops input::placeholder,
.internal-ops textarea::placeholder {
  color: #526258;
}

.internal-ops input:focus,
.internal-ops textarea:focus,
.internal-ops select:focus {
  border-color: #5b9b67;
  box-shadow: 0 0 0 3px rgba(70, 145, 82, .16);
}

/* Main form container */
.internal-ops .form-wrap {
  background: #0e1811;
  border-color: #2c4733;
  box-shadow:
    0 20px 55px rgba(0, 0, 0, .42),
    inset 0 0 50px rgba(47, 104, 58, .025);
}

/* Buttons */
.internal-ops .button.primary {
  background: #245b32;
  border-color: #4b8255;
  color: #d4e5d6;
}

.internal-ops .button.primary:hover {
  background: #2e7040;
  box-shadow: 5px 5px 0 #102818;
}

/* Footer */
.internal-ops .footer {
  background: #080d09;
  border-top-color: #263c2c;
  color: #536158;
}

.internal-ops .footer a:hover {
  color: #9bb99f;
}

/* Make the secret link less obvious on the internal page */
.internal-ops .secret-link {
  color: #304536;
}

/* Surveillance image placeholder */
.internal-ops img[src="[]"] {
  border: 1px solid #35513b;
  background:
    linear-gradient(
      135deg,
      #101a13,
      #0a100c
    );
  min-height: 220px;
  object-fit: cover;
}

/* Internal operations status indicator */
.internal-ops .page-hero::after {
  content: "● SYSTEM STATUS: ACTIVE";
  display: block;
  width: fit-content;
  margin-top: 30px;
  padding: 7px 12px;
  border: 1px solid #31583a;
  border-radius: 5px;
  color: #63a96d;
  background: #0b150e;
  font-family: monospace;
  font-size: .72rem;
  letter-spacing: .12em;
}

/* Give the internal page a terminal-like feel on smaller text */
.internal-ops .warning,
.internal-ops label,
.internal-ops .page-hero::after {
  font-family: "Courier New", Courier, monospace;
}

/* Mobile menu */
@media (max-width: 850px) {
  .internal-ops .nav-links {
    background: #0e1811;
    border-color: #294432;
  }

  .internal-ops .menu-toggle {
    background: #101a13;
    color: #a9c8ae;
    border-color: #304936;
  }
}