@font-face {
  font-family: 'Aeonik';
  src: url('/fonts/fonnts.com-Aeonik-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

/* base */
:root{
  --text:#121212;
  --muted:#555;
  --gap:20px;
}
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family:'Aeonik', system-ui, -apple-system, Arial, sans-serif;
  color:var(--text);
  background:#f4f4f4;
  line-height:1.25;

  /* Page fade */
  opacity: 0;
  transition: opacity .35s ease;
}
body.page-loaded{ opacity: 1; }

/* header */
header{ width:100%; }
.site-nav{
  position: relative;
  width: 90%;
  margin: 0 auto;
  padding: 20px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-logo{ display:block; }

/* center links perfectly */
.nav-center{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 18px;
  white-space: nowrap;
}
.nav-center a{
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity .3s ease;
}
.nav-center a:hover{ opacity:.6; }
.nav-center a.is-active{
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
@media (max-width: 520px){
  .site-nav{ padding-top: 16px; padding-bottom: 8px; }
  .nav-center{ position: static; transform: none; margin: 8px auto 0; justify-content: center; }
}

/* main width */
main{ width:90%; margin:auto; }

/* hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding-top: 40px;
  padding-bottom: 10px;
}
.hero h1{
  margin:0 0 4px 0; /* tweak this number for the gap to the description */
  text-align:center;
  font-size:clamp(3rem, 8vw, 5.2rem);
  font-weight:100;
  line-height:1;
}
.hero p{ margin:8px 0 0 0; color:var(--muted); }
.cta-getStarted{
  margin-top:12px; display:inline-block; background:#000; color:#fff;
  text-align:center; text-decoration:none; padding:12px 42px; font-size:1rem; font-weight:500;
  border:none; transition:background .25s ease;
}
.cta-getStarted:hover{ background:#333; }
.cta-getStarted {
  cursor: pointer; /* changes mouse to pointer */
}
/* category / filter nav */
.filter-nav{
  display:flex; gap:18px; padding:10px 0 18px; border-bottom:1px solid #e6e6e6;
}
.filter-nav button{
  background:none; border:0; padding:0; margin:0; font:inherit; color:var(--muted); cursor:pointer;
}
.filter-nav button.is-active{ color:var(--text); text-decoration:underline; text-underline-offset:4px; }

/* video grid */

.video-item{ display:flex; flex-direction:column; }
video{ width:100%; height:auto; display:block; border:none; border-radius:0; }
.video-title{ margin-top:10px; font-size:16px; font-weight:500; color:#111; text-align:left; }

/* footer */
.simple-footer{
  width:90%; margin:40px auto 24px; padding:0; background:transparent;
  display:grid; grid-template-columns:repeat(3,1fr); gap:var(--gap);
  border-top:1px solid #e6e6e6; padding-top:16px;
}
.simple-footer .foot-col{ display:flex; flex-direction:column; gap:6px; }
.simple-footer .foot-heading{ font-weight:600; }
.simple-footer a{ color:var(--text); text-decoration:underline; text-underline-offset:5px; }

/* responsive */
@media (max-width: 900px){
  .grid-container{ grid-template-columns:1fr; }
  .simple-footer{ grid-template-columns:1fr; gap:10px; }
}

/* Hide filtered cards */
.grid-container .video-item[hidden]{ display:none !important; }

/* ===== ABOUT – FOUNDERS ===== */
.about { width: 90%; margin: 0 auto; }
.about-hero{
  padding-top: 40px; padding-bottom: 18px; border-bottom:1px solid #e6e6e6; margin-bottom:26px; text-align:left;
}
.about-hero h1{ margin:0 0 8px 0; font-size:clamp(2.2rem, 6vw, 3.2rem); font-weight:100; line-height:1.05; }
.about-hero p{ color:var(--muted); margin:0; max-width:700px; }

.founders{
  display:grid; grid-template-columns:repeat(2, minmax(280px, 1fr)); gap:40px;
  border-top:1px solid #e6e6e6; padding-top:32px;
}
.founder{ display:flex; flex-direction:column; gap:12px; align-items:flex-start; }
.founder h2{ margin:0; font-size:clamp(1.4rem, 3.5vw, 2rem); font-weight:600; }
.founder h2 span{ font-weight:400; color:var(--muted); }
.founder p{ margin:0; color:#222; line-height:1.4; }

.portrait {
  width: 100%;
  background: #e9e9e9;
  overflow: hidden;
}
.portrait img {
  width: 100%;
  height: auto;          /* purely natural ratio */
  object-fit: con;
  display: block;
}
.portrait .placeholder {
  display: none;
}

@media (max-width: 900px){
  .founders{ grid-template-columns:1fr; gap:24px; }
}

/* ===== Reveal animations ===== */
@media (prefers-reduced-motion: no-preference){
  [data-reveal]{
    opacity:0;
    transform: translateY(12px);
    transition: opacity .5s ease, transform .5s ease;
    transition-delay: var(--delay, 0ms);
  }
  [data-reveal].show{
    opacity:1;
    transform:none;
  }
}

/* ===== GET STARTED / CONTACT ===== */
.start { width: 90%; margin: 0 auto 40px; }
.start-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 42px;
  padding-top: 36px;
  border-top: 1px solid #e6e6e6;
}

.start-copy h1{
  margin: 0 0 12px 0;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 100;
  line-height: 1.05;
}
.start-copy p{ margin: 0 0 10px 0; color: var(--muted); }

/* form */
.start-form { display: flex; flex-direction: column; gap: 18px; }
.start-form .row { display: grid; gap: 12px; }
.start-form .row.two { grid-template-columns: 1fr 1fr; gap: 18px; }

.field label{
  display: block;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.field .muted{ color: var(--muted); font-weight: 400; }

.field input,
.field textarea{
  width: 100%;
  border: none;
  border-bottom: 1px solid #cfcfcf;
  background: transparent;
  padding: 10px 0;
  font: inherit;
  color: var(--text);
  outline: none;
}
.field input:focus,
.field textarea:focus{
  border-bottom-color: #000;
}

.hints{
  margin: 8px 0 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* reuse your black button style */
.start-form .cta-getStarted{
  width: fit-content;
  padding: 12px 32px;
}

/* responsive */
@media (max-width: 900px){
  .start-grid{ grid-template-columns: 1fr; }
  .start-form .row.two{ grid-template-columns: 1fr; }
}

/* Submit confirmation */
.form-notice{
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(8px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.form-notice.show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.form-notice__box{
  background: #111;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
  font-size: .95rem;
}

/* make the submit feel clickable */
.cta-getStarted{ cursor: pointer; }

/* Short-form: 4 columns */
/* Responsive collapse for short-form */
/* ===== PROJECT GRIDS (LONG / SHORT) ===== */

/* Shared base for both grids */
.grid-block,
#grid-long,
#grid-short {
  display: grid;
  gap: var(--gap);
  padding: 24px 0 36px;
}

/* Long-form: 2 columns on desktop */
#grid-long,
.grid-long {
  grid-template-columns: repeat(4, minmax(280px, 1fr));
}

/* Short-form: 4 columns on desktop */
#grid-short,
.grid-short {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

/* Responsive collapse for short-form */
@media (max-width: 1200px){
  #grid-short,
  .grid-short {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }
}

@media (max-width: 900px){
  #grid-long,
  .grid-long {
    /* Long-form collapses to 1 column on tablets */
    grid-template-columns: 1fr !important;
  }
  #grid-short,
  .grid-short {
    /* Short-form goes to 2 columns on tablets */
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px){
  /* On small phones everything becomes 1 column */
  #grid-short,
  .grid-short {
    grid-template-columns: 1fr;
  }
}

/* SaaS grid (2 columns like long-form) */
#grid-saas,
.grid-saas {
  display: grid;
  grid-template-columns: repeat(4, minmax(280px, 1fr));
  gap: var(--gap);
  padding: 24px 0 36px;
}

@media (max-width: 900px){
  #grid-saas,
  .grid-saas {
    grid-template-columns: 1fr !important;
  }
}

/* Make sure hidden sections actually disappear */
[hidden]{
  display: none !important;
}

/* Static back-to-top section */
.back-to-top-static {
    width: 100%;
    text-align: center;
}

.back-to-top-static a {
    color: #121212;
    font-size: 75px;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top-static a:hover {
    opacity: 0.7;
}

/* Animation for the static back-to-top block */
.back-to-top-static {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.back-to-top-static.loaded {
    opacity: 1;
    transform: translateY(0);
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 48px 0 12px 0;
}

/* LARGE GRID (Long-form + SaaS) → 4 columns */
.grid-large {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 20px;
  padding-bottom: 36px;
}

/* SMALL GRID (Short-form) → 8 columns */
.grid-small {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 20px;
  padding-bottom: 36px;
}

/* Responsive */
@media (max-width: 1400px) {
  .grid-small {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 1100px) {
  .grid-large {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-small {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 800px) {
  .grid-large {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-small {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 550px) {
  .grid-large {
    grid-template-columns: repeat(1, 1fr);
  }
  .grid-small {
    grid-template-columns: repeat(2, 1fr);
  }
}
