/* ==========================================================================
   Tri-Lion Company — site styles
   Desktop-first. Single breakpoint at 900px.
   ========================================================================== */

:root {
  --navy: #101E33;
  --navy-deep: #0B1626;
  --navy-hover: #1B2E4A;
  --gold: #C6A24A;
  --gold-hover: #D8B762;
  --gold-text: #8C6E1F;
  --off-white: #F5F1EA;
  --paper: #FFFDF9;
  --line: #E2DACB;
  --line-soft: #EDE7DC;
  --rule: #DCD6CB;
  --text: #101E33;
  --text-muted: #5A6472;
  --text-muted-warm: #6B6559;
  --text-faint: #8A8477;
  --text-faint-warm: #A9A294;
  --border-input: #CFC7B7;

  --display: 'Libre Caslon Display', Georgia, serif;
  --body: Archivo, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --pad-x: 56px;
  --pad-y: 96px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  color: var(--text);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p, figure { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--gold); }

button { font: inherit; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Shared type ---------------------------------------------------------- */

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--navy);
}

.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.12;
  color: var(--navy);
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 17px 30px;
  border: 0;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-hover); color: var(--navy); }

.btn--navy { background: var(--navy); color: var(--off-white); }
.btn--navy:hover { background: var(--navy-hover); color: var(--off-white); }

.btn--outline {
  background: transparent;
  border: 1px solid var(--navy);
  border-radius: 0;
  color: var(--navy);
  padding: 15px 30px;
}
.btn--outline:hover { background: var(--navy); color: var(--off-white); }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: relative;
  z-index: 20;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav__logo img { height: 34px; width: auto; }

.nav__right {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__links a {
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #2A3342;
  text-decoration: none;
  transition: color 150ms ease;
}
.nav__links a:hover { color: var(--gold-text); }

.nav__rep {
  border: 1px solid var(--border-input);
  padding: 9px 15px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7A7365;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 150ms ease, color 150ms ease;
}
.nav__rep:hover { border-color: var(--gold); color: var(--navy); }

.nav__cta { padding: 12px 22px; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 1px;
  background: var(--navy);
}
.nav__toggle span + span { margin-top: 5px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 620px;
  padding: 120px var(--pad-x) 84px;
  overflow: hidden;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,22,38,0.94) 0%, rgba(11,22,38,0.78) 42%, rgba(11,22,38,0.18) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 840px;
  max-width: 100%;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.hero__rule {
  flex: 0 0 46px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  margin-bottom: 22px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--off-white);
  text-wrap: pretty;
}

.hero__body {
  margin-bottom: 38px;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.62;
  color: rgba(245,241,234,0.72);
}

/* ==========================================================================
   Trust bar
   ========================================================================== */

.trust {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px var(--pad-x);
  background: var(--off-white);
  border-bottom: 1px solid var(--line);
}

.trust__channels {
  display: flex;
  align-items: center;
}

.trust__channels li {
  position: relative;
  padding: 0 26px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9A9384;
}
.trust__channels li + li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: var(--rule);
}
.trust__channels li:last-child { padding-right: 0; }

/* ==========================================================================
   Portfolio
   ========================================================================== */

.portfolio {
  padding: var(--pad-y) var(--pad-x);
  background: var(--paper);
}

.section__head { margin-bottom: 44px; }
.section__head .eyebrow { margin-bottom: 18px; }

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  transition: border-color 150ms ease;
}
a.brand-card:hover { border-color: var(--gold); }

.brand-card__plate {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  padding: 44px;
  background: var(--navy);
}
.brand-card__plate img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.brand-card__plate img.is-audiosource { width: 260px; }
.brand-card__plate img.is-hendoled { max-width: 240px; max-height: 74px; }

.wordmark {
  color: var(--off-white);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.wordmark--essoetto {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 400;
  color: #EADFD3;
}
.wordmark--pvmp {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: #C9D2DA;
}

.brand-card__meta {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px 24px;
  border-top: 1px solid var(--line-soft);
}

.brand-card__name {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

.brand-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted-warm);
}

.brand-card__link {
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-faint-warm);
  white-space: nowrap;
}

/* ==========================================================================
   Capabilities
   ========================================================================== */

.capabilities {
  padding: var(--pad-y) var(--pad-x);
  background: var(--off-white);
  border-top: 1px solid var(--line);
}

.capabilities__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.capabilities__intro {
  max-width: 340px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted-warm);
}

.capabilities__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 48px;
}

.capability {
  padding: 30px 0 36px;
  border-top: 1px solid var(--rule);
}
.capability svg { margin-bottom: 20px; }
.capability .label { margin-bottom: 12px; }
.capability p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted-warm);
}

/* ==========================================================================
   Split — For Brands
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--paper);
}

.split__photo {
  height: 700px;
  overflow: hidden;
}
.split__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__copy { padding: var(--pad-y) 72px; }
.split__copy .eyebrow { margin-bottom: 18px; }
.split__copy h2 {
  margin-bottom: 22px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.14;
  color: var(--navy);
}
.split__intro {
  margin-bottom: 44px;
  max-width: 460px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.steps li {
  display: flex;
  gap: 26px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }

.steps__num {
  flex: 0 0 38px;
  font-family: var(--display);
  font-size: 22px;
  color: var(--gold);
}
.steps .label { margin-bottom: 8px; }
.steps p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted-warm);
}

.split__cta { margin-top: 40px; }

/* ==========================================================================
   Proof strip
   ========================================================================== */

.proof {
  padding: 80px var(--pad-x);
  background: var(--navy);
}

.proof__tag-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.proof__tag {
  padding: 4px 9px;
  border: 1px solid rgba(198,162,74,0.4);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(198,162,74,0.75);
}

.proof__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof__stat {
  padding: 30px 24px 8px 0;
  border-top: 1px solid rgba(245,241,234,0.18);
}

.proof__num {
  margin-bottom: 16px;
  font-family: var(--display);
  font-size: 58px;
  line-height: 1;
  color: var(--gold);
}

.proof__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.58);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 76px var(--pad-x) 34px;
  background: var(--navy-deep);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(245,241,234,0.14);
}

.lockup__name {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--off-white);
}
.lockup__sub {
  margin: 6px 0 0;
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer__contact {
  margin-top: 26px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(245,241,234,0.62);
}
.footer__contact + .footer__contact { margin-top: 14px; }
.footer__contact a {
  color: var(--gold);
  text-decoration: none;
  transition: color 150ms ease;
}
.footer__contact a:hover { color: var(--gold-hover); }
/* The phone number stays plain — only the email reads as gold, per the design. */
.footer__contact a[href^="tel:"] { color: inherit; }
.footer__contact a[href^="tel:"]:hover { color: var(--off-white); }

.footer__heading {
  margin-bottom: 20px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.42);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__links a {
  font-size: 14px;
  color: rgba(245,241,234,0.78);
  text-decoration: none;
  transition: color 150ms ease;
}
.footer__links a:hover { color: var(--off-white); }

.footer__portal {
  padding: 26px;
  border: 1px solid rgba(245,241,234,0.16);
}
.footer__portal .footer__heading { color: var(--gold); margin-bottom: 14px; }
.footer__portal p {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(245,241,234,0.62);
}
.footer__portal a {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid rgba(245,241,234,0.4);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--off-white);
  text-decoration: none;
  transition: border-color 150ms ease;
}
.footer__portal a:hover { border-color: var(--gold); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 26px;
  font-size: 12px;
  color: rgba(245,241,234,0.42);
}
.footer__legal {
  display: flex;
  gap: 28px;
}
.footer__legal a {
  font-size: 12px;
  color: rgba(245,241,234,0.42);
  text-decoration: none;
  transition: color 150ms ease;
}
.footer__legal a:hover { color: rgba(245,241,234,0.7); }

/* ==========================================================================
   Partner modal
   ========================================================================== */

.modal {
  width: 560px;
  max-width: calc(100vw - 40px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-top: 3px solid var(--gold);
  background: var(--off-white);
  box-shadow: 0 30px 80px rgba(11,22,38,0.4);
  color: var(--text);
  overflow: auto;
}
.modal::backdrop { background: rgba(11,22,38,0.72); }

.modal__form { padding: 40px 44px 36px; }

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.modal__head .eyebrow { margin-bottom: 12px; }
.modal__head h2 {
  margin-bottom: 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  color: var(--navy);
}
.modal__head p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted-warm);
}

.modal__close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: -8px -12px 0 0;
  background: none;
  border: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--text-faint);
  cursor: pointer;
  transition: color 150ms ease;
}
.modal__close:hover { color: var(--navy); }

.field + .field { margin-top: 20px; }

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--border-input);
  border-radius: 0;
  background: #fff;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--navy);
  outline: none;
  transition: border-color 150ms ease;
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--navy); }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint-warm); }

.modal__submit {
  display: block;
  width: 100%;
  margin-top: 28px;
  padding: 17px;
}

.form-error {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #8C2F2F;
}
.form-error:empty { display: none; }

.fine-print {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-faint);
}
.fine-print a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

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

/* Confirmation state */

.modal__sent {
  padding: 48px 44px 40px;
  text-align: center;
}
.modal__sent svg { margin: 0 auto 24px; }
.modal__sent h2 {
  margin-bottom: 12px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  color: var(--navy);
}
.modal__sent p {
  margin-bottom: 30px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted-warm);
}
.modal__sent .btn--outline {
  display: block;
  width: 100%;
}

.modal[data-state="form"] .modal__sent { display: none; }
.modal[data-state="sent"] .modal__form { display: none; }
.modal[data-state="sent"] { width: 480px; }

/* ==========================================================================
   Rep portal — sign in
   ========================================================================== */

.rep-signin {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 110px 20px 60px;
  background: var(--navy);
}

.rep-topline {
  position: absolute;
  top: 34px;
  left: 44px;
  right: 44px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.lockup {
  display: flex;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
}
.lockup__word {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--off-white);
}
.lockup__tag {
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}

.rep-back {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.5);
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease;
}
.rep-back:hover { color: var(--off-white); }

.signin-card {
  width: 460px;
  max-width: 100%;
  padding: 48px 44px 40px;
  background: var(--off-white);
  border-top: 3px solid var(--gold);
}
.signin-card .eyebrow { margin-bottom: 14px; }
.signin-card h1 {
  margin-bottom: 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
  color: var(--navy);
}
.signin-card__sub {
  margin-bottom: 32px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted-warm);
}
.signin-card__crest {
  display: block;
  height: 42px;
  width: auto;
  margin-bottom: 26px;
  /* The crest PNG has a white background; multiply melts it into the card. */
  mix-blend-mode: multiply;
}

.signin-card .btn--navy {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 17px;
}
.signin-card .fine-print { font-size: 13px; padding-top: 20px; }

.signin-sent {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--gold);
  background: rgba(198,162,74,0.08);
  font-size: 14px;
  line-height: 1.6;
  color: var(--navy);
}
.signin-sent svg { flex-shrink: 0; margin-top: 2px; }

[hidden] { display: none !important; }

/* ==========================================================================
   Rep portal — resources
   ========================================================================== */

.rep-body { background: var(--off-white); min-height: 100vh; }

.rep-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 44px;
  background: var(--navy);
}
.rep-bar .lockup__word { font-size: 18px; }
.rep-bar .lockup__tag { font-size: 8px; letter-spacing: 0.34em; }

.rep-bar__right {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0; /* let the name shrink instead of shoving Sign out off-screen */
}
.rep-bar__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: rgba(245,241,234,0.8);
}
.rep-bar__sep {
  width: 1px;
  height: 16px;
  background: rgba(245,241,234,0.22);
}
.rep-bar__signout {
  flex-shrink: 0; /* Sign out must always be reachable */
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.5);
  text-decoration: none;
  transition: color 150ms ease;
}
.rep-bar__signout:hover { color: var(--off-white); }

.rep-main { padding: 64px 44px 72px; }

.rep-main__head {
  max-width: 620px;
  margin-bottom: 44px;
}
.rep-main__head h2 {
  margin-bottom: 14px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 42px;
  line-height: 1.12;
  color: var(--navy);
}
.rep-main__head p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted-warm);
}

.rep-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.rep-tile {
  display: block;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  transition: border-color 150ms ease;
}
/* Only real links light up — pending tiles are <div>s. */
a.rep-tile:hover { border-color: var(--gold); }

/* Brands whose Drive folder hasn't been supplied — visible, not clickable. */
.rep-tile--pending .rep-tile__plate { opacity: 0.55; }
.rep-tile--pending .rep-tile__go { color: var(--text-faint); }

.rep-tile__plate {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  padding: 40px;
}
.rep-tile__plate img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.rep-tile__plate img.is-audiosource { width: 250px; }
.rep-tile__plate img.is-hendoled { max-width: 240px; max-height: 78px; }

.plate--navy { background: var(--navy); }
.plate--paper { background: #F0EDE7; }
.plate--plum { background: #2A1A3D; }
.plate--coffee { background: #4A3428; }
.plate--slate { background: #2E3A45; }

.rep-tile__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-top: 1px solid var(--line-soft);
}
.rep-tile__name {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.rep-tile__desc {
  font-size: 12px;
  color: var(--text-faint);
}
.rep-tile__go {
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  white-space: nowrap;
}

.rep-tile--corp {
  border-color: var(--gold);
  background: var(--navy);
}
.rep-tile--corp .rep-tile__plate {
  flex-direction: column;
  gap: 6px;
}
.rep-tile--corp .rep-tile__meta { border-top-color: rgba(245,241,234,0.16); }
.rep-tile--corp .rep-tile__name { color: var(--off-white); }
.rep-tile--corp .rep-tile__desc { color: rgba(245,241,234,0.55); }
.rep-tile--corp .rep-tile__go { color: var(--gold); }
.rep-tile--corp .lockup__name { font-size: 26px; }
.rep-tile--corp .lockup__sub { margin-top: 6px; font-size: 9px; letter-spacing: 0.4em; }

.rep-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  background: #FBF9F5;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted-warm);
}
.rep-notice a.inline-link {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
.rep-notice__btn {
  flex-shrink: 0;
  padding: 12px 20px;
  border: 1px solid var(--border-input);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted-warm);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 150ms ease, color 150ms ease;
}
.rep-notice__btn:hover { border-color: var(--gold); color: var(--navy); }

/* ==========================================================================
   Mobile — below 900px
   ========================================================================== */

@media (max-width: 899px) {
  /* iOS Safari zooms the whole page when a focused input is under 16px, and
     never zooms back out. 16px keeps the partner modal and rep login usable
     on a phone. */
  .field input,
  .field textarea { font-size: 16px; }

  :root {
    --pad-x: 20px;
    --pad-y: 52px;
  }

  /* Nav */
  .nav { height: 62px; padding: 0 var(--pad-x); }
  .nav__logo img { height: 26px; }
  .nav__right { gap: 8px; }
  .nav__toggle { display: block; }
  /* Vertical padding only — these two sit beside the logo on a 375px screen,
     so height is free but width is not. */
  .nav__rep { padding: 13px 11px; font-size: 10px; letter-spacing: 0.13em; }
  .nav__cta { padding: 13px 13px; font-size: 10px; letter-spacing: 0.13em; }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0 var(--pad-x);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open { display: flex; }
  .nav__links li + li { border-top: 1px solid var(--line-soft); }
  .nav__links a {
    display: flex;
    align-items: center;
    min-height: 52px;
  }

  /* Hero */
  .hero {
    min-height: 520px;
    padding: 90px var(--pad-x) 34px;
  }
  .hero::after {
    background: linear-gradient(180deg, rgba(11,22,38,0.55) 0%, rgba(11,22,38,0.88) 55%, rgba(11,22,38,0.96) 100%);
  }
  .hero__inner { width: 100%; }
  .hero__rule { display: none; }
  .hero__eyebrow { margin-bottom: 16px; }
  .hero__eyebrow .eyebrow { font-size: 10px; letter-spacing: 0.2em; }
  .hero h1 { margin-bottom: 16px; font-size: 36px; line-height: 1.1; }
  .hero__body { margin-bottom: 26px; font-size: 15px; line-height: 1.6; }
  .hero .btn { display: block; width: 100%; padding: 16px; }

  /* Trust */
  .trust {
    display: block;
    padding: 22px var(--pad-x);
  }
  .trust__channels { flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
  .trust__channels li { padding: 0; font-size: 12px; }
  .trust__channels li + li::before { display: none; }

  /* Section heads */
  .section__head { margin-bottom: 28px; }
  .section__head .eyebrow,
  .capabilities__head .eyebrow,
  .split__copy .eyebrow { font-size: 10px; margin-bottom: 14px; }
  .h2 { font-size: 30px; }

  /* Portfolio */
  .portfolio__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .brand-card__plate { height: 128px; padding: 28px; }
  .brand-card__plate img.is-audiosource { width: 200px; }
  .brand-card__plate img.is-hendoled { max-width: 190px; max-height: 56px; }
  .wordmark { font-size: 26px; }
  .wordmark--essoetto { font-size: 30px; }
  .wordmark--pvmp { font-size: 22px; letter-spacing: 0.32em; }
  .brand-card__meta { padding: 16px 18px; gap: 14px; }
  .brand-card__name { margin-bottom: 6px; }
  .brand-card__desc { font-size: 13px; line-height: 1.5; }
  .brand-card__link { letter-spacing: 0; }

  /* Capabilities */
  .capabilities__head { display: block; margin-bottom: 24px; }
  .capabilities__intro { max-width: none; margin-top: 16px; }
  .capabilities__grid { grid-template-columns: minmax(0, 1fr); }
  .capability { padding: 22px 0; }
  .capability:last-child { border-bottom: 1px solid var(--rule); }
  .capability svg { display: none; }
  .capability .label { margin-bottom: 8px; }
  .capability p { line-height: 1.6; }

  /* Split */
  .split { grid-template-columns: minmax(0, 1fr); }
  .split__photo { height: 260px; }
  .split__copy { padding: 44px var(--pad-x) var(--pad-y); }
  .split__copy h2 { margin-bottom: 16px; font-size: 28px; }
  .split__intro { margin-bottom: 26px; font-size: 15px; line-height: 1.65; }
  .steps li { gap: 18px; padding: 18px 0; }
  .steps__num { flex-basis: 24px; font-size: 18px; }
  .steps .label { margin-bottom: 6px; }
  .steps p { line-height: 1.6; }
  .split__cta { display: block; margin-top: 28px; padding: 16px; }

  /* Proof */
  .proof { padding: 44px var(--pad-x); }
  .proof__tag-row { justify-content: flex-start; margin-bottom: 22px; }
  .proof__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .proof__stat { padding: 20px 0 24px; }
  .proof__num { margin-bottom: 10px; font-size: 40px; }
  .proof__label { font-size: 10px; }

  /* Footer */
  .footer { padding: 44px var(--pad-x) 28px; }
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-bottom: 28px;
  }
  .footer__bottom {
    display: block;
    padding-top: 22px;
    line-height: 1.7;
  }
  .footer__legal { margin-top: 10px; gap: 16px; }

  /* Modal */
  .modal { max-height: 88vh; }
  .modal__form { padding: 32px 24px 28px; }
  .modal__head h2 { font-size: 26px; }
  .modal__sent { padding: 36px 24px 32px; }

  /* Rep sign-in */
  .rep-signin { padding: 90px 20px 40px; }
  .rep-topline { top: 26px; left: 20px; right: 20px; }
  .lockup__word { font-size: 16px; }
  .lockup__tag { font-size: 8px; letter-spacing: 0.34em; }
  .rep-back { font-size: 10px; }
  .rep-back__full { display: none; }
  .signin-card { padding: 34px 26px 30px; }
  .signin-card__crest { height: 34px; margin-bottom: 20px; }
  .signin-card h1 { font-size: 28px; }
  .signin-card__sub { margin-bottom: 24px; }

  /* Rep resources */
  .rep-bar { padding: 16px 20px; }
  .rep-bar .lockup__word { font-size: 15px; }
  /* One shared login, so the address identifies nobody — drop it on phones
     rather than crowd out Sign out. */
  .rep-bar__name { display: none; }
  .rep-bar__sep { display: none; }
  /* Padding/negative-margin pair grows the thumb target without moving it. */
  .rep-bar__signout { padding: 12px 6px; margin: -12px -6px; }
  .rep-main { padding: 30px 20px 36px; }
  .rep-main__head { margin-bottom: 24px; }
  .rep-main__head h2 { font-size: 30px; margin-bottom: 10px; }
  .rep-main__head p { font-size: 14px; line-height: 1.6; }

  .rep-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .rep-tile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
  }
  .rep-tile__plate {
    flex: 0 0 96px;
    width: 96px;
    height: 62px;
    padding: 10px;
  }
  .rep-tile__plate img.is-audiosource { width: 76px; }
  .rep-tile__plate img.is-hendoled { max-width: 76px; max-height: 40px; }
  .rep-tile__plate .wordmark { font-size: 15px; }
  .rep-tile__plate .wordmark--essoetto { font-size: 18px; }
  .rep-tile__plate .wordmark--pvmp { font-size: 14px; letter-spacing: 0.28em; }
  .rep-tile--corp .lockup__name { font-size: 15px; letter-spacing: 0.04em; }
  .rep-tile--corp .lockup__sub { display: none; }
  .rep-tile__meta {
    flex: 1;
    padding: 0;
    border-top: 0;
  }
  .rep-tile--corp .rep-tile__meta { border-top: 0; }
  .rep-tile__name { margin-bottom: 3px; }
  .rep-tile__go { font-size: 15px; letter-spacing: 0; }
  .rep-tile__go .rep-tile__go-text { display: none; }

  .rep-notice {
    display: block;
    margin-top: 12px;
    padding: 18px;
    font-size: 13px;
  }
  .rep-notice__btn {
    display: block;
    margin-top: 16px;
    text-align: center;
  }
}

/* --- Reduced motion ------------------------------------------------------- */

/* ==========================================================================
   Very narrow phones (iPhone SE and friends)
   Everything else reflows fine at 320px; only the nav runs out of room, where
   "Contact Us" wraps to two lines beside the logo.
   ========================================================================== */

@media (max-width: 380px) {
  :root { --pad-x: 16px; }

  .nav__logo img { height: 22px; }
  .nav__right { gap: 6px; }
  .nav__rep,
  .nav__cta {
    padding: 12px 8px;
    font-size: 9px;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }
}

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

/* ==========================================================================
   Rep portal chrome (added 2026-08-11): section nav, what's-new strip,
   coming-soon pages for Training and Metrics.
   ========================================================================== */

.portal-nav {
  display: flex;
  gap: 4px;
  padding: 0 44px;
  background: var(--navy);
  border-top: 1px solid rgba(245, 241, 234, 0.1);
}
.portal-nav a {
  display: inline-flex;
  align-items: center;
  padding: 14px 18px 12px;
  border-bottom: 2px solid transparent;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(245, 241, 234, 0.55);
  transition: color 150ms ease;
}
.portal-nav a:hover { color: var(--off-white); }
.portal-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.portal-nav__soon {
  margin-left: 7px;
  padding: 2px 5px 1px;
  border: 1px solid rgba(245, 241, 234, 0.25);
  border-radius: 2px;
  font-size: 8px;
  letter-spacing: 0.14em;
  color: rgba(245, 241, 234, 0.45);
}

.whatsnew {
  margin-bottom: 40px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: #fff;
}
.whatsnew__title {
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}
.whatsnew ul { list-style: none; margin: 0; padding: 0; }
.whatsnew li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 5px 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted-warm, #6E6759);
}
.whatsnew__date {
  flex-shrink: 0;
  min-width: 92px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text, #8A6D2F);
}

.soon { max-width: 620px; }
.soon .eyebrow { margin-bottom: 14px; }
.soon h2 {
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: 34px;
  line-height: 1.15;
  color: var(--navy);
}
.soon p {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted-warm, #6E6759);
}
.soon__back { margin-top: 18px; }

@media (max-width: 899px) {
  .portal-nav { padding: 0 12px; }
  .portal-nav a { padding: 13px 12px 11px; font-size: 10px; letter-spacing: 0.1em; }
  .portal-nav__soon { margin-left: 5px; }
  .whatsnew { margin-bottom: 28px; padding: 16px 18px; }
  .whatsnew li { flex-direction: column; gap: 2px; padding: 7px 0; }
  .whatsnew__date { min-width: 0; }
  .soon h2 { font-size: 28px; }
}

@media (max-width: 380px) {
  /* Three tabs + two "Soon" chips overflow a 320px screen; the chips are
     decoration, the tabs are not. */
  .portal-nav__soon { display: none; }
  .portal-nav a { padding: 13px 10px 11px; }
}
