/* ProtoByte — site styles
   Breakpoints mirror the original Framer site: desktop ≥1200, tablet 810–1199, phone <810. */

@font-face {
  font-family: "Anton";
  src: url("/assets/fonts/anton-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --light: #f7f2f2;
  --navy: #22283e;
  --white: #ffffff;
  --black: #141414;
  --yellow: #f2b81c;

  --pad: 40px;
  --radius: 30px;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-page: cubic-bezier(0.27, 0, 0.51, 1);

  /* type scale (desktop) */
  --fs-hero: 120px;
  --fs-hero-cycle: 115px;
  --fs-hero-sub: 100px;
  --fs-huge: 180px;
  --fs-section: 84px;
  --fs-card-title: 48px;
  --fs-intro: 24px;
  --fs-lead: 32px;
  --fs-body: 18px;
  --fs-tag: 16px;
  --fs-btn: 22px;
  --fs-link: 24px;
  --fs-subhead: 40px;
}

@media (max-width: 1199px) {
  :root {
    --pad: 30px;
    --fs-hero: 95px;
    --fs-hero-cycle: 92px;
    --fs-hero-sub: 80px;
    --fs-huge: 110px;
    --fs-section: 72px;
    --fs-card-title: 40px;
    --fs-intro: 22px;
    --fs-lead: 28px;
    --fs-body: 16px;
    --fs-btn: 18px;
    --fs-link: 22px;
    --fs-subhead: 22px;
  }
}

@media (max-width: 809px) {
  :root {
    --pad: 20px;
    --radius: 20px;
    --fs-hero: 56px;
    --fs-hero-cycle: 42px;
    --fs-hero-sub: 40px;
    --fs-huge: 80px;
    --fs-section: 52px;
    --fs-card-title: 32px;
    --fs-intro: 18px;
    --fs-lead: 20px;
    --fs-body: 15px;
    --fs-tag: 13px;
    --fs-btn: 16px;
    --fs-link: 20px;
    --fs-subhead: 22px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--navy);
  font-family: "Inter", system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  font-weight: inherit;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.anton {
  font-family: "Anton", Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
}

.outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--navy);
}
.outline-white {
  color: transparent;
  -webkit-text-stroke: 2px var(--white);
}
@media (max-width: 809px) {
  .outline, .outline-white { -webkit-text-stroke-width: 1.5px; }
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Page reveal (Framer "blinds" page effect) ---------- */

.page {
  animation: page-in 0.5s var(--ease-page) 0.5s both;
}
@keyframes page-in {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* ---------- Appear-on-load (spring, rises from below) ---------- */

[data-appear] {
  animation: appear 1s var(--ease-spring) both;
  animation-delay: var(--d, 0.8s);
}
[data-appear="rise"] {
  --y: 185px;
  --o: 0;
}
[data-appear="rise-sm"] {
  --y: 60px;
  --o: 0;
}
[data-appear="rise-md"] {
  --y: 100px;
  --o: 0;
}
@keyframes appear {
  from {
    opacity: var(--o, 0);
    transform: translateY(var(--y, 185px));
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Logo + menu ---------- */

.logo {
  position: absolute;
  top: 50px;
  left: var(--pad);
  z-index: 20;
  width: 300px;
}
.logo img {
  width: 100%;
  height: auto;
}
@media (max-width: 1199px) {
  .logo { width: 220px; top: 40px; }
}
@media (max-width: 809px) {
  .logo { width: 140px; top: 30px; }
}

.menu {
  position: fixed;
  top: 50px;
  right: 50px;
  z-index: 100;
  width: 60px;
  height: 60px;
  border-radius: 30px;
  background: var(--white);
  box-shadow:
    -0.4px 0.4px 2.6px -1.1px rgba(0, 0, 0, 0.09),
    -1.2px 1.2px 7.9px -2.25px rgba(0, 0, 0, 0.08),
    -3.2px 3.2px 20.8px -3.4px rgba(0, 0, 0, 0.06),
    -10px 10px 65px -4.5px rgba(0, 0, 0, 0.01);
  overflow: hidden;
  transition:
    width 0.5s var(--ease-spring),
    height 0.5s var(--ease-spring);
}
.menu.is-open {
  width: 400px;
  height: 280px;
}
@media (max-width: 1199px) {
  .menu { top: 40px; right: var(--pad); }
}
@media (max-width: 809px) {
  .menu { top: 30px; right: var(--pad); width: 46px; height: 46px; }
  .menu.is-open { width: calc(100vw - 2 * var(--pad)); height: 260px; }
}

.menu-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
}
@media (max-width: 809px) {
  .menu-toggle { width: 46px; height: 46px; }
}
.menu-toggle .bar {
  position: absolute;
  width: 30px;
  height: 3px;
  border-radius: 10px;
  background: #000;
  transition: transform 0.4s var(--ease-spring);
}
@media (max-width: 809px) {
  .menu-toggle .bar { width: 22px; height: 2.5px; }
}
.menu-toggle .bar:first-child { transform: translateY(-5px); }
.menu-toggle .bar:last-child { transform: translateY(5px); }
.menu.is-open .menu-toggle { top: 10px; right: 10px; }
.menu.is-open .menu-toggle .bar:first-child { transform: rotate(45deg); }
.menu.is-open .menu-toggle .bar:last-child { transform: rotate(-45deg); }

.menu-panel {
  position: absolute;
  inset: 0;
  padding: 26px 40px 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
@media (max-width: 809px) {
  .menu-panel { padding: 22px 24px 30px; }
}
.menu.is-open .menu-panel {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease 0.15s, visibility 0s;
}
.menu-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
}
.menu-links {
  list-style: none;
  margin: 58px 0 0;
  padding: 0;
}
.menu-links a {
  display: inline-block;
  font-size: 44px;
  color: var(--navy);
}
@media (max-width: 809px) {
  .menu-links { margin-top: 48px; }
  .menu-links a { font-size: 40px; }
}

/* ---------- Text roll hover (used by links & buttons) ---------- */

.roll {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: top;
}
.roll > span {
  display: block;
  transition: transform 0.45s var(--ease-spring);
}
.roll > span + span {
  position: absolute;
  inset: 100% 0 auto 0;
}
a:hover .roll > span,
a:focus-visible .roll > span,
button:hover .roll > span {
  transform: translateY(-100%);
}

/* Arrow link: "LAUNCH MY PROJECT ↗" */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-link);
  color: var(--navy);
}
.arrow-link.light { color: var(--white); }
.arrow-link svg {
  width: 0.8em;
  height: 0.8em;
  transition: transform 0.45s var(--ease-spring);
}
.arrow-link:hover svg { transform: rotate(45deg); }

/* Pill button */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  border: 1.5px solid var(--navy);
  border-radius: 100px;
  font-size: var(--fs-btn);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  background: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.pill:hover,
.pill:focus-visible {
  background: var(--navy);
  color: var(--white);
}
@media (max-width: 809px) {
  .pill { padding: 14px 20px; }
}

/* ---------- Sections ---------- */

.content {
  position: relative;
  z-index: 2;
}

.section {
  position: relative;
  padding: 120px var(--pad);
}
@media (max-width: 809px) {
  .section { padding: 80px var(--pad); }
}
.section.light { background: var(--light); color: var(--navy); }
.section.dark { background: var(--navy); color: var(--white); }
.section.round-top { border-radius: var(--radius) var(--radius) 0 0; }
.section.round-bottom { border-radius: 0 0 var(--radius) var(--radius); }
.section.round-both { border-radius: var(--radius); }
.section.sticky { position: sticky; top: 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  padding-bottom: 50px;
  border-bottom: 1.5px solid currentColor;
}
.section-head h2 { font-size: var(--fs-section); }
.section-head p {
  font-size: var(--fs-intro);
  line-height: 1.3;
  max-width: 500px;
  justify-self: end;
}
@media (max-width: 809px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; padding-bottom: 36px; }
  .section-head p { justify-self: start; }
}

/* ---------- Home: hero ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 200px var(--pad) 50px;
  background: var(--light);
  overflow: clip;
}
.hero-title { display: flex; flex-direction: column; }
.hero-title .l1 { font-size: var(--fs-hero); }
.hero-title .l2 { font-size: var(--fs-hero-cycle); }
.hero-title .l3 { font-size: var(--fs-hero-sub); }
.hero .arrow-link { margin-top: 40px; align-self: flex-start; }

/* Word cycle: one vertical reel of words that slides up a line at a time
   (same technique as Framer's Text Cycle component) */
.cycle {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  height: 1.1em;
  line-height: 1.1;
}
.cycle-reel {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.44, 0, 0.56, 1);
  will-change: transform;
}
.cycle-reel > span {
  display: block;
  height: 1.1em;
  white-space: nowrap;
}

/* ---------- Home: huge marquee ---------- */

.tagline {
  position: relative;
  z-index: 1;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 110px 0;
  overflow: hidden;
}
@media (max-width: 809px) {
  .tagline { padding: 70px 0; }
}
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
}
.marquee-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  animation: marquee var(--speed, 30s) linear infinite;
}
.marquee.reverse .marquee-track { animation-direction: reverse; }
@keyframes marquee {
  to { transform: translateX(-100%); }
}
/* Huge text rows: centred, then shifted sideways by scroll (see main.js) */
.huge-row {
  font-size: var(--fs-huge);
  white-space: nowrap;
  overflow: hidden;
  padding: 5px 0;
}
.huge-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  margin-left: 50%;
  transform: translateX(-50%);
  will-change: transform;
}
.huge-row .dot {
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  border-radius: 4px;
  background: currentColor;
}
@media (max-width: 809px) {
  .huge-track { gap: 14px; }
  .huge-row .dot { width: 12px; height: 12px; border-radius: 2px; }
}

/* Sections that shrink a little as the next one covers them */
.scale-wrap { position: relative; }
/* the wrapper's colour fills the gap that appears around a section while it shrinks,
   so the sticky sections further up the page never show through */
.scale-wrap.light-bg { background: var(--light); }
.scale-wrap.dark-bg { background: var(--navy); }
[data-scroll-shrink] { will-change: transform; }
.section.round-bottom-too { border-radius: var(--radius); }

.hero[data-parallax] { will-change: transform; }

/* ---------- Home: about (sticky) ---------- */

.about {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 50px;
}
.about h2 { font-size: var(--fs-subhead); }
.about .lead {
  max-width: 800px;
  font-size: var(--fs-lead);
  line-height: 1.2;
  color: var(--light);
}
.about .lead p + p { margin-top: 1.2em; }

/* ---------- Home: client logos ---------- */

.clients {
  min-height: 800px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 17px;
  padding: 0;
  overflow: hidden;
}
@media (max-width: 809px) {
  .clients { min-height: 0; padding: 60px 0; gap: 10px; }
}
.clients .marquee-track { gap: 10px; padding-right: 10px; }
.client {
  position: relative;
  width: 250px;
  height: 240px;
  border-radius: 10px;
  background: var(--white);
  display: grid;
  place-items: center;
  overflow: hidden;
}
@media (max-width: 809px) {
  .client { width: 160px; height: 150px; }
}
.client img {
  width: 70%;
  height: 60%;
  object-fit: contain;
  transition: transform 0.45s var(--ease-spring);
}
.client span {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--black);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.45s var(--ease-spring);
}
.client:hover img { transform: translateY(-14px) scale(0.92); }
.client:hover span { opacity: 1; transform: none; }
@media (max-width: 809px) {
  .client span { font-size: 13px; bottom: 12px; }
}

/* ---------- Project cards ---------- */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px 20px;
  margin-top: 60px;
}
@media (max-width: 809px) {
  .projects-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
}
.project-card { display: flex; flex-direction: column; }
.project-card .thumb {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #e5e0e0;
}
.project-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-spring);
}
.project-card:hover .thumb img { transform: scale(1.05); }
.project-card h3 {
  margin-top: 30px;
  font-size: var(--fs-card-title);
  line-height: 1.1;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 4px 10px;
  border: 1px solid var(--navy);
  border-radius: 100px;
  font-size: var(--fs-tag);
  font-weight: 500;
  line-height: 1.2;
}
.project-card p {
  margin-top: 16px;
  font-size: var(--fs-body);
  line-height: 1.3;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 80px;
}

/* ---------- Home: services ticker ---------- */

.services .marquee { margin-top: 140px; }
@media (max-width: 809px) {
  .services .marquee { margin-top: 60px; }
}
.services .marquee:hover .marquee-track { animation-play-state: paused; }
.services .marquee-track { gap: 10px; padding-right: 10px; align-items: flex-start; }
.service {
  width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
@media (max-width: 809px) {
  .service { width: 260px; gap: 18px; }
}
.service .img {
  width: 100%;
  aspect-ratio: 380 / 285;
  border-radius: 10px;
  overflow: hidden;
}
.service img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-spring);
}
.service:hover img { transform: scale(1.06); }
.service h3 {
  font-size: 26px;
  line-height: 1.2;
  text-align: center;
  color: var(--white);
}
@media (max-width: 809px) {
  .service h3 { font-size: 20px; }
}
.services .center { display: flex; justify-content: center; margin-top: 160px; }
@media (max-width: 809px) {
  .services .center { margin-top: 70px; }
}

/* ---------- Home: testimonials ---------- */

.testimonials { display: flex; flex-direction: column; gap: 120px; margin-top: 70px; padding: 5px 0; }
@media (max-width: 809px) {
  .testimonials { margin-top: 40px; }
}
.testimonial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
  border-radius: 30px;
  background: var(--white);
  box-shadow: 0 10px 40px -10px rgba(34, 40, 62, 0.08);
  will-change: transform;
  /* cards pin 60px from the top and the next one slides over it (stacking cards) */
  position: sticky;
  top: 60px;
  z-index: 1;
}
@media (max-width: 809px) {
  .testimonial { grid-template-columns: 1fr; padding: 20px; gap: 24px; }
}
.testimonial .quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 10px;
}
.testimonial .quote svg { width: 46px; height: 46px; color: var(--navy); }
.testimonial blockquote {
  margin: 24px 0 0;
  font-size: var(--fs-intro);
  line-height: 1.2;
}
.testimonial blockquote p + p { margin-top: 0; }
.testimonial .who { margin-top: 30px; font-size: 22px; }
.testimonial .role { margin-top: 4px; font-size: 16px; }
.testimonial .media {
  position: relative;
  aspect-ratio: 1 / 1.06;
  border-radius: 20px;
  overflow: hidden;
}
.testimonial .media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* the notched corner holding the little device icon */
.testimonial .notch {
  position: absolute;
  top: 0;
  right: 0;
  width: 92px;
  height: 62px;
  background: var(--white);
  border-bottom-left-radius: 20px;
  display: grid;
  place-items: center;
}
.testimonial .notch::before,
.testimonial .notch::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at 0 100%, transparent 20px, var(--white) 20.5px);
}
.testimonial .notch::before { top: 0; left: -20px; }
.testimonial .notch::after { bottom: -20px; right: 0; }
.testimonial .notch img { width: 40px; height: 40px; }

/* ---------- Footer ---------- */

.footer {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 80px;
  padding: 60px var(--pad) 40px;
  background: var(--navy);
  color: var(--white);
}
.content > .section:last-child,
.content > :last-child {
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}
.footer-cta h2 { font-size: var(--fs-hero); line-height: 1.05; }
.footer-cta .arrow-link { margin: 30px 0 0 15px; }
.footer-bottom { display: flex; flex-direction: column; gap: 60px; }
.footer-contacts {
  display: flex;
  align-items: center;
  gap: 120px;
}
.footer-contacts .socials { margin-left: auto; }
.contact-item strong {
  display: block;
  font-size: 22px;
  font-weight: 600;
}
.contact-item a {
  display: inline-block;
  margin-top: 8px;
  font-size: var(--fs-body);
}
.contact-item a:hover { text-decoration: underline; }
.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 30px;
  border-top: 1.5px solid var(--white);
  font-size: 18px;
}
.footer-legal a { font-size: 20px; }
@media (max-width: 809px), (max-height: 720px) {
  .footer { min-height: 0; }
}
@media (max-width: 809px) {
  .footer { gap: 60px; }
  .footer-contacts { flex-wrap: wrap; gap: 30px 40px; }
  .footer-contacts .socials { margin-left: 0; }
  .footer-legal { font-size: 14px; }
  .footer-legal a { font-size: 16px; }
}

.socials {
  display: flex;
  gap: 20px;
}
.social {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.social svg { width: 22px; height: 22px; }
.light-socials .social { color: var(--navy); }
.light-socials .social:hover { background: var(--navy); color: var(--white); }
.footer .social:hover { background: var(--white); color: var(--navy); }

/* ---------- Launches page ---------- */

.page-hero {
  padding: 300px var(--pad) 0;
  background: var(--light);
}
@media (max-width: 809px) {
  .page-hero { padding-top: 160px; }
}
.page-hero h1 { font-size: var(--fs-hero); }
.page-hero h1 .line { display: block; }
.launches .projects-grid { margin-top: 120px; }
@media (max-width: 809px) {
  .launches .projects-grid { margin-top: 60px; }
}

/* ---------- Project detail ---------- */

.project-hero { padding-bottom: 60px; }
.project-hero h1 { font-size: var(--fs-section); }
.project-hero .summary {
  max-width: 600px;
  margin-top: 24px;
  font-size: var(--fs-intro);
  line-height: 1.3;
}
.meta {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  margin-top: 60px;
}
.meta dl { margin: 0; }
.meta dt { font-size: 20px; }
.meta dd { margin: 10px 0 0; font-size: 16px; line-height: 1.4; }
.meta .arrow-link { margin-left: auto; align-self: flex-end; font-size: 20px; }
@media (max-width: 809px) {
  .meta { flex-wrap: wrap; gap: 30px 40px; margin-top: 40px; }
  .meta .arrow-link { margin-left: 0; }
}
.project-cover {
  background: var(--light);
}
.project-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.story { display: flex; flex-direction: column; gap: 80px; }
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.story-block h2 { font-size: var(--fs-card-title); }
.story-block p { font-size: var(--fs-body); line-height: 1.4; max-width: 520px; justify-self: end; }
@media (max-width: 809px) {
  .story { gap: 50px; }
  .story-block { grid-template-columns: 1fr; gap: 16px; }
  .story-block p { justify-self: start; }
}
.story-img {
  border-radius: 10px;
  overflow: hidden;
}
.story-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.story-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.story-pair .story-img img { aspect-ratio: 4 / 4.2; }
@media (max-width: 809px) {
  .story-pair { grid-template-columns: 1fr; }
  .story-pair .story-img img { aspect-ratio: 16 / 11; }
}
.more { padding-top: 0; }

/* ---------- Contact ---------- */

.contact-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-top: 260px;
}
@media (max-width: 809px) {
  .contact-hero { grid-template-columns: 1fr; padding-top: 150px; }
}
.contact-hero h1 { font-size: var(--fs-section); }
.contact-hero .intro {
  margin-top: 20px;
  max-width: 520px;
  font-size: var(--fs-intro);
  line-height: 1.3;
}
.contact-hero .contact-item { margin-top: 50px; }
.contact-hero .contact-item + .contact-item { margin-top: 36px; }
.contact-hero .contact-item a { font-size: var(--fs-intro); }
.contact-hero .socials { margin-top: 40px; }

.form-card {
  align-self: start;
  padding: 20px;
  border-radius: 10px;
  background: var(--white);
}
.form-card h2 { font-size: 18px; font-weight: 600; }
.form-card label {
  display: block;
  margin-top: 22px;
  font-size: 15px;
  color: #555;
}
.form-card input,
.form-card textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 0;
  border-radius: 6px;
  background: var(--light);
  font: inherit;
  font-size: 15px;
  color: var(--navy);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  outline: 1px solid transparent;
  transition: outline-color 0.2s ease;
}
.form-card textarea { min-height: 160px; resize: vertical; }
.form-card input:focus,
.form-card textarea:focus { outline-color: var(--navy); }
.form-card button[type="submit"] {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.2s ease;
}
.form-card button[type="submit"]:hover { opacity: 0.9; }
.form-card button[disabled] { opacity: 0.6; cursor: progress; }
.form-status { margin-top: 14px; font-size: 15px; min-height: 1.3em; }
.form-status.ok { color: #1c7c3c; }
.form-status.err { color: #b42318; }

.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 60px;
  align-items: start;
}
@media (max-width: 809px) {
  .faq { grid-template-columns: 1fr; gap: 12px; margin-top: 40px; }
}
.faq-col { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 809px) {
  .faq-col { gap: 12px; }
}
.faq-item {
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px;
  text-align: left;
  font-size: 22px;
  line-height: 1.3;
}
@media (max-width: 809px) {
  .faq-item button { padding: 20px; font-size: 17px; }
}
.faq-item .plus {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  transition: transform 0.4s var(--ease-spring);
}
.faq-item .plus::before,
.faq-item .plus::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  margin-top: -1px;
  background: var(--navy);
}
.faq-item .plus::after { transform: rotate(90deg); }
.faq-item.is-open .plus { transform: rotate(45deg); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-spring);
}
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-answer > div { overflow: hidden; }
.faq-answer p {
  padding: 0 30px 30px;
  font-size: 18px;
  line-height: 1.4;
}
@media (max-width: 809px) {
  .faq-answer p { padding: 0 20px 20px; font-size: 15px; }
}

/* ---------- 404 ---------- */

.not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 120px;
  text-align: center;
}
.not-found h1 { font-size: var(--fs-hero); }
@media (max-width: 809px) {
  .not-found { gap: 60px; }
}

/* ---------- Custom cursor (Framer "Custom Cursor" component) ----------
   Default: 30px grey ring. Over project images: 125px frosted-glass circle with "View".
   Over links and buttons it fades out and the normal pointer shows. */

.cursor { display: none; }

@media (hover: hover) and (pointer: fine) {
  html.has-cursor,
  html.has-cursor body { cursor: none; }
  html.has-cursor [data-cursor="view"],
  html.has-cursor [data-cursor="view"] * { cursor: none; }
  html.has-cursor a,
  html.has-cursor button,
  html.has-cursor label { cursor: pointer; }
  html.has-cursor input,
  html.has-cursor textarea { cursor: text; }

  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
  }
  .cursor-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    border: 2px solid rgb(179, 179, 179);
    border-radius: 50%;
    display: grid;
    place-items: center;
    opacity: 0;
    transition:
      width 0.45s var(--ease-spring),
      height 0.45s var(--ease-spring),
      background-color 0.3s ease,
      border-color 0.3s ease,
      box-shadow 0.3s ease,
      opacity 0.25s ease;
  }
  .cursor-dot span {
    font-size: 18px;
    line-height: 1.3;
    color: var(--white);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.25s ease, transform 0.45s var(--ease-spring);
  }
  .cursor.is-visible .cursor-dot { opacity: 1; }
  .cursor.is-view .cursor-dot {
    width: 125px;
    height: 125px;
    border-color: transparent;
    background: rgba(166, 166, 166, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 0 5px 2px rgba(255, 255, 255, 0.5);
  }
  .cursor.is-view .cursor-dot span { opacity: 1; transform: none; }
  .cursor.is-hidden .cursor-dot { opacity: 0; width: 125px; height: 125px; border-color: transparent; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .page,
  [data-appear] { animation: none; }
  .marquee-track { animation-duration: 0s; animation-play-state: paused; }
  * { transition-duration: 0.01ms !important; }
}
