:root {
  --cream: #efece4;
  --ink: #0c1424;
  --muted: #6a7184;
  --line: rgba(12, 20, 36, 0.14);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--cream); color: var(--ink); }
body {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.topbar {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}
.mail {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}
.mail:hover { text-decoration: underline; }

.apps-menu { position: relative; }
.apps-menu > summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.apps-menu > summary::-webkit-details-marker { display: none; }
.apps-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 160px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(12,20,36,.12);
  display: grid;
  gap: 2px;
  z-index: 30;
}
.apps-menu-panel a {
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}
.apps-menu-panel a:hover { background: rgba(12,20,36,.05); color: var(--ink); }

.board-row {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 18px;
  display: grid;
  gap: 14px;
}
.board-row-top {
  grid-template-columns: 88px 1.15fr 0.85fr 1.15fr;
  align-items: stretch;
}
.board-row-bottom {
  grid-template-columns: 1.05fr 1.05fr 0.75fr 0.95fr;
}

.side-nav {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: 18px 0 28px;
}
.side-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.side-nav a:hover { color: var(--ink); }

.brand-panel,
.phone-panel,
.aurora-panel,
.values-panel,
.process-panel,
.foil-panel,
.script-panel {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(12,20,36,.06);
}
.brand-panel img,
.phone-panel img,
.aurora-panel img,
.values-panel img,
.process-panel img,
.foil-panel img,
.script-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.aurora-panel { position: relative; }
.aurora-panel figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  margin: 0;
  color: #f4f1ea;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}

.apps {
  width: min(900px, calc(100% - 32px));
  margin: 56px auto 24px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.apps h2 {
  margin: 0 0 28px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}
.app-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 22px;
  padding: 28px;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.app-card img { border-radius: 22%; }
.kicker {
  margin: 0 0 6px;
  color: #6f8f4e;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.app-card h3 { margin: 0; font-size: 1.7rem; }
.app-card p { margin: 10px 0 0; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.links a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}
.links a:hover { text-decoration: underline; }

footer {
  width: min(1200px, calc(100% - 32px));
  margin: 40px auto 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  color: var(--muted);
  font-size: 0.86rem;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { text-decoration: underline; color: var(--ink); }

@media (max-width: 980px) {
  .board-row-top,
  .board-row-bottom { grid-template-columns: 1fr 1fr; }
  .side-nav { display: none; }
}
@media (max-width: 640px) {
  .board-row-top,
  .board-row-bottom { grid-template-columns: 1fr; }
  .app-card { grid-template-columns: 1fr; }
}
