/* us4atx.com portfolio. Black-and-white logo, warm paper, one sunset accent. */
:root {
  --ink: #111111;
  --ink-2: #1c1c1c;
  --ink-3: #2a2a2a;
  --paper: #f5f1ea;
  --paper-2: #ebe5da;
  --card: #ffffff;
  --text: #191919;
  --muted: #5d5a55;
  --line: #ddd5c8;
  --sun: #f08a24;
  --sun-ink: #b85d06;
  --on-dark: #f5f1ea;
  --on-dark-muted: #b9b3a9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08);
  --display: 'Antonio', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; margin: 0; }
h4 { font: 700 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 28px 0 12px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--sun); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 40; color: var(--on-dark); transition: background .25s, box-shadow .25s; }
.top.solid { background: rgba(17,17,17,.94); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 24px/1 var(--display); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 15px; color: var(--on-dark-muted); }
.nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav a.nav-cta { color: #111; background: var(--sun); margin-left: 8px; font-weight: 600; }
.nav a.nav-cta:hover { background: #ffa24a; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; }
.menu-btn span { display: block; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 64px 0 auto; flex-direction: column; align-items: stretch; background: var(--ink); padding: 12px 16px 20px; gap: 2px; transform: translateY(-120%); transition: transform .25s; border-bottom: 1px solid var(--ink-3); }
  .nav.open { transform: none; }
  .nav a { font-size: 18px; padding: 12px; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
  .menu-open .top { background: var(--ink); }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-sun { background: var(--sun); color: #111; }
.btn-sun:hover { background: #ffa24a; }
.btn-ghost { border-color: rgba(245,241,234,.4); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); }
.btn-ink { background: var(--ink); color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--on-dark); padding: 120px 0 56px; overflow: hidden; }
.hero-rays { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(circle at 78% 42%, rgba(240,138,36,.28), transparent 38%),
    repeating-linear-gradient(180deg, transparent 0 22px, rgba(255,255,255,.035) 22px 26px); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font: 600 13px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--sun); margin: 0 0 18px; }
.eyebrow.dark { color: var(--sun-ink); }
.hero h1 { font-size: clamp(44px, 6.6vw, 88px); }
.hero h1 em { font-style: normal; color: var(--sun); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--on-dark-muted); max-width: 36em; margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-logo { display: flex; justify-content: center; }
.hero-logo img { width: min(420px, 100%); height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.4)); animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.stats { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink-3); position: relative; }
.stats li { padding: 22px 8px 0; border-right: 1px solid var(--ink-3); text-align: center; }
.stats li:last-child { border-right: 0; }
.stats b { display: block; font: 700 clamp(36px, 4.4vw, 56px)/1 var(--display); color: #fff; }
.stats span { font-size: 13px; color: var(--on-dark-muted); letter-spacing: .04em; }
@media (max-width: 820px) {
  .hero { padding-top: 96px; }
  .hero-in { grid-template-columns: 1fr; gap: 32px; }
  .hero-logo { order: -1; justify-content: flex-start; }
  .hero-logo img { width: 160px; }
  .stats { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .stats li:nth-child(3) { border-right: 0; }
}
@media (max-width: 420px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats li:nth-child(3) { border-right: 1px solid var(--ink-3); } .stats li:nth-child(2n) { border-right: 0; } }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.sec-head { max-width: 720px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(38px, 5vw, 64px); }
.sec-lead { color: var(--muted); font-size: 18px; margin: 16px 0 0; }
.band { background: var(--ink); color: var(--on-dark); }
.band .sec-lead { color: var(--on-dark-muted); }
.band-ink { background: var(--ink-2); }
@media (max-width: 640px) { .section { padding: 64px 0; } }

/* ---------- filter chips + grid ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chips button { border: 1.5px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 16px; font-weight: 500; font-size: 15px; }
.chips button small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.chips button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips button[aria-selected="true"] small { color: var(--sun); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
@media (max-width: 400px) { .grid { grid-template-columns: 1fr; } }
.card[hidden] { display: none; }
.card-btn { all: unset; box-sizing: border-box; display: flex; flex-direction: column; height: 100%; width: 100%; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: transform .2s, box-shadow .2s; border-top: 4px solid var(--a); }
.card-btn:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 18px 40px rgba(0,0,0,.14); }
.card-btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .5s; }
.card-img.is-phone { display: flex; justify-content: center; background: linear-gradient(135deg, var(--a), #111); padding-top: 18px; }
.card-img.is-phone img { width: auto; height: 100%; object-fit: cover; border-radius: 16px 16px 0 0; box-shadow: 0 0 0 5px #111; }
.card-btn:hover .card-img:not(.is-phone) img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.kind { font: 600 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card-name { font: 700 26px/1.05 var(--display); text-transform: uppercase; }
.card-client { font-size: 14px; color: var(--muted); }
.card-tag { font-size: 15px; margin-top: 4px; }
.card-more { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 600; color: var(--sun-ink); }
.card-more i { font-style: normal; display: inline-block; transition: transform .2s; }
.card-btn:hover .card-more i { transform: translateX(4px); }
.plogo { display: inline-flex; align-items: center; height: 34px; }
.plogo img { max-height: 34px; width: auto; max-width: 130px; object-fit: contain; }
.plogo.on-dark { background: #111; border-radius: 8px; padding: 4px 8px; }
.plogo.on-dark img { max-height: 26px; }
.plogo.mono { width: 34px; justify-content: center; border-radius: 50%; background: var(--a); color: #fff; font: 700 15px/1 var(--display); }

/* ---------- platform ---------- */
.plat { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.plat-diagram { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 20px; padding: 28px; }
.hub { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px; border-radius: 16px; background: radial-gradient(circle at 50% 0%, rgba(240,138,36,.25), transparent 70%), var(--ink); border: 1px solid #3a3a3a; }
.hub b { font: 700 24px/1 var(--display); text-transform: uppercase; }
.hub span { color: var(--on-dark-muted); font-size: 13px; }
.sites { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; position: relative; }
.sites::before { content: ''; position: absolute; top: -22px; left: 50%; width: 2px; height: 22px; background: linear-gradient(var(--sun), transparent); }
.sites li { font-size: 13px; padding: 7px 12px 7px 10px; border-radius: 999px; background: var(--ink-3); display: flex; align-items: center; gap: 7px; }
.sites li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--a); }
.plat-mods h3 { font-size: 28px; margin-bottom: 18px; }
.mods { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.mods li { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ink-3); }
.mods b { font-weight: 600; }
.mods span { color: var(--on-dark-muted); font-size: 15px; }
@media (max-width: 900px) { .plat { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .mods li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- videos ---------- */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.vgrid.small { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.vcard { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.vcard:focus-visible, .vmini:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 12px; }
.vthumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #222; margin-bottom: 8px; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.vcard:hover .vthumb img, .vmini:hover .vthumb img { transform: scale(1.05); }
.play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(17,17,17,.78); box-shadow: 0 0 0 2px rgba(255,255,255,.7); transition: background .2s, transform .2s; }
.play::after { content: ''; position: absolute; left: 22px; top: 17px; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.vcard:hover .play, .vmini:hover .play { background: var(--sun); transform: scale(1.08); }
.vthumb em { position: absolute; right: 8px; bottom: 8px; font: 600 12px/1 var(--body); font-style: normal; color: #fff; background: rgba(0,0,0,.7); padding: 5px 7px; border-radius: 6px; }
.vt { font-weight: 600; }
.vd { font-size: 14px; color: var(--muted); }
.vgroups { margin-top: 56px; display: grid; gap: 40px; }
.vg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.vg-head h3 { font-size: 26px; }
.vg-head span { color: var(--muted); font-size: 14px; }
.vstrip { display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 14px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.vmini { all: unset; box-sizing: border-box; cursor: pointer; scroll-snap-align: start; font-size: 13px; font-weight: 500; }
.vmini .play { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.vmini .play::after { left: 15px; top: 11px; border-left-width: 14px; border-top-width: 9px; border-bottom-width: 9px; }

/* ---------- brand ---------- */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.lg, .cc { margin: 0; }
.lg span, .cc span { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: 14px; background: var(--paper); padding: 22px; }
.lg.dark span { background: #000; border: 1px solid var(--ink-3); }
.lg img, .cc img { max-height: 100%; width: auto; object-fit: contain; }
.lg figcaption, .cc figcaption { font-size: 13px; color: var(--on-dark-muted); margin-top: 8px; text-align: center; }
.sub { font-size: 26px; margin: 48px 0 16px; }
.concepts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cc span { background: #F7F5EE; aspect-ratio: 1; }
.cc.pick span { box-shadow: 0 0 0 3px #65A30D; }
.cc figcaption b { display: block; color: #A3D65C; font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 820px) { .concepts { grid-template-columns: repeat(3, 1fr); } }
.swatches { display: flex; flex-wrap: wrap; gap: 0; margin-top: 22px; border-radius: 12px; overflow: hidden; }
.swatches span { flex: 1 1 90px; background: var(--c); color: #fff; font: 600 12px/1 var(--body); padding: 34px 12px 12px; letter-spacing: .04em; }

/* ---------- timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 0; }
.timeline::before { content: ''; position: absolute; left: 118px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 100px 1fr; gap: 40px; padding: 14px 0; position: relative; }
.timeline li::before { content: ''; position: absolute; left: 112px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }
.timeline li:last-child::before { background: var(--sun); border-color: var(--sun); }
.timeline time { font: 700 22px/1.3 var(--display); text-transform: uppercase; text-align: right; }
.timeline b { font-size: 18px; }
.timeline p { margin: 2px 0 0; color: var(--muted); }
@media (max-width: 560px) {
  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 30px; }
  .timeline li::before { left: 0; top: 18px; }
  .timeline time { text-align: left; }
}

/* ---------- CTA + footer ---------- */
.cta { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 10% 50%, rgba(240,138,36,.3), transparent 45%); }
.cta-in { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.cta h2 { font-size: clamp(32px, 4vw, 48px); }
.cta p { color: var(--on-dark-muted); margin: 10px 0 0; font-size: 18px; }
@media (max-width: 820px) { .cta-in { grid-template-columns: 1fr; } .cta-in img { width: 64px; height: 64px; } }
.foot { background: #000; color: var(--on-dark-muted); padding: 40px 0; font-size: 14px; }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.foot p { margin: 0; flex: 1 1 300px; }
.foot a { color: var(--on-dark); }

/* ---------- project modal ---------- */
.modal, .viewer { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center; background: rgba(10,10,10,.72); backdrop-filter: blur(4px); padding: 32px 16px; opacity: 0; transition: opacity .2s; }
.modal[hidden], .viewer[hidden] { display: none; }
.modal.in, .viewer.in { opacity: 1; }
.modal-box { position: relative; background: var(--paper); border-radius: 20px; width: min(1040px, 100%); max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; padding: 36px clamp(18px, 4vw, 44px) 44px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 26px; line-height: 1; z-index: 2; }
.modal-box .x { position: sticky; float: right; top: 0; margin: -20px -24px 0 0; }
.pd-head { display: flex; align-items: center; gap: 16px; border-left: 5px solid var(--a); padding-left: 16px; }
.pd-head .plogo { height: 48px; }
.pd-head .plogo img { max-height: 48px; max-width: 160px; }
.pd-head .plogo.mono { width: 48px; font-size: 20px; }
.pd-head h3 { font-size: clamp(30px, 4vw, 44px); margin-top: 6px; }
.pd-client { margin: 4px 0 0; color: var(--muted); }
.pd-tag { font-size: 20px; margin: 20px 0 22px; max-width: 46em; }
.pd-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pd-gal button { all: unset; box-sizing: border-box; cursor: zoom-in; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.pd-gal button:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 10px; }
.pd-gal img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; object-position: top left; border-radius: 10px; box-shadow: var(--shadow); transition: transform .2s; }
.pd-gal.phones img { aspect-ratio: 9 / 16; object-position: top center; }
.pd-gal.phones { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pd-gal button:hover img { transform: translateY(-3px); }
.pd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.pd-cols p { margin: 0 0 12px; }
.pd-note { font-size: 14px; color: var(--muted); background: var(--paper-2); border-radius: 8px; padding: 8px 12px; display: inline-block; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; }
.tags span { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 11px; height: 6px; border-left: 2.5px solid var(--sun-ink); border-bottom: 2.5px solid var(--sun-ink); transform: rotate(-45deg); }
@media (max-width: 720px) { .pd-cols { grid-template-columns: 1fr; gap: 0; } .modal { padding: 0; } .modal-box { border-radius: 0; max-height: 100vh; max-height: 100dvh; min-height: 100dvh; } .modal-box .x { margin: -24px -8px 0 0; } }

/* ---------- screenshot + video viewer ---------- */
.viewer { align-items: center; background: rgba(5,5,5,.94); z-index: 70; padding: 16px; }
.viewer figure { margin: 0; max-width: min(1280px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.viewer img { max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); width: auto; border-radius: 8px; }
.viewer video { width: min(1280px, 100vw - 32px); max-height: calc(100dvh - 110px); background: #000; border-radius: 8px; }
.viewer figcaption { color: var(--on-dark); font-size: 14px; text-align: center; }
.viewer.err figcaption { color: var(--sun); }
.nav-arrow { position: absolute; top: 50%; margin-top: -28px; width: 56px; height: 56px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 34px; line-height: 1; }
.nav-arrow:hover { background: var(--sun); color: #111; }
.prev { left: 16px; } .next { right: 16px; }
@media (max-width: 640px) { .nav-arrow { top: auto; bottom: 14px; margin: 0; width: 48px; height: 48px; } .prev { left: calc(50% - 60px); } .next { right: calc(50% - 60px); } .viewer img { max-height: calc(100dvh - 160px); } }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.seen { opacity: 1; transform: none; }
.vgroup, .pd-cols > *, .plat > * { min-width: 0; }
#projBody .vstrip { margin-bottom: 4px; }
