/* netsuccessgroup.co
   Tokens: :root and the .nsg / .nsg.light blocks are copied as-is from the
   design handoff (canvas/nsg.css). Component styles below are rebuilt from it. */

@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/inter-tight-var-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Newsreader italic: only for the Local Connect wordmark on tile 05 (Local Connect's own masthead face) */
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 200 800; font-display: swap; src: url(/fonts/newsreader-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/oswald-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* colour */
  --nsg-ground: #0A0A0B;
  --nsg-surface: #111113;
  --nsg-rule: #27272A;
  --nsg-text: #F4F4F2;
  --nsg-muted: #8A8A8E;
  --nsg-light: #F4F4F2;
  --nsg-ink: #0A0A0B;
  --nsg-muted-light: #5E5E62;
  --nsg-rule-light: #D6D6D2;
  --nsg-accent: #FF4D1F;
  --nsg-error: #B42318;
  /* brand floods, sampled from each live site */
  --brand-mtp: #4F46E5;
  --brand-bk: #E8751A;
  --brand-mrgreen: #97C200;
  --brand-minorco: #008AFE;
  --brand-mahiflow: #C452FF;
  --brand-yall: #E3242B;
  /* type */
  --font-sans: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --fs-hero: 11vw;
  --fs-hero-mobile: 12.5vw;
  --fs-footer-mark: 12.6vw;
  --fs-marquee: 120px;
  --fs-marquee-mobile: 56px;
  --fs-quote: 40px;
  --fs-lead: 32px;
  --fs-tile-name: 28px;
  --fs-body: 20px;
  --fs-small: 15px;
  --fs-meta: 13px;
  --lh-hero: 0.92;
  --lh-body: 1.55;
  --tr-hero: -0.03em;
  --tr-display: -0.02em;
  --tr-mono: 0.06em;
  --fw-display: 600;
  --fw-body: 400;
  /* space */
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 40px;
  --sp-5: 64px; --sp-6: 96px; --sp-7: 144px; --sp-8: 200px;
  --section-pad: 144px;
  --section-pad-mobile: 96px;
  --max: 1400px;
  --gutter: 48px;
  --gutter-mobile: 20px;
  --radius-tile: 0;
  --radius-button: 999px;
  /* motion */
  --dur-enter: 600ms;
  --dur-exit: 350ms;
  --dur-hover: 300ms;
  --dur-flood: 500ms;
  --dur-magnet: 400ms;
  --stagger-char: 15ms;
  --stagger-tile: 80ms;
  --ease-expo-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-power2-in: cubic-bezier(0.32, 0, 0.67, 0);
  --ease-elastic-out: linear(0, 0.223, 0.5, 0.772, 1, 1.161, 1.25, 1.275, 1.25, 1.194, 1.125, 1.057, 1, 0.96, 0.938, 0.931, 0.938, 0.951, 0.969, 0.986, 1, 1.01, 1.016, 1.017, 1.016, 1.012, 1.008, 1.004, 1, 0.997, 0.996, 0.996, 0.996, 0.997, 0.998, 0.999, 1, 1.001, 1.001, 1.001, 1);
  --marquee-speed: 60px;
  --marquee-speed-hover: 20px;
  /* z-index */
  --z-base: 0;
  --z-flood: 1;
  --z-content: 2;
  --z-header: 10;
  --z-grain: 50;
  --z-cursor: 100;
}

.nsg { --c-ground: #0A0A0B; --c-text: #F4F4F2; --c-muted: #8A8A8E; --c-rule: #27272A; --c-rule-strong: #3A3A3F; --logo-filter: none; container-type: inline-size; position: relative; font-family: var(--font-sans); font-weight: 400; color: var(--nsg-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.nsg.light { --c-ground: #F4F4F2; --c-text: #0A0A0B; --c-muted: #5E5E62; --c-rule: #D6D6D2; --c-rule-strong: #BDBDB8; --logo-filter: brightness(0); }

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: #F4F4F2; }
body { margin: 0; background: #F4F4F2; color: #0A0A0B; }
.site { background: var(--c-ground); color: var(--c-text); overflow-x: clip; }
h1, h2, h3 { margin: 0; font: inherit; }
main:focus { outline: none; }
.mono { font-family: var(--font-mono); font-size: var(--fs-meta); letter-spacing: var(--tr-mono); line-height: 1.55; font-weight: 400; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.grain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: overlay; opacity: 0.22; z-index: var(--z-grain); }
.light .grain { opacity: 0.12; }
.skip-link { position: absolute; left: 16px; top: 16px; z-index: 200; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--nsg-ink); color: var(--nsg-light); font: 500 15px/1 var(--font-sans); text-decoration: none; border-radius: var(--radius-button); transform: translateY(-200%); }
.skip-link:focus { transform: none; outline: 2px solid var(--nsg-accent); outline-offset: 2px; }

/* cursor dot: pointer:fine only, enabled by main.js after the first mousemove */
.cursor-dot { position: fixed; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 999px; background: var(--nsg-accent); pointer-events: none; z-index: var(--z-cursor); opacity: 0; transition: opacity 200ms; display: none; }
.has-cursor .cursor-dot { display: block; }
.has-cursor, .has-cursor a { cursor: none; }
.cursor-dot.over-flood { mix-blend-mode: difference; }

/* header (sits over the hero) */
.site-head { position: absolute; top: 0; left: 0; right: 0; z-index: var(--z-header); padding: 28px var(--gutter) 0; pointer-events: none; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.wordmark { display: flex; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; white-space: pre; }
.wordmark-chars { display: flex; }
.char-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.char { display: inline-block; }
.hero-rule { position: absolute; left: 0; right: 0; top: 100px; height: 1px; background: var(--c-rule-strong); transform-origin: left center; }
.hero-meta { color: var(--c-muted); text-align: right; }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end; padding: 140px var(--gutter) 48px; overflow: hidden; background: var(--c-ground); }
.hero-bottom { position: relative; z-index: 2; }
.headline { margin: 0; font-size: min(11cqw, calc((100cqw - 2 * var(--gutter)) / 8.7)); font-weight: var(--fw-display); line-height: var(--lh-hero); letter-spacing: var(--tr-hero); }
.hl-mask { display: block; overflow: hidden; padding-bottom: 0.18em; margin-bottom: -0.18em; }
.hl-line { display: block; white-space: nowrap; }
.hero-sub { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 40px; }
.hero-subline { margin: 0; max-width: 34ch; font-size: var(--fs-body); line-height: 1.4; color: var(--c-muted); }
.hero-subline b { font-weight: 500; color: var(--c-text); }

/* load sequence, about 1.06s */
@keyframes nsg-rise { from { transform: translateY(108%); } to { transform: translateY(0); } }
@keyframes nsg-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes nsg-fade { from { opacity: 0; } to { opacity: 1; } }
.char { animation: nsg-rise var(--dur-enter) var(--ease-expo-out) both; animation-delay: calc(var(--c) * var(--stagger-char)); }
.hero-rule { animation: nsg-draw 900ms var(--ease-expo-out) 100ms both; }
.hl-1 { animation: nsg-rise var(--dur-enter) var(--ease-expo-out) 300ms both; }
.hl-2 { animation: nsg-rise var(--dur-enter) var(--ease-expo-out) 380ms both; }
.hero-meta, .hero-sub { animation: nsg-fade var(--dur-enter) var(--ease-expo-out) 600ms both; }

/* the six */
.six { position: relative; z-index: 2; padding-bottom: var(--section-pad); background: var(--c-ground); }
.six-head { display: flex; justify-content: space-between; gap: 24px; padding-block: 96px 56px; color: var(--c-muted); }
.groups { display: flex; flex-direction: column; gap: 96px; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--c-rule); }
.group-title { font-size: 40px; font-weight: 600; letter-spacing: -0.025em; line-height: 1; }
.tile-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

.tile { position: relative; display: block; height: 240px; color: var(--c-text); text-decoration: none; outline: none; -webkit-tap-highlight-color: transparent; }
.tile.is-hot { z-index: 3; }
.tile-card { position: absolute; inset: 0; display: block; border: 1px solid var(--c-rule); overflow: hidden; transition: transform var(--dur-hover) var(--ease-expo-out); }
.tile:focus-visible .tile-card { box-shadow: 0 0 0 2px var(--c-ground), 0 0 0 4px var(--nsg-accent); }
.layer { position: absolute; inset: 0; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 40px; padding: 32px 40px; }
.layer-rest { z-index: 0; color: var(--c-text); }
.layer-rest .tile-num, .layer-rest .tile-role, .layer-rest .tile-blurb { color: var(--c-muted); }
.layer-flood { z-index: var(--z-flood); clip-path: circle(0% at 50% 50%); -webkit-clip-path: circle(0% at 50% 50%); }
.tile-top { flex: none; width: 40px; align-self: flex-start; display: flex; justify-content: space-between; align-items: flex-start; }
.tile-logo { flex: none; position: relative; width: 320px; height: 100%; display: grid; place-items: center; pointer-events: none; }
.tile-logo img { display: block; width: auto; max-width: 260px; }
.layer-rest .tile-logo img { filter: var(--logo-filter); }
.plate { display: flex; align-items: center; justify-content: center; padding: 22px 28px; }
.bk-mark { font-family: 'Oswald', 'Arial Narrow', sans-serif; font-weight: 700; font-size: 34px; letter-spacing: 0.1em; line-height: 1; white-space: nowrap; }
.layer-rest .bk-mark { color: var(--c-text); }
.bk-mark-full { color: #EEF0F8; }
.bk-mark-full span { color: #E8751A; }
.tile-foot { position: relative; flex: 1; align-self: center; display: flex; align-items: flex-start; padding-right: 200px; }
.tile-text { display: flex; flex-direction: column; min-width: 0; }
.tile-name { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.tile-role { margin-bottom: 8px; }
.tile-blurb { margin: 10px 0 0; max-width: 56ch; font-size: 17px; line-height: 1.45; }
.visit { position: absolute; right: 0; top: 50%; margin-top: -28px; display: flex; align-items: center; gap: 20px; }
.visit-btn { width: 56px; height: 56px; border-radius: var(--radius-button); border: 1px solid currentColor; display: grid; place-items: center; transition: transform var(--dur-magnet) var(--ease-elastic-out, ease-out); }

/* brand floods: flood colour, text on flood, logo ground */
.tile-mtp .layer-flood { background: var(--brand-mtp); color: #FFFFFF; }
.tile-mtp .plate { background: #020617; }
.tile-bk .layer-flood { background: var(--brand-bk); color: #0A0A0B; }
.tile-bk .plate { background: #07091A; }
.tile-mrgreen .layer-flood { background: var(--brand-mrgreen); color: #0A0A0B; }
.tile-mrgreen .plate { background: #FFFFFF; }
.tile-minorco .layer-flood { background: var(--brand-minorco); color: #0A0A0B; }
.tile-minorco .plate { background: #FFFFFF; }
.tile-mahiflow .layer-flood { background: var(--brand-mahiflow); color: #0A0A0B; }
.tile-mahiflow .plate { background: #FFFFFF; }
.tile-yall .layer-flood { background: var(--brand-yall); color: #FFFFFF; }
.tile-auphonix .layer-flood { background: #662D91; color: #FFFFFF; }
.tile-localconnect .layer-flood { background: #173F35; color: #FFFFFF; }
.tile-localconnect .plate { background: #F5F2EA; }
/* Local Connect lockup, set like its own masthead: Newsreader italic 800, -0.025em, red full stop */
.lc-lockup { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.lc-mark { flex: none; width: 34px; height: 34px; }
.lc-word { font-family: 'Newsreader', Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 800; font-size: 32px; line-height: 1; letter-spacing: -0.025em; }
.layer-rest .lc-word { color: var(--c-text); }
.layer-flood .lc-word { color: var(--nsg-ink); }
.lc-dot { color: #C4311D; }
.tile-auphonix .plate { background: #FFFFFF; }

/* tile 04 Auphonix: sold, so no link and no Visit button; a SOLD ribbon across the top-right corner */
.tile-static { cursor: default; }
.sold { position: absolute; z-index: 2; top: 16px; right: -47px; width: 166px; height: 40px; display: flex; align-items: center; justify-content: center; padding-left: 0.14em; transform: rotate(45deg); background: var(--nsg-ink); color: var(--nsg-light); font-family: var(--font-sans); font-size: 16px; font-weight: 600; letter-spacing: 0.14em; line-height: 1; text-transform: uppercase; pointer-events: none; }
.layer-flood .sold { background: var(--nsg-light); color: var(--nsg-ink); }
.tile-yall .plate { background: #FFFFFF; }

/* no JS: a plain hover still floods */
html:not(.js) .tile:hover .layer-flood, html:not(.js) .tile:focus-visible .layer-flood { clip-path: circle(150% at 50% 50%); -webkit-clip-path: circle(150% at 50% 50%); }

/* tile reveal: rise 60px and fade, 600ms expo.out, 80ms stagger, once at 12% visible */
@keyframes nsg-tile-in { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.js .group:not(.revealed) .tile { opacity: 0; }
.js .group.revealing .tile { animation: nsg-tile-in var(--dur-enter) var(--ease-expo-out) both; animation-delay: calc(var(--i) * var(--stagger-tile)); }

/* about */
.about { position: relative; z-index: 2; color: var(--nsg-ink); background: var(--c-ground); padding-block: var(--section-pad); }
.about-label { display: flex; justify-content: space-between; gap: 24px; color: var(--nsg-muted-light); padding-bottom: 24px; border-bottom: 1px solid var(--nsg-rule-light); margin-bottom: 64px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.about-lead { margin: 0; max-width: 10em; font-size: 56px; font-weight: 500; line-height: 1.04; letter-spacing: -0.025em; text-wrap: pretty; position: sticky; top: 120px; align-self: start; }
.about-body { max-width: 60ch; }
.about-body p { margin: 0 0 32px; font-size: var(--fs-body); line-height: var(--lh-body); text-wrap: pretty; }
.about-quote { margin: 8px 0 40px; padding: 0; }
.text-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: currentColor; transition: text-decoration-color var(--dur-hover) var(--ease-expo-out); }
.text-link:hover { text-decoration-color: var(--nsg-accent); text-decoration-thickness: 2px; }
.text-link:focus-visible { outline: 2px solid var(--nsg-accent); outline-offset: 3px; text-decoration-color: var(--nsg-accent); }
.about-body .about-signoff { margin: 24px 0 0; text-align: left; font-size: var(--fs-meta); line-height: 1.55; color: var(--nsg-muted-light); }
/* two-sentence quote: 26px is the largest size that holds four lines in the 60ch column at 1440 */
.about-body .about-quote p { margin: 0; font-size: 26px; font-weight: 500; line-height: 1.24; letter-spacing: -0.015em; color: var(--nsg-accent); text-wrap: pretty; }

/* footer (black) */
.footer { position: relative; z-index: 2; min-height: 900px; display: flex; flex-direction: column; overflow: hidden; background: var(--c-ground); color: var(--c-text); padding-top: 96px; }
.foot-wrap { width: 100%; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: start; }
.foot-legal { margin: 0; max-width: 38ch; font-size: var(--fs-small); line-height: var(--lh-body); color: var(--c-muted); }
.foot-email { position: relative; display: inline-block; margin: 0; padding: 0 0 6px; border: 0; background: none; cursor: pointer; font-family: inherit; line-height: 1.2; text-align: left; font-size: 40px; font-weight: 500; letter-spacing: -0.02em; color: var(--c-text); text-decoration: none; padding-bottom: 6px; transition: transform var(--dur-magnet) var(--ease-elastic-out, ease-out); }
.foot-email:hover { color: #FFFFFF; }
.foot-email::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--nsg-accent); transform: scaleX(0); transform-origin: right center; transition: transform var(--dur-exit) var(--ease-power2-in); }
.foot-email:hover::after, .foot-email:focus-visible::after { transform: scaleX(1); transform-origin: left center; transition: transform var(--dur-enter) var(--ease-expo-out); }
.foot-email:focus-visible { outline: none; }
.foot-clock { display: flex; gap: 24px; align-items: baseline; margin-top: 64px; color: var(--c-muted); }
.foot-clock b { font-weight: 400; color: var(--c-text); font-variant-numeric: tabular-nums; white-space: pre; }
.foot-mark { margin-top: auto; font-size: var(--fs-footer-mark); font-size: min(12.6cqw, calc((100cqw - 60px) / 7.9)); font-weight: 600; letter-spacing: -0.045em; line-height: 0.8; white-space: nowrap; margin-bottom: -0.2em; padding-left: 36px; }
.foot-mark span { display: inline; }

/* tablet */
@container (max-width: 1100px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .about-lead { position: static; }
  .tile-logo { width: 220px; }
  .tile-foot { padding-right: 96px; }
  .visit .mono { display: none; }
  /* wordmark tiles (02, 05) scale to the 220px logo column; flood plates stay the same height */
  .plate { padding: 16px 20px; }
  .bk-mark { font-size: 22px; }
  .lc-lockup { gap: 8px; }
  .lc-mark { width: 22px; height: 22px; }
  .lc-word { font-size: 21px; }
}

/* mobile */
@container (max-width: 700px) {
  .wrap { padding-inline: var(--gutter-mobile); }
  .site-head { padding: 20px var(--gutter-mobile) 0; }
  .hero { min-height: 78svh; padding: 120px var(--gutter-mobile) 32px; }
  .hero-rule { top: 82px; }
  .bk-mark { font-size: 26px; }
  .plate { padding: 18px 22px; }
  .lc-mark { width: 26px; height: 26px; }
  .lc-word { font-size: 24px; }
  .wordmark { font-size: 16px; }
  .hero-meta { font-size: 11px; }
  .headline { font-size: min(10.8cqw, calc((100cqw - 2 * var(--gutter-mobile)) / 8.7)); }
  .hero-sub { margin-top: 28px; }
  .hero-subline { font-size: 17px; }
  .six { padding-bottom: var(--section-pad-mobile); }
  .six-head { padding-block: 40px 24px; }
  .tile { height: 448px; }
  .groups { gap: 64px; }
  .group-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .group-title { font-size: 30px; }
  .layer { flex-direction: column; align-items: stretch; gap: 0; padding: 20px; }
  .tile-top { width: auto; align-self: auto; }
  .tile-logo { width: auto; height: 150px; }
  .tile-foot { align-self: stretch; padding-right: 0; padding-top: 16px; border-top: 1px solid rgba(138, 138, 142, 0.35); }
  .tile-name { font-size: 26px; }
  .tile-blurb { max-width: 30ch; font-size: 15px; }
  .visit { top: auto; bottom: 0; margin-top: 0; }
  .visit .mono { display: none; }
  .visit-btn { width: 48px; height: 48px; }
  .sold { top: 12px; right: -39.5px; width: 135px; height: 32px; font-size: 13px; }
  .about { padding-block: var(--section-pad-mobile); }
  .about-label { margin-bottom: 40px; }
  .about-lead { font-size: 34px; }
  .about-body p { font-size: 18px; margin-bottom: 24px; }
  .about-body .about-quote p { font-size: 22px; }
  .about-quote { margin: 8px 0 32px; }
  .footer { min-height: 700px; padding-top: 64px; }
  .foot-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .foot-email { font-size: 26px; display: inline-flex; align-items: center; min-height: 44px; }
  .foot-clock { margin-top: 40px; flex-direction: column; gap: 4px; }
  .foot-mark { font-size: min(21cqw, calc((100cqw - 28px) / 5.2)); white-space: normal; line-height: 0.82; padding-left: 14px; margin-bottom: -0.18em; }
  .foot-mark span { display: block; white-space: nowrap; }
}

/* contact modal: light panel on a blurred ink scrim */
.contact { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 24px; border: 0; background: transparent; display: none; align-items: center; justify-content: center; color: var(--nsg-ink); cursor: auto; overflow: auto; }
.contact[open] { display: flex; }
.contact::backdrop { background: rgba(10, 10, 11, 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.contact-panel { position: relative; width: 100%; max-width: 560px; margin: auto; padding: 48px; background: var(--nsg-light); border: 1px solid var(--nsg-rule-light); border-radius: 0; font-family: var(--font-sans); }
.contact.is-open .contact-panel { animation: nsg-panel-in 400ms var(--ease-expo-out) both; }
.contact.is-open::backdrop { animation: nsg-fade 400ms var(--ease-expo-out) both; }
.contact.is-closing .contact-panel { animation: nsg-panel-out 250ms var(--ease-power2-in) both; }
.contact.is-closing::backdrop { animation: nsg-fade-out 250ms var(--ease-power2-in) both; }
@keyframes nsg-panel-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes nsg-panel-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(0.96); } }
@keyframes nsg-fade-out { from { opacity: 1; } to { opacity: 0; } }
.contact-head { display: flex; justify-content: space-between; align-items: flex-start; margin: -12px -12px 28px 0; }
.contact-title { color: var(--nsg-muted-light); padding-top: 12px; }
.contact-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-button); background: none; color: var(--nsg-ink); cursor: pointer; }
.contact-close:hover { background: rgba(10, 10, 11, 0.06); }
.contact button:focus-visible { outline: 2px solid var(--nsg-accent); outline-offset: 2px; }
.contact-title:focus { outline: none; }
.field { margin-bottom: 24px; }
.field label { display: block; margin-bottom: 6px; color: var(--nsg-muted-light); }
.field input, .field textarea { display: block; width: 100%; min-height: 48px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--nsg-rule-light); border-radius: 0; background: transparent; color: var(--nsg-ink); font: 400 18px/1.4 var(--font-sans); -webkit-appearance: none; appearance: none; resize: vertical; cursor: text; }
.field textarea { min-height: 120px; }
.field input:hover, .field textarea:hover { border-bottom-color: #BDBDB8; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-bottom: 2px solid var(--nsg-accent); padding-bottom: 9px; }
.field [aria-invalid="true"] { border-bottom-color: var(--nsg-error); }
.field-err, .form-err { margin: 8px 0 0; font-size: 15px; line-height: 1.4; color: var(--nsg-error); }
.form-err { margin: 0 0 16px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* the managed flexible widget measures 69px; reserve it so the modal never jumps when it shows */
.cf-turnstile-slot { min-height: 69px; margin-bottom: 16px; background: transparent; }
.contact-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 28px; border: 0; border-radius: var(--radius-button); background: var(--nsg-ink); color: #FFFFFF; font: 500 16px/1 var(--font-sans); cursor: pointer; transition: background-color var(--dur-hover) var(--ease-expo-out); }
.pill:hover { background: #26262A; }
.pill[aria-busy="true"] { cursor: progress; background: #3A3A3F; }
.pill[aria-busy="true"]::before { content: ""; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #FFFFFF; border-radius: 999px; animation: nsg-spin 700ms linear infinite; }
@keyframes nsg-spin { to { transform: rotate(360deg); } }
.contact-done { outline: none; }
.contact-done-text { margin: 0 0 32px; font-size: var(--fs-lead); font-weight: 500; line-height: 1.22; letter-spacing: -0.015em; }
.modal-open .cursor-dot { opacity: 0 !important; }

@media (max-width: 700px) {
  .contact { padding: 0; align-items: flex-end; }
  .contact-panel { max-width: none; margin: auto 0 0; padding: 24px; border-width: 1px 0 0; max-height: calc(100dvh - 24px); overflow: auto; }
  .contact.is-open .contact-panel { animation-name: nsg-sheet-in; }
  .contact.is-closing .contact-panel { animation-name: nsg-sheet-out; }
  .contact-head { margin-bottom: 16px; }
  .contact-done-text { font-size: 24px; }
  .contact-actions .pill { width: 100%; }
}
@keyframes nsg-sheet-in { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes nsg-sheet-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(32px); } }

@media (pointer: coarse) { .grain { display: none; } }

/* prefers-reduced-motion: static, instant swaps, no tilt, magnet, cursor or grain */
@media (prefers-reduced-motion: reduce) {
  .char, .hero-rule, .hl-1, .hl-2, .hero-meta, .hero-sub { animation: none !important; }
  .js .group:not(.revealed) .tile { opacity: 1; }
  .js .group.revealing .tile { animation: none; }
  .tile-card, .visit-btn, .foot-email, .foot-email::after, .layer-flood { transition: none !important; }
  .tile-card, .visit-btn, .foot-email { transform: none !important; }
  .grain, .cursor-dot { display: none !important; }
  .contact-panel, .contact::backdrop, .pill[aria-busy="true"]::before { animation: none !important; }
  .has-cursor, .has-cursor a { cursor: auto; }
}
