/* Refined editorial treatment for Credence Collaborations. */
:root { --ink:#171b19; --ink-soft:#202520; --panel:#202520; --gold:#b9a47b; --gold-bright:#e1cfab; --gold-dark:#a18b62; --white:#f4f1e9; --muted:#b5b8ae; --line:rgba(185,164,123,.25); }
body { background:var(--ink); font-weight:400; }
body::before { opacity:.1; }
:focus-visible { outline:2px solid var(--gold-bright); outline-offset:6px; }
section[id] { scroll-margin-top:85px; }
.skip-link { position:fixed; left:20px; top:-80px; z-index:50; padding:15px 22px; color:var(--ink); background:var(--white); }
.skip-link:focus { top:15px; }
.site-nav { padding:25px 5vw; background:rgba(23,27,25,.94); border-color:var(--line); }
.site-nav.scrolled { background:rgba(23,27,25,.96); }
.brand-copy strong { font-size:23px; letter-spacing:.12em; }
.brand-copy small { font-size:8px; letter-spacing:.39em; }
.nav-links a { font-size:10px; letter-spacing:.12em; color:#d6d7cf; }
.nav-links .nav-cta { background:transparent; color:var(--white); border:1px solid var(--line); padding:14px 20px; }
.nav-links .nav-cta:hover { background:var(--gold); color:var(--ink); }
.hero { min-height:850px; min-height: min(920px, 100svh); display:grid; grid-template-columns:1fr; justify-items:center; gap:0; padding:175px 5vw 160px; background:#f0ede4; color:#151411; --line:rgba(21,20,17,.16); align-items:center; }
.hero::before,.hero::after { display:none; }
.hero-copy { max-width:1120px; margin-inline:auto; text-align:center; }
.hero .eyebrow { color:#796844; justify-content:center; font-size:9px; letter-spacing:.2em; margin-bottom:36px; }
.hero .eyebrow::before { display:none; }
.hero h1 { font-size:clamp(56px,6.6vw,100px); line-height:1.12; letter-spacing:-.045em; font-weight:400; max-width:1120px; margin:0 auto 30px; text-shadow:none; }
h1 em,.process h2 em { color:#89754f; font-weight:400; }
.hero-lead { max-width:635px; margin:0 auto 36px; font-size:16px; line-height:1.85; color:#62675d; }
.hero-actions { justify-content:center; gap:28px; }
.hero .button,.hero .text-link { border-radius:2px; box-shadow:none; font-family:var(--sans); font-size:11px; letter-spacing:.015em; padding:0 22px; }
.hero .button { color:#f0ede4; background:#343b30; border-color:#343b30; }
.hero .button:hover { color:#f0ede4; background:#4c5545; border-color:#4c5545; }
.hero .text-link { color:#343b30; padding-inline:0; background:none; border:0; border-bottom:1px solid var(--line); }
.hero .text-link:hover { color:#796844; border-color:#796844; background:transparent; }
.hero :focus-visible { outline-color:#796844; }
.hero .text-link span { margin-left:15px; }
.hero-bottom { position:absolute; left:5vw; right:5vw; bottom:30px; display:flex; flex-direction:column; align-items:center; text-align:center; gap:15px; padding-top:22px; border-top:1px solid var(--line); color:#666b60; font-size:10px; letter-spacing:.05em; }
.hero-bottom a { text-decoration:none; color:#343b30; }
.hero-bottom a span { margin-left:22px; }
.section { padding:115px 7vw; }
.section-heading h2 { font-size:clamp(42px,4.7vw,68px); line-height:1.08; }
.systems { background:#202520; }
.systems::before { opacity:.06; }
.systems::after { display:none; }
.systems-grid { gap:8vw; }
.system-row { padding:27px 0; }
.system-row p { font-size:13px; }
.systems-note { font-size:9px; text-transform:none; letter-spacing:.02em; color:#b9bdaf; }
.systems-note::before { box-shadow:none; }
.architecture { background:var(--ink); }
.architecture-header { max-width:760px; }
.architecture-header h2 { font-size:clamp(44px,5vw,72px); font-weight:400; }
.ecosystem-canvas { border-color:var(--line); border-radius:4px; box-shadow:none; }
.ecosystem-module__button { letter-spacing:.08em; font-size:9px; }
.process { padding-top:110px; padding-bottom:60px; background:#f0ede4; }
.process-intro { display:grid; grid-template-columns:1.4fr 1fr; align-items:end; gap:8vw; max-width:1280px; margin:auto; }
.process h2 { margin-bottom:0; font-size:clamp(42px,5vw,74px); }
.process h2 em { color:#89754f; }
.process-summary { color:#65695e; font-size:14px; line-height:1.85; max-width:340px; margin:0 0 5px; }
.process .eyebrow { color:#796844; letter-spacing:.2em; }
.process-grid { margin-top:65px; }
.process-step { grid-template-columns:70px 1fr 1.05fr; gap:35px; padding:37px 0; align-items:start; }
.process-step .num { color:#8a7958; font-size:23px; line-height:1.5; }
.process-step h3 { font-size:clamp(24px,2.5vw,34px); line-height:1.2; letter-spacing:-.035em; }
.process-step p { font-size:14px; color:#62675d; }
.process-outro { display:flex; justify-content:space-between; gap:25px; max-width:1280px; margin:40px auto 0; font-size:11px; color:#666b60; }
.process-outro a { color:#343b30; text-underline-offset:6px; }
.process-outro a span { margin-left:18px; }
.cta { background:#202520; min-height:620px; }
.cta::before { opacity:.25; }
.cta h2 { font-weight:400; }
.contact-form { border-radius:3px; box-shadow:none; background:var(--ink); border-color:var(--line); }
.contact-form input,.contact-form select,.contact-form button { border-radius:2px; }
footer { background:var(--ink); }
.footer-brand p,.footer-meta { color:#a8ada2; }
@media(min-width:1500px) { .hero { padding-inline:max(5vw,calc((100vw - 1400px)/2)); } }
@media(max-width:1100px) { .hero-actions { gap:15px; } .hero .button { padding-inline:16px; } }
@media(min-width:721px) and (max-width:980px) { .nav-links a:not(.nav-cta) { display:block; } .nav-links { gap:18px; } .hero { min-height:790px; } .hero h1 { font-size:60px; } }
@media(max-width:720px) {
  .site-nav,.site-nav.scrolled { padding:18px 22px; } .brand-copy strong { font-size:20px; }
  .nav-links.open { background:var(--ink); } .nav-links.open .nav-cta { display:block; margin-top:18px; text-align:center; }
  .hero { grid-template-columns:1fr; gap:0; min-height:100svh; padding:145px 24px 170px; }
  .hero h1 { font-size:clamp(39px,9vw,64px); line-height:1.14; } .hero .eyebrow { font-size:8px; gap:9px; letter-spacing:.12em; line-height:1.7; } .eyebrow::before { width:24px; }
  .hero-lead { font-size:14px; } .hero-actions { gap:20px; } .hero .button,.hero .text-link { font-size:10px; }

  .hero-bottom { left:24px; right:24px; bottom:28px; font-size:9px; } .hero-bottom>span { max-width:100%; line-height:1.6; } .hero-bottom a { align-self:center; } .hero-bottom a span { margin-left:8px; }
  .section { padding:80px 24px; } .systems-grid { gap:35px; } .section-heading h2 { font-size:44px; } .system-row { gap:12px; }
  .architecture-header h2 { font-size:44px; } .ecosystem-canvas { padding:12px; } .os-core { background:#202520; }
  .process-intro { grid-template-columns:1fr; gap:25px; } .process-summary { max-width:440px; } .process-grid { margin-top:40px; }
  .process-step { grid-template-columns:36px 1fr; gap:12px; padding:28px 0; } .process-step h3 { font-size:28px; } .process-step p { grid-column:2; font-size:13px; } .process-step .num { font-size:20px; }
  .process-outro { flex-direction:column; gap:16px; } .cta { padding:80px 24px; } .cta h2 { font-size:46px; } footer { padding:45px 24px; }
}

/* Match the navigation to the light opening section before scrolling. */
.site-nav:not(.scrolled) { background:rgba(240,237,228,.96); color:#151411; border-color:rgba(21,20,17,.16); }
.site-nav:not(.scrolled) .brand-copy small,
.site-nav:not(.scrolled) .menu-button { color:#796844; }
.site-nav:not(.scrolled) .nav-links a { color:#343b30; }
.site-nav:not(.scrolled) .nav-links a:hover { color:#796844; }
.site-nav:not(.scrolled) .nav-links .nav-cta { border-color:rgba(21,20,17,.25); }
.site-nav:not(.scrolled) .nav-links .nav-cta:hover { color:#f0ede4; background:#343b30; }
.site-nav:not(.scrolled) :focus-visible { outline-color:#796844; }
@media(max-width:720px) {
  .site-nav:not(.scrolled) .nav-links.open { background:#f0ede4; border-color:rgba(21,20,17,.16); }
  .site-nav:not(.scrolled) .nav-links.open a:not(.nav-cta) { border-color:rgba(21,20,17,.16); }
}

/* Scroll-responsive brass contours remain behind the ivory hero content. */
.hero { isolation:isolate; --hero-drift:0px; --hero-turn:0deg; --hero-scale:1; --hero-fade:1; }
.hero-atmosphere { position:absolute; inset:0; z-index:0; overflow:hidden; pointer-events:none; opacity:var(--hero-fade); }
.hero-copy,.hero-bottom { z-index:1; }
.atmosphere-wash { position:absolute; inset:-25%; background:radial-gradient(ellipse at 18% 40%,rgba(185,164,123,.2),transparent 42%),radial-gradient(ellipse at 85% 65%,rgba(185,164,123,.15),transparent 40%); transform:translate3d(0,var(--hero-drift),0) scale(var(--hero-scale)); }
.atmosphere-arc { position:absolute; width:clamp(420px,65vw,1100px); aspect-ratio:1; border:1px solid rgba(137,117,79,.2); border-radius:50%; box-shadow:0 0 0 32px rgba(137,117,79,.035),0 0 0 90px rgba(137,117,79,.025); }
.arc-left { left:-43%; top:-42%; transform:translate3d(0,var(--hero-drift),0) rotate(var(--hero-turn)) scaleX(.8); }
.arc-right { right:-38%; bottom:-65%; transform:translate3d(0,calc(var(--hero-drift) * -1),0) rotate(calc(var(--hero-turn) * -1)) scaleX(.85); }
@media(max-width:720px) { .arc-left { left:-95%; top:-15%; } .arc-right { right:-95%; bottom:-20%; } }
@media(prefers-reduced-motion:reduce) {
  .hero-atmosphere { opacity:1; }
  .atmosphere-wash { transform:none; }
  .arc-left,.arc-right { transform:none; }
}

/* A decorative workflow travels from input through processing to outcomes. */
.systems,.architecture,.process,.cta { isolation:isolate; }
.workflow-backdrop { position:absolute; inset:0; z-index:-1; overflow:hidden; pointer-events:none; color:#b9a47b; --workflow-drift:0px; }
.workflow-backdrop svg { display:block; width:100%; height:100%; min-height:100%; overflow:visible; transform:translate3d(0,var(--workflow-drift),0); }
.automation-route { fill:none; stroke:currentColor; stroke-width:1; opacity:.18; vector-effect:non-scaling-stroke; }
.automation-stages>g { opacity:.16; transition:opacity .45s ease; }
.automation-stages>g.is-reached { opacity:.5; }
.automation-stages rect { fill:#202520; stroke:currentColor; stroke-width:1; vector-effect:non-scaling-stroke; }
.automation-stages path { fill:none; stroke:currentColor; stroke-width:1.4; vector-effect:non-scaling-stroke; }
.automation-signal { fill:currentColor; opacity:.65; }
.signal-trail { opacity:.13; }
.process .workflow-backdrop { color:#89754f; opacity:.65; }
.process .automation-stages rect { fill:#f0ede4; }
.architecture .workflow-backdrop { opacity:.6; }
@media(max-width:720px) {
  .workflow-backdrop { opacity:.65; }
  .automation-stages>g { opacity:.1; }
  .automation-stages>g.is-reached { opacity:.3; }
}
@media(prefers-reduced-motion:reduce) {
  .workflow-backdrop svg { transform:none; }
  .automation-stages>g { transition:none; }
}
