/* Redesign preview: one founder, four objects.
   The portrait holds the left of the page and points at the work; each project
   is anchored by its object from founder-world-v2 (spade, structure, heart, cigar). */
@font-face{font-family:Hanken;src:url('../fonts/hanken-grotesk-latin.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:'Geist Mono';src:url('../fonts/geist-mono-latin.woff2') format('woff2');font-weight:100 900;font-display:swap}

:root{
  color-scheme:dark;
  --bg:#130d12;--ink:#f7f0e9;--soft:#e3d7dc;--muted:#c4b5bd;--line:#f7f0e924;
  --violet:#b98cff;--lilac:#d9c2ff;--brass:#d8b27a;
  font-family:Hanken,system-ui,sans-serif;color:var(--ink);background:var(--bg)
}
*{box-sizing:border-box}
html{scrollbar-color:#5d4559 var(--bg)}
body{margin:0;min-width:280px;font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased}
::selection{background:var(--violet);color:#170a24}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
a:focus-visible{outline:2px solid var(--lilac);outline-offset:3px;border-radius:4px}
.skip{position:absolute;left:16px;top:-80px;z-index:10;padding:12px 16px;background:var(--ink);color:var(--bg);font-weight:650}.skip:focus{top:12px}

.stage{display:grid;grid-template-columns:minmax(0,1fr) clamp(250px,24vw,340px)}

/* Compact profile rail leaves the main column to the projects. */
.profile {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 36px;
  align-self: start;
  margin: 36px 16px 0 0;
  padding: 14px;
  border-left: 1px solid var(--line);
}
.portrait {
  width: min(100%, 292px);
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: 60% 46%;
  border-radius: 6px;
}
.profile-copy { padding-top: 18px; }
.role{display:flex;align-items:center;gap:10px;margin:0;font-size:15px;font-weight:650;color:var(--lilac)}
.role img{width:22px;height:22px}
h1{margin:10px 0 12px;font-size:clamp(29px,2.8vw,42px);line-height:.95;font-weight:720;letter-spacing:-.04em;text-wrap:balance}
.intro{margin:0;max-width:34ch;font-size:17px;color:var(--soft)}
.book{display:flex;align-items:center;gap:12px;max-width:440px;min-height:58px;margin-top:24px;padding:0 20px;border-radius:6px;background:var(--violet);color:#170a24;font-size:17px;font-weight:720;box-shadow:0 12px 26px -12px #000000cc;transition:background-color .18s ease-out,transform .18s ease-out}
.book svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.book .go{margin-left:auto;transition:transform .18s ease-out}
.book:hover{background:#cba8ff}.book:hover .go{transform:translateX(4px)}
.book:active{background:#a676f0;transform:translateY(1px)}
.book:focus-visible{outline-offset:4px}
.socials{display:flex;flex-wrap:wrap;gap:0 22px;margin-top:10px}
.socials a{min-height:44px;display:inline-flex;align-items:center;font-size:14px;color:var(--soft);text-decoration:underline;text-decoration-color:#f7f0e955;text-underline-offset:5px;transition:color .15s}
.socials a:hover{color:var(--ink);text-decoration-color:var(--lilac)}

/* Work column */
.work{grid-column:1;grid-row:1;max-width:1100px;padding:64px clamp(28px,5vw,80px) 28px}
#projects-heading{margin:0 0 6px;font-size:30px;line-height:1.2;font-weight:680;letter-spacing:-.025em}

.project{--acc:var(--lilac);display:grid;grid-template-columns:152px minmax(0,1fr);grid-template-areas:"plate head" "plate copy" "plate services" "plate actions";column-gap:32px;align-content:start;padding:26px 0}
.p-bitlab{--acc:#e9e6f2}.p-caesar{--acc:#e2c189}.p-cigars{--acc:#dfac8c}

/* The object plate: a crop of founder-world-v2, lit when the project is in use. */
.plate{grid-area:plate;align-self:start;aspect-ratio:.72;position:relative;overflow:hidden;border-radius:3px;background:#1d141b;box-shadow:0 22px 40px -22px #000,inset 0 0 0 1px #f7f0e914}
.plate:before{content:'';position:absolute;inset:0;background:url('founder-world-v2.webp') no-repeat;background-size:var(--s) auto;background-position:var(--x) var(--y);filter:brightness(.82) saturate(.95);transition:transform .5s cubic-bezier(.2,.7,.2,1),filter .5s cubic-bezier(.2,.7,.2,1)}
.plate:after{content:'';position:absolute;inset:0;background:radial-gradient(120% 90% at 50% 40%,#0000 55%,#130d12b8)}
.project:hover .plate:before,.project:focus-within .plate:before{transform:scale(1.06);filter:brightness(1.08) saturate(1.05)}
.p-leadsace .plate{--s:465%;--x:0%;--y:67%}
.p-bitlab .plate{--s:530%;--x:0%;--y:0%}
.p-caesar .plate{--s:530%;--x:98.7%;--y:32%}
.p-cigars .plate{--s:394%;--x:96.9%;--y:97.5%}

.head{grid-area:head;display:flex;align-items:center;gap:12px;min-height:40px}
.head h3{margin:0;font-size:28px;line-height:1.1;font-weight:700;letter-spacing:-.03em}
.mark{width:34px;height:34px;flex:none;object-fit:contain}
.p-caesar .mark{width:38px;height:38px}
.p-cigars .mark{width:42px;height:42px;filter:brightness(1.55) saturate(.85)}
.wordmark{width:auto;height:32px;filter:brightness(0) invert(1)}
.title{margin-left:auto;padding-left:12px;font-size:13px;font-weight:650;color:var(--acc);white-space:nowrap}
.project>p{grid-area:copy;margin:10px 0 0;max-width:58ch;font-size:16px;color:var(--soft)}
.services{grid-area:services;display:flex;flex-wrap:wrap;gap:4px 22px;margin:10px 0 0;padding:0;list-style:none;font-size:14px;color:var(--muted)}
.services li:before{content:'';display:inline-block;width:5px;height:5px;margin:0 9px 2px 1px;background:var(--acc);transform:rotate(45deg)}

.actions{grid-area:actions;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px;margin-top:18px}
.actions a{position:relative;display:flex;flex-direction:column;justify-content:center;min-height:64px;padding:10px 38px 10px 14px;border:1px solid #f7f0e92e;border-radius:4px;background:#f7f0e907;transition:background-color .18s ease-out,border-color .18s ease-out,transform .18s ease-out}
.actions a:after{content:'';position:absolute;right:13px;top:50%;width:18px;height:18px;margin-top:-9px;background:var(--acc);-webkit-mask:var(--icon) center/contain no-repeat;mask:var(--icon) center/contain no-repeat;--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E");transition:transform .18s ease-out}
.actions a[href^="tel:"]:after{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H4v4c0 7 6 13 13 13h4v-4l-5-2-2 2a14 14 0 0 1-6-6l2-2-2-5Z'/%3E%3C/svg%3E")}
.actions strong{font-size:15px;line-height:1.25;font-weight:650}
.actions span{margin-top:4px;font:450 11.5px/1.3 'Geist Mono',ui-monospace,monospace;color:var(--muted);overflow-wrap:anywhere}
.actions a:hover{background:#f7f0e912;border-color:var(--acc)}
.actions a:hover:after{transform:translateX(3px)}
.actions a[href^="tel:"]:hover:after{transform:rotate(-8deg)}
.actions a:active{background:#f7f0e91d;transform:translateY(1px)}
.actions a:focus-visible{outline-offset:2px}
.p-leadsace .actions a{border-color:#b98cff66;background:#b98cff12}
.p-leadsace .actions a:hover{background:#b98cff24;border-color:var(--lilac)}

.about{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 24px;margin-top:22px;padding-top:22px;border-top:1px solid var(--line)}
.about h2{margin:0;font-size:15px;font-weight:650}
.about ul{display:flex;flex-wrap:wrap;gap:4px 22px;margin:0;padding:0;list-style:none;font-size:14px;color:var(--muted)}
footer{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin-top:18px;font-size:13px;color:var(--muted)}
footer p{flex:1;margin:0}
.signature{display:flex;align-items:center;gap:8px;min-height:44px;color:var(--ink);font-weight:650;font-size:14px}
.signature img{width:20px;height:20px}
footer>a:last-child{display:flex;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:4px}

/* On narrow screens the profile becomes a short introduction. */
@media(max-width:980px) {
  .stage { display: block; }
  .profile {
    position: static;
    display: grid;
    grid-template-columns: minmax(70px, 116px) minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    margin: 0;
    padding: 24px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .profile-copy { padding-top: 0; }
  .book { max-width: 340px; }
  .work { margin: auto; padding: 24px; }
}
@media(max-width:620px){
  h1{font-size:clamp(24px,7vw,34px)}
  .profile{grid-template-columns:clamp(86px, 38vw, 160px) minmax(0,1fr);gap:12px;align-items:center}
  .profile .portrait{width:100%;}
  .book{margin-top:10px;min-height:44px;padding:6px 8px;gap:6px;font-size:13px;line-height:1.2}
  .book svg{width:16px;height:16px}
  .profile .socials{gap:0;margin-top:4px}
  .profile .socials a{min-width:36px}
  .book .go{display:none}
  .socials{gap:0 12px}
  .intro{font-size:16px}
  #projects-heading{font-size:26px}
  .project{grid-template-columns:62px minmax(0,1fr);grid-template-areas:"plate head" "copy copy" "services services" "actions actions";column-gap:16px;padding:22px 0}
  .head{flex-wrap:wrap;align-self:center;gap:4px 10px}
  .head h3{font-size:25px}
  .mark{width:28px;height:28px}.p-caesar .mark{width:30px;height:30px}.p-cigars .mark{width:34px;height:34px}
  .wordmark{height:28px}
  .title{flex-basis:100%;margin:0;padding:0}
  .project>p{margin-top:14px;font-size:15px}
  .services{display:grid;gap:2px;font-size:14px}
  .actions{grid-auto-flow:row;gap:6px;margin-top:14px}
  .actions a{min-height:50px;padding-block:9px}
  .actions span{display:none}
  .actions a[href^="tel:"] span{display:block;margin-top:2px}
}
@media(max-width:340px){
  .profile-copy,.work{padding-inline:16px}
  .project{grid-template-columns:48px minmax(0,1fr);column-gap:12px}
  .head h3{font-size:22px}
  .book{font-size:12px;padding-inline:7px}
  .actions strong{font-size:14px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}.project:hover .plate:before,.project:focus-within .plate:before{transform:none}}

.socials a { gap: 6px; }
.socials svg { width: 16px; height: 16px; flex: none; }

.socials { gap: 4px; }
.socials a { min-width: 44px; justify-content: center; }
.socials svg { width: 20px; height: 20px; }
.project-socials { grid-column: 2; }
@media (max-width: 620px) {
  .project-socials { grid-column: 1 / -1; }
}
