/* ─────────────────────────────────────────────────────────────
   Page 14 — Templates
   ───────────────────────────────────────────────────────────── */

/* Template index — 7 large cards */
.tmpl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 1000px) { .tmpl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tmpl-grid { grid-template-columns: 1fr; } }
.tmpl-card {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tmpl-card .preview {
  position: relative;
  aspect-ratio: 4 / 5;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.tmpl-card .preview .scaler {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.tmpl-card .meta {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tmpl-card .meta .ix {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-300);
}
.tmpl-card .meta h4 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.008em;
  margin: 0;
  color: var(--fg-default);
}
.tmpl-card .meta p {
  font-size: 12.5px;
  color: var(--fg-muted);
  line-height: 1.5;
  margin: 4px 0 0;
}
.tmpl-card .meta .spec {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  margin-top: 10px;
}

/* === Deck title slide template === */
.t-deck {
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse 70% 90% at 70% 30%, rgba(47,55,255,0.32), transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(132,82,255,0.18), transparent 60%),
    linear-gradient(180deg, #000000, #050818);
  position: relative;
  overflow: hidden;
  padding: 14% 12% 14%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.t-deck::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.5) 0.5px, transparent 0.5px);
  background-size: 100px 100px;
  background-position: 10px 10px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent 85%);
}
.t-deck > * { position: relative; z-index: 1; }
.t-deck .top img { height: 12%; max-height: 16px; width: auto; }
.t-deck .body h3 {
  font-size: clamp(11px, 1.3vw, 16px);
  letter-spacing: -0.022em;
  line-height: 1.05;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 6px;
  text-wrap: balance;
}
.t-deck .body .sub {
  font-family: var(--font-mono);
  font-size: clamp(7px, 0.7vw, 9px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.t-deck .foot {
  font-family: var(--font-mono);
  font-size: clamp(6px, 0.6vw, 8px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: flex;
  justify-content: space-between;
}

/* === One-pager === */
.t-onepager {
  width: 100%; height: 100%;
  background: #FFFFFF;
  color: #000;
  padding: 12% 10%;
  display: flex;
  flex-direction: column;
  gap: 8%;
}
.t-onepager .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding-bottom: 4%;
}
.t-onepager .top img { height: clamp(10px, 1.2vw, 16px); }
.t-onepager .top .meta {
  font-family: var(--font-mono);
  font-size: clamp(5px, 0.55vw, 7px);
  letter-spacing: 0.08em;
  color: #767781;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.6;
}
.t-onepager h3 {
  font-size: clamp(10px, 1.2vw, 14px);
  letter-spacing: -0.018em;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.15;
}
.t-onepager p {
  font-size: clamp(6px, 0.75vw, 9px);
  line-height: 1.6;
  color: #434349;
  margin: 0 0 4px;
}
.t-onepager .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4%;
}
.t-onepager .grid .cell {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 3%;
}
.t-onepager .grid .lbl {
  font-family: var(--font-mono);
  font-size: clamp(5px, 0.55vw, 7px);
  letter-spacing: 0.08em;
  color: #767781;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.t-onepager .foot {
  margin-top: auto;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 3%;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: clamp(5px, 0.55vw, 7px);
  letter-spacing: 0.08em;
  color: #93949D;
  text-transform: uppercase;
}

/* === Weekly brief === */
.t-brief {
  width: 100%; height: 100%;
  background: #FFFFFF;
  color: #000;
  padding: 12% 9%;
  display: flex;
  flex-direction: column;
  gap: 6%;
}
.t-brief .head {
  font-family: var(--font-mono);
  font-size: clamp(6px, 0.65vw, 8px);
  letter-spacing: 0.12em;
  color: #767781;
  text-transform: uppercase;
}
.t-brief .head b { color: var(--blue-700); }
.t-brief h3 {
  font-size: clamp(10px, 1.2vw, 14px);
  letter-spacing: -0.018em;
  font-weight: 600;
  margin: 4px 0 0;
  line-height: 1.2;
}
.t-brief ol {
  margin: 0;
  padding-left: 4%;
  font-size: clamp(7px, 0.8vw, 10px);
  color: #4E4E56;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 1%;
}
.t-brief ol b { color: #000; font-weight: 500; }
.t-brief .cta {
  margin-top: auto;
  background: #000;
  color: #FFF;
  padding: 6% 8%;
  border-radius: 3px;
  font-size: clamp(6px, 0.7vw, 9px);
  font-weight: 500;
  align-self: flex-start;
}

/* === Decision read-out === */
.t-readout {
  width: 100%; height: 100%;
  background: #FFFFFF;
  color: #000;
  padding: 10% 9%;
  display: flex;
  flex-direction: column;
  gap: 3%;
}
.t-readout .top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding-bottom: 3%;
}
.t-readout .top .name {
  font-size: clamp(8px, 1vw, 12px);
  font-weight: 600;
  letter-spacing: -0.005em;
}
.t-readout .top .ix {
  font-family: var(--font-mono);
  font-size: clamp(5px, 0.55vw, 7px);
  letter-spacing: 0.1em;
  color: var(--blue-700);
  text-transform: uppercase;
}
.t-readout .lifecycle {
  display: flex;
  align-items: center;
  gap: 6%;
  padding: 3% 0;
}
.t-readout .lifecycle .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #000;
}
.t-readout .lifecycle .dot.empty {
  background: #FFF;
  border: 1px solid #DADADD;
}
.t-readout .lifecycle .line {
  flex: 1;
  height: 1px;
  background: #DADADD;
}
.t-readout .lifecycle .line.dashed { background: transparent; border-top: 1px dashed #DADADD; }
.t-readout .why {
  font-family: var(--font-mono);
  font-size: clamp(5px, 0.55vw, 7px);
  letter-spacing: 0.08em;
  color: #767781;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.t-readout p {
  font-size: clamp(6px, 0.75vw, 9px);
  line-height: 1.55;
  color: #434349;
  margin: 0;
}
.t-readout .footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: clamp(5px, 0.55vw, 7px);
  letter-spacing: 0.08em;
  color: #93949D;
}

/* === Memo === */
.t-memo {
  width: 100%; height: 100%;
  background: #FFFFFF;
  color: #000;
  padding: 12% 9%;
  display: flex;
  flex-direction: column;
}
.t-memo .header {
  font-family: var(--font-mono);
  font-size: clamp(5px, 0.55vw, 7px);
  letter-spacing: 0.08em;
  color: #767781;
  text-transform: uppercase;
  line-height: 1.8;
  margin-bottom: 6%;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding-bottom: 4%;
}
.t-memo .header b { color: #000; font-weight: 500; }
.t-memo h3 {
  font-size: clamp(10px, 1.1vw, 13px);
  letter-spacing: -0.018em;
  font-weight: 600;
  margin: 0 0 5%;
  line-height: 1.2;
}
.t-memo p {
  font-size: clamp(6px, 0.75vw, 9px);
  line-height: 1.6;
  color: #434349;
  margin: 0 0 4%;
}

/* === Pitch cover === */
.t-pitch {
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(132,82,255,0.18), transparent 60%),
    radial-gradient(ellipse 80% 80% at 50% 30%, rgba(47,55,255,0.22), transparent 60%),
    linear-gradient(180deg, #000000, #050818);
  color: #FFFFFF;
  padding: 14% 12%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.t-pitch::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.5) 0.5px, transparent 0.5px);
  background-size: 110px 110px;
  background-position: 10px 10px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black, transparent 85%);
}
.t-pitch > * { position: relative; z-index: 1; }
.t-pitch .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.t-pitch .top img { height: clamp(8px, 1vw, 12px); }
.t-pitch .top .meta {
  font-family: var(--font-mono);
  font-size: clamp(5px, 0.55vw, 7px);
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}
.t-pitch .center {
  display: grid;
  place-items: center;
  text-align: center;
  flex: 1;
  padding: 8% 0;
}
.t-pitch h3 {
  font-size: clamp(12px, 1.5vw, 18px);
  letter-spacing: -0.024em;
  font-weight: 600;
  margin: 0 0 4%;
  line-height: 1.05;
  text-wrap: balance;
}
.t-pitch .ey {
  font-family: var(--font-mono);
  font-size: clamp(5px, 0.55vw, 7px);
  letter-spacing: 0.14em;
  color: var(--blue-300);
  text-transform: uppercase;
}
.t-pitch .who {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: clamp(5px, 0.55vw, 7px);
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}
.t-pitch .who b { color: #FFFFFF; font-weight: 500; }

/* === Email signature === */
.t-sig {
  width: 100%; height: 100%;
  background: #FFFFFF;
  color: #000;
  padding: 16% 12%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.t-sig .line {
  display: grid;
  grid-template-columns: 18% 1fr;
  gap: 10%;
  align-items: center;
  padding: 6% 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.t-sig .line:first-child { border-top: 0; padding-top: 0; }
.t-sig .line img { width: 100%; }
.t-sig .name {
  font-size: clamp(8px, 0.95vw, 11px);
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 2px;
}
.t-sig .role {
  font-family: var(--font-mono);
  font-size: clamp(5px, 0.55vw, 7px);
  letter-spacing: 0.08em;
  color: #767781;
  text-transform: uppercase;
  margin-bottom: 4%;
}
.t-sig .contact {
  font-family: var(--font-mono);
  font-size: clamp(5px, 0.55vw, 7px);
  letter-spacing: 0.04em;
  color: #4E4E56;
  line-height: 1.7;
}

/* === Web hero (compact) === */
.t-web {
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse 70% 80% at 80% 0%, rgba(47,55,255,0.22), transparent 60%),
    linear-gradient(180deg, #000000, #050818);
  color: #FFFFFF;
  padding: 8% 10%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.t-web::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.4) 0.5px, transparent 0.5px);
  background-size: 110px 110px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 80% at 70% 30%, black, transparent 85%);
}
.t-web > * { position: relative; z-index: 1; }
.t-web .topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 4%;
}
.t-web .topnav img { height: clamp(8px, 1vw, 12px); }
.t-web .topnav .links {
  display: flex;
  gap: 8%;
  font-family: var(--font-mono);
  font-size: clamp(5px, 0.55vw, 7px);
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}
.t-web .hero {
  padding: 6% 0;
  flex: 1;
}
.t-web .hero .ey {
  font-family: var(--font-mono);
  font-size: clamp(5px, 0.55vw, 7px);
  letter-spacing: 0.12em;
  color: var(--blue-300);
  text-transform: uppercase;
  margin-bottom: 4%;
}
.t-web .hero h3 {
  font-size: clamp(11px, 1.35vw, 16px);
  letter-spacing: -0.024em;
  line-height: 1.04;
  font-weight: 600;
  margin: 0 0 4%;
  color: #FFFFFF;
  text-wrap: balance;
}
.t-web .hero p {
  font-size: clamp(6px, 0.75vw, 9px);
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  margin: 0 0 6%;
  max-width: 80%;
}
.t-web .hero .ctas {
  display: flex;
  gap: 4%;
}
.t-web .hero .ctas .btn {
  background: #FFFFFF;
  color: #000;
  padding: 3% 5%;
  font-size: clamp(6px, 0.7vw, 8px);
  font-weight: 500;
  border-radius: 2px;
}
.t-web .hero .ctas .btn.outline {
  background: transparent;
  color: #FFF;
  border: 1px solid rgba(255,255,255,0.22);
}
