/* ==========================================================
   Pixleration site styles
   Colors and fonts are set once here. Change a value below and
   it updates everywhere on the site.
   ========================================================== */
:root {
  /* Brand colors, from the Pixleration logo */
  --brand-grey: #606060;   /* logo lettering; dark sections (video, contact) */
  --brand-teal: #20b2aa;   /* logo arrow; highlights and accents */

  --ink: #333333;          /* main text */
  --muted: #666666;        /* secondary text */
  --bg: #ffffff;           /* page background */
  --surface: #f4f6f6;      /* light panels */
  --line: #e2e5e5;         /* borders */
  --accent: var(--brand-teal);
  --accent-dark: #17847e;  /* teal dark enough for white text and links */
  --accent-soft: #e4f6f5;
  --night: var(--brand-grey);
  --night-deep: #4d4d4d;   /* footer */
  --radius: 14px;
  --wrap: 1120px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); line-height: 1.55; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 600; color: var(--accent-dark); margin: 0 0 10px; }
.section-title { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 28px; }

.button {
  display: inline-block; background: var(--accent-dark); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; padding: 13px 22px; border-radius: 999px; transition: background .15s;
}
.button:hover { background: #126c67; }
.button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid #8fdcd7; outline-offset: 2px; }
.button-light { background: #fff; color: var(--night); }
.button-light:hover { background: var(--accent-soft); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { color: var(--brand-grey); text-decoration: none; display: flex; align-items: center; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--brand-grey); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--accent-dark); }
.nav .nav-cta { color: #fff; background: var(--accent-dark); border: 0; padding: 7px 14px; border-radius: 999px; }
.nav .nav-cta:hover { color: #fff; background: #126c67; }
@media (max-width: 480px) { .nav { gap: 12px; } .nav a { font-size: 14px; } .brand img { height: 20px; } }

/* ---------- Hero / video ---------- */
.hero { background: var(--night); color: #fff; padding: 36px 0 44px; }
.hero .eyebrow { color: #a8ebe7; font-size: clamp(20px, 2.6vw, 28px); letter-spacing: .08em; font-weight: 700; margin-bottom: 6px; }
.hero h1 { font-size: clamp(17px, 2.1vw, 24px); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 22px; color: #f2f2f2; }
@media (min-width: 720px) { .hero h1 { white-space: nowrap; } }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px;
  background: radial-gradient(circle at 30% 20%, rgba(32,178,170,.42), transparent 55%), linear-gradient(135deg, #575757, #3f3f3f);
}
.video-placeholder-title { font-size: clamp(20px, 3vw, 28px); font-weight: 700; margin: 18px 0 4px; }
.video-placeholder-sub { color: #e2e2e2; margin: 0; }
.play { flex: none; width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.6); position: relative; }
.play::after { content: ""; position: absolute; left: 30px; top: 22px; border-left: 24px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.video[data-has-video] .video-placeholder { display: none; }
.scroll-cue { display: inline-block; margin-top: 22px; color: #bff0ec; text-decoration: none; font-weight: 500; }
.scroll-cue:hover { color: #fff; }

/* ---------- Session highlight ---------- */
.session { background: var(--accent-soft); border-bottom: 1px solid #cdeeeb; padding: 44px 0; }
.session-inner { display: flex; gap: 28px; align-items: flex-start; }
.session-date { flex: none; width: 104px; text-align: center; background: #fff; border-radius: var(--radius); border: 1px solid #cdeeeb; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.session-month { display: block; background: var(--accent-dark); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 14px; padding: 6px 0; }
.session-day { display: block; font-size: 44px; font-weight: 800; line-height: 1.1; padding-top: 6px; color: var(--brand-grey); }
.session-year { display: block; font-size: 14px; color: var(--muted); padding-bottom: 10px; }
.session-logo { width: 150px; height: auto; margin: 0 0 14px; }
.session-speakers { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 4px; font-size: 15px; color: var(--muted); }
.session-speakers strong { color: var(--ink); font-weight: 600; }
.session-title { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 8px; }
.session-meta { margin: 0 0 12px; color: var(--muted); font-weight: 500; }
.session-desc { margin: 0 0 22px; max-width: 760px; }
.session-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.session-link { font-weight: 600; }
@media (max-width: 600px) { .session-inner { flex-direction: column; gap: 18px; } .session-date { width: 88px; } .session-day { font-size: 36px; } }

/* ---------- Products ---------- */
.products { padding: 72px 0 80px; }
.product { border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 44px); background: #fff; }
.product + .product { margin-top: 24px; }
.product-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.product-logo { width: 56px; height: 56px; border-radius: 14px; border: 1px solid var(--line); background: #fff; flex: none; }
.product-name { font-size: clamp(24px, 3vw, 30px); margin: 0; letter-spacing: -.02em; }
.product-tagline { margin: 2px 0 0; color: var(--muted); }
.product-lede { font-size: 18px; max-width: 820px; margin: 0 0 30px; }

.steps { list-style: none; padding: 0; margin: 0 0 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { display: flex; gap: 14px; background: var(--surface); border-radius: var(--radius); padding: 18px; }
.steps h4 { margin: 2px 0 4px; font-size: 17px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.step-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0 0 32px; }
.shot { margin: 0; }
.shot img { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, .08); width: 100%; height: auto; aspect-ratio: 400 / 780; object-fit: cover; object-position: top; background: #fff; }
.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
@media (max-width: 900px) {
  .shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .shot { scroll-snap-align: start; }
}

.facts { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.facts li { border-top: 3px solid var(--accent); padding-top: 12px; }
.facts strong { display: block; font-size: 32px; letter-spacing: -.02em; line-height: 1.1; }
.facts span { color: var(--muted); font-size: 15px; }
@media (max-width: 700px) { .facts { grid-template-columns: repeat(2, 1fr); } }

.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.note { color: var(--muted); font-size: 15px; }
.product-soon { background: var(--surface); border-style: dashed; }
.product-soon .product-name { font-size: 22px; }
.product-soon p { margin: 6px 0 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { background: var(--night); color: #fff; padding: 56px 0; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.contact .section-title { margin-bottom: 8px; }
.contact p { margin: 0; color: #ececec; max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night-deep); color: #d6d6d6; font-size: 15px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px; padding-top: 20px; padding-bottom: 20px; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: #ffffff; text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* ---------- Contact dialog ---------- */
.dialog { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); box-shadow: 0 30px 80px rgba(0,0,0,.35); color: var(--ink); }
.dialog::backdrop { background: rgba(40, 40, 40, .6); }
.dialog-body { padding: 26px clamp(20px, 5vw, 34px) 28px; }
.dialog h2 { outline: none; margin: 0 0 6px; font-size: 26px; letter-spacing: -.02em; }
.dialog-intro { margin: 0 0 20px; color: var(--muted); }
.dialog-close { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border: 0; background: transparent; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 50%; }
.dialog-close:hover { background: var(--surface); }
.form { display: grid; gap: 12px; }
.label-text { display: block; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form textarea { font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid #cfd3d3; border-radius: 10px; width: 100%; background: #fff; color: var(--ink); }
.form textarea { resize: vertical; }
.form .button { justify-self: start; margin-top: 4px; }
.form .button[disabled] { opacity: .6; cursor: wait; }
.req { color: #c2412b; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #b3361f; margin: 0; font-size: 15px; }

/* ---------- Thank-you page (no-JavaScript fallback) ---------- */
.thanks { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 16px; }
.thanks h1 { font-size: 36px; margin: 0 0 8px; }
.thanks p { color: var(--muted); margin: 0 0 24px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
