/* ============================================================
   MONOGRAM CAPITAL MANAGEMENT — UK Stylesheet
   Fonts: Nohemi (place in assets/fonts/), Public Sans, Roboto
   ============================================================ */

/* Nohemi — download from Pangram Pangram Foundry and place in assets/fonts/ */
/* @font-face {
  font-family: 'Nohemi';
  src: url('../fonts/Nohemi-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
} */

@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;500;600&family=Roboto:wght@400&display=swap');

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  --bg:          #111111;
  --bg-deep:     #000000;
  --text-white:  #ffffff;
  --text-light:  #e0e0e0;
  --text-medium: #d2d2d2;
  --text-muted:  #b8b8b8;
  --text-dim:    #757575;
  --text-link:   #727272;
  --cookie-bg:   #dcdcdc;
  --cookie-btn:  #b8b8b8;
  --cookie-txt:  #454545;

  --font-display: 'Nohemi', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Public Sans', sans-serif;
  --font-form:    'Roboto', sans-serif;

  --nav-height:    72px;
  --container-max: 1320px;
  --container-pad: 80px;
  --section-pad:   120px;

  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-white);
  transition: opacity 0.2s;
}
.nav__links a:hover { opacity: 0.6; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-white);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background-color: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-height);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center top;
  opacity: 0.28;
}

/* Large decorative circle */
.hero__circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1117px, 65vw);
  height: min(1117px, 65vw);
  pointer-events: none;
  overflow: visible;
}

.hero__circle circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 3503;
  stroke-dashoffset: 3503;
  animation: hero-circle-draw 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.3s;
}

@keyframes hero-circle-draw {
  to { stroke-dashoffset: 0; }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--container-pad);
  padding-block: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__logo {
  width: min(380px, 55vw);
  height: auto;
  margin-bottom: 40px;
  animation: hero-logo-fadein 1.8s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

@keyframes hero-logo-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.01em;
  animation: hero-logo-fadein 1.8s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.section {
  padding-block: var(--section-pad);
  background-color: var(--bg);
}

.section__heading {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 56px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* ============================================================
   IMPORTANT NOTICE
   ============================================================ */
.notice__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.notice__block p {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-medium);
  line-height: 1.8;
}

.notice__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.notice__regulatory {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.notice__regulatory p {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-medium);
  line-height: 1.8;
}

/* ============================================================
   LEADERSHIP
   ============================================================ */
.team__grid {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.team__item {
  width: calc((100% - 48px) / 3);
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
  opacity: 1;
  transform: scale(1);
  transition: width 1.05s var(--ease-smooth), opacity 0.75s ease, transform 0.75s var(--ease-smooth);
}

.team__main {
  flex: 0 0 340px;
  width: 340px;
}

.team__photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 365 / 550;
  overflow: hidden;
  background: #1a1a1a;
  cursor: pointer;
}

.team__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease-smooth);
}

.team__photo-wrap:hover .team__photo {
  transform: scale(1.03);
}

.team__plus {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-white);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.55s var(--ease-smooth), background 0.35s ease, color 0.35s ease;
}

.team__item.active .team__plus {
  transform: rotate(45deg);
  background: var(--text-white);
  color: var(--bg);
}

.team__info {
  margin-top: 16px;
}

.team__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-white);
  margin-bottom: 4px;
}

.team__role {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.team__bio {
  flex: 0 0 0;
  max-width: 560px;
  min-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transform: translateY(12px);
  transition: flex-grow 1s var(--ease-smooth), opacity 0.5s ease, transform 0.5s var(--ease-smooth);
}

.team__item.active .team__bio {
  flex: 1 0 0;
  opacity: 1;
  white-space: normal;
  transform: translateY(0);
  transition: flex-grow 1.1s var(--ease-smooth), opacity 0.8s ease 0.55s, transform 0.8s var(--ease-smooth) 0.55s;
}

.team__bio-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-white);
  margin-bottom: 12px;
}

.team__bio p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-medium);
  margin-bottom: 12px;
}

.team__bio p:last-child { margin-bottom: 0; }

/* ============================================================
   LEADERSHIP — DESKTOP INTERACTION (≥ 769px)
   Clicked photo stays full size, in its own natural place, and
   simply grows to the left as its bio unfolds beside it. The
   other two photos shrink away and fade out — no reordering,
   so the clicked photo never jumps or blinks out of view.
   ============================================================ */
@media (min-width: 769px) {
  .team__item { overflow: hidden; }

  .team__grid.has-active .team__item {
    width: 0;
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    transition: width 0.9s var(--ease-smooth), opacity 0.6s ease, transform 0.8s var(--ease-smooth);
  }

  .team__grid.has-active .team__item.active {
    width: calc(100% - 48px);
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    transition: width 1.1s var(--ease-smooth), opacity 0.7s ease;
  }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__form {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-field { display: flex; flex-direction: column; gap: 8px; }

.form-field label {
  font-family: var(--font-form);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-field input,
.form-field textarea {
  background: var(--text-white);
  border: none;
  border-radius: 1px;
  padding: 14px 16px;
  font-family: var(--font-form);
  font-size: 17px;
  color: #222;
  width: 100%;
  outline: none;
  transition: box-shadow 0.2s;
}
.form-field input:focus,
.form-field textarea:focus {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}
.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.form-checkbox input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
}
.form-checkbox label {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-medium);
  cursor: pointer;
  line-height: 1.5;
}

.form-submit {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--text-medium);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 40px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  align-self: flex-start;
}
.form-submit:hover {
  background: var(--text-white);
  color: var(--bg);
  border-color: var(--text-white);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--bg);
  overflow: hidden;
  padding-top: 60px;
  padding-bottom: 48px;
}

.footer__line {
  height: 1px;
  background-color: rgba(255,255,255,0.08);
  max-width: calc(var(--container-max) - 2 * var(--container-pad));
  margin-inline: auto;
  margin-bottom: 40px;
}

.footer__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}

.footer__links {
  display: flex;
  gap: 32px;
}
.footer__links a {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-link);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--text-white); }

.footer__legal {
  max-width: 700px;
  text-align: left;
}
.footer__legal p {
  font-size: 15px;
  color: var(--text-medium);
  line-height: 1.6;
}
.footer__legal p + p { margin-top: 6px; }

.footer__watermark {
  padding-inline: var(--container-pad);
  max-width: var(--container-max);
  margin-inline: auto;
}
.footer__watermark img {
  width: min(380px, 50vw);
  height: auto;
  opacity: 0.55;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--bg-deep);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 28px 40px;
  transform: translateY(0);
  transition: transform 0.4s ease;
}
.cookie-banner.hidden {
  transform: translateY(110%);
  pointer-events: none;
}

.cookie-banner__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 280px;
}
.cookie-banner__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.cookie-banner__text p + p {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.5;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-cookie {
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  border-radius: 1px;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn-cookie:hover { opacity: 0.8; }
.btn-cookie--accept {
  background: var(--text-white);
  color: var(--bg);
}
.btn-cookie--manage,
.btn-cookie--reject {
  background: rgba(255,255,255,0.12);
  color: var(--text-medium);
}

/* ============================================================
   POLICY PAGES
   ============================================================ */
.policy-hero {
  background-color: var(--bg);
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  padding-top: var(--nav-height);
}
.policy-hero__inner {
  max-width: var(--container-max);
  width: 100%;
  margin-inline: auto;
  padding: 60px var(--container-pad);
}
.policy-hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: 52px;
  font-weight: 500;
  color: var(--text-light);
}

.policy-body { padding-block: 80px; }

.policy-content {
  max-width: 900px;
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.8;
}
.policy-content h2 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-white);
  margin-top: 48px;
  margin-bottom: 14px;
}
.policy-content h2:first-child { margin-top: 0; }
.policy-content p { margin-bottom: 14px; }
.policy-content ul { margin: 10px 0 14px 24px; }
.policy-content li { margin-bottom: 6px; }
.policy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}
.policy-content th,
.policy-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.policy-content th {
  font-weight: 600;
  color: var(--text-white);
  background: rgba(255,255,255,0.04);
}
.policy-footer {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.policy-footer p {
  font-size: 14px;
  color: var(--text-medium);
  margin-bottom: 8px;
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --container-pad: 24px;
    --section-pad: 72px;
  }

  body.nav-open { overflow: hidden; }

  .nav__links {
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(0,0,0,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, transform 0.25s ease;
  }
  .nav__links.open {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
  }
  .nav__links li { width: 100%; }
  .nav__links li + li { border-top: 1px solid rgba(255,255,255,0.06); }
  .nav__links a { display: block; padding: 16px 24px; font-size: 17px; }
  .nav__links a:active { opacity: 0.6; }
  .nav__toggle { display: flex; z-index: 101; position: relative; }

  .hero__logo { width: min(260px, 70vw); }
  .hero__tagline { font-size: 16px; }
  .hero__content { padding-block: 56px; }

  .section__heading { font-size: 32px; margin-bottom: 36px; }

  .notice__grid { grid-template-columns: 1fr; gap: 48px; }
  .notice__regulatory { margin-top: 48px; padding-top: 36px; }

  .team__grid { flex-direction: column; gap: 40px; }
  .team__grid .team__item,
  .team__grid.has-active .team__item,
  .team__grid.has-active .team__item.active {
    width: 100%;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0;
    opacity: 1;
    order: 0;
  }
  .team__main,
  .team__grid.has-active .team__item .team__main,
  .team__grid.has-active .team__item.active .team__main {
    flex: 0 0 auto;
    width: 100%;
  }
  .team__bio,
  .team__item.active .team__bio {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
  }
  .team__bio {
    white-space: normal;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.7s var(--ease-smooth), opacity 0.4s ease, margin-top 0.4s ease;
  }
  .team__item.active .team__bio {
    max-height: 2000px;
    opacity: 1;
    margin-top: 20px;
    transition: max-height 0.8s var(--ease-smooth), opacity 0.6s ease 0.15s, margin-top 0.5s var(--ease-smooth);
  }
  .team__photo-wrap { max-width: 320px; margin-inline: auto; }
  .team__info { text-align: center; }

  .footer__legal { max-width: 100%; }
  .footer__links { flex-wrap: wrap; gap: 20px 28px; }

  .policy-hero { min-height: 200px; }
  .policy-hero__inner { padding: 40px var(--container-pad); }
  .policy-hero h1 { font-size: 32px; }
  .policy-content { font-size: 15px; }

  .cookie-banner { padding: 20px 24px; }
  .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .cookie-banner__text { min-width: 0; width: 100%; }
  .cookie-banner__actions { width: 100%; gap: 10px; }
  .btn-cookie { flex: 1; text-align: center; padding: 12px 10px; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 400px)
   ============================================================ */
@media (max-width: 400px) {
  .hero__tagline { font-size: 14px; }
  .section__heading { font-size: 27px; }
  .team__name { font-size: 16px; }
  .btn-cookie { font-size: 12px; padding: 12px 6px; }
}
