/* Night Horizon — a personal service, arranged as one desert poster. */
:root {
  color-scheme: light;
  --ink: #10120f;
  --paper: #f3f1e9;
  --muted: #62665d;
  --paper-muted: #bbc0b3;
  --rule: #c9ccbf;
  --dark-rule: #737b69;
  --gutter: clamp(24px, 5.2vw, 80px);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
p, h1, h2, h3 { margin: 0; }
::selection { color: var(--paper); background: #536144; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 7px; }
.page-width { width: calc(100% - var(--gutter) * 2); max-width: 1320px; margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 16px; color: var(--ink); background: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { font-size: 11px; line-height: 1.5; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }
.tiny-line { display: inline-block; width: 25px; height: 1px; vertical-align: middle; margin-right: 10px; background: currentColor; }
.hero { position: relative; min-height: clamp(800px, 92svh, 960px); overflow: hidden; background: var(--ink); color: var(--paper); }
.site-header { display: flex; align-items: center; justify-content: space-between; height: 96px; position: relative; z-index: 2; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; font-size: 25px; line-height: 1; letter-spacing: -.065em; font-weight: 500; }
.wordmark span { color: var(--paper-muted); }
.site-header nav { display: flex; align-items: center; gap: 38px; font-size: 13px; line-height: 1.5; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 12px; }
.nav-detail { color: var(--paper-muted); }
.site-header nav a:hover { color: var(--paper); }
.site-header .nav-contact { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid #737b69; color: var(--paper); border-radius: 2px; }
.site-header .nav-contact:hover { background: rgb(243 241 233 / 8%); border-color: var(--paper); }
.hero-content { position: relative; z-index: 1; padding-top: 76px; }
.hero-content .eyebrow { color: var(--paper-muted); }
h1 { font-size: clamp(72px, 7.2vw, 112px); font-weight: 400; line-height: .99; letter-spacing: -.065em; margin-top: 32px; }
h1 span { display: block; }
.hero-intro { font-size: clamp(19px, 1.65vw, 24px); line-height: 1.5; letter-spacing: -.015em; max-width: 560px; margin-top: 32px; color: #d3d7cb; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; padding: 17px 28px; border: 1px solid transparent; border-radius: 2px; font-size: 15px; font-weight: 500; line-height: 1.5; letter-spacing: -.01em; transition: background .18s ease, transform .18s ease; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button span { display: block; font-size: inherit; line-height: inherit; }
.button-paper { background: var(--paper); color: var(--ink); }
.button-paper:hover { background: #fffef8; }
.button-ink { background: var(--ink); color: var(--paper); }
.hero-content .button { margin-top: 30px; }
.horizon-frame { width: 100%; max-width: 1800px; aspect-ratio: 4680 / 1900; position: absolute; bottom: 66px; right: 0; overflow: hidden; pointer-events: none; animation: settle 900ms ease-out both; }
.horizon-frame > svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.generated-scene { position: absolute; inset: 0; opacity: 0; transform: translateY(var(--scene-shift, 0px)); mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%); }
.art-ready .generated-scene { opacity: 1; }
.art-ready > svg { visibility: hidden; }
.generated-scene picture, .generated-scene img, .generated-scene video { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.generated-scene img, .generated-scene video { object-fit: cover; object-position: right bottom; }
.art-end { opacity: var(--scene-progress, 0); clip-path: url(#generated-leaf-details); mask-image: linear-gradient(to bottom, transparent calc(var(--trace-front, 58%) - 6%), #000 calc(var(--trace-front, 58%) + 6%)); }
.art-video { opacity: 0; pointer-events: none; }
.video-ready .art-video { opacity: 1; }
.video-ready .art-end { visibility: hidden; }
/* Match the video's centered input crop before its first decoded frame appears. */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .art-opening, .art-end { transform: scale(1.03945); transform-origin: center bottom; }
}
.hero-footer { display: flex; align-items: center; justify-content: space-between; position: absolute; bottom: 29px; left: 0; right: 0; color: var(--paper-muted); font-size: 11px; line-height: 1.5; letter-spacing: .025em; z-index: 1; }
.hero-footer a { display: inline-flex; align-items: center; min-height: 44px; gap: 24px; }
.hero-footer a:hover { color: var(--paper); }
.paper { background: var(--paper); }
.examples { padding-top: 108px; padding-bottom: 92px; }
.section-opening { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-top: 32px; }
h2 { font-size: clamp(46px, 4.8vw, 72px); line-height: 1.03; letter-spacing: -.055em; font-weight: 400; }
.task-list { margin-top: 56px; border-top: 1px solid var(--ink); }
.task-row { display: grid; grid-template-columns: 54px minmax(270px, 1fr) 1fr; align-items: baseline; column-gap: 20px; border-bottom: 1px solid var(--rule); padding-block: 32px 34px; }
.task-number { font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.task-row h3 { font-size: clamp(26px, 2.35vw, 35px); line-height: 1.15; font-weight: 400; letter-spacing: -.045em; }
.task-row p { font-size: 19px; line-height: 1.5; letter-spacing: -.01em; color: var(--muted); max-width: 510px; }
.bryan { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-top: 0; padding-bottom: 104px; }
.bryan-heading h2 { margin-top: 32px; }
.bryan-copy { padding-top: 45px; max-width: 580px; }
.bryan-copy p { font-size: 19px; line-height: 1.55; letter-spacing: -.012em; }
.bryan-copy .person-intro { font-size: 27px; line-height: 1.4; letter-spacing: -.025em; }
.bryan-copy p + p { margin-top: 28px; }
.bryan-copy .ownership { color: var(--muted); font-size: 16px; padding-top: 24px; border-top: 1px solid var(--rule); }
.contact { background: var(--ink); color: var(--paper); padding-top: 108px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-bottom: 88px; }
.contact-heading .eyebrow { color: var(--paper-muted); }
.contact-heading h2 { margin-top: 32px; font-size: clamp(64px, 6.8vw, 104px); }
.contact-heading > p:last-child { max-width: 380px; font-size: 23px; line-height: 1.45; letter-spacing: -.02em; color: #d3d7cb; margin-top: 28px; }
form { padding-top: 2px; }
.field { margin-bottom: 24px; }
.field label { display: flex; gap: 16px; justify-content: space-between; font-size: 14px; line-height: 1.5; }
.required-label { font-size: 10px; line-height: 2; color: var(--paper-muted); }
input, textarea { display: block; width: 100%; border: 1px solid var(--dark-rule); background: rgb(243 241 233 / 3%); border-radius: 2px; padding: 12px 14px; color: var(--paper); font-size: 20px; line-height: 1.5; margin-top: 9px; }
input { min-height: 58px; }
textarea { resize: vertical; min-height: 102px; }
input:focus, textarea:focus { border-color: var(--paper); outline: none; }
input:focus-visible, textarea:focus-visible { box-shadow: 0 1px 0 var(--paper); }
input[aria-invalid="true"] { border-color: #f0b49c; }
.field-error { color: #f0b49c; font-size: 12px; line-height: 1.5; }
.field-error:not(:empty) { margin-top: 8px; }
.field-help { margin-bottom: 22px; }
.contact-note { font-size: 13px; line-height: 1.5; color: var(--paper-muted); margin-bottom: 16px; }
.form-status { font-size: 15px; line-height: 1.5; color: var(--paper); }
.form-status:not(:empty) { margin-top: 18px; }
.form-status[data-state="error"] { color: #f0b49c; }
.send-button { min-width: 170px; }
.send-button:disabled { cursor: default; }
.send-spinner { display: none !important; width: 16px; height: 16px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; }
form[aria-busy="true"] .send-spinner { display: block !important; animation: send-spin .7s linear infinite; }
form[data-sent="true"] .send-button { background: #dce5d3; color: var(--ink); }
@keyframes send-spin { to { transform: rotate(360deg); } }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--dark-rule); padding-block: 32px 36px; font-size: 11px; line-height: 1.5; color: var(--paper-muted); }
.site-footer .wordmark { color: var(--paper); font-size: 21px; }
.concept-label { font-size: 10px; }
@keyframes settle { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) and (min-width: 901px) {
  .hero-content { padding-top: 64px; }
  h1 { font-size: 76px; }
  .hero-intro { max-width: 500px; }
  .horizon-frame { bottom: 78px; }
  .section-opening, .bryan, .contact-layout { gap: 38px; }
  .task-row { grid-template-columns: 38px minmax(250px, 1fr) 1fr; gap: 16px; }
}
@media (max-width: 900px) {
  .site-header { height: 80px; }
  .site-header nav { gap: 22px; }
  .site-header nav .nav-detail { display: none; }
  .hero { min-height: 0; }
  .hero-content { padding-top: 48px; }
  h1 { font-size: clamp(44px, 8.7vw, 78px); margin-top: 28px; }
  .hero-intro { font-size: 21px; line-height: 1.5; max-width: 620px; margin-top: 28px; }
  .horizon-frame { position: relative; bottom: auto; margin-top: -40px; aspect-ratio: 39 / 26; }
  .hero-footer { bottom: 26px; }
  .section-opening, .bryan, .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .examples { padding-top: 76px; padding-bottom: 72px; }
  h2 { font-size: clamp(46px, 6.8vw, 62px); }
  .task-list { margin-top: 44px; }
  .task-row { grid-template-columns: 34px 1fr; gap: 16px; padding-block: 28px; }
  .task-row h3 { font-size: 30px; }
  .task-row p { grid-column: 2; max-width: 600px; }
  .bryan { padding-top: 0; padding-bottom: 72px; }
  .bryan-copy { padding-top: 10px; max-width: 640px; }
  .contact { padding-top: 72px; }
  .contact-layout { gap: 48px; padding-bottom: 72px; }
  .contact-heading h2 { font-size: 76px; }
  .contact-heading > p:last-child { max-width: 480px; font-size: 22px; }
}
@media (max-width: 540px) {
  :root { --gutter: 24px; }
  .site-header { height: 76px; }
  .wordmark { font-size: 23px; }
  .site-header nav { font-size: 12px; }
  .hero-content { padding-top: 40px; }
  .hero-content .eyebrow { font-size: 9px; letter-spacing: .1em; }
  .tiny-line { width: 18px; margin-right: 7px; }
  h1 { font-size: clamp(38px, 11.5vw, 60px); line-height: 1.03; margin-top: 24px; letter-spacing: -.062em; }
  .hero-intro { font-size: 18px; line-height: 1.5; max-width: 360px; margin-top: 24px; }
  .hero-content .button { margin-top: 26px; }
  .button { min-height: 54px; padding: 15px 20px; font-size: 14px; }
  .horizon-frame { aspect-ratio: 39 / 29; margin-top: 4px; margin-bottom: 40px; }
  .generated-scene { mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 73%, transparent 90%); }
  .hero-footer { bottom: 24px; font-size: 10px; max-width: none; }
  .hero-footer > span { max-width: 150px; }
  .hero-footer a { max-width: 142px; gap: 16px; text-align: right; }
  .examples { padding-top: 64px; padding-bottom: 56px; }
  .eyebrow { font-size: 9px; letter-spacing: .13em; }
  .section-opening { margin-top: 26px; gap: 24px; }
  h2 { font-size: 43px; line-height: 1.06; }
  .task-list { margin-top: 36px; }
  .task-row { grid-template-columns: 24px 1fr; column-gap: 12px; row-gap: 14px; padding-block: 25px 27px; }
  .task-row h3 { font-size: 27px; line-height: 1.2; }
  .task-number { font-size: 10px; }
  .task-row p { font-size: 17px; line-height: 1.5; }
  .bryan { padding-top: 0; padding-bottom: 64px; gap: 30px; }
  .bryan-heading h2 { margin-top: 26px; }
  .bryan-copy { padding-top: 0; }
  .bryan-copy .person-intro { font-size: 24px; line-height: 1.4; }
  .bryan-copy p { font-size: 18px; }
  .bryan-copy p + p { margin-top: 24px; }
  .bryan-copy .ownership { font-size: 15px; padding-top: 24px; }
  .contact { padding-top: 64px; }
  .contact-heading h2 { font-size: 68px; margin-top: 26px; }
  .contact-heading > p:last-child { font-size: 20px; margin-top: 24px; }
  .contact-layout { gap: 40px; padding-bottom: 54px; }
  .field { margin-bottom: 24px; }
  .field label { font-size: 13px; }
  input, textarea { font-size: 18px; }
  .site-footer { flex-wrap: wrap; column-gap: 20px; row-gap: 20px; padding-block: 28px 30px; }
  .site-footer > span:nth-child(2) { max-width: 160px; text-align: right; margin-left: auto; }
  .concept-label { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .horizon-frame { animation: none; }
  .generated-scene { transform: none; }
  .art-video { display: none; }
  .button { transition: none; }
  .button:active:not(:disabled) { transform: none; }
  form[aria-busy="true"] .send-spinner { animation: none; }
}
