/* abdiaslegacy.com front page: one family, two doors.
   Abdias Legacy brand Palette 1 (black #0A0A0A + Fire Orange #FA660F, Space Grotesk + Inter, 2026-11-25).
   Each door previews where it goes: the builder door is black and orange; Jennifer's door uses her site's
   warm paper and terracotta so the hand-off to jennifer.abdiaslegacy.com feels continuous. */

:root {
  --panel: #151515; --bg: #0a0a0a; --canvas: #0a0a0a; --fire: #fa660f; --cyan: #38bdf8;
  --ink: #ffffff; --ink-soft: #a3a3a3;
  --paper: #fbf8f3; --paper-ink: #1f2a37; --terra: #c2552d; --bay: #2f6b5e;
  --display: "Space Grotesk", system-ui, sans-serif;
  --text: "Inter", system-ui, sans-serif;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 720px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background-color: var(--canvas); background-image: linear-gradient(to right, rgba(56, 189, 248, .07) 1px, transparent 1px), linear-gradient(to bottom, rgba(56, 189, 248, .07) 1px, transparent 1px); background-size: 48px 48px; color: var(--ink); font: 400 1.05rem/1.6 var(--text); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--fire); outline-offset: 3px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fire); color: var(--bg); padding: 10px 14px; z-index: 10; font-weight: 700; }
.skip:focus { left: 8px; }

/* top bar */
.top { border-bottom: 1px solid rgba(56, 189, 248, .35); }
.top__row { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.mark img { height: 36px; width: auto; }
.top__tag { margin: 0; font: 600 .78rem "JetBrains Mono", Consolas, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }

/* intro */
.intro { padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(28px, 4vw, 44px); }
.eyebrow { margin: 0 0 14px; font: 600 .8rem "JetBrains Mono", Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.intro__title { margin: 0; font: 800 clamp(2.4rem, 6.4vw, 5rem)/1 var(--display); letter-spacing: -.03em; max-width: 16ch; text-wrap: balance; }
.intro__title span { color: var(--fire); }
.intro__lede { margin: 18px 0 0; max-width: 56ch; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); }
.intro > * { animation: rise .8s var(--ease) both; }
.intro > :nth-child(2) { animation-delay: .08s; } .intro > :nth-child(3) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* the two doors */
.doors { display: flex; flex-direction: column; gap: 4px; padding: 0 var(--gutter); max-width: calc(1240px + 2 * var(--gutter)); margin: 0 auto; }
@media (min-width: 860px) { .doors { flex-direction: row; align-items: stretch; } }
.door { position: relative; flex: 1 1 0; display: flex; align-items: flex-end; min-height: 460px; overflow: hidden; border-radius: 18px; text-decoration: none; isolation: isolate; transition: flex-grow .6s var(--ease); animation: rise .9s .2s var(--ease) both; }
.door--home { animation-delay: .3s; }
@media (min-width: 860px) {
  .doors:hover .door, .doors:focus-within .door { flex-grow: .8; }
  .doors .door:hover, .doors .door:focus-visible { flex-grow: 1.35; }
}
.door__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.door:hover .door__img, .door:focus-visible .door__img { transform: scale(1.04); }
.door--home .door__img { object-position: 50% 18%; }
.door__shade { position: absolute; inset: 0; z-index: -1; }
.door--build .door__shade { background: linear-gradient(180deg, rgba(10, 10, 10, .15) 0%, rgba(10, 10, 10, .55) 45%, rgba(10, 10, 10, .95) 100%); }
.door--home .door__shade { background: linear-gradient(180deg, rgba(251, 248, 243, 0) 25%, rgba(251, 248, 243, .82) 58%, rgba(251, 248, 243, .98) 100%); }
.door__body { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 3vw, 40px); max-width: 560px; }
.door__label { font: 700 .75rem var(--text); letter-spacing: .16em; text-transform: uppercase; }
.door__title { font: 800 clamp(2.1rem, 4.2vw, 3.4rem)/1 var(--display); letter-spacing: -.025em; }
.door__text { font-size: 1.02rem; max-width: 46ch; }
.door__cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; width: fit-content; padding: 13px 22px; border-radius: 999px; font: 700 1rem var(--text); transition: gap .3s var(--ease); }
.door:hover .door__cta, .door:focus-visible .door__cta { gap: 16px; }
.door--build { color: var(--ink); background: var(--panel); }
.door--build .door__label { color: var(--cyan); }
.door--build .door__text { color: #d4d4d4; }
.door--build .door__cta { background: var(--fire); color: var(--bg); }
.door--home { color: var(--paper-ink); background: var(--paper); }
.door--home .door__label { color: var(--bay); }
.door--home .door__title em { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 500; color: var(--terra); }
.door--home .door__text { color: #3a4553; }
.door__broker { font: 700 .95rem var(--text); color: var(--paper-ink); } /* TREC 535.155: >= half of the largest agent contact info */
.door--home .door__cta { background: var(--terra); color: #fff; }

/* who we are */
.who { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.who__title { margin: 0 0 24px; font: 800 clamp(1.8rem, 3.6vw, 2.6rem) var(--display); }
.who__grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .who__grid { grid-template-columns: 1fr 1fr; } }
.who__card { padding: clamp(22px, 3vw, 32px); border: 1px solid rgba(56, 189, 248, .30); border-radius: 18px; background: rgba(21, 21, 21, .55); }
.who__card h3 { margin: 0 0 4px; font: 800 1.5rem var(--display); }
.who__role { margin: 0 0 14px; font-weight: 600; color: var(--fire); font-size: .95rem; }
.who__role--broker { color: #ffb547; font-size: 1rem; } /* TREC: broker name >= half of the agent name size */
.who__card p { color: #d4d4d4; }
.link { display: inline-flex; gap: 8px; font-weight: 700; color: var(--cyan); text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: .2em; }

/* footer */
.foot { background: var(--bg); border-top: 1px solid rgba(56, 189, 248, .25); padding: 44px 0 36px; font-size: .95rem; color: var(--ink-soft); }
.foot__grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .foot__grid { grid-template-columns: .8fr 1.6fr; } }
.foot p { margin: 0 0 8px; }
.foot a { color: var(--ink); }
.foot__name { font: 800 1.05rem var(--display); color: var(--ink); }
.foot__tag { color: var(--fire); font-weight: 600; }
.foot__broker { font-weight: 700; color: var(--ink); }
.trec { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.trec a { font-size: 15px; font-weight: 700; text-decoration: underline; } /* TREC: at least 10 pt, full label */
.eho { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.fine { font-size: .82rem; color: #a3a3a3; max-width: 80ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* Photo on top, text below on solid color, at every size, so nothing ever covers a face. */
.doors { gap: 14px; }
.door { flex-direction: column; align-items: stretch; min-height: 0; }
.door__img { position: relative; inset: auto; width: 100%; height: clamp(260px, 34vw, 440px); z-index: 0; }
.door--home .door__img { height: clamp(320px, 38vw, 480px); object-position: 50% 12%; }
.door--build .door__img { height: clamp(260px, 34vw, 480px); }
.door__shade { display: none; }
.door__body { max-width: none; flex: 1; }
@media (max-width: 859px) { .door { flex: none; } }
@media (min-width: 860px) { .door--home .door__img, .door--build .door__img { height: 440px; } }

/* Signal Cyan data line in the empty right side of the hero (brand: cyan = data, automation). Hidden on phones. */
.intro { position: relative; }
.intro::after { content: ""; position: absolute; right: 0; top: clamp(40px, 6vw, 80px); width: min(40%, 500px); aspect-ratio: 520 / 300; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 300'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%2338BDF8' stop-opacity='.28'/%3E%3Cstop offset='1' stop-color='%2338BDF8' stop-opacity='0'/%3E%3C/linearGradient%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%2338BDF8' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%2338BDF8' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M10 270 L110 228 L170 244 L260 158 L320 180 L430 72 L500 34 L500 300 L10 300 Z' fill='url%28%23a%29'/%3E%3Cpath d='M10 270 L110 228 L170 244 L260 158 L320 180 L430 72 L500 34' fill='none' stroke='%2338BDF8' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cg fill='%230A0A0A' stroke='%2338BDF8' stroke-width='3'%3E%3Ccircle cx='110' cy='228' r='6'/%3E%3Ccircle cx='170' cy='244' r='6'/%3E%3Ccircle cx='260' cy='158' r='6'/%3E%3Ccircle cx='320' cy='180' r='6'/%3E%3Ccircle cx='430' cy='72' r='6'/%3E%3C/g%3E%3Ccircle cx='500' cy='34' r='34' fill='url%28%23g%29'/%3E%3Ccircle cx='500' cy='34' r='9' fill='%2338BDF8'/%3E%3C/svg%3E") no-repeat right center / contain; pointer-events: none; }
@media (max-width: 960px) { .intro::after { display: none; } }
@media (prefers-reduced-motion: no-preference) { .intro::after { animation: rise .9s var(--ease) .24s both; } }
