/* ==========================================================================
   iC Wealth — holding page (round three: white, centred, marquee)
   Two type styles only: letter-spaced caps (Inter) and serif (Cormorant).
   Desktop sits within 100vh. Below 820px it stacks and may scroll.
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --sky:   #E9F0F9;                 /* the faint blue at the top and foot of the page */
  --blue:  #1A479A;                 /* the ring blue from the logo */

  --ink:    #14161C;
  --ink-70: rgba(20, 22, 28, 0.72);
  --ink-50: rgba(20, 22, 28, 0.52);
  --ink-35: rgba(20, 22, 28, 0.36);
  --line:   rgba(20, 22, 28, 0.12);

  --gold:      #B08D3C;
  --gold-soft: #C9AB5F;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --pad-x: clamp(24px, 5vw, 80px);
  --pad-y: clamp(20px, 3vh, 40px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body { margin: 0; height: 100%; }

body {
  background: linear-gradient(180deg, var(--sky) 0%, var(--white) 34%, var(--white) 66%, var(--sky) 100%) fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

::selection { background: var(--gold-soft); color: var(--ink); }

/* The two voices ----------------------------------------------------------- */

.caps {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Page frame: centred block / marquee / footer
   -------------------------------------------------------------------------- */

.page {
  height: 100vh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  padding: var(--pad-y) var(--pad-x);
}

.centre {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 0;
}

/* Logo ------------------------------------------------------------------- */

.logo {
  margin-bottom: clamp(16px, 3vh, 34px);
  line-height: 0;
}

.logo-svg {
  display: block;
  height: clamp(130px, 19vh, 190px);
  width: auto;
}

/* Copy ------------------------------------------------------------------- */

.eyebrow {
  margin: 0 0 clamp(10px, 1.6vh, 16px);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.headline {
  margin: 0 0 clamp(22px, 3.6vh, 40px);
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 3.9vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.005em;
}

.headline .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.headline .line-inner { display: block; }

.headline em { font-style: italic; }

.headline .amp { color: var(--gold); }

/* Calls to action: two square boxes, notice box beneath ------------------- */

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: clamp(16px, 2.2vh, 22px) clamp(30px, 3.2vw, 56px);
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.35s var(--ease-out);
}

.contact-item:hover,
.contact-item:focus-visible { border-color: var(--gold); }

.notice {
  grid-column: 1 / -1;
  margin: 0;
  padding: clamp(12px, 1.8vh, 16px) 24px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(20px, 1.7vw, 27px);
  line-height: 1.2;
  text-align: center;
}

.contact-label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-value {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.2vw, 36px);
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.35s var(--ease-out);
}

.contact-item:hover .contact-value,
.contact-item:focus-visible .contact-value { color: var(--gold); }

.contact-item:focus-visible { outline: none; }

/* --------------------------------------------------------------------------
   Services marquee (draggable)
   -------------------------------------------------------------------------- */

.marquee {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex: none;
  width: calc(100% + 2 * var(--pad-x));
  margin: 0 calc(-1 * var(--pad-x)) clamp(16px, 2.6vh, 28px);
  padding-block: 6px;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.marquee:active { cursor: grabbing; }

.marquee__collection {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex: none;
  will-change: transform;
}

.marquee__list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.marquee__item {
  display: flex;
  align-items: center;
  flex: none;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(19px, 1.5vw, 24px);
  line-height: 1.3;
  color: var(--ink-70);
  white-space: nowrap;
}

.marquee__item::after {
  content: "";
  width: 5px;
  height: 5px;
  margin: 0 clamp(22px, 2.2vw, 36px);
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(1px);
}

/* --------------------------------------------------------------------------
   Footer: one line, caps
   -------------------------------------------------------------------------- */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 32px;
  padding-top: clamp(12px, 1.8vh, 18px);
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--ink-50);
}

.site-footer p { margin: 0; white-space: nowrap; }

.site-footer .sep { margin: 0 8px; color: var(--gold); }

/* --------------------------------------------------------------------------
   Animation gating: hide animated bits only when GSAP is going to reveal them
   -------------------------------------------------------------------------- */

.js:not(.no-anim) [data-anim],
.js:not(.no-anim) .headline .line-inner {
  visibility: hidden;
}

/* --------------------------------------------------------------------------
   Narrow screens: basic stack, may scroll
   -------------------------------------------------------------------------- */

@media (max-width: 820px) {
  .page {
    height: auto;
    min-height: 100vh;
    padding: 28px 20px 24px;
    row-gap: 28px;
  }

  .logo-svg { height: 150px; }

  .headline { font-size: clamp(32px, 9vw, 44px); }

  .actions { grid-template-columns: 1fr; width: 100%; }

  .marquee { margin-bottom: 0; }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }

  .site-footer p { white-space: normal; }
}
