/*
  Rekalpana Collaborative
  Colours, type and shapes follow the brand guide (v1.0, October 2026).
  Layout idea: cut paper on a desk. White sheets on paper, a strip of tape,
  shapes that overlap and run off the edge, never under the words.
*/

:root {
  --paper: #F6F1E7;
  --white: #fff;
  --ink: #1C1A19;
  --ink-soft: #595653;     /* ink at roughly 72% on paper; passes AA for small text */
  --line: #D8D3CA;
  --hint: #75716C;         /* placeholders */
  --terracotta: #C4502F;
  --ochre: #E3A72F;
  --indigo: #2E4A7D;
  --sage: #7E9C80;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", Arial, Helvetica, sans-serif;
  --hindi: "Noto Sans Devanagari", "Inter", sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --width: 1240px;
  --bar: 88px;
  --lift: 0 1px 0 rgba(28, 26, 25, .08), 0 22px 40px -26px rgba(28, 26, 25, .45);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  background-color: var(--paper);
  /* a very faint grain, so the paper feels like paper */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .11 0 0 0 0 .1 0 0 0 0 .1 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; }

h1, h2, h3,
.jobcard__title, .stamp, .letter__sign, .footer__tagline, .morph__label, .tower__note {
  font-family: var(--serif);
  font-weight: 700;
  font-optical-sizing: auto;
  /* Fraunces' "wonky" letters are what make it feel drawn rather than typeset */
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
h2 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.5rem); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }

.container { width: 100%; max-width: calc(var(--width) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.nowrap { white-space: nowrap; }
.small { font-size: .875rem; color: var(--ink-soft); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; z-index: 100; left: 16px; top: -80px; padding: 10px 16px; background: var(--ink); color: var(--paper); font-weight: 700; }
.skip:focus { top: 12px; }

/* Links get a wavy underline on hover. It's a small thing, but it's ours. */
.link {
  padding: 0; border: 0; background: none; cursor: pointer;
  font-weight: 700; text-decoration: underline; text-decoration-color: var(--terracotta);
  text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.link:hover, .ask:hover, .direct__value:hover, .footer a:hover { text-decoration-style: wavy; }

/* Buttons are cut-outs sitting on a second layer of ink */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 20px;
  border: 2px solid var(--ink); border-radius: 0;
  box-shadow: 3px 3px 0 var(--ink);
  font: 700 1rem/1.1 var(--sans); text-align: center; text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease-out, box-shadow .12s ease-out;
}
.button:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.button--big { min-height: 56px; padding: 0 26px; font-size: 1.0625rem; }
.button--terracotta { background: var(--terracotta); color: var(--white); }
.button--ink { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--terracotta); }
.button--ink:hover { box-shadow: 4px 4px 0 var(--terracotta); }
.button--outline { background: var(--white); color: var(--ink); }

/* Little shape markers, coloured as in the guide */
.glyph { display: inline-block; flex: none; width: .8em; height: .8em; vertical-align: -.04em; }
.glyph--trapezium { background: var(--ink); clip-path: polygon(23% 0, 77% 0, 100% 100%, 0 100%); }
.glyph--square { background: var(--terracotta); }
.glyph--triangle { background: var(--indigo); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.glyph--circle { background: var(--ochre); border-radius: 50%; }
.glyph--rhombus { background: var(--sage); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

/* A strip of masking tape, for things that are "stuck" to the page */
.tape-bit {
  position: absolute; z-index: 2; top: -15px; left: 50%;
  width: 116px; height: 30px; translate: -50% 0; rotate: -3deg;
  background: rgba(227, 167, 47, .82);
}


/* ===== Header ===== */

.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: var(--paper);
  transition: box-shadow .2s;
}
.topbar.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.topbar__inner { display: flex; align-items: center; gap: 20px; min-height: var(--bar); }

/* clear space around the logo = the height of its square block (22px at this size) */
.logo { flex: none; padding-block: 22px; margin-right: 6px; }
.logo img { height: 44px; width: auto; }

.availability { display: flex; align-items: center; gap: 8px; margin-right: auto; font-size: .875rem; color: var(--ink-soft); }
.availability__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); }

.menu { display: flex; }
.menu a {
  padding: 8px 11px; font-size: .97rem; text-decoration: none;
  text-decoration-color: var(--terracotta); text-decoration-thickness: 2px; text-underline-offset: 7px;
}
.menu a:hover, .menu a[aria-current="true"] { text-decoration-line: underline; text-decoration-style: wavy; }
.topbar__cta { margin-left: 8px; }

.menu-toggle {
  display: none; margin-left: auto; min-height: 44px; padding: 0 16px;
  border: 2px solid var(--ink); background: var(--white); box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700; cursor: pointer;
}
.phone-menu { background: var(--paper); border-top: 1px solid var(--line); }
.phone-menu .container { display: grid; padding-block: 8px 28px; }
.phone-menu a:not(.button) {
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font: 700 1.6rem/1.2 var(--serif); font-variation-settings: "SOFT" 30, "WONK" 1; text-decoration: none;
}
.phone-menu .button { margin-top: 20px; }

@media (max-width: 1080px) {
  .availability { display: none; }
  .menu { margin-left: auto; }
}
@media (max-width: 920px) {
  :root { --bar: 72px; }
  .logo { padding-block: 18px; }
  .logo img { height: 36px; }
  .menu, .topbar__cta { display: none; }
  .menu-toggle { display: inline-block; }
}


/* ===== Hero ===== */

.hero { position: relative; overflow: clip; padding-top: clamp(24px, 4vw, 56px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 24px; }
.hero__text { padding-bottom: clamp(56px, 8vw, 120px); }
.hero h1 {
  font-size: clamp(2.7rem, 1.3rem + 4.4vw, 5rem); line-height: .96; letter-spacing: -.03em;
  text-wrap: balance;
}
.hero__lead { max-width: 33rem; margin-top: 28px; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 36px; }
.hero__or { font-size: .95rem; color: var(--ink-soft); }
.hero__or a { color: var(--ink); font-weight: 700; text-decoration-color: var(--terracotta); text-underline-offset: 4px; }

/* hand-drawn underline under "paperwork" */
.scribble { position: relative; display: inline-block; white-space: nowrap; }
.scribble svg { position: absolute; left: -3%; bottom: -.16em; width: 106%; height: .32em; overflow: visible; }
.scribble path {
  fill: none; stroke: var(--terracotta); stroke-width: 5; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

/* The tower. Built at 460 x 640 and scaled down on smaller screens. */
.tower-wrap { --s: 1; position: relative; height: calc(600px * var(--s)); }
.tower {
  position: absolute; left: 50%; bottom: -20px;
  width: 460px; height: 640px;
  translate: -50% 0; scale: var(--s); transform-origin: 50% 100%;
}
.block { position: absolute; display: block; }
.block--trapezium { left: 65px; top: 530px; width: 330px; height: 130px; background: var(--ink); clip-path: polygon(23% 0, 77% 0, 100% 100%, 0 100%); }
.block--square { left: 155px; top: 380px; width: 150px; height: 150px; background: var(--terracotta); rotate: -5deg; transform-origin: 50% 100%; }
.block--circle { left: 166px; top: 244px; width: 136px; height: 136px; border-radius: 50%; background: var(--ochre); }
.block--triangle { left: 170px; top: 132px; width: 120px; height: 112px; background: var(--indigo); clip-path: polygon(50% 0, 100% 100%, 0 100%); rotate: 6deg; transform-origin: 50% 100%; }
.block--rhombus { left: 204px; top: 57px; width: 76px; height: 76px; background: var(--sage); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); transform-origin: 50% 100%; }

.tower__strings { position: absolute; inset: 0; width: 460px; height: 640px; overflow: visible; }
.tower__strings path { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }

/* paper price tags: a point and a punched hole on the side that faces the shape */
.tag {
  position: absolute; display: block; max-width: 140px;
  padding: 7px 12px 8px 27px;
  background: var(--white); color: var(--ink);
  font-size: .8125rem; line-height: 1.3;
  clip-path: polygon(13px 0, 100% 0, 100% 100%, 13px 100%, 0 50%);
  filter: drop-shadow(1px 2px 0 rgba(28, 26, 25, .14));
}
.tag b { display: block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; }
.tag::before {
  content: ""; position: absolute; left: 10px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink);
}
.tag--flip { padding: 7px 27px 8px 12px; clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%); text-align: right; }
.tag--flip::before { left: auto; right: 10px; }
.tag--exchange { left: 300px; top: 36px; rotate: -3deg; }
.tag--shelter { right: 310px; top: 152px; rotate: 2deg; }
.tag--community { left: 318px; top: 268px; rotate: 2deg; }
.tag--foundation { right: 318px; top: 404px; rotate: -2deg; }
.tag--structure { left: 320px; top: 472px; rotate: -2deg; }
.tower__note { position: absolute; left: 0; top: 26px; rotate: -4deg; font-size: 1rem; color: var(--ink-soft); }
.tower__strings .tower__arrow { stroke: var(--ink-soft); }

@media (max-width: 1180px) { .tower-wrap { --s: .86; } }
@media (max-width: 1020px) { .tower-wrap { --s: .76; } }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__text { padding-bottom: 8px; }
  .tower-wrap { --s: .72; margin-top: 12px; }
}
@media (max-width: 640px) {
  .tower-wrap { --s: .6; }
  .tag, .tower__strings, .tower__note { display: none; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__or { text-align: center; }
}


/* ===== Tape strip ===== */

.tape-zone { position: relative; z-index: 3; margin-top: -34px; padding-block: 16px; overflow: hidden; }
.tape {
  width: 106%; margin-left: -3%;
  rotate: -1.6deg;
  background: var(--ochre);
  box-shadow: 0 2px 0 rgba(28, 26, 25, .12);
}
.tape__roll { display: flex; overflow: hidden; padding-block: 13px; }
.tape__track { display: flex; flex: none; align-items: center; gap: 34px; padding-right: 34px; }
.tape__track li { display: flex; align-items: center; gap: 12px; white-space: nowrap; font-size: .875rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.tape .glyph { background: var(--ink); }


/* ===== What we do ===== */

.jobs { background: var(--white); padding-block: clamp(96px, 10vw, 150px) clamp(80px, 9vw, 140px); }
.jobs__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 110px); }
.jobs__aside { position: sticky; top: calc(var(--bar) + 36px); align-self: start; }
.jobs__aside > p { max-width: 26rem; margin-top: 18px; font-size: 1.15rem; color: var(--ink-soft); }

/* one shape that turns into the next as you scroll through the five jobs */
.morph { width: min(100%, 330px); aspect-ratio: 1; margin-top: 44px; }
.morph__shape {
  width: 100%; height: 100%;
  background: var(--ink);
  clip-path: polygon(23% 0, 77% 0, 100% 100%, 0 100%);
  transition: clip-path .9s cubic-bezier(.7, 0, .25, 1), background-color .6s ease;
}
.morph__label { display: flex; align-items: baseline; gap: 12px; margin-top: 20px; font-size: 1.75rem; }
.morph__count { font: 700 .8125rem var(--sans); letter-spacing: .1em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
@media (max-height: 760px) { .morph { width: min(100%, 230px); margin-top: 28px; } }

.job + .job { margin-top: clamp(72px, 9vw, 130px); }
.job__head { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
.job__head .glyph { display: none; font-size: 1.6rem; }
.job__head h3 { font-size: clamp(2rem, 1.5rem + 1.7vw, 2.9rem); line-height: 1; letter-spacing: -.02em; }
.job__head p { grid-column: 1 / -1; margin-top: 10px; font-size: 1.2rem; color: var(--ink-soft); }

.service { padding-top: 26px; margin-top: 26px; border-top: 1px solid var(--line); }
.service h4 { font-size: 1.3rem; line-height: 1.3; }
.service p { max-width: 36rem; margin-top: 8px; }
.service__gets { font-size: .95rem; color: var(--ink-soft); }
.service__gets span { font-weight: 700; color: var(--terracotta); }
.ask {
  display: inline-block; margin-top: 14px; font-weight: 700; text-decoration: underline;
  text-decoration-color: var(--terracotta); text-decoration-thickness: 2px; text-underline-offset: 5px;
}

@media (max-width: 860px) {
  .jobs__grid { grid-template-columns: minmax(0, 1fr); }
  .jobs__aside { position: static; }
  .morph, .morph__label { display: none; }
  .job__head .glyph { display: inline-block; }
}


/* ===== How we work: the job card ===== */

.process { padding-block: clamp(96px, 10vw, 150px); }
.process__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.process__intro p { max-width: 24rem; margin-top: 18px; font-size: 1.15rem; color: var(--ink-soft); }

.jobcard {
  position: relative;
  padding: 36px clamp(20px, 3vw, 44px) 18px;
  background: var(--white); box-shadow: var(--lift);
  rotate: -.6deg;
}
.jobcard__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 20px;
  padding-bottom: 14px; border-bottom: 2px solid var(--ink);
}
.jobcard__title { font-size: 2rem; line-height: 1; }
.jobcard__meta { display: flex; gap: 26px; font-size: .9rem; }
.jobcard__meta dt { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.jobcard__meta dd { font-weight: 700; }
#jobStatus { transition: color .3s; }
.jobcard:not(.is-pending) #jobStatus { color: var(--terracotta); }

.jobcard__steps li {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 18px;
  padding-block: 20px; border-bottom: 1px dashed var(--line);
}
.jobcard__steps li:last-child { border-bottom: 0; }
.jobcard__steps h3 { font-size: 1.5rem; line-height: 1.2; }
.jobcard__steps p { margin-top: 4px; color: var(--ink-soft); }
.tick { grid-row: span 2; position: relative; width: 30px; height: 30px; margin-top: 3px; border: 2px solid var(--ink); }
.tick svg { position: absolute; left: -4px; top: -10px; width: 42px; height: 42px; overflow: visible; }
.tick path {
  fill: none; stroke: var(--terracotta); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  transition: stroke-dashoffset .45s ease-out;
}
.jobcard.is-pending .tick path { stroke-dashoffset: 1; }
.jobcard__steps li:nth-child(2) .tick path { transition-delay: .35s; }
.jobcard__steps li:nth-child(3) .tick path { transition-delay: .7s; }
.jobcard__steps li:nth-child(4) .tick path { transition-delay: 1.05s; }

@media (max-width: 860px) {
  .process__grid { grid-template-columns: minmax(0, 1fr); }
}


/* ===== Free audit: a coupon ===== */

.audit { background: var(--white); padding-block: clamp(80px, 9vw, 130px); }
.coupon {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px clamp(28px, 5vw, 72px);
  padding: clamp(28px, 4vw, 56px);
  background: var(--paper);
  border: 2px dashed var(--ink);
}
.coupon__scissors {
  position: absolute; top: -14px; left: 40px; width: 28px; height: 28px; padding: 0 2px;
  background: var(--white); color: var(--ink);
  transition: translate 1.4s ease-in-out;
}
.coupon:hover .coupon__scissors { translate: 60px 0; }
.stamp {
  display: inline-block; margin-bottom: 22px; padding: 2px 14px 5px;
  border: 3px solid var(--terracotta); color: var(--terracotta);
  font-size: 1.35rem; letter-spacing: .08em; text-transform: uppercase;
  rotate: -7deg;
}
.coupon h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); }
.coupon__text > p:not(.stamp) { max-width: 30rem; margin-top: 16px; font-size: 1.1rem; }
.coupon__form { display: grid; gap: 16px; align-content: start; }
.coupon__form .button { justify-self: start; margin-top: 4px; }
.coupon__cut { grid-column: 1 / -1; font-size: .8125rem; color: var(--ink-soft); }

.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 700; }
.field input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--white); border: 2px solid var(--ink); border-radius: 0;
  font-size: 1rem;
}
.field input::placeholder { color: var(--hint); }
.field input[aria-invalid="true"], .letter-form [aria-invalid="true"] { border-color: var(--terracotta); background-color: rgba(196, 80, 47, .07); }
.form-error { font-size: .95rem; font-weight: 700; color: var(--terracotta); }

.sent { display: grid; gap: 14px; align-content: start; justify-items: start; }
.sent:focus { outline: none; }
.sent h3 { font-size: 1.7rem; line-height: 1.15; }
.sent p { color: var(--ink-soft); max-width: 30rem; }
.sent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

@media (max-width: 860px) {
  .coupon { grid-template-columns: minmax(0, 1fr); }
}


/* ===== About ===== */

.about { padding-block: clamp(96px, 10vw, 150px); }
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 100px); align-items: center; }
.about__word span { display: block; font: 700 clamp(4.5rem, 2.6rem + 8vw, 10rem)/1.15 var(--hindi); color: var(--terracotta); }
.about__word small { display: block; margin-top: 4px; font-size: .95rem; letter-spacing: .06em; color: var(--ink-soft); }

.letter {
  position: relative; max-width: 42rem;
  padding: clamp(30px, 4vw, 56px);
  background: var(--white); box-shadow: var(--lift);
  rotate: .8deg;
}
.letter h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); }
.letter p { margin-top: 16px; }
.letter i { font-style: normal; font-weight: 700; }
.letter__sign { margin-top: 28px !important; font-size: 1.5rem; }

.founders { margin-top: clamp(64px, 8vw, 110px); }
.founders h3 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); }
.founders__list { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 32px; }
.polaroid { width: 230px; padding: 12px 12px 18px; background: var(--white); box-shadow: var(--lift); rotate: var(--tilt, -1.5deg); }
.polaroid img, .polaroid__initials { width: 100%; aspect-ratio: 1; object-fit: cover; }
.polaroid__initials { display: grid; place-items: center; background: var(--terracotta); color: var(--white); font: 700 3rem var(--serif); }
.polaroid h4 { margin-top: 14px; font-size: 1.1rem; }
.polaroid .role { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.polaroid p:last-child { margin-top: 8px; font-size: .95rem; color: var(--ink-soft); }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); }
}


/* ===== Referrals ===== */

.refer { background: var(--white); padding-block: clamp(96px, 10vw, 150px); }
.refer__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.refer__text > p { max-width: 28rem; margin-top: 18px; font-size: 1.15rem; }
.refer__reward { color: var(--ink-soft); font-size: 1rem !important; }
.refer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 30px; }

.refer__how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.refer__how li { position: relative; display: grid; gap: 16px; align-content: start; }
.refer__how b { font-family: var(--serif); font-size: 1.35rem; font-variation-settings: "SOFT" 30, "WONK" 1; }
.refer__shape { width: 72px; height: 72px; }
.refer__shape--circle { border-radius: 50%; background: var(--ochre); }
.refer__shape--square { background: var(--terracotta); rotate: -4deg; }
.refer__shape--rhombus { background: var(--sage); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
/* hand-drawn arrows between the three steps */
.refer__how li:not(:last-child)::after {
  content: ""; position: absolute; top: 16px; right: -50px; width: 58px; height: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 34'%3E%3Cg fill='none' stroke='%231C1A19' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 24C15 7 34 5 52 17'/%3E%3Cpath d='M43 9l10 8-12 3'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}

@media (max-width: 960px) {
  .refer__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .refer__how { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .refer__how li { grid-template-columns: 56px minmax(0, 1fr); align-items: center; }
  .refer__shape { width: 56px; height: 56px; }
  .refer__how li::after { display: none; }
}


/* ===== Contact: a letter you fill in ===== */

.contact { padding-block: clamp(96px, 10vw, 150px); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__main > h2 { margin-bottom: 30px; }

.letter-form, .contact__main .sent {
  padding: clamp(24px, 4vw, 52px);
  background: var(--white); box-shadow: var(--lift);
}
.letter-form > p:not(.form-error) { font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); line-height: 2.15; }
.letter-form > p:first-child { font-family: var(--serif); font-weight: 700; font-variation-settings: "SOFT" 30, "WONK" 1; }
.letter-form input, .letter-form select {
  max-width: 100%; padding: 0 4px 1px;
  border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
  background: transparent; font-weight: 700;
}
.letter-form input::placeholder { color: var(--hint); font-weight: 400; }
.letter-form select { cursor: pointer; }
#f-name { width: 10em; }
#f-business { width: 11em; }
#f-phone { width: 12em; }
#f-email { width: 12em; }
#f-service { width: 16em; }
.letter-form__more { display: block; margin-top: 18px; font-weight: 700; }
.letter-form__more span { font-weight: 400; color: var(--ink-soft); }
/* lined paper for the longer note */
.letter-form textarea {
  display: block; width: 100%; min-height: 100px; margin-top: 6px; padding: 0 2px;
  border: 0; resize: vertical;
  font-size: 1.05rem; line-height: 32px;
  background: transparent repeating-linear-gradient(to bottom, transparent 0 31px, var(--line) 31px 32px);
}
.letter-form textarea:focus { outline: 3px solid var(--indigo); outline-offset: 4px; }
.letter-form .form-error { margin-top: 16px; }
.letter-form__send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }

.contact__direct { padding-top: 6px; }
.contact__direct h3 { font-size: 1.5rem; }
.direct { margin: 18px 0 26px; }
.direct li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px;
  padding-block: 12px; border-bottom: 1px solid var(--line);
}
.direct__label { grid-column: 1 / -1; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.direct__value { font-weight: 700; font-size: 1.05rem; text-decoration: none; overflow-wrap: break-word; text-decoration-color: var(--terracotta); text-underline-offset: 4px; }
.direct__value:hover { text-decoration-line: underline; }
.copy {
  padding: 4px 10px; border: 1.5px solid var(--ink); background: var(--white);
  font-size: .8rem; font-weight: 700; cursor: pointer;
}
.copy:hover { background: var(--ink); color: var(--paper); }
.contact__direct .small { margin-top: 10px; }
.copy-status { min-height: 1.4em; margin-top: 12px; font-size: .9rem; font-weight: 700; }

@media (max-width: 960px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
}


/* ===== Footer ===== */

.footer { background: var(--ink); color: var(--paper); padding-top: clamp(64px, 7vw, 100px); }
.footer :focus-visible { outline-color: var(--ochre); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.5fr) minmax(0, .7fr) minmax(0, 1fr); gap: 40px; }
.footer__tagline { font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.4rem); line-height: 1; color: var(--ochre); }
.footer__sign p:last-child { margin-top: 16px; max-width: 22rem; color: rgba(246, 241, 231, .78); }
.colophon h2 { font: 700 .75rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 241, 231, .7); }
.colophon p { max-width: 30rem; margin-top: 10px; color: rgba(246, 241, 231, .86); }
.colophon b { color: var(--paper); font-variant-numeric: tabular-nums; }
.colophon a { color: var(--ochre); font-weight: 700; text-underline-offset: 4px; }
.footer__links, .footer__contact { display: grid; gap: 10px; align-content: start; }
.footer a { text-decoration-color: var(--ochre); text-underline-offset: 4px; }
.footer__links a, .footer__contact a { text-decoration: none; overflow-wrap: anywhere; }
.footer__links a:hover, .footer__contact a:hover { text-decoration: underline wavy var(--ochre); }
.footer__contact p { color: rgba(246, 241, 231, .78); font-size: .95rem; }
.footer__base {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px;
  margin-top: clamp(48px, 6vw, 80px); padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(246, 241, 231, .18);
  font-size: .9rem; color: rgba(246, 241, 231, .7);
}
.footer__base a { color: var(--paper); }
.socials { display: flex; gap: 18px; margin-left: auto; }
.socials a { color: var(--paper); font-weight: 700; }

@media (max-width: 1020px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer__base { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}


/* ===== Things that float: the dock, the assistant, the welcome note ===== */

.dock {
  position: fixed; z-index: 50;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; gap: 10px;
}
.dock__button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 16px;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font: 700 .95rem var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .12s ease-out, box-shadow .12s ease-out;
}
.dock__button:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.dock__button--ask { background: var(--white); color: var(--ink); }
.dock__button--ask[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.dock__button--wa { background: var(--sage); color: var(--ink); }
@media (max-width: 520px) {
  .dock__button--ask span { display: none; }
  .dock__button--ask { padding: 0 13px; }
}

.assistant {
  position: fixed; z-index: 60;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + 48px + 16px + env(safe-area-inset-bottom, 0px));
  width: min(380px, calc(100vw - 32px));
  height: min(540px, calc(100dvh - var(--bar) - 112px));
  display: flex; flex-direction: column;
  background: var(--white); border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
}
.assistant__head { display: flex; justify-content: space-between; gap: 10px; padding: 16px 12px 14px 18px; border-bottom: 2px solid var(--ink); background: var(--paper); }
.assistant__head h2 { font-size: 1.35rem; line-height: 1.2; }
.assistant__head p { margin-top: 3px; font-size: .8rem; color: var(--ink-soft); }
.icon-button {
  display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px;
  border: 0; background: transparent; cursor: pointer;
}
.icon-button:hover { background: var(--paper); }
.assistant__log { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.bubble { max-width: 88%; padding: 10px 13px; font-size: .95rem; line-height: 1.5; }
.bubble p + p, .bubble p + ul, .bubble ul + p { margin-top: 6px; }
.bubble ul { display: grid; gap: 3px; }
.bubble li { display: flex; gap: 8px; }
.bubble li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .55em; background: var(--ochre); }
.bubble--them { align-self: flex-start; background: var(--paper); }
.bubble--me { align-self: flex-end; background: var(--ink); color: var(--paper); }
.bubble--typing { color: var(--ink-soft); }
.bubble__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bubble__actions .button { min-height: 38px; padding: 0 12px; font-size: .85rem; box-shadow: 2px 2px 0 var(--ink); }
.assistant__chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 12px; scrollbar-width: none; }
.assistant__chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 7px 12px; border: 1.5px solid var(--ink); background: var(--white);
  font-size: .85rem; font-weight: 700; white-space: nowrap; cursor: pointer;
}
.chip:hover { background: var(--ochre); }
.assistant__form { display: flex; gap: 8px; padding: 12px; border-top: 2px solid var(--ink); }
.assistant__form input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 0; background: var(--white); font-size: 1rem; }
.icon-button--send { width: 44px; height: 44px; background: var(--terracotta); color: var(--white); }
.icon-button--send:hover { background: var(--ink); }
@media (max-width: 520px) {
  .assistant { right: 0; left: 0; bottom: 0; width: 100%; height: min(80dvh, 620px); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: none; border-width: 2px 0 0; }
}

.note {
  position: fixed; z-index: 55;
  left: calc(16px + env(safe-area-inset-left, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(330px, calc(100vw - 32px));
  padding: 30px 20px 16px;
  background: var(--white); box-shadow: var(--lift), 0 2px 0 rgba(28, 26, 25, .1);
  rotate: -1.2deg;
}
.note__close { position: absolute; top: 6px; right: 6px; }
.note h2 { font-size: 1.55rem; line-height: 1.1; padding-right: 30px; }
.note__options { display: grid; gap: 8px; margin-top: 16px; }
.note__options button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px;
  border: 1.5px solid var(--ink); background: var(--white);
  font-weight: 700; text-align: left; cursor: pointer;
}
.note__options button:hover { background: var(--ink); color: var(--paper); }
.note__dismiss { margin-top: 12px; font-size: .9rem; }
@media (max-width: 720px) {
  .note { bottom: calc(16px + 48px + 18px + env(safe-area-inset-bottom, 0px)); }
}


/* ===== Privacy page ===== */

.legal { padding-block: clamp(56px, 7vw, 110px); }
.legal__body { max-width: 44rem; padding: clamp(28px, 4vw, 56px); background: var(--white); box-shadow: var(--lift); position: relative; }
.legal h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.8rem); line-height: 1; letter-spacing: -.02em; }
.legal__date { margin-top: 10px; font-size: .9rem; color: var(--ink-soft); }
.legal h2 { margin-top: 34px; font-size: 1.45rem; letter-spacing: -.01em; }
.legal p, .legal ul { margin-top: 10px; }
.legal ul { display: grid; gap: 6px; }
.legal li { display: flex; gap: 12px; }
.legal li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .65em; background: var(--ochre); }
.legal a:not(.button) { font-weight: 700; text-decoration-color: var(--terracotta); text-underline-offset: 4px; }
.legal .button { margin-top: 34px; }


/* ===== Motion =====
   Only for people who haven't asked their system to reduce motion. */

@media (prefers-reduced-motion: no-preference) {
  html.js .block { animation: drop .8s cubic-bezier(.34, 1.36, .64, 1) both; }
  html.js .block--trapezium { animation-delay: .05s; }
  html.js .block--square { animation-delay: .3s; }
  html.js .block--circle { animation-delay: .55s; }
  html.js .block--triangle { animation-delay: .8s; }
  html.js .block--rhombus { animation: drop .8s cubic-bezier(.34, 1.36, .64, 1) 1.05s both, teeter 3.6s ease-in-out 2s infinite alternate; }
  html.js .tag { animation: pin .45s cubic-bezier(.3, 1.5, .5, 1) both; }
  html.js .tag--structure { animation-delay: 1.5s; }
  html.js .tag--foundation { animation-delay: 1.62s; }
  html.js .tag--community { animation-delay: 1.74s; }
  html.js .tag--shelter { animation-delay: 1.86s; }
  html.js .tag--exchange { animation-delay: 1.98s; }
  html.js .tower__strings path, html.js .scribble path { stroke-dasharray: 1; animation: draw .7s ease-out 1.4s both; }
  html.js .scribble path { animation-delay: .5s; animation-duration: .9s; }
  html.js .scribble path + path { animation-delay: .9s; }
  html.js .tower__note { animation: fade .6s ease-out 2.3s both; }

  .tape__track { animation: roll 70s linear infinite; }
  .tape:hover .tape__track { animation-play-state: paused; }

  .note { animation: note-in .55s cubic-bezier(.25, 1.3, .5, 1); }
  .assistant { animation: rise .3s ease-out; }
}

@keyframes drop { from { translate: 0 -120vh; } }
@keyframes teeter { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes pin { from { scale: 0; } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes fade { from { opacity: 0; } }
@keyframes roll { to { transform: translateX(-100%); } }
@keyframes note-in { from { translate: -24px 70px; rotate: -7deg; } }
@keyframes rise { from { translate: 0 14px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .morph__shape, .tick path, .coupon__scissors { transition: none; }
  .tape__roll { flex-wrap: wrap; justify-content: center; }
  .tape__track { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .tape__track[aria-hidden="true"] { display: none; }
}
