/* ==========================================================================
   HCOS Services — Homepage
   Visual system: charcoal + off-white, controlled HCOS orange accent.
   ========================================================================== */

:root {
  --charcoal:      #111111;
  --deep-charcoal: #181818;
  --orange:        #F26B21;
  --soft-orange:   #FF8A3D;
  --off-white:     #F8F7F4;
  --white:         #FFFFFF;
  --muted:         #667085;

  --line:          rgba(17, 17, 17, 0.09);
  --line-strong:   rgba(17, 17, 17, 0.14);

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, sans-serif;

  --container: 1280px;
  --gutter: 32px;
  --nav-h: 78px;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 22px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.04), 0 8px 24px -18px rgba(17, 17, 17, 0.30);
  --shadow-md: 0 24px 50px -28px rgba(17, 17, 17, 0.32);
  --shadow-lg: 0 40px 80px -40px rgba(17, 17, 17, 0.42);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* height:auto is required — the width/height attributes on <img> otherwise make
   the box definite and every aspect-ratio crop below is silently ignored. */
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

p { margin: 0; }

::selection { background: rgba(242, 107, 33, 0.22); }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.section { padding-block: clamp(76px, 8.5vw, 132px); }
.section--tight { padding-block: clamp(52px, 6vw, 86px); }
.section--offwhite { background: var(--off-white); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Shared type ---------------------------------------------------- */

.section-head { max-width: 720px; }
.section-head--center { margin-inline: auto; text-align: center; }

.section-title {
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: -0.005em;
}

.section-rule {
  width: 46px; height: 2px;
  background: var(--orange);
  border-radius: 2px;
  margin: 22px 0 0;
}
.section-head--center .section-rule { margin-inline: auto; }

.section-sub {
  margin-top: 20px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--muted);
}
.section-head--center .section-sub { margin-inline: auto; max-width: 620px; }

.lead { font-size: 1.0625rem; line-height: 1.8; color: var(--muted); }

/* ---------- Buttons -------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding-inline: 30px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), transform 0.35s var(--ease),
              box-shadow 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease);
}

.btn svg { transition: transform 0.4s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 12px 30px -14px rgba(242, 107, 33, 0.65);
}
.btn--primary:hover {
  background: var(--soft-orange);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -16px rgba(242, 107, 33, 0.7);
}

.btn--ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { border-color: var(--charcoal); transform: translateY(-2px); }

/* Frosted orange — for CTAs that sit on the hero photograph. */
.btn--glass {
  background: rgba(242, 107, 33, 0.22);
  border: 1px solid rgba(255, 178, 124, 0.52);
  color: var(--white);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  box-shadow: 0 14px 38px -18px rgba(242, 107, 33, 0.75),
              inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.btn--glass:hover {
  background: rgba(242, 107, 33, 0.44);
  border-color: rgba(255, 178, 124, 0.82);
  transform: translateY(-2px);
  box-shadow: 0 20px 46px -18px rgba(242, 107, 33, 0.85),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color 0.3s var(--ease);
}
.link-arrow svg { transition: transform 0.4s var(--ease-out); }
.link-arrow:hover { color: var(--orange); }
.link-arrow:hover svg { transform: translateX(5px); }
/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* The clip lives on the image, never on the observed element itself — a fully
   clipped box reports a zero-area intersection and would never reveal. */
.reveal-clip {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal-clip.is-in { opacity: 1; }

.reveal-clip img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal-clip.is-in img { clip-path: inset(0 0 0 0); }


/* ==========================================================================
   1. Navigation
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(17, 17, 17, 0.16);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: height 0.45s var(--ease), background-color 0.45s var(--ease),
              border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.nav__inner { display: flex; align-items: center; gap: 40px; width: 100%; }

.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo img {
  height: 44px; width: auto;
  transition: height 0.45s var(--ease);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin-block: 0;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding-block: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.84);
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--orange);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.42s var(--ease-out);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--white); }

/* Frosted while it floats on the hero, solid once the nav turns light. */
.nav__cta {
  height: 42px;
  padding-inline: 22px;
  font-size: 0.8125rem;
  flex-shrink: 0;
  background: rgba(242, 107, 33, 0.26);
  border: 1px solid rgba(255, 178, 124, 0.5);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.nav__cta:hover {
  background: rgba(242, 107, 33, 0.46);
  border-color: rgba(255, 178, 124, 0.8);
}
.nav.is-scrolled .nav__cta {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 12px 30px -14px rgba(242, 107, 33, 0.65);
}
.nav.is-scrolled .nav__cta:hover { background: var(--soft-orange); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.35s var(--ease);
}
.nav__toggle span {
  position: relative;
  display: block;
  width: 18px; height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: background-color 0.3s var(--ease);
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute; left: 0;
  width: 18px; height: 1.5px;
  background: inherit;
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out), background-color 0.3s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

/* scrolled state */
.nav.is-scrolled {
  height: 68px;
  background: rgba(248, 247, 244, 0.88);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 34px rgba(17, 17, 17, 0.06);
}
.nav.is-scrolled .nav__logo img { height: 38px; }
.nav.is-scrolled .nav__link { color: rgba(17, 17, 17, 0.7); }
.nav.is-scrolled .nav__link:hover,
.nav.is-scrolled .nav__link.is-active { color: var(--charcoal); }
.nav.is-scrolled .nav__toggle { border-color: var(--line-strong); }
.nav.is-scrolled .nav__toggle span,
.nav.is-scrolled .nav__toggle span::before,
.nav.is-scrolled .nav__toggle span::after { background: var(--charcoal); }

/* mobile panel */
.nav__panel {
  position: fixed;
  inset: 0;
  z-index: 89;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px var(--gutter) 48px;
  background: var(--off-white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
}
.nav__panel.is-open { opacity: 1; visibility: visible; transform: none; }
.nav__panel a {
  padding-block: 15px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
}
.nav__panel .btn { margin-top: 30px; align-self: flex-start; }

body.nav-open { overflow: hidden; }
body.nav-open .nav__toggle span { background: transparent; }
body.nav-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); background: var(--charcoal); }
body.nav-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); background: var(--charcoal); }

/* ==========================================================================
   2. Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 620px;
  height: 88vh;
  max-height: 940px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
}

.hero__media { position: absolute; inset: 0; }
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.035);
  animation: heroScale 2.6s var(--ease-out) 0.1s forwards;
}
@keyframes heroScale { to { transform: scale(1); } }

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17,17,17,0.55) 0%, rgba(17,17,17,0) 26%),
    linear-gradient(101deg,
      rgba(17,17,17,0.93) 0%,
      rgba(17,17,17,0.84) 26%,
      rgba(17,17,17,0.56) 44%,
      rgba(17,17,17,0.22) 64%,
      rgba(17,17,17,0.08) 82%,
      rgba(17,17,17,0.06) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: var(--nav-h);
}

.hero__slide {
  max-width: 640px;
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.hero__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero__title {
  font-size: clamp(2.1rem, 4.4vw, 3.75rem);
  line-height: 1.07;
  letter-spacing: -0.02em;
  color: var(--white);
}

.line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.line > span {
  display: block;
  transform: translateY(112%);
  transition: transform 0.95s var(--ease-out);
}
.is-active .line > span { transform: translateY(0); }
.is-active .line:nth-child(2) > span { transition-delay: 0.09s; }
.is-active .line:nth-child(3) > span { transition-delay: 0.18s; }

.hero__copy {
  max-width: 500px;
  margin-top: 26px;
  font-size: 1.0625rem;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.75);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s var(--ease-out) 0.28s, transform 0.85s var(--ease-out) 0.28s;
}
.is-active .hero__copy { opacity: 1; transform: none; }

.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s var(--ease-out) 0.42s, transform 0.85s var(--ease-out) 0.42s;
}
.is-active .hero__actions { opacity: 1; transform: none; }

.hero__actions .btn--ghost {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero__actions .btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.07);
}

.hero__dots {
  display: flex;
  gap: 10px;
  margin: clamp(40px, 5vw, 62px) 0 0;
  padding: 0;
  list-style: none;
}
.hero__dot {
  position: relative;
  width: 30px; height: 2px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.26);
  cursor: pointer;
  overflow: hidden;
  transition: width 0.5s var(--ease-out);
}
.hero__dot::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
}
.hero__dot.is-active { width: 52px; }
.hero__dot.is-active::after { animation: dotFill 7.4s linear forwards; }
@keyframes dotFill { to { transform: scaleX(1); } }

/* ---------- 3. Hero orbital motion graphic --------------------------------- */

/* Held clear of both edges: the node geometry stays at 520px and the whole
   assembly is scaled down instead, so it never clips off the right corner. */
.orb {
  --orb-s: 0.86;
  position: absolute;
  top: 54%;
  right: clamp(16px, 3vw, 72px);
  width: 520px;
  height: 520px;
  z-index: 1;
  pointer-events: none;
  animation: orbFloat 11s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(calc(-50% - 7px)) scale(var(--orb-s)); }
  50%      { transform: translateY(calc(-50% + 7px)) scale(var(--orb-s)); }
}

.orb__ring {
  position: absolute;
  top: 50%; left: 50%;
  border: 1px solid rgba(242, 107, 33, 0.20);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.orb__ring--1 { width: 520px; height: 520px; border-color: rgba(242,107,33,0.13); }
.orb__ring--2 { width: 360px; height: 360px; border-color: rgba(242,107,33,0.19); }
.orb__ring--3 { width: 208px; height: 208px; border-color: rgba(242,107,33,0.13); }

.orb__pulse {
  position: absolute;
  top: 50%; left: 50%;
  width: 208px; height: 208px;
  margin: -104px 0 0 -104px;
  border: 1px solid rgba(242, 107, 33, 0.32);
  border-radius: 50%;
  opacity: 0;
  animation: orbPulse 7s var(--ease-out) infinite;
}
.orb__pulse--2 { animation-delay: 3.5s; }
@keyframes orbPulse {
  0%   { transform: scale(0.86); opacity: 0; }
  18%  { opacity: 0.45; }
  100% { transform: scale(1.9); opacity: 0; }
}

.orb__core {
  position: absolute;
  top: 50%; left: 50%;
  width: 138px; height: 138px;
  margin: -69px 0 0 -69px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 20px 60px -24px rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.orb__core img { width: 86px; height: auto; }

.orb__track {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.orb__track--outer { width: 520px; height: 520px; animation: spin 58s linear infinite; }
.orb__track--inner { width: 360px; height: 360px; animation: spin 44s linear infinite reverse; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Nodes are placed by offset, never by rotation, so the glass chip inside
   only ever has to counter-rotate the track spin — never a fixed angle too. */
.orb__node { position: absolute; width: 0; height: 0; }

.orb__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 12px;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow: 0 10px 28px -16px rgba(0, 0, 0, 0.7);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}
.orb__chip::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 107, 33, 0.18);
  flex-shrink: 0;
}
.orb__track--outer .orb__chip { animation: spinBack 58s linear infinite; }
.orb__track--inner .orb__chip { animation: spinBack 44s linear infinite reverse; }
@keyframes spinBack { to { transform: translate(-50%, -50%) rotate(-360deg); } }

/* ==========================================================================
   4. Trust strip
   ========================================================================== */

.trust { border-bottom: 1px solid var(--line); }
.trust__row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 16px;
}
/* Fixed box so logos of wildly different aspect ratios read at one optical size. */
.trust__logo {
  height: 70px;
  width: 100%;
  max-width: 158px;
  object-fit: contain;
  filter: saturate(1.02);
  opacity: 0.92;
  mix-blend-mode: multiply;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.trust__logo:hover { opacity: 1; transform: translateY(-2px); }

/* ==========================================================================
   5. Welcome to HCOS
   ========================================================================== */

.welcome__grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(48px, 6vw, 88px);
  align-items: center;
}

.welcome__body { margin-top: 26px; max-width: 560px; }

.welcome__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.fact__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: -0.005em;
}
.fact__text { margin-top: 10px; font-size: 0.9375rem; line-height: 1.7; color: var(--muted); }

.welcome__cta { margin-top: 40px; }

.welcome__figure {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out);
}
.welcome__figure:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.welcome__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 40%;
  transition: transform 1.1s var(--ease-out);
}
.welcome__figure:hover img { transform: scale(1.035); }

.welcome__badge {
  position: absolute;
  left: 22px; bottom: 22px;
  display: flex;
  align-items: center;
  padding: 13px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 16px 40px -20px rgba(17, 17, 17, 0.5);
}
.welcome__badge img { height: 30px; width: auto; }

/* ==========================================================================
   6. Latest event
   ========================================================================== */

.events__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: clamp(48px, 5vw, 72px);
}

/* Photograph dissolves into the card body rather than sitting in a frame. */
.event-card {
  display: flex;
  flex-direction: column;
  background: var(--charcoal);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(17, 17, 17, 0.05);
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out);
}
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 64px -30px rgba(17, 17, 17, 0.5);
}

.event-card__media { position: relative; }
.event-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.event-card:hover .event-card__media img { transform: scale(1.05); }

.event-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 62%;
  background: linear-gradient(180deg,
    rgba(17, 17, 17, 0) 0%,
    rgba(17, 17, 17, 0.55) 42%,
    rgba(17, 17, 17, 0.92) 74%,
    var(--charcoal) 100%);
  pointer-events: none;
}

.event-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: -52px;
  padding: 0 24px 26px;
}

.event-card__title {
  font-size: 1rem;
  line-height: 1.38;
  letter-spacing: -0.005em;
  color: var(--white);
}

.event-card__desc {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.875rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.56);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 22px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}
.event-card__link svg { transition: transform 0.4s var(--ease-out); }
.event-card:hover .event-card__link svg { transform: translateX(5px); }

.section-foot { display: flex; justify-content: center; margin-top: clamp(44px, 5vw, 64px); }
/* ==========================================================================
   7. Services
   ========================================================================== */

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(48px, 5vw, 72px);
}

/* The photograph IS the card — copy sits on a scrim rather than in a panel. */
.service {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  background: var(--charcoal);
  box-shadow: 0 2px 4px rgba(17, 17, 17, 0.05);
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out);
}
.service:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 64px -30px rgba(17, 17, 17, 0.45);
}

.service__media { position: absolute; inset: 0; }
.service__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.service:hover .service__media img { transform: scale(1.05); }

.service__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(17, 17, 17, 0) 28%,
    rgba(17, 17, 17, 0.52) 60%,
    rgba(17, 17, 17, 0.93) 100%);
  transition: background 0.55s var(--ease);
}
.service:hover .service__scrim,
.service:focus-visible .service__scrim {
  background: linear-gradient(180deg,
    rgba(17, 17, 17, 0.34) 0%,
    rgba(17, 17, 17, 0.62) 42%,
    rgba(17, 17, 17, 0.94) 100%);
}

.service__body {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 24px;
}

.service__icon { color: var(--orange); margin-bottom: 14px; }

.service__title {
  font-size: 1.0625rem;
  line-height: 1.34;
  letter-spacing: -0.005em;
  color: var(--white);
}

.service__desc {
  margin-top: 14px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.74);
}

.service__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  margin-top: 20px;
  padding-inline: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.service:hover .service__cta,
.service:focus-visible .service__cta {
  background: var(--orange);
  border-color: var(--orange);
}
.service__cta svg { transition: transform 0.4s var(--ease-out); }
.service:hover .service__cta svg { transform: translateX(4px); }

/* Where a pointer can hover, the description stays folded away until it does.
   On touch there is no hover state to discover, so it is always shown. */
@media (hover: hover) {
  .service__desc {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(8px);
    transition: max-height 0.55s var(--ease-out), margin-top 0.55s var(--ease-out),
                opacity 0.4s var(--ease), transform 0.55s var(--ease-out);
  }
  .service:hover .service__desc,
  .service:focus-visible .service__desc {
    max-height: 9rem;
    margin-top: 14px;
    opacity: 1;
    transform: none;
  }
}

/* Touch shows title + description at rest, so the scrim has to carry more. */
@media (hover: none) {
  .service__scrim {
    background: linear-gradient(180deg,
      rgba(17, 17, 17, 0) 4%,
      rgba(17, 17, 17, 0.42) 34%,
      rgba(17, 17, 17, 0.86) 66%,
      rgba(17, 17, 17, 0.96) 100%);
  }
}
/* ==========================================================================
   9. Clients marquee
   ========================================================================== */

.marquee {
  position: relative;
  margin-top: clamp(40px, 4vw, 58px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 78s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee__group { display: flex; align-items: center; }
.marquee__item {
  display: grid;
  place-items: center;
  width: 226px;
  padding-inline: 16px;
  flex-shrink: 0;
}
.marquee__item img {
  height: 70px;
  width: 178px;
  object-fit: contain;
  filter: saturate(1.02);
  opacity: 0.9;
  mix-blend-mode: multiply;
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease-out);
}
.marquee__item:hover img { opacity: 1; transform: scale(1.05); }

/* ==========================================================================
   10. Latest news
   ========================================================================== */

.news__grid {
  display: grid;
  grid-template-columns: 1.42fr 1fr;
  gap: clamp(40px, 5vw, 64px);
  margin-top: clamp(48px, 5vw, 72px);
  align-items: start;
}

.article__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--off-white);
  box-shadow: var(--shadow-sm);
}
.article__media img {
  width: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.article:hover .article__media img { transform: scale(1.045); }

.article--featured .article__media img { aspect-ratio: 1600 / 766; }
.article--side .article__media img { aspect-ratio: 1600 / 766; }

.article__meta {
  margin-top: 24px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.article__title {
  margin-top: 14px;
  letter-spacing: -0.015em;
  transition: color 0.35s var(--ease);
}
.article--featured .article__title { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.25; }
.article--side .article__title { font-size: 1.125rem; line-height: 1.35; }
.article:hover .article__title { color: var(--orange); }

.article__excerpt { margin-top: 14px; font-size: 0.9375rem; line-height: 1.75; color: var(--muted); }
.article .link-arrow { margin-top: 22px; }

/* ==========================================================================
   11. Get in touch
   ========================================================================== */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: clamp(48px, 6vw, 88px);
  align-items: start;
}

.contact__details { margin-top: 44px; display: grid; gap: 22px; }
.contact__item { display: flex; gap: 16px; align-items: flex-start; }
.contact__icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(242, 107, 33, 0.09);
  color: var(--orange);
}
.contact__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__value {
  margin-top: 4px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--charcoal);
}
.contact__value a { transition: color 0.3s var(--ease); }
.contact__value a:hover { color: var(--orange); }

.form {
  padding: clamp(28px, 3.4vw, 42px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form__field { margin-bottom: 16px; }
.form__field--full { grid-column: 1 / -1; }

.form input,
.form textarea {
  width: 100%;
  padding: 15px 18px;
  background: var(--off-white);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  color: var(--charcoal);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.form input::placeholder,
.form textarea::placeholder { color: var(--muted); opacity: 0.85; }
.form input:focus,
.form textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(242, 107, 33, 0.11);
}
.form textarea { min-height: 148px; resize: vertical; }
.form .btn { margin-top: 6px; }

/* ==========================================================================
   12. Footer
   ========================================================================== */

/* The circuit/canopy render sits behind the footer as atmosphere, not as a
   picture — a heavy charcoal wash keeps every line of contact detail legible. */
.footer {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg,
      rgba(17, 17, 17, 0.80) 0%,
      rgba(17, 17, 17, 0.88) 42%,
      rgba(17, 17, 17, 0.96) 100%),
    url("../img/footer-circuit.webp") center / cover no-repeat,
    var(--charcoal);
  color: rgba(255, 255, 255, 0.62);
  padding-block: clamp(64px, 7vw, 96px) 0;
}

/* A second wash from the left, so the address column never fights the glow. */
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg,
    rgba(17, 17, 17, 0.72) 0%,
    rgba(17, 17, 17, 0.38) 38%,
    rgba(17, 17, 17, 0.10) 68%,
    rgba(17, 17, 17, 0) 100%);
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  z-index: 1;
  background: linear-gradient(90deg, var(--orange), var(--soft-orange) 55%, rgba(242,107,33,0.15));
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: clamp(36px, 4vw, 64px);
}

.footer__logo { height: 40px; width: auto; margin-bottom: 28px; }

.footer__heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 22px;
}

.footer__text { font-size: 0.9375rem; line-height: 1.85; }
.footer__text a { transition: color 0.3s var(--ease); }
.footer__text a:hover { color: var(--orange); }

.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer__list a {
  position: relative;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s var(--ease), padding-left 0.35s var(--ease-out);
}
.footer__list a:hover { color: var(--white); padding-left: 12px; }
.footer__list a::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 1px;
  background: var(--orange);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.footer__list a:hover::before { opacity: 1; }

.footer__social { display: grid; gap: 14px; }
.footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s var(--ease);
}
.footer__social svg { flex-shrink: 0; opacity: 0.75; transition: opacity 0.3s var(--ease); }
.footer__social a:hover { color: var(--white); }
.footer__social a:hover svg { opacity: 1; color: var(--orange); }


.footer__bottom {
  margin-top: clamp(48px, 5vw, 72px);
  padding-block: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.45);
}
/* ==========================================================================
   Responsive
   ========================================================================== */

/* Narrower viewport, less room to the right of the subjects — shrink to suit. */
@media (max-width: 1560px) { .orb { --orb-s: 0.72; } }
@media (max-width: 1340px) { .orb { --orb-s: 0.62; right: clamp(8px, 1.4vw, 28px); } }

@media (max-width: 1180px) {
  .orb { display: none; }
  .hero__slide { max-width: 620px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 24px; }

  .nav__menu { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }

  .welcome__grid,
  .contact__grid { grid-template-columns: 1fr; }

  .welcome__grid { gap: 48px; }
  .welcome__body { max-width: none; }
  .welcome__figure { order: -1; }

  .services__grid,
  .events__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

  .news__grid { grid-template-columns: 1fr; gap: 48px; }


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

@media (max-width: 768px) {
  :root { --gutter: 20px; --nav-h: 68px; }

  body { font-size: 15.5px; }

  .hero { height: auto; min-height: 0; max-height: none; }
  .hero__inner { padding-block: calc(var(--nav-h) + 64px) 72px; }
  .hero__media img { object-position: 62% 40%; animation: none; transform: none; }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(17,17,17,0.72) 0%, rgba(17,17,17,0.42) 40%, rgba(17,17,17,0.86) 100%);
  }
  .hero__title { font-size: clamp(1.95rem, 8vw, 2.5rem); }
  .hero__copy { font-size: 1rem; margin-top: 20px; }
  .hero__actions { margin-top: 30px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__dots { margin-top: 40px; }

  .trust__row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 16px; }
  .trust__logo { height: 52px; opacity: 0.95; }

  .welcome__facts { grid-template-columns: 1fr; gap: 26px; }
  .welcome__badge { left: 16px; bottom: 16px; padding: 11px 16px; }
  .welcome__badge img { height: 25px; }

  .events__grid { grid-template-columns: 1fr; }

  .services__grid { grid-template-columns: 1fr; gap: 18px; }
  .service { aspect-ratio: 4 / 3; }
  .service__body { padding: 22px 20px; }

  .marquee__item { width: 176px; padding-inline: 12px; }
  .marquee__item img { height: 58px; width: 142px; }
  .marquee__track { animation-duration: 56s; }

  .form__row { grid-template-columns: 1fr; }
  .form .btn { width: 100%; justify-content: center; }

  .footer { background-image:
    linear-gradient(180deg, rgba(17,17,17,0.84) 0%, rgba(17,17,17,0.91) 42%, rgba(17,17,17,0.97) 100%),
    url("../img/footer-circuit-mobile.webp");
    background-position: 72% 38%; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { text-align: left; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero__media img { transform: none; }
  .orb__track, .orb, .orb__pulse, .marquee__track { animation: none !important; }
  .line > span { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .reveal-clip { opacity: 1; }
  .reveal-clip img { clip-path: none; }
}
