/* Gestalt Reliance Systems — two-tone (navy / ivory) institutional site.
   Deliberately theme-committed: identical look in light and dark viewers. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/CormorantGaramond-600.woff2") format("woff2");
}

:root {
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Iowan Old Style", Charter, Cambria, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Navy palette is the default (used by the top-level header, footer, and s-navy bands). */
  --ink: #A9B6C3; --head: #F0E8DE; --muted: #C6A079; --accent: #D8A377;
  --hairline: #2A3E52; --card: #1B3247; --cardln: #33475C;
}

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: #F0E8DE; color: #14293D; padding: .65rem 1.1rem; font: 600 .85rem var(--sans); border-radius: 0 0 4px 0; }
.skip-link:focus { left: 0; }

/* Fine film grain over the whole page — subtle tactile depth, not an effect. */
.grain { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; opacity: .09; mix-blend-mode: soft-light; }
.grain rect { width: 100%; height: 100%; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: #14293D; color: #AAB6C2; font-family: var(--sans);
  font-size: 17px; line-height: 1.62; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
.serif { font-family: var(--serif); }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.75rem); }
img { max-width: 100%; }

/* ---- Band palettes ---- */
.s-navy {
  --ink: #A9B6C3; --head: #F0E8DE; --muted: #C6A079; --accent: #D8A377;
  --hairline: #2A3E52; --card: #1B3247; --cardln: #33475C;
  background: #14293D; color: var(--ink);
}
.s-ivory {
  --ink: #6B5E50; --head: #1B3A5C; --muted: #715A2E; --accent: #8A4E28;
  --hairline: #DFD6C7; --card: #F8F4EC; --cardln: #E6DCCC;
  background: #F1EBDF; color: var(--ink);
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent, #D8A377); outline-offset: 3px; border-radius: 2px; }

/* ---- Header (static, over the navy hero) ---- */
.top { padding-top: 30px; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lockup { display: inline-flex; align-items: center; gap: 13px; }
.lockup .mk { height: 30px; width: auto; display: block; }
.lockup .wm { height: 17px; width: auto; display: block; }
@media (max-width: 560px) { .lockup .mk { height: 24px; } .lockup .wm { height: 13px; } }
@media (max-width: 400px) { .top-inner { gap: .6rem; } .lockup { gap: 9px; } .lockup .mk { height: 22px; } .lockup .wm { height: 11px; } .top { padding-top: 22px; } }
.nav-link { font-size: .8rem; letter-spacing: .05em; color: var(--ink); position: relative; white-space: nowrap; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.3rem; height: 1px; background: var(--accent); transition: right .3s ease; }
.nav-link:hover { color: var(--head); } .nav-link:hover::after { right: 0; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.hero .wrap { position: relative; z-index: 1; }
.hero-mark { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); width: min(34vw, 400px); height: auto; opacity: .13; pointer-events: none; z-index: 0; user-select: none; }
@media (max-width: 860px) { .hero-mark { right: -28%; width: 92vw; opacity: .06; } }
.eyebrow { font-size: .74rem; text-transform: uppercase; letter-spacing: .17em; color: var(--muted); font-weight: 600; margin: 0 0 1.5rem; }
h1.hero-title { margin: 0 0 1.7rem; font-weight: 600; font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.02em; color: var(--head); text-wrap: balance; max-width: 15ch; }
.hero-sub { margin: 0 0 2rem; max-width: 42ch; font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.55; color: var(--ink); }
.cta { display: inline-flex; align-items: center; gap: .55rem; font-size: .92rem; font-weight: 600; letter-spacing: .01em; color: var(--accent); }
.cta .arrow { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.cta:hover .arrow { transform: translateX(5px); }

/* ---- Generic section ---- */
section { padding-block: clamp(3.6rem, 7.5vw, 7rem); }
.section-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .17em; color: var(--muted); font-weight: 600; margin: 0 0 1.6rem; display: flex; align-items: center; gap: .7rem; }
.section-label::before { content: ""; width: 22px; height: 1px; background: var(--accent); flex: none; }
h2.section-head { margin: 0 0 1.4rem; font-weight: 600; font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--head); text-wrap: balance; max-width: 20ch; }
.section-intro { max-width: 58ch; margin: 0; font-size: 1.06rem; line-height: 1.55; color: var(--ink); }
.prose { max-width: 60ch; } .prose p { margin: 0 0 1.1rem; color: var(--ink); font-size: 1.06rem; } .prose p:last-child { margin-bottom: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 780px) { .two-col { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---- Focus cards ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.6rem; }
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--cardln); border-left: 3px solid var(--accent); border-radius: 4px; padding: 1.5rem 1.5rem 1.6rem; transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px -16px rgba(0,0,0,.45); }
.card h3 { margin: 0 0 .7rem; font-size: 1.06rem; font-weight: 600; color: var(--head); letter-spacing: -0.005em; }
.card p { margin: 0; font-size: .96rem; line-height: 1.55; color: var(--ink); }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.8rem; }
@media (max-width: 880px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1.5rem; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 1px solid var(--hairline); padding-top: 1rem; }
.step .num { font-family: var(--serif); font-size: 1.4rem; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; display: block; margin-bottom: .8rem; }
.step h3 { margin: 0 0 .5rem; font-size: 1.02rem; font-weight: 600; color: var(--head); }
.step p { margin: 0; font-size: .93rem; line-height: 1.5; color: var(--ink); }

/* ---- Beliefs ---- */
.beliefs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem); margin-top: 2.6rem; }
@media (max-width: 720px) { .beliefs { grid-template-columns: 1fr; gap: 1.9rem; } }
.belief h3 { margin: 0 0 .6rem; font-weight: 600; font-size: 1.22rem; line-height: 1.2; color: var(--head); letter-spacing: -0.005em; }
.belief p { margin: 0; font-size: .98rem; line-height: 1.55; color: var(--ink); }

/* ---- Contact ---- */
.mail { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 600; color: var(--head); letter-spacing: -0.01em; background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s ease, color .3s ease; }
.mail:hover, .mail:focus-visible { color: var(--accent); background-size: 100% 1px; }
.contact-block .mail { display: inline-block; margin-top: 1.4rem; }

/* ---- Footer (navy) ---- */
footer { padding-block: 2.6rem; background: #14293D; color: #8A97A5; border-top: 1px solid #2A3E52; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; justify-content: space-between; }
.foot-lock { display: inline-flex; align-items: center; gap: 11px; }
.foot-lock .mk { height: 24px; width: auto; }
.foot-lock .wm { height: 13px; width: auto; opacity: .92; }
.foot-inner p { margin: 0; font-size: .8rem; color: #9AA7B4; font-style: italic; }

/* ---- Motion ---- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero-anim { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2,.6,.2,1) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .32s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-anim { opacity: 1 !important; transform: none !important; animation: none !important; }
  .cta .arrow, .card, .mail { transition: none !important; }
}
