/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TOKENS — Refined Dark-on-Light Theme
   Edmund Sparrow · Gnoke
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');
@import url('menu.css');

:root {
  /* — Surfaces — */
  --bg:         #fafaf8;
  --bg-card:    #ffffff;
  --bg-raised:  #f2f1ee;

  /* — Borders — */
  --border:     rgba(20,20,18,.08);
  --border-md:  rgba(20,20,18,.14);

  /* — Brand accent: deep forest green, rich not flat — */
  --teal:       #1a6b55;
  --teal-light: #2d9e7e;
  --teal-dim:   rgba(26,107,85,.08);
  --teal-glow:  rgba(26,107,85,.20);

  /* — Warm amber for secondary accents — */
  --amber:      #b45309;
  --amber-dim:  rgba(180,83,9,.09);

  /* — Ink — */
  --ink:        #141412;
  --t-90:       rgba(20,20,18,.90);
  --t-65:       rgba(20,20,18,.58);
  --t-40:       rgba(20,20,18,.38);
  --t-20:       rgba(20,20,18,.16);

  /* — Typography — */
  --f-head: 'DM Serif Display', Georgia, serif;
  --f-body: 'DM Sans', system-ui, sans-serif;

  /* — Shape — */
  --r:    10px;
  --r-lg: 16px;
  --ease: cubic-bezier(.4,0,.2,1);

  /* — Subtle grain texture overlay — */
  --grain: 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='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESET
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; overflow-x: hidden; }

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--t-90);
  line-height: 1.65;
  font-size: 16px;
  padding-top: 68px;
  overflow-x: hidden;
}

/* Subtle warm paper grain over the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  background-repeat: repeat;
  pointer-events: none;
  z-index: 10;
  opacity: 0.4;
}

a    { text-decoration:none; color:inherit; }
ul   { list-style:none; }
img  { max-width:100%; display:block; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ANIMATIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(28px); }
  to   { opacity:1; transform:translateY(0);    }
}

@keyframes pulse-ring {
  0%,100% { box-shadow: 0 0 0 0 var(--teal-glow); }
  50%      { box-shadow: 0 0 0 10px transparent; }
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BUTTONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-family: var(--f-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .26s var(--ease);
}

.btn-teal {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.btn-teal:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 8px 24px rgba(20,20,18,.15);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--t-65);
  border-color: var(--border-md);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION CHROME
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
section { padding: 5.5rem 0; }

.sec-label {
  font-family: var(--f-body);
  font-size: .71rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  text-align: center;
  margin-bottom: .6rem;
}

.sec-title {
  font-family: var(--f-head);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 400;
  font-style: normal;
  color: var(--ink);
  text-align: center;
  letter-spacing: -.01em;
  line-height: 1.15;
  margin-bottom: .8rem;
}

.sec-sub {
  text-align: center;
  color: var(--t-65);
  font-size: .97rem;
  font-weight: 400;
  max-width: 560px;
  margin: 0 auto 3.2rem;
  line-height: 1.75;
}

.divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PAGE HERO (inner pages)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.page-hero {
  padding: 3.5rem 0;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: center;
}

/* Decorative grid lines on page hero */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

/* Glow behind the heading */
.page-hero::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -5%;
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(26,107,85,.28) 0%, transparent 70%);
  pointer-events: none;
}

/* When background.js injects an image, text stays white */
.page-hero.has-bg .sec-label { color: rgba(255,255,255,.6); }
.page-hero.has-bg h1          { color: #fff; }
.page-hero.has-bg h1 span     { color: var(--teal-light); }
.page-hero.has-bg p            { color: rgba(255,255,255,.65); }

.page-hero .sec-label {
  text-align: left;
  color: var(--teal-light);
  margin-bottom: .4rem;
}

.page-hero h1 {
  font-family: var(--f-head);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-bottom: .5rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.page-hero h1 span { color: var(--teal-light); }

.page-hero p {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  max-width: 480px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HOME HERO
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Fine dot grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(20,20,18,.10) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Top-right glow */
.hero::after {
  content: '';
  position: absolute;
  top: -15%;
  right: -8%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(26,107,85,.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero-blob2 {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(180,83,9,.04) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  animation: fadeUp .7s .1s var(--ease) both;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px 5px 10px;
  border-radius: 50px;
  background: var(--teal-dim);
  border: 1px solid rgba(26,107,85,.22);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--teal);
  margin-bottom: 1.8rem;
  text-transform: uppercase;
}

.hero-badge i { font-size: .65rem; animation: pulse-ring 2s infinite; }

.hero h1 {
  font-family: var(--f-head);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 1.4rem;
}

.name-line {
  display: block;
  font-size: .55em;
  font-family: var(--f-body);
  font-weight: 300;
  color: var(--t-40);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}

.accent { color: var(--teal); font-style: italic; }

.hero-sub {
  font-size: 1.05rem;
  color: var(--t-65);
  line-height: 1.8;
  margin-bottom: 2.2rem;
  max-width: 580px;
  font-weight: 300;
}

.hero-sub strong { color: var(--ink); font-weight: 500; }

.hero-cta {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
}

.avail-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--t-40);
  letter-spacing: .04em;
}

.avail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-ring 2.2s infinite;
  flex-shrink: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TAGS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--t-65);
  letter-spacing: .04em;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   APPS / GNOKE SUITE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.gnoke-suite { background: var(--bg); }

.suite-intro {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}

.gnoke-logo-lg {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 8px;
  box-shadow: 0 4px 16px rgba(20,20,18,.14);
}

.gnoke-logo-lg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  /* Show natural cyan logo */
}

.suite-intro-text h2 {
  font-family: var(--f-head);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.01em;
}

.suite-intro-text p {
  font-size: .88rem;
  color: var(--t-40);
  margin-top: .2rem;
  letter-spacing: .04em;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color .26s, transform .26s var(--ease), box-shadow .26s;
}

.app-card:hover {
  border-color: rgba(26,107,85,.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(20,20,18,.07);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.app-status {
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
}

.status-live {
  background: rgba(26,107,85,.10);
  color: var(--teal);
  border: 1px solid rgba(26,107,85,.20);
}

.app-card h3 {
  font-family: var(--f-head);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: .3rem;
  letter-spacing: -.01em;
}

.app-card p {
  font-size: .86rem;
  color: var(--t-65);
  line-height: 1.65;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: .04em;
  transition: gap .2s var(--ease);
}

.app-link:hover { gap: 10px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SERVICES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.services { background: var(--bg-raised); }

.svcs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}

.svc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.6rem;
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}

.svc-card:hover {
  border-color: rgba(26,107,85,.22);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(20,20,18,.06);
}

.svc-icon {
  width: 46px;
  height: 46px;
  background: var(--teal-dim);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(26,107,85,.16);
}

.svc-card h3 {
  font-family: var(--f-head);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: .6rem;
  letter-spacing: -.01em;
}

.svc-card p {
  font-size: .87rem;
  color: var(--t-65);
  line-height: 1.65;
  margin-bottom: .9rem;
}

.svc-card ul li {
  font-size: .82rem;
  color: var(--t-65);
  padding: 3px 0 3px 16px;
  position: relative;
}

.svc-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: .75rem;
}

/* CTA box */
.cta-box {
  text-align: center;
  margin-top: 2.8rem;
  padding: 2.8rem 2rem;
  background: var(--ink);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(26,107,85,.25) 0%, transparent 65%);
  pointer-events: none;
}

.cta-box .sec-label {
  color: var(--teal-light);
  margin-bottom: .4rem;
  position: relative;
}

.cta-box h3 {
  font-family: var(--f-head);
  font-size: 1.7rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: -.01em;
  margin-bottom: .7rem;
  position: relative;
}

.cta-box p {
  color: rgba(255,255,255,.55);
  font-size: .95rem;
  max-width: 480px;
  margin: 0 auto 1.8rem;
  position: relative;
}

.cta-box .btn-teal {
  background: var(--teal-light);
  border-color: var(--teal-light);
  position: relative;
}

.cta-box .btn-teal:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   STACK
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.stack { background: var(--bg); }

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .8rem;
}

.stack-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.2rem 1rem;
  text-align: center;
  transition: border-color .22s, transform .22s var(--ease), box-shadow .22s;
}

.stack-item:hover {
  border-color: rgba(26,107,85,.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(20,20,18,.06);
}

.stack-item .s-icon { font-size: 1.4rem; margin-bottom: .45rem; }

.stack-item p {
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink);
}

.stack-item small {
  display: block;
  font-size: .7rem;
  color: var(--t-40);
  margin-top: 2px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CONTACT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.contact-section { background: var(--bg-raised); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-left h2 {
  font-family: var(--f-head);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.contact-left h2 span { color: var(--teal); font-style: italic; }

.contact-left p {
  font-size: .97rem;
  color: var(--t-65);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-links { display: flex; flex-direction: column; gap: .8rem; }

.c-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color .22s, transform .22s var(--ease), box-shadow .22s;
}

.c-link:hover {
  border-color: rgba(26,107,85,.28);
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(20,20,18,.05);
}

.c-link-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}

.c-link-icon.wa  { background: rgba(37,211,102,.10); color: #15803d; border: 1px solid rgba(37,211,102,.18); }
.c-link-icon.gm  { background: rgba(234,67,53,.09);  color: #b91c1c; border: 1px solid rgba(234,67,53,.16); }
.c-link-icon.gh  { background: rgba(20,20,18,.05); color: var(--t-65); border: 1px solid var(--border); }

.c-link-text small {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--t-40);
  margin-bottom: 1px;
}

.c-link-text span {
  font-size: .9rem;
  color: var(--t-90);
}

.contact-right {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.2rem;
}

.contact-right h3 {
  font-family: var(--f-head);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.f-group { margin-bottom: 1.1rem; }

.f-group label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--t-40);
  margin-bottom: .4rem;
}

.f-group input,
.f-group textarea,
.f-group select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border-md);
  border-radius: var(--r);
  font-family: var(--f-body);
  font-size: .93rem;
  color: var(--t-90);
  outline: none;
  -webkit-appearance: none;
  transition: border-color .22s, box-shadow .22s;
}

.f-group input::placeholder,
.f-group textarea::placeholder { color: var(--t-20); }

.f-group input:focus,
.f-group textarea:focus,
.f-group select:focus {
  border-color: rgba(26,107,85,.4);
  box-shadow: 0 0 0 3px var(--teal-dim);
}

.f-group textarea { min-height: 110px; resize: vertical; }

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* ── Support banner ── */
.support-banner {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.4rem 0;
  text-align: center;
}

.support-banner p {
  font-size: .82rem;
  color: rgba(255,255,255,.38);
  margin-bottom: .75rem;
  letter-spacing: .03em;
}

.support-banner p strong {
  color: rgba(255,255,255,.6);
  font-weight: 500;
}

.support-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.45);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: border-color .22s, color .22s;
}

.support-btn:hover {
  border-color: rgba(255,255,255,.35);
  color: rgba(255,255,255,.75);
}

footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 2rem 0;
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.55);
}

.foot-brand .gnoke-mark {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.08);
  border-radius: 7px;
  padding: 4px;
}

.foot-brand .gnoke-mark img {
  filter: none;
}

footer p { font-size: .78rem; color: rgba(255,255,255,.32); }

.foot-links { display: flex; gap: 1.4rem; align-items: center; }

.foot-links a {
  font-size: .88rem;
  color: rgba(255,255,255,.38);
  transition: color .2s;
}

/* Heart / Selar link gets a special pink treatment */
.foot-links a.selar-link {
  color: rgba(255,150,150,.5);
}

.foot-links a.selar-link:hover {
  color: #ff8080;
}

.foot-links a:hover { color: var(--teal-light); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SKELETON LOADER (gnoke.html inline)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-raised) 25%, #eae9e6 50%, var(--bg-raised) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PRINCIPLES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.principles-section { background: var(--bg); }

.p-opening { max-width: 720px; }

.p-lead {
  font-size: 1.02rem;
  color: var(--t-65);
  line-height: 1.85;
  font-weight: 300;
  margin-top: 1.2rem;
  max-width: 620px;
}

/* Three pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.8rem;
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}

.pillar:hover {
  border-color: rgba(26,107,85,.22);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(20,20,18,.06);
}

.pillar-number {
  font-family: var(--f-head);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--t-20);
  line-height: 1;
  margin-bottom: .9rem;
  font-style: italic;
}

.pillar h3 {
  font-family: var(--f-head);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.01em;
  margin-bottom: .7rem;
}

.pillar p {
  font-size: .88rem;
  color: var(--t-65);
  line-height: 1.75;
}

/* Who it serves */
.served-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .85rem;
}

.served-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color .22s;
}

.served-item:hover { border-color: rgba(26,107,85,.22); }

.served-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.served-item strong {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .25rem;
}

.served-item span {
  font-size: .82rem;
  color: var(--t-65);
  line-height: 1.6;
}

/* Collaboration block */
.collab-block {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.collab-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.3rem 1.2rem;
  text-align: center;
  min-width: 0; /* prevent overflow on narrow viewports */
}

.stat-num {
  display: block;
  font-family: var(--f-head);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--teal);
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: .3rem;
}

.stat-label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--t-40);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SCROLL REVEAL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .52s var(--ease),
    transform .52s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {
  body { padding-top: 64px; }

  .hero h1 { font-size: 2.4rem; }
  .hero-cta { flex-direction: column; }
  .btn { justify-content: center; }

  .contact-layout { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .collab-block { grid-template-columns: 1fr; gap: 2rem; }
  .collab-stats { grid-template-columns: repeat(2, 1fr); }

  .foot-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .apps-grid { grid-template-columns: 1fr; }
  .svcs-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: repeat(3, 1fr); }
  /* Prevent mission page from triggering viewport zoom */
  .collab-stats { grid-template-columns: repeat(2, 1fr); }
  .collab-block { grid-template-columns: 1fr; gap: 1.6rem; }
  .pillars-grid { grid-template-columns: 1fr; }
  .served-grid { grid-template-columns: 1fr; }
}
