:root {
  --ink: #111111;
  --muted: #4d4d4d;
  --line: #d9d9d6;
  --soft: #f4f4f2;
  --paper: #ffffff;
  --font: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: -80px;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(17, 17, 17, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 17, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: drift-grid 28s linear infinite;
}

img {
  max-width: 100%;
}

.page {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
  animation: rise 0.7s var(--ease) both;
}

.top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}

.brand {
  display: block;
  line-height: 0;
}

.brand img {
  display: block;
  width: 168px;
  height: auto;
}

.places {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.kicker {
  margin: 32px 0 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 4.2rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.03em;
}

h1 em {
  font-style: italic;
}

.lead {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.55;
}

.still {
  margin: 28px 0 0;
}

.still img {
  display: block;
  width: 100%;
  height: auto;
}

.work {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.work li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.work span {
  padding-top: 2px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.work h2 {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
}

.work p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.panel {
  margin-top: 32px;
  padding: 24px 22px 20px;
  background: var(--soft);
}

.panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.panel-lead {
  margin: 6px 0 18px;
  color: var(--muted);
}

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

.fields {
  display: grid;
  gap: 14px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  margin: 0;
  padding: 12px;
  border: 1px solid #cfcfca;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

button {
  width: 100%;
  margin-top: 16px;
  padding: 14px 18px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

button:hover {
  background: #2a2a2a;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.status {
  margin: 14px 0 0;
  color: #8a1f1f;
  font-size: 0.95rem;
}

.thanks {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.2;
}

.direct {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.direct a {
  color: var(--ink);
  font-weight: 500;
  text-underline-offset: 3px;
}

footer {
  margin-top: 28px;
  padding-top: 14px;
}

footer p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

@keyframes rise {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes drift-grid {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-72px, -72px, 0); }
}

@media (max-width: 560px) {
  .page {
    width: min(680px, calc(100% - 32px));
    padding-top: 20px;
  }

  .top {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .brand img {
    width: min(160px, 58vw);
  }

  .places {
    text-align: left;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .places-break {
    display: block;
  }

  .places span[aria-hidden="true"] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
