/* Agent website: the standard look (twoofme-website MODE 4). Phone first at 390 px.
   Colours and fonts come only from the :root tokens each page sets (never a raw brand hex here),
   so the look follows the profile's website_palette. Works with JavaScript off; light only. */

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:72px}
body{margin:0;font-family:var(--font-body),system-ui,sans-serif;font-size:17px;line-height:1.6;color:#1b1f27;background:#fff;
  padding-bottom:calc(76px + env(safe-area-inset-bottom))}
img{max-width:100%;height:auto;display:block}
a{color:var(--heading)}
a:focus-visible,summary:focus-visible{outline:3px solid var(--accent-text);outline-offset:2px}
h1,h2,h3{font-family:var(--font-display),system-ui,sans-serif;color:var(--heading-deep);line-height:1.15;margin:0 0 .5em}
h1{font-size:clamp(2.1rem,9vw,3.6rem);letter-spacing:-.02em}
h2{font-size:clamp(1.45rem,5.5vw,2rem)}
h3{font-size:1.15rem}
p{margin:0 0 1em}
.wrap{max-width:1040px;margin:0 auto;padding:0 20px}
.narrow{max-width:760px}
.skip{position:absolute;left:-999px;top:8px;background:#fff;padding:10px 14px;z-index:20}
.skip:focus{left:8px}

/* header: the agent and the brokerage, same weight */
.top{position:sticky;top:0;z-index:10;background:#fff;border-bottom:3px solid var(--accent)}
.top-in{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 18px;padding-top:10px;padding-bottom:8px}
.brand{text-decoration:none;display:flex;flex-direction:column;line-height:1.2;min-height:44px;justify-content:center}
.brand-name,.brand-office{font-family:var(--font-display),system-ui,sans-serif;font-weight:700;font-size:1rem;color:var(--heading-deep)}
.brand-office{color:var(--heading)}
/* CT-05 (Connecticut Regs. 20-328-5a(g)): the brokerage name sits with the agent's name at the same size, in the
   header lockup and in every hero name (the h1 holds both). A Look sets --brand-size and styles .firm-lock's weight
   and colour, never its size, opacity or display. ct05_check.js blocks a deploy that breaks it. */
.brand-name,.brand-office{font-size:var(--brand-size,1rem)!important;opacity:1!important}
.firm-lock{display:block;font-size:1em!important;opacity:1!important;margin-top:.06em}
.office-tel{font-size:1.125rem!important;font-weight:600} /* CT-05: the office phone is never smaller than the agent's (the buttons run 17-18 px) */
.menu{flex:1 1 100%;min-width:0}
.menu ul{display:flex;gap:2px 4px;list-style:none;margin:0;padding:0;overflow-x:auto;scrollbar-width:none}
.menu a{display:inline-flex;align-items:center;min-height:44px;padding:0 10px;text-decoration:none;font-weight:600;color:var(--ink);white-space:nowrap}
.menu a[aria-current="page"]{color:var(--accent-text);box-shadow:inset 0 -3px 0 var(--accent)}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border-radius:999px;
  background:var(--primary);color:var(--on-primary);font-weight:700;text-decoration:none;border:2px solid var(--primary)}
.btn.ghost{background:transparent;color:var(--heading)}
.btn.on-dark{background:var(--on-primary);color:var(--primary);border-color:var(--on-primary)}
.btn.ghost.on-dark{background:transparent;color:var(--on-primary)}
.btn-row .btn,.hero-btns .btn,.strip-btns .btn{margin:0 8px 8px 0}

/* home hero: a colour field, the name as the headline, the towns right under it */
.hero{background:var(--primary);color:var(--on-primary)}
.hero-in{display:grid;gap:18px;padding-top:24px;padding-bottom:28px;align-items:center}
.hero-rating{display:inline-flex;align-items:center;min-height:44px;color:var(--on-primary);font-weight:700;text-decoration:none;margin-bottom:.4em}
.hero h1{color:var(--on-primary);animation:rise .4s ease-out both}
.hero .towns{color:var(--on-primary-soft);font-weight:600;margin-bottom:.8em}
.hero .lede{font-size:1.25rem;font-weight:600;max-width:34ch}
.hero .sub{color:var(--on-primary-soft);max-width:44ch}
.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:.875rem;font-weight:700;color:var(--accent-text);margin-bottom:.6em}
.hero .eyebrow{color:var(--on-primary-soft)}
/* phone: the face sits above the name, small and round, so face, name, towns, rating and
   "Text me" all fit the first screen (the 30-second check); larger screens get the portrait */
.portrait{width:112px;height:112px;object-fit:cover;border-radius:50%;order:-1;border:3px solid var(--on-primary)}
.portrait.small{width:100%;height:auto;max-width:240px;aspect-ratio:4/5;border-radius:18px;order:0;border:0}
.portrait.small{max-width:240px}
@keyframes rise{from{transform:translateY(8px)}to{transform:none}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
html[data-motion="off"] *{animation:none!important;transition:none!important}

/* proof strip: real figures, each with its source */
.proof{background:var(--wash);padding:22px 0}
.proof-in{list-style:none;margin:0 auto;padding:0 20px;display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:14px}
.proof .wrap .proof-in{padding:0}
.proof li{display:flex;flex-direction:column}
.proof strong{font-family:var(--font-display),system-ui,sans-serif;font-size:1.6rem;color:var(--heading-deep)}
.proof small{color:#4a5160;font-size:.875rem}

/* sections */
section{padding:36px 0}
.page-head{background:var(--wash);padding:32px 0 26px}
.page-head .lede{font-size:1.15rem;max-width:56ch}
.towns{font-weight:600;color:var(--heading)}
.cards{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.card{display:block;background:#fff;border:1px solid #dfe4ee;border-radius:14px;padding:18px;text-decoration:none;color:inherit}
a.card:hover{border-color:var(--heading)}
.card .more{font-weight:700;color:var(--accent-text)}
.post-card img{border-radius:10px;margin-bottom:10px}
.topic{display:block;font-size:.875rem;font-weight:700;color:var(--accent-text);margin-bottom:6px}
.quote-band{background:var(--accent-wash)}
.quote blockquote,.review blockquote{margin:0 0 10px;font-size:1.2rem;font-weight:500}
.stars{color:var(--accent-text);letter-spacing:2px;margin:0 0 6px}
.towns-list{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:10px}
.towns-list li{background:var(--wash);border-radius:999px;padding:0 16px;min-height:44px;display:flex;align-items:center;font-weight:600}
.towns-list a{text-decoration:none;display:flex;align-items:center;min-height:44px}
.two{display:grid;gap:24px}
.prose{max-width:68ch}
.prose h2{margin-top:1.2em}
.pull{border-left:4px solid var(--accent);margin:1.2em 0;padding:4px 0 4px 16px;font-size:1.2rem;font-weight:600;color:var(--heading-deep)}
.soft{background:var(--wash)}
.tick{padding-left:1.2em}
.tick li{margin-bottom:.4em}
.steps{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.steps li{display:flex;gap:14px;align-items:flex-start}
.steps .n{flex:0 0 40px;height:40px;border-radius:50%;background:var(--primary);color:var(--on-primary);display:flex;align-items:center;justify-content:center;font-weight:800}
.faq details{border-bottom:1px solid #dfe4ee;padding:4px 0}
.faq summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700;color:var(--heading-deep)}
.sources{list-style:none;padding:0;margin:10px 0 0;display:flex;flex-wrap:wrap;gap:10px}
.sources a{display:inline-flex;min-height:44px;align-items:center;padding:0 14px;border-radius:999px;background:#fff;text-decoration:none}
.review-list{display:grid;gap:16px}
.review{margin:0;background:#fff;border:1px solid #dfe4ee;border-radius:14px;padding:18px}
.review figcaption{color:#4a5160;font-size:.95rem}
.reach-in{display:grid;gap:12px}
.reach-btn{display:flex;flex-direction:column;padding:16px 20px;border-radius:14px;border:2px solid var(--primary);text-decoration:none;color:var(--heading-deep);min-height:64px}
.reach-btn.main{background:var(--primary);color:var(--on-primary)}
.reach-btn span{font-size:.95rem}
.short{background:var(--wash);border-radius:14px;padding:16px 18px;margin:0 0 1.5em}
.short h2{font-size:1.1rem;margin-top:0}
.also-on{margin:1.6rem 0;padding:.9rem 1.1rem;border-left:4px solid var(--accent);background:var(--accent-wash,#f3f4f6)}
.author{display:flex;gap:12px;align-items:center;border-top:1px solid #dfe4ee;margin-top:2em;padding-top:16px;font-size:.95rem}
.author img{border-radius:50%;width:72px;height:72px;object-fit:cover}
.area-photo img{border-radius:14px}

/* contact strip on every page */
.strip{background:var(--primary);color:var(--on-primary)}
.strip-head{font-family:var(--font-display),system-ui,sans-serif;font-size:1.3rem;font-weight:700}
.strip .btn{background:var(--on-primary);color:var(--primary);border-color:var(--on-primary)}
.strip .btn.ghost{background:transparent;color:var(--on-primary)}

/* the locked footer: agent and brokerage side by side, the brokerage never smaller */
.foot{background:var(--ink);color:#e9edf5;padding:32px 0 24px;font-size:.95rem}
.foot a{color:#fff}
.lockup{display:grid;gap:20px;padding-bottom:18px;border-bottom:1px solid rgba(255,255,255,.25)}
.f-name{font-family:var(--font-display),system-ui,sans-serif;font-weight:700;font-size:1.15rem;color:#fff;margin-bottom:.3em}
.f-tag{font-style:italic}
.f-logo{max-height:56px;width:auto;margin-bottom:8px;background:#fff;padding:6px;border-radius:6px}
.legal{margin-top:14px;font-size:.9rem}
.sample-note{font-weight:700;color:#ffd7db}

/* the sticky action bar, in the thumb zone */
.act{position:fixed;left:0;right:0;bottom:0;z-index:15;display:flex;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  background:#fff;border-top:1px solid #dfe4ee;box-shadow:0 -4px 16px rgba(0,0,0,.06)}
.act a{flex:1;display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:999px;font-weight:700;text-decoration:none;
  border:2px solid var(--primary);color:var(--heading)}
.act .act-main{flex:1.6;background:var(--primary);color:var(--on-primary)}

@media (min-width:760px){
  body{padding-bottom:0}
  .act{position:static;justify-content:center;box-shadow:none;border:0;background:var(--wash)}
  .act a{flex:0 0 auto;padding:0 26px}
  .hero-in{grid-template-columns:1.3fr .7fr;padding-top:56px;padding-bottom:56px}
  .hero .portrait{order:0;width:100%;height:auto;max-width:320px;aspect-ratio:4/5;border-radius:18px 18px 120px 18px;border:0;justify-self:center}
  .menu{flex:0 1 auto}
  .two{grid-template-columns:240px 1fr;align-items:start}
  .lockup{grid-template-columns:1fr 1fr}
  .lock-brokerage{border-left:1px solid rgba(255,255,255,.25);padding-left:20px}
  .reach-in{grid-template-columns:repeat(3,1fr)}
}

/* make it yours: optional home sections, language badges, sign-off (personalize.py) */
.lang-badges{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 .6em}
.badge{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border-radius:999px;border:1.5px solid currentColor;font-size:.9rem;font-weight:600}
.all-reviews{margin:12px 0 0}
.all-reviews a{display:inline-flex;align-items:center;min-height:44px;font-weight:700;color:inherit}
.tool-card{border-left:4px solid var(--accent)}
.journey-in,.personal-in{display:grid;gap:18px;align-items:center}
.journey img,.personal img{border-radius:14px;width:100%;height:auto}
.personal img{max-width:320px}
.sign-off{font-style:italic;margin:-.4em 0 .8em;opacity:.9}
@media (min-width:760px){
  .journey-in{grid-template-columns:1fr 1fr}
  .personal-in{grid-template-columns:320px 1fr}
}
.hero .badge{color:var(--on-primary)}

/* the phone menu: one header row (name + Menu), the list opens below; the full row from 760 px */
.menu-phone{margin-left:auto}
.menu-phone summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border-radius:999px;
  border:2px solid currentColor;font-weight:700;color:var(--heading-deep)}
.menu-phone summary::-webkit-details-marker{display:none}
.menu-phone summary::after{content:"";width:12px;height:2px;background:currentColor;box-shadow:0 -4px 0 currentColor,0 4px 0 currentColor}
.menu-phone[open] summary::after{box-shadow:none}
.menu-phone nav{position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid #dfe4ee;box-shadow:0 12px 24px rgba(0,0,0,.08);z-index:12}
.menu-phone ul{list-style:none;margin:0 auto;padding:6px 20px 12px;max-width:1040px}
.menu-phone a{display:flex;align-items:center;min-height:48px;text-decoration:none;font-weight:700;color:var(--ink);border-bottom:1px solid #eef1f6}
.menu-phone a[aria-current="page"]{color:var(--accent-text)}
.top{position:sticky}
.top-in{position:relative;flex-wrap:nowrap}
.menu{display:none}
.f-team{font-weight:600;margin:-.2em 0 .4em}
.card-title{font-size:1.15rem;margin:0 0 .5em}
@media (min-width:760px){.menu-phone{display:none}.menu{display:block}.top-in{flex-wrap:wrap}}

/* Latest: the agent's newest Studio pieces (references/latest.md). One swipeable row on a phone,
   posters lazy, a reel plays only on a tap (no autoplay, nothing preloaded). */
.lt{padding:36px 0 30px}
.lt h2{margin:0 0 14px}
.lt-row{list-style:none;margin:0 -20px;padding:0 20px 6px;display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;
  scrollbar-width:none;scroll-padding-inline:20px;align-items:flex-start}
.lt-row::-webkit-scrollbar{display:none}
.lt-item{flex:0 0 46%;scroll-snap-align:start;margin:0}
.lt-media{display:block;position:relative;border-radius:16px;overflow:hidden;background:var(--accent-wash);
  box-shadow:0 1px 0 rgba(10,27,61,.08),0 6px 20px rgba(10,27,61,.08)}
.lt-media img,.lt-item video{display:block;width:100%;height:auto;aspect-ratio:9/16;object-fit:cover}
.lt-item:not(.lt-reel) .lt-media img{aspect-ratio:3/4}
.lt-item video{border-radius:16px;background:#000}
.lt-btn{position:absolute;left:50%;top:50%;width:56px;height:56px;margin:-28px 0 0 -28px;border-radius:50%;background:rgba(255,255,255,.94);
  box-shadow:0 2px 10px rgba(10,27,61,.25)}
.lt-btn::after{content:"";position:absolute;left:22px;top:17px;border-style:solid;border-width:11px 0 11px 17px;
  border-color:transparent transparent transparent var(--heading-deep)}
a.lt-media:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.lt-cap{margin:8px 2px 0;font-size:.92rem;line-height:1.35;color:#1d2230}
.lt-kind{display:block;color:var(--accent-text);font-weight:700;font-size:.875rem;letter-spacing:.06em;text-transform:uppercase;margin-bottom:2px}
@media (min-width:760px){.lt-row{margin:0;padding:0;overflow:visible;display:grid;grid-template-columns:repeat(4,1fr);gap:20px}}

/* lead forms (valuation, newsletter): one column on a phone, 48 px fields, the status says what happened */
.lead-form{background:var(--wash)}
.lf{display:grid;gap:14px;margin-top:14px}
.lf label{display:grid;gap:6px;font-weight:600;color:var(--heading-deep)}
:where(button){font:inherit}  /* a <button> doesn't inherit the page font (the form's submit read smaller than every link button); zero specificity, so each Look's .btn still wins */
.lf input,.lf textarea{font:inherit;font-weight:400;min-height:48px;padding:10px 12px;border:1.5px solid #b9c2d3;border-radius:10px;background:#fff;color:#1b1f27;width:100%}
.lf input:focus-visible,.lf textarea:focus-visible{outline:3px solid var(--accent-text);outline-offset:1px;border-color:var(--heading)}
.lf .opt{font-weight:400;color:#4a5160}
.lf-row{display:grid;gap:14px}
.lf-trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.lf-consent{font-size:.88rem;color:#4a5160;margin:0}
/* the optional texting consent: its own unticked box, readable, a full tap target */
.lf label.lf-check,.lead-form .lf label.lf-check{display:flex;gap:12px;align-items:flex-start;font-family:var(--font-body),system-ui,sans-serif;font-weight:400;font-size:.9375rem;line-height:1.5;letter-spacing:normal;text-transform:none;color:var(--ink);cursor:pointer}
.lf-check input{flex:none;width:22px;height:22px;margin:1px 0 0;accent-color:var(--primary)}
.lf-check a{color:inherit}
.lf-go{margin:0}
.lf-status{margin:0;font-weight:700;color:var(--heading-deep);min-height:1.5em}
.lf-status.bad{color:var(--accent-text)}
@media (min-width:760px){.lf-row{grid-template-columns:1fr 1fr}.lf-inline{grid-template-columns:1fr 1fr auto;align-items:end}.lf-inline .lf-consent,.lf-inline .lf-status{grid-column:1/-1}}

/* reviews drawn live from Google, or the agent's widget, in the Look's own band */
.rv-h{margin:0 0 6px}
.rv-list{display:grid;gap:18px;margin:10px 0 0}
.rv{margin:0}
.rv blockquote{margin:0 0 6px}
.rv figcaption a{color:inherit;font-weight:700}
.rv-src{font-size:.85rem;opacity:.8;margin:8px 0 0}
.rv-embed{padding-top:12px}
@media (min-width:760px){.rv-list{grid-template-columns:repeat(3,1fr)}}

/* gallery, questions, market: plain defaults; a Look restyles them */
.gal{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.gal img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:10px;display:block}
.gal span{display:block;font-size:.9rem;color:#4a5160;margin-top:4px}
.gal-credit{font-size:.85rem;color:#4a5160;margin-top:10px}
.questions,.market,.gallery-s{padding:40px 0}
.mk{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}
.mk li{display:flex;flex-direction:column;background:var(--wash);border-radius:12px;padding:16px}
.mk strong{font-family:var(--font-display),system-ui,sans-serif;font-size:1.6rem;color:var(--heading-deep)}
.mk small{color:#4a5160;font-size:.875rem}

/* About: the portrait sits in the header beside the name (each Look gives it its own shape);
   the story starts on the first screen */
.about-head-in{display:flex;align-items:center;gap:16px}
.about-head-say{flex:1;min-width:0}
.about-face{margin:0;flex:none}
.about-face img{display:block;width:96px;height:96px;object-fit:cover;object-position:50% 18%;border-radius:50%}
@media (min-width:760px){.about-head-in{gap:40px}.about-face img{width:200px;height:250px;border-radius:18px}}
.prose{max-width:66ch}
/* a post reads at 66 characters a line on every Look (the narrow wrap would otherwise win) */
.page-post .wrap.narrow.prose{max-width:calc(36em + 40px)}
