/* ==========================================================================
   Zearch — Ink & Signal design system
   Base: #0B0C0E · Signal: #21F49E · Newsreader / Hanken Grotesk / IBM Plex Mono
   ========================================================================== */

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

:root{
  --g:#21F49E;
  --g-deep:#0B5C3C;
  --bg:#0B0C0E;
  --ink:#F4F6F5;
  --head:#F6F8F7;
  --soft:#C6CBC8;
  --mut:#8A918D;
  --dim:#788079;
  --line:rgba(255,255,255,.12);
  --line2:rgba(255,255,255,.07);
  --pad:clamp(24px,2.5vw,48px);
  --serif:'Source Serif 4',Georgia,serif;
  --sans:'Hanken Grotesk',system-ui,sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,monospace;
}

html{scroll-behavior:smooth;scrollbar-gutter:stable}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}

body{
  background:var(--bg);color:var(--ink);
  font-family:var(--sans);line-height:1.6;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}

a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
::selection{background:var(--g);color:#06130D}

:focus-visible{outline:2px solid var(--g);outline-offset:3px;border-radius:2px}

.wrap{max-width:none;margin:0;padding:0 var(--pad)}

/* ---- shared atoms ---- */
.label{
  font-family:var(--mono);font-size:12px;letter-spacing:.24em;
  text-transform:uppercase;color:var(--dim);
  display:flex;align-items:center;gap:11px;
}
.dot{width:7px;height:7px;border-radius:50%;background:var(--g);flex:none}
.u{color:inherit}

.btn{
  display:inline-flex;align-items:center;gap:10px;border-radius:999px;
  font-size:15px;font-weight:500;padding:14px 26px;
  transition:background .2s ease,border-color .2s ease,color .2s ease;
}
.btn .ar{display:inline-block;transition:transform .25s ease}
.btn:hover .ar{transform:translateX(4px)}
.btn-primary{background:var(--g);color:#06130D;font-weight:600}
.btn-primary:hover{background:#3DF7AB}
.btn-ghost{border:1px solid rgba(255,255,255,.26);color:var(--ink)}
.btn-ghost:hover{border-color:rgba(255,255,255,.55)}

/* ---- nav ---- */
header.site{
  position:sticky;top:0;z-index:50;
  background:rgba(11,12,14,.86);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line2);
}
.nav{display:flex;align-items:center;justify-content:space-between;height:96px}
.nav .logo-img{height:23px;width:auto}
.nav .links{display:flex;gap:42px;align-items:center;font-family:var(--mono);font-size:13px;letter-spacing:.12em;text-transform:uppercase;font-weight:400}
.nav .links a{color:#A7AEAB;position:relative;transition:color .2s}
.nav .links a:hover{color:var(--ink)}
.nav .links a.active{color:var(--g)}
.nav .links a:not(.book)::after{
  content:"";position:absolute;left:0;bottom:-6px;width:100%;height:1px;
  background:currentColor;transform:scaleX(0);transform-origin:left;
  transition:transform .25s ease;
}
.nav .links a:not(.book):hover::after{transform:scaleX(1)}
.nav .links a.book{background:transparent;color:var(--ink);border:1px solid rgba(255,255,255,.28);border-radius:999px;padding:9px 18px;font-family:var(--mono);font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:500;transition:background .2s ease,color .2s ease,border-color .2s ease}
.nav .links a.book:hover{background:var(--g);color:#06130D;border-color:var(--g)}

/* mobile menu */
.menu-btn{display:none;background:none;border:0;cursor:pointer;padding:10px;margin-right:-10px}
.menu-btn span{display:block;width:22px;height:1.5px;background:var(--ink);margin:5px 0;transition:transform .25s ease,opacity .2s ease}
.menu-open .menu-btn span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
.menu-open .menu-btn span:nth-child(2){opacity:0}
.menu-open .menu-btn span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}
.mobile-menu{
  display:none;position:fixed;inset:96px 0 0 0;z-index:49;
  background:var(--bg);padding:48px var(--pad);
  flex-direction:column;gap:8px;
}
.menu-open .mobile-menu{display:flex}
.mobile-menu a{
  font-family:var(--serif);font-size:2rem;color:var(--ink);
  padding:18px 0;border-bottom:1px solid var(--line2);
}
.mobile-menu a.active{color:var(--g)}
.mobile-menu .book-m{font-family:var(--sans);font-size:1.05rem;font-weight:600;color:#06130D;background:var(--g);border-radius:999px;padding:16px 28px;text-align:center;margin-top:28px;border-bottom:0}
.menu-open body{overflow:hidden}

/* ---- hero (subpages) ---- */
.hero{padding:140px 0 148px;border-bottom:1px solid var(--line)}
.hero .label{margin-bottom:40px}
.hero h1{
  font-family:var(--serif);font-weight:420;
  font-size:clamp(2.5rem,3.6vw,4.25rem);line-height:1.14;letter-spacing:-.008em;
  max-width:16.5em;color:var(--head);
}
.hero p.lede{margin-top:32px;max-width:56ch;font-size:19.5px;color:var(--soft);line-height:1.6}
.hero .actions{margin-top:44px;display:flex;gap:14px;align-items:center;flex-wrap:wrap}

/* ---- section shells ---- */
section.band{padding:116px 0;border-bottom:1px solid var(--line)}
.band .label{margin-bottom:56px}
.band h2{
  font-family:var(--serif);font-weight:450;
  font-size:clamp(1.8rem,2.4vw,2.5rem);letter-spacing:-.008em;line-height:1.15;
  color:var(--head);margin-bottom:64px;max-width:22em;
}
.band .label + h2{margin-top:-36px}

/* three blocks */
.blocks{display:grid;grid-template-columns:repeat(3,1fr);gap:46px}
.block{padding-top:28px;border-top:1px solid var(--line)}
.block .num{font-family:var(--mono);font-size:13px;color:var(--g);letter-spacing:.1em;margin-bottom:22px}
.block h3{font-family:var(--serif);font-weight:500;font-size:1.45rem;letter-spacing:-.005em;margin-bottom:14px;color:#EFF2F0;line-height:1.22}
.block p{font-size:15.5px;color:var(--mut);line-height:1.64}

/* where we come in */
.where{display:grid;grid-template-columns:1fr 1fr;gap:0 64px}
.wrow{display:grid;grid-template-columns:220px 1fr;gap:28px;padding:32px 0;border-top:1px solid var(--line);align-items:baseline}
.wrow .wk{font-weight:500;font-size:1.1rem;color:#EFF2F0;display:flex;align-items:center;gap:12px}
.wrow .wk .dot{width:6px;height:6px}
.wrow .wd{font-size:15px;color:var(--mut);line-height:1.6}

/* roles — editorial ledger */
.roles{display:flex;flex-direction:column}
.role{display:grid;grid-template-columns:300px 1fr;gap:36px;align-items:baseline;padding:28px 4px;border-top:1px solid var(--line);transition:color .2s}
.role-t{font-family:var(--serif);font-weight:500;font-size:1.45rem;letter-spacing:-.005em;color:#EFF2F0;transition:color .25s ease}
.role-d{font-size:15px;color:var(--mut);line-height:1.5;transition:color .25s ease}
.role:hover .role-t{color:#FBFEFC}
.role:hover .role-d{color:var(--g)}

/* proof */
.proof .label{margin-bottom:50px}
.proof blockquote{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(1.55rem,2.7vw,2.3rem);line-height:1.34;letter-spacing:-.005em;
  color:#F1F4F2;max-width:26ch;
}
.proof .by{margin-top:40px;display:flex;align-items:center;gap:16px}
.proof .by .bar{width:34px;height:2px;background:var(--g);flex:none}
.proof .by .who{font-size:15px;color:var(--soft)}
.proof .by .who b{font-weight:600;color:var(--ink)}
.proof .ph{margin-top:26px;font-family:var(--mono);font-size:12px;color:var(--dim);letter-spacing:.04em}

/* cta */
.cta{padding:136px 0;text-align:center;border-bottom:1px solid var(--line)}
.cta h2{
  font-family:var(--serif);font-weight:500;
  font-size:clamp(2.1rem,4vw,3.3rem);letter-spacing:-.01em;line-height:1.12;
  max-width:18ch;margin:0 auto;color:var(--head);
}
.cta .actions{margin-top:42px;display:flex;gap:14px;justify-content:center;flex-wrap:wrap}

/* ---- home ---- */
.screen{min-height:100svh;display:flex;flex-direction:column}
.home-main{flex:1;min-height:0;display:grid;grid-template-columns:1.2fr 1fr;align-items:center;column-gap:72px;padding-top:24px;padding-bottom:24px;position:relative;overflow:hidden}
.home-main > *{position:relative;z-index:1}
.home-main .label{margin-bottom:30px}
.home-main h1{
  font-family:var(--serif);font-weight:420;
  font-size:clamp(2.3rem,3.2vw,3.8rem);line-height:1.16;letter-spacing:-.008em;
  max-width:15em;color:var(--head);
}
.home-main h1 .u,.about-hero h1 .u{color:var(--g)}
.home-main .tag{margin-top:26px;font-size:18px;color:var(--soft)}
.home-main .tag b{font-weight:500;color:var(--ink)}
.doors{display:flex;flex-direction:column;gap:16px}
.door{
  display:flex;align-items:center;justify-content:space-between;gap:0;
  border:1px solid var(--line);border-radius:16px;padding:28px 30px;
  transition:border-color .2s ease,background .2s ease;
}
.door:hover{border-color:var(--g);background:rgba(33,244,158,.04)}
.door .dtxt{flex:1 1 auto;min-width:0}
.door .dn{
  font-family:var(--serif);font-weight:500;font-size:1.65rem;letter-spacing:-.005em;
  color:var(--ink);display:block;
}
.door .dd{margin-top:9px;font-size:15px;color:var(--mut);line-height:1.5}
/* Fine line arrow: sits quietly at rest; on hover it advances and the
   shaft draws longer for a sleek, restrained cue. */
.door .dgo{
  flex:none;width:30px;height:16px;margin-left:24px;color:var(--mut);overflow:visible;
  transition:transform .4s cubic-bezier(.22,1,.36,1),color .25s ease;
}
.door .dgo .shaft{
  transform-box:fill-box;transform-origin:right center;
  transition:transform .4s cubic-bezier(.22,1,.36,1);
}
.door:hover .dgo{color:var(--g);transform:translateX(6px)}
.door:hover .dgo .shaft{transform:scaleX(1.28)}
.footbar{flex:none;border-top:1px solid var(--line)}
.footbar .row{display:flex;align-items:center;justify-content:space-between;padding:20px 0;gap:18px;flex-wrap:wrap}
.footbar .lbl{font-family:var(--mono);font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--dim);margin-right:24px}
.footbar .names{display:inline-flex;gap:24px;align-items:center;font-weight:500;font-size:15px;color:#828984;flex-wrap:wrap}
.footbar .meta{font-family:var(--mono);font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--dim)}
.footbar .legal{border-top:1px solid var(--line2);padding:14px 0;font-size:12.5px;color:var(--dim);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}

/* Rolling client logos (home) — pure-CSS seamless marquee */
.logos{flex:none;border-top:1px solid var(--line);padding:22px 0 26px}
.logos-label{font-family:var(--mono);font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--dim);text-align:center;margin-bottom:18px}
.marquee{position:relative;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 9%,#000 91%,transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0,#000 9%,#000 91%,transparent 100%)}
.marquee-track{display:flex;align-items:center;width:max-content;animation:logos-scroll 55s linear infinite}
.marquee:hover .marquee-track{animation-play-state:paused}
.logo{flex:none;margin-right:72px;display:flex;align-items:center;font-family:var(--sans);font-weight:600;font-size:18px;letter-spacing:.04em;text-transform:uppercase;color:#6c736f;white-space:nowrap;transition:color .3s ease}
.marquee:hover .logo{color:var(--soft)}
/* real logo images: forced to one uniform off-white tint + consistent height.
   Per-logo height overrides correct for logos whose artwork doesn't fill its
   own canvas (built-in padding) so the *text* looks evenly sized. */
.logo img{height:28px;width:auto;display:block;filter:brightness(0) invert(1);opacity:.62;transition:opacity .3s ease}
/* per-logo heights — tuned by eye so each wordmark reads at the same visual size */
.logo img[src*="outsystems"]{height:31px}
.logo img[src*="instructure"]{height:21px}
.logo img[src*="orderful"]{height:23px}
.logo img[src*="attention"]{height:38px}
.logo img[src*="altimate"]{height:33px}
.logo img[src*="ataccama"]{height:22px}
.logo img[src*="rubie"]{height:25px}
.logo img[src*="knox"]{height:20px}        /* all-caps fills full height */
.logo img[src*="checkly"]{height:27px;transform:translateY(2px)}
.logo img[src*="accuris"]{height:20px}
.logo img[src*="deepl"]{transform:translateY(2px)}   /* nudge down — descender raises it otherwise */
.marquee:hover .logo img{opacity:1}
@keyframes logos-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
/* Client strip — static centered logos for PE/VC pages (fewer logos) */
.client-strip{padding:34px 0 40px}
.client-strip .cs-label{font-family:var(--mono);font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--dim);text-align:center}
.cs-row{display:grid;grid-template-columns:1fr 1fr;align-items:center;column-gap:48px;row-gap:34px;margin-top:34px}
.cs-row.cs-3{grid-template-columns:repeat(3,1fr)}
.cs-row.cs-4{grid-template-columns:repeat(4,1fr)}
.cs-row.cs-2x2{grid-template-columns:repeat(2,1fr);row-gap:48px}
.cs-row.cs-2x2 img{height:48px}
.cs-row.cs-2x2 img[src*="rtp"]{height:60px}
.cs-row.cs-2x2 img[src*="a16z"]{height:60px}
.cs-row.cs-2x2 img[src*="alven"]{height:46px}
.cs-row.cs-2x2 img[src*="bgv"]{height:44px}
.cs-row img{height:42px;width:auto;max-width:100%;justify-self:center;filter:brightness(0) invert(1);opacity:.72;transition:opacity .3s ease}
.cs-row img:hover{opacity:1}
@media(max-width:880px){.cs-row.cs-3,.cs-row.cs-4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.cs-row,.cs-row.cs-3,.cs-row.cs-4{grid-template-columns:1fr}.cs-row img{height:34px}}

@media (prefers-reduced-motion:reduce){
  .marquee{-webkit-mask-image:none;mask-image:none}
  .marquee-track{animation:none;width:auto;flex-wrap:wrap;justify-content:center}
  .marquee-track .logo{margin:8px 28px}
  .marquee-track .logo[aria-hidden="true"]{display:none}
}

/* ---- about ---- */
.about-hero h1{font-family:var(--serif);font-style:italic;font-weight:400;font-size:clamp(3rem,6vw,5.4rem);line-height:1.04;letter-spacing:-.01em;color:var(--head)}
.about-hero h1 .pos{font-style:italic;font-size:.42em;color:var(--mut);margin-left:.22em;letter-spacing:0}
.about-hero .def{margin-top:28px;max-width:42ch;font-size:20px;color:var(--soft);line-height:1.55}

.team{display:grid;grid-template-columns:repeat(3,1fr);gap:60px 48px}
.member{display:flex;flex-direction:column;align-items:center;text-align:center}
.member .mphoto{display:block;width:100%;max-width:345px}
.member img{width:100%;height:auto;max-width:345px;aspect-ratio:1/1;object-fit:cover;border-radius:50%;border:1px solid var(--line2);transition:transform .45s cubic-bezier(.22,1,.36,1)}
.member:hover img{transform:scale(1.04)}
.member:hover .li{color:var(--g)}
.svg-defs{position:absolute;width:0;height:0;overflow:hidden}
.member .minfo{margin-top:20px;display:flex;flex-direction:column;align-items:center;gap:12px}
.member .mtext{text-align:center}
.member .nm{font-family:var(--sans);font-size:20px;font-weight:600;line-height:1.3;letter-spacing:-.005em;color:var(--ink)}
.member .mtitle{margin-top:4px;font-family:var(--sans);font-size:15px;font-weight:400;line-height:1.4;color:var(--mut)}
.member .li{display:inline-flex;align-items:center;color:var(--mut);transition:color .2s ease}
.member .li:hover{color:var(--g)}
.member .liicon{width:20px;height:20px;display:block;fill:currentColor}
.member .bio{margin-top:12px;font-size:14.5px;line-height:1.6;color:var(--mut);max-width:300px}
/* Staggered left-to-right reveal across each row, with a gentle scale-in */
html.anim .team .member.rv{transform:translateY(24px) scale(.96)}
html.anim .team .member.rv.in{transform:none}
html.anim .team .member:nth-child(3n+2){transition-delay:.08s}
html.anim .team .member:nth-child(3n){transition-delay:.16s}
.team-note{margin-top:44px;font-family:var(--mono);font-size:12px;color:var(--dim);letter-spacing:.04em}

.offices{display:grid;grid-template-columns:repeat(3,1fr);gap:36px}
.office{padding-top:24px;border-top:1px solid var(--line);text-align:center}
.office .ci{font-family:var(--serif);font-weight:500;font-size:2rem;color:var(--ink);letter-spacing:-.01em}

/* ---- footer ---- */
footer.site{padding:80px 0 42px}
.foot-top{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:40px;padding-bottom:50px;border-bottom:1px solid var(--line)}
.foot-top .tagline{font-family:var(--serif);font-size:18px;color:var(--soft);margin-top:20px;line-height:1.4}
.foot-col h4{font-family:var(--mono);font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--dim);margin-bottom:18px;font-weight:500}
.foot-col a,.foot-col p{display:block;font-size:14.5px;color:var(--soft);margin-bottom:11px;line-height:1.5}
.foot-col a:hover{color:var(--g)}
.foot-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:24px;font-size:13px;color:var(--dim);flex-wrap:wrap;gap:12px}
.foot-bottom .cities{font-family:var(--mono);letter-spacing:.16em;text-transform:uppercase;font-size:11.5px}

/* ---- reveal on scroll (progressive enhancement: visible without JS) ---- */
html.anim .rv{opacity:0;transform:translateY(14px);transition:opacity .6s ease,transform .6s ease}
html.anim .rv.in{opacity:1;transform:none}
html.anim .rv-1{transition-delay:.06s}
html.anim .rv-2{transition-delay:.12s}
html.anim .rv-3{transition-delay:.18s}
@media (prefers-reduced-motion: reduce){html.anim .rv{opacity:1;transform:none;transition:none}}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Two-column hero needs room for the long door titles + hatch on one line;
   below this, stack to a single roomy column. */
@media (max-width:1200px){
  .home-main{grid-template-columns:1fr;row-gap:44px;align-content:center}
}

@media (max-width:1024px){
  :root{--pad:40px}
  .blocks{gap:36px}
  .where{grid-template-columns:1fr;gap:0}
}

@media (max-width:900px){
  .hero{padding:88px 0 92px}
  section.band{padding:88px 0}
  .cta{padding:104px 0}
  .blocks{grid-template-columns:1fr;gap:0}
  .block{padding:28px 0}
  .home-main{grid-template-columns:1fr;row-gap:48px;align-content:center}
  .foot-top{grid-template-columns:1fr 1fr;gap:36px}
  .team{grid-template-columns:repeat(2,1fr);gap:44px 36px}
}

@media (max-width:760px){
  .nav{height:72px}
  .mobile-menu{inset:72px 0 0 0}
  .nav .links{display:none}
  .menu-btn{display:block}
  .wrow{grid-template-columns:1fr;gap:8px;padding:26px 0}
}

@media (max-width:640px){
  :root{--pad:24px}
  .hero{padding:72px 0 76px}
  section.band{padding:72px 0}
  .cta{padding:88px 0}
  .hero p.lede{font-size:17px}
  .btn{padding:13px 22px;font-size:14.5px}
  .door{padding:22px 22px}
  .door .dn{font-size:1.4rem}
  .home-main h1{font-size:clamp(2.1rem,8.5vw,2.6rem)}
  .team{grid-template-columns:1fr;gap:36px}
  .offices{grid-template-columns:1fr;gap:0}
  .office{padding:22px 0}
  .foot-top{grid-template-columns:1fr;gap:32px}
  .proof blockquote{font-size:1.45rem}
  .footbar .names{gap:16px;font-size:14px}
  .role{grid-template-columns:1fr;gap:6px;padding:24px 0}
}
