/* ==========================================================================
   411 CONNECTIONS — BASE
   --------------------------------------------------------------------------
   The document-level layer and the shared primitives every widget uses.
   Ported from notice/assets/css/site.css §2–§5 and §16.

   ⚠️ HELLO ELEMENTOR'S reset.css IS SWITCHED OFF by this plugin
   (C411W_Plugin::boot, filter `hello_elementor_enqueue_style`). It paints
   every <button> and form field with a pink #c36 border, fills buttons pink
   on :hover AND :focus at (0,1,1), and sets headings to weight 500 — so every
   widget would have had to out-specify it, state by state. §1 below is the
   approved design's own reset in its place. Hello's theme.css (alignments,
   .screen-reader-text) still loads.

   Class names are a shared namespace across all three packages (GOTCHAS 17).
   The events plugin already uses .c411-btn .c411-card .c411-grid .c411-tag
   .c411-note .c411-row .c411-bar .c411-wrap .c411-field — do not reuse them.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1 · RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--c411-paper);
	color: var(--c411-ink);
	font-family: var(--c411-ff);
	font-size: 16.5px;
	line-height: 1.6;
	font-variation-settings: 'wdth' 100;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

/* The grain. Flat brand colour needs some tooth or it reads as a default —
   part of why this direction stopped being called "AI". */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
	opacity: var(--c411-grain);
	mix-blend-mode: var(--c411-blend);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	color: var(--c411-ink);
	font-family: inherit;
	line-height: .94;
	font-weight: 800;
	font-variation-settings: 'wdth' 118;
	letter-spacing: -.015em;
	text-transform: uppercase;
}
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; border-style: none; }
a { color: inherit; text-decoration: none; background-color: transparent; }
b, strong { font-weight: bolder; }
[hidden] { display: none !important; }

/* Lists are reset only inside our own markup: a WYSIWYG list in the prose
   widget, or anything a plugin prints, keeps its bullets. */
[data-c411] ul, [data-c411] ol { margin: 0; padding: 0; list-style: none; }
.c411-prose ul { list-style: disc; padding-left: 1.3em; }
.c411-prose ol { list-style: decimal; padding-left: 1.3em; }

button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; background: none; border: none; padding: 0; border-radius: 0; }
label { display: inline-block; }
summary { display: list-item; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
	outline: 3px solid var(--c411-orange);
	outline-offset: 2px;
}

.c411-skip {
	position: absolute; left: -9999px; top: 0; z-index: 10000;
	background: var(--c411-navy); color: var(--c411-paper);
	padding: var(--c411-s3) var(--c411-s5);
	font-weight: 800;
}
.c411-skip:focus { left: 0; }
.c411-sr {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

/* --------------------------------------------------------------------------
   2 · LAYOUT
   -------------------------------------------------------------------------- */
.c411-shell { width: 100%; max-width: var(--c411-max); margin: 0 auto; padding: 0 var(--c411-gut); }
.c411-shell--narrow { max-width: 900px; }

/* A band is one full-width section. Every section widget renders its own,
   so a page is a plain stack of widgets in zero-padding containers. */
.c411-band { padding: var(--c411-s9) 0; }
/* ⚠️ The modifiers repeat .c411-band so they win on WEIGHT (0,2,0), not on
   position. As bare (0,1,0) classes they lost to the phone-width
   `.c411-band { padding: 64px 0 }` further down the file, and every
   "top only" band grew a 64px bottom on phones (GOTCHAS 49). */
.c411-band.c411-band--sm     { padding: var(--c411-s7) 0; }
.c411-band.c411-band--flush  { padding: 0; }
.c411-band.c411-band--top    { padding-bottom: 0; }
.c411-band.c411-band--bottom { padding-top: 0; }

.c411-on-deep { background: var(--c411-deep); color: var(--c411-on-deep); }
.c411-on-deep h1, .c411-on-deep h2, .c411-on-deep h3, .c411-on-deep h4 { color: #fff; }
.c411-on-teal { background: var(--c411-teal-surf); color: #eafaf8; }
.c411-on-teal h1, .c411-on-teal h2, .c411-on-teal h3, .c411-on-teal h4 { color: #fff; }
.c411-on-tint { background: var(--c411-tint); }
.c411-on-paper { background: var(--c411-paper); }

/* --------------------------------------------------------------------------
   3 · TYPE — wide and heavy at the top of the scale
   -------------------------------------------------------------------------- */
.c411-d1 { font-size: clamp(2.9rem, 7.3vw, 6.6rem); line-height: .88; letter-spacing: -.026em; font-variation-settings: 'wdth' 122; font-weight: 900; text-wrap: balance; }
.c411-d2 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: .9;  letter-spacing: -.022em; font-variation-settings: 'wdth' 120; font-weight: 800; }
.c411-d3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1;   letter-spacing: -.015em; font-variation-settings: 'wdth' 115; font-weight: 800; }
.c411-d4 { font-size: 1.16rem; line-height: 1.12; letter-spacing: -.01em; font-variation-settings: 'wdth' 112; font-weight: 700; }

/* An outlined line, used once per page at most.
   ⚠️ The stroke colour is set EXPLICITLY. `-webkit-text-stroke: 2.5px
   currentColor` beside `color: transparent` resolves currentColor to that same
   transparent fill and paints nothing — while still occupying the line's full
   height. The client saw that as "the hero looks a bit misaligned". */
.c411-outline {
	color: transparent;
	-webkit-text-stroke-width: 2.5px;
	-webkit-text-stroke-color: var(--c411-outline-c, var(--c411-ink));
	paint-order: stroke fill;
}
@media (max-width: 700px) { .c411-outline { -webkit-text-stroke-width: 1.6px; } }

.c411-lede {
	font-size: clamp(1.02rem, 1.3vw, 1.16rem);
	line-height: 1.62;
	color: var(--c411-ink-soft);
	max-width: 40ch;
	text-transform: none;
	font-weight: 400;
	font-variation-settings: 'wdth' 100;
	letter-spacing: 0;
}
.c411-small { font-size: .9rem; line-height: 1.6; color: var(--c411-ink-soft); }
.c411-xs    { font-size: .8rem; line-height: 1.55; color: var(--c411-ink-soft); }

.c411-eyebrow {
	display: inline-block;
	font-size: .68rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-variation-settings: 'wdth' 108;
	color: var(--c411-ink-soft);
}
.c411-eyebrow--orange { color: var(--c411-orange-ink); }
.c411-eyebrow--teal   { color: var(--c411-teal-d); }
.c411-on-deep .c411-eyebrow--orange { color: var(--c411-orange-l); }
.c411-on-deep .c411-eyebrow--teal   { color: var(--c411-teal-l); }
.c411-on-teal .c411-eyebrow         { color: #fff; }

/* --------------------------------------------------------------------------
   4 · BUTTONS — flat fills with a hard shadow that moves on press
   -------------------------------------------------------------------------- */
.c411-button {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--c411-s2);
	padding: .78rem 1.4rem;
	border: 2.5px solid var(--c411-navy);
	border-radius: 0;
	font-size: .86rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
	font-variation-settings: 'wdth' 110;
	line-height: 1.3;
	text-align: center;
	box-shadow: 4px 4px 0 var(--c411-btn-sh);
	transition: transform .13s var(--c411-ease), box-shadow .13s var(--c411-ease), background-color .18s var(--c411-ease), color .18s var(--c411-ease);
}
.c411-button:hover  { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--c411-btn-sh); }
.c411-button:active { transform: translate(3px, 3px);   box-shadow: 1px 1px 0 var(--c411-btn-sh); }
.c411-button--orange { background: var(--c411-orange); color: var(--c411-deep); }
.c411-button--orange:hover { background: var(--c411-orange-l); color: var(--c411-deep); }
.c411-button--teal   { background: var(--c411-teal-surf); color: #fff; }
.c411-button--teal:hover { background: var(--c411-teal-d); color: #fff; }
.c411-button--navy   { background: var(--c411-navy); color: var(--c411-paper); }
.c411-button--navy:hover { color: var(--c411-paper); }
.c411-button--ghost  { background: transparent; color: var(--c411-ink); }
.c411-button--ghost:hover { background: var(--c411-navy); color: var(--c411-paper); }
.c411-button--block  { width: 100%; }

/* ⚠️ Every dark band needs its own ghost rule. `color: var(--c411-ink)` on a
   dark ground is invisible — the footer's ghost button was, until this
   existed. The same applies to any new dark surface: add it here. */
.c411-on-deep .c411-button, .c411-on-teal .c411-button, .c411-hero .c411-button, .c411-foot .c411-button {
	border-color: #fff; box-shadow: 4px 4px 0 rgba(0, 0, 0, .45);
}
.c411-on-deep .c411-button:hover, .c411-on-teal .c411-button:hover, .c411-hero .c411-button:hover, .c411-foot .c411-button:hover {
	box-shadow: 7px 7px 0 rgba(0, 0, 0, .45);
}
.c411-on-deep .c411-button--ghost, .c411-on-teal .c411-button--ghost, .c411-hero .c411-button--ghost, .c411-foot .c411-button--ghost { color: #fff; }
.c411-on-deep .c411-button--ghost:hover, .c411-on-teal .c411-button--ghost:hover, .c411-hero .c411-button--ghost:hover, .c411-foot .c411-button--ghost:hover {
	background: #fff; color: var(--c411-deep);
}

.c411-link {
	display: inline-flex; align-items: center; gap: var(--c411-s2);
	font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
	font-variation-settings: 'wdth' 110;
	color: var(--c411-ink);
	border-bottom: 2.5px solid var(--c411-orange);
	padding-bottom: 3px;
	transition: color .18s var(--c411-ease);
}
.c411-link:hover { color: var(--c411-orange-ink); }
.c411-link__ar { transition: transform .26s var(--c411-ease); }
.c411-link:hover .c411-link__ar { transform: translateX(5px); }
.c411-on-deep .c411-link, .c411-on-teal .c411-link, .c411-foot .c411-link { color: #fff; }

/* A tinted callout. */
.c411-callout {
	display: block;
	padding: var(--c411-s5);
	background: var(--c411-tint);
	border-left: 5px solid var(--c411-orange);
	font-size: .9rem; line-height: 1.6;
	text-transform: none; font-weight: 400;
}
.c411-callout--teal { border-left-color: var(--c411-teal); }
.c411-callout a { color: var(--c411-orange-ink); font-weight: 700; }
.c411-on-deep .c411-callout, .c411-on-teal .c411-callout { background: rgba(255, 255, 255, .07); color: var(--c411-on-deep); }
.c411-on-deep .c411-callout a, .c411-on-teal .c411-callout a { color: var(--c411-orange-l); }

/* Category swatches. --c411-kind and --c411-kind-fg are set per element by
   C411_View::kind_style(); never set one global foreground. */
.c411-pill {
	display: inline-block;
	padding: .24rem .6rem;
	font-size: .62rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
	border: 2px solid var(--c411-navy);
	background: var(--c411-kind, var(--c411-teal));
	color: var(--c411-kind-fg, #fff);
}

/* Section opener */
.c411-sechead {
	display: flex; align-items: flex-end; justify-content: space-between; gap: var(--c411-s6);
	flex-wrap: wrap;
	padding-bottom: var(--c411-s4);
	margin-bottom: var(--c411-s7);
	border-bottom: 2.5px solid var(--c411-ink);
}
.c411-sechead .c411-eyebrow { display: block; margin-bottom: var(--c411-s3); }
.c411-on-deep .c411-sechead, .c411-on-teal .c411-sechead { border-bottom-color: #fff; }

/* The editor-only hint a dynamic widget prints when it has nothing to show.
   Never rendered on the front end — see C411_Base_Widget::editor_hint(). */
.c411-hint-edit {
	border: 2px dashed var(--c411-rule);
	padding: var(--c411-s5);
	font-size: .9rem;
	color: var(--c411-ink-soft);
	text-transform: none;
	font-weight: 500;
	letter-spacing: 0;
	background: repeating-linear-gradient(-45deg, transparent 0 10px, var(--c411-rule-soft) 10px 11px);
}
.c411-hint-edit b { color: var(--c411-ink); }

/* --------------------------------------------------------------------------
   5 · MOTION — gated on html.c411-anim, which only the front end gets
   -------------------------------------------------------------------------- */
.c411-anim .c411-rv {
	opacity: 0;
	transform: translateY(16px);
	/* The CSS-only safety net: if widgets.js never runs, nothing stays hidden
	   for longer than 2.5 seconds. The script cancels this once it has armed
	   its own observer (it adds .is-armed). */
	animation: c411-reveal-net .01s linear 2.5s forwards;
}
.c411-anim.is-armed .c411-rv { animation: none; }
.c411-anim .c411-rv.is-in {
	opacity: 1;
	transform: none;
	animation: none;
	transition: opacity .6s var(--c411-ease), transform .6s var(--c411-ease);
}
.c411-anim .c411-rv-1.is-in { transition-delay: .06s; }
.c411-anim .c411-rv-2.is-in { transition-delay: .12s; }
.c411-anim .c411-rv-3.is-in { transition-delay: .18s; }
@keyframes c411-reveal-net { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.c411-anim .c411-rv { opacity: 1 !important; transform: none !important; animation: none !important; }
	[data-c411] *, [data-c411] *::before, [data-c411] *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media (max-width: 680px) {
	.c411-band { padding: var(--c411-s8) 0; }
	.c411-sechead { flex-direction: column; align-items: flex-start; gap: var(--c411-s4); }
}
@media (max-width: 420px) {
	[data-c411] .c411-button { width: 100%; }
}

@media print {
	body::after { display: none; }
	body { background: #fff; }
	.c411-rv { opacity: 1 !important; transform: none !important; }
}
