:root {
  --white: #ffffff;
  --black: #000000;
  --accent: #7877E6;
  --accent-hover: #6564d4;
  --dark-accent: #4F4F4F;
  --light-accent: #F4F4F3;
  --mid-gray: #7E807F;
  --heading: "Anton", sans-serif;
  --body: "Epilogue", sans-serif;
  --max: 1200px;
  --max-wide: 1320px;
  --gutter: 4vw;
  --header-h: 88px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--dark-accent);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
h1, h2, h3, h4, h5 {
  font-family: var(--heading);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 0.4em;
  color: var(--dark-accent);
}
p { margin: 0 0 1em; }
.wrap {
  width: min(var(--max-wide), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(16px, 3vw, 40px);
  color: var(--white);
}
.site-header.is-light { color: var(--dark-accent); }
.site-header.is-light .brand img { content: url("/assets/logo.svg"); }
.nav-left, .nav-right { display: flex; align-items: center; }
.nav-right { justify-content: flex-end; gap: 16px; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  font-size: 0.95rem;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.nav-list a:hover, .nav-list a.is-active { border-bottom-color: currentColor; }
.nav-item { position: relative; }
.folder-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 200px;
  background: var(--white);
  color: var(--dark-accent);
  padding: 12px 0;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .18s, transform .18s;
  z-index: 20;
}
.nav-item:hover .folder-menu,
.nav-item:focus-within .folder-menu {
  opacity: 1; pointer-events: auto; transform: none;
}
.folder-menu a {
  display: block;
  padding: 8px 18px;
  border: 0 !important;
  font-size: 0.92rem;
}
.folder-menu a:hover { background: var(--light-accent); }
.brand {
  display: flex;
  justify-content: center;
  align-items: center;
}
.brand img, .brand-logo {
  height: 42px;
  width: auto;
  display: block;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white) !important;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.95em 1.9em;
  font-size: 0.85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  transition: background .15s, transform .15s, opacity .15s;
}
.btn:hover { background: var(--accent-hover); }
.btn-dark { background: var(--dark-accent); }
.btn-dark:hover { background: #3a3a3a; }
.btn-lg { padding: 1.15em 2.6em; min-width: 220px; }
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  color: inherit;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; position: relative;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--white);
  color: var(--dark-accent);
  z-index: 200;
  padding: 24px 28px 48px;
  display: none;
  overflow: auto;
}
.mobile-menu.is-open { display: block; }
.mobile-menu-top { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.mobile-menu nav a, .mobile-menu nav button.folder-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none; border: 0;
  font-family: var(--body);
  font-size: 1.05rem;
  padding: 12px 0;
  color: inherit;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}
.mobile-sub { display: none; padding-left: 12px; }
.mobile-sub.is-open { display: block; }
.mobile-cta { margin-top: 28px; }

/* Hero */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
  background: #8a8d8f;
}
.hero img.hero-bg, .hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(20,20,20,.18);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + 24px) var(--gutter) 56px;
  max-width: 1100px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6.4vw, 5.6rem);
  line-height: 1.05;
  text-shadow: 0 2px 18px rgba(0,0,0,.18);
}

/* Sections */
.section { padding: 72px 0; }
.section-sm { padding: 36px 0; }
.section-lg { padding: 96px 0; }
.bg-white { background: var(--white); }
.bg-light { background: var(--light-accent); }
.bg-dark { background: var(--dark-accent); color: var(--white); }
.bg-black { background: var(--black); color: var(--white); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4,
.bg-black h1, .bg-black h2, .bg-black h3, .bg-black h4 { color: var(--white); }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.intro-grid h2 {
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  margin-bottom: 0.7em;
}
.intro-photo { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.banner-strip {
  text-align: center;
  padding: 28px var(--gutter);
}
.banner-strip h3, .banner-strip p {
  font-family: var(--heading);
  text-transform: uppercase;
  font-size: clamp(1.15rem, 2.1vw, 1.7rem);
  line-height: 1.25;
  margin: 0;
  color: inherit;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.pillar { text-align: center; }
.pillar h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-bottom: 1rem; }
.pillar img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 1.1rem; }
.pillar p { text-align: left; color: #333; }

.brands { text-align: center; }
.brands h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 2.2rem; }
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 22px;
  align-items: center;
}
.logo-row img {
  width: 118px; height: 118px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(0,0,0,.04);
}

.services-block h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 2.2rem;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  color: var(--dark-accent);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.service-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.service-card .card-body { padding: 22px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { font-size: 1.15rem; margin-bottom: .4rem; color: var(--black); }
.service-card p { font-size: 0.95rem; color: #333; flex: 1; }
.service-card .btn { align-self: flex-start; margin-top: 12px; padding: .8em 1.5em; }

.who { max-width: 640px; }
.who h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); }
.who .btn { margin-top: 1.2rem; }

.help h2 { text-align: center; font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 2rem; }

.form {
  max-width: 860px;
  margin: 0 auto;
}
.form-card {
  background: var(--white);
  padding: clamp(28px, 4vw, 48px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.form-field { margin-bottom: 1.25rem; }
.form-field label, .form-legend {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-field .hint { font-weight: 400; color: #777; }
.form-field input, .form-field textarea {
  width: 100%;
  border: 0;
  background: var(--light-accent);
  border-radius: var(--radius-pill);
  padding: 14px 18px;
  font-size: 1rem;
  color: var(--dark-accent);
  outline: none;
}
.form-field textarea { border-radius: 20px; min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { box-shadow: 0 0 0 2px var(--accent); }
.radio { display: flex; align-items: center; gap: 10px; margin: 8px 0 18px; text-transform: uppercase; font-size: .85rem; letter-spacing: .03em; }
.form-success { display: none; padding: 16px 0; color: var(--dark-accent); font-weight: 600; }
.form-success.is-visible { display: block; }

.socials { text-align: center; }
.socials h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 1.8rem; }
.social-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.social-grid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* Footer */
.site-footer { background: var(--black); color: var(--white); padding: 64px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.site-footer h4 { color: var(--white); font-size: 1.25rem; margin-bottom: 1rem; }
.site-footer p, .site-footer a { color: #ddd; font-size: 0.95rem; }
.site-footer a { display: block; padding: 2px 0; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.copyright { text-align: center; margin-top: 48px; font-size: 0.85rem; color: #bbb; }

/* Inner pages */
.page-hero { min-height: 62vh; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.split h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); margin-bottom: .6em; }
.stack-lines h2 { margin-bottom: .35em; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-grid h3 { font-size: 1.35rem; }
.feature-grid p { color: #333; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.team-card { background: #f3f3f3; padding: 12px 12px 18px; }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; margin-bottom: 12px; }
.team-card h3 { font-size: 1rem; margin: 0; color: var(--black); }
.team-card p { margin: 0; font-size: 0.9rem; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.work-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.work-card h3 { font-size: 1.1rem; margin: 12px 4px 0; }

/* Support blog */
.article-list { display: flex; flex-direction: column; gap: 48px; }
.article-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.browser-card {
  background: #ececec;
  border-radius: 8px;
  padding: 10px 10px 0;
  overflow: hidden;
}
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 8px 10px;
}
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.browser-bar i:nth-child(1) { background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }
.browser-search {
  flex: 1; height: 22px; background: #fff; border-radius: 6px; margin-left: 8px;
}
.browser-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.article-row time { display: block; color: #666; font-size: 0.9rem; margin-bottom: 8px; }
.article-row h2 {
  color: var(--accent);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  margin-bottom: 12px;
}
.article-row .read-more { color: var(--accent); text-decoration: underline; font-size: 0.95rem; }
.article-body { max-width: 760px; margin: 0 auto; padding: 48px 0 80px; }
.article-body h1 { font-size: clamp(2rem, 3.5vw, 3rem); color: var(--accent); margin-bottom: 16px; }
.article-body time { color: #777; }
.article-body .lead { font-size: 1.1rem; margin: 20px 0 28px; }
.article-body p { margin-bottom: 1.1em; }

.cta-band { text-align: center; padding: 72px var(--gutter); }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-band p { max-width: 640px; margin: 0 auto 1.2rem; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.info-grid h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }

/* Admin is separate */

@media (max-width: 980px) {
  .nav-list { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-header { grid-template-columns: 1fr auto auto; }
  .brand { justify-content: flex-start; padding-left: 8px; }
  .intro-grid, .split, .form-row, .article-row, .info-grid { grid-template-columns: 1fr; }
  .pillars, .service-grid, .feature-grid, .work-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .social-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 64vh; }
  .page-hero { min-height: 52vh; }
}
@media (max-width: 640px) {
  .pillars, .service-grid, .feature-grid, .work-grid, .footer-grid { grid-template-columns: 1fr; }
  .logo-row img { width: 86px; height: 86px; }
  .site-header { height: 72px; --header-h: 72px; }
  .brand img { height: 32px; }
  .nav-right .btn { padding: .7em 1.1em; font-size: .75rem; }
}
