/* ==========================================================================
   111 Wardour St — holding page
   ========================================================================== */

@font-face {
  font-family: 'Helvetica Neue LT Pro';
  src: url('fonts/HelveticaNeueLTW0545Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Helvetica Neue LT Pro';
  src: url('fonts/HelveticaNeueLTW0555Roman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Helvetica Neue LT Pro';
  src: url('fonts/HelveticaNeueLTW0585Heavy.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ----- Tokens (from design spec) ----- */
:root {
  --c-bg:        #12281E;   /* deep green page bg */
  --c-bg-hero:   #25231B;   /* hero fallback */
  --c-orange:    #E63800;   /* accent strips */
  --c-peach:     #FFC7B5;   /* strip text */
  --c-cream:     #F9F5F4;   /* primary text on dark */
  --c-green:     #B2ED6B;   /* lime accent (sq ft / italic word) */
  --c-purple:    #A484F5;   /* button + stamp */
  --c-purple-d:  #9A73FD;
  --c-marquee:   #B2ED6B;   /* marquee bg */
  --c-marquee-t: #12281E;   /* marquee text */
}

/* ----- Reset / base ----- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--c-bg);
  color: var(--c-cream);
  font-family: 'Helvetica Neue LT Pro', Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Shared content container — caps page width at 1600px with 50px gutters */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 50px;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: 1600px; }

/* ==========================================================================
   1. HERO  (video + centred 111 logo)
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 40px);        /* fills viewport minus the orange strip below */
  height: calc(100dvh - 40px);       /* dvh = stable on mobile (ignores URL bar collapse) */
  background: var(--c-bg-hero);
  overflow: hidden;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.18);
  pointer-events: 1600px;
}
.hero__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(120px, 13vw, 189px);
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* ==========================================================================
   2. Orange strips
   ========================================================================== */
.strip {
  width: 100%;
  background: var(--c-orange);
  display: flex;
  align-items: center;
  justify-content: center;
}
.strip--top    { height: 40px; }
.strip--footer { height: 37px; }

.strip__text {
  color: var(--c-peach);
  font-size: 14px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  padding-left: 0.5em; /* compensate for trailing letter-spacing */
}
.strip__text--footer {
  font-size: 12px;
  letter-spacing: 0.18em;
}

/* ==========================================================================
   3. Headline block
   ========================================================================== */
.headline {
  padding: 130px 0 110px;
}
.headline__inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 40px;
}
.headline__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(34px, 3.7vw, 50px);
  line-height: 1.14;
  letter-spacing: 0.02em;
}
.t-white { color: var(--c-cream); }
.t-green { color: var(--c-green); font-weight: 300; }
.t-regular { font-weight: 300; }

.headline__buttons {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 400;
  color: var(--c-cream);
  border: 1px solid transparent;
  transition: opacity .2s ease, transform .2s ease;
  cursor: pointer;
  user-select: 1600px;
}
.btn--outline {
  border-color: var(--c-purple);
  background: transparent;
  min-width: 193px;
}
.btn--solid {
  background: var(--c-purple);
  border-color: var(--c-purple-d);
  min-width: 140px;
}
.btn:hover { opacity: 0.85; }
.btn:active { transform: translateY(1px); }

.headline__right {
  display: flex;
  justify-content: flex-end;
}
.headline__size {
  margin: 0;
  text-align: right;
  font-weight: 300;
  font-size: clamp(48px, 6.2vw, 86px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--c-green);
}

/* ==========================================================================
   4. Marquee
   ========================================================================== */
.marquee {
  width: 100%;
  background: var(--c-marquee);
  color: var(--c-marquee-t);
  overflow: hidden;
  padding: 22px 0;
}
.marquee__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;          /* lets both groups sit side-by-side, no wrap */
  animation: marquee 18s linear infinite;
  will-change: transform;
}
.marquee__group {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  min-width: 100vw;            /* each group is at least one viewport wide ⇒ bar always full */
  justify-content: space-around;
}
.marquee__item,
.marquee__sep {
  font-family: 'Helvetica Neue LT Pro', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 28px;
  padding: 0 36px;
  color: var(--c-marquee-t);
  -webkit-text-stroke: 0;
  text-stroke: 0;
}

/* Stroke (outlined) variant — used by stroke.html via <body class="stroke-version"> */
.stroke-version .marquee__item {
  color: transparent;
  -webkit-text-stroke: 1px var(--c-marquee-t);
  text-stroke: 1px var(--c-marquee-t);
}
.marquee__sep {
  /* Fixed-size, positioned box — its dimensions never change so nothing around it can shift */
  position: relative;
  width: 13px;
  height: 13px;
  margin: 0 18px;
  padding: 0;
  font-size: 0;
  line-height: 0;
  color: var(--c-marquee-t);
  -webkit-text-stroke: 0;
  text-stroke: 0;
  display: inline-block;
  vertical-align: middle;
}
.marquee__sep::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;   /* centre on the parent without using transform offsets */
  background: var(--c-marquee-t);
  transform-origin: 50% 50%;
  animation: sep-pulse 2.4s ease-in-out infinite;
  will-change: transform;
}
/* Stagger every other separator so they don't all pulse in unison */
.marquee__sep:nth-of-type(even)::before { animation-delay: 1.2s; }

/* Loop shifts by exactly one group's width (50% of the track), so frame 100%
   is visually identical to frame 0% — no jump, no empty space, ever.
   from: group B visible (track shifted left by one group)
   to:   group A visible (track at origin) → restarts seamlessly */
@keyframes marquee {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}
/* Timing (2.4s total):
   0–25%   first half-turn:  0° → 45° (shrink to 0)
   25–50%  hold at scale 0   (≈0.5s pause)  — 45° → 45°
   50–75%  second half-turn: 45° → 90° (back to full size)
   75–100% hold at scale 1   (≈0.5s rest)   */
@keyframes sep-pulse {
  0%   { transform: rotate(0deg)   scale(1); }
  25%  { transform: rotate(45deg)  scale(0); }
  50%  { transform: rotate(45deg)  scale(0); }
  75%  { transform: rotate(90deg)  scale(1); }
  100% { transform: rotate(90deg)  scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__sep { animation: 1600px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: 1600px; }
}

/* ==========================================================================
   5. Agents
   ========================================================================== */
.agents {
  max-width: 1600px;
  margin: 0 auto;
  padding: 100px 50px 60px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: stretch;
}
/* 3 equal columns: logo | person 1 | person 2 */
.agent {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 40px;
}
.agent__logo {
  justify-self: start;
}
.agent__logo--ec  { width: 151px; }
.agent__logo--shb { width: 159px; }

/* People are direct grid items now — wrapper just lays them flat */
.agent__people {
  display: contents;
}
.person {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;             /* equal spacing between name, email and phone */
  line-height: 1.2;
}
.person > * { margin: 0; }
.person__name {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.09em;
  color: var(--c-cream);
}
.person__email,
.person__phone {
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: rgba(249, 245, 244, 0.55);
}
.person__email a:hover,
.person__phone a:hover { color: var(--c-cream); }

/* ==========================================================================
   6. Giant stamp
   ========================================================================== */
.stamp {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 50px;
  overflow: hidden;
  line-height: 0;
}
.stamp img {
  width: 100%;
  display: block;
}

/* ==========================================================================
   7. Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .headline { padding: 70px 0 60px; }
  .headline__inner {
    grid-template-columns: 1fr;
    padding: 0 32px;
    gap: 24px;
  }
  .headline__right { justify-content: flex-start; }
  .headline__size  { text-align: left; }
  .marquee__item   { font-size: 20px; padding: 0 22px; }
  .agents { padding: 60px 32px 40px; gap: 50px; }
  .agent {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .agent__logo { justify-self: center; }
  .person      { text-align: center; align-items: center; }
}
@media (max-width: 540px) {
  .strip__text         { font-size: 12px; letter-spacing: 0.4em; }
  .strip__text--footer { font-size: 10px; }
  .headline__buttons   { gap: 10px; }
  .btn                 { padding: 0 20px; }
  .btn--outline        { min-width: 160px; }
  .agents              { padding: 60px 20px 40px; }
  .agent__people       { grid-template-columns: 1fr; gap: 24px; }
}
