:root { --ink:#2b211b; --paper:#f3eadb; --sand:#d3b894; --serif:"Instrument Serif",Georgia,serif; --body:Inter,system-ui,sans-serif; }
*,*::before,*::after { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--paper); color:var(--ink); font:400 1rem/1.55 var(--body); }
a { color:inherit; text-underline-offset:.23em; }
button,summary { cursor:pointer; }
button,input { font:inherit; }
[hidden] { display:none!important; }
.site-header { background:var(--ink); color:var(--paper); }
.header-inner,.profile-inner { display:flex; justify-content:space-between; align-items:center; }
.header-inner { height:64px; max-width:1500px; margin:auto; padding:0 clamp(20px,5vw,80px); }
.brand img { width:124px; height:auto; display:block; }
.nav { list-style:none; padding:0; margin:0; font-size:.85rem; }
.opening { position:relative; isolation:isolate; height:calc(100svh - 64px); min-height:490px; overflow:hidden; background:#e9e7dc; text-align:center; }
.landscape,.light { position:absolute; inset:0; pointer-events:none; }
.landscape { transform:perspective(1200px) rotateY(var(--tilt,0deg)) translateY(var(--pan,0px)) scale(var(--scale,1.012)); transition:transform .35s ease-out; }
.landscape img { width:100%; height:100%; object-fit:cover; object-position:50% 54%; display:block; }
.light { background:linear-gradient(112deg,rgba(248,219,169,.14),transparent 60%),linear-gradient(to top,rgba(38,31,23,.56),transparent 23%); }
.opening-type { position:absolute; inset:clamp(22px,5vh,85px) 12px auto; }
h1,h2,p { margin:0; }
h1,h2,.email { font-family:var(--serif); font-weight:400; }
h1 { font-size:clamp(4rem,min(9vw,13vh),9rem); line-height:1; letter-spacing:-.043em; }
h1 em { font-weight:400; }
.opening-type p { font-size:clamp(.78rem,1.25vw,1rem); margin:.85em 0 0; }
.explore { position:absolute; bottom:25px; left:50%; transform:translateX(-50%); white-space:nowrap; color:#fff8eb; background:#34291ee0; border:1px solid #ddccb28a; padding:.64em 1.25em; border-radius:30px; font-size:.85rem; text-decoration:none; }
.explore span { margin-left:.65em; }
h2 { font-size:clamp(2.5rem,5vw,4.8rem); letter-spacing:-.035em; line-height:1.05; }
.connections p,.role { font-size:.9rem; }
.profile { background:linear-gradient(150deg,#eadbc3,#d7bfa0); padding:clamp(40px,6vw,90px) clamp(20px,6vw,90px); border-radius:50% 12% 0 0 / 24px 8px 0 0; }
.profile-inner { align-items:start; gap:36px; max-width:1080px; margin:auto; }
.profile-inner>div { flex:1; min-width:0; }
.profile h2 { font-size:clamp(2.5rem,4vw,4rem); }
.role { margin:8px 0 15px; }
.experience { max-width:42ch; color:#514031; }
.email { font-size:clamp(1.5rem,2.6vw,2.5rem); }
.connections p { margin:.6em 0; }
.site-chat { margin:18px 0; }
.site-chat summary { width:fit-content; padding:5px 14px; border:1px solid #80684e; border-radius:100px; }
.chat-panel { margin-top:12px; padding:16px; border-radius:10px; color:var(--paper); background:var(--ink); }
.copyright { color:#594836; }
@media(max-aspect-ratio:4/5) {
  .landscape img { position:absolute; width:max(100%,min(195vw,105svh)); height:auto; left:50%; top:53%; transform:translate(-50%,-50%); mask-image:linear-gradient(transparent,#000 12%,#000 89%,transparent); }
  .landscape { background:linear-gradient(#ebe8dd 32%,#d7d1c0 60%,#9d9d8f 85%); }
  .opening-type { top:8%; }
}
@media(max-width:700px) {
  .profile-inner { display:block; }
  .connections { margin-top:28px; }
}
@media(prefers-reduced-motion:no-preference) {
  .landscape img { animation:expose 1s steps(7,end) both; }
  @keyframes expose { from { filter:brightness(.82) saturate(.7); } to { filter:none; } }
  .light { animation:daylight 3s ease-out both; }
  @keyframes daylight { from { opacity:.45; } to { opacity:1; } }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .landscape { transform:none; transition:none; } }
#chat-log { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow: auto; }
#chat-log li { margin-bottom: 8px; overflow-wrap: anywhere; }
#chat-form label { display: block; }
#chat-form input { width: min(100%, 350px); padding: 7px; font: inherit; }
.chat-panel button { font: inherit; cursor: pointer; margin-top: 5px; }
.chat-actions { display: flex; gap: 8px; margin: 8px 0; }
#chat-draft { white-space: pre-wrap; overflow-wrap: anywhere; }

.chat-panel button, .chat-panel input { background: #f6edde; color: #2b211b; border: 1px solid #d3b894; border-radius: 4px; }
.chat-panel button { padding: 5px 10px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.explore { display:grid; place-items:center; width:46px; height:46px; padding:0; font-size:1.35rem; }
.explore span { margin:0; }
.email-options { margin:.55rem 0 1rem; font-size:.9rem; }
.email-options summary { width:fit-content; }
.email-options ul { padding-left:1.25rem; margin:.4rem 0; }
.email-options li { padding:.2rem 0; }
@media(max-width:460px) { .opening-type h1 { font-size:clamp(3.05rem,12.6vw,4rem); } }
