/* ===========================================================
   RyTe4U Consultants — design tokens
   Signature: "the bridge line" — a single arcing hairline that
   echoes the mark's two figures forming a span. It draws in on
   load, marks the active page in nav, and threads the section
   dividers. Used once per view — restraint is the point.
=========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --ink:        #211B1D;
  --ink-soft:   #423A3B;
  --slate:      #74695F;
  --red:        #A8192A;
  --red-dark:   #6E0F1B;
  --blush:      #E0919F;
  --blush-soft: #F0C8CE;
  --linen:      #EDE6D9;
  --paper:      #FAF8F3;
  --line:       #DCD2C1;
  --white:      #FFFFFF;

  --display: 'Fraunces', serif;
  --body: 'Inter', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --max: 1160px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display:block; }
a{ color: inherit; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
}

h1,h2,h3{
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 .3em;
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.03; font-weight: 500; }
h2{ font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.1; }
h3{ font-size: 1.25rem; }
p{ margin: 0 0 1em; color: var(--ink-soft); }
.lede{ font-size: 1.2rem; color: var(--ink-soft); max-width: 46em; }

/* ---------- Nav ---------- */
header.site{
  position: sticky; top: 0; z-index: 40;
  background: rgba(250,248,243,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav{
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-family: var(--display);
  font-weight: 600; font-size: 1.35rem;
  text-decoration: none; color: var(--ink);
}
.brand .mark{ width: 34px; height: 26px; object-fit: contain; }
.navlinks{
  display:flex; gap: 30px; list-style:none; margin:0; padding:0;
  font-size: .95rem; font-weight: 500;
}
.navlinks a{
  text-decoration:none; color: var(--ink-soft);
  position: relative; padding-bottom: 6px;
}
.navlinks a:hover{ color: var(--ink); }
.navlinks a.active{ color: var(--ink); }
.navlinks a.active::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0; height:2px;
  background: var(--red);
  border-radius: 2px;
}
.nav-cta{
  font-size: .88rem; font-weight: 600;
  background: var(--red); color: var(--white);
  padding: 10px 18px; border-radius: 999px;
  text-decoration:none;
  transition: background .18s ease;
  white-space: nowrap;
}
.nav-cta:hover{ background: var(--red-dark); }
.menu-btn{ display:none; background:none; border:none; cursor:pointer; }

@media (max-width: 860px){
  .navlinks{ display:none; }
  .menu-btn{ display:block; }
}

@media (max-width: 520px){
  .nav-cta{ display:none; }
}

/* ---------- Bridge line (signature) ---------- */
.bridge{
  width: 100%;
  display:block;
  overflow: visible;
}
.bridge path{
  fill:none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1050;
  stroke-dashoffset: 1050;
  opacity: 0;
  animation: draw 4s ease-in-out infinite;
  animation-delay: .15s;
}
.bridge circle{
  fill: var(--red);
  opacity: 0;
  animation: pop 4s ease-in-out infinite;
  animation-delay: .15s;
}
@keyframes draw{
  0%   { opacity: 0; stroke-dashoffset: 1050; }
  2%   { opacity: 1; stroke-dashoffset: 1050; }
  32%  { opacity: 1; stroke-dashoffset: 0; }
  60%  { opacity: 1; stroke-dashoffset: 0; }
  70%  { opacity: 0; stroke-dashoffset: 0; }
  70.001% { stroke-dashoffset: 1050; }
  100% { opacity: 0; stroke-dashoffset: 1050; }
}
@keyframes pop{
  0%   { opacity: 0; }
  2%   { opacity: 1; }
  70%  { opacity: 1; }
  71%  { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce){
  .bridge path{ animation: none; stroke-dashoffset: 0; opacity: 1; }
  .bridge circle{ animation: none; opacity: 1; }
}

/* ---------- Hero ---------- */
.hero{
  padding: 64px 0 20px;
}
.hero .eyebrow{ margin-bottom: 18px; display:block; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 40px;
  align-items: end;
}
.hero-side p{ font-size: 1.05rem; }
.btn-row{ display:flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.btn{
  display:inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  transition: all .18s ease;
}
.btn-primary{ background: var(--red); color: var(--white); }
.btn-primary:hover{ background: var(--red-dark); }
.btn-ghost{ border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover{ background: var(--ink); color: var(--white); }

@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */
section{ padding: 72px 0; }
.section-alt{ background: var(--paper); }
.section-head{ max-width: 640px; margin-bottom: 44px; }

.divider{
  border:none; border-top: 1px solid var(--line); margin: 0;
}

/* ---------- Stat strip ---------- */
.stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
}
.stat b{
  font-family: var(--display);
  font-size: 2.3rem;
  font-weight: 600;
  display:block;
  color: var(--red);
}
.stat span{
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--slate);
}
@media (max-width: 700px){
  .stats{ grid-template-columns: 1fr; gap: 20px; text-align:left; }
}

/* ---------- Cards ---------- */
.grid-3{ display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.grid-2{ display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 860px){
  .grid-3, .grid-2{ grid-template-columns: 1fr; }
}
.card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 28px;
}
.card h3{ margin-bottom: .5em; }
.card ul{ margin: 0; padding-left: 1.1em; color: var(--ink-soft); }
.card li{ margin-bottom: .4em; }
.card .tag{
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  display:block;
  margin-bottom: 10px;
}

/* industries pill row */
.pillrow{ display:flex; flex-wrap:wrap; gap: 12px; }

/* ---------- Job opportunities ---------- */
.jobsgrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
@media (max-width: 860px){
  .jobsgrid{ grid-template-columns: 1fr; }
}
.jobcard{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 28px;
  display:flex;
  flex-direction:column;
}
.jobcard h3{ margin-bottom: 18px; font-size: 1.15rem; }
.jobmeta{
  display:flex;
  flex-direction:column;
  gap: 8px;
  margin-bottom: 24px;
  flex: 1;
}
.jobmeta span{
  font-size: .92rem;
  color: var(--ink-soft);
  display:flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.jobmeta b{
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
}
.jobcard .btn{ align-self: flex-start; }
.mailto-fallback{
  font-size: .82rem;
  color: var(--ink-soft);
  margin-top: 14px;
  line-height: 1.5;
}
.mailto-fallback a{ color: var(--red); }
.mailto-redirecting{
  font-size: .82rem;
  color: var(--ink-soft);
  margin-top: 14px;
  display:flex;
  align-items:center;
}
.spinner{
  width: 14px;
  height: 14px;
  margin-right: 9px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--red);
  animation: spin .8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin{ to{ transform: rotate(360deg); } }
.pill{
  border: 1px solid var(--line);
  background: var(--white);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
}

/* process steps — a connected timeline, echoing the bridge-line signature */
.process{
  position: relative;
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding-top: 8px;
}
.process::before{
  content:"";
  position:absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.step{
  position: relative;
  z-index: 1;
  display:flex;
  flex-direction: column;
  align-items:center;
  text-align:center;
  padding: 0 16px;
}
.step .node{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--mono);
  font-weight: 600;
  font-size: .9rem;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom: 20px;
  flex-shrink: 0;
  transition: transform .18s ease;
}
.step:hover .node{ transform: scale(1.08); }
.step h3{ font-size: 1.05rem; margin-bottom: .4em; }
.step p{ font-size: .92rem; margin:0; max-width: 24ch; }
@media (max-width: 900px){
  .process{ grid-template-columns: 1fr; padding-top: 0; gap: 0; }
  .process::before{ display:none; }
  .step{
    flex-direction: row;
    align-items: flex-start;
    text-align:left;
    padding: 0 0 30px 0;
    position: relative;
  }
  .step::after{
    content:"";
    position:absolute;
    left: 23px;
    top: 48px;
    bottom: -6px;
    width: 2px;
    background: var(--line);
  }
  .step:last-child::after{ display:none; }
  .step .node{ margin-bottom:0; margin-right: 18px; }
  .step p{ max-width: none; }
}

/* team */
.team{ display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.person{ text-align:left; }
.person img{
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: 4px; margin-bottom: 16px;
  filter: grayscale(.15);
}
.person h3{ margin-bottom: 2px; }
.person .role{ font-family: var(--mono); font-size: .8rem; color: var(--red); letter-spacing:.03em; }
@media (max-width: 860px){ .team{ grid-template-columns: 1fr; } }

/* logo wall */
.logowall{
  display:flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1px;
  background: transparent;
}
.logocell{
  background: var(--white);
  border: 1px solid var(--line);
  flex: 0 1 calc(25% - 1px);
  max-width: calc(25% - 1px);
  aspect-ratio: 2.1/1;
  display:flex; align-items:center; justify-content:center;
  padding: 20px;
  font-family: var(--body); font-weight: 600; color: var(--ink-soft);
  font-size: .95rem; text-align:center;
  min-width: 0;
  overflow: hidden;
}
.logocell img{
  width: 86%;
  height: 86%;
  object-fit: contain;
}
@media (max-width: 700px){
  .logocell{ flex-basis: calc(50% - 1px); max-width: calc(50% - 1px); }
}

/* values clouds -> honest labels, no cloud clipart cliché */
.values{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.value{
  border: 1px solid var(--line);
  background: var(--white);
  padding: 16px 18px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
@media (max-width: 700px){
  .values{ grid-template-columns: repeat(2, 1fr); }
}

/* team carousel — one slide visible at a time, auto-rotating */
.carousel{ position: relative; max-width: 640px; }
.carousel-track{ position: relative; min-height: 300px; }
.slide{
  display: none;
  gap: 24px;
  align-items: center;
}
.slide.active{ display: flex; animation: fadein .5s ease; }
@keyframes fadein{ from{ opacity:0; transform: translateY(6px);} to{ opacity:1; transform:none; } }
.slide .avatar{
  width: 120px; height: 120px; flex-shrink: 0;
  border-radius: 6px;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--display); font-size: 2.4rem; color: var(--white);
}
.slide .slide-copy h3{ margin-bottom: 4px; }
.slide .slide-copy p{ margin: 8px 0 0; max-width: 40em; }
.carousel-dots{ display:flex; gap: 8px; margin-top: 22px; }
.carousel-dots button{
  width: 8px; height: 8px; border-radius: 50%;
  border: none; background: var(--line); cursor: pointer; padding:0;
  transition: background .2s ease, transform .2s ease;
}
.carousel-dots button.active{ background: var(--red); transform: scale(1.25); }
@media (max-width: 560px){
  .slide{ flex-direction: column; align-items: flex-start; text-align:left; }
  .slide .avatar{ width: 88px; height: 88px; font-size: 1.9rem; }
}

/* contact */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-card{
  background: var(--white);
  border: 1px solid var(--line);
  padding: 34px;
  border-radius: 4px;
}
.contact-line{ display:flex; gap: 14px; margin-bottom: 18px; align-items:flex-start; }
.contact-line .k{ font-family: var(--mono); font-size: .78rem; text-transform:uppercase; color: var(--slate); width: 90px; flex-shrink:0; padding-top: 3px;}
.contact-line .v{ font-weight: 600; font-size: 1.05rem; }
.contact-line .v a{ color: var(--red); text-decoration:none; }
.contact-line .v a:hover{ text-decoration:underline; }
.note{ font-size:.85rem; color: var(--slate); margin-top: 20px; }
.jobsgrid .note{
  width: 100%;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 700px){
  .jobsgrid .note{ font-size: .68rem; }
}
@media (max-width: 460px){
  .jobsgrid .note{ font-size: .58rem; }
}

form.inquiry{ display:flex; flex-direction:column; gap: 16px; }
form.inquiry label{ font-family: var(--mono); font-size: .75rem; text-transform:uppercase; letter-spacing:.05em; color: var(--slate); margin-bottom: 6px; display:block; }
form.inquiry input, form.inquiry textarea{
  width:100%; border: 1px solid var(--line); background: var(--white);
  padding: 12px 14px; border-radius: 3px; font-family: var(--body); font-size: .95rem;
  color: var(--ink);
}
form.inquiry textarea{ resize: vertical; min-height: 110px; }
form.inquiry button{
  align-self:flex-start;
  border:none; cursor:pointer;
  font-family: var(--body);
}

@media (max-width: 860px){
  .contact-grid{ grid-template-columns: 1fr; }
}

/* footer */
footer.site{
  border-top: 1px solid var(--line);
  padding: 40px 0 50px;
  margin-top: 40px;
}
.footer-grid{ display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap: 20px;}
.footer-grid .brand{ font-size: 1.1rem; }
.footer-links{ display:flex; gap: 22px; list-style:none; padding:0; margin:0; font-size:.9rem; }
.footer-links a{ text-decoration:none; color: var(--slate); }
.footer-links a:hover{ color: var(--ink); }
.copyright{ font-family: var(--mono); font-size: .78rem; color: var(--slate); margin-top: 26px; }

/* page hero variants for inner pages (shorter) */
.page-hero{ padding: 52px 0 10px; }
.page-hero h1{ font-size: clamp(2.2rem, 4.4vw, 3.3rem); }
