/* Corsard — site styles
   Palette and type taken from the original Squarespace build.
   Original heading font is Roc Grotesk (Adobe Fonts, licensed via Squarespace).
   Archivo at expanded width is the free stand-in; swap --font-display if you
   license Roc Grotesk through Adobe Fonts. */

:root {
  --offwhite: #FAFAFA;
  --white: #FFFFFF;
  --black: #000000;
  --slate: #484C5C;
  --cream: #FFFDF0;
  --sage: #AEBEB2;
  --ink: #000000;
  --muted: #5b5f66;
  --line: rgba(0,0,0,.85);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1500px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius-btn: 15px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--offwhite);
  color: var(--ink);
  font-family: var(--font-body);
  font-variation-settings: "wdth" 100;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .03em;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 125;
  font-weight: 300;
  letter-spacing: .03em;
  line-height: 1.23;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 1.92rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.59rem); }
.cap { text-transform: capitalize; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--tight { padding: clamp(36px, 5vw, 64px) 0; }

/* Section themes (match Squarespace data-section-theme) */
.t-white { background: var(--offwhite); color: var(--ink); }
.t-black { background: var(--black); color: var(--white); }
.t-slate { background: var(--slate); color: var(--cream); }
.t-sage  { background: var(--sage); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 96px; }
.logo img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  text-decoration: none; padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }
.nav a.btn { padding: 1em 2.4em; border: 1px solid var(--black); margin-left: 6px; }
.nav a.btn:hover { border-color: var(--black); background: #222; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 1.05rem/1 var(--font-body);
  letter-spacing: .02em;
  background: var(--black); color: var(--white);
  border: 1px solid var(--black);
  border-radius: var(--radius-btn);
  padding: 1.05em 2.6em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: #222; }
.btn--light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--light:hover { background: var(--offwhite); }
.btn--pill-outline {
  background: var(--black); color: var(--white);
  border: 2px solid var(--white); border-radius: 999px;
  padding: .45em 1.2em; width: 100%; font-size: 1.1rem;
}
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: #000; margin: 6px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 860px) {
  .site-header .wrap { height: 72px; }
  .logo img { height: 28px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 0 0; background: var(--white);
    flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 32px var(--gutter);
    font-size: 1.6rem;
    transform: translateX(100%); transition: transform .3s ease;
  }
  .nav .btn { font-size: 1.1rem; margin-top: 18px; }
  body.menu-open .nav { transform: none; }
  body.menu-open { overflow: hidden; }
  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Media slots ---------- */
.media { position: relative; overflow: hidden; background: #111; }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
.hero-media { height: min(86vh, 860px); min-height: 420px; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-4x5 { aspect-ratio: 4 / 5; }

/* ---------- Generic layouts ---------- */
.split { display: grid; grid-template-columns: var(--cols, 1fr 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split--1-2 { --cols: 1fr 1.6fr; }
.split--center { align-items: center; }
.row-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 56px); }
.row-head h2 { margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 28px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.lead { font-size: 1.05rem; }
.center { text-align: center; }

@media (max-width: 900px) {
  .split, .split--1-2 { grid-template-columns: 1fr; }
  .hero-media { height: 62vh; min-height: 320px; }
  .split > div[style*="text-align:right"] { text-align: left !important; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Home ---------- */
.intro h2 { max-width: 20ch; margin: 0; }
.band h3 { margin: 0; text-align: center; }
.card-white { background: var(--white); color: var(--ink); padding: clamp(28px, 4vw, 44px); }
.card-white h3 { max-width: 18ch; }

.steps .step { text-align: left; }
.step-num { text-align: center; font-family: var(--font-display); font-variation-settings: "wdth" 125; font-weight: 300; font-size: 3rem; line-height: 1; }
.step-num::after { content: ""; display: block; width: 85px; height: 1px; background: #000; margin: 26px auto 22px; }
.step-card { background: var(--white); padding: 20px; height: 100%; }
.step-card h4 { margin-top: 1.6em; }

.tiles a { display: block; text-decoration: none; color: inherit; }
.tile-label {
  text-align: center; padding: 26px 12px 36px;
  font-size: 1.15rem; letter-spacing: .18em;
}
.tiles .media { aspect-ratio: 1.8 / 1; }
.tiles a:hover img { transform: scale(1.03); }
.tiles img { transition: transform .5s ease; }

.feature-card { background: var(--offwhite); color: var(--ink); padding: 20px 20px 28px; }
.feature-card h4 { text-align: center; font-size: 1.25rem; margin: 26px 0 30px; }
.feature-card ul { list-style: none; margin: 0; padding: 0; }
.feature-card li { padding: 6px 0; font-size: .93rem; line-height: 1.5; }
.feature-card li::before { content: "|"; margin-right: .5em; }

.bar-list { list-style: none; padding: 0; margin: 1.6em 0 0; }
.bar-list li { padding: 10px 0; }
.bar-list li::before { content: "|"; margin-right: 1.2em; }
.bar-list a { text-underline-offset: 3px; }

/* ---------- Forms ---------- */
.form-split { display: grid; grid-template-columns: 1.6fr 1fr; min-height: 640px; }
.form-split .form-side { padding: clamp(56px, 7vw, 100px) var(--gutter); }
.form-split .form-side > * { max-width: 520px; }
.form-split .form-side h2 { max-width: 14ch; }
.form-split .media { min-height: 360px; }
.form-split .media img { position: absolute; inset: 0; filter: brightness(.82); }
@media (max-width: 900px) { .form-split { grid-template-columns: 1fr; } .form-split .media { min-height: 280px; } }

form .fieldset-label { display: block; margin: 0 0 6px; font-size: .95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .9rem; margin-bottom: 6px; }
.field label .req { opacity: .65; font-size: .85em; margin-left: .3em; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field textarea {
  width: 100%; font: inherit; font-size: 1rem;
  background: var(--offwhite); color: var(--ink);
  border: 1px solid #c9c9c9; border-radius: 0; padding: 12px 12px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--sage); outline-offset: 1px; }
.field .hint { font-size: .85rem; opacity: .75; margin: 0 0 10px; }
.check { display: flex; gap: 10px; align-items: center; margin: 8px 0; font-size: .95rem; }
.check input { width: 16px; height: 16px; accent-color: var(--sage); }
.form-submit { width: 100%; margin-top: 8px; }
.form-submit.btn--grey { background: #6b6b6b; border: 2px solid #fff; }
.form-submit.btn--grey:hover { background: #7d7d7d; }
.form-submit.btn--line {
  background: transparent; border: 0; border-bottom: 1px solid currentColor; border-radius: 0;
  color: inherit; font-size: 1.6rem; letter-spacing: .14em; padding: .6em 0;
}
.form-note { font-size: .85rem; margin-top: 14px; min-height: 1.4em; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- About ---------- */
.usecases { background: #f6f7f9; }
.usecases ul { padding-left: 1.2em; margin: 1.8em 0 0; }
.usecases li { margin: 0 0 .7em; line-height: 1.6; }
.usecases li::marker { content: "·  "; }
.solution-card .media { aspect-ratio: 2.5 / 1; }
.solution-card .btn--pill-outline { margin-top: 12px; }
.solution-card hr { border: 0; border-top: 1px solid #000; margin: 26px 0 0; }

.faq-images { position: relative; }
.faq-images .a { width: 82%; aspect-ratio: 0.82; }
.faq-images .b { position: absolute; width: 60%; left: 10%; bottom: -26%; aspect-ratio: 0.8; }
@media (max-width: 900px) { .faq-images { margin-bottom: 30%; } }

.accordion { border-top: 1px solid var(--line); margin-top: 2.2em; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0; font-size: .95rem; line-height: 1.4;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .ico { flex: 0 0 18px; height: 18px; position: relative; }
.accordion summary .ico::before, .accordion summary .ico::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor;
  transition: transform .25s;
}
.accordion summary .ico::after { transform: rotate(90deg); }
.accordion details[open] summary .ico::after { transform: rotate(0); }
.accordion .answer { padding: 0 0 30px; max-width: 46ch; font-size: .95rem; }

/* ---------- Inner pages ---------- */
.video-hero { position: relative; }
.video-hero .media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,0) 70%);
}
.video-hero__title { position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vw, 72px); color: #fff; }
.video-hero__title h1 { margin: 0; max-width: 16ch; text-shadow: 0 1px 24px rgba(0,0,0,.25); }
@media (max-width: 900px) { .page-intro .split > div:empty { display: none; } }

.page-hero .media { aspect-ratio: 16 / 7; }
.page-intro h1 { margin-bottom: .4em; }
.kicker { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: .7em; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 2.4em 0; }
.steps3 div { border-top: 1px solid #000; padding-top: 18px; }
.steps3 .n { display: block; font-size: .85rem; letter-spacing: .14em; opacity: .7; }
.steps3 h3 { margin: .2em 0 0; }
@media (max-width: 640px) { .steps3 { grid-template-columns: 1fr; } }

.zig { display: grid; gap: clamp(48px, 7vw, 96px); }
.zig-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.zig-row:nth-child(even) .zig-media { order: 2; }
.zig-media .media { aspect-ratio: 4 / 3; background: #eee; }
.zig-media .media img { object-fit: cover; }
.zig-row ul { list-style: none; padding: 0; margin: 1em 0 0; }
.zig-row li::before { content: "|"; margin-right: .6em; }
@media (max-width: 900px) { .zig-row { grid-template-columns: 1fr; } .zig-row:nth-child(even) .zig-media { order: 0; } }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.features h4 { font-size: 1.15rem; margin: 0 0 .5em; }
.features div { border-top: 1px solid #000; padding-top: 16px; }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

/* Client case studies */
/* Social-format clips keep their own shape and rounded corners */
.media.clip-portrait { aspect-ratio: 1096 / 1536; border-radius: 7.85% / 5.6%; background: transparent; max-width: 460px; margin-top: clamp(24px, 4vw, 48px); }
.media.clip-square { aspect-ratio: 1204 / 1208; border-radius: 7.14% / 7.12%; background: transparent; max-width: 560px; }

.partners-band h2 { margin: 0; text-align: center; }
.client-logo { max-width: 220px; max-height: 110px; width: auto; height: auto; margin-bottom: 26px; }
.case dt { font-family: var(--font-display); font-variation-settings: "wdth" 125; font-weight: 300; font-size: 1.4rem; margin: 1.6em 0 .4em; }
.case dd { margin: 0; }

/* Legal */
.legal { max-width: 860px; }
.legal h1 { margin-bottom: .3em; }
.legal h2 { font-size: 1.25rem; font-variation-settings: "wdth" 110; font-weight: 500; letter-spacing: .04em; margin: 2.4em 0 .8em; }
.legal h3 { font-size: 1.05rem; font-variation-settings: "wdth" 100; font-weight: 600; margin: 1.8em 0 .6em; letter-spacing: .02em; }
.legal p, .legal li { font-size: .95rem; }
.legal .meta { opacity: .7; }
.legal .toc { columns: 2; column-gap: 40px; padding-left: 1.2em; }
.legal .toc a { text-decoration: none; }
.legal .toc a:hover { text-decoration: underline; }
.legal .shout { text-transform: none; }
.legal-nav { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 2.4em; font-size: .95rem; }
@media (max-width: 640px) { .legal .toc { columns: 1; } }

/* ---------- Footer ---------- */
.footer-links h2 { max-width: 6ch; }
.footer-links .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 2em; }
.footer-links h5 { font: 400 1.3rem/1.3 var(--font-display); font-variation-settings: "wdth" 115; margin: 0 0 18px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding: 6px 0; font-size: .95rem; }
.footer-links li::before { content: "|"; margin-right: 1.1em; }
.footer-links a { text-underline-offset: 3px; }
.footer-planet { width: 100%; max-width: 380px; margin-left: auto; mix-blend-mode: multiply; }
@media (max-width: 760px) { .footer-links .cols { grid-template-columns: 1fr 1fr; } }

.site-footer .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.site-footer .logo-white { width: min(420px, 70vw); }
.socials { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; max-width: 140px; }
.socials a { display: inline-flex; width: 22px; height: 22px; color: #fff; }
.socials svg { width: 100%; height: 100%; fill: currentColor; }
.site-footer .info { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 24px; margin-top: clamp(48px, 8vw, 110px); align-items: end; }
.site-footer h5 { font: 400 1.3rem/1.3 var(--font-display); font-variation-settings: "wdth" 115; margin: 0 0 16px; }
.site-footer address { font-style: normal; }
.site-footer .copy { text-align: right; font-size: .9rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .site-footer .info { grid-template-columns: 1fr 1fr; }
  .site-footer .copy { grid-column: 1 / -1; text-align: left; }
}

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

.skip { position: absolute; left: -9999px; top: 0; background: #000; color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }

.split > *, .grid-3 > *, .zig-row > * { min-width: 0; }
