/* =========================================================================
   Great Lakes Realty — demo site
   Brand system carried over from the live site:
   near-black #0a0a0a · cream #f5f0e6 · brass #d4af37 / #f5e1a8
   Georgia serif (display/body) · Helvetica sans (eyebrows/nav)
   ========================================================================= */

:root {
  /* Great Lakes navy — matched to the ship logo; cream + brass unchanged */
  --ink:        #0a1322;
  --ink-2:      #0f1b2e;
  --cream:      #f5f0e6;
  --cream-dim:  rgba(245, 240, 230, 0.72);
  --cream-faint:rgba(245, 240, 230, 0.5);
  --brass:      #d4af37;
  --brass-lite: #f5e1a8;
  --rail-w:     150px;
  --serif:      Georgia, 'Times New Roman', serif;
  --sans:       Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--serif);
  overflow-x: hidden;
  padding-right: var(--rail-w);            /* clear the fixed rail */
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* shared type helpers ----------------------------------------------------- */
.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.4rem;
}

/* =========================================================================
   Glass menu rail
   ========================================================================= */
.rail {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: var(--rail-w);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.25rem 1rem 2rem;
  gap: 2.5rem;
  background: linear-gradient(to left, rgba(16,28,48,0.4) 0%, rgba(9,17,32,0.3) 100%);
  backdrop-filter: blur(40px) saturate(220%) brightness(1.08);
  -webkit-backdrop-filter: blur(40px) saturate(220%) brightness(1.08);
  border-left: 1px solid rgba(255,255,255,0.22);
  box-shadow:
    -24px 0 60px -12px rgba(0,0,0,0.7),
    inset 0 1px 0 0 rgba(255,255,255,0.5),
    inset 1px 0 0 0 rgba(255,255,255,0.32),
    inset 4px 0 0 -3px rgba(245,225,168,0.5);
  overflow: hidden;
}
.rail::after {           /* soft specular catch, top-left */
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 18% 5%, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.04) 22%, transparent 42%);
}
.rail > * { position: relative; z-index: 1; }

.rail-brand { display: block; line-height: 0; }
.rail-brand img {
  height: 104px; width: auto; display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.85)) drop-shadow(0 0 12px rgba(212,175,55,0.28));
  transition: transform 0.4s ease, filter 0.4s ease;
}
.rail-brand:hover img {
  transform: translateY(-2px);
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.9)) drop-shadow(0 0 18px rgba(212,175,55,0.45));
}

.rail-nav { display: flex; flex-direction: column; gap: 1.6rem; align-items: center; width: 100%; }
.rail-nav a {
  position: relative;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  opacity: 0.92;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
  transition: color 0.25s ease, opacity 0.25s ease;
  padding-bottom: 4px;
}
.rail-nav a::after {
  content: '';
  position: absolute; left: 50%; bottom: 0;
  width: 22px; height: 1px; transform: translateX(-50%) scaleX(0);
  background: linear-gradient(90deg, var(--brass), var(--brass-lite));
  box-shadow: 0 0 8px rgba(212,175,55,0.6);
  transition: transform 0.28s ease;
}
.rail-nav a:hover,
.rail-nav a.active { color: var(--brass-lite); opacity: 1; }
.rail-nav a:hover::after,
.rail-nav a.active::after { transform: translateX(-50%) scaleX(1); }

.rail-tag {
  margin-top: auto;
  font-family: var(--sans);
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cream-faint);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #000;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 32%;
}
/* cinematic scrim — darkens bottom + left so beats read, keeps the sky clean */
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,13,24,0.78) 0%, rgba(7,13,24,0.34) 34%, rgba(7,13,24,0) 62%),
    linear-gradient(0deg, rgba(7,13,24,0.82) 0%, rgba(7,13,24,0.25) 30%, rgba(7,13,24,0) 58%),
    radial-gradient(120% 80% at 50% 0%, rgba(7,13,24,0.4) 0%, transparent 45%);
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* progress bar across the top of the hero */
.hero-progress {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: rgba(245,240,230,0.08); z-index: 6;
}
.hero-progress span {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: left center;
  background: linear-gradient(90deg, var(--brass) 0%, var(--brass-lite) 50%, var(--brass) 100%);
  box-shadow: 0 0 10px rgba(212,175,55,0.55);
}

/* --- pitch beats --- */
.beats {
  position: absolute;
  left: clamp(1.5rem, 6vw, 6rem);
  bottom: clamp(3rem, 12vh, 9rem);
  width: min(46vw, 620px);
  z-index: 7;
}
.beat {
  position: absolute; left: 0; bottom: 0;
  opacity: 0; visibility: hidden;
  pointer-events: none;
}
.beat.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.beat-eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--brass-lite);
  margin-bottom: 1.1rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}
.beat-rule {
  display: block; width: 44px; height: 1px; margin-bottom: 1.4rem;
  background: linear-gradient(90deg, var(--brass), rgba(212,175,55,0));
}
.beat-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0.005em;
  color: var(--cream);
  text-shadow: 0 4px 38px rgba(0,0,0,0.85), 0 2px 10px rgba(0,0,0,0.6);
  max-width: 14ch;
}
.beat-body {
  margin-top: 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--cream-dim);
  text-shadow: 0 2px 16px rgba(0,0,0,0.8);
  max-width: 34ch;
}
.beat-button {
  display: inline-block;
  margin-top: 1.8rem;
  padding: 0.95rem 2rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--brass);
  text-decoration: none;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.beat-button:hover {
  background: var(--brass-lite);
  box-shadow: 0 0 30px rgba(212,175,55,0.5);
  transform: translateY(-1px);
}

/* scroll cue */
.hero-cue {
  position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%);
  z-index: 7; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--cream-dim); text-decoration: none;
  transition: opacity 0.4s ease;
}
.hero-cue-arrow { font-size: 1.1rem; color: var(--brass); animation: cueBounce 2s ease-in-out infinite; }
@keyframes cueBounce { 0%,100%{ transform: translateY(0); opacity:0.7;} 50%{ transform: translateY(6px); opacity:1;} }

/* =========================================================================
   Expertise
   ========================================================================= */
.expertise {
  padding: clamp(4rem, 10vw, 9rem) clamp(1.5rem, 6vw, 6rem);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212,175,55,0.06) 0%, transparent 50%),
    var(--ink);
  border-bottom: 1px solid rgba(212,175,55,0.12);
}
.expertise-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(2rem, 5vw, 5rem);
  max-width: 1180px;
}
.expertise-item {
  display: flex;
  gap: 1.6rem;
  align-items: baseline;
  padding: clamp(1.6rem, 2.6vw, 2.2rem) 0;
  border-top: 1px solid rgba(212,175,55,0.16);
}
.expertise-item-wide { grid-column: 1 / -1; }
.expertise-num {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--brass);
  min-width: 2.4rem;
  text-align: right;
  flex-shrink: 0;
}
.expertise-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  color: var(--cream);
  margin-bottom: 0.55rem;
}
.expertise-body p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--cream-dim);
  max-width: 52ch;
}

/* =========================================================================
   Collections
   ========================================================================= */
.collections { padding: clamp(4rem, 10vw, 9rem) clamp(1.5rem, 6vw, 6rem); }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; color: var(--cream);
  margin-bottom: 1.3rem;
}
.section-head .lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--cream-dim);
  font-style: italic; max-width: 56ch;
}

.card-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.card {
  position: relative; display: block; text-decoration: none; overflow: hidden;
  border: 1px solid rgba(212,175,55,0.16);
  background: var(--ink-2);
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.card-img {
  position: relative;
  height: clamp(220px, 26vw, 340px);
  overflow: hidden;
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.9s cubic-bezier(0.2,0.7,0.2,1);
}
.card-img::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(9,17,30,0) 40%, rgba(9,17,30,0.55) 100%);
}
.card:hover { border-color: rgba(212,175,55,0.5); transform: translateY(-4px); box-shadow: 0 28px 60px -28px rgba(0,0,0,0.85); }
.card:hover .card-img img { transform: scale(1.05); }

/* non-clickable offering cards: no link affordance */
.card-static { cursor: default; }
.card-static:hover { border-color: rgba(212,175,55,0.16); transform: none; box-shadow: none; }
.card-static:hover .card-img img { transform: none; }
.card-static .card-body p:last-child { margin-bottom: 0; }
.card-body { padding: 1.8rem 1.9rem 2rem; }
.card-eyebrow {
  font-family: var(--sans); font-size: 0.64rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 0.8rem;
}
.card-body h3 {
  font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: var(--cream); margin-bottom: 0.6rem;
}
.card-body p { font-size: 0.98rem; line-height: 1.6; color: var(--cream-dim); margin-bottom: 1.2rem; }
.card-link {
  font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--brass-lite); transition: letter-spacing 0.3s ease;
}
.card:hover .card-link { letter-spacing: 0.3em; }

/* =========================================================================
   About
   ========================================================================= */
.about {
  padding: clamp(4rem, 10vw, 9rem) clamp(1.5rem, 6vw, 6rem);
  background:
    radial-gradient(ellipse at 75% 50%, rgba(212,175,55,0.07) 0%, transparent 55%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  border-top: 1px solid rgba(212,175,55,0.12);
  border-bottom: 1px solid rgba(212,175,55,0.12);
}
.about-inner { max-width: 820px; }
.about h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.08; color: var(--cream); margin-bottom: 1.8rem;
}
.about-sub { color: var(--brass); font-style: italic; }
.about-copy { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.7; color: var(--cream-dim); margin-bottom: 2.4rem; max-width: 60ch; }

.ghost-button, .beat-button { -webkit-tap-highlight-color: transparent; }
.ghost-button {
  display: inline-block; padding: 1rem 2.2rem;
  font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--brass-lite); text-decoration: none;
  border: 1px solid rgba(212,175,55,0.45);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.ghost-button:hover { background: var(--brass); color: var(--ink); box-shadow: 0 0 30px rgba(212,175,55,0.4); }

/* =========================================================================
   Contact
   ========================================================================= */
.contact { padding: clamp(4rem, 10vw, 9rem) clamp(1.5rem, 6vw, 6rem); }
.contact-inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.contact-lead h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1; color: var(--cream); margin-bottom: 1.4rem;
}
.contact-copy { font-size: 1.1rem; line-height: 1.7; color: var(--cream-dim); font-style: italic; max-width: 44ch; }

.contact-details { display: flex; flex-direction: column; gap: 1.6rem; }
.detail { padding-bottom: 1.6rem; border-bottom: 1px solid rgba(212,175,55,0.14); }
.detail:last-child { border-bottom: none; }
.detail-label {
  font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 0.7rem;
}
.detail-value { font-size: 1.4rem; line-height: 1.4; color: var(--cream); margin-bottom: 0.35rem; }
.detail-value a { text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.25s, border-color 0.25s; }
.detail-value a:hover { color: var(--brass); border-bottom-color: var(--brass); }
.detail-meta { font-style: italic; font-size: 0.92rem; color: var(--cream-faint); }

/* =========================================================================
   Contact form
   ========================================================================= */
.contact-form-wrap { margin-top: clamp(2.5rem, 5vw, 4rem); max-width: 720px; }
.contact-form-button {
  display: inline-block; padding: 1.05rem 2.4rem;
  font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink); background: var(--brass); border: none; cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.contact-form-button:hover { background: var(--brass-lite); box-shadow: 0 0 30px rgba(212,175,55,0.5); transform: translateY(-1px); }
.contact-form {
  margin-top: 1.8rem; padding: clamp(1.5rem, 3vw, 2.4rem);
  background: var(--ink-2); border: 1px solid rgba(212,175,55,0.2);
}
.form-row { margin-bottom: 1.3rem; }
.form-row label {
  display: block; font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 0.55rem;
}
.form-row input, .form-row textarea {
  width: 100%; padding: 0.85rem 1rem;
  font-family: var(--serif); font-size: 1.05rem; color: var(--cream);
  background: rgba(245,240,230,0.04); border: 1px solid rgba(212,175,55,0.22);
  outline: none; resize: vertical;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--brass); background: rgba(245,240,230,0.07);
}
.contact-form-send { margin-top: 0.4rem; }
.form-note { margin-top: 1rem; font-style: italic; font-size: 0.88rem; color: var(--cream-faint); }

/* =========================================================================
   Footer
   ========================================================================= */
.foot { text-align: center; padding: clamp(3rem, 6vw, 4.5rem) 2rem; border-top: 1px solid rgba(212,175,55,0.14); }
.foot-logo { height: 70px; width: auto; margin-bottom: 1.2rem; opacity: 0.92;
  filter: drop-shadow(0 0 14px rgba(212,175,55,0.25)); }
.foot-brand { font-family: var(--serif); font-size: 1rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); margin-bottom: 0.5rem; }
.foot-tag { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--cream-faint); margin-bottom: 1rem; }
.foot-mark { font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: var(--brass-lite); letter-spacing: 0.06em; }

/* =========================================================================
   Scroll-reveal (driven by app.js / ScrollTrigger; visible by default if JS off)
   ========================================================================= */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(28px); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  body { padding-right: 0; padding-top: 58px; }
  section[id] { scroll-margin-top: 58px; }   /* clear the fixed top bar on anchor jumps */
  .rail {
    top: 0; right: 0; left: 0; bottom: auto; width: 100%; height: 58px;
    flex-direction: row; align-items: center; justify-content: space-between;
    padding: 0 1.1rem; gap: 0;
    border-left: none; border-bottom: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 18px 50px -16px rgba(0,0,0,0.7), inset 0 1px 0 0 rgba(255,255,255,0.45), inset 0 -4px 0 -3px rgba(245,225,168,0.5);
  }
  .rail-brand img { height: 40px; }
  .rail-nav { flex-direction: row; gap: 1.1rem; width: auto; }
  .rail-nav a { font-size: 0.6rem; letter-spacing: 0.16em; }
  .rail-tag { display: none; }
  .beats { width: min(86vw, 560px); left: 1.4rem; bottom: 6.5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .expertise-list { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .hero-cue { display: none; }
}
@media (max-width: 540px) {
  .rail-nav { gap: 0.75rem; }
  .rail-nav a { font-size: 0.62rem; letter-spacing: 0.1em; }
  .beat-title { font-size: 2rem; }
  .beats { bottom: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-cue-arrow { animation: none; }
}
