:root {
  /* Brand: deep green #1F3432, sage #DCDEDA */
  --green: #1f3432;
  --base: #13211f;
  --cream: #dcdeda;
  --dim: rgba(220, 222, 218, .64);
  --faint: rgba(220, 222, 218, .34);
  --gutter: clamp(16px, 5.5vw, 80px);
  --sans: "Public Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }

html, body { height: 100%; overflow: hidden; }

body {
  background: var(--base);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100svh;
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Background scene ---------- */
.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(90% 60% at 50% -5%, rgba(58, 74, 70, .55), transparent 70%),
    #172625;
}

#world { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 2.4s ease; }
#world.on { opacity: 1; }

/* Darkens behind the copy column a little so the text always reads */
.shade { position: absolute; inset: 0;
  background: radial-gradient(min(900px, 60vw) min(520px, 55vh) at 30% 48%, rgba(9, 18, 17, .25), transparent 100%); }

.grain { position: absolute; inset: -50%; opacity: .06; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Bars ---------- */
.bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter); }
.top { padding-top: clamp(18px, 3.4vh, 32px); }
.brand { display: block; line-height: 0; }
.brand img { display: block; height: 22px; width: auto; }

.bottom { padding-bottom: clamp(18px, 3.4vh, 30px); font-size: 13px; color: var(--dim); }

/* ---------- Hero: 2:1 split, copy left, industries right ---------- */
/* Sits a little above true centre, which reads as balanced */
.hero { position: relative; z-index: 2; align-self: center; width: 100%; display: grid;
  grid-template-columns: 2fr 1fr; align-items: center; gap: clamp(32px, 5vw, 96px);
  padding: 0 var(--gutter) clamp(0px, 5vh, 48px); }

/* Premium headline: large, light, tight, with a soft brushed-metal sheen */
h1 { font-weight: 300; font-size: clamp(36px, 5.4vw, 92px); line-height: 1; letter-spacing: -.05em;
  text-wrap: balance; max-width: 10em; padding-bottom: .06em;
  background: linear-gradient(180deg, #f4f5f2 0%, #dcdeda 45%, #a9b3ad 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: reveal 2s .25s cubic-bezier(.2, .7, .2, 1) both; }

@keyframes reveal { from { opacity: 0; transform: translateY(18px); filter: blur(10px); letter-spacing: -.03em; } }

.sub { margin-top: clamp(16px, 2.8vh, 28px); max-width: 30em; font-size: clamp(15px, 1.05vw, 19px); line-height: 1.45;
  letter-spacing: -.01em; color: var(--dim); text-wrap: balance; animation: rise 1.6s .45s cubic-bezier(.2, .7, .2, 1) both; }
.sub span { color: var(--cream); font-weight: 500; }
@media (min-width: 560px) { .sub span { display: block; } } /* break after "project managers" */

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Access form ---------- */
.access { position: relative; margin-top: clamp(24px, 4vh, 40px); height: 46px; width: min(340px, 100%);
  animation: rise 1.6s .6s cubic-bezier(.2, .7, .2, 1) both; }

.btn { height: 46px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--cream); color: var(--green);
  font: 500 15px var(--sans); letter-spacing: -.01em; cursor: pointer; transition: background .2s, opacity .3s, transform .3s; }
.btn:hover { background: #eef0ec; }

.field { position: absolute; inset: 0; display: flex; border-bottom: 1px solid var(--faint);
  opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity .35s, transform .35s, border-color .2s; }
.field:focus-within { border-color: var(--cream); }
.field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--cream);
  font: 400 16px var(--sans); padding: 0 2px; }
.field input::placeholder { color: var(--faint); }
.go { width: 44px; background: none; border: 0; color: var(--cream); cursor: pointer; display: grid; place-items: center; }
.go:hover { color: #eef0ec; }

.access.open .btn { opacity: 0; pointer-events: none; transform: translateY(-6px); }
.access.open .field { opacity: 1; pointer-events: auto; transform: none; }
.access.done .field { opacity: 0; pointer-events: none; }

.note { position: absolute; left: 0; right: 0; top: 56px; font-size: 13px; color: var(--dim); }
.access.done .note { top: 13px; font-size: 15px; color: var(--cream); }

.btn:focus-visible, .go:focus-visible { outline: 1px solid var(--cream); outline-offset: 3px; }

/* ---------- Industries column: dot-matrix model + current name ---------- */
.sectors { display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-left: clamp(24px, 3vw, 56px); border-left: 1px solid rgba(220, 222, 218, .09);
  animation: rise 1.6s .8s cubic-bezier(.2, .7, .2, 1) both; }
#dots { display: block; width: 100%; max-width: 380px; aspect-ratio: 16 / 10; }
.sector-label { margin-top: 14px; }
.caption { font-size: 12px; color: var(--faint); letter-spacing: .02em; }
/* Only the current industry is shown; names crossfade in place as the model morphs */
#industries { list-style: none; padding: 0; margin: 4px 0 0; display: grid; justify-items: center;
  font-size: 15px; letter-spacing: -.005em; }
#industries li { grid-area: 1 / 1; color: var(--cream); white-space: nowrap; opacity: 0; transition: opacity .6s ease; }
#industries li.active { opacity: 1; }

/* ---------- Smaller screens: stack copy over a compact industries row ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: clamp(28px, 5vh, 48px); }
  .sectors { flex-direction: row; justify-content: flex-start; gap: 14px; text-align: left;
    padding: 18px 0 0; border-left: 0; border-top: 1px solid rgba(220, 222, 218, .09); }
  #dots { width: 150px; max-width: none; aspect-ratio: auto; height: 94px; flex: none; margin-left: -18px; }
  .sector-label { margin-top: 0; }
  #industries { justify-items: start; }
  .shade { background: radial-gradient(100% 50% at 30% 45%, rgba(9, 18, 17, .25), transparent 100%); }
}
@media (max-height: 700px) and (min-width: 821px) {
  #dots { max-width: 300px; }
}
@media (max-height: 560px) {
  h1 { font-size: clamp(28px, 6.5vh, 48px); }
  .sectors { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
