@font-face{
  font-family: "Ortica Linear";
  src: url("assets/fonts/OrticaLinear-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Ortica Linear";
  src: url("assets/fonts/OrticaLinear-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Ortica Linear";
  src: url("assets/fonts/OrticaLinear-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg:#ffffff;
  --surface:#f2f1ee;
  --text:#45523e;
  --muted:#6f7767;
  --border:#d9d6cf;
  --accent:#0d402d;
  --accent-2:#0f4d36;
  --nav-bg:#45523e;
  --nav-text:#ffffff;
  --card:#b0aca2;
  --shadow:0 10px 30px rgba(0,0,0,.12);
  --radius:14px;
  --nav-h:64px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Ortica Linear", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight:300;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

.container{
  width:min(1120px, 92vw);
  margin-inline:auto;
}

.section{
  padding:96px 0;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

h1,h2,h3{line-height:1.2; margin:0 0 12px}
h1{font-size: clamp(28px, 5vw, 42px); font-weight:700;}
h2{font-size: clamp(22px, 3.2vw, 30px); font-weight:700;}
h3{font-size: clamp(18px, 2.2vw, 22px); font-weight:700;}
p{margin:0 0 16px}
.lead{font-size: clamp(16px, 2.2vw, 18px); color:var(--muted); font-weight:300;}
.muted{color:var(--muted)}

.site-header{
  position:sticky; top:0; z-index:1000; height:var(--nav-h);
  background: var(--nav-bg);
  border-bottom: none;
  backdrop-filter: none;
}
.nav-wrap{display:flex; align-items:center; justify-content:space-between; height:var(--nav-h)}

.brand{
  color:var(--nav-text); font-weight:700; text-decoration:none; letter-spacing:.2px;
  padding:8px 0; transition:opacity .2s ease;
}
.brand:hover{opacity:.9}

.nav-toggle{
  display:none; background:transparent; border:0; width:42px; height:42px; border-radius:10px;
}
.nav-toggle .bar{display:block; width:26px; height:2px; margin:6px auto; background:#fff; border-radius:2px}

.nav-list{display:flex; align-items:center; gap:10px; list-style:none; margin:0; padding:0}
.nav-link{
  display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:10px; text-decoration:none;
  color:var(--nav-text); font-weight:400;
  letter-spacing:.2px;
  transition:background .2s ease, color .2s ease, transform .15s ease, border-color .2s ease;
}
.nav-link:hover{background:rgba(255,255,255,.14)}
.nav-link.active{outline:2px solid rgba(255,255,255,.6); outline-offset:2px}
.nav-link.resume{border:1px solid rgba(255,255,255,.35)}
.nav-link.resume:hover{border-color: rgba(255,255,255,.7); transform: translateY(-1px)}

.lang-switch{
  display:flex; align-items:center; gap:6px; padding:4px;
  border:1px solid rgba(255,255,255,.3); border-radius:12px;
  background: rgba(255,255,255,.08);
}
.lang-btn{
  display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border:0; background:transparent; color:var(--nav-text);
  border-radius:8px; cursor:pointer; font-weight:700; letter-spacing:.3px; transition:background .2s ease, transform .1s ease;
}
.lang-btn .flag{font-size:16px}
.lang-btn[aria-pressed="true"]{background: rgba(255,255,255,.16)}
.lang-btn:active{transform:scale(.98)}

.headline{margin-bottom:10px}

.quickfacts{
  margin:18px 0 0; padding:0; list-style:none; display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap:10px 18px
}
.quickfacts strong{color:var(--text); font-weight:400;}
.quickfacts span{color:var(--muted)}

.about-wrap {
  display: flex;
  align-items: center;
  gap: 40px;
}
.about-img img {
  max-width: 300px;
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.about-text { flex: 1; }

@media (max-width: 768px) {
  .about-wrap { flex-direction: column; text-align: center; }
  .about-img img { max-width: 200px; }
}

.chips{display:flex; flex-wrap:wrap; gap:10px; margin-top:14px}
.chip{
  padding:8px 12px; border-radius:999px; background: var(--surface);
  border:1px solid var(--border); font-weight:400; letter-spacing:.2px; color:var(--text);
}

.timeline{display:grid; gap:16px; margin-top:10px}
.timeline-item{
  padding:18px; border:1px solid var(--border); border-radius:var(--radius); background: var(--surface);
  box-shadow: var(--shadow); color:var(--text);
}
.tl-header{display:flex; flex-direction:column; gap:6px; margin-bottom:8px}
.tl-meta{color:var(--muted); font-size:14px; font-weight:300;}

.projects-grid{
  margin-top:12px;
  display:grid; gap:16px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.project-card{
  position: relative;
  display:flex;
  flex-direction: column;
  border:1px solid #9d998f;
  border-radius:var(--radius);
  background:#fff;
  color:var(--text);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow:hidden;
}

.project-card .thumb{
  position: relative;
  width:100%;
  aspect-ratio: 16 / 9;
  overflow:hidden;
  background:#000;
}
.project-card .thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter: grayscale(100%) saturate(0.6) contrast(1.05) brightness(0.95);
  transition: filter .25s ease, transform .25s ease;
}
.project-card:hover .thumb img{
  filter:none;
  transform: scale(1.03);
}

.pc-content{
  padding:12px 14px;
  background: transparent;
  color: var(--text);
  display:flex;
  align-items: baseline;
  gap:10px;
}
.pc-content h3{
  margin:0;
  font-size: clamp(18px, 2vw, 20px);
  font-weight:700;
}
.pc-meta{
  margin:0;
  font-size: clamp(13px, 1.6vw, 15px);
  color:#5f6959;
  font-weight:300;
}

.project-card:hover{
  transform: translateY(-4px) scale(1.01);
  border-color: #7f7b73;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
}

.project-card.featured{
  border-color:#7f7b73;
  box-shadow: 0 10px 32px rgba(0,0,0,.14);
}

.grid-break{
  grid-column: 1 / -1;
  height: 0;
  padding: 0;
  margin: 0;
}

.more-projects{
  margin-top: 14px;
  color: var(--muted);
}
.more-projects a{
  color: var(--text);
  text-decoration: none;
  border-bottom: none;
}
.more-projects a:hover{
  border-bottom-style: solid;
}

.project-card,
.project-card:link,
.project-card:visited,
.project-card:hover,
.project-card:focus,
.project-card:active{
  text-decoration: none;
}
.project-card h3,
.project-card .pc-meta{
  text-decoration: none;
}

.contact-list{list-style:none; padding:0; margin:10px 0 0; display:grid; gap:10px}
.contact-link{
  display:flex; align-items:center; gap:12px; padding:12px 14px; border:1px solid var(--border); border-radius:12px;
  text-decoration:none; color:var(--text); background: var(--surface);
  transition: background .2s ease, transform .15s ease, border-color .2s ease;
  font-weight:300;
}
.contact-link:hover{
  background: #e8e6df;
  border-color: #cbc7bf;
  transform: translateY(-2px);
}
.icon{width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6}

.site-footer{
  background: var(--nav-bg);
  color: var(--nav-text);
  border-top: none;
  padding:16px 0;
  font-size:13px;
  text-align:center;
  font-weight:400;
}

@media (max-width: 900px){
  .nav-toggle{display:inline-flex; align-items:center; justify-content:center}
  .nav-list{
    position:absolute; right:12px; top:calc(var(--nav-h) + 8px);
    background: var(--nav-bg); border:1px solid rgba(255,255,255,.25); border-radius:14px; padding:10px;
    display:none; flex-direction:column; gap:6px; min-width:260px;
  }
  .nav-list.open{display:flex}
  .lang-switch{align-self:stretch; justify-content:space-between}
}

@media (prefers-reduced-motion: reduce){
  *{animation:none!important; transition:none!important; scroll-behavior:auto!important}
}
