:root {
  --ink: #070707;
  --paper: #f2efe9;
  --dim: #8a877f;
  --line: #2a2a28;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain */
body::before {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 10;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* vignette */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.75) 100%);
}

.frame {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(16px, 3vw, 36px);
  position: relative;
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
}
.meta a { color: inherit; text-decoration: none; }
.meta a:hover { color: var(--paper); }
.rec::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #d9261c;
  margin-right: 9px;
  vertical-align: 1px;
  animation: blink 1.6s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- landing ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(28px, 5vh, 48px);
  padding: 32px 0;
}

.logo {
  width: min(300px, 62vw);
  height: auto;
  opacity: 0;
  animation: iris 1.6s cubic-bezier(.2,.7,.1,1) .2s forwards;
}
@keyframes iris {
  from { opacity: 0; clip-path: circle(0% at 50% 42%); filter: blur(6px); }
  to   { opacity: 1; clip-path: circle(75% at 50% 42%); filter: blur(0); }
}

.wordmark {
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(22px, 4.2vw, 40px);
  letter-spacing: .32em;
  text-transform: uppercase;
  margin-right: -.32em; /* optically centre tracked text */
  opacity: 0;
  animation: rise .9s ease 1.3s forwards;
}
.sub {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 14px;
  opacity: 0;
  animation: rise .9s ease 1.5s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 30px;
  border: 1.5px solid var(--paper);
  background: transparent;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .45s cubic-bezier(.7,0,.2,1);
  z-index: -1;
}
.btn:hover, .btn:focus-visible { color: var(--ink); outline: none; }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn .arrow { transition: transform .35s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.hero .btn { opacity: 0; animation: rise .9s ease 1.8s forwards; }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
}

@media (max-width: 560px) {
  .foot { flex-direction: column-reverse; align-items: center; text-align: center; gap: 8px; }
}

/* ---------- contact ---------- */
.contact {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 90px) 0 48px;
}
.contact h1 {
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(40px, 8vw, 72px);
  line-height: .92;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.contact .lede {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--dim);
  max-width: 46ch;
}

form { margin-top: 48px; display: grid; gap: 30px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 10px;
}
label .opt { opacity: .6; }

input, select, textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  color: var(--paper);
  font-family: var(--display);
  font-size: 18px;
  padding: 8px 0 12px;
  border-radius: 0;
  transition: border-color .25s ease;
  -webkit-appearance: none;
  appearance: none;
}
textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
select {
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
select option { background: var(--ink); color: var(--paper); }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--paper); }
input::placeholder, textarea::placeholder { color: #45443f; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.small { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--dim); }
.small a { color: var(--paper); }

.notice {
  margin-top: 40px;
  padding: 18px 20px;
  border-left: 2px solid var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}
.notice.err { border-left-color: #d9261c; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .logo, .wordmark, .sub, .hero .btn { opacity: 1; }
}
