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

:root {
  --bg: #f0eee6;
  --ink: #141413;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
}

/* ── Header ── */
header {
  background: var(--ink);
  padding: 1.2rem 2rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-name {
  font-family: 'DM Sans';
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.08em;
}

/* ── Hero ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 9rem 1.5rem 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#hero-title {
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-size: clamp(2rem, 6vw, 3rem);
  white-space: nowrap;
  overflow-wrap: normal;
}

.page-content h1 {
  font-size: clamp(1.9rem, 6.5vw, 2.5rem);
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.05;
}

#hero-sub {
  margin-top: 0.8rem;
  font-weight: 300;
  opacity: 0.6;
}

/* ── Buttons ── */
.btn-row {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  justify-content: center;
}

.btn {
  padding: 0.65rem 1.75rem;
  border-radius: 7px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.btn:hover {
  background: var(--bg);
  color: var(--ink);
}

.btn.outline {
  background: transparent;
  color: var(--ink);
}

.btn.outline:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ── Founded / Carousel ── */
.founded {
  margin-top: 4rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.4;
}

.carousel-wrap {
  margin-top: 0rem;
  width: min(35rem, 88vw);
  overflow: hidden;
  -webkit-mask: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
  mask: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.logo-pill {
  opacity: 0.8;
  flex-shrink: 0;
  width: 8rem;
}

img.logo-pill {
  max-height: 6rem;
  width: auto;
  display: block;
}

img[src*="lloyds"] {
  max-height: 8rem;
}

img[src*="st-andrews"] {
  margin-top: 0.5rem;
  margin-right: -1rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Video sections ── */
.vid {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 4.5rem 6%;
}

.vid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.vid-bg iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 177.78vh;
  height: 100vh;
  min-width: 100%;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}

.vid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.75) 30%, rgba(0,0,0,0.05) 100%);
  z-index: 1;
}

.vid-label {
  position: relative;
  z-index: 2;
  color: #fff;
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 4.8vw, 5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.0;
  max-width: 52%;
}

.vid-label.typing::after {
  content: '';
  display: inline-block;
  width: 0.16em;
  height: 1em;
  margin-left: 0.15em;
  background: currentColor;
  vertical-align: bottom;
  animation: blink-cursor 1s steps(2) infinite;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── Inner pages ── */
.page-content {
  max-width: 680px;
  margin: 6rem auto;
  padding: 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.85;
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .vid { height: 65vh; padding: 2rem 1.5rem; }
  .vid-label { max-width: 80%; font-size: 1.9rem; }
  .vid-overlay { background: linear-gradient(90deg, rgba(0,0,0,0.82) 55%, rgba(0,0,0,0.25) 100%); }
  .btn-row { flex-direction: column; align-items: center; }
  .btn { width: 200px; text-align: center; }
}

.page-title {
  margin-bottom: 0.5rem;
}