/* Schell Innovation Ventures — site styles
   Layout: white header, photo-led hero, content in a 1120px column, charcoal footer.
   Brand: Century Gothic headings, Corbel body; charcoal text, copper as the single key accent,
   green for structure (rules, labels), neutral grey-blue for alternate bands. */

:root {
  --charcoal: #222831;
  --copper: #C36A39;
  --copper-dark: #A9552A;   /* copper text/buttons on light backgrounds (meets contrast) */
  --copper-light: #E9A37A;  /* copper text on dark backgrounds */
  --green: #4A7C59;
  --neutral: #F4F6F8;
  --white: #FFFFFF;
  --muted: #59606B;
  --rule: #DCE1E6;

  --font-head: "Century Gothic", "Didact Gothic", "Futura", "Avenir Next", sans-serif;
  --font-body: Corbel, "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.1875rem;   /* 19px: Corbel runs small */
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper-dark); text-underline-offset: 3px; }
a:hover { color: var(--charcoal); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0; max-width: 66ch; }

.wrap {
  max-width: calc(var(--wrap) + 40px);
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}
.lede { font-size: 1.3rem; line-height: 1.55; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 1.1rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--charcoal); color: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  padding: 0.85em 1.4em; border-radius: 2px;
  background: var(--copper-dark); color: var(--white);
  border: 2px solid var(--copper-dark);
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: var(--white); color: var(--charcoal); border-color: var(--white); }
.btn--on-dark { background: var(--copper); border-color: var(--copper); }
.btn--on-dark:hover { background: var(--white); color: var(--charcoal); border-color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 1rem;
}
.brand img { width: clamp(200px, 26vw, 300px); height: auto; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  font-family: var(--font-head); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--charcoal); text-decoration: none;
  padding-block: 0.35rem; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { border-bottom-color: var(--copper); }
.nav .btn { padding: 0.6em 1.1em; border-bottom: 2px solid var(--copper-dark); color: var(--white); }
.nav .btn:hover { border-bottom-color: var(--charcoal); }
.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 860px) {
  .nav-toggle-label {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; cursor: pointer; padding: 10px;
  }
  .nav-toggle-label span { display: block; height: 2px; background: var(--charcoal); }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--gutter-r) 1.25rem var(--gutter-l);
  }
  .nav a { padding-block: 0.8rem; width: 100%; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"] { color: var(--copper-dark); border-bottom-color: var(--rule); }
  .nav .btn { margin-top: 1rem; width: auto; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid var(--copper); }
}

/* ---------- Hero (home) ----------
   Text sits on charcoal at left; the photo fills the right side so the tower stays visible. */
.hero {
  position: relative; color: var(--white);
  background: var(--charcoal);
  isolation: isolate; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0 0 0 36%; z-index: -2;
  background: url("../img/hero-lancaster-sunset.jpg") 18% 62% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--charcoal) 0%, var(--charcoal) 36%, rgba(34,40,49,.55) 46%, rgba(34,40,49,0) 62%);
}
.hero .wrap { padding-block: clamp(4rem, 10vw, 8rem); }
.hero-inner { max-width: 560px; display: flex; flex-direction: column; gap: 1.4rem; }
.hero .eyebrow { color: var(--copper-light); }
.hero p { font-size: 1.25rem; color: #E7EAEE; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; padding-top: 0.4rem; }
@media (max-width: 860px) {
  .hero::after { inset: 0; background-position: 22% 62%; }
  .hero::before { background: linear-gradient(180deg, rgba(34,40,49,.78) 0%, rgba(34,40,49,.9) 100%); }
}

/* ---------- Page banner (inner pages) ---------- */
.banner {
  position: relative; color: var(--white);
  background: var(--charcoal) center / cover no-repeat;
  isolation: isolate;
}
.banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(25,29,36,.9) 0%, rgba(25,29,36,.55) 60%, rgba(25,29,36,.25) 100%);
}
.banner .wrap { padding-block: clamp(3rem, 8vw, 5.5rem); display: flex; flex-direction: column; gap: 0.9rem; }
.banner .eyebrow { color: var(--copper-light); }
.banner p { color: #E7EAEE; font-size: 1.2rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section--alt { background: var(--neutral); }
.section-head { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2.25rem; }

/* Stat strip: figures from the copy */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.stat { padding: 1.5rem 1.25rem 1.4rem; border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 0.35rem; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font-family: var(--font-head); font-weight: 400; font-size: 2.1rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 1rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 800px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* Service rows: title left, description right */
.rows { border-top: 2px solid var(--charcoal); }
.row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem 2.5rem;
  padding-block: 1.4rem; border-bottom: 1px solid var(--rule);
}
.row h3 { font-size: 1.2rem; }
@media (max-width: 700px) { .row { grid-template-columns: 1fr; gap: 0.4rem; } }

/* Two-column split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--top { align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

figure { margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
figcaption { font-size: 0.95rem; color: var(--muted); line-height: 1.4; }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Proof strip */
.proof { display: flex; flex-direction: column; gap: 0.9rem; padding-top: 2.5rem; }
.proof ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 0; }
.proof li {
  font-family: var(--font-head); font-size: 1rem; letter-spacing: 0.02em;
  padding-right: 1.1rem; margin-right: 1.1rem; border-right: 1px solid var(--rule);
}
.proof li:last-child { border-right: 0; }

/* Testimonial */
.quote { margin: 0; display: flex; flex-direction: column; gap: 1rem; max-width: 760px; }
.quote p { font-family: var(--font-head); font-size: 1.45rem; line-height: 1.45; }
.quote cite { font-style: normal; color: var(--muted); }
.placeholder {
  border: 2px dashed var(--copper); background: #FFF8F3; padding: 1.5rem 1.75rem;
  display: flex; flex-direction: column; gap: 0.5rem; max-width: 760px;
}
.placeholder .tag {
  font-family: var(--font-head); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--copper-dark);
}

/* CTA band */
.cta { background: var(--charcoal); color: var(--white); }
.cta .wrap { padding-block: clamp(3rem, 6vw, 4.5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta h2 { color: var(--white); }
.cta p { color: #C9CED6; margin-top: 0.5rem; }
.cta .email { font-family: var(--font-head); color: var(--copper-light); font-size: 1.05rem; user-select: all; }

/* Services detail */
.service { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0 1.5rem; padding-block: 2.25rem; border-top: 1px solid var(--rule); }
.service:first-child { border-top: 2px solid var(--charcoal); }
.service .num { font-family: var(--font-head); font-size: 2.4rem; line-height: 1; color: var(--copper); }
.service h3 { margin-bottom: 0.7rem; }
@media (max-width: 600px) { .service { grid-template-columns: 1fr; gap: 0.5rem; } }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.ticks li { padding: 0.8rem 0 0.8rem 1.6rem; border-bottom: 1px solid var(--rule); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: 0.7rem; height: 2px; background: var(--green); }
@media (max-width: 700px) { .ticks { grid-template-columns: 1fr; } }

/* Work case studies */
.case { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(2.5rem, 5vw, 3.75rem); border-top: 1px solid var(--rule); align-items: start; }
.case:first-of-type { border-top: 0; }
.case > * { min-width: 0; }
.case--text { grid-template-columns: minmax(0, 1fr); }
.case h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
.case-body { display: flex; flex-direction: column; gap: 1.1rem; }
.facts { margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.facts dt { font-family: var(--font-head); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.facts dd { margin: 0.2rem 0 0; max-width: 66ch; }
.spec { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.spec span { font-family: var(--font-head); font-size: 0.9rem; border: 1px solid var(--rule); padding: 0.3rem 0.7rem; background: var(--white); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }

.earlier { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.earlier article { display: flex; flex-direction: column; gap: 0.8rem; }
.earlier img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 900px) { .earlier { grid-template-columns: 1fr; max-width: 560px; } }

/* About */
.about-intro { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about-intro > * { min-width: 0; }
.headshot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
@media (max-width: 800px) { .about-intro { grid-template-columns: 1fr; } .headshot { max-width: 360px; } }
.media-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--charcoal); }
.media-list li { padding-block: 1rem; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 0.15rem; }
.media-list a { font-family: var(--font-head); font-size: 1.1rem; text-decoration: none; color: var(--charcoal); }
.media-list a:hover { color: var(--copper-dark); text-decoration: underline; }
.media-list span { color: var(--muted); font-size: 1rem; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
@media (max-width: 700px) { .pair { grid-template-columns: 1fr; } }

/* Contact */
.contact-card { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-lines { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem 1.5rem; padding-block: 1.25rem; border-top: 2px solid var(--charcoal); border-bottom: 1px solid var(--rule); }
.contact-lines dt { font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); padding-top: 0.3rem; }
.contact-lines dd { margin: 0; overflow-wrap: anywhere; }
.contact-lines .big { font-family: var(--font-head); font-size: 1.3rem; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 0.5rem; padding-top: 1.5rem; border-top: 2px solid var(--charcoal); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field label { font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.field .optional { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  font: inherit; font-size: 1.05rem; color: var(--charcoal); background: var(--white);
  border: 1px solid #B9C0C9; border-radius: 2px; padding: 0.65rem 0.75rem; width: 100%;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--copper); outline-offset: 0; border-color: var(--copper); }
.hp { position: absolute; left: -9999px; }
.contact-form .btn { cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: #1A1F26; color: #B9C0C9; font-size: 1rem; }
.site-footer .wrap { padding-block: 3rem 2.25rem; display: flex; flex-direction: column; gap: 2rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; }
.footer-top img { width: min(420px, 100%); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--copper-light); text-decoration: underline; }
.footer-bottom { border-top: 1px solid #333A44; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: 0.9rem; }
