/* filetrack.com */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/instrument-serif-regular.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url("/assets/fonts/inter-variable.woff2") format("woff2"); }

:root {
  --bg: #0b0a09;
  --bg-raise: #13110f;
  --ink: #efe8dd;
  --ink-soft: #c9c0b3;
  --muted: #8f867b;
  --line: rgba(239, 232, 221, 0.12);
  --line-strong: rgba(239, 232, 221, 0.28);
  --accent: #c9a36a;
  --accent-soft: rgba(201, 163, 106, 0.14);

  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1280px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Film grain over everything: a few hundred bytes of SVG noise, no image file. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg); }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.skip {
  position: absolute; left: -9999px; top: 12px;
  background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 200;
}
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--accent { color: var(--accent); }

/* ---------- Nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 10, 9, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav__mark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.02em;
}
.nav__links { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav__links a {
  font-size: 12px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.3s;
}
.nav__links a:hover { color: var(--accent); }
@media (max-width: 720px) {
  .nav__links a:not(.nav__keep) { display: none; }
}


/* ---------- Hero ---------- */
.hero { padding: clamp(128px, 15vw, 190px) 0 clamp(48px, 6vw, 80px); }
.hero__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 9vw, 128px);
  line-height: 0.86;
  letter-spacing: -0.025em;
  margin: 22px 0 0;
}
.hero__name em { font-style: italic; color: var(--accent); }
.hero__lede {
  font-family: var(--serif);
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.3;
  color: var(--ink-soft);
  max-width: 21em;
  margin: clamp(28px, 4vw, 44px) 0 0;
}

/* ---------- Sections ---------- */

.section { padding: clamp(48px, 7vw, 88px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.section__head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  margin-bottom: clamp(48px, 7vw, 96px);
  align-items: end;
}
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.05;
  margin: 0;
}
.section__title em { font-style: italic; color: var(--accent); }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: clamp(56px, 7vw, 96px);
}
.fact { padding: 28px 24px 0 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact__k { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; }
.fact__v { font-size: 13px; color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 28px; }
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  font-size: 12px; color: var(--muted);
}
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer a:hover { color: var(--accent); }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Hero entrance */
.rise { opacity: 0; transform: translateY(24px); animation: rise 1.4s var(--ease) forwards; }
.rise--2 { animation-delay: 0.15s; }
.rise--3 { animation-delay: 0.3s; }
.rise--4 { animation-delay: 0.45s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; opacity: 1; transform: none; } }

/* ---------- Brands (tiles as on ekhayes.com "Now") ---------- */

.brands {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 18px);
}
.brands li { display: flex; }
.tile {
  display: flex; flex-direction: column; width: 100%;
  padding: clamp(18px, 2.2vw, 28px);
  background: #f4efe7; color: #1d1a17;
  border-radius: 14px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--accent), 0 18px 40px rgba(0, 0, 0, 0.45); }
.tile__logo { display: flex; align-items: center; gap: 12px; height: 52px; margin-bottom: 18px; }
.tile__logo img { height: 34px; width: auto; }
.tile__logo--app img { height: 48px; width: 48px; border-radius: 11px; }
.tile__name { font-family: var(--sans); font-weight: 500; font-size: 20px; letter-spacing: -0.01em; }
.tile__pub { font-family: var(--sans); font-weight: 500; font-size: 22px; color: #1d1a17; letter-spacing: -0.01em; }
.tile__desc { font-size: 14px; color: #5b544c; line-height: 1.5; flex: 1; }
.tile__url { margin-top: 18px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #8a8178; }
.tile:hover .tile__url { color: #9a6b22; }
@media (max-width: 960px) { .brands { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .brands { grid-template-columns: 1fr; }
  .tile { padding: 20px; }
  .tile__logo { height: 44px; margin-bottom: 12px; }
  .tile__logo img { height: 28px; }
  .tile__logo--app img { height: 40px; width: 40px; border-radius: 9px; }
  .tile__name { font-size: 18px; }
  .tile__pub { font-size: 18px; }
}

/* ---------- Company details and contact ---------- */

.facts { margin: 28px 0 0; }
.fact__k { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.fact__v { margin: 10px 0 0; font-family: var(--serif); font-size: clamp(20px, 1.9vw, 26px); line-height: 1.25; color: var(--ink); }
.fact__v a { border-bottom: 1px solid var(--line-strong); }
.fact__v a:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 22px 0 0; border-left: 0; }
  .fact:nth-child(n + 2) { border-top: 1px solid var(--line); margin-top: 22px; }
}
.note { color: var(--muted); font-size: 14px; max-width: 46em; margin: 32px 0 0; }
.note a, .prose a { color: var(--ink-soft); border-bottom: 1px solid var(--line-strong); }
.note a:hover, .prose a:hover { color: var(--accent); border-color: var(--accent); }

.contact__line { margin: 28px 0 0; }
.contact__line a {
  font-family: var(--serif); font-size: clamp(30px, 4.4vw, 60px); line-height: 1.1;
  border-bottom: 1px solid var(--line-strong); overflow-wrap: anywhere;
  transition: color 0.3s, border-color 0.3s;
}
.contact__line a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Privacy page ---------- */

.page { padding: clamp(120px, 14vw, 170px) 0 clamp(64px, 8vw, 104px); }
.prose { max-width: 820px; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); margin: 44px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose .note { margin-top: 18px; }
.links { padding-left: 1.2em; }
.links li { margin: 6px 0; }
