@font-face { font-family: "Syne"; src: url("fonts/syne.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Sora"; src: url("fonts/sora.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Questrial"; src: url("fonts/questrial.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --blue: #0057ff;
  --blue-dark: #0046cc;
  --grey: #f5f5f5;
  --lime: #e3f45a;
  --black: #000;
  --white: #fff;
  --radius: 12px;
  --gutter: clamp(16px, 3.3vw, 48px);
  --max: 1440px;
  --display: "Syne", "Questrial", sans-serif;
  --text: "Questrial", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; color: var(--blue); }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { color: var(--blue); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: "↪"; font-size: 13px; }
.eyebrow.plain::before { content: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 16px var(--gutter) 0; }
.nav {
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: 0 auto;
  background: var(--grey);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { font-family: "Sora", sans-serif; font-weight: 700; font-size: clamp(22px, 2.2vw, 32px); color: var(--blue); letter-spacing: -0.5px; }
.nav-links { display: flex; gap: clamp(24px, 5vw, 76px); list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--blue); font-size: 15px; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: var(--white);
  border: 0; border-radius: 999px; padding: 10px 24px;
  font-family: var(--text); font-size: 15px; cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: var(--blue-dark); }
.menu-toggle { display: none; background: none; border: 0; color: var(--blue); font-size: 26px; line-height: 1; cursor: pointer; padding: 4px; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav { flex-wrap: wrap; }
  .nav .btn { display: none; }
  .nav-links { display: none; width: 100%; flex-direction: column; gap: 14px; padding: 8px 0 6px; }
  .nav.open .nav-links { display: flex; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 100px); padding-bottom: clamp(40px, 5vw, 70px); }
.hero .eyebrow { font-size: 19px; margin-bottom: 12px; }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hero h1 { font-size: clamp(42px, 6.2vw, 92px); line-height: 1.2; max-width: 16ch; }
.hero-link { color: var(--blue); font-size: 19px; white-space: nowrap; padding-bottom: 12px; }

/* ---------- Featured work ---------- */
.featured { display: grid; gap: 10px; grid-template-columns: repeat(12, 1fr); }
.featured a { border-radius: var(--radius); overflow: hidden; background: var(--grey); }
.featured img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.featured a:hover img { transform: scale(1.03); }
.featured .narrow { grid-column: span 4; aspect-ratio: 579 / 665; }
.featured .wide { grid-column: span 8; height: 100%; }
.featured .full { grid-column: span 12; aspect-ratio: 1782 / 665; }
@media (max-width: 700px) {
  .featured .narrow, .featured .wide, .featured .full { grid-column: span 12; height: auto; aspect-ratio: 4 / 3; }
}

/* ---------- Stats ---------- */
.section { padding-top: clamp(60px, 8vw, 110px); padding-bottom: clamp(60px, 8vw, 110px); }
.split-head { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; margin-bottom: 48px; }
.split-head h2 { font-size: clamp(36px, 3.7vw, 53px); line-height: 1.1; margin-top: 10px; }
.split-head p { color: var(--blue); font-size: 14px; max-width: 18ch; padding-top: 34px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { border: 1px solid var(--blue); border-radius: var(--radius); padding: 22px 20px 26px; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.stat strong { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 3.6vw, 52px); color: var(--blue); line-height: 1; }
.stat p { color: var(--blue); font-size: 14px; line-height: 1.55; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat { min-height: 220px; } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } .split-head { grid-template-columns: 1fr; } .split-head p { padding-top: 0; max-width: none; } }

/* ---------- Logo marquee ---------- */
.logos { background: var(--grey); padding: 26px 0; overflow: hidden; }
.logos-track { display: flex; align-items: center; gap: 90px; width: max-content; animation: marquee 40s linear infinite; }
.logos-track img { height: 28px; width: auto; mix-blend-mode: multiply; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logos-track { animation: none; } }

/* ---------- Apart ---------- */
.apart { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.apart-left { display: grid; gap: 10px; grid-template-rows: 1fr 1fr; }
.card-outline { border: 1px solid var(--blue); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.card-outline h2 { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.1; }
.card-outline p { color: var(--blue); font-size: 14px; max-width: 52ch; }
.card-lime { background: var(--lime); border-radius: var(--radius); padding: 28px 26px; }
.card-lime h3 { color: var(--black); font-size: 22px; margin-bottom: 6px; }
.card-lime p { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.55; }
.apart-img { border-radius: var(--radius); overflow: hidden; }
.apart-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) { .apart { grid-template-columns: 1fr; } .apart-img { aspect-ratio: 4 / 3; } }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: 1fr 5fr; gap: 24px; }
.services-side { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.services-side .btn { position: sticky; bottom: 24px; align-self: flex-start; }
.service { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--blue); align-items: center; }
.service:first-child { padding-top: 0; }
.service h3 { font-size: clamp(20px, 1.6vw, 24px); }
.service p { color: var(--blue); font-size: 15px; line-height: 1.6; }
@media (max-width: 800px) {
  .services { grid-template-columns: 1fr; }
  .services-side .btn { position: static; }
  .service { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.quote { background: var(--white); border-radius: var(--radius); padding: 26px 22px 30px; box-shadow: 0 1px 6px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 40px; }
.quote b { font-family: "Sora", sans-serif; font-size: 14px; display: block; }
.quote span { font-size: 14px; }
.quote p { font-size: 15px; line-height: 1.6; }
@media (max-width: 800px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Contact form ---------- */
.contact { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.contact h2 { font-size: clamp(38px, 4.4vw, 64px); line-height: 1.05; margin-top: 10px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 40px; }
.form label { display: flex; flex-direction: column; gap: 6px; color: var(--blue); font-size: 14px; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea {
  border: 0; border-bottom: 1px solid var(--blue); background: transparent;
  font: inherit; font-size: 16px; padding: 8px 0; color: var(--black); outline: none; border-radius: 0;
}
.form input:focus, .form textarea:focus { border-bottom-width: 2px; }
.form textarea { min-height: 90px; resize: vertical; }
.form .btn { justify-self: start; padding: 12px 56px; font-size: 16px; }
.form-note { grid-column: 1 / -1; color: var(--blue); font-size: 14px; display: none; }
.form.sent .form-note { display: block; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue); color: var(--white); margin-top: clamp(60px, 8vw, 110px); padding: 40px 0 20px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-brand { font-size: 20px; margin-bottom: 24px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 14px; }
.footer-links a:hover { text-decoration: underline; }
.footer-signup h4 { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 0 0 16px; }
.newsletter { grid-template-columns: 1fr; gap: 14px; max-width: 460px; }
.newsletter label { color: var(--white); }
.newsletter input[type=email] { border: 1px solid var(--white); border-radius: 999px; padding: 8px 16px; color: var(--white); }
.newsletter .check { flex-direction: row; align-items: center; gap: 10px; }
.newsletter .check input { width: 16px; height: 16px; margin: 0; accent-color: var(--white); }
.newsletter .btn { justify-self: stretch; background: var(--white); color: var(--blue); padding: 10px; }
.newsletter .btn:hover { background: var(--grey); }
.newsletter .form-note { color: var(--white); }
.footer-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 60px; flex-wrap: wrap; }
.footer-word { font-family: "Sora", sans-serif; font-weight: 700; font-size: clamp(72px, 17vw, 250px); line-height: .8; letter-spacing: -0.03em; }
.footer-bottom small { font-size: 13px; padding-bottom: 6px; }
@media (max-width: 700px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Project page ---------- */
.project-hero { background: var(--blue); margin-top: -76px; padding: 170px 0 50px; }
.project-hero h1 { color: var(--white); font-size: clamp(52px, 9vw, 130px); line-height: 1; }
.project { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(30px, 5vw, 70px); padding: 60px 0 0; }
.project-meta { color: var(--blue); font-size: 14px; line-height: 1.6; }
.project-meta > * + * { margin-top: 20px; }
.project-meta .sticky { position: sticky; top: 110px; }
.project-body h2 { font-size: clamp(32px, 3.4vw, 46px); margin: 0 0 14px; }
.project-body section + section { margin-top: 50px; }
.project-body p { color: var(--blue); font-size: 15px; line-height: 1.75; max-width: 62ch; }
.project-body p + p { margin-top: 18px; }
.project-gallery { display: grid; gap: 10px; margin-top: 60px; }
.project-gallery img { border-radius: var(--radius); width: 100%; }
.project-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--blue); }
.project-nav a { color: var(--blue); font-size: 15px; }
.project-nav a:hover { text-decoration: underline; }
.project-cta { text-align: center; margin-top: 60px; }
@media (max-width: 800px) { .project { grid-template-columns: 1fr; } .project-meta .sticky { position: static; } }

/* ---------- Work grid ---------- */
.page-title { font-size: clamp(48px, 7vw, 100px); line-height: 1.05; padding: clamp(50px, 6vw, 90px) 0 40px; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 10px; }
.work-grid a { display: block; }
.work-grid .thumb { border-radius: var(--radius); overflow: hidden; aspect-ratio: 863 / 697; background: var(--grey); }
.work-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work-grid a:hover img { transform: scale(1.03); }
.work-grid .caption { color: var(--blue); font-size: 15px; margin-top: 12px; display: flex; justify-content: space-between; }
@media (max-width: 700px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-intro { padding-top: clamp(60px, 9vw, 130px); padding-bottom: clamp(40px, 6vw, 80px); }
.about-intro p.lead { font-family: var(--display); color: var(--blue); font-size: clamp(26px, 3.2vw, 46px); line-height: 1.3; margin-top: 16px; }
.side-label { display: grid; grid-template-columns: 1fr 5fr; gap: 24px; }
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.member { border-radius: var(--radius); overflow: hidden; background: var(--blue); }
.member img { width: 100%; aspect-ratio: 755 / 513; object-fit: cover; }
.member p { color: var(--white); font-size: 14px; padding: 12px 14px 18px; }
.awards { list-style: none; margin: 0; padding: 0; }
.awards li { font-family: var(--display); color: var(--blue); font-size: clamp(20px, 1.8vw, 26px); padding: 22px 0; border-bottom: 1px solid var(--blue); }
.contact-about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-about .info { color: var(--blue); font-size: 15px; line-height: 1.8; margin-top: 40px; }
.contact-about .info a:hover { text-decoration: underline; }
.contact-about img { border-radius: var(--radius); filter: grayscale(1); width: 100%; }
@media (max-width: 800px) {
  .side-label, .contact-about { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } }

/* ---------- Legal ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 26px; margin: 48px 0 18px; }
.legal h3 { font-size: 18px; color: var(--black); margin: 28px 0 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.75; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 10px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
