/* ============================================================
   Fishtown Development — from the studio's own design export
   Display: Anton · Body/labels: Archivo · Monochrome bone-on-black
   ============================================================ */

:root {
  --bg:    #0c0b09;
  --bone:  #efe7d6;
  --soft:  #c7bfae;
  --muted: #9c9384;
  --line:  rgba(239, 231, 214, 0.14);
  --line-2:rgba(239, 231, 214, 0.24);
  --edge:  rgba(239, 231, 214, 0.32);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--bone);
  font-family: "Archivo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--bone); text-decoration: none; }
a:hover { color: #fff; }
::selection { background: var(--bone); color: var(--bg); }
img { display: block; max-width: 100%; }

.display { font-family: "Anton", "Archivo", sans-serif; font-weight: 400; text-transform: uppercase; }
.muted { color: var(--muted); }

.shell { max-width: 1600px; margin: 0 auto; position: relative; }

/* ---- logo keying: black-on-white art → bone on dark ---- */
.brand__logo, .hero__monogram, .loader__logo, .footer__logo {
  filter: invert(1);
  mix-blend-mode: screen;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  font-family: "Archivo", sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.btn--sm { padding: 11px 18px; gap: 8px; }
.btn--solid { background: var(--bone); color: var(--bg); }
.btn--solid:hover { color: var(--bg); background: #fff; }
.btn--ghost { border: 1px solid rgba(239, 231, 214, 0.3); color: var(--bone); }
.btn--ghost:hover { border-color: var(--bone); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.btn-row--center { justify-content: center; margin-top: 40px; }

:where(a, button):focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }

/* ---- flash frame (matted double border) ---- */
.frame {
  position: relative;
  border: 1px solid var(--edge);
  box-shadow: inset 0 0 0 8px var(--bg), inset 0 0 0 9px rgba(239, 231, 214, 0.2);
}
.frame--hero { box-shadow: inset 0 0 0 6px var(--bg), inset 0 0 0 7px rgba(239, 231, 214, 0.22); }

/* ---- sparkles ---- */
.spark { position: absolute; font-size: 18px; color: var(--bone); animation: fd-twinkle 3s ease-in-out infinite; }
.spark--tl { top: 12px; left: 14px; }
.spark--tr { top: 12px; right: 14px; animation-delay: .8s; }
.spark--bl { bottom: 12px; left: 14px; animation-delay: 1.5s; }
.spark--br { bottom: 12px; right: 14px; animation-delay: 2.2s; }
.contact .spark--tl, .contact .spark--tr, .contact .spark--bl, .contact .spark--br { top: 18px; left: 20px; }
.contact .spark--tr { left: auto; right: 20px; }
.contact .spark--bl { top: auto; bottom: 18px; }
.contact .spark--br { top: auto; left: auto; bottom: 18px; right: 20px; }

/* ============================================================
   BOOT LOADER
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  animation: fd-loadout 2.8s ease forwards;
}
.loader__glyph { position: relative; width: 128px; height: 128px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.loader__logo { width: 100%; animation: fd-reveal 2s cubic-bezier(.2,.7,.2,1) forwards; }
.loader__scan { position: absolute; left: -6%; width: 112%; height: 2px; background: var(--bone); box-shadow: 0 0 16px 2px rgba(239,231,214,.7); animation: fd-scan 1.9s ease-in-out forwards; }
.loader__bar { width: 210px; height: 2px; background: rgba(239,231,214,.15); overflow: hidden; }
.loader__fill { height: 100%; background: var(--bone); transform-origin: left; animation: fd-prog 2.2s ease forwards; }
.loader__label { font-family: "Archivo", sans-serif; font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); animation: fd-flicker 1.2s linear infinite; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 6vw;
  background: rgba(12, 11, 9, 0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__logo { height: 38px; width: auto; }
.brand__word { font-family: "Archivo", sans-serif; font-size: 11px; line-height: 1.25; letter-spacing: .22em; text-transform: uppercase; color: var(--bone); }
.nav__links { display: flex; align-items: center; gap: 34px; font-family: "Archivo", sans-serif; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.nav__links > a:not(.btn) { opacity: .75; }
.nav__links > a:not(.btn):hover { opacity: 1; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 96px 6vw 72px; position: relative; }
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: "Archivo", sans-serif; font-size: 12px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 34px;
}
.eyebrow__tick { width: 30px; height: 1px; background: var(--muted); display: inline-block; }
.clock { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--bone); font-variant-numeric: tabular-nums; }
.clock__dot { width: 7px; height: 7px; background: var(--bone); border-radius: 50%; display: inline-block; animation: fd-blink 1.4s step-end infinite; }

.hero__grid { display: grid; grid-template-columns: 1.55fr .95fr; gap: 48px; align-items: end; }
.hero__h { font-size: clamp(52px, 9vw, 150px); line-height: .9; letter-spacing: -.01em; text-wrap: balance; }
.hero__sub { max-width: 560px; margin-top: 30px; font-size: 19px; line-height: 1.55; color: var(--soft); }

.hero__stamp { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.hero__monogram { width: 56%; animation: fd-float 5.5s ease-in-out infinite; }
.hero__stamp-label { position: absolute; bottom: 18px; font-family: "Archivo", sans-serif; font-size: 10px; letter-spacing: .3em; color: var(--muted); }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding: 110px 6vw 40px; }
.rule { display: flex; align-items: baseline; gap: 20px; margin-bottom: 56px; }
.rule__label { font-family: "Archivo", sans-serif; font-size: 13px; letter-spacing: .25em; color: var(--muted); }
.rule__line { flex: 1; height: 1px; background: var(--line); }
.section__h { font-size: clamp(38px, 5.5vw, 80px); line-height: .95; max-width: 16ch; margin-bottom: 24px; }
#products .section__h { max-width: 15ch; margin-bottom: 64px; }
.section__sub { max-width: 640px; font-size: 18px; line-height: 1.6; color: var(--soft); margin-bottom: 64px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* ---- product cards ---- */
.card { padding: 34px; }
.card__spark { top: 16px; right: 18px; font-size: 16px; }
.card__kicker { font-family: "Archivo", sans-serif; font-size: 12px; letter-spacing: .22em; color: var(--muted); margin-bottom: 20px; }
.card__h { font-size: clamp(34px, 4vw, 56px); line-height: .95; }
.card__desc { margin-top: 18px; font-size: 16px; line-height: 1.6; color: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { font-family: "Archivo", sans-serif; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--line-2); color: var(--soft); }
.card__links { display: flex; gap: 24px; margin-top: 24px; font-family: "Archivo", sans-serif; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.card__cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.card__alt { opacity: .7; }
.card__alt:hover { opacity: 1; }

/* ---- image placeholder slot ---- */
.slot {
  position: relative; height: 210px; margin-top: 26px;
  border: 1px solid rgba(239, 231, 214, 0.2);
  display: grid; place-items: center; text-align: center;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 9px, rgba(239,231,214,.03) 9px, rgba(239,231,214,.03) 18px);
}
.slot span { font-family: "Archivo", sans-serif; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0 1rem; }
.slot--sq { height: 100%; margin-top: 0; }

/* ---- product screenshot ---- */
.shot { position: relative; height: 210px; margin-top: 26px; overflow: hidden; border: 1px solid rgba(239, 231, 214, 0.2); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ---- team ---- */
.member { display: flex; gap: 26px; align-items: flex-start; padding: 30px; }
.member__photo { position: relative; width: 150px; height: 150px; flex-shrink: 0; border: 1px solid rgba(239, 231, 214, 0.28); }
.member__mark { width: 100%; height: 100%; display: grid; place-items: center; }
.member__mark img { width: 54%; filter: invert(1); mix-blend-mode: screen; opacity: .45; }
.member__no { font-family: "Archivo", sans-serif; font-size: 11px; letter-spacing: .22em; color: var(--muted); margin-bottom: 8px; }
.member__role { font-size: 34px; line-height: 1; }
.member__title { font-family: "Archivo", sans-serif; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.member__bio { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--soft); }

/* ---- contact ---- */
.section--contact { padding: 120px 6vw; }
.contact { padding: clamp(40px, 7vw, 96px); text-align: center; }
.contact__kicker { font-family: "Archivo", sans-serif; font-size: 13px; letter-spacing: .25em; color: var(--muted); margin-bottom: 26px; }
.contact__h { font-size: clamp(44px, 8vw, 116px); line-height: .9; }
.contact__sub { max-width: 520px; margin: 26px auto 0; font-size: 18px; line-height: 1.55; color: var(--soft); }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--line); padding: 44px 6vw; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__logo { height: 32px; }
.footer__brand span { font-family: "Archivo", sans-serif; font-size: 11px; letter-spacing: .16em; line-height: 1.5; color: var(--muted); }
.footer__links { display: flex; gap: 26px; font-family: "Archivo", sans-serif; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.footer__links a { opacity: .75; }
.footer__links a:hover { opacity: 1; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fd-blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes fd-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes fd-twinkle { 0%,100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes fd-reveal { 0% { clip-path: inset(100% 0 0 0); opacity: 0; } 18% { opacity: 1; } 60% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 0); } }
@keyframes fd-scan { 0% { top: -12%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 112%; opacity: 0; } }
@keyframes fd-prog { 0% { transform: scaleX(0); } 82% { transform: scaleX(1); } 100% { transform: scaleX(1); } }
@keyframes fd-loadout { 0%,70% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes fd-flicker { 0%,100% { opacity: 1; } 92% { opacity: .4; } 94% { opacity: 1; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__stamp { order: -1; max-width: 340px; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav__links { gap: 18px; }
  .nav__links > a:not(.btn) { display: none; }
  .section { padding: 72px 6vw 20px; }
  .section--contact { padding: 80px 6vw; }
  .hero { padding: 64px 6vw 56px; }
  .member { flex-direction: column; }
  .member__photo { width: 120px; height: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .loader { display: none; }
  .loader__logo { clip-path: none; opacity: 1; }
}
