/* Potzer LLC. Navy from the logo, warm paper, the logo's pixel steps as a
   motif; the handheld in the hero is pure CSS. Type: Barlow (OFL). */

@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --navy: #06255f;
  --navy-2: #0b3179;
  --navy-deep: #031640;
  --ink: #0d1b33;
  --ink-2: #44506a;
  --ink-3: #7a8499;
  --paper: #f4f2ec;
  --paper-2: #ebe8df;
  --line: rgba(6, 37, 95, 0.12);
  --fp: #4a90e2;
  --amber: #f5a83d;
  --shell: #e9e4d6;
  --shell-2: #d9d2c0;
  --lcd: #0a2a66;
  --lcd-ink: #d9e6ff;
  --lcd-hi: #ffd166;
  --gutter: clamp(18px, 4vw, 56px);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); }
h1, h2, h3 { font-weight: 600; line-height: 1.05; letter-spacing: -0.015em; margin: 0 0 0.45em; color: var(--navy); }
h1 { font-size: clamp(40px, 5vw, 68px); }
h1 .nw { white-space: nowrap; }
@media (max-width: 420px) { h1 .nw { white-space: normal; } }
h1 em { font-style: normal; color: var(--navy-2); background: linear-gradient(transparent 62%, rgba(245, 168, 61, 0.35) 62%); }
h2 { font-size: clamp(34px, 4.4vw, 58px); }
h3 { font-size: 36px; }
p { margin: 0 0 1em; color: var(--ink-2); }

.eyebrow { font-weight: 600; font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--navy); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.eyebrow-light { color: #fff; }
/* The logo's pixel steps as a small mark. */
.px { width: 18px; height: 18px; flex: none; background:
  linear-gradient(currentColor, currentColor) 0 0 / 6px 6px no-repeat,
  linear-gradient(currentColor, currentColor) 6px 6px / 6px 6px no-repeat,
  linear-gradient(currentColor, currentColor) 12px 12px / 6px 6px no-repeat; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); background: rgba(244, 242, 236, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.top.is-scrolled { border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img:first-child { width: 36px; }
.brand-word { width: 128px; }
.top nav { display: flex; gap: 28px; }
.top nav a { text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy); }
.top nav a:hover { color: var(--navy-2); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* Hero */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 90px) var(--gutter) clamp(60px, 8vw, 110px); display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 540px; }
.hint { font-size: 15px; color: var(--ink-3); margin-top: 26px; }
.key { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; margin: 0 2px; border-radius: 6px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 0 var(--line); font-weight: 600; font-size: 13px; color: var(--navy); }

/* The handheld */
.device-wrap { display: flex; justify-content: center; perspective: 1400px; }
.device {
  --w: min(400px, 88vw);
  width: var(--w); position: relative;
  padding: calc(var(--w) * 0.06) calc(var(--w) * 0.06) calc(var(--w) * 0.08);
  border-radius: 22px 22px 70px 22px;
  background: linear-gradient(160deg, #f3efe4 0%, var(--shell) 45%, var(--shell-2) 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.9), inset 0 -6px 14px rgba(0, 0, 0, 0.08), 0 30px 60px -20px rgba(6, 37, 95, 0.45), 0 8px 18px rgba(6, 37, 95, 0.15);
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.device:hover, .device:focus-within { transform: none; }
.bezel { background: #2c3242; border-radius: 12px 12px 40px 12px; padding: 12px 22px 26px; box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5); }
.bezel-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.led { width: 8px; height: 8px; border-radius: 50%; background: #3a4150; transition: background 0.3s, box-shadow 0.3s; }
.device.is-on .led { background: #ff4d4d; box-shadow: 0 0 8px #ff4d4d; }
.bezel-label { font-size: 9px; letter-spacing: 0.2em; color: #8b93a6; font-weight: 600; }
.screen { position: relative; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: #051230; outline: none; box-shadow: inset 0 0 0 2px #10183a; }
.screen:focus-visible { box-shadow: inset 0 0 0 2px #10183a, 0 0 0 3px var(--amber); }
.scanlines { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.device-brand { display: flex; justify-content: center; margin: 12px 0 18px; opacity: 0.55; }
.device-brand img { width: 30%; filter: grayscale(0.2); }

/* LCD content */
.lcd { position: absolute; inset: 0; background: var(--lcd); color: var(--lcd-ink); font: 600 calc(var(--w) * 0.038)/1.35 ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace; letter-spacing: 0.04em; padding: 7% 8%; display: flex; flex-direction: column; opacity: 0; transition: opacity 0.35s; }
.device.is-on .lcd { opacity: 1; }
.lcd .t { flex: none; color: #fff; font-size: 1.25em; letter-spacing: 0.12em; margin-bottom: 0.45em; display: flex; align-items: center; gap: 0.5em; }
.lcd .t::before { content: ""; width: 0.7em; height: 0.7em; background: var(--lcd-hi); box-shadow: 0.35em 0.35em 0 -0.12em rgba(255, 209, 102, 0.5); }
.lcd ul { list-style: none; margin: 0; padding: 0; flex: 1; line-height: 1.2; }
.lcd li { padding: 0.08em 0.5em; border-radius: 3px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.lcd li .tag { font-size: 0.72em; opacity: 0.6; }
.lcd li.on { background: var(--lcd-ink); color: var(--lcd); }
.lcd li.on::before { content: "\25B8"; margin-right: 0.4em; }
.lcd li:not(.on)::before { content: "\25B8"; margin-right: 0.4em; visibility: hidden; }
.lcd li span.lab { flex: 1; }
.lcd .keys { font-size: 0.72em; opacity: 0.7; display: flex; justify-content: space-between; border-top: 1px solid rgba(217, 230, 255, 0.25); padding-top: 0.45em; margin-top: auto; flex: none; }
.lcd .pic { flex: 1 1 auto; min-height: 0; width: 100%; object-fit: cover; border-radius: 3px; margin-bottom: 0.45em; filter: saturate(1.1) contrast(1.05); }
.lcd .pic-fp { object-fit: contain; background: #1a1f26; }
.lcd .row { flex: 1 1 auto; min-height: 0; display: flex; gap: 0.8em; margin-bottom: 0.45em; }
.lcd .row .pic { flex: none; height: 100%; width: auto; aspect-ratio: 1 / 1; margin: 0; }
.lcd .side { flex: 1; min-width: 0; font-weight: 400; font-size: 0.9em; display: flex; flex-direction: column; justify-content: center; }
.lcd .side p { margin: 0 0 0.5em; color: var(--lcd-ink); }
.lcd .side .hl { color: var(--lcd-hi); font-weight: 600; }
.lcd .side .dim { opacity: 0.7; font-size: 0.85em; }
.lcd .body { flex: 1 1 auto; min-height: 0; overflow: hidden; font-weight: 400; font-size: 0.92em; }
.lcd .line { flex: none; font-weight: 400; font-size: 0.86em; margin-bottom: 0.35em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcd .body p { color: var(--lcd-ink); margin: 0 0 0.5em; }
.lcd .hl { color: var(--lcd-hi); }
.lcd .cta { color: var(--lcd-hi); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.lcd .boot { flex: 1; display: grid; place-items: center; text-align: center; }
.lcd .boot img { width: 34%; margin: 0 auto 0.8em; filter: brightness(0) invert(1); }
.lcd .boot .px-in { animation: pxin 1.1s steps(6) both; }
@keyframes pxin { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.lcd .press { color: var(--lcd-hi); font-size: 0.85em; animation: blink 1s steps(2) infinite; margin-top: 0.4em; }
.lcd .sound { position: absolute; top: 6%; right: 7%; font-size: 0.7em; opacity: 0.75; }
.lcd .gbox { flex: 1 1 auto; min-height: 0; position: relative; margin-bottom: 0.2em; }
.lcd .gbox canvas { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; border-radius: 3px; touch-action: none; }
.screen { touch-action: pan-y; }

/* Controls */
.controls { display: flex; justify-content: space-between; align-items: center; padding: 0 2%; }
.dpad { --s: calc(var(--w) * 0.34); width: var(--s); height: var(--s); display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); position: relative; }
.dpad .d { border: 0; margin: 0; padding: 0; background: #262b36; cursor: pointer; position: relative; }
.dpad .up { grid-area: 1 / 2; border-radius: 6px 6px 0 0; }
.dpad .left { grid-area: 2 / 1; border-radius: 6px 0 0 6px; }
.dpad .mid { grid-area: 2 / 2; background: #262b36; }
.dpad .right { grid-area: 2 / 3; border-radius: 0 6px 6px 0; }
.dpad .down { grid-area: 3 / 2; border-radius: 0 0 6px 6px; }
.dpad { filter: drop-shadow(0 4px 0 #151922) drop-shadow(0 10px 12px rgba(0, 0, 0, 0.25)); }
.dpad .d::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border: 6px solid transparent; opacity: 0.35; }
.dpad .up::after { border-bottom-color: #9aa3b5; border-top-width: 0; }
.dpad .down::after { border-top-color: #9aa3b5; border-bottom-width: 0; }
.dpad .left::after { border-right-color: #9aa3b5; border-left-width: 0; }
.dpad .right::after { border-left-color: #9aa3b5; border-right-width: 0; }
.dpad .d.down-now, .dpad .d:active { background: #1a1e27; }
.ab { display: flex; gap: calc(var(--w) * 0.04); transform: rotate(-24deg); margin-right: 2%; }
.ab button { width: calc(var(--w) * 0.15); height: calc(var(--w) * 0.15); border-radius: 50%; border: 0; cursor: pointer; background: radial-gradient(circle at 35% 30%, #2d5fc4, var(--navy) 70%); box-shadow: 0 4px 0 var(--navy-deep), 0 10px 14px rgba(0, 0, 0, 0.25); display: grid; place-items: center; transition: transform 0.06s, box-shadow 0.06s; }
.ab .btn-a { margin-top: calc(var(--w) * -0.07); }
.ab button span { transform: rotate(24deg); translate: 0 calc(var(--w) * 0.12); color: var(--navy); font-weight: 600; font-size: 14px; }
.ab button.down-now, .ab button:active, .pill.down-now, .pill:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy-deep), 0 4px 8px rgba(0, 0, 0, 0.25); }
.pills { display: flex; justify-content: center; gap: calc(var(--w) * 0.08); margin-top: calc(var(--w) * 0.1); }
.pill { border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; transform: rotate(-24deg); }
.pill span { display: block; width: calc(var(--w) * 0.13); height: calc(var(--w) * 0.035); border-radius: 99px; background: #8a8577; box-shadow: 0 2px 0 #6e6a5e; }
.pill i { font-style: normal; font-size: 10px; letter-spacing: 0.16em; color: #8a8577; font-weight: 600; }
.grille { position: absolute; right: 9%; bottom: 7%; display: flex; gap: 6px; transform: rotate(-30deg); }
.grille i { width: 5px; height: calc(var(--w) * 0.14); border-radius: 3px; background: rgba(0, 0, 0, 0.12); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2); }
.dpad .d:focus-visible, .ab button:focus-visible, .pill:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Work */
.work { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 60px; }
.section-head { margin-bottom: 40px; }
.section-lead { font-size: 20px; max-width: 640px; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; padding: clamp(40px, 5vw, 70px) 0; border-top: 1px solid var(--line); }
.product-title { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.product-title img { width: 64px; border-radius: 16px; box-shadow: 0 8px 20px -8px rgba(6, 37, 95, 0.5); }
.product-title h3 { margin: 0; }
.product-title .hr-logo { width: 220px; border-radius: 0; box-shadow: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2)); }
.tagline { font-weight: 600; font-size: 20px; color: var(--navy); margin: 2px 0 14px; }
.product-fp .tagline { color: var(--fp); }
.product-hr .tagline { color: #b86e0a; }
.product-cl .tagline { color: #2c7349; }
.product-sa .tagline, .product-sa .soon { color: #c23c0a; }
.product-sa .product-title img { border-radius: 14px; }
.btn-sa { background: #ff5a1f; border-color: #ff5a1f; color: #fff; box-shadow: 0 4px 0 #c23c0a; }
.btn-sa:hover { box-shadow: 0 6px 0 #c23c0a; }
.product-cl .soon { color: #2c7349; }
.facts { list-style: none; padding: 0; margin: 0 0 18px; }
.facts li { position: relative; padding-left: 26px; margin-bottom: 8px; color: var(--ink); }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; background: var(--navy); box-shadow: 4px 4px 0 -1px rgba(6, 37, 95, 0.3); }
.platforms { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--ink-3); }
.soon { color: #b86e0a; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 10px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: 0.04em; border: 2px solid var(--navy); transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 4px 0 var(--navy-deep); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--navy-deep); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--navy-deep); }
.btn-line { background: transparent; color: var(--navy); box-shadow: 0 4px 0 var(--line); }
.btn-amber { background: var(--amber); border-color: var(--amber); color: #1b1300; box-shadow: 0 4px 0 #b86e0a; }
.btn-amber:hover { box-shadow: 0 6px 0 #b86e0a; }
.btn-green { background: #1e5034; border-color: #1e5034; color: #fff; box-shadow: 0 4px 0 #0f2e1d; }
.btn-green:hover { box-shadow: 0 6px 0 #0f2e1d; }
.fine { font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.product-media { position: relative; }
.product-fp .product-media, .product-cl .product-media { display: flex; justify-content: center; gap: 18px; padding: 20px 0; }
.lcd .pic-cl { object-fit: cover; background: #f6f4ee; }
.phone { width: 44%; border-radius: 24px; box-shadow: 0 30px 50px -20px rgba(6, 37, 95, 0.5), 0 0 0 6px #10131b; }
.phone-2 { transform: translateY(40px); }
.product-hr { grid-template-columns: 1fr 1.1fr; }
.hr-media { aspect-ratio: 1 / 0.8; }
.shot { position: absolute; width: 72%; border-radius: 12px; box-shadow: 0 24px 50px -18px rgba(6, 37, 95, 0.55); border: 4px solid #fff; transition: transform 0.4s; }
.s1 { left: 0; top: 0; transform: rotate(-3deg); }
.s2 { right: 0; top: 24%; transform: rotate(2.5deg); z-index: 2; }
.s3 { left: 8%; bottom: 0; transform: rotate(-1deg); z-index: 3; }
.hr-media:hover .s1 { transform: rotate(-5deg) translate(-8px, -6px); }
.hr-media:hover .s2 { transform: rotate(4deg) translate(8px, 0); }

/* More on the way: room for the next project */
.next { display: flex; align-items: center; gap: 26px; margin-top: 10px; padding: 30px clamp(20px, 3vw, 40px); border: 2px dashed rgba(6, 37, 95, 0.25); border-radius: 18px; }
.next h3 { font-size: 28px; margin: 0 0 4px; }
.next p { margin: 0; }
.next-mark { position: relative; width: 54px; height: 54px; flex: none; }
.next-mark span { position: absolute; width: 18px; height: 18px; background: var(--navy); opacity: 0.25; animation: step 2.4s steps(1) infinite; }
.next-mark span:nth-child(1) { left: 0; top: 0; }
.next-mark span:nth-child(2) { left: 18px; top: 18px; animation-delay: 0.8s; }
.next-mark span:nth-child(3) { left: 36px; top: 36px; animation-delay: 1.6s; }
@keyframes step { 0%, 33% { opacity: 1; } 34%, 100% { opacity: 0.25; } }

/* About */
.about { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.about::before { content: ""; position: absolute; right: -60px; top: -60px; width: 360px; height: 360px; opacity: 0.08; background:
  linear-gradient(#fff, #fff) 0 0 / 120px 120px no-repeat, linear-gradient(#fff, #fff) 120px 120px / 120px 120px no-repeat, linear-gradient(#fff, #fff) 240px 240px / 120px 120px no-repeat; }
.about-inner { max-width: var(--max); margin: 0 auto; padding: clamp(60px, 8vw, 110px) var(--gutter); display: grid; grid-template-columns: 200px 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.about-emblem { width: 160px; opacity: 0.95; }
.about h2 { color: #fff; }
.about p { color: #c9d4ea; max-width: 720px; font-size: 19px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.pillars div { border-top: 3px solid var(--amber); padding-top: 12px; }
.pillars b { display: block; font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.pillars span { color: #b6c3dd; font-size: 16px; }

/* Contact */
.contact { max-width: var(--max); margin: 0 auto; padding: clamp(60px, 8vw, 100px) var(--gutter); }
.contact-line { font-size: 20px; }
.contact-sub { color: var(--ink-2); max-width: 720px; }

/* Contact form */
.contact-form { max-width: 720px; margin-top: 28px; display: grid; gap: 16px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid rgba(6, 37, 95, 0.22); border-radius: 10px; padding: 11px 13px; width: 100%; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid rgba(245, 168, 61, 0.45); border-color: var(--navy); }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }
.cf-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cf-send { font: inherit; font-weight: 600; letter-spacing: 0.04em; color: #fff; background: var(--navy); border: 0; border-radius: 999px; padding: 12px 28px; cursor: pointer; }
.cf-send:hover { background: var(--navy-2); }
.cf-send:disabled { opacity: 0.55; cursor: progress; }
.cf-status { margin: 0; font-weight: 600; }
.cf-status.ok { color: #1f7a3f; }
.cf-status.err { color: #b3261e; }
@media (max-width: 620px) { .cf-row { grid-template-columns: 1fr; } }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 40px var(--gutter) 50px; text-align: center; }
.foot img { width: 120px; margin: 0 auto 16px; }
.foot p { font-size: 14px; color: var(--ink-3); margin: 0 0 4px; }
.foot-small { font-size: 12px !important; max-width: 760px; margin: 8px auto 0 !important; }

/* Reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .device { transform: none; }
  .lcd .cta, .lcd .press, .next-mark span { animation: none; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .device { transform: none; }
  .product, .product-hr { grid-template-columns: 1fr; }
  .product-hr .product-text { order: 2; }
  .about-inner { grid-template-columns: 1fr; }
  .about-emblem { width: 110px; }
  .pillars { grid-template-columns: 1fr; }
  .hint { display: none; }
}
@media (max-width: 560px) {
  .top nav { gap: 16px; }
  .top nav a { font-size: 12px; letter-spacing: 0.1em; }
  .brand-word { display: none; }
  h3 { font-size: 30px; }
  .hr-media { aspect-ratio: 1 / 0.9; }
}
