/* Full-screen diagonal chooser for /work-with-greg/. */
@font-face{font-family:Fraunces;font-style:normal;font-weight:800;font-display:swap;src:url(/work-with-greg/assets/fonts/fraunces.woff2) format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:400 600;font-display:swap;src:url(/work-with-greg/assets/fonts/inter.woff2) format("woff2")}

:root{
  --green:#2D4A3E;
  --deep:#20372F;
  --cream:#E8E3D5;
  --paper:#F5F1E8;
  --terra:#C76B46;
  --terra-deep:#B15A3B;
  --terra-text:#a5482a;
  --ink:#1F2A24;
  --white:#FFFDF8;
  --muted:#4A5850;
  --line:#D9D4C7;
}

*{box-sizing:border-box}
html,body{margin:0;height:100%;}
body.split-page{
  min-height:100dvh;
  height:auto;
  overflow:auto;
  display:flex;
  flex-direction:column;
  background:var(--green);
  color:var(--white);
  font:16px/1.5 Inter,system-ui,sans-serif;
}
body.split-page a{color:inherit;text-underline-offset:3px}
body.split-page a:focus-visible{outline:3px solid var(--cream);outline-offset:4px}
.skip{position:absolute;left:16px;top:-80px;background:white;color:var(--ink);padding:14px;z-index:40}
.skip:focus{top:10px}

.split-stage{
  position:relative;
  flex:none;
  height:100dvh;
  min-height:100dvh;
  overflow:hidden;
  container-type:size;
  container-name:split;
  /* Gradient direction is perpendicular to the clip-path seam
     (top-right to bottom-left through the center), so a 50% stop
     follows that same line through the button. */
  --seam-angle:atan2(100cqh,-100cqw);
  --seam-line:rgba(255,253,248,.5);
}

.split-pane{
  position:absolute;
  inset:0;
  z-index:1;
  display:block;
  text-decoration:none;
  color:var(--white);
  transition:background-color .25s ease;
}
.split-buy{
  background:var(--green);
  clip-path:polygon(0 0, 100% 0, 0 100%);
}
.split-sell{
  background:var(--terra);
  clip-path:polygon(100% 0, 100% 100%, 0 100%);
}
@media (hover:hover){
  .split-buy:hover{background:var(--deep)}
  .split-sell:hover{background:var(--terra-deep)}
  .split-pane:hover .split-hint{opacity:1;transform:translateY(0)}
}

.split-copy{
  position:absolute;
  text-align:center;
  pointer-events:none;
}
.split-buy .split-copy{
  left:28%;
  top:32%;
  transform:translate(-50%,-50%);
}
.split-sell .split-copy{
  left:72%;
  top:71%;
  transform:translate(-50%,-50%);
}
.split-label{
  display:block;
  font:800 clamp(4.4rem, 11vw, 8.75rem)/.95 Fraunces,Georgia,serif;
  letter-spacing:-.04em;
}
.split-hint{
  display:block;
  margin-top:14px;
  font:600 15px/1.3 Inter,system-ui,sans-serif;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--cream);
  opacity:0;
  transform:translateY(6px);
  transition:opacity .25s ease, transform .25s ease;
}
.split-pane:focus-visible{outline:none}
.split-pane:focus-visible .split-label{
  outline:3px solid var(--cream);
  outline-offset:10px;
  border-radius:4px;
}

.split-seam{
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:linear-gradient(
    var(--seam-angle),
    transparent calc(50% - 1px),
    var(--seam-line) calc(50% - 1px),
    var(--seam-line) calc(50% + 1px),
    transparent calc(50% + 1px)
  );
}

.split-chrome{
  position:absolute;
  z-index:3;
  top:0;
  left:0;
  right:0;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:16px;
  padding:18px 24px 0;
  pointer-events:none;
}
.split-chrome a{pointer-events:auto;text-decoration:none}
.split-logo{
  justify-self:start;
  display:block;
  line-height:0;
}
.split-logo img{
  display:block;
  width:88px;
  height:88px;
  object-fit:contain;
}
.split-headline{
  margin:0;
  text-align:center;
  font:800 clamp(1rem, 2vw, 1.45rem)/1.25 Fraunces,Georgia,serif;
  letter-spacing:-.02em;
  color:var(--cream);
  text-wrap:balance;
  max-width:22ch;
}
.split-phone{
  justify-self:end;
  font:600 14px/1.3 Inter,system-ui,sans-serif;
  color:var(--cream);
  letter-spacing:.02em;
  min-height:44px;
  display:inline-flex;
  align-items:center;
}
.split-phone:hover{text-decoration:underline}

body.split-page a.both-btn{
  position:absolute;
  z-index:4;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:100px;
  padding:25px 55px;
  /* Inverted fill: terracotta over the green Buying side, green over
     the terracotta Selling side, hard-stopped on the page seam. */
  background-color:var(--green);
  background-image:
    linear-gradient(
      var(--seam-angle),
      transparent calc(50% - 1px),
      rgba(255,253,248,.75) calc(50% - 1px),
      rgba(255,253,248,.75) calc(50% + 1px),
      transparent calc(50% + 1px)
    ),
    linear-gradient(
      var(--seam-angle),
      var(--terra) 50%,
      var(--green) 50%
    );
  color:var(--cream);
  text-decoration:none;
  font:800 2.125rem/1.1 Fraunces,Georgia,serif;
  letter-spacing:-.02em;
  text-shadow:0 1px 2px rgba(32,55,47,.5);
  border:2px solid var(--cream);
  border-radius:8px;
  box-shadow:0 12px 32px rgba(31,42,36,.28);
  white-space:nowrap;
  transition:box-shadow .2s ease, filter .2s ease;
}
body.split-page a.both-btn .both-and{
  display:inline-block;
  letter-spacing:.14em;
  padding:0 .12em;
  margin:0 .18em;
}
body.split-page a.both-btn:hover,
body.split-page a.both-btn:focus-visible{
  color:var(--cream);
  box-shadow:0 16px 38px rgba(31,42,36,.36);
  background-image:
    linear-gradient(
      var(--seam-angle),
      transparent calc(50% - 1px),
      rgba(255,253,248,.85) calc(50% - 1px),
      rgba(255,253,248,.85) calc(50% + 1px),
      transparent calc(50% + 1px)
    ),
    linear-gradient(
      var(--seam-angle),
      var(--terra-deep) 50%,
      var(--deep) 50%
    );
}
body.split-page a.both-btn:focus-visible{
  outline:3px solid var(--cream);
  outline-offset:4px;
}

@media (max-width:800px){
  body.split-page{height:auto;min-height:100dvh;overflow:auto}
  .split-stage{
    height:100dvh;
    min-height:100dvh;
    /* Seam from (0, 54%) to (100%, 46%). Vector (W, -0.08H);
       perpendicular downward is (0.08H, W). */
    --seam-angle:atan2(8cqh,-100cqw);
  }
  .split-buy{clip-path:polygon(0 0, 100% 0, 100% 46%, 0 54%)}
  .split-sell{clip-path:polygon(0 54%, 100% 46%, 100% 100%, 0 100%)}
  .split-seam{
    inset:0;
    left:auto;
    right:auto;
    top:auto;
    height:auto;
    transform:none;
    background:linear-gradient(
      var(--seam-angle),
      transparent calc(50% - 1px),
      var(--seam-line) calc(50% - 1px),
      var(--seam-line) calc(50% + 1px),
      transparent calc(50% + 1px)
    );
  }
  .split-chrome{
    grid-template-columns:1fr 1fr;
    grid-template-areas:"logo phone" "headline headline";
    padding:14px 16px 0;
    gap:8px 12px;
  }
  .split-logo{grid-area:logo}
  .split-logo img{width:64px;height:64px}
  .split-headline{grid-area:headline;justify-self:center;font-size:1.15rem;max-width:18ch}
  .split-phone{grid-area:phone;font-size:13px}
  .split-buy .split-copy{
    left:50%;
    top:30%;
  }
  .split-sell .split-copy{
    left:50%;
    top:76%;
  }
  .split-label{font-size:clamp(3.4rem, 18vw, 5.5rem)}
  .split-hint{opacity:.85;transform:none;font-size:12px;letter-spacing:.06em}
  body.split-page a.both-btn{
    min-height:80px;
    padding:20px 35px;
    font-size:1.75rem;
    max-width:calc(100% - 24px);
  }
}

@media (prefers-reduced-motion:reduce){
  .split-pane,
  .split-hint,
  body.split-page a.both-btn{transition:none}
}

body.split-page .funnel-footer{
  flex:none;
  margin:0;
  background:var(--green);
  color:var(--cream);
}
body.split-page .funnel-footer a{color:var(--cream)}
body.split-page .funnel-footer .legal p{color:var(--cream)}
