/* ——— h&co! — coming soon ————————————————————————————————
   tokens */
:root{
  --ink:            #1F1A15;   /* ground */
  --ink-deep:       #100D0B;   /* rules, field border */
  --cream:          #EBE8E1;   /* primary type on dark */
  --cream-muted:    #C6BFB5;   /* secondary type on dark */
  --paper:          #EFEEE8;   /* field fill */
  --rust:           #CB4B2A;   /* accent / headline */
  --rust-deep:      #AB4D19;   /* stamp mid-tone */

  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --step-hero:  clamp(40px, 5.4vw, 104px);
  --step-lead:  clamp(21px, 2.1vw, 40px);
  --step-body:  clamp(15px, 1.1vw, 21px);
  --step-ui:    clamp(16px, 1.1vw, 21px);

  --space-1: 10px;
  --space-2: 20px;
  --space-3: 28px;
  --space-4: 44px;
  --space-5: 72px;
  --space-6: 110px;

  --edge: clamp(24px, 5.7vw, 110px);
}

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

html,body{ margin:0; padding:0; }

body{
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{ color: var(--rust); text-decoration:none; }
a:hover{ color: var(--cream); }

/* ——— layout ——————————————————————————————————————————— */

.page{
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(30px, 6vh, 66px) var(--edge) clamp(150px, 22vh, 260px);
  overflow: hidden;
}

.grid{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 820fr) minmax(0, 910fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
  max-width: 1700px;
  margin: 0 auto;
}

/* ——— headline —————————————————————————————————————————— */

/* The three-line lockup scales as one unit: everything below is in em,
   so craft built / around the / machine. keep identical proportions
   at every breakpoint. */
.hero{
  margin: 0;
  font-size: var(--step-hero);
}

.hero span{
  display: block;
  font-size: 1em;
  line-height: .95;
  font-weight: 600;
  letter-spacing: -.025em;
}

.hero .accent{ color: var(--rust); }
.hero .plain{  color: var(--cream); }

.hero .machine{
  display: flex;
  align-items: flex-end;
  gap: .02em;
  margin-top: .08em;
}

.hero .machine img{
  display: block;
  width: 6.35em;
  max-width: 100%;
  height: auto;
}

.hero .dot{
  font-size: 1.1em;
  font-weight: 600;
  line-height: .66;
  color: var(--cream);
  margin: 0 0 .74em -.02em;
}

.lead{
  margin: clamp(18px, 2.2vw, 38px) 0 0;
  font-size: var(--step-lead);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--cream);
  max-width: 21ch;
  text-wrap: pretty;
}

/* ——— note ————————————————————————————————————————————— */

.note-stage{
  position: relative;
  display: block;
  margin-top: clamp(28px, 1vw, 0px);
}

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

/* The note hangs off its tape and breathes — one degree, eight seconds. */
.note-stage{
  transform-origin: 62% 6%;    /* the tape */
  animation: sway 8s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes sway{
  from{ transform: rotate(-.55deg); }
  to  { transform: rotate(.55deg); }
}

/* A halftone light pass, masked to the paper's own silhouette. */
.sheen{
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: overlay;
  -webkit-mask-image: url("assets/note.png");
          mask-image: url("assets/note.png");
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
}

.sheen i{
  position: absolute;
  top: -20%; bottom: -20%;
  left: 0;
  width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.8), transparent);
  animation: sheen 7s cubic-bezier(.45,0,.3,1) infinite;
  will-change: transform;
}

@keyframes sheen{
  0%, 55%  { transform: translateX(-120%); }
  92%, 100%{ transform: translateX(340%); }
}

@media (prefers-reduced-motion: reduce){
  .note-stage, .sheen i{ animation: none; }
}

/* ——— sign-up ——————————————————————————————————————————— */

.signup{ margin-top: clamp(20px, 3.2vw, 46px); }

.visually-hidden{
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.signup p{
  margin: 0;
  font-size: var(--step-body);
  line-height: 1.5;
  color: var(--cream-muted);
}

.form{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 1.4vw, 22px);
  margin-top: clamp(16px, 1.7vw, 30px);
}

.field{
  flex: 1 1 240px;
  min-width: 240px;
  width: clamp(240px, 26vw, 470px);
  height: 64px;
  padding: 0 20px;
  background: var(--paper);
  border: 3px solid var(--ink-deep);
  border-radius: 0;
  font-family: var(--font);
  font-size: 19px;
  color: var(--ink);
}

.field::placeholder{ color:#7C766E; }
.field:focus{ outline: 3px solid var(--rust); outline-offset: 2px; }

.stamp{
  display: block;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
}

.stamp img{
  display: block;
  width: 232px;
  height: auto;
}

.stamp:hover img{ filter: brightness(1.08); }
.stamp:active img{ transform: translateY(1px); }

/* ——— torn edge ————————————————————————————————————————— */

.tear{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(110px, 17vw, 330px);
  background: url("assets/tear.png") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

/* ——— mobile breakpoint ———————————————————————————————— */

@media (max-width: 1260px){
  .grid{
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  /* Single column follows the approved artboard order:
     hero → lead → note → sign-up. */
  .grid > section{ display: contents; }
  .hero{     order: 1; }
  .lead{     order: 2; }
  .note-col{ order: 3; }
  .signup{   order: 4; }
  .note-stage{ margin-top: 28px; max-width: 440px; }
  .signup{ margin-top: 22px; }
  .lead{ max-width: 24ch; }
  .form{ flex-wrap: wrap; align-items: center; }
  .field{ width: auto; flex: 1 1 240px; min-width: 240px; }
  .stamp{ flex: 0 0 auto; }
}

@media (max-width: 560px){
  .form{ flex-wrap: wrap; }
  .field{ flex: 1 1 100%; width: 100%; min-width: 0; }
  .stamp{ flex: 0 0 auto; }
}

@media (prefers-reduced-motion: no-preference){
  .stamp img{ transition: filter .18s ease, transform .18s ease; }
}
