/* THE GREAT NORTH — Mainely Code Providence Architecture — public web system v1.0 */
:root {
  --gn-ink: #020b1c;
  --gn-ink-2: #041a32;
  --gn-surface: rgba(5, 31, 58, .78);
  --gn-surface-strong: rgba(3, 22, 45, .94);
  --gn-line: rgba(154, 214, 244, .18);
  --gn-cyan: #22d9ff;
  --gn-teal: #2be4bd;
  --gn-gold: #ffc94a;
  --gn-red: #ff7b86;
  --gn-copy: #eaf8ff;
  --gn-muted: #a9c3d5;
  --gn-shadow: 0 30px 90px rgba(0, 0, 0, .42);
}

body.great-north-site {
  background:
    radial-gradient(circle at 15% 4%, rgba(34, 217, 255, .18), transparent 33rem),
    radial-gradient(circle at 88% 5%, rgba(43, 228, 189, .12), transparent 31rem),
    radial-gradient(circle at 60% 42%, rgba(255, 201, 74, .05), transparent 28rem),
    linear-gradient(180deg, #020d20 0%, #03152a 44%, #000916 100%);
}

.gn-context-strip {
  position: relative;
  z-index: 9;
  border-bottom: 1px solid rgba(34, 217, 255, .14);
  background: linear-gradient(90deg, rgba(4, 43, 78, .82), rgba(6, 35, 61, .84), rgba(3, 53, 68, .78));
}
.gn-context-strip .wrap {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .45rem .9rem;
  color: #cde9f8;
  font-size: .78rem;
  letter-spacing: .04em;
}
.gn-context-strip strong {
  color: var(--gn-teal);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.gn-context-strip a {
  color: #fff;
  font-weight: 850;
}
.gn-context-strip a::after { content: " →"; color: var(--gn-cyan); }

.gn-announcement {
  border-bottom: 1px solid rgba(43, 228, 189, .18);
  background: linear-gradient(90deg, rgba(34, 217, 255, .12), rgba(43, 228, 189, .09), rgba(255, 201, 74, .07));
}
.gn-announcement .wrap {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  color: #dff9ff;
  text-align: center;
  font-size: .84rem;
  font-weight: 780;
}
.gn-announcement i {
  width: .62rem;
  height: .62rem;
  border-radius: 50%;
  background: var(--gn-teal);
  box-shadow: 0 0 0 5px rgba(43, 228, 189, .08), 0 0 22px rgba(43, 228, 189, .72);
}

.gn-hero {
  position: relative;
  padding: clamp(64px, 8vw, 112px) 0 clamp(66px, 8vw, 104px);
  overflow: hidden;
}
.gn-hero::before,
.gn-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(4px);
}
.gn-hero::before {
  width: 620px;
  height: 620px;
  top: -360px;
  left: 7%;
  background: radial-gradient(circle, rgba(34, 217, 255, .17), transparent 68%);
}
.gn-hero::after {
  width: 520px;
  height: 520px;
  right: -170px;
  bottom: -280px;
  background: radial-gradient(circle, rgba(43, 228, 189, .13), transparent 68%);
}
.gn-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .75fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
}
.gn-hero-copy h1 {
  max-width: 840px;
  margin-top: .3rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(4rem, 8.4vw, 8.6rem);
  font-weight: 700;
  letter-spacing: -.065em;
  line-height: .85;
  background: linear-gradient(180deg, #fff 0%, #f3fbff 58%, #9ccde5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 18px 70px rgba(0, 0, 0, .32);
}
.gn-hero-copy h1 span { display: block; }
.gn-hero-subtitle {
  margin-top: 1.2rem;
  color: #dcebf5;
  font-size: clamp(1.35rem, 2.3vw, 2.15rem);
  font-weight: 760;
  letter-spacing: -.025em;
}
.gn-hero-copy .lead { max-width: 760px; margin-top: 1.2rem; }
.gn-hero-line {
  display: inline-flex;
  margin-top: 1.25rem;
  color: var(--gn-teal);
  font-size: clamp(.8rem, 1.1vw, .96rem);
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.gn-hero-actions { display: flex; flex-wrap: wrap; gap: .78rem; margin-top: 2rem; }
.gn-hero-actions .btn { min-width: 176px; }
.gn-microproof {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.35rem;
}
.gn-microproof span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .48rem .72rem;
  border: 1px solid rgba(176, 222, 255, .15);
  border-radius: 999px;
  color: #b7d0e0;
  background: rgba(1, 18, 39, .56);
  font-size: .78rem;
}
.gn-microproof span::before {
  content: "";
  width: .46rem;
  height: .46rem;
  border-radius: 50%;
  background: var(--gn-teal);
  box-shadow: 0 0 14px rgba(43, 228, 189, .65);
}

.gn-brief-frame {
  position: relative;
  width: min(100%, 520px);
  justify-self: end;
  padding: 14px;
  border: 1px solid rgba(34, 217, 255, .26);
  border-radius: 34px;
  background: linear-gradient(160deg, rgba(7, 37, 66, .84), rgba(0, 9, 24, .96));
  box-shadow: var(--gn-shadow), 0 0 70px rgba(34, 217, 255, .12);
  transform: rotate(1.25deg);
}
.gn-brief-frame::before {
  content: "PUBLIC ARCHITECTURE BRIEF";
  position: absolute;
  z-index: 2;
  top: 28px;
  left: -34px;
  padding: .55rem .8rem;
  border: 1px solid rgba(43, 228, 189, .4);
  border-radius: 999px;
  color: #02162b;
  background: linear-gradient(135deg, var(--gn-cyan), var(--gn-teal));
  font-size: .66rem;
  font-weight: 950;
  letter-spacing: .13em;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .28);
}
.gn-brief-frame img { display: block; width: 100%; height: auto; border-radius: 23px; }
.gn-brief-frame figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem .55rem .3rem;
  color: #a9c3d5;
  font-size: .78rem;
}
.gn-brief-frame figcaption strong { color: #fff; }

.gn-definition-rail {
  position: relative;
  z-index: 3;
  margin: 0 auto;
  width: min(1240px, calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(176, 222, 255, .16);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(2, 21, 43, .82);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .31);
}
.gn-definition {
  min-height: 160px;
  padding: 24px;
  border-right: 1px solid rgba(176, 222, 255, .12);
}
.gn-definition:last-child { border-right: 0; }
.gn-definition small {
  display: block;
  color: var(--gn-teal);
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.gn-definition h2 { margin-top: .55rem; font-size: clamp(1.35rem, 2.2vw, 2.1rem); }
.gn-definition p { margin: .6rem 0 0; font-size: .92rem; }

.gn-section { position: relative; padding: clamp(68px, 8vw, 108px) 0; border-top: 1px solid rgba(176, 222, 255, .08); }
.gn-section-head { display: grid; gap: .9rem; margin-bottom: 2rem; }
.gn-section-head h2 { max-width: 900px; }
.gn-section-head p { max-width: 820px; font-size: 1.06rem; }
.gn-section-head.center { text-align: center; justify-items: center; }
.gn-section-head.center p { margin-inline: auto; }

.gn-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gn-product-card {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(176, 222, 255, .16);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(6, 35, 64, .86), rgba(1, 13, 31, .95));
  box-shadow: 0 20px 55px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.gn-product-card::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -72px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 217, 255, .14), transparent 68%);
}
.gn-product-visual {
  height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(176, 222, 255, .12);
  background: #000916;
}
.gn-product-visual img { width: 100%; height: 100%; object-fit: cover; }
.gn-product-card:nth-child(1) .gn-product-visual img { object-position: 50% 52%; }
.gn-product-card:nth-child(2) .gn-product-visual img { object-position: 50% 49%; }
.gn-product-card:nth-child(3) .gn-product-visual img,
.gn-product-card:nth-child(4) .gn-product-visual img { object-fit: contain; padding: 12px; }
.gn-product-body { position: relative; z-index: 1; display: flex; flex: 1; flex-direction: column; padding: 24px; }
.gn-product-role { color: var(--gn-teal); font-size: .7rem; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
.gn-product-card h3 { margin-top: .5rem; font-size: 1.35rem; }
.gn-product-card p { margin-top: .8rem; font-size: .92rem; }
.gn-product-status { display: inline-flex; align-self: flex-start; margin-top: auto; padding: .35rem .58rem; border: 1px solid rgba(255, 201, 74, .3); border-radius: 999px; color: #ffe09b; background: rgba(255, 201, 74, .07); font-size: .68rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.gn-product-link { display: inline-flex; margin-top: 1rem; color: #fff; font-weight: 900; }
.gn-product-link::after { content: " ↗"; color: var(--gn-cyan); }

.gn-architecture-grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.gn-architecture-preview {
  border: 1px solid rgba(34, 217, 255, .22);
  border-radius: 28px;
  overflow: hidden;
  background: #f8fbff;
  box-shadow: var(--gn-shadow);
}
.gn-architecture-preview img { display: block; width: 100%; height: auto; }
.gn-architecture-copy .lead { margin-bottom: 1.4rem; }
.gn-chain { display: grid; gap: 10px; }
.gn-chain-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 17px 18px;
  border: 1px solid rgba(176, 222, 255, .14);
  border-radius: 18px;
  background: rgba(3, 25, 50, .7);
}
.gn-chain-item:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 23px;
  bottom: -17px;
  z-index: 2;
  color: var(--gn-teal);
  font-weight: 950;
}
.gn-chain-index {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(34, 217, 255, .28);
  border-radius: 50%;
  color: var(--gn-cyan);
  background: rgba(34, 217, 255, .08);
  font-weight: 950;
}
.gn-chain-item h3 { margin: 0 0 .25rem; font-size: 1.04rem; }
.gn-chain-item p { margin: 0; font-size: .86rem; }
.gn-rule {
  margin-top: 1.2rem;
  padding: 18px 20px;
  border-left: 3px solid var(--gn-red);
  border-radius: 0 18px 18px 0;
  color: #ffe8e9;
  background: rgba(255, 123, 134, .08);
  font-size: 1.02rem;
  font-weight: 720;
}

.gn-provider {
  background:
    radial-gradient(circle at 90% 10%, rgba(34, 217, 255, .10), transparent 28rem),
    linear-gradient(180deg, rgba(0, 9, 24, .35), rgba(3, 25, 49, .42));
}
.gn-provider-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
}
.gn-provider-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 1.8rem; }
.gn-provider-card {
  padding: 22px;
  border: 1px solid rgba(176, 222, 255, .15);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(9, 43, 73, .78), rgba(1, 13, 31, .9));
}
.gn-provider-card:nth-child(1) { border-top-color: var(--gn-teal); }
.gn-provider-card:nth-child(2) { border-top-color: var(--gn-cyan); }
.gn-provider-card:nth-child(3) { border-top-color: var(--gn-gold); }
.gn-provider-card:nth-child(4) { border-top-color: #9db0ff; }
.gn-provider-card p { margin: .6rem 0 0; font-size: .88rem; }
.gn-provider-preview {
  border: 1px solid rgba(34, 217, 255, .22);
  border-radius: 28px;
  overflow: hidden;
  background: #03152a;
  box-shadow: var(--gn-shadow), 0 0 45px rgba(34, 217, 255, .08);
}
.gn-provider-preview img { display: block; width: 100%; height: auto; }

.gn-loop { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.gn-loop-step {
  position: relative;
  min-height: 190px;
  padding: 22px 18px;
  border: 1px solid rgba(176, 222, 255, .15);
  border-radius: 22px;
  background: rgba(4, 29, 55, .72);
}
.gn-loop-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -19px;
  color: var(--gn-teal);
  font-size: 1.45rem;
  font-weight: 950;
  transform: translateY(-50%);
}
.gn-loop-step strong { display: block; color: var(--gn-cyan); font-size: 1.7rem; }
.gn-loop-step h3 { margin-top: 1.4rem; font-size: 1.06rem; }
.gn-loop-step p { margin-top: .55rem; font-size: .84rem; }

.gn-document-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .56fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(43, 228, 189, .26);
  border-radius: 32px;
  background:
    radial-gradient(circle at 95% 0, rgba(43, 228, 189, .12), transparent 24rem),
    linear-gradient(135deg, rgba(5, 41, 71, .88), rgba(1, 15, 34, .96));
  box-shadow: var(--gn-shadow);
}
.gn-document-panel h2 { max-width: 760px; }
.gn-document-panel .hero-actions { margin-top: 1.5rem; }
.gn-document-cover { justify-self: end; width: min(100%, 290px); transform: rotate(2deg); }
.gn-document-cover img { display: block; width: 100%; border: 1px solid rgba(255,255,255,.15); border-radius: 18px; box-shadow: 0 22px 60px rgba(0,0,0,.42); }

.gn-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gn-status-card { padding: 24px; border: 1px solid rgba(176, 222, 255, .14); border-radius: 22px; background: rgba(3, 26, 51, .7); }
.gn-status-card strong { display: block; color: var(--gn-teal); font-family: Georgia, serif; font-size: 2.35rem; line-height: 1; }
.gn-status-card h3 { margin-top: .8rem; }
.gn-status-card p { margin-top: .6rem; }

.gn-page-hero { padding: clamp(68px, 8vw, 112px) 0 clamp(48px, 6vw, 80px); }
.gn-page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(270px, .55fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
.gn-page-hero h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(3.5rem, 7vw, 7rem); }
.gn-page-hero-card { padding: 26px; border: 1px solid rgba(34,217,255,.22); border-radius: 26px; background: rgba(2, 22, 44, .8); box-shadow: var(--gn-shadow); }
.gn-page-hero-card dl { margin: 0; display: grid; gap: 14px; }
.gn-page-hero-card div { padding-bottom: 14px; border-bottom: 1px solid rgba(176,222,255,.12); }
.gn-page-hero-card div:last-child { padding-bottom: 0; border-bottom: 0; }
.gn-page-hero-card dt { color: var(--gn-teal); font-size: .7rem; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.gn-page-hero-card dd { margin: .35rem 0 0; color: #fff; font-weight: 780; }

.gn-authority-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gn-authority-card { min-height: 230px; padding: 24px; border: 1px solid rgba(176,222,255,.14); border-radius: 22px; background: linear-gradient(160deg, rgba(6,38,68,.72), rgba(1,15,34,.9)); }
.gn-authority-card span { color: var(--gn-cyan); font-size: .7rem; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.gn-authority-card h3 { margin-top: .65rem; font-size: 1.15rem; }
.gn-authority-card p { margin-top: .7rem; font-size: .9rem; }

.gn-contract-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.gn-contract-card { padding: 26px; border: 1px solid rgba(176,222,255,.15); border-radius: 24px; background: rgba(3,28,54,.73); }
.gn-contract-card code { display: inline-flex; padding: .35rem .55rem; border: 1px solid rgba(43,228,189,.28); border-radius: 999px; color: var(--gn-teal); background: rgba(43,228,189,.07); font-size: .72rem; }
.gn-contract-card h3 { margin-top: 1rem; }
.gn-contract-card ul { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--gn-muted); }
.gn-contract-card li { margin: .42rem 0; }

.gn-two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gn-list-card { padding: 26px; border: 1px solid rgba(176,222,255,.14); border-radius: 24px; background: rgba(3,27,52,.72); }
.gn-list-card.good { border-top-color: var(--gn-teal); }
.gn-list-card.boundary { border-top-color: var(--gn-gold); }
.gn-list-card ul { margin: 1.1rem 0 0; padding: 0; list-style: none; }
.gn-list-card li { padding: .65rem 0; border-bottom: 1px solid rgba(176,222,255,.1); color: var(--gn-muted); }
.gn-list-card li:last-child { border-bottom: 0; }
.gn-list-card.good li::before { content: "✓"; margin-right: .58rem; color: var(--gn-teal); font-weight: 950; }
.gn-list-card.boundary li::before { content: "→"; margin-right: .58rem; color: var(--gn-gold); font-weight: 950; }

.gn-availability {
  margin-top: 1.5rem;
  padding: 18px 20px;
  border: 1px solid rgba(255, 201, 74, .28);
  border-radius: 18px;
  color: #ffe9b2;
  background: rgba(255, 201, 74, .07);
  font-size: .9rem;
}

@media (hover:hover) and (pointer:fine) {
  .gn-product-card,
  .gn-provider-card,
  .gn-authority-card,
  .gn-contract-card,
  .gn-status-card,
  .gn-loop-step { transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
  .gn-product-card:hover,
  .gn-provider-card:hover,
  .gn-authority-card:hover,
  .gn-contract-card:hover,
  .gn-status-card:hover,
  .gn-loop-step:hover { transform: translateY(-4px); border-color: rgba(34,217,255,.33); box-shadow: 0 24px 58px rgba(0,0,0,.25); }
}

@media (max-width: 1120px) {
  .gn-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gn-loop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gn-loop-step::after { display: none; }
  .gn-authority-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .gn-hero-grid,
  .gn-architecture-grid,
  .gn-provider-grid,
  .gn-document-panel,
  .gn-page-hero-grid { grid-template-columns: 1fr; }
  .gn-brief-frame { justify-self: start; width: min(100%, 500px); transform: none; }
  .gn-brief-frame::before { left: 22px; }
  .gn-definition-rail { grid-template-columns: 1fr; }
  .gn-definition { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(176,222,255,.12); }
  .gn-definition:last-child { border-bottom: 0; }
  .gn-provider-preview { max-width: 540px; }
  .gn-document-cover { justify-self: start; }
  .gn-contract-grid,
  .gn-status-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .gn-product-grid,
  .gn-provider-features,
  .gn-loop,
  .gn-authority-grid,
  .gn-two-column { grid-template-columns: 1fr; }
  .gn-product-card { min-height: 0; }
  .gn-product-visual { height: 170px; }
  .gn-hero-copy h1 { font-size: clamp(3.7rem, 18vw, 5.6rem); }
  .gn-hero-actions .btn { width: 100%; }
  .gn-context-strip .wrap { justify-content: flex-start; padding-block: .55rem; }
  .gn-context-strip span:not(.gn-context-label) { flex-basis: 100%; }
}
@media (max-width: 420px) {
  .gn-brief-frame { padding: 9px; border-radius: 24px; }
  .gn-brief-frame img { border-radius: 17px; }
  .gn-definition-rail { width: min(100% - 24px, 1240px); }
  .gn-document-panel { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .gn-brief-frame { transform: none; }
}
