@font-face{font-family:Inter;src:url('Inter-regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Inter;src:url('Inter-medium.ttf') format('truetype');font-weight:600 800;font-display:swap}

:root {
  --paper: #faf5f0; --ink: #161616; --muted: #676661; --line: #dedbd5;
  --tertiary-color: #f0ebe4; --font-family: Inter, Arial, sans-serif;
  font-family: var(--font-family); color: var(--ink); background: var(--paper);
  font-synthesis: none; -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, ul, figure { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 45px; }
body { line-height: 1.65; }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
a:hover { text-decoration: underline; }
button, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.wrap { width: min(88%, 1240px); margin-inline: auto; }
h1, h2, h3 { font-weight: 400; line-height: 1.15; letter-spacing: -.045em; }
h2 { font-size: 32px; }
.quiet-label { font-size: 11px; color: var(--muted); }
.text-link { padding: 0; border: 0; background: none; font-size: 13px; text-decoration: underline; text-decoration-color: #aaa49e; text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: var(--ink); }
.skip-link { position: fixed; z-index: 50; left: 20px; top: -80px; padding: 12px; background: white; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* A short introduction with an unboxed, full illustration. */
.site-header { border-bottom: 1px solid var(--line); }
nav { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; }
.identity { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; letter-spacing: -.025em; white-space: nowrap; }
.identity-avatar { width: 34px; height: 34px; flex: 0 0 auto; object-fit: contain; }
nav ul { display: flex; list-style: none; padding: 0; gap: 32px; font-size: 13px; }
#nav-hamburger { display: none; }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 35px; padding-block: 60px 72px; }
.hero h1 { font-size: clamp(66px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -.06em; }
.hero-description { margin-top: 25px; max-width: 460px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.hero-avatar { display: flex; align-items: center; justify-content: center; }
.hero-avatar img { width: 100%; max-width: 470px; height: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; margin-top: 30px; min-height: 45px; padding: 11px 21px; border: 1px solid var(--ink); border-radius: 6px; background: var(--ink); color: white; font-size: 12px; transition: background .2s; }
.button:hover { background: #363531; text-decoration: none; }

/* Every project has the same hierarchy, without repeated CTAs. */
.work { padding-bottom: 96px; }
.work > h2 { text-align: center; margin-bottom: 42px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 56px; }
.project-image { display: flex; align-items: center; justify-content: center; aspect-ratio: 1.46; overflow: hidden; background: #ece7df; border-radius: 6px; }
.project-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.project-image:hover img { transform: scale(1.02); }
.inact-image { padding: 18px; background: #e7ebe5; }
.project .quiet-label { margin-top: 21px; }
.project h3 { font-size: 27px; margin-top: 7px; }
.project > p:not(.quiet-label) { max-width: 440px; margin-top: 10px; font-size: 14px; line-height: 1.75; color: var(--muted); }

.about-section { border-top: 1px solid var(--line); padding-block: 70px; }
.about-layout { display: grid; grid-template-columns: .9fr 1.4fr; gap: 64px; align-items: center; max-width: 1080px; margin-inline: auto; }
.about-portrait { align-self: center; }
.about-avatar { width: 100%; max-width: 370px; margin: 0; transform: scaleX(-1); }
.about-copy h2 { margin-bottom: 26px; }
.about-copy p { font-size: 15px; line-height: 1.85; color: var(--muted); margin-bottom: 20px; }
.about-copy p:last-of-type { margin-bottom: 0; }
.about-links { display: flex; gap: 27px; margin-top: 27px; }
.contact { text-align: center; border-top: 1px solid var(--line); padding-block: 72px 65px; }
.contact h2 { font-size: clamp(34px, 4vw, 49px); }
.contact-email { display: inline-block; margin-top: 21px; color: var(--muted); font-size: 17px; overflow-wrap: anywhere; }
.contact-bottom { display: flex; justify-content: center; gap: 27px; margin-top: 25px; color: var(--muted); font-size: 12px; }
.contact-bottom .text-link { font-size: 12px; }
footer { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; border-top: 1px solid var(--line); padding: 24px 0 36px; font-size: 11px; color: var(--muted); }
footer > div { margin-left: auto; display: flex; gap: 25px; }
.preview-label { width: 100%; font-size: 10px; }

/* A download is an explicit choice, not an unexpected navigation. */
.cv-dialog { width: min(420px, calc(100% - 40px)); margin: auto; padding: 30px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); box-shadow: 0 18px 70px #0002; }
.cv-dialog::backdrop { background: #16161660; }
.cv-dialog h2 { font-size: 28px; }
.cv-dialog p { margin-top: 12px; color: var(--muted); font-size: 14px; }
.cv-dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 24px; margin-top: 32px; }
.cv-dialog-actions .button { margin-top: 0; }
.cv-cancel { min-height: 44px; padding: 8px 0; border: 0; background: none; font-size: 12px; }
.cv-cancel:hover { text-decoration: underline; text-underline-offset: 4px; }
body:has(#cv-dialog[open]) { overflow: hidden; }

/* Existing chatbot, with a small avatar-led entry point. */
.chat-toggle-btn { position: fixed; right: 22px; bottom: 20px; z-index: 20; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 6px; padding: 7px 13px 7px 8px; background: var(--paper); font-size: 11px; }
.chat-toggle-btn img { width: 29px; height: 29px; object-fit: contain; }
.chatBot { display: none; position: fixed; inset: auto 24px 24px auto; z-index: 40; width: min(480px, calc(100% - 32px)); height: min(650px, calc(100dvh - 48px)); grid-template-rows: auto minmax(0,1fr) auto; border: 1px solid #c5c0b9; border-radius: 9px; background: var(--paper); box-shadow: 0 12px 60px #0002; }
.chatBot.open { display: grid; }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; border-bottom: 1px solid var(--line); }
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-header-avatar { width: 36px; height: 36px; object-fit: contain; }
.chat-header-name { display: block; font-size: 15px; }
.chat-header-status { display: block; font-size: 11px; color: var(--muted); }
#chat-close { border: 0; background: none; font-size: 12px; padding: 10px; text-decoration: underline; }
.chatbox { overflow-y: auto; list-style: none; padding: 22px; }
.chat { display: flex; align-items: start; gap: 10px; margin-bottom: 20px; font-size: 13px; line-height: 1.7; }
.chat-outgoing { justify-content: end; }
.assistant-avatar { width: 28px; height: 28px; object-fit: contain; margin-right: 9px; }
.chat-incoming > div { min-width: 0; }
.bubble { padding: 12px 14px; border-radius: 6px; background: #eeeae3; }
.chat-outgoing .bubble { background: var(--ink); color: white; }
.bubble a { text-decoration: underline; }
.chat-example-btns { display: grid; gap: 7px; margin: 15px 0 22px; }
.chat-example-btn { padding: 10px 12px; text-align: left; background: transparent; border: 1px solid #bcb6ae; border-radius: 5px; font-size: 11px; line-height: 1.5; }
.chat-example-btn:hover { background: #e9e4db; }
.chat-input { display: flex; gap: 12px; border-top: 1px solid var(--line); padding: 16px; }
.chat-input textarea { min-width: 0; resize: none; flex: 1; border: 0; background: transparent; padding: 8px; font-size: 13px; }
.chat-input button { border: 0; background: var(--ink); color: white; border-radius: 5px; padding: 0 17px; font-size: 12px; }

@media(max-width:800px) {
  .hero { padding-block: 54px 62px; gap: 20px; }
  .hero h1 { font-size: 64px; }
  .hero-description { font-size: 15px; }
  .hero-description br { display: none; }
  .project-grid { column-gap: 25px; row-gap: 40px; }
  .about-layout { gap: 40px; }
  .about-avatar { max-width: 300px; }
}
@media(max-width:600px) {
  html { scroll-padding-top: 28px; }
  .wrap { width: 88%; }
  nav { min-height: 79px; gap: 16px; }
  .identity { font-size: 13px; gap: 7px; }
  .identity-avatar { width: 28px; height: 28px; }
  nav ul { gap: 18px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 20px; padding-block: 42px 42px; text-align: center; }
  .hero h1 { font-size: clamp(53px, 14vw, 72px); }
  .hero h1 br { display: none; }
  .hero-description { max-width: 350px; margin: 19px auto 0; font-size: 14px; }
  .hero .button { margin-top: 23px; }
  .hero-avatar img { width: min(75%, 280px); }
  h2 { font-size: 28px; }
  .work > h2 { margin-bottom: 30px; }
  .project-grid { grid-template-columns: 1fr; gap: 38px; }
  .project .quiet-label { margin-top: 17px; }
  .project h3 { font-size: 26px; }
  .project > p:not(.quiet-label) { font-size: 13px; margin-top: 8px; }
  .inact-image { padding: 18px; }
  .work { padding-bottom: 55px; }
  .about-section { padding-block: 46px; }
  .about-layout { grid-template-columns: 110px minmax(0, 1fr); gap: 20px 18px; align-items: center; }
  .about-portrait { grid-column: 1; grid-row: 1; width: 110px; }
  .about-avatar { max-width: 100%; }
  .about-copy { display: contents; }
  .about-copy h2 { grid-column: 2; grid-row: 1; margin-bottom: 0; }
  .about-copy p { grid-column: 1 / -1; font-size: 14px; margin-bottom: 0; }
  .about-links { grid-column: 1 / -1; margin-top: 6px; }
  .contact { padding-block: 46px 42px; }
  .contact h2 { font-size: 34px; }
  .contact-email { font-size: 14px; margin-top: 17px; }
  footer { padding-bottom: 95px; }
  .chat-toggle-btn { right: 16px; bottom: 16px; }
  .chatBot { right: 16px; bottom: 16px; height: min(650px, calc(100dvh - 32px)); }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none!important; transition: none!important; }
}
