/* ═══════════════════════════════════════════════════
   RAIL SIGNAL ENGINEERING — STYLESHEET
   Theme: Industrial dark navy + signal amber/green
   ═══════════════════════════════════════════════════ */

/* ── Tokens ───────────────────────────────────────── */
:root {
  --navy:      #ffffff;
  --navy-mid:  #f6f7f9;
  --navy-card: #ffffff;
  --steel:     #eef1f5;
  --amber:     #9b1b4c;
  --signal-amber: #f5a623;
  --green-sig: #22c55e;
  --red-sig:   #ef4444;
  --white:     #4b2e83;
  --muted:     #7a64a8;
  --track:     #c7cfdb;

  --font-display: 'Poppins', sans-serif;
  --font-body:    'Poppins', sans-serif;

  --radius: 6px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ───────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }
em { font-style: italic; color: var(--amber); }

/* ── Layout ───────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 90px 0;
  position: relative;
}
.section.dark {
  background: var(--navy-mid);
}
.section.companies {
  overflow: hidden;
}
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  color: var(--amber);
  margin-bottom: 12px;
  font-family: var(--font-body);
  white-space: nowrap;
}
.section-label.sig-light { color: var(--amber); }
.section-title { margin-bottom: 48px; }
.section-title.sig-light { color: var(--white); }
.section-sub { color: var(--muted); max-width: 100%; margin-bottom: 48px; }
.section-sub.sig-light { color: var(--muted); }

/* ── Signal dots (decorative) ─────────────────────── */
.signal-dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  margin-right: 4px;
}
.signal-dot.red    { background: var(--red-sig); box-shadow: 0 0 6px var(--red-sig); }
.signal-dot.amber  { background: var(--signal-amber);   box-shadow: 0 0 6px var(--signal-amber); }
.signal-dot.green  { background: var(--green-sig); box-shadow: 0 0 6px var(--green-sig); }
.signal-dot.sm     { width: 8px; height: 8px; }

/* ── NAV ──────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(155,27,76,0.15);
  transition: background var(--transition);
}
.nav.scrolled {
  background: rgba(255,255,255,0.97);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 0 24px;
  height: 96px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
}
.nav-logo-img {
  height: 76px;
  width: 76px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  border: 0.5mm solid #1d4ed8;
  flex-shrink: 0;
}
.nav-brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
}
.nav-brand {
  color: var(--white);
}
.nav-tagline {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--amber);
  letter-spacing: 0.01em;
  text-align: center;
  margin-top: -4px;
}
.nav-links {
  display: flex; gap: 32px; align-items: center;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--amber); }
.nav-cta {
  border: 1px solid var(--amber) !important;
  color: var(--amber) !important;
  padding: 6px 18px;
  border-radius: 3px;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--amber); color: var(--white) !important; }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white);
  transition: var(--transition);
}
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  gap: 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.mobile-nav a { font-size: 1rem; color: var(--muted); }
.mobile-nav.open { display: flex; }

/* ── HERO ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.6) saturate(0.75);
  /* ensure image never renders outside its container */
  display: block;
  max-height: 100vh;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    /* bottom fade to exact navy — covers any image bleed */
    linear-gradient(to top,  var(--navy) 0%, transparent 18%),
    /* side gradient for readability */
    linear-gradient(to right, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.55) 60%, rgba(255,255,255,0.1) 100%);
}

/* animated track lines */
.track-lines {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 120px; z-index: 1;
  pointer-events: none;
}
.track {
  position: absolute; bottom: 0;
  height: 2px; width: 200%;
  background: linear-gradient(to right, transparent, var(--amber), transparent);
  animation: trackMove 4s linear infinite;
  opacity: 0.25;
}
.track:nth-child(2) { bottom: 30px; animation-delay: -1.3s; opacity: 0.15; }
.track:nth-child(3) { bottom: 60px; animation-delay: -2.7s; opacity: 0.1; }

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

.hero-content {
  position: relative; z-index: 2;
  max-width: 680px;
  padding: 100px 24px 60px;
  margin: 0 auto 0 max(24px, calc((100vw - 1160px) / 2));
}
.hero-eyebrow {
  display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap;
}
.pill {
  background: rgba(155,27,76,0.15);
  border: 1px solid rgba(155,27,76,0.35);
  color: var(--amber);
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-heading { color: var(--white); margin-bottom: 20px; }
.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* scroll hint */
.hero-scroll-hint {
  position: absolute; bottom: 40px; right: 40px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.7rem; letter-spacing: 0.15em; color: var(--muted);
  text-transform: uppercase;
  opacity: 0.7;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* ── BUTTONS ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center;
  padding: 12px 28px;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: transparent;
  color: var(--amber);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: var(--amber);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(0,0,0,0.3);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(0,0,0,0.06);
}
.full-width { width: 100%; justify-content: center; }

/* ── ABOUT ────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text h2 { margin-bottom: 20px; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.stat-row {
  display: flex; gap: 36px; margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
  flex-wrap: wrap;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* animated signal tower */
.about-visual {
  display: flex; justify-content: center; align-items: flex-end;
  padding: 40px 0;
}
.signal-tower-anim {
  display: flex; flex-direction: column; align-items: center;
  gap: 0;
}
.signal-post {
  width: 60px;
  display: flex; flex-direction: column; align-items: center;
  position: relative;
}
.signal-arm {
  width: 80px; height: 4px;
  background: var(--track);
  margin-bottom: 4px;
  border-radius: 2px;
}
.signal-lights {
  display: flex; flex-direction: column;
  background: #1a2e44;
  border: 2px solid var(--track);
  border-radius: 8px;
  padding: 8px 10px;
  gap: 8px;
  position: relative;
}
.signal-lights::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 40px;
  background: var(--track);
}
.sig-light {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 2px solid rgba(0,0,0,0.1);
  transition: all 0.4s ease;
}
.sig-light.red.active    { background: var(--red-sig); box-shadow: 0 0 18px var(--red-sig), 0 0 36px rgba(239,68,68,0.4); }
.sig-light.amber.active  { background: var(--signal-amber);   box-shadow: 0 0 18px var(--signal-amber), 0 0 36px rgba(245,166,35,0.4); }
.sig-light.green.active  { background: var(--green-sig); box-shadow: 0 0 18px var(--green-sig), 0 0 36px rgba(34,197,94,0.4); }

.rails-below {
  width: 100px;
  position: relative;
  padding-top: 40px;
}
.rail {
  position: absolute;
  top: 40px;
  width: 4px; height: 80px;
  background: var(--track);
  border-radius: 2px;
}
.rail:first-child { left: 15px; }
.rail:last-child  { right: 15px; }
.sleeper-row {
  display: flex;
  flex-direction: column; gap: 10px;
  padding: 40px 0 0;
}
.sleeper {
  width: 100%; height: 5px;
  background: var(--navy-card);
  border: 1px solid var(--track);
  border-radius: 2px;
}

/* ── SIGNALLING CARDS ─────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--navy-card);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(155,27,76,0.3);
}
.card-icon {
  height: 200px;
  overflow: hidden;
}
.card-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-icon img { transform: scale(1.05); }
.card h3, .card p, .card-tag {
  padding: 0 20px;
}
.card h3 { padding-top: 20px; margin-bottom: 10px; font-size: 1.15rem; }
.card p   { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }
.card-tag {
  display: inline-block;
  margin: 0 20px 20px;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(155,27,76,0.12);
  color: var(--amber);
  border: 1px solid rgba(155,27,76,0.25);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── TRAINING ─────────────────────────────────────── */
.training-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}
.training-block {
  background: var(--navy-card);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
}
.training-block:hover {
  border-color: rgba(155,27,76,0.3);
  transform: translateY(-4px);
}
.training-icon { font-size: 2.4rem; margin-bottom: 16px; }
.training-block h3 { margin-bottom: 12px; }
.training-block p  { color: var(--muted); font-size: 0.92rem; }

.curriculum-box {
  background: var(--navy-card);
  border: 1px solid rgba(155,27,76,0.2);
  border-radius: var(--radius);
  padding: 36px;
}
.curriculum-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--amber);
  margin-bottom: 20px;
}
.curriculum-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.curriculum-tags span {
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 3px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--white);
  transition: all var(--transition);
}
.curriculum-tags span:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* ── COMPANIES TICKER ─────────────────────────────── */

/* Header block: flows normally above ticker, no z-index games */
.companies-header {
  display: block;
  margin-bottom: 40px;
}
.companies-header .section-label,
.companies-header .section-title {
  display: block;
  position: static;
}
.companies-header .section-sub {
  display: block;
  position: static;
  white-space: nowrap;   /* keep on one line */
  overflow: visible;
}

.companies-ticker-wrap {
  overflow: hidden;      /* clips the infinite ticker strip */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  margin-bottom: 48px;
  width: 100%;           /* never wider than container */
}
.companies-ticker {
  display: flex; gap: 16px;
  width: max-content;
  animation: ticker 40s linear infinite;
}
.companies-ticker:hover { animation-play-state: paused; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.company-badge {
  background: var(--navy-card);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  padding: 12px 20px;
  white-space: nowrap;
  font-size: 0.88rem;
  color: var(--muted);
  transition: all var(--transition);
  cursor: default;
}
.company-badge:hover {
  border-color: var(--amber);
  color: var(--white);
}

.logos-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 24px;
}
.logos-note code {
  background: rgba(0,0,0,0.08);
  padding: 2px 6px;
  border-radius: 3px;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.logo-item {
  background: var(--navy-card);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  padding: 20px 16px;
  display: flex; align-items: center; justify-content: center;
  height: 90px;
  transition: var(--transition);
}
.logo-item:hover { border-color: var(--amber); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.logo-item img { max-height: 40px; max-width: 110px; transition: var(--transition); }

/* ── FACULTY ──────────────────────────────────────── */
.faculty-grid {
  display: flex; flex-direction: column; gap: 28px;
}
.faculty-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  background: var(--navy-card);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
  align-items: start;
}
.faculty-card:hover {
  border-color: rgba(155,27,76,0.3);
  transform: translateX(4px);
}
.faculty-avatar {
  width: 110px;
  height: 130px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--steel), var(--navy-mid));
  border: 2px solid var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--amber);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  align-self: flex-start;
  overflow: hidden;
}
.faculty-info h3 { margin-bottom: 4px; }
.faculty-quals {
  font-size: 0.8rem;
  color: var(--amber);
  margin-bottom: 12px;
  opacity: 0.85;
}
.faculty-info p   { color: var(--muted); font-size: 0.92rem; margin-bottom: 12px; }
.faculty-highlights {
  list-style: none; display: flex; flex-direction: column; gap: 4px;
}
.faculty-highlights li {
  font-size: 0.85rem;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}
.faculty-highlights li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--amber);
  font-size: 0.7rem;
  top: 3px;
}

/* ── CONTACT ──────────────────────────────────────── */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-left {
  min-width: 0;
  overflow: hidden;
}
.contact-left h2 {
  margin-bottom: 16px;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}
.contact-left p { color: var(--muted); margin-bottom: 28px; font-size: 0.95rem; }
.contact-signal {
  display: flex; align-items: center; gap: 10px;
}
.sig-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.green-pulse {
  background: var(--green-sig);
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: greenPulse 2s infinite;
}
@keyframes greenPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.contact-form {
  background: var(--navy-card);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius);
  padding: 36px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--navy-mid);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius);
  color: var(--white);
  padding: 10px 14px;
  font-size: 0.92rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--amber);
}
.form-group select option { background: var(--navy-mid); }
.form-group textarea { resize: vertical; }
.form-success {
  display: none;
  text-align: center;
  color: var(--green-sig);
  font-size: 0.9rem;
  padding-top: 12px;
}
.form-success.show { display: block; }

/* ── FOOTER ───────────────────────────────────────── */
.footer {
  background: #f6f7f9;
  padding: 36px 0;
  border-top: 1px solid rgba(155,27,76,0.12);
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
}
.footer-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
}
.footer-logo-img {
  height: 54px;
  width: 54px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  border: 0.5mm solid #1d4ed8;
}
.footer-tagline {
  font-size: 0.82rem;
  color: var(--amber);
  letter-spacing: 0.08em;
}
.footer-note {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── SCROLL REVEAL ────────────────────────────────── */
.reveal, .reveal-left, .reveal-right, .reveal-up {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}
.reveal        { transform: translateY(30px); }
.reveal-left   { transform: translateX(-40px); }
.reveal-right  { transform: translateX(40px); }
.reveal-up     { transform: translateY(40px); }

.reveal.visible, .reveal-left.visible,
.reveal-right.visible, .reveal-up.visible {
  opacity: 1; transform: none;
}

/* ── RESPONSIVE ───────────────────────────────────── */

@media (max-width: 900px) {
  .about-grid    { grid-template-columns: 1fr; gap: 40px; }
  .about-visual  { display: none; }
  .cards-grid    { grid-template-columns: 1fr; }
  .training-grid { grid-template-columns: 1fr; }
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .faculty-card  { grid-template-columns: 1fr; }
  .faculty-avatar { width: 90px; height: 110px; font-size: 1rem; border-radius: 8px; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section   { padding: 60px 0; }
  .hero-content { margin: 0; padding: 100px 24px 60px; }
  .hero-scroll-hint { display: none; }
  .stat-row { gap: 20px; }

  /* Tighten contact section on mobile */
  .contact-left h2 {
    font-size: 1.6rem;
    word-break: break-word;
    hyphens: auto;
  }
  .contact-signal { font-size: 0.85rem; }

  /* Prevent section headings from overflowing viewport */
  h1, h2 {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Companies heading sits above ticker via .companies-header wrapper */
}

/* ── REDUCED MOTION ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .track, .scroll-line, .companies-ticker, .green-pulse { animation: none; }
  .reveal, .reveal-left, .reveal-right, .reveal-up { opacity: 1; transform: none; }
}

/* ── Faculty photo avatar ─────────────────────────── */
.faculty-avatar.has-photo {
  padding: 0;
  border: 2px solid var(--amber);
  border-radius: 10px;
  overflow: hidden;
  background: var(--navy-mid);
  font-size: 0;
}
.faculty-avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;  /* head stays centred */
  display: block;
}