@font-face { font-family: "Reckless"; src: url("https://24264970.fs1.hubspotusercontent-ap1.net/hubfs/24264970/tylor-construction/fonts/RecklessStandardM-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Intelo"; src: url("https://24264970.fs1.hubspotusercontent-ap1.net/hubfs/24264970/tylor-construction/fonts/Intelo-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Intelo"; src: url("https://24264970.fs1.hubspotusercontent-ap1.net/hubfs/24264970/tylor-construction/fonts/Intelo-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Intelo"; src: url("https://24264970.fs1.hubspotusercontent-ap1.net/hubfs/24264970/tylor-construction/fonts/Intelo-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: only light;
  --yellow: #FFBE0F; --stone: #E3DFD6; --stone-dark: #D5D0C7; --tan: #CEBDA1; --tan-deep: #AE987D;
  --ink: #1A1A1A; --white: #FFFFFF;
  --serif: "Reckless", Georgia, serif;
  --sans: "Intelo", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, 0, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --radius-hero: clamp(24px, 5vw, 72px);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--stone); color: var(--ink); font: 400 18px/1.4 var(--sans); -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 10; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--ink); }

.eyebrow { font: 600 13px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; }
.serif { font-family: var(--serif); font-weight: 400; }

/* Hero */
.hero { background: var(--yellow); padding: max(24px, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) clamp(40px, 6vw, 72px) max(var(--gutter), env(safe-area-inset-left)); border-bottom-right-radius: var(--radius-hero); }
.hero__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(32px, 6vw, 80px); }
.logo svg { width: 150px; height: 32px; display: block; }
.logo svg .logo__square { fill: var(--yellow); }
.close { display: grid; place-items: center; min-width: 44px; min-height: 44px; font-size: 22px; text-decoration: none; line-height: 1; }
.hero__title { font: 400 clamp(32px, 3vw, 44px)/1.15 var(--serif); margin: 0 0 16px; max-width: 60ch; }
.hero__body { font: 400 clamp(26px, 2.6vw, 40px)/1.15 var(--serif); margin: 0; max-width: 60ch; }
.hero--result .hero__title { font-size: clamp(36px, 4vw, 56px); }
.hero--result .hero__body { font-size: clamp(20px, 1.8vw, 26px); }

/* The swipe is the job. Keep the question and both answers on screen. */
body:has(#screen-start:not([hidden])) .hero,
body:has(#screen-card:not([hidden])) .hero { padding-bottom: 48px; }
body:has(#screen-start:not([hidden])) .hero__bar,
body:has(#screen-card:not([hidden])) .hero__bar { margin-bottom: 20px; }
body:has(#screen-start:not([hidden])) .hero__body,
body:has(#screen-card:not([hidden])) .hero__body { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.25; }
body:has(#screen-start:not([hidden])) .main,
body:has(#screen-card:not([hidden])) .main { margin-top: -36px; padding-top: 0; padding-bottom: 24px; }
body:has(#screen-card:not([hidden])) .question { font-size: clamp(24px, 2.2vw, 32px); margin-bottom: 16px; }
body:has(#screen-card:not([hidden])) .tile { min-height: 0; padding: 20px; transition: none; }
body:has(#screen-card:not([hidden])) .tile:active { transform: none; }
body:has(#screen-card:not([hidden])) .tile__text { font-size: clamp(18px, 1.6vw, 22px); }
body:has(#screen-card:not([hidden])) .tile__arrow { margin-top: 16px; }

/* A phone card has to show both answers. The sheet does not scroll, so the
   repeating hero line gives up its space and a short screen keeps the two
   tiles side by side. */
@media (max-width: 520px) {
  body:has(#screen-card:not([hidden])) .hero__body { display: none; }
  body:has(#screen-card:not([hidden])) .hero { padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: 32px; }
  body:has(#screen-card:not([hidden])) .hero__bar { margin-bottom: 8px; }
  body:has(#screen-card:not([hidden])) .hero__title { font-size: 28px; margin-bottom: 0; }
  body:has(#screen-card:not([hidden])) .main { margin-top: 0; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  body:has(#screen-card:not([hidden])) .sheet { padding: 16px 16px 14px; }
  body:has(#screen-card:not([hidden])) .progress { margin-bottom: 8px; }
  body:has(#screen-card:not([hidden])) .eyebrow { margin-bottom: 8px; }
  body:has(#screen-card:not([hidden])) .question { font-size: 22px; margin-bottom: 12px; }
  body:has(#screen-card:not([hidden])) .tile { padding: 14px 14px 12px; }
  body:has(#screen-card:not([hidden])) .tile__label { margin-bottom: 8px; }
  body:has(#screen-card:not([hidden])) .tile__text { font-size: 17px; }
  body:has(#screen-card:not([hidden])) .tile__arrow { margin-top: 8px; font-size: 22px; }
}
@media (max-width: 520px) and (min-height: 800px) {
  body:has(#screen-card:not([hidden])) .hero__body { display: block; font-size: 16px; }
  body:has(#screen-card:not([hidden])) .hero__title { margin-bottom: 8px; }
}
@media (max-height: 520px) {
  body:has(#screen-start:not([hidden])) .main,
  body:has(#screen-card:not([hidden])) .main { margin-top: 0; }
  body:has(#screen-start:not([hidden])) .hero__body,
  body:has(#screen-card:not([hidden])) .hero__body { display: none; }
  body:has(#screen-start:not([hidden])) .hero__title,
  body:has(#screen-card:not([hidden])) .hero__title { font-size: 22px; margin-bottom: 0; }
  body:has(#screen-start:not([hidden])) .hero,
  body:has(#screen-card:not([hidden])) .hero { padding-top: 8px; padding-bottom: 24px; }
  body:has(#screen-start:not([hidden])) .hero__bar,
  body:has(#screen-card:not([hidden])) .hero__bar { margin-bottom: 6px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  body:has(#screen-card:not([hidden])) .eyebrow { display: none; }
  body:has(#screen-card:not([hidden])) .sheet { padding: 12px 16px 8px; }
  body:has(#screen-card:not([hidden])) .question { font-size: 18px; margin-bottom: 8px; }
  body:has(#screen-card:not([hidden])) .tile { padding: 10px 12px; }
  body:has(#screen-card:not([hidden])) .tile__arrow { margin-top: 6px; }
}
body:has(#screen-result:not([hidden])) .main { margin-top: 0; padding: 0; }

/* Card sheet */
.main { padding: clamp(24px, 5vw, 72px) max(var(--gutter), env(safe-area-inset-right)) clamp(24px, 5vw, 72px) max(var(--gutter), env(safe-area-inset-left)); }
.sheet { background: var(--white); width: min(660px, 100%); margin: 0 auto; padding: clamp(24px, 4vw, 40px); border-top-right-radius: 56px; position: relative; touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: 0 10px 28px rgba(26, 26, 26, 0.06); will-change: transform; }
.sheet--held { z-index: 2; cursor: grabbing; }
.progress { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font: 600 13px/1 var(--sans); letter-spacing: .08em; }
.progress__bar { flex: 1; height: 2px; background: var(--stone-dark); }
.progress__fill { height: 100%; background: var(--ink); transition: width 200ms var(--ease); }
.question { font: 400 clamp(28px, 3vw, 40px)/1.1 var(--serif); margin: 0 0 clamp(24px, 4vw, 40px); text-wrap: pretty; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 479px) and (min-height: 741px) { .tiles { grid-template-columns: 1fr; } }
.tile { display: flex; flex-direction: column; text-align: left; min-height: 280px; padding: 24px; border-radius: 16px; transition: background 150ms, transform 120ms ease; }
.tile:active { transform: scale(0.98); }
.tile--left { background: var(--tan); }
.tile--right { background: var(--stone); }
.tile--right .tile__label, .tile--right .tile__arrow { align-self: flex-end; }
.tile--right .tile__text { text-align: right; }
.tile--near { background: var(--tan-deep); }
@media (hover: hover) { .tile:hover { background: var(--tan-deep); } }
.tile__label { font: 600 13px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 20px; }
.tile__text { font: 400 clamp(20px, 2vw, 24px)/1.2 var(--serif); margin: 0 0 auto; text-wrap: pretty; }
.tile__arrow { font-size: 28px; line-height: 1; margin-top: 24px; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; background: var(--yellow); color: var(--ink); font: 600 14px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 18px 32px; border-radius: 28px; text-decoration: none; }
@media (hover: hover) { .btn:hover { background: var(--tan-deep); } }

/* Result bands */
.band { padding: clamp(40px, 6vw, 64px) max(var(--gutter), env(safe-area-inset-right)) clamp(40px, 6vw, 64px) max(var(--gutter), env(safe-area-inset-left)); }
.band--stone { background: var(--stone); }
.band--tan { background: var(--tan); }
.band__inner { max-width: 1200px; margin: 0 auto; }
.person__name { font: 400 clamp(32px, 3vw, 40px)/1.1 var(--serif); margin: 0 0 4px; }
.person__title { margin: 0 0 32px; }
.person__grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 767px) { .person__grid { grid-template-columns: 1fr; } }
.person__photo { aspect-ratio: 1; object-fit: cover; width: 100%; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--stone-dark); }
.timeline b { font-weight: 600; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); }
@media (max-width: 767px) { .quotes { grid-template-columns: 1fr; } }
.quote { font: 400 clamp(20px, 2vw, 24px)/1.35 var(--serif); margin: 0; }
.also { border-top: 1px solid var(--stone-dark); }
.also a { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; text-decoration: none; display: inline-block; margin: 0 0 8px; }
@media (hover: hover) { .also a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.also .band__inner > p:last-child { margin: 0; max-width: 62ch; }

/* The last step is the same kind of card as a swipe, on its own surface. */
.band--ask { background: var(--stone); }
.ask {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  background: var(--white);
  border-top-right-radius: clamp(32px, 4vw, 56px);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 10px 28px rgba(26, 26, 26, 0.06);
}
@media (max-width: 800px) { .ask { grid-template-columns: 1fr; align-items: start; } }
.ask__intro { font: 400 clamp(28px, 2.8vw, 40px)/1.2 var(--serif); margin: 0; max-width: 22ch; text-wrap: pretty; }
.ask__q { font: 400 clamp(22px, 2vw, 28px)/1.2 var(--serif); margin: 0 0 16px; text-wrap: balance; }
.age { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice {
  min-height: 104px;
  padding: 16px;
  border-radius: 16px;
  background: var(--yellow);
  color: var(--ink);
  font: 600 20px/1.2 var(--sans);
  touch-action: manipulation;
}
.choice--quiet { background: var(--stone); }
@media (hover: hover) {
  .choice:hover { background: var(--tan-deep); }
  .choice--quiet:hover { background: var(--stone-dark); }
}
.choice:active { transform: scale(0.98); }
.ask--form { align-items: start; }
.ask--form .ask__intro { max-width: 28ch; }
.ask--note { grid-template-columns: 1fr; max-width: 720px; }
.ask--note .ask__offer { display: none; }
.ask__note { margin: 0; max-width: 46ch; }
.footer { display: flex; gap: 8px 28px; flex-wrap: wrap; align-items: center; padding: 8px max(var(--gutter), env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left)); background: var(--stone); font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.hs-form label, .hs-form .hs-field-desc { font: 600 13px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; display: block; margin: 0 0 8px; }
.hs-form .inputs-list { list-style: none; margin: 4px 0 16px; padding: 0; }
.hs-form .legal-consent-container .hs-richtext { display: none; }
.hs-form input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.hs-form .hs-input:not([type=checkbox]) { width: 100%; height: 56px; background: var(--stone); border: 1px solid var(--stone-dark); border-radius: 4px; padding: 0 16px; font: 400 18px var(--sans); margin-bottom: 20px; }
.hs-form .hs-input:focus { border-color: var(--ink); outline: 0; }
.hs-form .hs-form-booleancheckbox label { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 16px; display: flex; gap: 12px; align-items: flex-start; }
.hs-form .hs-button { background: var(--yellow); color: var(--ink); font: 600 14px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 18px 32px; border: 0; border-radius: 28px; cursor: pointer; }
.hs-form .hs-error-msgs { list-style: none; padding: 0; margin: -12px 0 16px; font-size: 14px; }
.privacy { font-size: 14px; line-height: 1.45; margin: 20px 0 0; max-width: 60ch; }

@media (prefers-reduced-motion: reduce) {
  .sheet, .progress__fill, .tile { transition: none; }
}
