/* Enertech digital business card — B&W brand system.
   Light only by design: these pages are shown to strangers on their own
   phones, and the brand is black on white. */

:root {
  --black: #0D0D0D;
  --dark: #1F1F1F;
  --mid: #555555;
  --light: #F0F0F0;
  --rule: #CCCCCC;
  --white: #FFFFFF;
  --gutter: 20px;
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--light);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--white);
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

@media (min-width: 500px) {
  body { padding: 32px 0; }
  .card {
    min-height: 0;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .14);
  }
}

/* ── hero ─────────────────────────────────────────────── */

.hero {
  background: var(--black);
  padding: 34px var(--gutter) 64px;
  padding-top: max(34px, env(safe-area-inset-top));
  text-align: center;
}

/* No avatar overlapping the fold on the directory page. */
.hero--flat { padding-bottom: 34px; }

.hero__logo {
  width: 190px;
  max-width: 68%;
  height: auto;
  display: block;
  margin: 0 auto 18px;
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.pill {
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
  white-space: nowrap;
  /* Keeps short labels like "Own" from collapsing into stubby ovals
     next to longer ones. */
  min-width: 82px;
  text-align: center;
}

/* On a 320px iPhone SE the long operator pill runs flush to the gutters.
   Tighten it slightly there so it still reads as a tag, not a bar. */
@media (max-width: 360px) {
  .pill {
    font-size: 10px;
    letter-spacing: .06em;
    padding: 5px 11px;
  }
}

/* ── identity ─────────────────────────────────────────── */

.identity {
  text-align: center;
  padding: 0 var(--gutter) 4px;
  margin-top: -52px;
}

.avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 14px;
  border: 4px solid var(--white);
  background: var(--dark);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
}

.avatar--initials {
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: .04em;
}

.name {
  margin: 0;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.title {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--mid);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.org {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--mid);
}

.bio {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--mid);
}

/* ── body ─────────────────────────────────────────────── */

.body { padding: 22px var(--gutter) 8px; }
.body--index { padding-top: 28px; }

/* ── save button ──────────────────────────────────────── */

.save {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 16px;
  border-radius: var(--radius);
  transition: transform .12s ease, background .12s ease;
}

.save:active { transform: scale(.98); background: var(--dark); }
.save svg { width: 20px; height: 20px; }

/* ── action grid ──────────────────────────────────────── */

.actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  /* 68px keeps every tap target well clear of the 44px minimum. */
  min-height: 68px;
  padding: 12px 6px;
  background: var(--light);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--black);
  font-size: 12px;
  font-weight: 600;
  transition: background .12s ease, transform .12s ease;
}

.action:active { transform: scale(.97); background: var(--rule); }
.action svg { width: 21px; height: 21px; }

/* ── detail rows ──────────────────────────────────────── */

.rows {
  margin-top: 22px;
  border-top: 1px solid var(--rule);
}

.row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--black);
}

.row__label {
  flex: 0 0 62px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mid);
}

.row__value {
  font-size: 15px;
  word-break: break-word;
}

/* ── pitch ────────────────────────────────────────────── */

.pitch { margin-top: 26px; }

.pitch__eyebrow {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mid);
}

.pitch__body {
  margin: 0;
  font-size: 14px;
  color: var(--mid);
}

.pitch__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  border-bottom: 2px solid var(--black);
  padding-bottom: 2px;
}

.pitch__link svg { width: 17px; height: 17px; }

/* ── team directory ───────────────────────────────────── */

.people {
  display: grid;
  /* Fixed at two columns: auto-fit found room for three at wider widths and
     left the last person stranded on a row of their own. */
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0 4px;
}

.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 20px 10px;
  background: var(--light);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--black);
  transition: background .12s ease, transform .12s ease;
}

.person:active { transform: scale(.98); background: var(--rule); }

.tavatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 6px;
  background: var(--dark);
}

.tavatar--initials {
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 21px;
  font-weight: 700;
}

.person__name { font-size: 14px; font-weight: 700; }

.person__title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ── lead capture ─────────────────────────────────────── */

.capture {
  margin-top: 30px;
  padding: 22px 18px;
  background: var(--light);
  border-radius: var(--radius);
}

.capture__eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mid);
}

.capture__title { margin: 6px 0 16px; font-size: 18px; font-weight: 700; }

.field { display: block; margin-bottom: 12px; }

.field > span {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mid);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--white);
  /* 16px stops iOS Safari zooming the page on focus. */
  font-size: 16px;
  font-family: inherit;
  color: var(--black);
}

.field input:focus,
.field textarea:focus { outline: 2px solid var(--black); outline-offset: -1px; }

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

.submit {
  width: 100%;
  padding: 15px;
  border: 0;
  border-radius: var(--radius);
  background: var(--black);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.submit:active { background: var(--dark); }

/* ── footer ───────────────────────────────────────────── */

.foot {
  padding: 26px var(--gutter);
  padding-bottom: max(26px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mid);
}

.foot p { margin: 4px 0; }
.foot a { color: var(--mid); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
