/* Empire Syndicates: shared design system.
   Struck metal on black. One idea carries the whole site: a highlight that moves across silver. */

@property --sx { syntax: "<length-percentage>"; inherits: true; initial-value: 30%; }
@property --sy { syntax: "<length-percentage>"; inherits: true; initial-value: 25%; }

:root {
  --black: #000000;
  --ink: #f0f0f0;
  --silver: #c7c7c7;
  --steel: #929292;
  --iron: #2c2c2c;
  --iron-hi: #474747;
  --plate: rgba(255, 255, 255, .035);
  --plate-hi: rgba(255, 255, 255, .075);
  --ok: #d1d1d1;
  --bad: #b8b8b8;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --metal: radial-gradient(circle 340px at var(--sx) var(--sy), #ffffff 0, #eeeeee 16%, #acacac 42%, #666666 72%, #939393 100%);
  --chrome: linear-gradient(180deg, #f8f8f8 0%, #d3d3d3 46%, #919191 50%, #cdcdcd 78%, #eeeeee 100%);

  --wrap: 1180px;
  --bar: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 16px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--black); color: var(--silver);
  font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, canvas, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--steel); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; border-radius: 2px; }
::selection { background: #dcdcdc; color: #000000; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display, h1, h2 { font-family: var(--display); font-stretch: 118%; font-weight: 800; color: var(--ink); letter-spacing: -.012em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 1.2rem + 5vw, 4.75rem); }
h2 { font-size: clamp(1.65rem, 1rem + 2.4vw, 2.7rem); }
h3 { font-family: var(--display); font-stretch: 105%; font-weight: 700; color: var(--ink); font-size: 1.15rem; line-height: 1.25; letter-spacing: -.005em; }
.lead { font-size: clamp(1.05rem, .95rem + .45vw, 1.25rem); line-height: 1.55; max-width: 58ch; color: var(--silver); text-wrap: pretty; }
.fine { font-size: .875rem; color: var(--steel); line-height: 1.5; }
.num { font-variant-numeric: tabular-nums; }
p { text-wrap: pretty; max-width: 68ch; }

/* The metal: text and marks catch a moving highlight. JS feeds --sx/--sy from the pointer; at rest it drifts. */
.metal { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
html:not(.pointer) .metal, html:not(.pointer) .mark::after { animation: drift 11s ease-in-out infinite alternate; }
@keyframes drift { from { --sx: 12%; --sy: 18%; } to { --sx: 88%; --sy: 62%; } }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
main { flex: 1; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section + .section { border-top: 1px solid var(--iron); }
.stack > * + * { margin-top: var(--gap, 1rem); }
.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- header ---------- */
.bar { position: sticky; top: 0; z-index: 40; height: var(--bar); background: rgba(0, 0, 0, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--iron); }
.bar .wrap { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 1rem; letter-spacing: -.005em; white-space: nowrap; }
.mark { position: relative; width: 40px; height: 40px; flex: none; }
.mark img { width: 100%; height: 100%; object-fit: contain; }
.mark::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle 26px at var(--sx) var(--sy), rgba(255, 255, 255, .95), transparent 70%); mix-blend-mode: overlay;
  -webkit-mask: url("../emblem-128.png") center / contain no-repeat; mask: url("../emblem-128.png") center / contain no-repeat; pointer-events: none; }
.nav { display: flex; gap: .25rem; margin-left: auto; }
.nav a { position: relative; padding: .5rem .8rem; color: var(--steel); text-decoration: none; font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px; background: var(--chrome); }
.who { display: flex; align-items: center; gap: .6rem; margin-left: .5rem; padding-left: 1rem; border-left: 1px solid var(--iron); min-height: 28px; }
.who .name { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--ink); max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who img, .who .ini { width: 24px; height: 24px; border-radius: 50%; background: var(--iron); display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: var(--ink); object-fit: cover; flex: none; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--iron); background: none; border-radius: 4px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease), top .25s var(--ease); }
.burger::before { top: 17px; } .burger::after { top: 25px; }
.burger[aria-expanded="true"]::before { top: 21px; transform: rotate(45deg); } .burger[aria-expanded="true"]::after { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: block; }
  .nav, .who { display: none; }
  .bar.open { height: auto; position: fixed; inset: 0; background: #000000; }
  .bar.open .wrap { flex-wrap: wrap; align-content: flex-start; padding-top: calc((var(--bar) - 44px) / 2); gap: 0; }
  .bar.open .brand, .bar.open .burger { order: 0; }
  .bar.open .nav { display: flex; flex-direction: column; order: 5; width: 100%; margin: 2rem 0 0; gap: 0; }
  .bar.open .nav a { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 1.7rem; color: var(--ink); padding: 1rem 0; border-bottom: 1px solid var(--iron); }
  .bar.open .nav a[aria-current="page"]::after { display: none; }
  .bar.open .who { display: flex; order: 6; width: 100%; margin: 1.5rem 0 0; padding: 0; border: 0; }
}

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.4rem; border-radius: 3px; border: 1px solid transparent; text-decoration: none; font-weight: 600; font-size: .97rem; line-height: 1.2; overflow: hidden; isolation: isolate; transition: transform .15s var(--ease), border-color .2s, background-color .2s, color .2s; }
.btn:active { transform: translateY(1px); }
.btn--chrome { background: var(--chrome); color: #000000; border-color: #ffffff55; box-shadow: inset 0 1px 0 #ffffff, 0 0 0 1px #00000066; }
.btn--chrome::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .85) 50%, transparent 65%); transform: translateX(-120%); }
.btn--chrome:hover::before { transform: translateX(120%); transition: transform .7s var(--ease); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--iron-hi); }
.btn--line:hover { border-color: var(--silver); background: var(--plate); }
.btn--sm { min-height: 36px; padding: .4rem .9rem; font-size: .875rem; }
.btn--quiet { background: none; border: 0; color: var(--steel); padding: .4rem .2rem; min-height: 0; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; font-weight: 500; }
.btn--quiet:hover { color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- surfaces ---------- */
.plate { background: linear-gradient(180deg, var(--plate-hi), var(--plate)); border: 1px solid var(--iron); border-radius: 4px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.tag { display: inline-block; padding: .12rem .55rem; border: 1px solid var(--iron-hi); border-radius: 99px; font-size: .8rem; color: var(--silver); line-height: 1.5; white-space: nowrap; }

/* ---------- forms ---------- */
.field { display: grid; gap: .4rem; }
.field > label, .field > .label { font-size: .9rem; font-weight: 500; color: var(--ink); }
.field .hint { font-size: .82rem; color: var(--steel); }
input[type=text], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: .65rem .85rem; background: #000000; color: var(--ink); border: 1px solid var(--iron-hi); border-radius: 3px; font: inherit; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%), linear-gradient(135deg, var(--steel) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
input::placeholder, textarea::placeholder { color: #646464; }
input:hover, select:hover, textarea:hover { border-color: var(--steel); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: #ffffff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
.msg { font-size: .92rem; min-height: 1.4em; }
.msg.ok { color: var(--ok); } .msg.bad { color: var(--bad); }

/* segmented filter */
.seg { display: inline-flex; flex-wrap: wrap; gap: .35rem; }
.seg button { min-height: 38px; padding: .3rem .9rem; background: none; border: 1px solid var(--iron); border-radius: 99px; color: var(--steel); font-size: .9rem; font-weight: 500; transition: color .2s, border-color .2s, background-color .2s; }
.seg button:hover { color: var(--ink); border-color: var(--iron-hi); }
.seg button[aria-pressed="true"] { color: #000000; background: var(--chrome); border-color: #ffffff66; }

/* ---------- dialog ---------- */
.veil { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .78); display: grid; place-items: center; padding: 1.25rem; animation: fade .2s ease-out; }
.dlg { position: relative; width: min(100%, 440px); padding: 2rem 1.75rem 1.75rem; background: #000000; border: 1px solid var(--iron-hi); border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .14); animation: rise .28s var(--ease); }
.dlg h2 { font-size: 1.55rem; margin-bottom: .6rem; }
.dlg .x { position: absolute; top: .6rem; right: .6rem; width: 40px; height: 40px; background: none; border: 0; font-size: 1.5rem; color: var(--steel); line-height: 1; }
.dlg .x:hover { color: var(--ink); }
.dlg .row { margin-top: 1.4rem; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.985); } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 90; transform: translate(-50%, 0); max-width: min(92vw, 420px); padding: .7rem 1.1rem; background: #000000; color: var(--ink); border: 1px solid var(--iron-hi); border-radius: 4px; font-size: .92rem; box-shadow: 0 12px 40px rgba(0, 0, 0, .7); animation: rise .25s var(--ease); }

/* ---------- faq ---------- */
.faq details { border-top: 1px solid var(--iron); }
.faq details:last-child { border-bottom: 1px solid var(--iron); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; cursor: pointer; color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--steel); border-bottom: 1.5px solid var(--steel); transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s var(--ease), border-color .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); border-color: var(--ink); }
.faq summary:hover::after { border-color: var(--ink); }
.faq .ans { padding: 0 2rem 1.3rem 0; color: var(--silver); max-width: 64ch; }

/* ---------- staff (real accounts) ---------- */
.staff { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.staff-intro { margin-bottom: 1.5rem; }
.staff-intro p { margin-top: .65rem; }
.staff--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.staff--featured .person { grid-template-columns: 1fr; justify-items: center; align-content: start; gap: 1rem; min-height: 0; padding: 1.5rem; text-align: center; }
.staff--featured .person img { width: clamp(132px, 16vw, 180px); height: clamp(132px, 16vw, 180px); }
.staff--featured .person .user { justify-content: center; }
.person { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1.25rem; align-items: center; min-height: 152px; padding: 1.25rem; }
.person img { width: 120px; height: 120px; object-fit: cover; border-radius: 5px; }
.person h3 { font-size: 1.2rem; }
.person .user { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: .5rem; color: var(--silver); font-size: 1.05rem; }
.person .user b { font-weight: 600; color: var(--ink); }
.person .user .btn { min-height: 44px; padding-inline: 1rem; }
@media (max-width: 560px) {
  .person { grid-template-columns: 92px minmax(0, 1fr); gap: 1rem; min-height: 0; padding: 1rem; }
  .person img { width: 92px; height: 92px; }
  .person h3 { font-size: 1.1rem; }
}
@media (max-width: 560px) { .staff--featured { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--iron); padding-block: 3rem 2.5rem; overflow: hidden; }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin-bottom: 1.25rem; }
.foot nav a { color: var(--silver); text-decoration: none; font-weight: 500; }
.foot nav a:hover { color: #ffffff; text-decoration: underline; }
.foot .emblem { width: clamp(110px, 16vw, 180px); opacity: .92; }
@media (max-width: 640px) { .foot .wrap { grid-template-columns: 1fr; } .foot .emblem { display: none; } }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html:not(.pointer) .metal, html:not(.pointer) .mark::after { animation: none; }
}
