:root {
  color-scheme: light;
  font-family: "DM Sans", Arial, sans-serif;
  color: #0a0a0a;
  background: #fff;
  font-synthesis: none;
  --page-pad: clamp(20px, 4.2vw, 72px);
  --border: #d9d9d9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; overflow-x: hidden; background: #fff; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, a { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--page-pad);
  border-bottom: 1px solid transparent;
  transition: height 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-header.scrolled { height: 62px; background: rgba(255,255,255,.94); border-color: #e4e4e4; backdrop-filter: blur(14px); }

.brand { width: fit-content; display: flex; gap: 10px; align-items: center; font-size: 16px; font-weight: 600; text-decoration: none; }
.brand-crop { position: relative; width: 29px; height: 29px; overflow: hidden; }
.brand-crop img { position: absolute; width: 50px; max-width: none; left: -10px; top: -8px; }

.desktop-nav { display: flex; gap: 34px; align-items: center; }
.desktop-nav a { position: relative; color: #343434; font-size: 13px; text-decoration: none; }
.desktop-nav a::after { position: absolute; right: 0; bottom: -6px; left: 0; height: 1px; background: #111; content: ""; transform: scaleX(0); transform-origin: right; transition: transform 180ms ease; }
.desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-cta { justify-self: end; display: inline-flex; gap: 9px; align-items: center; min-height: 42px; padding: 0 16px; color: #fff; font-size: 12px; font-weight: 600; background: #0a0a0a; border: 1px solid #0a0a0a; text-decoration: none; transition: color 160ms ease, background 160ms ease; }
.header-cta:hover { color: #0a0a0a; background: #fff; }
.menu-button, .mobile-nav { display: none; }

.hero {
  position: relative;
  min-height: min(820px, calc(100svh - 46px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f4f4f2;
}

.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 27%, rgba(255,255,255,.12) 61%, transparent 100%); }
.hero-content { position: relative; z-index: 2; width: min(660px, 52%); padding: 112px 0 62px var(--page-pad); }
.kicker, .section-index { margin: 0 0 20px; color: #666; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(68px, 9vw, 142px); font-weight: 500; line-height: .86; letter-spacing: 0; }
.hero-statement { max-width: 570px; margin: 34px 0 12px; font-size: clamp(25px, 3.2vw, 46px); font-weight: 500; line-height: 1.07; }
.hero-services { margin: 0; color: #4e4e4e; font-size: 14px; }
.hero-actions { display: flex; gap: 26px; align-items: center; margin-top: 42px; }
.button { min-height: 48px; display: inline-flex; gap: 12px; align-items: center; padding: 0 19px; font-size: 13px; font-weight: 600; text-decoration: none; }
.button--dark { color: #fff; background: #0a0a0a; border: 1px solid #0a0a0a; transition: color 160ms ease, background 160ms ease; }
.button--dark:hover { color: #0a0a0a; background: transparent; }
.text-link { display: inline-flex; gap: 9px; align-items: center; font-size: 13px; font-weight: 500; text-decoration: none; }
.hero-index { position: absolute; z-index: 2; right: var(--page-pad); bottom: 26px; display: flex; gap: 22px; color: #555; font-size: 10px; }

.section { padding: 128px var(--page-pad); }
.section-heading { display: grid; grid-template-columns: 31% 1fr; align-items: start; margin-bottom: 70px; }
.section-heading h2 { margin: 0; font-size: clamp(39px, 5.4vw, 76px); font-weight: 500; line-height: .99; }

.services-layout { display: grid; grid-template-columns: minmax(250px, .7fr) minmax(0, 1.9fr); gap: clamp(32px, 5vw, 78px); align-items: start; }
.studio-panel { position: sticky; top: 96px; min-height: 530px; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; background: #f5f5f3; border: 1px solid #e4e4e1; }
.studio-logo-wrap { margin: auto 0; }
.studio-logo-wrap img { width: 100%; mix-blend-mode: multiply; }
.studio-panel > p { max-width: 290px; margin: 0 0 26px; color: #565656; font-size: 14px; line-height: 1.6; }
.arrow-link { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; font-size: 13px; font-weight: 600; border-top: 1px solid #ccc; text-decoration: none; }

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.service-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 4px; transition: transform 220ms ease, box-shadow 220ms ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(0,0,0,.08); }
.service-visual { height: clamp(180px, 21vw, 290px); background-image: url("assets/agencyia-hero.png"); background-repeat: no-repeat; background-size: 265%; filter: grayscale(1); transition: transform 500ms cubic-bezier(.2,.7,.2,1), filter 300ms ease; }
.service-card:hover .service-visual { transform: scale(1.025); filter: grayscale(.72); }
.service-visual--web { background-position: 59% 27%; }
.service-visual--software { background-position: 83% 53%; }
.service-visual--vr { background-position: 100% 76%; }
.service-visual--maps { background-position: 49% 86%; }
.service-body { padding: 23px; }
.service-number { margin: 0 0 28px; color: #777; font-size: 10px; }
.service-card h3 { margin: 0; font-size: clamp(23px, 2.3vw, 34px); font-weight: 500; }
.service-card .service-body > p:not(.service-number) { min-height: 66px; margin: 13px 0 20px; color: #5f5f5f; font-size: 13px; line-height: 1.58; }
.tags { min-height: 51px; display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.tags span { padding: 6px 9px; color: #575757; font-size: 10px; background: #f3f3f3; border-radius: 2px; }
.service-body > a { display: flex; justify-content: space-between; align-items: center; margin-top: 23px; padding-top: 15px; font-size: 12px; font-weight: 600; border-top: 1px solid #e1e1e1; text-decoration: none; }

.manifesto { min-height: 680px; display: grid; grid-template-columns: 31% 1fr; align-content: center; gap: 30px; padding: 110px var(--page-pad); color: #fff; background: #090909; }
.manifesto-label { align-self: start; margin: 12px 0 0; color: #8b8b8b; font-size: 11px; text-transform: uppercase; }
.manifesto-text { margin: 0; font-size: clamp(54px, 8.2vw, 124px); font-weight: 500; line-height: .9; }
.manifesto-copy { grid-column: 2; max-width: 600px; margin: 46px 0 0; color: #aaa; font-size: 17px; line-height: 1.6; }

.method-list { margin: 0; padding: 0; border-top: 1px solid #cfcfcf; list-style: none; }
.method-list li { display: grid; grid-template-columns: 12% 25% 1fr; gap: 24px; align-items: baseline; padding: 32px 0; border-bottom: 1px solid #cfcfcf; }
.method-list span { color: #777; font-size: 11px; }
.method-list h3 { margin: 0; font-size: clamp(25px, 3vw, 40px); font-weight: 500; }
.method-list p { max-width: 520px; margin: 0; color: #616161; font-size: 14px; line-height: 1.65; }

.cta-section { min-height: 540px; display: flex; justify-content: space-between; align-items: center; gap: 50px; padding: 100px var(--page-pad); background: #f2f2f0; }
.cta-copy h2 { margin: 0; font-size: clamp(55px, 8vw, 116px); font-weight: 500; line-height: .92; }
.cta-copy > p:last-child { margin: 27px 0 0; color: #5c5c5c; font-size: 16px; }
.cta-circle { flex: 0 0 auto; width: clamp(190px, 20vw, 290px); aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 32px; color: #fff; background: #0a0a0a; border-radius: 50%; text-decoration: none; transition: transform 220ms ease; }
.cta-circle:hover { transform: rotate(-4deg) scale(1.02); }
.cta-circle span { font-size: clamp(17px, 2vw, 25px); line-height: 1.1; }
.cta-circle svg { align-self: flex-end; }

.site-footer { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; padding: 74px var(--page-pad) 24px; color: #fff; background: #090909; }
.footer-logo { width: 170px; display: block; padding: 5px; background: #fff; }
.footer-brand > p { margin: 24px 0 0; color: #8c8c8c; font-size: 12px; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 11px; font-size: 13px; }
.footer-nav p, .footer-contact p { margin: 0 0 10px; color: #777; font-size: 10px; text-transform: uppercase; }
.footer-nav a, .footer-contact a { width: fit-content; color: #ddd; text-decoration: none; }
.footer-contact span { color: #777; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-top: 70px; padding-top: 18px; color: #777; font-size: 10px; border-top: 1px solid #292929; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
button:focus-visible, a:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.site-footer a:focus-visible, .manifesto a:focus-visible { outline-color: #fff; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav, .header-cta { display: none; }
  .menu-button { position: fixed; z-index: 30; top: 11px; right: var(--page-pad); width: 40px; height: 40px; display: grid; align-content: center; gap: 6px; padding: 0 8px; background: transparent; border: 0; }
  .menu-button span { display: none; }
  .menu-button::before, .menu-button::after { width: 22px; height: 1px; display: block; background: #111; transition: transform 180ms ease; }
  .menu-button::before, .menu-button::after { position: absolute; left: 9px; content: ""; }
  .menu-button::before { top: 16px; }
  .menu-button::after { bottom: 16px; }
  .menu-button[aria-expanded="true"]::before { transform: translateY(3.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"]::after { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-nav { position: fixed; inset: 62px 0 0; display: flex; flex-direction: column; gap: 12px; padding: 42px var(--page-pad); background: #fff; }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a { padding: 17px 0; font-size: 28px; font-weight: 500; border-bottom: 1px solid #ddd; text-decoration: none; }
  .hero-content { width: 70%; }
  .section-heading, .manifesto { grid-template-columns: 1fr; }
  .section-heading { gap: 15px; }
  .services-layout { grid-template-columns: 1fr; }
  .studio-panel { position: relative; top: auto; min-height: 330px; }
  .studio-logo-wrap img { width: 280px; }
  .manifesto-copy { grid-column: 1; }
}

@media (max-width: 650px) {
  .site-header { height: 62px; }
  .brand-crop { width: 25px; height: 25px; }
  .brand-crop img { width: 44px; left: -9px; top: -7px; }
  .hero { min-height: calc(100svh - 36px); align-items: flex-end; }
  .hero-image { object-position: 62% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.87) 40%, rgba(255,255,255,.06) 72%); }
  .hero-content { width: 100%; padding: 100px var(--page-pad) 64px; }
  .menu-button { background: rgba(255,255,255,.86); border-radius: 50%; backdrop-filter: blur(8px); }
  .hero h1 { font-size: clamp(54px, 17vw, 70px); }
  .hero-statement { max-width: 430px; font-size: 25px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; margin-top: 30px; }
  .hero-index { display: none; }
  .section { padding-top: 90px; padding-bottom: 90px; }
  .section-heading { margin-bottom: 46px; }
  .section-heading h2 { font-size: 42px; }
  .studio-panel { min-height: 310px; padding: 23px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-visual { height: 260px; }
  .service-card .service-body > p:not(.service-number) { min-height: 0; }
  .manifesto { min-height: 580px; padding: 90px var(--page-pad); }
  .manifesto-text { font-size: 58px; }
  .method-list li { grid-template-columns: 42px 1fr; gap: 12px; }
  .method-list p { grid-column: 2; }
  .cta-section { min-height: 610px; align-items: flex-start; flex-direction: column; padding: 86px var(--page-pad); }
  .cta-circle { align-self: flex-end; width: 190px; padding: 25px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 18px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
