:root{
  --bg:#060b13;
  --surface:#0b1420;
  --surface2:#0d1826;
  --text:#f3f6fa;
  --muted:#99a7b8;
  --muted2:#66758a;
  --line:rgba(255,255,255,.085);
  --cyan:#25d9ef;
  --blue:#168cff;
  --purple:#765cff;
  --max:1160px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;

  background:
    radial-gradient(circle at 50% -5%,rgba(22,112,190,.13),transparent 32%),
    var(--bg);

  color:var(--text);

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  -webkit-font-smoothing:antialiased;
}

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

.site-header{
  position:sticky;
  top:0;
  z-index:20;

  border-bottom:1px solid var(--line);

  background:rgba(6,11,19,.86);

  backdrop-filter:blur(18px);
}

.header-inner{
  max-width:var(--max);
  height:88px;

  margin:auto;
  padding:0 24px;

  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand img{
  display:block;

  width:300px;
  max-height:68px;

  object-fit:contain;
  object-position:left center;
}

nav{
  display:flex;
  gap:30px;

  color:#9ba8b9;

  font-size:14px;
  font-weight:600;
}

nav a:hover{
  color:#fff;
}


/* HERO */

.hero{
  border-bottom:1px solid var(--line);
}

.hero-inner{
  max-width:var(--max);

  min-height:560px;

  margin:auto;
  padding:95px 24px 85px;

  display:grid;
  grid-template-columns:1.3fr .7fr;
  gap:80px;

  align-items:center;
}

.eyebrow{
  color:var(--cyan);

  font-size:11px;
  font-weight:800;

  letter-spacing:.16em;
}

.hero h1{
  max-width:760px;

  margin:18px 0 24px;

  font-size:clamp(46px,5.7vw,68px);

  line-height:1.03;

  letter-spacing:-.045em;
}

.hero p{
  max-width:680px;

  margin:0;

  color:var(--muted);

  font-size:19px;

  line-height:1.7;
}

.hero-actions{
  margin-top:32px;

  display:flex;
  gap:12px;
}

.button{
  min-height:48px;

  padding:0 20px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  border-radius:10px;

  font-size:14px;
  font-weight:700;
}

.primary{
  color:#031018;

  background:
    linear-gradient(
      115deg,
      var(--cyan),
      var(--blue)
    );
}

.secondary{
  border:1px solid var(--line);

  background:rgba(255,255,255,.025);
}

.hero-mark{
  min-height:260px;

  padding:40px;

  border:1px solid var(--line);

  border-radius:20px;

  display:flex;
  flex-direction:column;
  justify-content:center;

  background:
    linear-gradient(
      135deg,
      rgba(37,217,239,.035),
      transparent 50%
    );
}

.mark-line{
  height:2px;

  margin-bottom:18px;

  background:
    linear-gradient(
      90deg,
      var(--cyan),
      var(--blue),
      transparent
    );
}

.mark-line.short{
  width:60%;
}

.hero-mark span{
  margin-top:18px;

  color:#718096;

  font-size:10px;
  font-weight:800;

  letter-spacing:.15em;
}


/* PROJECTS */

.projects,
.about{
  max-width:var(--max);

  margin:auto;
  padding:95px 24px;

  border-bottom:1px solid var(--line);
}

.section-heading{
  margin-bottom:45px;

  display:grid;
  grid-template-columns:1fr .7fr;
  gap:60px;

  align-items:end;
}

.section-heading h2,
.about h2{
  margin:12px 0 0;

  font-size:clamp(36px,4.6vw,54px);

  line-height:1.05;

  letter-spacing:-.04em;
}

.section-heading p{
  margin:0;

  color:var(--muted);

  line-height:1.7;
}

.project-card{
  overflow:hidden;

  display:grid;
  grid-template-columns:1.1fr .9fr;

  border:1px solid var(--line);

  border-radius:22px;

  background:
    linear-gradient(
      135deg,
      rgba(22,140,255,.045),
      transparent 45%
    ),
    var(--surface);
}

.project-copy{
  padding:48px;
}

.project-meta{
  margin-bottom:28px;

  display:flex;
  align-items:center;
  gap:12px;

  color:#718096;

  font-size:10px;
  font-weight:800;

  letter-spacing:.13em;
}

.status{
  padding:7px 10px;

  border:
    1px solid rgba(37,217,239,.22);

  border-radius:100px;

  color:var(--cyan);

  background:
    rgba(37,217,239,.04);
}

.project-copy h3{
  margin:0 0 18px;

  font-size:clamp(38px,4.7vw,56px);

  letter-spacing:-.045em;
}

.project-lead{
  max-width:620px;

  margin:0;

  color:#c2cbd7;

  font-size:19px;

  line-height:1.65;
}

.project-body{
  max-width:620px;

  margin:20px 0 0;

  color:#8797aa;

  line-height:1.7;
}

.tags{
  margin-top:28px;

  display:flex;
  flex-wrap:wrap;

  gap:8px;
}

.tags span{
  padding:7px 10px;

  border:1px solid var(--line);

  border-radius:7px;

  color:#8090a4;

  font-size:11px;
}

.project-footer{
  margin-top:38px;

  color:#66768b;

  font-size:12px;
}


/* MOCKUP */

.project-preview{
  min-height:470px;

  padding:55px;

  border-left:1px solid var(--line);

  display:flex;
  align-items:center;
  justify-content:center;

  background:
    radial-gradient(
      circle at center,
      rgba(37,217,239,.09),
      transparent 58%
    );
}

.mockup{
  width:100%;
  max-width:320px;

  padding:24px;

  border:
    1px solid rgba(255,255,255,.11);

  border-radius:18px;

  background:
    rgba(5,10,18,.82);

  box-shadow:
    0 35px 70px rgba(0,0,0,.35);
}

.mockup-top{
  margin-bottom:28px;

  display:flex;
  gap:6px;
}

.mockup-top span{
  width:7px;
  height:7px;

  border-radius:50%;

  background:#34465b;
}

.mockup-title{
  margin-bottom:24px;

  font-size:17px;
  font-weight:700;
}

.mockup-fields{
  display:grid;
  grid-template-columns:1fr 1fr;

  gap:10px;
}

.mockup-fields div,
.mockup-result{
  padding:15px;

  border:1px solid var(--line);

  border-radius:10px;

  background:#0b1623;
}

.mockup small{
  display:block;

  margin-bottom:7px;

  color:#65768c;

  font-size:9px;
  font-weight:800;

  letter-spacing:.12em;
}

.mockup strong{
  font-size:21px;
}

.mockup-result{
  margin-top:10px;

  background:
    linear-gradient(
      135deg,
      rgba(37,217,239,.07),
      rgba(22,140,255,.04)
    );
}

.mockup-result strong{
  color:var(--cyan);

  font-size:31px;
}

.mockup-hint{
  margin-top:16px;

  color:#718096;

  font-size:12px;
}


/* ABOUT */

.about-grid{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:90px;
}

.about-copy p{
  margin:0 0 20px;

  color:#8f9eb0;

  font-size:17px;

  line-height:1.75;
}

.about-copy .about-lead{
  color:#d0d8e3;

  font-size:20px;
}


/* PRINCIPLES */

.principles{
  max-width:var(--max);

  margin:auto;
  padding:70px 24px 95px;

  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

.principles article{
  padding:28px;

  border:1px solid var(--line);

  border-radius:16px;

  background:
    linear-gradient(
      180deg,
      var(--surface2),
      var(--surface)
    );
}

.principles span{
  color:var(--cyan);

  font-size:10px;
  font-weight:800;
}

.principles h3{
  margin:35px 0 12px;

  font-size:21px;
}

.principles p{
  margin:0;

  color:#8392a6;

  line-height:1.7;
}


/* FOOTER */

footer{
  max-width:var(--max);

  margin:auto;
  padding:45px 24px 30px;
}

.footer-main{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;

  gap:50px;
}

.footer-brand img{
  width:220px;
}

.footer-brand p{
  max-width:420px;

  margin:15px 0 0;

  color:#68798f;

  font-size:13px;

  line-height:1.6;
}

.footer-links{
  display:flex;

  gap:25px;

  padding-top:12px;

  color:#8190a4;

  font-size:13px;
}

.footer-links a:hover{
  color:#fff;
}

.footer-bottom{
  margin-top:38px;
  padding-top:20px;

  border-top:1px solid var(--line);

  display:flex;
  justify-content:space-between;

  color:#516278;

  font-size:11px;
}


/* MOBILE */

@media(max-width:800px){

  .header-inner{
    height:76px;

    padding:0 18px;
  }

  .brand img{
    width:220px;
  }

  nav{
    display:none;
  }

  .hero-inner{
    min-height:auto;

    padding:80px 18px 65px;

    grid-template-columns:1fr;

    gap:45px;
  }

  .hero h1{
    font-size:46px;
  }

  .hero p{
    font-size:17px;
  }

  .hero-actions{
    flex-direction:column;
  }

  .button{
    width:100%;
  }

  .hero-mark{
    min-height:190px;

    padding:28px;
  }

  .projects,
  .about{
    padding:70px 18px;
  }

  .section-heading{
    grid-template-columns:1fr;

    gap:20px;
  }

  .project-card{
    grid-template-columns:1fr;
  }

  .project-copy{
    padding:30px 24px;
  }

  .project-preview{
    min-height:350px;

    padding:35px 24px;

    border-left:0;

    border-top:1px solid var(--line);
  }

  .about-grid{
    grid-template-columns:1fr;

    gap:35px;
  }

  .principles{
    padding:55px 18px 70px;

    grid-template-columns:1fr;
  }

  .footer-main{
    flex-direction:column;
  }

  .footer-brand img{
    width:210px;
  }

  .footer-links{
    flex-wrap:wrap;
  }

  .footer-bottom{
    flex-direction:column;

    gap:7px;
  }
}

@media(prefers-reduced-motion:reduce){
  html{
    scroll-behavior:auto;
  }
}

/* MOBILE FIXES */
@media(max-width:800px){

  body{
    overflow-x:hidden;
  }

  .project-card,
  .principles article,
  .mockup{
    width:100%;
    max-width:100%;
  }

  .project-copy{
    padding:26px 20px;
  }

  .project-copy h3{
    font-size:36px;
    line-height:1.05;
    overflow-wrap:anywhere;
  }

  .project-lead{
    font-size:17px;
    line-height:1.6;
  }

  .project-body{
    font-size:15px;
    line-height:1.65;
  }

  .project-meta{
    flex-wrap:wrap;
    gap:8px;
  }

  .tags{
    gap:6px;
  }

  .tags span{
    font-size:10px;
    padding:7px 9px;
  }

  .project-preview{
    padding:28px 20px;
    min-height:320px;
  }

  .mockup{
    max-width:290px;
    padding:20px;
  }

  .mockup-fields{
    grid-template-columns:1fr;
  }

  .principles article{
    padding:24px 20px;
    overflow:hidden;
  }

  .principles h3{
    font-size:20px;
    overflow-wrap:anywhere;
  }

  .principles p{
    font-size:15px;
  }

  .about-copy,
  .about-copy p,
  .section-heading,
  .section-heading p{
    max-width:100%;
  }

}

@media(max-width:800px){
  .project-copy h3{
    font-size:32px;
    line-height:1.08;
    letter-spacing:-.035em;
    overflow-wrap:normal;
    word-break:normal;
  }
}

/* SUBPAGES */

.subpage-hero{
  border-bottom:1px solid var(--line);
}

.subpage-inner{
  max-width:900px;
  margin:auto;
  padding:100px 24px 80px;
}

.subpage-inner h1{
  margin:16px 0 22px;
  font-size:clamp(42px,5vw,62px);
  line-height:1.05;
  letter-spacing:-.045em;
}

.subpage-inner p{
  max-width:720px;
  margin:0;
  color:var(--muted);
  font-size:19px;
  line-height:1.7;
}

.content-page{
  max-width:900px;
  margin:auto;
  padding:75px 24px 100px;
}

.content-block{
  padding:40px 0;
  border-bottom:1px solid var(--line);
}

.content-block:first-child{
  padding-top:0;
}

.content-block h2{
  margin:0 0 18px;
  font-size:30px;
  letter-spacing:-.025em;
}

.content-block p{
  max-width:760px;
  margin:0 0 16px;
  color:#8f9eb0;
  font-size:17px;
  line-height:1.8;
}

.text-link{
  display:inline-block;
  margin-top:8px;
  color:var(--cyan);
  font-weight:700;
}

@media(max-width:800px){
  .subpage-inner{
    padding:75px 18px 55px;
  }

  .subpage-inner h1{
    font-size:40px;
  }

  .subpage-inner p{
    font-size:17px;
  }

  .content-page{
    padding:55px 18px 75px;
  }

  .content-block{
    padding:32px 0;
  }

  .content-block h2{
    font-size:26px;
  }

  .content-block p{
    font-size:16px;
  }
}
