/* =============================================================
   TEMPRIS — Landing page styles
   -------------------------------------------------------------
   Sections:
     1. Variables
     2. Reset
     3. Typography
     4. Layout
     5. Navigation
     6. Hero
     7. Sections
     8. Cards (panels / steps / values / partner)
     9. Contact
    10. Footer
    11. Media queries
   ============================================================= */


/* -------------------------------------------------------------
   1. VARIABLES
   ------------------------------------------------------------- */
:root {
  --ink: #0b1020;
  --ink-2: #141b30;
  --line: #26304d;
  --paper: #f7f8fb;
  --muted: #8b96b0;
  --soft: #b9c2d8;
  --cyan: #3ad1c4;
  --cyan-deep: #1aa89c;
  --amber: #f4b740;
  --white: #eef2fb;
  --maxw: 1080px;
}


/* -------------------------------------------------------------
   2. RESET
   ------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--ink);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Consistent, visible keyboard focus across interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}


/* -------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------- */
h1, h2, h3 {
  font-family: 'Sora', sans-serif;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}


/* -------------------------------------------------------------
   4. LAYOUT
   ------------------------------------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}


/* -------------------------------------------------------------
   5. NAVIGATION
   ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 32, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-in {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

/* Logo icon: the attached artwork, cropped to just the hourglass via CSS
   (the image file itself is unmodified). */
.brand-icon {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 10px;
}

.brand-icon img {
  position: absolute;
  width: 55px;
  height: 55px;
  left: -5px;
  top: 4.25px;
}

.brand-word {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #8A6BFF, #E15AA0, #F79A3C);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--soft);
  white-space: nowrap;
  transition: 0.2s;
}

.nav-links a:hover {
  color: var(--white);
  background: var(--ink-2);
}

.nav-cta {
  background: var(--cyan);
  color: var(--ink) !important;
  font-weight: 600;
}

.nav-links a.nav-cta:hover {
  background: var(--cyan-deep);
  color: var(--ink) !important;
}


/* -------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  border-top: none; /* override generic section border-top */
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}

.hero-in {
  position: relative;
}

.hero h1 {
  font-size: clamp(34px, 6.4vw, 62px);
  font-weight: 800;
  max-width: 16ch;
  margin: 18px 0 0;
}

.hero h1 em {
  font-style: normal;
  color: var(--cyan);
}

.hero .lead {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--soft);
  max-width: 56ch;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

/* Buttons (shared) */
.btn {
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 0.2s;
  display: inline-block;
}

.btn-primary {
  background: var(--cyan);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--cyan-deep);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}


/* -------------------------------------------------------------
   7. SECTIONS
   ------------------------------------------------------------- */
section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.sec-head {
  max-width: 60ch;
  margin-bottom: 40px;
}

.sec-head h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  margin-top: 12px;
}

.sec-head p {
  color: var(--soft);
  font-size: 17px;
  margin-top: 14px;
}


/* -------------------------------------------------------------
   8. CARDS
   ------------------------------------------------------------- */

/* Before / after split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.panel {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.panel.before {
  border-color: #3a2230;
}

.panel.after {
  border-color: var(--cyan-deep);
}

.panel h3 {
  font-size: 19px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tag {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
}

.tag.red {
  background: rgba(244, 90, 120, 0.12);
  color: #f4657f;
  border: 1px solid #6b2a3a;
}

.tag.grn {
  background: rgba(58, 209, 196, 0.12);
  color: var(--cyan);
  border: 1px solid var(--cyan-deep);
}

.panel ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.panel li {
  display: flex;
  gap: 11px;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.5;
}

.panel li b {
  color: var(--white);
  font-weight: 600;
}

.mark {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

.mark.x {
  background: rgba(244, 90, 120, 0.15);
  color: #f4657f;
}

.mark.c {
  background: rgba(58, 209, 196, 0.15);
  color: var(--cyan);
}

/* How — 3 numbered steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: s;
  list-style: none;
}

.step {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  position: relative;
}

.step::before {
  counter-increment: s;
  content: counter(s, decimal-leading-zero);
  font-family: 'Space Mono', monospace;
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.step h3 {
  font-size: 18px;
  margin: 12px 0 8px;
}

.step p {
  color: var(--soft);
  font-size: 15px;
}

/* The loop — six-stage continuous cycle */
.loop {
  list-style: none;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.loop-step {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 26px 24px;
}

/* Down-arrow connector sitting in the gap below each step */
.loop-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -34px;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: translateX(-50%) rotate(45deg);
}

.loop-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.loop-num {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(135deg, var(--cyan), var(--amber));
}

.loop-head h3 {
  font-size: 20px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.loop-abbr {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  border: 1px solid var(--cyan-deep);
  border-radius: 20px;
  padding: 2px 8px;
}

.loop-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.loop-tags li {
  font-size: 13px;
  color: var(--soft);
  background: rgba(58, 209, 196, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 11px;
}

.loop-return {
  max-width: 560px;
  margin: 40px auto 0;
  text-align: center;
  color: var(--cyan);
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  background: rgba(58, 209, 196, 0.08);
  border: 1px dashed var(--cyan-deep);
  border-radius: 12px;
  padding: 14px 18px;
}

.loop-return span {
  font-size: 16px;
  margin-right: 6px;
}

/* Value strip */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.values--spaced {
  margin-top: 20px;
}

.val {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--ink-2), transparent);
}

.val h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--white);
}

.val p {
  color: var(--soft);
  font-size: 15px;
}

.val-eyebrow {
  margin-bottom: 10px;
}

/* Team — founding members */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
}

.member {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--ink-2), transparent);
  text-align: center;
}

.avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: linear-gradient(135deg, var(--cyan), var(--amber));
}

.member-name {
  font-size: 18px;
  color: var(--white);
}

.member-role {
  color: var(--soft);
  font-size: 15px;
  margin-top: 4px;
}

.member-org {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 8px;
}

/* Partner call-to-action card */
.partner-card {
  background: linear-gradient(135deg, rgba(58, 209, 196, 0.08), rgba(244, 183, 64, 0.05));
  border: 1px solid var(--cyan-deep);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
}

.partner-card h2 {
  font-size: clamp(24px, 3.6vw, 34px);
}

.partner-card p {
  color: var(--soft);
  max-width: 60ch;
  margin: 16px auto 26px;
  font-size: 17px;
}


/* -------------------------------------------------------------
   9. CONTACT
   ------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  margin-top: 12px;
}

.contact-intro {
  color: var(--soft);
  margin-top: 16px;
  font-size: 17px;
}

.contact-address {
  color: var(--muted);
  margin-top: 24px;
  font-size: 14px;
}

.link-cyan {
  color: var(--cyan);
}

form {
  display: grid;
  gap: 14px;
}

/* Each field stacks its label above its control */
.field {
  display: grid;
  gap: 6px;
}

label {
  font-size: 13px;
  color: var(--muted);
}

input,
textarea,
select {
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--cyan);
}

.form-note {
  font-size: 13px;
  color: var(--muted);
}

.ok {
  color: var(--cyan);
  font-weight: 600;
}

.err {
  color: #f4657f;
  font-weight: 600;
}


/* -------------------------------------------------------------
   10. FOOTER
   ------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  color: var(--muted);
  font-size: 14px;
}

.foot-in {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.foot-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.foot-links a:hover {
  color: var(--cyan);
}


/* -------------------------------------------------------------
   NEW COMPONENTS (audit implementation)
   ------------------------------------------------------------- */

/* Skip link — visible only on keyboard focus */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--cyan);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

/* CTEM educational grid */
.ctem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ctem-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--ink-2), transparent);
}

.ctem-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--white);
}

.ctem-card p {
  color: var(--soft);
  font-size: 15px;
}

/* Stage icons in the loop */
.loop-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--cyan);
}

/* Department hierarchy — top-down chart */
.hierarchy {
  list-style: none;
  max-width: 420px;
  margin: 0 auto 8px;
  display: flex;
  flex-direction: column;
}

.hierarchy .tier {
  text-align: center;
  padding: 12px 18px;
  border: 1px solid var(--cyan-deep);
  border-radius: 12px;
  background: rgba(58, 209, 196, 0.07);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
}

.hierarchy .tier + .tier {
  position: relative;
  margin-top: 34px;
}

.hierarchy .tier + .tier::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -26px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: translateX(-50%) rotate(45deg);
}

/* Team groups */
.team-group {
  margin-top: 40px;
}

.group-title {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.member-name {
  font-family: 'Sora', sans-serif;
}

.member-bio {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

/* LinkedIn profile link on member cards */
.member-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  border: 1px solid var(--cyan-deep);
  border-radius: 20px;
  transition: 0.2s;
}

.member-link:hover {
  background: rgba(58, 209, 196, 0.1);
  border-color: var(--cyan);
  color: var(--white);
}

.member-link svg { flex: 0 0 auto; }

img.avatar {
  object-fit: cover;
}

.avatar--empty {
  background: var(--ink-2);
  border: 1px dashed var(--line);
  color: var(--muted);
}

.member--placeholder {
  border-style: dashed;
  opacity: 0.8;
}

/* Onboarding — expandable environment fields */
.env {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.env summary {
  cursor: pointer;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--soft);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.env summary::-webkit-details-marker { display: none; }

.env summary::before {
  content: "+";
  font-family: 'Space Mono', monospace;
  font-size: 16px;
  color: var(--cyan);
}

.env[open] summary::before { content: "\2013"; }

.env summary span {
  color: var(--muted);
  font-weight: 400;
}

.env-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 4px 16px 18px;
}

.env-grid-full { grid-column: 1 / -1; }

.env-services {
  border: 0;
  padding: 0;
  margin: 0;
}

.env-services legend {
  font-size: 13px;
  color: var(--muted);
  padding: 0;
  margin-bottom: 8px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--soft);
  margin-bottom: 6px;
}

.check input {
  width: auto;
}

/* Video placeholder — 16:9, embed-ready */
.video-frame {
  max-width: 820px;
  margin: 0 auto;
}

.video-frame iframe,
.video-frame video,
.video-ph {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  display: block;
}

.video-frame iframe { border: 0; }

.video-frame video {
  background: #000;
  object-fit: cover;
  border: 1px solid var(--line);
}

.video-ph {
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 38%, rgba(58, 209, 196, 0.12), transparent 60%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.video-play {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(135deg, var(--cyan), var(--amber));
}

.video-cap {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--soft);
}

/* Placeholder text awaiting client content */
.pending {
  color: var(--muted);
  font-style: italic;
}


/* -------------------------------------------------------------
   11. MEDIA QUERIES
   ------------------------------------------------------------- */

/* Tablet and below — collapse multi-column grids to a single column */
@media (max-width: 820px) {
  .split,
  .steps,
  .values,
  .team-grid,
  .ctem-grid,
  .env-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 56px 0;
  }

  .hero {
    padding: 64px 0 56px;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto;
  }
}
