/* ============================================================================
   TALL POPPY GROUP — COMPONENT LAYER
   ----------------------------------------------------------------------------
   Translated from the cje-tall-poppy-design-system-template ui_kit
   (ui_kits/tallpoppy/*.jsx). Consumes tokens from design-system.css.
   Editorial-meets-terminal: warm paper, one crimson accent, flat cards.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-elevated);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--poppy-100); }
img { max-width: 100%; }

/* ---- LAYOUT ---------------------------------------------------------- */
.tp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.tp-flex-col { display: flex; flex-direction: column; min-height: 100vh; }
.tp-main { flex: 1 0 auto; }

/* ---- SHARED: KICKER --------------------------------------------------- */
.tp-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--poppy-600);
  margin-bottom: 16px;
}
.tp-hero .tp-kicker { margin-bottom: 22px; }
.tp-section .tp-kicker { margin-bottom: 14px; }

/* ---- BUTTONS ---------------------------------------------------------- */
.tp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 14px;
  border-radius: var(--radius-lg); padding: 9px 16px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  white-space: nowrap; transition: all .16s ease;
}
.tp-btn--primary { background: var(--poppy-500); color: #fff; }
.tp-btn--primary:hover { background: var(--poppy-600); color: #fff; }
.tp-btn--primary:active { background: var(--poppy-700); transform: translateY(1px); }
.tp-btn--outline { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.tp-btn--outline:hover { background: var(--bg-sunken); color: var(--fg); }
.tp-btn--lg { font-size: 15px; padding: 13px 24px; }
.tp-btn:focus-visible,
.tp-nav__link:focus-visible,
.tp-dropdown__item:focus-visible,
.tp-mobile-toggle:focus-visible,
.tp-mobile-menu__close:focus-visible,
.tp-mobile-menu a:focus-visible,
.tp-detail__back:focus-visible,
.tp-contact-channels a:focus-visible,
.tp-footer__link:focus-visible {
  outline: 2px solid var(--poppy-500);
  outline-offset: 3px;
}

/* ---- HEADER ----------------------------------------------------------- */
.tp-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.tp-header__inner { display: flex; align-items: center; gap: 14px; height: 70px; }
.tp-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.tp-brand__mark { height: 34px; width: 34px; border-radius: 5px; }
.tp-brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  letter-spacing: -0.02em; color: var(--fg);
}
.tp-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.tp-nav__link {
  font-family: var(--font-sans); font-size: 14.5px; font-weight: 500;
  color: var(--fg); text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px; background: none;
  border: none; cursor: pointer; padding: 0;
}
.tp-nav__link:hover, .tp-nav__link.is-active { color: var(--poppy-600); }
.tp-nav__caret { font-size: 10px; color: var(--fg-subtle); }

.tp-dropdown-wrap { position: relative; }
.tp-dropdown {
  position: absolute; top: 100%; right: 0; margin-top: 10px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: 8px; min-width: 220px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.tp-dropdown-wrap:hover .tp-dropdown,
.tp-dropdown-wrap:focus-within .tp-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.tp-dropdown__item {
  display: block; font-family: var(--font-sans); font-size: 14px; font-weight: 400;
  color: var(--fg-muted); text-decoration: none; padding: 8px 10px;
  border-radius: var(--radius-sm);
}
.tp-dropdown__item:hover { background: var(--bg-sunken); color: var(--fg); }
.tp-dropdown__item--strong { font-weight: 600; color: var(--fg); }

/* ---- MOBILE MENU ------------------------------------------------------ */
.tp-mobile-toggle {
  display: none; margin-left: auto; background: none; border: none;
  cursor: pointer; color: var(--fg); padding: 8px;
}
.tp-mobile-overlay {
  position: fixed; inset: 0; background: rgba(20,17,13,0.4); z-index: 50;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease;
}
.tp-mobile-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.tp-mobile-menu {
  position: fixed; top: 0; right: 0; height: 100%; width: 300px; max-width: 84vw;
  background: var(--bg-elevated); z-index: 60; padding: 20px 24px;
  transform: translateX(100%); transition: transform .22s ease;
  border-left: 1px solid var(--border); overflow-y: auto;
  visibility: hidden; pointer-events: none;
}
.tp-mobile-menu.open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.tp-mobile-menu__close { float: right; background: none; border: none; cursor: pointer; color: var(--fg); padding: 6px; }
.tp-mobile-menu nav { margin-top: 48px; display: flex; flex-direction: column; gap: 6px; }
.tp-mobile-menu a {
  font-family: var(--font-sans); font-size: 17px; font-weight: 500;
  color: var(--fg); text-decoration: none; padding: 8px 0;
}
.tp-mobile-menu a:hover { color: var(--poppy-600); }
.tp-mobile-menu .tp-mobile-sub { padding-left: 14px; }
.tp-mobile-menu .tp-mobile-sub a { font-size: 15px; color: var(--fg-muted); padding: 5px 0; }

/* ---- HERO ------------------------------------------------------------- */
.tp-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF8F4 100%);
  border-bottom: 1px solid var(--border);
}
.tp-hero__inner { position: relative; z-index: 2; padding: 96px 32px 104px; }
.tp-hero__title {
  font-family: var(--font-display); font-weight: 700; font-size: 76px;
  letter-spacing: -0.03em; line-height: 0.98; margin: 0; color: var(--n-950);
  max-width: 760px;
}
.tp-hero__dek {
  font-family: var(--font-sans); font-size: 19px; line-height: 1.6;
  color: var(--fg-muted); max-width: 560px; margin: 26px 0 0;
}
.tp-hero__actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.tp-hero__poppy {
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  height: 108%; width: auto; object-fit: contain; z-index: 1;
  opacity: 0.96; pointer-events: none;
}

/* ---- SECTION (portfolio teaser / generic) ----------------------------- */
.tp-section { padding: 88px 32px; max-width: 1120px; margin: 0 auto; }
.tp-section__title {
  font-family: var(--font-display); font-weight: 700; font-size: 38px;
  letter-spacing: -0.02em; margin: 0; max-width: 640px; color: var(--fg);
}
.tp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }

/* ---- COMPANY CARD ----------------------------------------------------- */
.tp-card {
  position: relative; display: block; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 26px 24px; text-decoration: none; color: inherit;
  box-shadow: none; transform: none; transition: all .18s ease;
}
.tp-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.tp-card__badge {
  position: absolute; top: 22px; right: 24px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--poppy-600);
  background: var(--poppy-50); border: 1px solid var(--poppy-100);
  border-radius: var(--radius-pill); padding: 3px 9px;
}
.tp-card__kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-subtle); margin-bottom: 12px;
  padding-right: 72px;
}
.tp-card__title {
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  letter-spacing: -0.02em; margin: 0; color: var(--fg);
}
.tp-card__tagline {
  font-family: var(--font-sans); font-size: 15px; line-height: 1.55;
  color: var(--fg-muted); margin: 12px 0 18px;
}
.tp-card__more { font-family: var(--font-mono); font-size: 13px; color: var(--poppy-600); }
.tp-card:hover .tp-card__more { color: var(--poppy-700); }

/* ---- LOGO CARD (advisory) -------------------------------------------- */
.tp-card--logo { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.tp-card__logo-frame {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated); border-bottom: 1px solid var(--border);
  padding: 32px; min-height: 150px; position: relative;
}
.tp-card__logo-frame img { height: 64px; width: auto; object-fit: contain; }
.tp-card--logo .tp-card__body { padding: 20px 22px 22px; }
.tp-card__ext { position: absolute; top: 12px; right: 12px; color: var(--fg-subtle); }

/* ---- ADVISORY BAND (dark home CTA) ----------------------------------- */
.tp-band { background: var(--n-950); }
.tp-band__inner {
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
  padding: 72px 32px;
}
.tp-band__copy { flex: 1 1 420px; }
.tp-band__kicker {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--poppy-300); margin-bottom: 16px;
}
.tp-band__title {
  font-family: var(--font-display); font-weight: 700; font-size: 34px;
  letter-spacing: -0.02em; margin: 0; color: var(--n-50); max-width: 560px;
}
.tp-band__text {
  font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
  color: var(--n-400); max-width: 520px; margin-top: 16px;
}
.tp-band .tp-btn--lg { padding: 14px 26px; }

/* ---- PAGE SHELL (about / advisory / contact) ------------------------- */
.tp-shell { max-width: 820px; margin: 0 auto; padding: 72px 32px 96px; }
.tp-shell__title {
  font-family: var(--font-display); font-weight: 700; font-size: 48px;
  letter-spacing: -0.03em; line-height: 1.02; margin: 0 0 28px;
}
.tp-shell__lead {
  font-family: var(--font-sans); font-size: 18px; line-height: 1.6;
  color: var(--fg-muted); max-width: 620px;
}
/* serif body for long-form (reuses .prose from design-system.css for type) */
.tp-shell .prose { max-width: none; }
.tp-shell .prose h2 {
  font-family: var(--font-display); font-size: var(--text-h2); font-weight: 600;
  letter-spacing: -0.02em; margin: 36px 0 12px;
}
.tp-shell .prose ul { padding-left: 1.2em; }
.tp-shell .prose li { margin: 6px 0; }
.tp-shell .prose a { color: var(--fg-link); }
.tp-about__body {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.72;
  color: var(--n-900);
}
.tp-about__body p,
.tp-about__body li {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
.tp-about__body p + p { margin-top: 22px; }

/* ---- COMPANY DETAIL --------------------------------------------------- */
.tp-detail { max-width: 760px; margin: 0 auto; padding: 56px 32px 96px; }
.tp-detail__back { font-family: var(--font-mono); font-size: 13px; color: var(--poppy-600); text-decoration: none; white-space: nowrap; }
.tp-detail__back:hover { color: var(--poppy-700); }
.tp-detail__meta { display: flex; align-items: center; gap: 14px; margin: 28px 0 8px; flex-wrap: wrap; }
.tp-detail__metakicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-subtle); }
.tp-detail__badge {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--poppy-600); background: var(--poppy-50);
  border: 1px solid var(--poppy-100); border-radius: var(--radius-pill); padding: 3px 9px;
}
.tp-detail__title { font-family: var(--font-display); font-weight: 700; font-size: 44px; letter-spacing: -0.02em; margin: 0; }
.tp-detail__tagline { font-family: var(--font-sans); font-size: 20px; line-height: 1.5; color: var(--poppy-700); font-weight: 500; margin-top: 14px; }
.tp-detail__body { margin-top: 22px; }
.tp-detail__visit { margin-top: 28px; }

/* ---- FORMS ------------------------------------------------------------ */
.tp-form { display: grid; gap: 16px; max-width: 520px; }
.tp-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tp-field { display: block; }
.tp-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-muted); display: block; margin-bottom: 7px;
}
.tp-input, .tp-textarea {
  width: 100%; font-family: var(--font-sans); font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  background: var(--bg-elevated); color: var(--fg);
}
.tp-input:focus, .tp-textarea:focus { outline: none; border-color: var(--poppy-500); box-shadow: var(--ring-accent); }
.tp-textarea { resize: vertical; min-height: 110px; }
.tp-form__note { margin-bottom: 24px; }
.tp-contact__form { margin-top: 36px; }
.tp-contact__submit { justify-self: start; padding: 13px 26px; }
.tp-contact-channels { display: grid; gap: 12px; margin-top: 8px; }
.tp-contact-channels a { font-family: var(--font-sans); font-size: 15px; color: var(--fg-link); text-decoration: none; }
.tp-contact-channels a:hover { color: var(--poppy-700); }
.tp-alert { padding: 12px 16px; border-radius: var(--radius-md); margin-bottom: 24px; font-size: 15px; }
.tp-alert--ok { background: var(--poppy-50); border: 1px solid var(--poppy-100); color: var(--poppy-700); }
.tp-alert--error { background: var(--n-100); border: 1px solid var(--border-strong); color: var(--fg); }

/* ---- FOOTER ----------------------------------------------------------- */
.tp-footer { background: var(--bg-sunken); border-top: 1px solid var(--border); }
.tp-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 52px 32px 40px; }
.tp-footer__brand { display: flex; align-items: center; gap: 11px; }
.tp-footer__mark { height: 34px; width: 34px; border-radius: 5px; }
.tp-footer__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.tp-footer__tagline { font-family: var(--font-sans); font-size: 13.5px; color: var(--fg-muted); margin-top: 14px; max-width: 280px; }
.tp-footer__col-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-subtle); margin-bottom: 14px; }
.tp-footer__link { display: block; font-family: var(--font-sans); font-size: 14px; color: var(--fg); text-decoration: none; padding: 4px 0; }
.tp-footer__link:hover { color: var(--poppy-600); }
.tp-footer__bar { border-top: 1px solid var(--border); padding: 18px 32px; text-align: center; font-family: var(--font-mono); font-size: 11px; color: var(--fg-subtle); letter-spacing: 0.06em; }

/* ---- RESPONSIVE ------------------------------------------------------- */
@media (max-width: 860px) {
  .tp-nav { display: none; }
  .tp-mobile-toggle { display: inline-flex; }
  .tp-hero__title { font-size: 52px; }
  .tp-hero__inner { padding: 64px 32px 72px; max-width: 100%; }
  .tp-hero__poppy { opacity: 0.18; right: -10%; }
  .tp-grid-3 { grid-template-columns: 1fr; }
  .tp-footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .tp-form__row { grid-template-columns: 1fr; }
  .tp-shell__title { font-size: 36px; }
  .tp-detail__title { font-size: 34px; }
  .tp-section__title { font-size: 30px; }
  .tp-band__title { font-size: 28px; }
}
@media (min-width: 861px) {
  .tp-mobile-overlay,
  .tp-mobile-menu { display: none !important; }
}
@media (min-width: 861px) and (max-width: 1040px) {
  .tp-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
