/* =========================================================================
   DEUS Services Inc.
   International typographic style: strict grid, one grotesque, red accent.
   ====================================================================== */

:root {
  --ink:      #101418;          /* base, taken from the logo background */
  --ink-2:    #15191E;          /* alternating band */
  --paper:    #FFFFFF;
  --fog:      #98A0A8;          /* secondary text */
  --red:      #DA291C;          /* Pantone 485 C */
  --line:     rgba(255,255,255,.13);
  --line-2:   rgba(255,255,255,.28);

  --wrap:     1240px;
  --gutter:   clamp(20px, 5vw, 64px);
  --band:     clamp(72px, 11vw, 156px);

  --font:     'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --ease:     cubic-bezier(.22, 1, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--red); color: #fff; padding: 12px 18px; text-decoration: none;
}
.skip:focus { left: 0; }

/* --- Type ---------------------------------------------------------------- */

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.08;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--fog);
  margin-bottom: 28px;
}

.lede {
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.5;
  color: var(--paper);
  margin-bottom: 1.4em;
}

.num {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--red);
  margin-bottom: 14px;
}

/* --- Buttons and links ---------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  border: 0;
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .01em;
  padding: 15px 30px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.btn:hover { background: #b91f14; }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: default; }

.link {
  font-size: 15px;
  color: var(--fog);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 3px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.link:hover { color: var(--paper); border-color: var(--red); }

/* --- Top bar --------------------------------------------------------------- */

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  background: transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.bar.is-stuck {
  background: rgba(16,20,24,.92);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}

.bar__in {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.bar__logo { display: flex; align-items: center; text-decoration: none; }
.bar__logo img { height: 34px; width: auto; }
.bar__word { font-weight: 700; letter-spacing: .04em; font-size: 20px; }

.bar__nav { display: flex; align-items: center; gap: 34px; }
.bar__nav a {
  font-size: 15px;
  text-decoration: none;
  color: var(--fog);
  transition: color .2s var(--ease);
}
.bar__nav a:hover { color: var(--paper); }
.bar__nav .btn { color: #fff; }

.bar__toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 10px;
  flex-direction: column; justify-content: center; gap: 7px;
}
.bar__toggle span {
  display: block; height: 1.5px; width: 20px; background: var(--paper);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.bar__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.bar__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-4.25px) rotate(-45deg); }

.mnav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--ink);
}
.mnav a {
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 16px;
}

/* --- Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 90px;
}

/* Generated backdrop: alpine light, no photograph required. */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(110% 80% at 78% 6%, rgba(180,205,230,.16), transparent 58%),
    radial-gradient(90% 70% at 8% 96%, rgba(218,41,28,.12), transparent 62%),
    linear-gradient(180deg, #0D1115 0%, #101418 55%, #0C1013 100%);
}
/* Photograph layer. The image sits under a scrim strong enough for white type
   on a bright daylight shot, and a slow drift keeps the frame from feeling
   like a flat backdrop. */
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media picture, .hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.hero__media img {
  animation: drift 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.10) translate3d(-1.4%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media img { animation: none; transform: scale(1.04); }
}

/* Scrim strengths are measured, not guessed: with this stack the headline
   sits at ~11:1 against white and the secondary line at ~5.6:1, both clear
   of WCAG AA on the brightest patches of snow. */
.hero--photo::before {
  background:
    linear-gradient(90deg, rgba(10,13,16,.94) 0%, rgba(10,13,16,.88) 30%, rgba(10,13,16,.64) 62%, rgba(10,13,16,.40) 100%),
    linear-gradient(180deg, rgba(10,13,16,.70) 0%, rgba(10,13,16,.30) 30%, rgba(10,13,16,.84) 100%);
  z-index: 1;
}
/* Secondary text needs more lift over a photograph than over flat ink. */
.hero--photo .eyebrow, .hero--photo .hero__lead { color: #B4BBC1; }
.hero--photo .link { color: #B4BBC1; }
.hero--photo .hero__in { z-index: 2; }
.hero--photo::after { z-index: 3; }

/* Fine grain keeps large flat areas from banding. */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  opacity: .045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__in { position: relative; display: flex; gap: clamp(24px, 4vw, 52px); }

/* The vertical rule is lifted from the logo and carries the whole page. */
.rule {
  flex: 0 0 2px;
  width: 2px;
  background: var(--paper);
  transform-origin: top;
  transform: scaleY(0);
  animation: draw 1.1s var(--ease) .15s forwards;
}
.hero__body { max-width: 46rem; }

.hero__title {
  font-size: clamp(38px, 6.4vw, 82px);
  font-weight: 600;
  letter-spacing: -.03em;
  margin-bottom: 28px;
}
.hero__lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--fog);
  max-width: 38rem;
  margin-bottom: 40px;
}
.hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.hero .eyebrow, .hero__title, .hero__lead, .hero__actions {
  opacity: 0;
  animation: rise .9s var(--ease) forwards;
}
.hero .eyebrow    { animation-delay: .45s; }
.hero__title      { animation-delay: .58s; }
.hero__lead       { animation-delay: .70s; }
.hero__actions    { animation-delay: .80s; }

@keyframes draw { to { transform: scaleY(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .rule { animation: none; transform: none; }
  .hero .eyebrow, .hero__title, .hero__lead, .hero__actions { animation: none; opacity: 1; }
}

/* --- Bands and the two-column grid -------------------------------------------- */

.band { padding: var(--band) 0; border-top: 1px solid var(--line); }
.band--alt { background: var(--ink-2); }

.grid-2 {
  display: grid;
  grid-template-columns: minmax(180px, 3fr) 8fr;
  gap: clamp(28px, 5vw, 96px);
  align-items: start;
}
.col-label h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
}
.col-text { max-width: 62rem; color: var(--fog); }
.col-text .lede, .col-text h3 { color: var(--paper); }

/* --- Facts list ----------------------------------------------------------------- */

.facts { margin: 44px 0 0; }
.facts__row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.facts__row:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: 14px; letter-spacing: .1em; color: var(--fog); }
.facts dd { margin: 0; color: var(--paper); font-weight: 500; }

/* --- Row lists ------------------------------------------------------------------ */

.rows { list-style: none; margin: 40px 0 0; padding: 0; }
.rows__item { border-top: 1px solid var(--line); padding: 26px 0; }
.rows__item:last-child { border-bottom: 1px solid var(--line); }
.rows h3 { font-size: 21px; font-weight: 600; margin-bottom: 8px; }
.rows p { color: var(--fog); margin: 0; max-width: 46rem; }

.rows--link .rows__item { padding: 0; }
.rows--link a {
  display: block;
  position: relative;
  padding: 26px 56px 26px 0;
  text-decoration: none;
  transition: padding-left .28s var(--ease);
}
.rows--link a:hover { padding-left: 16px; }
.rows--link a::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--red);
  transform: scaleY(0); transform-origin: center;
  transition: transform .28s var(--ease);
}
.rows--link a:hover::before { transform: scaleY(1); }
.rows__arrow {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  color: var(--fog);
  transition: transform .28s var(--ease), color .28s var(--ease);
}
.rows--link a:hover .rows__arrow { color: var(--red); transform: translate(6px, -50%); }

@media (prefers-reduced-motion: reduce) {
  .rows--link a, .rows--link a::before, .rows__arrow { transition: none; }
}

/* --- Partners --------------------------------------------------------------------- */

.tier {
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--fog);
  font-weight: 500;
  margin: 48px 0 18px;
}
.logos {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.logos__item { background: var(--ink); }
.logos__item a {
  display: flex; align-items: center; justify-content: center;
  min-height: 116px; padding: 24px;
  text-decoration: none;
  opacity: .62;
  transition: opacity .25s var(--ease), background .25s var(--ease);
}
.logos__item a:hover { opacity: 1; background: var(--ink-2); }
.logos__item img { max-height: 44px; width: auto; }
.logos__item span { font-weight: 500; letter-spacing: .02em; text-align: center; }
.band--alt .logos__item { background: var(--ink-2); }

/* --- Form ------------------------------------------------------------------------- */

.form { margin-top: 44px; max-width: 46rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; }

.field { margin: 0 0 22px; display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; letter-spacing: .04em; color: var(--fog); }
.field input, .field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  padding: 10px 0;
  border-radius: 0;
  transition: border-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--red);
}
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--red); }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
.form__status { font-size: 15px; color: var(--fog); }
.form__status.is-ok { color: var(--paper); }
.form__status.is-error { color: var(--red); }

.contact__direct { margin-top: 34px; font-size: 15px; }
.contact__direct a { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--red); }

/* --- Footer --------------------------------------------------------------------- */

.foot { border-top: 1px solid var(--line); padding: 56px 0 64px; }
.foot__in { display: flex; flex-direction: column; gap: 10px; }
.foot__note { color: var(--paper); font-size: 15px; margin: 0; }
.foot__meta { color: var(--fog); font-size: 14px; margin: 0; }

/* --- Narrow screens -------------------------------------------------------------- */

@media (max-width: 860px) {
  .bar__nav { display: none; }
  .bar__toggle { display: flex; }
  .mnav[hidden] { display: none; }
  .mnav { display: flex; }

  .grid-2 { grid-template-columns: 1fr; gap: 28px; }
  .col-label h2 { font-size: 26px; }
  .form__grid { grid-template-columns: 1fr; }
  .facts__row { grid-template-columns: 120px 1fr; }
  .hero { padding-top: 120px; }
}
.bar__logo svg { height: 34px; width: auto; color: var(--paper); display: block; }
