/* ============================================================
   CYNRGI LABS — DESIGN SYSTEM v1.1 (One-Page)
   B2B Venture Studio · Pasadena, CA
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --red:   #E81728;
  --ink:   #0C0C0C;
  --slate: #181818;
  --card:  #141414;
  --white: #FAFAFA;
  --smoke: #5C5C5C;
  --fog:   #EBEBEB;

  --fd: 'Barlow Condensed', sans-serif;
  --fb: 'Inter', sans-serif;

  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  3rem;
  --sp-xl:  5rem;
  --sp-2xl: 7.5rem;

  --container: 1200px;
  --pad:       1.5rem;
  --radius:    2px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --dur:       0.28s;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  /* Offset anchor links so sticky header doesn't cover them */
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--fb);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img    { max-width: 100%; height: auto; display: block; }
a      { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ============================================================
   RED RULE — signature section divider
   ============================================================ */

.red-rule { display: block; width: 100%; height: 2px; background: var(--red); border: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.t-overline {
  font-family: var(--fb);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--smoke);
  display: block;
  margin-bottom: var(--sp-md);
}
.t-overline--light { color: rgba(255,255,255,0.35); }

.t-display {
  font-family: var(--fd);
  font-weight: 800;
  font-size: clamp(3.25rem, 9vw, 7rem);
  line-height: 0.93;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.t-h2 {
  font-family: var(--fd);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.t-h3 {
  font-family: var(--fd);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  text-transform: uppercase;
  line-height: 1.05;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--fb);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.875rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary       { background: var(--red);  color: var(--white); border-color: var(--red); }
.btn--primary:hover { background: #c91222;      color: var(--white); border-color: #c91222;    }
.btn--outline       { background: transparent;  color: var(--white); border-color: rgba(255,255,255,.35); }
.btn--outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.7); }

/* ============================================================
   HEADER — logo left, Contact anchor right, no nav
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--ink);
  border-bottom: 2px solid var(--red);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo img,
.custom-logo      { height: 32px; width: auto; }
.custom-logo-link { display: flex; align-items: center; }

/* Contact link — only nav element */
.nav-contact {
  font-family: var(--fb);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  padding: 0.4375rem 1rem;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  transition: all var(--dur) var(--ease);
}
.nav-contact:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}

/* Admin bar */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* ============================================================
   VERTICALS BAR — centered, global (footer.php)
   ============================================================ */

.verticals-bar {
  background: var(--ink);
  border-top:    1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 14px var(--pad);
  display: flex;
  justify-content: center;
  align-items: center;
}
.verticals-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.verticals-list span {
  font-family: var(--fb);
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.38);
  padding: 3px 14px;
  border-left: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
}
.verticals-list span:first-child { border-left: none; padding-left: 0; }

/* ============================================================
   FOOTER — 3 columns (brand, ventures, focus)
   ============================================================ */

.site-footer { background: var(--ink); border-top: 2px solid var(--red); }
.footer-top  { padding-block: var(--sp-xl); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--sp-lg);
}

.footer-logo     { height: 28px; width: auto; margin-bottom: var(--sp-md); }
.footer-tagline  { font-size: 0.8rem; color: rgba(255,255,255,.35); line-height: 1.6; max-width: 220px; }

.footer-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--sp-md);
  font-size: 0.7rem;
  color: rgba(255,255,255,.25);
  font-weight: 500;
}

.footer-col-title {
  font-family: var(--fb);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  margin-bottom: var(--sp-md);
}

.footer-links             { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a           { font-size: 0.8rem; color: rgba(255,255,255,.5); transition: color var(--dur) var(--ease); display: flex; align-items: center; gap: .25rem; }
.footer-links a:hover     { color: var(--white); }

.footer-bottom       { border-top: 1px solid rgba(255,255,255,.08); padding-block: var(--sp-md); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-copy  { font-size: 0.7rem; color: rgba(255,255,255,.2); }
.footer-legal a { font-size: 0.7rem; color: rgba(255,255,255,.18); transition: color var(--dur) var(--ease); }
.footer-legal a:hover { color: rgba(255,255,255,.55); }

/* ============================================================
   SECTION: HERO
   ============================================================ */

.hero {
  background: var(--ink);
  min-height: calc(100vh - 74px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--sp-2xl);
  padding-bottom: var(--sp-xl);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,23,40,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,23,40,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.hero-inner      { position: relative; z-index: 1; }
.hero-headline   { color: var(--white); margin-bottom: var(--sp-lg); max-width: 16ch; }
.hero-headline .accent { color: var(--red); }
.hero-body       { color: rgba(255,255,255,.5); max-width: 46ch; margin-bottom: var(--sp-lg); font-size: 1.125rem; line-height: 1.65; }
.hero-ctas       { display: flex; align-items: center; gap: var(--sp-sm); flex-wrap: wrap; }
.hero-scroll     { display: flex; align-items: center; gap: .75rem; margin-top: var(--sp-xl); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.2); font-weight: 600; }
.hero-scroll-line { width: 40px; height: 1px; background: rgba(255,255,255,.12); }

/* ============================================================
   SECTION: WHAT WE DO
   ============================================================ */

.wwd { background: var(--white); padding-block: var(--sp-2xl); }

.manifesto-grid { display: grid; grid-template-columns: 1fr 1px 1fr; gap: var(--sp-lg); align-items: start; }
.manifesto-divider { background: var(--fog); align-self: stretch; }

.manifesto-verb {
  font-family: var(--fd);
  font-weight: 800;
  font-size: clamp(4rem, 8vw, 6.5rem);
  line-height: 0.9;
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--sp-md);
  letter-spacing: -.02em;
}
.manifesto-verb--red {
  background: linear-gradient(135deg, var(--red) 0%, #a00f1a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.manifesto-verb--grey { color: #888888; }

.manifesto-label { font-size: .7rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--smoke); margin-bottom: var(--sp-sm); }
.manifesto-desc  { font-size: 1.0625rem; color: var(--ink); line-height: 1.65; margin-bottom: var(--sp-md); max-width: 42ch; }
.manifesto-sub   { font-size: .875rem; color: var(--smoke); line-height: 1.65; }

/* ============================================================
   SECTION: VENTURES (3 columns)
   ============================================================ */

.portfolio-section { background: var(--slate); padding-block: var(--sp-2xl); }

.portfolio-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: var(--sp-xl);
}
.portfolio-card {
  background: var(--card);
  padding: var(--sp-xl) var(--sp-lg);
  border-top: 2px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.portfolio-card:hover { border-top-color: var(--red); background: #1c1c1c; }

.portfolio-card-status    { display: inline-flex; align-items: center; gap: .4rem; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: var(--sp-lg); }
.portfolio-card-status-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.portfolio-card-status-dot.live { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.15); }
.portfolio-card-status-dot.dev  { background: #f59e0b; }

.portfolio-card-name     { font-family: var(--fd); font-weight: 800; font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: .95; text-transform: uppercase; color: var(--white); margin-bottom: var(--sp-sm); letter-spacing: -.01em; }
.portfolio-card-category { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: var(--sp-md); }
.portfolio-card-desc     { font-size: .8125rem; color: rgba(255,255,255,.45); line-height: 1.65; margin-bottom: var(--sp-xl); }
.portfolio-card-link     { display: inline-flex; align-items: center; gap: .5rem; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.3); border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 2px; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.portfolio-card-link:hover { color: var(--white); border-color: rgba(255,255,255,.45); }
.portfolio-card-link svg   { transition: transform var(--dur) var(--ease); }
.portfolio-card-link:hover svg { transform: translate(2px,-2px); }

/* ============================================================
   SECTION: STUDIO FOCUS
   ============================================================ */

.innovation-section { background: var(--white); padding-block: var(--sp-2xl); }

.innovation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: var(--sp-xl);
  border-left: 1px solid var(--fog);
}
.innovation-tile { padding: var(--sp-lg) var(--sp-md); border-right: 1px solid var(--fog); border-top: 2px solid transparent; transition: border-top-color var(--dur) var(--ease); }
.innovation-tile:hover { border-top-color: var(--red); }

.innovation-num { font-family: var(--fd); font-weight: 800; font-size: 3.5rem; line-height: 1; color: #BBBBBB; display: block; margin-bottom: var(--sp-md); letter-spacing: -.02em; transition: color var(--dur) var(--ease); }
.innovation-tile:hover .innovation-num { color: var(--red); }
.innovation-tile-name { font-family: var(--fd); font-weight: 800; font-size: 1.25rem; text-transform: uppercase; color: var(--ink); margin-bottom: var(--sp-sm); line-height: 1.05; }
.innovation-tile-desc { font-size: .8125rem; color: var(--smoke); line-height: 1.6; }

/* ============================================================
   SECTION: ABOUT
   ============================================================ */

.about-section { background: var(--white); padding-block: var(--sp-2xl); }

.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--sp-2xl); align-items: start; }

.about-body p     { font-size: 1.0625rem; line-height: 1.75; color: var(--ink); margin-bottom: var(--sp-lg); }
.about-body p:last-child { margin-bottom: 0; }

.about-value-block          { padding-block: var(--sp-lg); border-top: 1px solid var(--fog); }
.about-value-block:first-child { border-top: 2px solid var(--red); }
.about-value-name           { font-family: var(--fd); font-weight: 800; font-size: 1.0625rem; text-transform: uppercase; color: var(--ink); margin-bottom: .375rem; }
.about-value-desc           { font-size: .8125rem; color: var(--smoke); line-height: 1.6; }

.about-stats { background: var(--slate); padding-block: var(--sp-xl); border-top: 2px solid var(--red); border-bottom: 2px solid var(--red); }
.stats-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.stat-block  { background: var(--card); padding: var(--sp-lg); text-align: center; }
.stat-number { font-family: var(--fd); font-weight: 800; font-size: clamp(2.5rem, 5vw, 4rem); color: var(--white); line-height: 1; margin-bottom: .5rem; display: block; }
.stat-number .stat-accent { color: var(--red); }
.stat-label  { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.3); }

/* ============================================================
   SECTION: CONTACT
   ============================================================ */

.contact-section { background: var(--white); padding-block: var(--sp-2xl); }

.contact-header        { margin-bottom: var(--sp-xl); }
.contact-header-title  { color: var(--ink); margin-top: .75rem; }
.contact-header-title .accent { color: var(--red); }
.contact-header-sub    { color: var(--smoke); font-size: 1.0625rem; line-height: 1.65; margin-top: var(--sp-md); max-width: 52ch; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2xl); align-items: start; }

/* Form */
.contact-form-wrap  { background: var(--slate); padding: var(--sp-lg); border-top: 2px solid var(--red); }
.contact-form-title { font-family: var(--fb); font-weight: 600; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: var(--sp-lg); }

.form-row        { margin-bottom: var(--sp-md); }
.form-row-split  { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-sm); margin-bottom: var(--sp-md); }

.form-label {
  display: block;
  font-family: var(--fb);
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: .375rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: #1e1e1e;
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: .6875rem .875rem;
  font-family: var(--fb);
  font-size: .875rem;
  color: rgba(255,255,255,.7);
  outline: none;
  transition: border-color var(--dur) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--red); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='rgba(255,255,255,0.3)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2rem;
}
.form-select option  { background: #1e1e1e; color: rgba(255,255,255,.7); }
.form-textarea       { resize: vertical; min-height: 120px; }

.form-submit {
  width: 100%;
  padding: .875rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--fb);
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: var(--sp-sm);
  transition: background var(--dur) var(--ease);
}
.form-submit:hover    { background: #c91222; }
.form-submit:disabled { opacity: .6; cursor: not-allowed; }

.form-error   { display: none; font-size: .8125rem; color: #f87171; margin-top: var(--sp-sm); line-height: 1.5; }
.form-success { display: none; background: var(--card); border-top: 2px solid #22c55e; padding: var(--sp-lg); }
.form-success-heading { font-family: var(--fd); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; color: #22c55e; display: block; margin-bottom: .5rem; }
.form-success-body    { font-size: .875rem; color: rgba(255,255,255,.5); }

/* Sidebar */
.contact-info-card     { background: var(--slate); padding: var(--sp-md); border-top: 2px solid var(--red); margin-bottom: var(--sp-md); }
.contact-info-title    { font-family: var(--fb); font-weight: 600; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.25); margin-bottom: var(--sp-md); }
.contact-info-row      { display: flex; gap: var(--sp-md); padding-block: .75rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.contact-info-row:last-child { border-bottom: none; padding-bottom: 0; }
.contact-info-label    { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.2); min-width: 75px; padding-top: 1px; flex-shrink: 0; }
.contact-info-value    { font-size: .8125rem; color: rgba(255,255,255,.55); line-height: 1.5; }

.contact-ventures-title { font-family: var(--fb); font-weight: 600; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--smoke); margin-bottom: var(--sp-sm); }

.contact-venture-link  { display: flex; align-items: center; justify-content: space-between; padding: .875rem var(--sp-sm); background: var(--card); border-top: 2px solid transparent; transition: all var(--dur) var(--ease); margin-bottom: .5rem; }
.contact-venture-link:hover { border-top-color: var(--red); }
.contact-venture-link-name { font-family: var(--fd); font-weight: 700; font-size: 1rem; text-transform: uppercase; color: var(--white); }
.contact-venture-link-url  { font-size: .7rem; color: rgba(255,255,255,.25); }
.contact-venture-link-icon { color: rgba(255,255,255,.2); transition: color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.contact-venture-link:hover .contact-venture-link-icon { color: var(--red); transform: translate(2px,-2px); }

/* Generic page content */
.entry-content { max-width: 72ch; margin-inline: auto; }
.entry-content p { font-size: 1.0625rem; line-height: 1.75; margin-bottom: var(--sp-lg); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .portfolio-cards  { grid-template-columns: 1fr; }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .contact-grid     { grid-template-columns: 1fr; }
  .about-grid       { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --sp-2xl: 4rem; --sp-xl: 3rem; }
  .manifesto-grid  { grid-template-columns: 1fr; }
  .manifesto-divider { height: 1px; width: 100%; }
  .portfolio-cards { grid-template-columns: 1fr; }
  .innovation-grid { grid-template-columns: 1fr 1fr; }
  .about-grid      { grid-template-columns: 1fr; }
  .stats-grid      { grid-template-columns: 1fr; }
  .contact-grid    { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: var(--sp-sm); text-align: center; }
  .form-row-split  { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .innovation-grid { grid-template-columns: 1fr; }
  .hero-ctas       { flex-direction: column; }
  .hero-ctas .btn  { width: 100%; justify-content: center; }
  .verticals-list span { font-size: .65rem; padding: 4px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
