/* Sams Innovation — site styles.
   System fonts only: zero external requests, because "faster than WordPress"
   has to be true on our own site first. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

:root {
  --ink:      #0e1420;
  --ink-2:    #4a5563;
  --ink-3:    #6b7684;
  --line:     #e2e7ee;
  --line-2:   #eef1f6;
  --bg:       #ffffff;
  --bg-2:     #f6f8fb;
  --bg-3:     #eef2f8;
  --accent:   #1746e8;
  --accent-2: #0f34b0;
  --accent-bg:#eef2ff;
  --good:     #0a7d3f;
  --good-bg:  #e9f6ee;

  --wrap: 1120px;
  --r:    14px;
  --r-sm: 9px;

  --shadow:    0 1px 2px rgba(14,20,32,.05), 0 8px 24px rgba(14,20,32,.06);
  --shadow-lg: 0 2px 4px rgba(14,20,32,.06), 0 18px 48px rgba(14,20,32,.12);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* Sticky header would otherwise cover anchored sections. */
:target, [id] { scroll-margin-top: 88px; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.021em; font-weight: 680; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.026em; }
h3 { font-size: 1.14rem; }

p { text-wrap: pretty; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-2); }

img, svg { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.muted { color: var(--ink-3); }
.plain { list-style: none; padding: 0; }
.center { text-align: center; }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 100; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px; flex: none;
  background: linear-gradient(135deg, var(--accent), #6f8bff);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.55);
}
.brand-text { letter-spacing: -.02em; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
/* The :not(.btn) is load-bearing. `.site-nav a` has higher specificity than
   `.btn`, so without it the CTA button inherits the muted link colour (dark
   text on the blue fill), a 9px radius instead of the pill, and wrong padding. */
.site-nav a:not(.btn) {
  color: var(--ink-2); text-decoration: none; font-size: .955rem; font-weight: 550;
  padding: 8px 12px; border-radius: var(--r-sm);
}
.site-nav a:not(.btn):hover { color: var(--ink); background: var(--bg-2); }
.site-nav a:not(.btn).is-active { color: var(--ink); font-weight: 650; }

.navtoggle { display: none; }
.burger { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  padding: 12px 20px; border-radius: 999px; font: inherit; font-weight: 600;
  font-size: .97rem; text-decoration: none; cursor: pointer;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: none; }
.btn-sm { padding: 8px 15px; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-2); color: var(--ink); border-color: var(--ink-3); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 66ch; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}

/* ---------- Hero ---------- */

.hero { padding: clamp(52px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent-bg);
  color: var(--accent-2); border: 1px solid #dbe3ff; padding: 6px 14px;
  border-radius: 999px; font-size: .86rem; font-weight: 600; margin-bottom: 22px;
}
.hero h1 { max-width: 17ch; }
.hero .lede { margin-top: 20px; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero .btn-row { margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--ink-3); }

/* ---------- Principles bar ---------- */

.principles {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; margin-top: 12px;
}
.principle { background: var(--bg); padding: 24px 20px; }
.principle b { display: block; font-size: 1.85rem; letter-spacing: -.03em; line-height: 1.1; }
.principle span { display: block; font-weight: 600; font-size: .95rem; margin-top: 2px; }
.principle small { display: block; color: var(--ink-3); font-size: .85rem; margin-top: 6px; }


/* ---------- Media bands & split sections ---------- */

.hero-media {
  position: relative; overflow: hidden; color: #fff;
  padding: clamp(72px, 10vw, 144px) 0 clamp(56px, 7vw, 96px);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,14,24,.68) 0%, rgba(9,14,24,.88) 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-media h1 { color: #fff; }
.hero-media .lede { color: #d8dfe9; }
.hero-media .hero-note { color: #aab4c2; }
.hero-media .hero-badge {
  background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28);
}
.hero-media .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero-media .btn-ghost:hover { background: rgba(255,255,255,.13); color: #fff; border-color: rgba(255,255,255,.6); }

.media-split { gap: 48px; align-items: center; }
.media-figure {
  margin: 0; border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow); background: var(--bg-2);
}
.media-figure img { width: 100%; height: auto; display: block; }
.media-sticky { position: sticky; top: 96px; }

.cta-media {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding: clamp(60px, 8vw, 108px) 0;
}
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: rgba(9,14,24,.80); }
.cta-inner { position: relative; z-index: 1; }
.cta-media h2 { color: #fff; }
.cta-media p { color: #c6cfdb; max-width: 56ch; margin: 14px auto 0; }
.cta-media .btn-row { justify-content: center; margin-top: 28px; }
.cta-media .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.cta-media .btn-ghost:hover { background: rgba(255,255,255,.13); color: #fff; border-color: rgba(255,255,255,.6); }

/* ---------- Our terms ---------- */

.terms {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; margin: 0;
}
.term { background: var(--bg); padding: 22px 24px; }
.term dt { font-weight: 680; margin-bottom: 6px; }
.term dd { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- Cases ---------- */

.case-grid { gap: 20px; }
.case {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
}
.case-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.case-shot { display: block; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.case-shot img {
  width: 100%; height: auto; display: block;
  transition: transform .4s ease;
}
.case:hover .case-shot img { transform: scale(1.02); }
.case-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.case h2 { font-size: 1.35rem; }
.case-relation {
  font-size: .76rem; font-weight: 600; letter-spacing: .02em;
  background: var(--bg-3); color: var(--ink-3);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.case-sector {
  color: var(--accent); font-size: .84rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; margin-top: 8px;
}
.case-blurb { color: var(--ink-2); font-size: .96rem; margin-top: 12px; }
.case-work {
  color: var(--ink-2); font-size: .95rem; margin-top: 12px;
  border-top: 1px solid var(--line-2); padding-top: 12px;
}
.case-link {
  margin-top: 18px; align-self: flex-start; font-weight: 600; font-size: .95rem;
  text-decoration: none; word-break: break-all;
}
.case-link:hover { text-decoration: underline; }

/* ---------- Team ---------- */

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 22px; text-align: center;
}
.member-photo {
  width: 128px; height: 128px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 16px; display: block;
}
.member-initials {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), #6f8bff);
  color: #fff; font-size: 2.05rem; font-weight: 650; letter-spacing: .01em;
}
.member h3 { font-size: 1.06rem; }
.member-role { color: var(--ink-3); font-size: .93rem; margin-top: 4px; }
.member-contact {
  list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 5px; font-size: .91rem;
}
.member-contact a { text-decoration: none; }
.member-contact a:hover { text-decoration: underline; }

/* ---------- Pricing ---------- */

.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
.price-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 22px; display: flex; flex-direction: column; height: 100%;
}
.price-card h3 { font-size: 1.22rem; }
.price-card .pitch { color: var(--ink-2); font-size: .94rem; margin-top: 8px; min-height: 3em; }
.price-amount { margin: 20px 0 4px; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.price-amount b { font-size: 2.1rem; letter-spacing: -.035em; line-height: 1; }
.price-amount b.is-range { font-size: 1.5rem; letter-spacing: -.02em; }
.price-amount span { color: var(--ink-3); font-size: .9rem; font-weight: 550; }
.price-amount .price-prefix { font-size: 1.05rem; font-weight: 600; color: var(--ink-2); }
.price-setup {
  margin-top: 12px; padding: 11px 14px; border-radius: var(--r-sm);
  background: var(--accent-bg); border: 1px solid #dbe3ff;
}
.price-setup-sum { display: block; color: var(--accent-2); font-weight: 700; font-size: 1.02rem; }
.price-setup-note { display: block; color: var(--accent-2); opacity: .8; font-size: .84rem; margin-top: 2px; }
.price-note { font-size: .85rem; color: var(--ink-3); border-top: 1px solid var(--line-2); margin-top: 14px; padding-top: 14px; }
.price-card ul { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 9px; }
.price-card li { position: relative; padding-left: 25px; font-size: .93rem; color: var(--ink-2); }
.price-card li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--good); font-weight: 700;
}
.price-card .btn { margin-top: auto; width: 100%; }

.price-disclaimer {
  margin-top: 26px; padding: 16px 20px; background: var(--accent-bg);
  border: 1px solid #dbe3ff; border-radius: var(--r-sm);
  font-size: .92rem; color: var(--accent-2);
}

/* ---------- Cards / services ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: .96rem; }
.card-link { display: inline-block; margin-top: 14px; font-size: .93rem; font-weight: 600; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* ---------- Process ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { border-top: 3px solid var(--accent); padding-top: 18px; }
.step b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent-bg);
  color: var(--accent-2); font-size: .9rem; margin-bottom: 12px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: .94rem; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 4px 20px;
}
.faq details[open] { border-color: var(--ink-3); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font-weight: 620;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--ink-3); font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq p { padding: 0 0 18px; color: var(--ink-2); font-size: .96rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink); color: #fff; border-radius: var(--r);
  padding: clamp(36px, 5vw, 56px); text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #b8c1cf; margin: 14px auto 0; max-width: 56ch; }
.cta-band .btn-row { justify-content: center; margin-top: 28px; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.32); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.6); }

/* ---------- Forms ---------- */

.form { display: grid; gap: 18px; max-width: 620px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: .94rem; }
.field .hint { font-size: .85rem; color: var(--ink-3); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent); outline: 2px solid var(--accent-bg); outline-offset: 0;
}
.field textarea { min-height: 150px; resize: vertical; }
.field .err { color: #b4232a; font-size: .87rem; }
.field.has-err input, .field.has-err textarea { border-color: #b4232a; }
.hp { position: absolute; left: -9999px; }

.alert {
  padding: 14px 18px; border-radius: var(--r-sm); font-size: .95rem;
  background: #fdecec; border: 1px solid #f4c4c4; color: #8f1f25;
}

/* ---------- Empty state ---------- */

.empty {
  border: 1px dashed var(--line); border-radius: var(--r); padding: 44px 30px;
  text-align: center; background: var(--bg-2);
}
.empty h3 { margin-bottom: 10px; }
.empty p { color: var(--ink-2); max-width: 56ch; margin-inline: auto; }

/* ---------- Prose ---------- */

.prose { max-width: 68ch; }
.prose h2 { margin-top: 44px; margin-bottom: 14px; }
.prose h3 { margin-top: 30px; margin-bottom: 8px; }
.prose p { margin-bottom: 16px; color: var(--ink-2); }
.prose ul { margin: 0 0 18px; padding-left: 22px; color: var(--ink-2); }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; margin: 24px 0;
  font-size: 1.1rem; color: var(--ink); font-weight: 550;
}

/* ---------- Footer ---------- */

.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.footer-brand .brand-text { font-weight: 700; font-size: 1.05rem; }
.footer-brand p { margin-top: 10px; font-size: .93rem; max-width: 38ch; }
.site-footer h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 12px; }
.site-footer .plain li { margin-bottom: 8px; font-size: .94rem; }
.site-footer .plain a { color: var(--ink-2); text-decoration: none; }
.site-footer .plain a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; font-size: .88rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  .team    { grid-template-columns: repeat(2, 1fr); }
  .terms   { grid-template-columns: 1fr; }
  .media-split { gap: 32px; }
  .media-sticky { position: static; }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .steps   { grid-template-columns: repeat(2, 1fr); }
  .grid-3  { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .navtoggle {
    display: block; position: absolute; opacity: 0;
    width: 42px; height: 42px; right: 22px; top: 13px; margin: 0;
    z-index: 2; cursor: pointer;
  }
  .navtoggle:focus-visible + .burger { outline: 2px solid var(--accent); outline-offset: 2px; }

  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; width: 42px; height: 42px; padding: 10px; cursor: pointer;
    border: 1px solid var(--line); border-radius: var(--r-sm);
  }
  .burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px 22px 20px; box-shadow: var(--shadow);
  }
  .navtoggle:checked ~ .site-nav { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 10px; font-size: 1rem; }
  .site-nav .btn { margin-top: 10px; justify-content: center; }
  .header-inner { position: relative; }

  .grid-3, .grid-2, .pricing, .steps, .team { grid-template-columns: 1fr; }
  .media-split-rev .media-figure { order: 2; }
  .price-card .pitch { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 460px) {
  .principles { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .btn-row, .cta-band { display: none; }
}
