/* Type: Helvetica throughout, weight and size do the work. Layout: one column on a site-plan grid. A snapped chalk line squares up the headline; a job ticket carries the facts. */
:root {
  --ground: #f6f6f2;      /* primed wall */
  --ink: #15171a;
  --ink-2: #4c5157;
  --rule: #d5d7d2;
  --chalk: #2456d6;       /* carpenter's chalk-line blue */
  --surface: #fcfcf9;    /* form and confirmation panels */
  --on-chalk: #f7f8fc;
  --alert: #b3261e;
  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --label: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --step--1: .8125rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.25rem, 1.05rem + .8vw, 1.6rem);
  --step-2: clamp(2.2rem, 1.4rem + 3.6vw, 4.6rem);
  --step-hero: clamp(3.4rem, 1rem + 11.2vw, 12.5rem);
}
@media (prefers-color-scheme: dark) {
  :root { --ground: #111316; --ink: #f1f1ec; --ink-2: #a3a8ae; --rule: #2b2f34; --chalk: #6f97ff; --surface: #181b1f; --on-chalk: #111316; --alert: #ff8a80; color-scheme: dark; }
}

* { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  margin: 0;
  background: var(--ground); color: var(--ink);
  font: 400 var(--step-0)/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 1320px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0;
}
@media (min-width: 760px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--chalk); outline-offset: 3px; }
.label { font: 500 var(--step--1)/1.3 var(--label); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }

/* Masthead */
.top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px; border-bottom: 1px solid var(--rule); }
.mark { font: 700 1.25rem/1 var(--display); letter-spacing: -.03em; text-decoration: none; }
.mark i { font-style: normal; font-weight: 400; }
.top .label { display: flex; align-items: center; gap: 10px; }
.cone { width: 9px; height: 9px; border-radius: 50%; background: var(--chalk); }

/* Hero */
.hero { padding-block: clamp(56px, 10vw, 140px) clamp(40px, 6vw, 80px); }
.hero .label { margin: 0 0 clamp(20px, 3vw, 36px); }
h1 {
  margin: 0; font-family: var(--display); font-weight: 700; font-size: var(--step-hero);
  line-height: .9; letter-spacing: -.055em;
  position: relative; padding-bottom: .12em;
}
h1 .w { display: inline-block; white-space: nowrap; }
h1 em { font-style: normal; }
h1 .ch { display: inline-block; transform-origin: 50% 90%; }
.chalk { position: absolute; left: -2vw; right: -2vw; bottom: .1em; height: 3px; pointer-events: none; }
.chalk::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 40%, var(--chalk) 0 1px, transparent 1.5px) 0 0 / 23px 3px,
    linear-gradient(var(--chalk), var(--chalk));
  opacity: .85; border-radius: 2px;
}

.run .chalk { animation: snap .5s cubic-bezier(.2,.9,.2,1) .35s both; transform-origin: 0 50%; }
.run h1 .ch { animation: square .7s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(.8s + var(--i) * 18ms); }
@keyframes snap {
  0% { transform: scaleX(0); opacity: 0; }
  60% { transform: scaleX(1) translateY(-5px); opacity: 1; }
  78% { transform: scaleX(1) translateY(3px); }
  100% { transform: scaleX(1) translateY(0); }
}
@keyframes square {
  from { transform: translateY(var(--y)) rotate(var(--r)); }
  to { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .run .chalk, .run h1 .ch { animation: none; } }

.intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 6vw, 48px); margin-top: clamp(32px, 5vw, 64px); }
.intro-copy { display: grid; align-content: start; gap: 20px; min-width: 0; }
.intro p { margin: 0; max-width: 31ch; hanging-punctuation: first; font-size: var(--step-1); line-height: 1.35; text-wrap: pretty; }
.again { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink-2); font: 500 var(--step--1)/1 var(--label); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.again:hover { color: var(--chalk); }
.again svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* The job ticket: pinned to the notice, a little off square */
.tag { margin: 0; justify-self: end; width: min(80%, 340px); transform: rotate(3deg); transform-origin: 8% 50%; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.tag img { display: block; width: 100%; max-width: 100%; height: auto; filter: drop-shadow(0 10px 18px rgb(0 0 0 / .12)); }
.tag:hover { transform: none; }
@media (prefers-reduced-motion: reduce) { .tag { transition: none; } }
@media (min-width: 900px) {
  .intro { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
  .tag { width: min(100%, 440px); margin-top: clamp(-8px, -1vw, 0px); margin-right: clamp(0px, 3vw, 48px); }
}

/* The proposition: type only */
.prop { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 40px); padding-block: clamp(56px, 8vw, 120px); border-top: 1px solid var(--rule); }
.prop h2 { margin: 0; font: 700 clamp(2.6rem, 1rem + 6vw, 7.2rem)/.92 var(--display); letter-spacing: -.05em; text-wrap: balance; }
.prop h2 em { font-style: normal; color: var(--ink-2); }
.pitch { display: grid; gap: 18px; min-width: 0; }
.pitch p { margin: 0; max-width: 44ch; hyphens: manual; color: var(--ink-2); text-wrap: pretty; }
.pitch .pull { max-width: 24ch; padding-block: 6px; color: var(--ink); font-size: var(--step-1); font-weight: 600; line-height: 1.25; letter-spacing: -.015em; hyphens: none; text-wrap: balance; }
@media (min-width: 900px) {
  .prop { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(40px, 6vw, 96px); align-items: start; }
  .pitch { padding-top: .9em; }
}

/* Get Handsome */
.cta { padding-block: clamp(56px, 8vw, 120px); border-top: 1px solid var(--ink); display: grid; gap: 28px; }
.cta h2 { margin: 0; font: 300 var(--step-hero)/.9 var(--display); letter-spacing: -.055em; }
.cta h2 b { font-weight: 700; }
.reach { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.addr { font: 400 var(--step-1)/1.2 var(--body); text-decoration-color: var(--chalk); text-decoration-thickness: 2px; text-underline-offset: .2em; overflow-wrap: anywhere; user-select: all; }
.cta .label { margin: 0; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px 40px; border-top: 1px solid var(--rule); }
footer .rule-line { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--ink); text-transform: none; letter-spacing: 0; }
.lost { padding-block: clamp(56px, 10vw, 140px); }
.lost .label { margin: 0 0 clamp(16px, 2vw, 24px); }
.lost h1 { margin: 0; padding-bottom: 0; font-size: clamp(3rem, 1rem + 7vw, 8.5rem); line-height: .92; }
.lost p:not(.label) { margin: clamp(28px, 3vw, 40px) 0 0; font-size: var(--step-1); max-width: 34ch; }
.lost a { text-decoration-color: var(--chalk); text-decoration-thickness: 2px; text-underline-offset: .2em; }
[hidden] { display: none !important; }

/* Contact: a one-line work order across the CTA */
.order {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1.5fr) minmax(0, 2.4fr) auto;
  border: 1px solid var(--ink); background: var(--surface); position: relative;
}
.cell { display: grid; align-content: start; gap: 6px; padding: 14px 18px 12px; border-left: 1px solid var(--rule); min-width: 0; position: relative; }
.cell:first-child { border-left: 0; }
.cell label { font: 500 var(--step--1)/1.2 var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.cell input {
  width: 100%; min-width: 0; margin: 0; padding: 2px 0 4px; border: 0; border-radius: 0; background: transparent; color: var(--ink);
  font: 500 var(--step-1)/1.25 var(--body); letter-spacing: -.015em; outline: none;
}
.cell input::placeholder { color: var(--ink-2); opacity: .75; }
.cell::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--chalk); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s cubic-bezier(.2,.9,.2,1); }
.cell:focus-within::after { transform: scaleX(1); }
.cell:focus-within label { color: var(--chalk); }
.cell.bad::after { background: var(--alert); transform: scaleX(1); }
.cell.bad label { color: var(--alert); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; padding: 0 30px; margin: -1px -1px -1px 0;
  border: 0; background: var(--ink); color: var(--ground); font: 700 var(--step-1)/1 var(--body); letter-spacing: -.02em; cursor: pointer;
}
.send svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.send:hover { background: var(--chalk); color: var(--on-chalk); }
.send:hover svg { transform: translateX(4px); }
.send:focus-visible { outline-offset: -5px; outline-color: var(--ground); }
.order.busy .send { opacity: .6; cursor: progress; }
.order-note { margin: 0; font-size: var(--step-0); color: var(--ink-2); }
.order-note.err { color: var(--alert); }
.done { border: 1px solid var(--ink); background: var(--surface); padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.done b { font-size: var(--step-1); letter-spacing: -.02em; }
.done span { color: var(--ink-2); }
@media (max-width: 1080px) {
  .order { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cell.wide { grid-column: 1 / 3; border-left: 0; border-top: 1px solid var(--rule); }
  .send { margin: 0 -1px -1px 0; }
}
@media (max-width: 620px) {
  .order { grid-template-columns: minmax(0, 1fr); }
  .cell, .cell.wide { grid-column: auto; border-left: 0; }
  .cell:nth-child(n+2) { border-top: 1px solid var(--rule); }
  .send { margin: 0 -1px -1px; justify-content: space-between; }
}

/* Typeset: hanging quotes (classes added at build time by tools/typeset) */
.pull-single, .push-single, .pull-double, .push-double { display: inline-block; }
.pull-single { margin-left: -.27em; } .push-single { margin-right: .27em; }
.pull-double { margin-left: -.46em; } .push-double { margin-right: .46em; }
.small-caps { font-variant: small-caps; }
.cell .opt { color: var(--ink-2); opacity: .7; }
@media (prefers-reduced-motion: reduce) { .cell::after, .send svg { transition: none; } }
