/* =============================================================
   Connecting — Shared Design System
   ============================================================= */

/* ── Variables ── */
:root {
  --w:    #FFFFFF;
  --w2:   #F5F4F1;
  --w3:   #ECEAE6;
  --ink:  #111111;
  --k2:   #555555;
  --k3:   #999999;
  --ln:   #E2E0DC;
  --f:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --f-display: 'Playfair Display', Georgia, serif;
  --ease: cubic-bezier(.16,1,.3,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  background: var(--w);
  color: var(--ink);
  font-family: var(--f);
  font-size: 16.5px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  font-feature-settings: 'kern' 1, 'liga' 1;
}
a      { color: inherit; text-decoration: none; }
button { border: none; background: none; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, select, textarea { font: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-thumb { background: var(--ink); }

/* ── Progress Bar ── */
#bar {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0;
  background: var(--ink);
  z-index: 9999;
  transition: width .08s linear;
}

/* ── Preloader ── */
#pre {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
#pre-w {
  font-size: clamp(1.3rem,3.5vw,2.1rem);
  font-weight: 300;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--w);
  opacity: 0;
}

/* ── Navigation ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  height: 60px;
  padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .3s, border-color .3s;
}
@media(min-width:768px)  { nav { padding: 0 40px; height: 68px; } }
@media(min-width:1100px) { nav { padding: 0 72px; } }

nav.on {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ln);
}

.n-logo {
  font-size: .95rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--w); transition: color .3s;
  font-family: var(--f);
}
nav.on .n-logo, nav.lt .n-logo { color: var(--ink); }

.n-links { display: none; gap: 32px; list-style: none; }
.n-links a {
  font-size: .65rem; letter-spacing: .15em;
  text-transform: uppercase; font-weight: 500;
  color: rgba(255,255,255,.55); transition: color .25s;
  font-family: var(--f);
}
nav.on .n-links a, nav.lt .n-links a { color: var(--k2); }
.n-links a:hover { color: var(--ink) !important; }

.n-cta-d { display: none; }
@media(min-width:900px) {
  .n-links { display: flex; }
  .n-cta-d {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .68rem; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase;
    background: var(--ink); color: var(--w);
    padding: 9px 20px;
    transition: opacity .25s;
  }
  nav.on .n-cta-d { background: var(--ink); color: var(--w); }
  .n-cta-d:hover { opacity: .75; }
}

.ham { display: flex; flex-direction: column; gap: 5px; padding: 11px 8px; min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
.ham span {
  display: block; width: 20px; height: 1.5px;
  background: var(--w);
  transition: transform .28s, opacity .28s, background .3s;
}
nav.on .ham span, nav.lt .ham span { background: var(--ink); }
.ham.x span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ham.x span:nth-child(2) { opacity: 0; }
.ham.x span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media(min-width:900px) { .ham { display: none; } }

/* ── Mobile Menu ── */
.mob {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 800;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.mob.on { opacity: 1; pointer-events: all; }
.mob a {
  font-size: clamp(1.4rem,4.9vw,2.24rem);
  font-weight: 300; letter-spacing: .04em;
  color: rgba(255,255,255,.45);
  padding: 10px 24px; display: block;
  transition: color .25s;
}
.mob a:hover { color: var(--w); }
.mob-gs {
  color: var(--w) !important;
  font-size: clamp(1rem,4vw,1.4rem) !important;
  margin-top: 16px;
  text-decoration: underline; text-underline-offset: 4px;
}

/* ── Section Layout ── */
.sec { padding: clamp(36px,5.5vw,64px) 20px; }
@media(min-width:768px)  { .sec { padding-left: 40px;  padding-right: 40px;  } }
@media(min-width:1100px) { .sec { padding-left: 72px;  padding-right: 72px;  } }

.label {
  font-size: .6rem; letter-spacing: .25em;
  text-transform: uppercase; font-weight: 600;
  color: var(--k3); margin-bottom: 16px;
  font-family: var(--f);
  display: inline-flex; align-items: center; gap: 10px;
}
.label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1.5px;
  background: currentColor;
  flex-shrink: 0;
  opacity: .5;
}
.s-h {
  font-family: var(--f-display);
  font-size: clamp(1.8rem,3.8vw,3.85rem);
  font-weight: 700; line-height: 1.06;
  letter-spacing: -.02em; color: var(--ink);
}
.s-h i { font-style: italic; font-weight: 400; }
.rule { width: 36px; height: 2px; background: var(--ink); margin: 22px 0; opacity: .15; }

/* ── Reveal Animation ── */
.r {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.r.v { opacity: 1; transform: none; }

/* ── Buttons ── */
.btn-wh {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--w); color: var(--ink);
  font-family: var(--f);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  padding: 15px 28px; min-height: 52px;
  transition: opacity .25s, transform .22s;
}
.btn-wh:hover  { opacity: .85; transform: translateY(-2px); }
.btn-wh:active { transform: scale(.97); }

.btn-ol {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.55);
  font-family: var(--f);
  font-size: .72rem; font-weight: 400;
  letter-spacing: .13em; text-transform: uppercase;
  padding: 15px 28px; min-height: 52px;
  transition: border-color .25s, color .25s, transform .22s;
}
.btn-ol:hover  { border-color: rgba(255,255,255,.6); color: var(--w); transform: translateY(-2px); }
.btn-ol:active { transform: scale(.97); }

.btn-dk {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--w);
  font-family: var(--f);
  font-size: .7rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  padding: 14px 28px; min-height: 50px;
  transition: opacity .25s, transform .22s;
}
.btn-dk:hover  { opacity: .85; transform: translateY(-2px); }
.btn-dk:active { transform: scale(.97); }

/* ── Form Elements ── */
.form { display: flex; flex-direction: column; gap: 14px; }
.f-row { display: flex; flex-direction: column; gap: 14px; }
@media(min-width:540px) { .f-row { flex-direction: row; } }
.f-g { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.f-g label {
  font-size: .6rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--k3); font-weight: 500;
}
.f-g input,
.f-g select,
.f-g textarea {
  background: var(--w2); border: 1px solid var(--ln);
  color: var(--ink); padding: 13px 14px;
  font-size: .87rem; font-family: var(--f); font-weight: 400;
  outline: none; -webkit-appearance: none; border-radius: 0;
  min-height: 50px; width: 100%;
  transition: border-color .25s, background .25s;
}
.f-g select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  padding-right: 36px; cursor: pointer;
}
.f-g select option     { background: var(--w); color: var(--ink); }
.f-g input:focus,
.f-g select:focus,
.f-g textarea:focus    { border-color: var(--ink); background: var(--w); }
.f-g textarea          { resize: none; min-height: 108px; }
.f-g input::placeholder,
.f-g textarea::placeholder { color: var(--k3); }
.f-chk {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: .73rem; color: var(--k3); line-height: 1.65; font-weight: 300;
}
.f-chk input[type="checkbox"] {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--ink); cursor: pointer;
}
.btn-sub {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%;
  background: var(--ink); color: var(--w);
  font-family: var(--f); font-size: .7rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 16px 36px; border: none; min-height: 54px;
  transition: opacity .25s, transform .22s;
}
.btn-sub:hover    { opacity: .8; transform: translateY(-2px); }
.btn-sub:active   { transform: scale(.97); }
.btn-sub:disabled { opacity: .4; transform: none; }
.f-msg {
  font-size: .82rem; color: var(--ink);
  display: none; padding: 12px 16px;
  border: 1px solid var(--ln); background: var(--w2); font-weight: 400;
}
.f-msg.show { display: block; }
.f-msg.err  { color: #a03030; border-color: rgba(160,48,48,.2); background: rgba(160,48,48,.04); }

/* ── Footer ── */
footer {
  background: var(--ink);
  padding: clamp(40px,6vw,64px) 20px;
}
@media(min-width:768px)  { footer { padding-left: 40px; padding-right: 40px; } }
@media(min-width:1100px) { footer { padding-left: 72px; padding-right: 72px; } }

.ft-g { display: flex; flex-direction: column; gap: 36px; margin-bottom: 36px; }
@media(min-width:768px) {
  .ft-g  { flex-direction: row; gap: 48px; }
  .ft-bc { flex: 2; }
  .ft-col{ flex: 1; }
}
.ft-logo { font-size: 1.1rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--w); margin-bottom: 10px; font-family: var(--f); }
.ft-d    { font-size: .77rem; color: rgba(255,255,255,.28); line-height: 1.8; max-width: 220px; font-weight: 300; }
.ft-col h3 { font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 14px; font-weight: 500; font-family: var(--f); }
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.ft-col li a { font-size: .78rem; color: rgba(255,255,255,.3); transition: color .25s; font-weight: 300; display: block; padding: 2px 0; }
.ft-col li a:hover { color: var(--w); }
.ft-base {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 20px;
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 10px;
}
.ft-copy { font-size: .64rem; color: rgba(255,255,255,.2); letter-spacing: .05em; font-weight: 300; }
.ft-leg a { font-size: .64rem; color: rgba(255,255,255,.2); margin-left: 16px; transition: color .25s; }
.ft-leg a:hover { color: var(--w); }

/* ── Skip Link ── */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--ink); color: var(--w);
  padding: 10px 18px; font-size: .75rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  z-index: 10001; text-decoration: none;
  border: 2px solid rgba(255,255,255,.3);
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; outline: none; }

/* ── Back to Top ── */
.to-top {
  position: fixed; bottom: 24px; right: 20px;
  width: 42px; height: 42px;
  background: var(--ink); color: var(--w);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; line-height: 1;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .25s;
  z-index: 500;
}
.to-top.show { opacity: 1; pointer-events: all; }
.to-top:hover { transform: translateY(-3px); }
@media(min-width:768px){ .to-top { bottom: 32px; right: 32px; } }

/* ── Active Nav Link ── */
nav:not(.on) .n-links a.nav-active { color: var(--w) !important; opacity: 1; }
nav.on      .n-links a.nav-active,
nav.lt      .n-links a.nav-active { color: var(--ink) !important; }

/* ── Focus Visible ── */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
a:focus-visible,
button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.mob a:focus-visible,
.gs-trust a:focus-visible,
footer a:focus-visible,
#foundation a:focus-visible,
#cta-band a:focus-visible,
#hero a:focus-visible { outline-color: var(--w); }

/* ── Field errors ── */
.f-err {
  font-size: .68rem; color: #b03030;
  margin-top: 4px; display: block;
  letter-spacing: .02em;
}
.f-g.invalid input,
.f-g.invalid select,
.f-g.invalid textarea { border-color: #b03030; background: rgba(176,48,48,.04); }

/* ── Cookie Consent Banner ── */
#cc-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 20px;
  z-index: 9000;
  transform: translateY(100%);
  transition: transform .38s cubic-bezier(.16,1,.3,1);
}
#cc-banner.cc-show { transform: translateY(0); }
@media(min-width:768px)  { #cc-banner { padding: 18px 40px; } }
@media(min-width:1100px) { #cc-banner { padding: 18px 72px; } }

.cc-inner {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 1200px; margin: 0 auto;
}
@media(min-width:720px) {
  .cc-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
}
.cc-text {
  font-size: .78rem; color: rgba(255,255,255,.5);
  line-height: 1.75; font-weight: 300;
}
.cc-text strong {
  display: block; font-size: .58rem; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.3);
  font-weight: 500; margin-bottom: 5px;
}
.cc-text a {
  color: rgba(255,255,255,.4); text-decoration: underline;
  text-underline-offset: 3px; margin-left: 5px;
  transition: color .2s;
}
.cc-text a:hover { color: var(--w); }
.cc-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cc-btn-decline {
  font-size: .62rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.45);
  padding: 9px 18px; min-height: 38px;
  transition: border-color .25s, color .25s;
}
.cc-btn-decline:hover { border-color: rgba(255,255,255,.5); color: var(--w); }
.cc-btn-accept {
  font-size: .62rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--w); color: var(--ink);
  padding: 9px 20px; min-height: 38px;
  transition: opacity .25s;
}
.cc-btn-accept:hover { opacity: .85; }

/* Push back-to-top above banner when banner is open */
#cc-banner.cc-show ~ .to-top,
body:has(#cc-banner.cc-show) .to-top { bottom: calc(24px + 72px); }
@media(min-width:768px) {
  body:has(#cc-banner.cc-show) .to-top { bottom: calc(32px + 64px); }
}

/* ── iOS input zoom prevention (font-size < 16px triggers auto-zoom on Safari) ── */
@media(max-width:768px){
  .f-g input,
  .f-g select,
  .f-g textarea { font-size: 16px; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .r { opacity: 1; transform: none; }
  #cc-banner { transition: none; }
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM FEATURES — Page Transition · Cursor · Grain
═══════════════════════════════════════════════════════════ */

/* ── Page Transition Overlay ── */
#pg-trans {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 10001;
  will-change: transform;
  transform: translateY(100%);
}
/* When arriving from a transition: cover screen before JS runs */
.pgt-active #pg-trans { transform: translateY(0) !important; pointer-events: all; }

#pg-trans.pgt-in {
  pointer-events: all;
  animation: pgtIn .62s cubic-bezier(.76,0,.24,1) forwards;
}
#pg-trans.pgt-out {
  animation: pgtOut .62s cubic-bezier(.76,0,.24,1) forwards;
}
@keyframes pgtIn  { 0%{transform:translateY(100%)} 100%{transform:translateY(0)} }
@keyframes pgtOut { 0%{transform:translateY(0)}    100%{transform:translateY(-100%)} }


/* ── Film Grain Texture (dark sections) ── */
/* Ensure positioning context for grain pseudo-elements */
#foundation { position: relative; overflow: hidden; }
footer      { position: relative; overflow: hidden; }
#why-ro     { position: relative; }

/* Keep content above grain layer */
#foundation .mvv-head,
#foundation .mvv-g,
.why-g,
footer .ft-g,
footer .ft-base { position: relative; z-index: 1; }

/* Grain overlay — all dark hero/feature sections */
#hero::after,
.pg-hero::after,
#why-ro::after,
#foundation::after,
footer::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: .052;
  pointer-events: none; z-index: 0;
}

/* ── Reduced motion: disable page transition animation ── */
@media (prefers-reduced-motion: reduce) {
  #pg-trans.pgt-in,
  #pg-trans.pgt-out { animation-duration: .01ms !important; }
}

/* ── Sub-page Hero Banner ── */
.pg-hero {
  min-height: 240px;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 84px 20px 48px;
  position: relative; overflow: hidden;
}
@media(min-width:768px)  { .pg-hero { padding: 92px 40px 56px; min-height: 300px; } }
@media(min-width:1100px) { .pg-hero { padding: 108px 72px 64px; } }
.pg-hero::before {
  content:''; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(150deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
}
.pg-tag {
  font-size:.58rem; letter-spacing:.28em; text-transform:uppercase;
  color:rgba(255,255,255,.32); font-weight:600; margin-bottom:20px;
  font-family:var(--f); position:relative; z-index:1;
  display:flex; align-items:center; gap:12px;
}
.pg-tag::before { content:''; width:20px; height:1px; background:rgba(255,255,255,.22); flex-shrink:0; }
.pg-title {
  font-family: var(--f-display);
  font-size: clamp(2.4rem,5.5vw,5.6rem);
  font-weight: 400; line-height: .93;
  letter-spacing: -.03em; color: var(--w);
  position: relative; z-index: 1;
}
.pg-title i { font-style:italic; font-weight:400; color:rgba(255,255,255,.62); }
.pg-sub {
  font-size: .9rem; font-weight: 300; color: rgba(255,255,255,.42);
  line-height: 1.9; max-width: 520px;
  margin-top: 22px; position: relative; z-index: 1;
  font-family: var(--f);
}

/* ── CTA Band (shared across all pages) ── */
.cta-inner { display:flex; flex-direction:column; gap:32px; }
@media(min-width:700px){ .cta-inner { flex-direction:row; align-items:center; justify-content:space-between; } }
.cta-copy {
  font-family:var(--f-display);
  font-size:clamp(1.25rem,2.45vw,2.24rem);
  font-weight:600; color:var(--w); line-height:1.12;
  letter-spacing:-.02em;
}
.cta-copy i { font-style:italic; font-weight:400; }
.cta-sub {
  display:block; font-size:.82rem; font-weight:300;
  color:rgba(255,255,255,.45); letter-spacing:.02em;
  margin-top:14px; font-style:normal; line-height:1.75;
  font-family:var(--f);
}
.cta-btn { flex-shrink:0; }
