/* shayanparsai.com, samma formspråk som CV:t (tema B) */
:root { --ac: #a3202b; --ac-dk: #861a23; --dk: #1f2427; --tx: #3a3f43; --mu: #6a6f73; --soft: #f7f1f0; --line: #ececec; --pink: #ffc9c2; --gut: 24px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Poppins, Arial, sans-serif; background: #fff; color: var(--dk); -webkit-font-smoothing: antialiased; line-height: 1.6; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .title, .kick, .stats strong, .stats span, .c-intro p, .how p, .t, .note, .tool p, .pick small, .done p, .sub, .role, .stack, .tl { text-wrap: balance; }
p, li { text-wrap: pretty; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gut); }

/* ---------- knappar ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; padding: 13px 22px; border-radius: 40px; background: var(--ac); color: #fff; transition: background .2s, transform .2s, box-shadow .2s; }
.btn:hover { background: var(--ac-dk); transform: translateY(-1px); }
.btn-sm { font-size: 14px; padding: 9px 16px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-light { background: #fff; color: var(--ac); }
.btn-light:hover { background: #fff; box-shadow: 0 8px 22px rgba(60,0,8,.25); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- navigering ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(31,36,39,.06); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 66px; }
.brand { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--dk); }
.brand i { font-style: normal; color: var(--ac); }
.nav nav { display: flex; gap: 28px; font-size: 14.5px; font-weight: 500; color: var(--tx); }
.nav nav a { position: relative; padding: 4px 0; }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--ac); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav nav a:hover { color: var(--dk); }
.nav nav a:hover::after, .nav nav a.on::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero { background: var(--ac); color: #fff; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: end; padding-top: 72px; }
.hero-txt { padding-bottom: 72px; }
.kick { font-size: 13px; text-transform: uppercase; letter-spacing: .16em; color: #ffd9d3; font-weight: 500; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; margin-top: 14px; }
.hero h1 span { white-space: nowrap; }
.title { font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; margin-top: 16px; }
.title em { font-style: normal; color: var(--pink); font-weight: 400; margin: 0 10px; }
.sub { font-size: 17px; margin-top: 14px; color: #ffe7e3; font-weight: 300; line-height: 1.65; max-width: 600px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stats { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 12px; margin-top: 40px; max-width: 680px; }
.stats div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24); padding: 16px 18px; }
.stats strong { display: block; font-size: 28px; font-weight: 700; line-height: 1.1; }
.stats span { display: block; font-size: 13px; margin-top: 7px; color: #ffe0da; line-height: 1.4; }
.stats .exit strong { font-size: 19px; line-height: 1.25; }
.stats .exit span { font-size: 15px; font-weight: 500; letter-spacing: .01em; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 720 / 806; object-fit: cover; }

/* ---------- sektioner ---------- */
.sec { padding: 96px 0; }
.sec-soft { background: var(--soft); }
.sec h2 { font-size: clamp(30px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 28px; }
.sec h2 em, .contact h2 em { font-style: normal; color: var(--ac); }

.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; }
.lead { font-size: 17px; line-height: 1.75; color: var(--tx); }
.lead + .lead { margin-top: 16px; }
.kid { display: grid; grid-template-columns: 44px 1fr; gap: 16px; margin-top: 30px; background: var(--soft); padding: 22px 24px; border-left: 3px solid var(--ac); }
.kid h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.kid p { font-size: 15.5px; line-height: 1.7; color: var(--tx); }
.how { display: grid; gap: 14px; }
.how li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; background: var(--soft); padding: 20px 22px; border-left: 3px solid var(--ac); }
.how h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.how p { font-size: 15px; line-height: 1.65; color: var(--tx); }
.ic { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ac); display: grid; place-items: center; }
.ic svg { width: 20px; height: 20px; }

/* ---------- projekt ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid #eadfdd; padding: 26px 26px 24px; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(90,20,26,.09); border-color: #e0c9c6; }
.c-top { display: flex; gap: 16px; align-items: center; }
.logo { width: 56px; height: 56px; border-radius: 13px; border: 1px solid #e6e6e6; object-fit: cover; flex: none; background: #fff; }
.logo-pad { object-fit: contain; padding: 7px; }
.card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.role { font-size: 13.5px; color: var(--mu); margin-top: 2px; }
.links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 16px; font-size: 14.5px; font-weight: 500; color: var(--ac); }
.links a { border-bottom: 1px solid rgba(163,32,43,.3); transition: border-color .2s; }
.links a:hover { border-color: var(--ac); }
.links span { color: #1f7a4d; }
.card p.d { font-size: 15px; line-height: 1.7; color: var(--tx); margin-top: 12px; flex: 1 0 auto; }
/* en siffra per kort: siffra och text på samma rad mellan två streck, texten bryts aldrig */
.m { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; margin-top: 20px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; color: var(--tx); }
.m strong { font-size: 22px; font-weight: 700; color: var(--ac); line-height: 1.3; letter-spacing: -0.01em; }
.m span { white-space: nowrap; }
.stack { font-size: 13.5px; font-weight: 500; color: var(--dk); margin-top: auto; padding-top: 18px; line-height: 1.6; }

/* ---------- erfarenhet ---------- */
.exp-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; }
.xp li { display: grid; grid-template-columns: 150px 1fr 70px; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.xp li:first-child { padding-top: 0; }
.xp .d { font-size: 14px; color: var(--mu); padding-top: 2px; }
.xp h3, .edu h3 { font-size: 17px; font-weight: 600; line-height: 1.35; }
.o { font-size: 14.5px; color: var(--mu); }
.t { font-size: 15px; line-height: 1.6; color: var(--tx); margin-top: 3px; }
.s { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; justify-self: end; padding-top: 4px; }
.s.on { color: var(--ac); } .s.sold { color: #1f7a4d; } .s.off { color: #9a9ea1; }
.edu li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.edu li:first-child { padding-top: 0; }

/* ---------- verktyg ---------- */
.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tool { background: #fff; border: 1px solid #eadfdd; padding: 26px 26px 24px; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto 1fr; column-gap: 18px; align-content: start; }
.tool > :not(.ic) { grid-column: 2; }
.tool .ic { background: var(--soft); grid-row: 1 / span 3; }
.tool h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.tool p { font-size: 14.5px; line-height: 1.65; color: var(--tx); }
.tool .tl { align-self: end; padding-top: 14px; font-size: 13px; font-weight: 500; color: var(--ac); line-height: 1.6; }

/* ---------- kontakt med formulär ---------- */
.contact { background: var(--ac); color: #fff; padding: 96px 0; }
.contact-in { display: grid; grid-template-columns: 1fr 1.15fr; grid-template-areas: 'intro form' 'side form'; grid-template-rows: auto 1fr; gap: 0 64px; align-items: start; }
.c-intro { grid-area: intro; }
.form { grid-area: form; }
.c-side { grid-area: side; margin-top: 36px; }
.contact h2 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.contact h2 em { font-style: normal; color: var(--pink); }
.c-intro p { font-size: 18px; color: #ffe7e3; font-weight: 300; margin-top: 14px; max-width: 440px; }

.cv { display: flex; align-items: center; gap: 16px; background: #fff; color: var(--dk); padding: 18px 22px 18px 18px; border-radius: 16px; box-shadow: 0 14px 34px rgba(60,0,8,.22); transition: transform .25s, box-shadow .25s; }
.cv:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(60,0,8,.3); }
.cv-ic { width: 52px; height: 52px; border-radius: 12px; background: var(--soft); color: var(--ac); display: grid; place-items: center; flex: none; }
.cv-ic svg { width: 26px; height: 26px; }
.cv-t { flex: 1; min-width: 0; }
.cv-t b { display: block; font-size: 18px; font-weight: 700; line-height: 1.25; }
.cv-t small { display: block; font-size: 13.5px; color: var(--mu); margin-top: 2px; }
.cv-arrow { width: 40px !important; height: 40px !important; padding: 10px; border-radius: 50%; background: var(--ac); color: #fff; stroke-width: 2 !important; transition: transform .25s; }
.cv:hover .cv-arrow { transform: translateY(2px); }

.c-side ul { display: grid; gap: 4px; margin-top: 22px; }
.c-side li a { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; padding: 7px 0; overflow-wrap: anywhere; color: #fff; }
.c-side li a:hover { color: var(--pink); }
.c-side li svg { width: 19px; height: 19px; color: var(--pink); }

.form { background: #fff; color: var(--dk); padding: 32px; border-radius: 18px; box-shadow: 0 20px 50px rgba(60,0,8,.25); display: grid; gap: 16px; }
.pick { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.pick legend { font-size: 15px; font-weight: 600; padding: 0; margin-bottom: 10px; }
.pick label { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick label > span { display: flex; flex-direction: column; padding: 13px 16px 13px 48px; border: 1.5px solid #e4dcdb; border-radius: 12px; transition: border-color .2s, background .2s; position: relative; }
.pick label > span::before { content: ''; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 1.5px solid #c9bfbe; background: #fff; transition: border-color .2s, box-shadow .2s; }
.pick b { font-size: 16px; font-weight: 600; line-height: 1.35; }
.pick small { font-size: 13.5px; color: var(--mu); line-height: 1.4; }
.pick label:hover > span { border-color: #d3b9b6; }
.pick input:checked + span { border-color: var(--ac); background: var(--soft); }
.pick input:checked + span::before { border-color: var(--ac); box-shadow: inset 0 0 0 4px #fff; background: var(--ac); }
.pick input:focus-visible + span { outline: 2px solid var(--ac); outline-offset: 2px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--tx); min-width: 0; }
.f i { font-style: normal; font-weight: 400; color: var(--mu); }
.f input, .f textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--dk); width: 100%; padding: 12px 14px; border: 1.5px solid #e4dcdb; border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.f textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.f input:focus, .f textarea:focus { outline: none; border-color: var(--ac); box-shadow: 0 0 0 3px rgba(163,32,43,.12); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.send .btn { border: 0; cursor: pointer; font-family: inherit; }
.send .btn[disabled] { opacity: .6; cursor: default; transform: none; }
.note { font-size: 13.5px; color: var(--mu); }
.status { font-size: 15px; font-weight: 500; }
.status:empty { display: none; }
.status.err { color: var(--ac); }
.done { text-align: center; padding: 40px 16px; }
.done .ok { width: 60px; height: 60px; border-radius: 50%; background: var(--soft); color: var(--ac); display: grid; place-items: center; margin: 0 auto 18px; }
.done .ok svg { width: 28px; height: 28px; stroke-width: 2.2; }
.done h3 { font-size: 24px; font-weight: 700; }
.done p { font-size: 16px; color: var(--tx); margin-top: 8px; }

.foot { background: var(--dk); color: #a9adb0; font-size: 14px; padding: 22px 0; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a:hover { color: #fff; }

/* ---------- effekter: diskret intoning ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero-txt > *, .js .hero-photo { animation: up .8s cubic-bezier(.2,.7,.2,1) both; }
.js .hero-txt > :nth-child(2) { animation-delay: .06s; }
.js .hero-txt > :nth-child(3) { animation-delay: .12s; }
.js .hero-txt > :nth-child(4) { animation-delay: .18s; }
.js .hero-txt > :nth-child(5) { animation-delay: .24s; }
.js .hero-txt > :nth-child(6) { animation-delay: .3s; }
.js .hero-photo { animation-delay: .15s; }
@keyframes up { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero-txt > *, .js .hero-photo { opacity: 1; transform: none; transition: none; animation: none; }
  .btn, .card { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- responsivt ---------- */
@media (max-width: 1100px) {
  .hero-in { grid-template-columns: 1fr 320px; gap: 40px; }
  .exp-grid { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 900px) {
  .nav nav { display: none; }
  .hero-in { grid-template-columns: 1fr; gap: 0; padding-top: 48px; }
  .hero-txt { padding-bottom: 40px; }
  .hero-photo { width: min(300px, 78%); margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .cards { grid-template-columns: 1fr; }
  .contact-in { grid-template-columns: 1fr; grid-template-areas: 'intro' 'form' 'side'; }
  .form { margin-top: 32px; }
}
@media (max-width: 640px) {
  :root { --gut: 18px; }
  html { scroll-padding-top: 64px; }
  .nav-in { height: 58px; }
  .brand { font-size: 19px; }
  .btn-sm { padding: 8px 14px; font-size: 13.5px; }
  .hero h1 { font-size: 38px; }
  .hero h1 span { white-space: normal; }
  .title { font-size: 17px; }
  .title em { margin: 0 7px; }
  .sub { font-size: 16px; }
  .cta .btn { flex: 1 1 auto; justify-content: center; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .exit { grid-column: 1 / -1; }
  .stats strong { font-size: 24px; }
  .sec { padding: 64px 0; }
  .lead { font-size: 16px; }
  .how li, .kid { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .card { padding: 22px 20px 20px; }
  .card h3 { font-size: 19px; }
  .links:has(a:nth-child(4)) { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 20px; }
  .xp li { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .xp .d { grid-column: 1; grid-row: 1; }
  .xp .s { grid-column: 2; grid-row: 1; padding-top: 3px; }
  .xp li > div { grid-column: 1 / -1; }
  .tools { grid-template-columns: 1fr; }
  .tool { grid-template-columns: 1fr; padding: 22px 20px; }
  .tool > :not(.ic) { grid-column: 1; }
  .tool .ic { grid-row: auto; margin-bottom: 14px; }
  .contact { padding: 64px 0; }
  .form { padding: 22px 18px; border-radius: 16px; }
  .row { grid-template-columns: 1fr; }
  .send .btn { width: 100%; justify-content: center; }
  .cv { padding: 16px; gap: 14px; }
  .cv-t b { font-size: 17px; }
}
