:root{
  --background:#FDFAF3; --foreground:#241E33; --card:#FFFFFF;
  --primary-foreground:#FDFAF3; --border:#E7E0D4; --muted:#F4F0E7;
  --coral:#E8542F; --plum:#8B3FA8; --mint:#BFEBD6; --sky:#C4DDF2;
  --butter:#F7E39B; --gallery:#F8F3E6;
  --font-display:"Fredoka",sans-serif; --font-body:"Nunito Sans",sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0;border-color:var(--border)}
html{scroll-behavior:smooth}
body{background:var(--background);color:var(--foreground);font-family:var(--font-body);-webkit-font-smoothing:antialiased}
section{scroll-margin-top:4.5rem}
::selection{background:var(--coral);color:var(--primary-foreground)}
a{text-decoration:none;color:inherit}
img{display:block}
.wrap{max-width:80rem;margin:0 auto;padding-left:1.25rem;padding-right:1.25rem}
@media(min-width:640px){.wrap{padding-left:2rem;padding-right:2rem}}

/* Header */
header{position:fixed;top:0;left:0;right:0;z-index:50;border-bottom:1px solid rgba(253,250,243,.15);background:rgba(36,30,51,.7);backdrop-filter:blur(12px);color:var(--primary-foreground)}
.header-inner{display:flex;height:4.5rem;align-items:center;justify-content:space-between}
.logo{font-family:var(--font-display);font-size:1.25rem;font-weight:600}
.logo span{color:var(--coral)}
.nav-desktop{display:none;align-items:center;gap:2rem;font-size:.875rem;font-weight:800}
.nav-link{position:relative;transition:color .18s}
.nav-link::after{content:"";position:absolute;left:0;right:0;bottom:-.45rem;height:2px;background:var(--coral);transform:scaleX(0);transition:transform .18s}
.nav-link:hover{color:var(--coral)}
.nav-link:hover::after{transform:scaleX(1)}
.header-contact{display:none;align-items:center;gap:.5rem;border-radius:.375rem;background:var(--primary-foreground);color:var(--foreground);padding:.65rem 1rem;font-size:.8rem;font-weight:900;transition:transform .18s}
.header-contact:hover{transform:translateY(-2px)}
.header-contact svg{width:1rem;height:1rem}
@media(min-width:768px){.nav-desktop{display:flex}}
@media(min-width:640px){.header-contact{display:inline-flex}}
.menu-btn{display:grid;width:2.5rem;height:2.5rem;cursor:pointer;place-items:center;border:1px solid rgba(253,250,243,.22);border-radius:.375rem;background:transparent;color:inherit}
.menu-btn svg{width:1.25rem;height:1.25rem}
@media(min-width:768px){.menu-btn{display:none}}
.mobile-nav{display:none;position:absolute;right:1.25rem;top:4.75rem;min-width:12rem;gap:.25rem;border-radius:.5rem;background:var(--card);color:var(--foreground);padding:.5rem;box-shadow:0 20px 40px -15px rgba(36,30,51,.4)}
.mobile-nav.open{display:grid}
.mobile-nav a{border-radius:.25rem;padding:.65rem .75rem;font-size:.85rem;font-weight:800}
.mobile-nav a:hover{background:var(--muted)}

/* Hero */
.hero{position:relative;min-height:92svh;overflow:hidden;background:var(--foreground)}
.hero>img{position:absolute;inset:0;height:100%;width:100%;object-fit:cover;object-position:center 38%;animation:cinematic 16s ease-in-out infinite}
.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(36,30,51,.94) 0%,rgba(36,30,51,.68) 55%,rgba(36,30,51,.25) 100%),linear-gradient(0deg,rgba(36,30,51,.7),transparent 60%)}
.hero-content{position:relative;z-index:10;display:flex;min-height:92svh;flex-direction:column;justify-content:flex-end;padding-top:8rem;padding-bottom:4rem}
@media(min-width:1024px){.hero-content{padding-bottom:5rem}}
.hero-kicker{display:inline-flex;width:fit-content;border-left:3px solid var(--coral);padding-left:.8rem;font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.14em;color:var(--primary-foreground)}
h1{margin-top:1.25rem;max-width:64rem;font-family:var(--font-display);font-size:clamp(3rem,8vw,6rem);font-weight:600;line-height:.98;color:var(--primary-foreground)}
h1 span{color:var(--coral)}
.hero-sub{margin-top:1.5rem;max-width:36rem;font-size:1.125rem;font-weight:600;line-height:1.6;color:rgba(253,250,243,.75)}
@media(min-width:640px){.hero-sub{font-size:1.25rem}}
.hero-actions{margin-top:2rem;display:flex;flex-wrap:wrap;gap:.75rem}
.button-coral{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border-radius:.375rem;background:var(--coral);color:var(--primary-foreground);padding:.9rem 1.3rem;font-weight:900;box-shadow:0 14px 28px -12px rgba(232,84,47,.72);transition:transform .18s}
.button-coral:hover{transform:translateY(-2px)}
.button-glass{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border:1px solid rgba(253,250,243,.28);border-radius:.375rem;background:rgba(253,250,243,.09);color:var(--primary-foreground);padding:.9rem 1.3rem;font-weight:900;backdrop-filter:blur(10px);transition:background .18s}
.button-glass:hover{background:rgba(253,250,243,.16)}
.button-coral svg,.button-glass svg{width:1rem;height:1rem}
.hero-note{margin-top:3rem;display:flex;align-items:center;gap:.75rem;font-size:.75rem;font-weight:800;text-transform:uppercase;color:rgba(253,250,243,.55)}
.hero-note::before{content:"";display:block;height:1px;width:3rem;background:rgba(253,250,243,.35)}
.photo-note{position:absolute;bottom:1.25rem;right:1.25rem;z-index:20;border-radius:.375rem;background:rgba(255,255,255,.88);padding:.5rem .7rem;font-size:.62rem;font-weight:900;text-transform:uppercase;color:var(--foreground);backdrop-filter:blur(10px)}
@media(max-width:639px){
  .hero-shade{background:linear-gradient(0deg,rgba(36,30,51,.95) 0%,rgba(36,30,51,.48) 80%,rgba(36,30,51,.65) 100%)}
  .photo-note{right:auto;left:1.25rem}
}

/* Sections */
.section{padding-top:5rem;padding-bottom:5rem}
@media(min-width:1024px){.section{padding-top:7rem;padding-bottom:7rem}}
.section-kicker{margin-bottom:.75rem;font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.14em;color:var(--coral)}
.section-title{font-family:var(--font-display);font-size:clamp(2.35rem,5vw,3.6rem);line-height:1.03;font-weight:600}

/* O mnie */
.about-grid{display:grid;gap:3rem}
@media(min-width:1024px){.about-grid{grid-template-columns:repeat(12,1fr)}.about-left{grid-column:span 4}.about-right{grid-column:6/span 7}}
.portrait{margin-top:2rem;width:11rem;border-radius:.375rem;background:var(--gallery);object-fit:cover}
@media(min-width:640px){.portrait{width:14rem}}
.about-lead{font-family:var(--font-display);font-size:clamp(1.7rem,3vw,2.25rem);line-height:1.25;font-weight:500}
.about-text{margin-top:1.5rem;max-width:42rem;font-size:1rem;font-weight:600;line-height:1.6;color:rgba(36,30,51,.6)}
.stats{margin-top:2.5rem;display:grid;gap:1px;overflow:hidden;border-radius:.375rem;border:1px solid var(--border);background:var(--border)}
@media(min-width:640px){.stats{grid-template-columns:repeat(3,1fr)}}
.about-stat{display:flex;min-height:10rem;flex-direction:column;justify-content:flex-end;background:var(--card);padding:1.35rem}
.about-stat svg{margin-bottom:auto;width:1.3rem;height:1.3rem;color:var(--coral)}
.about-stat strong{font-family:var(--font-display);font-size:1.05rem}
.about-stat span{margin-top:.25rem;font-size:.7rem;font-weight:800;color:rgba(36,30,51,.48)}

/* Projekty */
.projects{background:var(--foreground);color:var(--primary-foreground)}
.projects-head{display:flex;flex-direction:column;justify-content:space-between;gap:1.5rem}
@media(min-width:640px){.projects-head{flex-direction:row;align-items:flex-end}}
.projects-head .section-title{max-width:36rem}
.text-link-light{display:inline-flex;align-items:center;gap:.5rem;width:fit-content;border-bottom:1px solid rgba(253,250,243,.35);padding-bottom:.25rem;font-size:.8rem;font-weight:900}
.text-link-light svg{width:1rem;height:1rem}
.projects-grid{margin-top:3rem;display:grid;gap:1px;overflow:hidden;border-radius:.375rem;background:rgba(253,250,243,.15)}
@media(min-width:768px){.projects-grid{grid-template-columns:repeat(2,1fr)}}
.project-card{min-height:23rem;background:var(--foreground);padding:clamp(1.5rem,4vw,2.5rem);transition:background .22s}
.project-card:hover{background:#312B44}
.project-top{display:flex;align-items:flex-start;justify-content:space-between}
.project-icon{display:grid;width:3.25rem;height:3.25rem;place-items:center;border-radius:.375rem}
.project-icon svg{width:1.5rem;height:1.5rem}
.tone-coral{background:var(--coral);color:var(--primary-foreground)}
.tone-plum{background:var(--plum);color:var(--primary-foreground)}
.tone-mint{background:var(--mint);color:var(--foreground)}
.tone-sky{background:var(--sky);color:var(--foreground)}
.project-num{font-family:var(--font-display);font-size:.875rem;color:rgba(253,250,243,.35)}
.project-card h3{margin-top:2.5rem;font-family:var(--font-display);font-size:1.875rem;font-weight:600}
.project-card p{margin-top:.75rem;max-width:28rem;font-weight:600;line-height:1.6;color:rgba(253,250,243,.55)}
.project-card a{margin-top:2rem;display:inline-flex;align-items:center;gap:.5rem;font-size:.875rem;font-weight:900}
.project-card a svg{width:1rem;height:1rem;transition:transform .18s}
.project-card a:hover svg{transform:translate(2px,-2px)}
.project-next{display:flex;min-height:auto;align-items:center;justify-content:space-between;gap:2rem;background:var(--butter);color:var(--foreground)}
.project-next:hover{background:var(--butter)}
@media(min-width:768px){.project-next{grid-column:span 2}}
.project-next .soon{font-size:.75rem;font-weight:800;text-transform:uppercase;color:rgba(36,30,51,.45)}
.project-next h3{margin-top:.75rem}
.project-next p{margin-top:.5rem;color:rgba(36,30,51,.55)}
.project-next>svg{width:2.25rem;height:2.25rem;color:var(--plum);flex-shrink:0}

/* Tajlandia */
.thailand{background:var(--gallery)}
.thailand-head{max-width:42rem}
.thailand-head p{margin-top:1rem;font-weight:600;line-height:1.6;color:rgba(36,30,51,.6)}
.gallery{margin-top:2.5rem;display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}
@media(min-width:640px){.gallery{gap:1.25rem}}
@media(min-width:768px){.gallery{grid-template-columns:repeat(4,1fr)}}
.gallery-item{position:relative;overflow:hidden;min-height:12rem;border-radius:.5rem;background:var(--muted)}
.gallery-item.big{grid-column:span 2;grid-row:span 2}
.gallery-item img{height:100%;width:100%;object-fit:cover;transition:transform .7s cubic-bezier(.2,.8,.2,1)}
.gallery-item:hover img{transform:scale(1.04)}
.gallery-item figcaption{position:absolute;left:.75rem;bottom:.75rem;border-radius:.25rem;background:rgba(255,255,255,.88);padding:.45rem .65rem;font-size:.6rem;font-weight:900;text-transform:uppercase;backdrop-filter:blur(8px)}
.quote-tile{display:flex;min-height:12rem;flex-direction:column;border-radius:.5rem;background:var(--butter);padding:1.4rem}
.quote-tile .mark{font-family:var(--font-display);font-size:3rem;color:var(--plum);line-height:1}
.quote-tile p{font-family:var(--font-display);font-size:1.25rem;font-weight:600;line-height:1.2}
.quote-tile span.label{margin-top:auto;font-size:.75rem;font-weight:800;text-transform:uppercase;color:rgba(36,30,51,.45)}

/* Kontakt */
.contact-panel{position:relative;overflow:hidden;border-radius:.5rem;background:var(--foreground);color:var(--primary-foreground);padding:clamp(2rem,6vw,4rem);box-shadow:0 40px 80px -45px rgba(36,30,51,.75)}
.contact-panel::after{content:"";position:absolute;width:16rem;height:16rem;right:-6rem;top:-8rem;border:3rem solid rgba(232,84,47,.3);border-radius:999px}
.contact-grid{position:relative;z-index:10;display:grid;gap:3rem}
@media(min-width:1024px){.contact-grid{grid-template-columns:1.2fr .8fr;align-items:flex-end}}
.contact-kicker{font-size:.75rem;font-weight:800;text-transform:uppercase;color:rgba(253,250,243,.55)}
.contact-grid h2{margin-top:1.25rem;max-width:13ch;font-family:var(--font-display);font-size:clamp(2.25rem,5vw,3.75rem);font-weight:600;line-height:1.1}
.contact-grid .lead{margin-top:1.25rem;max-width:32rem;font-weight:600;line-height:1.6;color:rgba(253,250,243,.6)}
.contact-links{display:grid;gap:.75rem}
.contact-link{display:flex;align-items:center;gap:.8rem;border:1px solid rgba(253,250,243,.14);border-radius:.375rem;background:rgba(253,250,243,.07);padding:1rem;font-size:.85rem;font-weight:900;transition:background .18s,transform .18s}
.contact-link:hover{background:rgba(253,250,243,.13);transform:translateX(3px)}
.contact-link>svg:first-child{width:1.25rem;height:1.25rem;flex-shrink:0}
.contact-link span{display:grid;overflow-wrap:anywhere}
.contact-link small{font-size:.58rem;text-transform:uppercase;color:rgba(253,250,243,.48)}
.contact-link .arrow{margin-left:auto;width:1rem;height:1rem;flex-shrink:0}

/* Footer */
footer{border-top:1px solid rgba(36,30,51,.1)}
.footer-inner{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:1rem;padding-top:2rem;padding-bottom:2rem}
@media(min-width:640px){.footer-inner{flex-direction:row}}
.footer-inner .copy{text-align:center;font-size:.75rem;font-weight:700;color:rgba(36,30,51,.45)}
.footer-inner a.soc{color:rgba(36,30,51,.5);transition:color .18s}
.footer-inner a.soc:hover{color:var(--coral)}
.footer-inner a.soc svg{width:1.25rem;height:1.25rem}

@keyframes cinematic{0%,100%{transform:scale(1.02)}50%{transform:scale(1.08) translateX(-1%)}}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}