@font-face {
  font-family: PopboxSans;
  src: url('../fonts/970d71e7dcbc144d-s.woff2') format('woff2');
  font-display: swap;
}

:root {
  --blue: #433dfe;
  --ink: #171747;
  --muted: #4d4d62;
  --white: #ffffff;
  --line: rgba(67, 61, 254, 0.18);
  --soft-blue: rgba(67, 61, 254, 0.08);
  --shadow: 0 24px 70px rgba(67, 61, 254, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: PopboxSans, Georgia, serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.site-header, main, .site-footer { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
}
.brand { align-items: center; display: flex; gap: 12px; font-weight: 800; letter-spacing: -0.02em; }
.brand img { border-radius: 10px; height: 44px; width: 44px; }
.main-nav { display: flex; gap: 28px; font-size: 0.95rem; }
.main-nav a { color: var(--muted); transition: color 180ms ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--blue); }
.hero {
  align-items: center;
  display: grid;
  gap: clamp(42px, 8vw, 120px);
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.75fr);
  min-height: 690px;
  padding: 80px 0 120px;
}
.hero-copy { max-width: 630px; }
.eyebrow { color: var(--blue); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; margin: 0 0 18px; text-transform: uppercase; }
h1, h2, h3 { letter-spacing: -0.055em; line-height: 1.03; margin: 0; }
h1 { font-size: clamp(3.3rem, 6vw, 5.8rem); max-width: 700px; }
h2 { font-size: clamp(2.35rem, 4vw, 4rem); }
h3 { font-size: 1.7rem; }
.hero-description { color: var(--muted); font-size: 1.2rem; margin: 28px 0 34px; max-width: 520px; }
.button { border: 2px solid var(--blue); display: inline-flex; font-weight: 800; justify-content: center; padding: 13px 22px; transition: background 180ms ease, color 180ms ease, transform 180ms ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: var(--white); }
.button-primary:hover, .button-primary:focus-visible { background: var(--ink); border-color: var(--ink); }
.hero-mark { aspect-ratio: 1; background: var(--blue); box-shadow: var(--shadow); max-width: 500px; padding: 9%; transform: rotate(3deg); }
.hero-mark img { display: block; height: 100%; object-fit: cover; transform: rotate(-3deg); width: 100%; }
.section { border-top: 1px solid var(--line); padding: 120px 0; }
.intro { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; }
.intro-copy { align-self: end; font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.35; margin: 0; max-width: 530px; }
.team-list { border-top: 1px solid var(--line); margin: 54px auto 0; max-width: 820px; }
.team, .works { text-align: center; }
.team .works-heading, .works .works-heading { text-align: center; }
.team-row { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 18px; grid-template-columns: 1fr; padding: 30px 20px; }
.team-identity h3 { font-size: 1.45rem; }
.team-identity p { color: var(--blue); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; margin: 8px 0 0; text-transform: uppercase; }
.team-description { color: var(--muted); margin: 0 auto; max-width: 600px; }
.works-heading { display: block; }
.section-note { color: var(--muted); margin: 22px auto 0; max-width: 420px; }
.work-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); margin: 54px auto 0; max-width: 900px; }
.work-card { border: 1px solid var(--line); min-height: 260px; padding: 28px; transition: background 180ms ease, transform 180ms ease; }
.work-card:hover { background: var(--soft-blue); transform: translateY(-5px); }
.work-card-featured { background: var(--blue); color: var(--white); }
.work-card-featured:hover { background: var(--ink); }
.card-index { color: var(--blue); display: block; font-size: 0.8rem; font-weight: 800; margin-bottom: 80px; }
.work-logo { display: block; height: 72px; margin: -58px auto 22px; object-fit: contain; width: 72px; }
.work-card-featured .card-index { color: var(--white); }
.work-card p { color: var(--muted); margin-bottom: 0; }
.work-card { text-align: center; }
.work-card-featured p { color: rgba(255, 255, 255, 0.8); }
.work-status { color: var(--blue); display: block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; margin-top: 22px; text-transform: uppercase; }
.work-card-featured .work-status { color: var(--white); }
.contact { padding-bottom: 140px; }
.contact-panel { align-items: center; background: var(--blue); color: var(--white); display: flex; flex-direction: column; gap: 30px; justify-content: center; margin: 0 auto; max-width: 900px; padding: clamp(36px, 6vw, 76px); text-align: center; }
.contact-panel .eyebrow { color: var(--white); }
.contact-panel h2 { max-width: 620px; }
.contact-panel p:not(.eyebrow) { color: rgba(255, 255, 255, 0.8); margin: 22px auto 0; max-width: 520px; }
.button-light { background: var(--white); color: var(--blue); white-space: nowrap; }
.button-light:hover, .button-light:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--white); }
.site-footer { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding: 24px 0 40px; color: var(--muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 18px; width: 100%; }
.footer-links a { text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--blue); }
.cookie-banner { align-items: center; background: var(--ink); bottom: 18px; box-shadow: 0 12px 32px rgba(23, 23, 71, 0.22); color: var(--white); display: flex; gap: 28px; justify-content: space-between; left: 18px; padding: 18px 22px; position: fixed; right: 18px; z-index: 20; }
.cookie-banner strong { display: block; font-size: 1rem; }
.cookie-banner p { color: rgba(255, 255, 255, 0.88); margin: 4px 0 0; }
.cookie-accept { flex-shrink: 0; }
.legal-page main { max-width: 820px; }
.legal-content { padding: 90px 0 120px; }
.legal-content h1 { font-size: clamp(3rem, 6vw, 5.8rem); margin-bottom: 20px; }
.legal-content h2 { font-size: 1.65rem; margin: 48px 0 12px; }
.legal-content p, .legal-content li { color: var(--muted); max-width: 720px; }
.legal-content ul { padding-left: 22px; }
.not-found { min-height: 70vh; padding: 120px 0; text-align: center; }
.not-found h1 { margin: 0 auto 20px; }
.not-found p { color: var(--muted); margin: 0 auto 30px; max-width: 500px; }

@media (max-width: 760px) {
  .site-header, main, .site-footer { width: min(100% - 32px, 600px); }
  .site-header { align-items: flex-start; gap: 18px; }
  .brand span { max-width: 150px; line-height: 1.15; }
  .main-nav { flex-direction: column; gap: 4px; text-align: right; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 70px 0 90px; }
  h1 { font-size: clamp(3rem, 13vw, 5rem); }
  .hero-mark { justify-self: center; max-width: 360px; width: 80%; }
  .section { padding: 80px 0; }
  .intro { grid-template-columns: 1fr; }
  .team-row { gap: 10px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { min-height: 220px; }
  .card-index { margin-bottom: 48px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 5px; }
  .footer-links { flex-wrap: wrap; }
  .cookie-banner { align-items: stretch; flex-direction: column; gap: 14px; left: 12px; right: 12px; }
}
