/* ============================================================
   Garvey Group — bespoke landing page
   Palette, typography and motion per brief (27 Aug 2026)
   ============================================================ */

:root {
  --garvey-black:      #14151A;
  --garvey-charcoal:   #24262E;
  --garvey-ink:        #1B1C22;
  --garvey-ivory:      #F7F5F1;
  --garvey-stone:      #EAE6DD;
  --garvey-bronze:     #A88856;
  --garvey-bronze-dark:#8A6D3F;
  --garvey-line:       rgba(20,21,26,0.12);
  --garvey-line-dark:  rgba(247,245,241,0.14);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1200px;
  --gutter: clamp(1.5rem, 5vw, 5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--garvey-ink);
  background: var(--garvey-ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
}

::selection { background: var(--garvey-bronze); color: var(--garvey-black); }

/* Focus states — bronze ring, never removed */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--garvey-bronze);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); position: relative; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--garvey-bronze);
  margin: 0 0 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--garvey-bronze);
  display: inline-block;
}

.h2 { font-size: clamp(2rem, 4.3vw, 3.4rem); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --_bg: transparent;
  --_fg: var(--garvey-ivory);
  --_bd: var(--garvey-bronze);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 1.05rem 1.9rem;
  border: 1px solid var(--_bd);
  background: var(--_bg);
  color: var(--_fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: background .45s var(--ease), color .45s var(--ease),
              border-color .45s var(--ease), transform .45s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  --_bg: var(--garvey-bronze);
  --_fg: var(--garvey-black);
  --_bd: var(--garvey-bronze);
}
.btn--primary:hover { --_bg: var(--garvey-bronze-dark); --_bd: var(--garvey-bronze-dark); color: var(--garvey-ivory); }

.btn--ghost { --_bg: transparent; --_fg: var(--garvey-ivory); --_bd: var(--garvey-line-dark); }
.btn--ghost:hover { --_bd: var(--garvey-ivory); background: rgba(247,245,241,0.06); }

.btn__arrow { transition: transform .45s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1.25rem;
  transition: background .5s var(--ease), padding .5s var(--ease),
              box-shadow .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header__logo img { height: 66px; width: auto; transition: height .5s var(--ease); }
.header__cta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--garvey-ivory);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--garvey-line-dark);
  border-radius: 2px;
  background: rgba(20,21,26,0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: color .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
}
.header__cta:hover { color: var(--garvey-bronze); border-color: var(--garvey-bronze); }
.header__cta-arrow { color: var(--garvey-bronze); transition: transform .4s var(--ease); }
.header__cta:hover .header__cta-arrow { transform: translateX(4px); }

.header.is-scrolled {
  background: var(--garvey-black);
  padding-block: 0.7rem;
  border-bottom-color: var(--garvey-line-dark);
  box-shadow: 0 10px 40px rgba(0,0,0,0.28);
}
.header.is-scrolled .header__logo img { height: 50px; }
.header.is-scrolled .header__cta { background: transparent; border-color: var(--garvey-line-dark); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--garvey-black);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video, .hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(20,21,26,0.60) 0%, rgba(20,21,26,0.32) 42%, rgba(20,21,26,0.82) 100%),
    radial-gradient(120% 90% at 15% 90%, rgba(20,21,26,0.55) 0%, rgba(20,21,26,0) 60%);
}
.hero__inner {
  position: relative; z-index: 2;
  width: 100%;
  padding-bottom: clamp(4.5rem, 9vw, 8rem);
  padding-top: 8rem;
}
.hero__content { max-width: 760px; }
.hero .eyebrow {
  color: var(--garvey-bronze);
  background: rgba(20,21,26,0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--garvey-line-dark);
  border-radius: 2px;
  padding: 0.55rem 0.95rem 0.55rem 0.85rem;
}
.hero h1 {
  color: var(--garvey-ivory);
  font-size: clamp(2.7rem, 7.2vw, 5.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}
.hero h1 .line { display: block; }
.hero h1 .line--accent { color: var(--garvey-ivory); }
.hero h1 .thin { font-weight: 300; font-style: italic; color: rgba(247,245,241,0.92); }
.hero__sub {
  color: rgba(247,245,241,0.82);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 0 2.4rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: rgba(247,245,241,0.6);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.hero__scroll .chev {
  width: 20px; height: 20px;
  border-right: 1px solid rgba(247,245,241,0.55);
  border-bottom: 1px solid rgba(247,245,241,0.55);
  transform: rotate(45deg);
  animation: chevDrift 2.4s var(--ease) infinite;
}
@keyframes chevDrift {
  0%, 100% { transform: rotate(45deg) translate(0,0); opacity: .4; }
  50%      { transform: rotate(45deg) translate(3px,3px); opacity: 1; }
}

/* ============================================================
   Credibility strip
   ============================================================ */
.creds {
  background: var(--garvey-black);
  color: var(--garvey-ivory);
  border-top: 1px solid var(--garvey-line-dark);
}
.creds__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--garvey-line-dark);
  border: 1px solid var(--garvey-line-dark);
}
.stat {
  background: var(--garvey-black);
  padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 2.5vw, 2rem);
}
.stat__rule { width: 34px; height: 2px; background: var(--garvey-bronze); margin-bottom: 1.3rem; }
.stat__num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 3.9rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--garvey-ivory);
  display: flex;
  align-items: baseline;
}
.stat__suffix { font-size: 0.5em; color: var(--garvey-bronze); margin-left: 0.15em; }
.stat__label {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(247,245,241,0.68);
  letter-spacing: 0.01em;
}
.stat__label strong { color: var(--garvey-ivory); font-weight: 600; }

/* ============================================================
   About Jeff
   ============================================================ */
.about { background: var(--garvey-ivory); }
.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5.5vw, 5.5rem);
  align-items: center;
  max-width: min(1460px, 94vw);
}
.about__media { justify-self: end; width: 100%; }
.about__body p { margin: 0 0 1.15rem; max-width: 60ch; color: var(--garvey-ink); }
.about__body p:last-child { margin-bottom: 0; }
.about h2 { font-size: clamp(2rem, 4.3vw, 3.4rem); margin-bottom: 2rem; color: var(--garvey-ink); }
.about__body .drop { color: var(--garvey-ink); }

/* Editorial portrait frame */
.portrait {
  position: relative;
  isolation: isolate;
  margin: 0;
}
.portrait__frame {
  position: relative;
  overflow: hidden;
  outline: 1px solid var(--garvey-line);
}
.portrait__frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(100%) contrast(1.02);
  transition: filter .65s var(--ease), transform 1.1s var(--ease);
  transform: scale(1.02);
}
.portrait__frame:hover img,
.portrait.is-color .portrait__frame img { filter: grayscale(0%) contrast(1); }
.portrait__frame:hover img { transform: scale(1.05); }
/* bronze offset frame line */
.portrait::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--garvey-bronze);
  z-index: -1;
}
.portrait__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 2.4rem 1.5rem 1.25rem;
  background: linear-gradient(180deg, rgba(20,21,26,0) 0%, rgba(20,21,26,0.82) 100%);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.portrait__cap-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--garvey-ivory);
  line-height: 1.1;
}
.portrait__cap-role {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--garvey-bronze);
}

/* ============================================================
   Why Garvey Group exists — first person pull quote
   ============================================================ */
.why {
  background: var(--garvey-stone);
  position: relative;
  overflow: hidden;
}
.why__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.10;
  filter: grayscale(60%);
}
.why__inner {
  position: relative; z-index: 1;
  max-width: min(1680px, 94vw);
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.why__logo {
  width: clamp(64px, 8vw, 92px);
  height: auto;
  margin-bottom: 1.6rem;
}
.why .eyebrow { margin-bottom: 2rem; }
.why__quote {
  margin: 0;
  padding: 0;
  position: relative;
}
.why__quote p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--garvey-ink);
  margin: 0 0 1.5rem;
}
.why__quote p:last-child { margin-bottom: 0; }
.why__attrib {
  margin-top: 2.4rem;
  padding-top: 2.4rem;
  position: relative;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--garvey-bronze);
}
.why__attrib::before {
  content: "";
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 1px; background: var(--garvey-bronze);
}

/* ============================================================
   What we buy
   ============================================================ */
.buy {
  background: var(--garvey-black);
  color: var(--garvey-ivory);
  position: relative;
  overflow: hidden;
}
.buy__bg { position: absolute; inset: 0; z-index: 0; }
.buy__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(70%) contrast(1.05); }
.buy__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,21,26,0.86) 0%, rgba(20,21,26,0.78) 50%, rgba(20,21,26,0.92) 100%);
}
.buy__inner { position: relative; z-index: 2; }
.buy h2 { color: var(--garvey-ivory); margin-bottom: 1.25rem; }
.buy__intro { color: rgba(247,245,241,0.78); max-width: 52ch; margin: 0 0 3rem; font-size: clamp(1.02rem,1.5vw,1.15rem); }
.buy__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 1.9rem 0;
  border-top: 1px solid var(--garvey-line-dark);
}
.feature:last-child { border-bottom: 1px solid var(--garvey-line-dark); }
.feature__idx {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--garvey-bronze);
  padding-top: 0.2rem;
  min-width: 2.2rem;
}
.feature h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--garvey-ivory);
}
.buy__video {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--garvey-line-dark);
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}
.buy__video video { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) contrast(1.03); }
.buy__video::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,21,26,0) 55%, rgba(20,21,26,0.5) 100%);
  pointer-events: none;
}
.buy__video-cap {
  position: absolute; left: 1.1rem; bottom: 1rem; z-index: 2;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(247,245,241,0.85);
}

/* ============================================================
   Contact
   ============================================================ */
.contact { background: var(--garvey-black); color: var(--garvey-ivory); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: end;
}
.contact h2 { color: var(--garvey-ivory); font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 1.5rem; }
.contact__body { color: rgba(247,245,241,0.78); max-width: 46ch; font-size: clamp(1rem,1.5vw,1.12rem); }
.contact__card {
  border: 1px solid var(--garvey-line-dark);
  background: var(--garvey-charcoal);
  padding: clamp(2rem, 3.5vw, 2.75rem);
}
.contact__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--garvey-ivory);
  margin-bottom: 0.35rem;
}
.contact__role {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--garvey-bronze); margin-bottom: 1.75rem;
}
.contact__line {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--garvey-line-dark);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--garvey-ivory);
  transition: color .35s var(--ease);
}
.contact__line svg { width: 18px; height: 18px; stroke: var(--garvey-bronze); flex: none; }
.contact__line .lbl { position: relative; }
.contact__line .lbl::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%;
  background: var(--garvey-bronze); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.contact__line:hover { color: var(--garvey-bronze); }
.contact__line:hover .lbl::after { transform: scaleX(1); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 0.5rem; }
.contact__card .btn svg { width: 17px; height: 17px; stroke: currentColor; flex: none; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--garvey-black);
  color: rgba(247,245,241,0.6);
  border-top: 1px solid var(--garvey-line-dark);
  padding-block: clamp(2.75rem, 5vw, 4rem);
  text-align: center;
}
.footer__logo img { height: clamp(72px, 11vw, 112px); width: auto; margin: 0 auto 1.75rem; opacity: 0.96; }
.footer__tag { color: rgba(247,245,241,0.8); font-size: 0.95rem; margin-bottom: 0.4rem; }
.footer__copy { font-size: 0.8rem; letter-spacing: 0.02em; }

/* ============================================================
   Scroll-reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .why__grid { grid-template-columns: 0.8fr 1.2fr; }
  .why__media { position: static; }
}

@media (max-width: 860px) {
  .creds__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; gap: 2.75rem; max-width: 100%; }
  .about__media { max-width: 460px; justify-self: start; }
  .why__grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .why__media { max-width: 360px; order: 2; }
  .buy__grid { grid-template-columns: 1fr; }
  .buy__video { max-width: 460px; aspect-ratio: 16/10; }
  .contact__grid { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 560px) {
  .hero { min-height: 92svh; }
  .hero h1 { font-size: clamp(2.4rem, 12vw, 3.2rem); }
  .creds__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .contact__actions { flex-direction: column; }
  .contact__actions .btn { width: 100%; }
  .header__cta .txt { display: none; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__scroll .chev { animation: none; }
  .portrait__frame img { transform: none; }
}
