/* ── Tokens: the signet system ─────────────────────────────────
   midnight ground · deep-water panels · one signet-blue accent
   Display: Marcellus (engraved caps) · Body: system sans        */
:root {
  --midnight: #050810;
  --deep-water: #0b1120;
  --panel-edge: rgba(124, 138, 168, 0.22);
  --bone: #e9edf6;
  --slate: #7c8aa8;
  --signet: #2e5bff;
  --signet-press: #2148d1;
  --green: #25d366;
  --radius: 16px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Marcellus", "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--midnight);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--signet);
  outline-offset: 2px;
}

/* ── Card shell: one viewport ──────────────────────────────── */
.card-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(20px, env(safe-area-inset-top)) 22px max(16px, env(safe-area-inset-bottom));
  max-width: 430px;
  margin: 0 auto;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: rise 0.6s ease both;
}

/* ── Circular portrait with fine double ring ───────────────── */
.portrait {
  width: min(58vw, 232px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--panel-edge);
  outline: 1px solid var(--panel-edge);
  outline-offset: 6px;
  background: var(--deep-water);
  display: block;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 7.6vw, 32px);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.15;
}
.hero .title {
  margin-top: 7px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signet);
}
.hero .tagline {
  margin-top: 5px;
  font-size: 14px;
  color: var(--slate);
}

/* ── Actions ───────────────────────────────────────────────── */
.actions {
  width: 100%;
  animation: rise 0.6s ease 0.12s both;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: var(--radius);
  background: var(--signet);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary:active { background: var(--signet-press); transform: scale(0.99); }

.action-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 64px;
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  background: var(--deep-water);
  color: var(--slate);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--sans);
}
.action:active { border-color: var(--signet); color: var(--bone); }
.action svg { width: 20px; height: 20px; stroke: var(--bone); }

.btn-work {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
  padding: 0 16px;
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  background: transparent;
  color: var(--slate);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 14px;
}
.btn-work strong { color: var(--bone); font-weight: 600; }
.btn-work .work-label { display: flex; align-items: center; gap: 9px; }
.btn-work img { width: 20px; height: 20px; border-radius: 5px; display: block; }
.btn-work:active { border-color: var(--signet); color: var(--bone); }

.foot {
  margin-top: 14px;
  padding-top: 12px;
  width: 100%;
  border-top: 1px solid var(--panel-edge);
  font-family: var(--display);
  font-size: 11px;
  color: var(--slate);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  animation: rise 0.6s ease 0.2s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero, .actions, .foot { animation: none; }
}

/* ── Bottom sheet (two-way intro) ──────────────────────────── */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 10, 0.66);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 40;
}
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--deep-water);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--panel-edge);
  padding: 18px 22px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(105%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0.25, 1);
  z-index: 50;
}
.sheet.open { transform: translateY(0); }
body.sheet-open .sheet-backdrop { opacity: 1; pointer-events: auto; }

.synva-head { display: flex; align-items: center; gap: 12px; }
.synva-head img { border-radius: 9px; flex-shrink: 0; }
.synva-head .sub { margin-bottom: 0; }
.sheet-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 14px 0 8px;
}
.video-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.video-row a { display: block; }
.video-row img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--panel-edge);
  display: block;
  background: var(--midnight);
}
.synva-links { display: grid; gap: 9px; margin-top: 14px; }

.sheet .grab {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: var(--panel-edge);
  margin: 0 auto 14px;
}
.sheet h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.sheet .sub { font-size: 13.5px; color: var(--slate); margin-bottom: 14px; }

.field { margin-bottom: 10px; }
.field label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 5px;
}
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--panel-edge);
  border-radius: 13px;
  background: var(--midnight);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px; /* prevents iOS zoom-on-focus */
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--signet);
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: var(--radius);
  background: var(--green);
  color: #06130a;
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
}
.btn-whatsapp:active { transform: scale(0.99); }
.btn-ghost {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: none;
  color: var(--slate);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
}

/* ── Utility pages (share / send) ──────────────────────────── */
.mini-portrait {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--panel-edge);
  outline: 1px solid var(--panel-edge);
  outline-offset: 3px;
  background: var(--deep-water);
  flex-shrink: 0;
}

.util-shell {
  min-height: 100dvh;
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: max(18px, env(safe-area-inset-top)) 22px max(18px, env(safe-area-inset-bottom));
}
.util-shell h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.05em;
}
.util-shell .sub { color: var(--slate); font-size: 14px; margin-top: 3px; }

.btn-dark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  background: var(--deep-water);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn-dark:active { border-color: var(--signet); }

.met-log { margin-top: 22px; }
.met-log h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 10px;
}
.met-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--panel-edge);
  border-radius: 13px;
  background: var(--deep-water);
  margin-bottom: 8px;
}
.met-item .who { font-weight: 600; font-size: 15px; }
.met-item .meta { color: var(--slate); font-size: 12.5px; margin-top: 2px; }
.met-item .del {
  border: 0;
  background: none;
  color: var(--slate);
  font-size: 18px;
  cursor: pointer;
  padding: 6px 8px;
}
.empty { color: var(--slate); font-size: 14px; text-align: center; padding: 18px 0; }
