/* ==========================================================================
   DIAL 650 — Data Room
   Uses the same palette, type and pill geometry as the main site.
   ========================================================================== */

:root {
  --c-orange:   #FF9412;
  --c-cyan:     #99E0F2;
  --c-navy:     #0B0A23;
  --c-white:    #FFFFFF;
  --c-peach:    #FFD7A6;

  --dr-ink:     #0B0A23;
  --dr-muted:   #5C5B70;
  --dr-line:    #E4E4EC;
  --dr-panel:   #F6F6F9;
  --dr-shadow:  0 2px 4px rgba(11,10,35,.04), 0 12px 32px rgba(11,10,35,.07);

  --grad-brand: linear-gradient(215.25deg, #FF9412 46.75%, #99E0F2 89.09%);

  --font: 'Helvetica Neue', 'Helvetica', 'Arial', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1600px;
  --gutter: clamp(20px, 5vw, 80px);
  --radius: 10px;
  --radius-pill: 100px;

  --head-h: 68px;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.45;
  color: var(--dr-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

/* The [hidden] attribute must beat any display value set below. Class rules
   like .dr-viewer{display:flex} have the same specificity as the UA's
   [hidden]{display:none} and would otherwise win on source order — leaving
   the viewer overlay covering the page permanently. */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }

/* Every icon in here is stroke-drawn on a 24 grid. */
svg[viewBox="0 0 24 24"] {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

/* ==========================================================================
   LOGIN
   ========================================================================== */
.dr-login-body { background: var(--c-navy); }

.dr-login {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vw, 64px) var(--gutter);
  overflow: hidden;
}
/* The same warm wash that sits over the hero on the main site. */
.dr-login__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,90,60,.55) 0%, rgba(255,148,18,.10) 32%,
                    rgba(153,224,242,.10) 60%, rgba(11,10,35,0) 100%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.dr-login__panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  text-align: center;
  color: var(--c-white);
  animation: dr-rise .8s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes dr-rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dr-login__brand { display: inline-block; margin-bottom: clamp(28px, 5vw, 44px); }
.dr-login__brand img { width: clamp(180px, 26vw, 240px); height: auto; }

.dr-login__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 300;
  letter-spacing: .01em;
}
.dr-login__sub {
  margin: 0 auto 30px;
  max-width: 40ch;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.72);
}

.dr-alert {
  margin: 0 0 20px;
  padding: 11px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
  text-align: left;
}
.dr-alert--error {
  background: rgba(236,166,156,.16);
  border: 1px solid rgba(236,166,156,.5);
  color: #FFD9D3;
}
.dr-alert--info {
  background: rgba(153,224,242,.14);
  border: 1px solid rgba(153,224,242,.42);
  color: var(--c-cyan);
}

.dr-login__form { text-align: left; }

.dr-field { display: block; margin-bottom: 20px; }
.dr-field__label {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}
.dr-field__wrap { position: relative; display: block; }
.dr-field__input {
  width: 100%;
  padding: 15px 52px 15px 20px;
  font-family: inherit;
  font-size: 15px;
  color: var(--c-white);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: var(--radius-pill);
  transition: border-color .2s ease, background .2s ease;
}
.dr-field__input::placeholder { color: rgba(255,255,255,.38); }
.dr-field__input:focus {
  outline: none;
  border-color: var(--c-cyan);
  background: rgba(255,255,255,.11);
}
.dr-field__input:disabled { opacity: .5; cursor: not-allowed; }
.dr-field__peek {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  padding: 0;
  color: rgba(255,255,255,.6);
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.dr-field__peek:hover { color: var(--c-white); background: rgba(255,255,255,.1); }

.dr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 30px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.dr-btn--primary { background: var(--c-cyan); color: var(--c-navy); }
.dr-btn--primary:hover:not(:disabled) { background: var(--c-orange); color: var(--c-white); }
.dr-btn:disabled { opacity: .45; cursor: not-allowed; }
.dr-login__submit { width: 100%; }

.dr-login__foot {
  margin: 26px 0 0;
  font-size: 13px;
  text-align: center;
  color: rgba(255,255,255,.55);
}
.dr-login__foot a { color: var(--c-cyan); }
.dr-login__foot a:hover { color: var(--c-orange); }

.dr-login__legal {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: clamp(40px, 7vw, 72px) auto 0;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
  color: rgba(255,255,255,.35);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.dr-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11,10,35,.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--c-white);
}
.dr-head__inner {
  max-width: var(--max-w);
  min-height: var(--head-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
}
.dr-head__brand img { height: 26px; width: auto; }
.dr-head__tag {
  padding-left: clamp(12px, 2vw, 20px);
  border-left: 1px solid rgba(255,255,255,.28);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  white-space: nowrap;
}

.dr-search {
  position: relative;
  flex: 1;
  max-width: 460px;
  margin-left: auto;
}
.dr-search__icon {
  position: absolute;
  top: 50%; left: 15px;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  color: rgba(255,255,255,.5);
  pointer-events: none;
}
.dr-search__input {
  width: 100%;
  padding: 10px 40px 10px 42px;
  font-family: inherit;
  font-size: 14px;
  color: var(--c-white);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-pill);
  transition: border-color .2s ease, background .2s ease;
}
.dr-search__input::placeholder { color: rgba(255,255,255,.42); }
.dr-search__input::-webkit-search-cancel-button { display: none; }
.dr-search__input:focus {
  outline: none;
  border-color: var(--c-cyan);
  background: rgba(255,255,255,.13);
}
.dr-search__clear {
  position: absolute;
  top: 50%; right: 7px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  padding: 0;
  color: rgba(255,255,255,.62);
  background: none; border: 0; border-radius: 50%;
  cursor: pointer;
}
.dr-search__clear svg { width: 15px; height: 15px; }
.dr-search__clear:hover { color: var(--c-white); background: rgba(255,255,255,.12); }

.dr-head__out {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 13.5px;
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.26);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.dr-head__out svg { width: 16px; height: 16px; }
.dr-head__out:hover {
  color: var(--c-navy);
  background: var(--c-cyan);
  border-color: var(--c-cyan);
}

/* ==========================================================================
   INTRO
   ========================================================================== */
.dr-main {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(60px, 8vw, 100px);
}
.dr-intro { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.dr-intro__title {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 300;
  line-height: 1.1;
}
.dr-intro__lede {
  margin: 0 0 20px;
  max-width: 60ch;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--dr-muted);
}
.dr-intro__stats {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--dr-muted);
}
.dr-intro__stats strong { color: var(--dr-ink); font-weight: 600; }
.dr-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--dr-line); }

/* ==========================================================================
   CATALOGUE CARDS
   ========================================================================== */
.dr-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.dr-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
  text-align: left;
  background: var(--c-white);
  border: 1px solid var(--dr-line);
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.22,.61,.36,1),
              box-shadow .25s ease, border-color .25s ease;
}
/* Brand gradient hairline that wipes in on hover. */
.dr-cat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.dr-cat:hover, .dr-cat.is-open {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--dr-shadow);
}
.dr-cat:hover::before, .dr-cat.is-open::before { transform: scaleX(1); }

.dr-cat__icon {
  width: 46px; height: 46px;
  margin-bottom: 20px;
  padding: 10px;
  color: var(--c-navy);
  background: var(--dr-panel);
  border-radius: 12px;
  transition: background .25s ease, color .25s ease;
}
.dr-cat:hover .dr-cat__icon, .dr-cat.is-open .dr-cat__icon {
  color: var(--c-white);
  background: var(--c-navy);
}
.dr-cat__icon svg { width: 100%; height: 100%; stroke-width: 1.4; }

.dr-cat__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}
.dr-cat__blurb {
  margin: 0 0 20px;
  flex: 1;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--dr-muted);
}
.dr-cat__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--dr-line);
  font-size: 12.5px;
  color: var(--dr-muted);
}
.dr-cat__count { font-weight: 600; color: var(--dr-ink); }
.dr-cat__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dr-muted);
  transition: color .2s ease, gap .2s ease;
}
.dr-cat:hover .dr-cat__go { color: var(--c-orange); gap: 10px; }
.dr-cat__go svg { width: 15px; height: 15px; }

/* ==========================================================================
   FILE PANEL (expands under the cards)
   ========================================================================== */
.dr-panel {
  grid-column: 1 / -1;
  margin: 4px 0 10px;
  scroll-margin-top: calc(var(--head-h) + 18px);
  border: 1px solid var(--dr-line);
  border-radius: var(--radius);
  background: var(--dr-panel);
  overflow: hidden;
  animation: dr-open .3s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes dr-open {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dr-panel__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--dr-line);
  background: var(--c-white);
}
.dr-panel__icon { width: 26px; height: 26px; color: var(--c-navy); flex: none; }
.dr-panel__title { margin: 0; font-size: 16px; font-weight: 600; }
.dr-panel__count { font-size: 13px; color: var(--dr-muted); }
.dr-panel__close {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  padding: 0;
  color: var(--dr-muted);
  background: none;
  border: 1px solid var(--dr-line);
  border-radius: 50%;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.dr-panel__close svg { width: 15px; height: 15px; }
.dr-panel__close:hover { color: var(--c-white); background: var(--c-navy); }

/* --- document rows --- */
.dr-files { padding: 8px; }

.dr-file {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background .18s ease;
}
.dr-file + .dr-file { box-shadow: inset 0 1px 0 var(--dr-line); }
.dr-file:hover { background: var(--c-white); box-shadow: var(--dr-shadow); }
.dr-file:hover + .dr-file { box-shadow: none; }

.dr-file__icon { width: 21px; height: 21px; flex: none; color: var(--dr-muted); }
.dr-file:hover .dr-file__icon { color: var(--c-orange); }
.dr-file__body { flex: 1; min-width: 0; }
.dr-file__name {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dr-file__cat { display: block; margin-top: 3px; font-size: 11.5px; color: var(--dr-muted); }
.dr-file__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  font-size: 12px;
  color: var(--dr-muted);
}
.dr-file__ext {
  min-width: 42px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
  color: var(--dr-muted);
  background: var(--c-white);
  border: 1px solid var(--dr-line);
  border-radius: 4px;
}
.dr-file__size { min-width: 62px; text-align: right; }
.dr-file__dl {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  color: var(--dr-muted);
  border-radius: 50%;
  transition: color .2s ease, background .2s ease;
}
.dr-file__dl svg { width: 16px; height: 16px; }
.dr-file__dl:hover { color: var(--c-white); background: var(--c-navy); }

/* --- image grid --- */
.dr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  padding: 16px;
}
.dr-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 0;
  background: var(--c-white);
  border: 1px solid var(--dr-line);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s ease;
}
.dr-tile:hover { transform: translateY(-3px); box-shadow: var(--dr-shadow); }
.dr-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
}
.dr-tile:hover img { transform: scale(1.05); }
.dr-tile__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 12px 9px;
  font-size: 11.5px;
  color: var(--c-white);
  text-align: left;
  background: linear-gradient(to top, rgba(11,10,35,.86), rgba(11,10,35,0));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dr-tile__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--c-white);
  background: rgba(11,10,35,.3);
}
.dr-tile__play svg { width: 46px; height: 46px; stroke-width: 1.2; }

/* ==========================================================================
   SEARCH RESULTS
   ========================================================================== */
.dr-results__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}
.dr-results__head h2 { margin: 0; font-size: 20px; font-weight: 600; }
.dr-results__head span { font-size: 13.5px; color: var(--dr-muted); }
.dr-results .dr-files {
  padding: 8px;
  border: 1px solid var(--dr-line);
  border-radius: var(--radius);
  background: var(--dr-panel);
}
.dr-empty {
  padding: 56px 24px;
  text-align: center;
  color: var(--dr-muted);
  border: 1px dashed var(--dr-line);
  border-radius: var(--radius);
}
.dr-empty strong { display: block; margin-bottom: 6px; color: var(--dr-ink); font-size: 16px; }

/* ==========================================================================
   VIEWER
   ========================================================================== */
.dr-viewer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: rgba(11,10,35,.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: dr-fade .22s ease both;
}
@keyframes dr-fade { from { opacity: 0; } to { opacity: 1; } }

.dr-viewer__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
  padding: 13px clamp(14px, 3vw, 26px);
  color: var(--c-white);
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.dr-viewer__meta { min-width: 0; flex: 1; }
.dr-viewer__title {
  display: block;
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dr-viewer__sub { display: block; margin-top: 2px; font-size: 11.5px; color: rgba(255,255,255,.5); }

.dr-viewer__acts { display: flex; align-items: center; gap: 8px; flex: none; }
.dr-vbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 38px; height: 38px;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.08);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.dr-vbtn svg { width: 17px; height: 17px; }
.dr-vbtn--label { width: auto; padding: 0 18px; }
.dr-vbtn:hover { color: var(--c-navy); background: var(--c-cyan); }
.dr-vbtn--close:hover { color: var(--c-white); background: #C0392B; }
.dr-vbtn:disabled { opacity: .28; cursor: not-allowed; }
.dr-vbtn:disabled:hover { color: rgba(255,255,255,.85); background: rgba(255,255,255,.08); }

.dr-viewer__stage {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2vw, 26px);
}
.dr-viewer__stage iframe {
  width: 100%; height: 100%;
  background: var(--c-white);
  border: 0;
  border-radius: 6px;
}
.dr-viewer__stage img,
.dr-viewer__stage video {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 6px;
}
.dr-noview {
  max-width: 400px;
  text-align: center;
  color: rgba(255,255,255,.72);
}
.dr-noview svg { width: 54px; height: 54px; margin: 0 auto 20px; color: rgba(255,255,255,.4); }
.dr-noview h3 { margin: 0 0 10px; font-size: 17px; font-weight: 500; color: var(--c-white); }
.dr-noview p { margin: 0 0 24px; font-size: 13.5px; line-height: 1.6; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.dr-foot {
  padding: clamp(28px, 4vw, 44px) var(--gutter);
  color: rgba(255,255,255,.5);
  background: var(--c-navy);
}
.dr-foot__legal {
  max-width: 1180px;
  margin: 0 auto;
  font-size: 9.5px;
  line-height: 1.6;
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .dr-head__inner { flex-wrap: wrap; padding-block: 12px; gap: 12px; }
  .dr-search { order: 3; max-width: none; flex-basis: 100%; margin-left: 0; }
  /* The search drops to its own row, so sign-out takes over pushing right. */
  .dr-head__out { margin-left: auto; }
  .dr-head__out span { display: none; }
  .dr-head__out { width: 38px; height: 38px; padding: 0; justify-content: center; }
}
@media (max-width: 640px) {
  .dr-head__tag { display: none; }
  .dr-cats { grid-template-columns: 1fr; }
  .dr-file { gap: 10px; padding: 12px 10px; }
  .dr-file__ext, .dr-file__size { display: none; }
  .dr-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); padding: 10px; }
  .dr-vbtn--label span { display: none; }
  .dr-vbtn--label { width: 38px; padding: 0; }
}

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