/* ==========================================================
   Teja Tomšič — portfolio styles
   Edit colours and fonts in :root below.
   ========================================================== */

:root {
  --bg: #f7f5f2;
  --paper: #fcfaf5;
  --ink: #232526;
  --ink-soft: rgba(35, 37, 38, 0.6);
  --dark: #3d2b63;      /* deep purple — nav, buttons, about section */
  --dark-2: #2a1d45;
  --lavender: #b9a6e8;
  --line: #e6e4df;
  --chip: #edece8;

  --orange: #ffa754;
  --blue: #d0e8f7;
  --mint: #cae8de;
  --yellow: #ffd88a;
  --lime: #d7f2ae;
  --lilac: #ebe8f1;
  --pink: #ffd1e3;
  --sand: #ecdacc;
  --neon: #d5ff57;
  --periwinkle: #c9c6ff;

  --font-display: "Clash Display", "Satoshi", system-ui, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --font-body: "Satoshi", "DM Sans", system-ui, sans-serif;
  --font-script: "Kaushan Script", cursive;
  --font-sign: "Corinthia", cursive;

  --radius: 14px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 10px; border: 0;
  background: var(--dark); color: #fff; font-size: 15px; font-weight: 500;
  transition: transform .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--dark-2); }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-outline { background: transparent; color: var(--dark); border: 1px solid var(--dark); }
.btn-outline:hover { background: var(--dark); color: #fff; }
.link-arrow { color: var(--ink-soft); font-size: 15px; display: inline-flex; gap: 6px; }
.link-arrow:hover { color: var(--ink); }

/* ---------- Floating nav ---------- */
.nav {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 100; width: min(440px, calc(100% - 32px));
  background: var(--dark); color: #fff; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  overflow: hidden;
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.nav-logo { font-family: var(--font-serif); font-size: 20px; }
.nav-toggle {
  width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent;
  display: grid; place-items: center; transition: background .2s;
}
.nav-toggle:hover, .nav.open .nav-toggle { background: rgba(255,255,255,.12); }
.nav-toggle .dots { display: grid; grid-template-columns: repeat(3, 3px); gap: 3px; }
.nav-toggle .dots i { width: 3px; height: 3px; border-radius: 50%; background: #fff; }
.nav-toggle .close { display: none; font-size: 18px; line-height: 1; }
.nav.open .nav-toggle .dots { display: none; }
.nav.open .nav-toggle .close { display: block; }
.nav-menu {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2,.8,.2,1);
}
.nav.open .nav-menu { grid-template-rows: 1fr; }
.nav-menu > div { min-height: 0; overflow: hidden; }
.nav-menu ul { overflow: hidden; list-style: none; margin: 0; padding: 0 18px; }
.nav.open .nav-menu ul { padding-bottom: 14px; }
.nav-menu li a {
  display: block; padding: 10px 0; font-size: 15px; color: rgba(255,255,255,.8);
  opacity: 0; transform: translateY(-6px); transition: color .2s, opacity .3s, transform .3s;
}
.nav.open .nav-menu li a { opacity: 1; transform: none; }
.nav.open .nav-menu li:nth-child(2) a { transition-delay: .04s; }
.nav.open .nav-menu li:nth-child(3) a { transition-delay: .08s; }
.nav.open .nav-menu li:nth-child(4) a { transition-delay: .12s; }
.nav.open .nav-menu li:nth-child(5) a { transition-delay: .16s; }
.nav.open .nav-menu li:nth-child(6) a { transition-delay: .20s; }
.nav-menu li a:hover, .nav-menu li a[aria-current] { color: #fff; }

/* ---------- Rotating badge ---------- */
.badge {
  width: 170px; height: 170px; border-radius: 50%;
  background: var(--orange); color: var(--ink);
  display: grid; place-items: center; position: relative;
}
.badge svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge svg.ring text { font-family: var(--font-body); font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; fill: currentColor; }
.badge .star { font-size: 64px; line-height: 1; font-weight: 300; }
.badge .knight { width: 40%; height: 40%; fill: var(--dark); }
.badge .knight .eye { fill: var(--orange); }
.badge.neon .knight .eye { fill: var(--neon); }
.badge .sign { font-family: var(--font-script); font-size: 30px; }
.badge.neon { background: var(--neon); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero ---------- */
.hero { padding-top: 150px; text-align: center; position: relative; }
.hero-name {
  font-family: var(--font-serif); font-weight: 500; font-variation-settings: "opsz" 144;
  font-size: clamp(56px, 10vw, 112px); line-height: .98; letter-spacing: -0.025em; margin: 0;
}
.hero-name .line { display: block; }
.hero-name .fade {
  background: linear-gradient(90deg, var(--dark) 0%, var(--dark) 40%, var(--lavender) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede { max-width: 520px; margin: 28px auto 32px; color: var(--ink-soft); font-size: 17px; }
.hero .badge { position: absolute; top: 110px; right: max(var(--gutter), calc(50% - 560px)); }

.card-fan {
  position: relative; height: clamp(300px, 34vw, 440px); margin-top: 60px;
  display: flex; justify-content: center; align-items: flex-start;
}
.polaroid {
  position: absolute; display: block; width: clamp(150px, 17vw, 250px); aspect-ratio: 4 / 5;
  padding: 10px; border-radius: 14px; background: var(--paper);
  box-shadow: 0 20px 40px rgba(0,0,0,.08); cursor: pointer;
  transform: translateX(var(--x, 0)) translateY(var(--y, 0)) rotate(var(--r, 0deg));
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s;
}
.polaroid img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.polaroid .tag {
  position: absolute; left: 20px; bottom: 20px; background: rgba(255,255,255,.92);
  border-radius: 999px; padding: 4px 10px; font-size: 12px;
}
.polaroid .tag small { color: var(--ink-soft); margin-left: 6px; }
.card-fan .polaroid:nth-child(1) { background: var(--blue);   --x: -205%; --y: 50px; --r: -10deg; z-index: 1; }
.card-fan .polaroid:nth-child(2) { background: var(--mint);   --x: -104%; --y: 14px; --r: -5deg;  z-index: 2; }
.card-fan .polaroid:nth-child(3) { background: var(--lilac);  --y: -6px; z-index: 4; }
.card-fan .polaroid:nth-child(4) { background: var(--lime);   --x: 104%;  --y: 14px; --r: 5deg;   z-index: 3; }
.card-fan .polaroid:nth-child(5) { background: var(--yellow); --x: 205%;  --y: 50px; --r: 10deg;  z-index: 1; }
.card-fan .polaroid:hover, .card-fan .polaroid:focus-visible {
  z-index: 10; box-shadow: 0 30px 60px rgba(61,43,99,.22);
  transform: translateX(var(--x, 0)) translateY(calc(var(--y, 0px) - 24px)) rotate(calc(var(--r, 0deg) * .5)) scale(1.05);
}
.card-fan .polaroid:focus-visible { outline: 3px solid var(--dark); outline-offset: 4px; }
.polaroid .note {
  position: absolute; left: 0; right: 0; bottom: -2px; text-align: center;
  font-family: var(--font-script); font-size: 18px;
}


/* ---------- Marquees ---------- */
.marquee { overflow: hidden; white-space: nowrap; user-select: none; }
.marquee-track { display: inline-flex; animation: marquee var(--speed, 30s) linear infinite; }
.marquee:hover .marquee-track.pausable { animation-play-state: paused; }
.marquee-track > * { flex: none; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }


/* ---------- Section headings ---------- */
.eyebrow { font-size: 13px; color: var(--ink-soft); }
.h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 5.5vw, 64px); line-height: 1.05; letter-spacing: -0.01em; margin: 10px 0 0; }
.h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3vw, 34px); margin: 0; }

/* ---------- Selected work ---------- */
.work-head { text-align: center; margin-bottom: 60px; }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 32px; }
.work-card { display: block; }
.work-card .media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--chip); }
.work-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.work-card:hover .media img { transform: scale(1.05); }
.work-card .pill { position: absolute; top: 14px; left: 14px; background: var(--dark); color: #fff; font-size: 12px; padding: 5px 10px; border-radius: 8px; }
.work-card .go {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; transition: transform .3s;
}
.work-card:hover .go { transform: rotate(45deg); }
.work-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 26px; margin: 18px 0 4px; }
.work-card p { margin: 0; color: var(--ink-soft); }
.view-all { text-align: center; margin-top: 64px; }

/* ---------- About (dark) ---------- */
.about-dark { background: var(--dark); color: var(--ink); position: relative; overflow: hidden; padding-bottom: 0; }
.about-paper {
  position: relative; z-index: 2; max-width: 820px; margin: 0 auto;
  background: var(--paper); border-radius: 18px; padding: clamp(28px, 6vw, 64px);
  transform: perspective(1400px) rotateX(4deg) rotate(-1.2deg);
  box-shadow: 0 40px 80px rgba(0,0,0,.25);
}
.about-paper .h2 { margin-bottom: 24px; }
.about-paper p { color: #4a4f52; max-width: 600px; }
.about-paper .signature { font-family: var(--font-sign); font-size: 56px; line-height: 1; margin-top: 30px; color: var(--ink); }
.about-paper .badge { position: absolute; top: -40px; right: -40px; width: 150px; height: 150px; }
.grid-floor {
  position: relative; height: 300px; margin-top: -120px; z-index: 1;
  perspective: 600px; overflow: hidden;
}
.grid-floor::before {
  content: ""; position: absolute; left: -50%; right: -50%; top: 0; height: 200%;
  background-image:
    linear-gradient(rgba(185,166,232,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185,166,232,.22) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: rotateX(62deg); transform-origin: top center;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 70%, transparent);
}

/* ---------- Logos ---------- */
.logos { padding: 80px 0; }
.logos .eyebrow { text-align: center; margin-bottom: 30px; }
.logo-item { padding: 0 40px; font-size: clamp(28px, 3.5vw, 44px); color: var(--ink); opacity: .85; }
.logo-item:nth-child(4n+1) { font-family: var(--font-display); font-weight: 600; }
.logo-item:nth-child(4n+2) { font-family: var(--font-serif); font-style: italic; }
.logo-item:nth-child(4n+3) { font-family: var(--font-body); font-weight: 900; letter-spacing: -.04em; }
.logo-item:nth-child(4n+4) { font-family: var(--font-display); font-weight: 300; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Testimonials (sticky stack) ---------- */
.testimonials { position: relative; }
.testimonials .h2 { text-align: center; position: sticky; top: 120px; z-index: 0; }
.t-stack { position: relative; z-index: 1; margin-top: 40px; }
.t-card {
  position: sticky; top: 160px; max-width: 520px; margin: 0 auto 30vh;
  border-radius: 18px; padding: 32px; box-shadow: 0 20px 40px rgba(0,0,0,.06);
}
.t-card:last-child { margin-bottom: 0; }
.t-card .company { font-size: 13px; color: var(--ink-soft); }
.t-card blockquote { margin: 24px 0 30px; font-size: 20px; line-height: 1.5; }
.t-card mark { background: var(--yellow); padding: 0 2px; }
.t-card .who { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.t-card .who img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.t-card .who strong { display: block; font-weight: 500; }
.t-card .who span { color: var(--ink-soft); font-size: 12px; }

/* ---------- Notes slider ---------- */
.notes-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; border-top: 1px solid var(--ink); padding-top: 32px; margin-bottom: 40px; }
.notes-head .h2 { display: flex; align-items: center; gap: 14px; margin: 0; }
.count { font-family: var(--font-body); font-size: 13px; background: var(--chip); border-radius: 999px; padding: 3px 10px; font-weight: 500; }
.notes-head p { max-width: 340px; margin: 12px 0 0; color: var(--ink-soft); font-size: 14px; }
.slider { position: relative; }
.slider-track {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; scroll-behavior: smooth; padding-bottom: 4px;
}
.slider-track::-webkit-scrollbar { display: none; }
.note-card { flex: 0 0 min(380px, 82%); display: flex; gap: 18px; scroll-snap-align: start; }
.note-card img { width: 130px; height: 140px; object-fit: cover; border-radius: 10px; flex: none; transition: transform .4s; }
.note-card:hover img { transform: scale(1.04) rotate(-2deg); }
.note-card .cat { font-size: 12px; color: var(--ink-soft); }
.note-card h3 { font-weight: 400; font-size: 20px; line-height: 1.35; margin: 4px 0 10px; }
.note-card .read { font-size: 13px; color: var(--ink-soft); }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px;
  border-radius: 50%; border: 0; background: var(--dark); color: #fff; display: grid; place-items: center;
  transition: opacity .2s; z-index: 2;
}
.slider-btn.prev { left: -20px; } .slider-btn.next { right: -20px; }
.slider-btn[disabled] { opacity: 0; pointer-events: none; }

/* ---------- Exploration carousel ---------- */
.explore-head { text-align: center; margin-bottom: 50px; }
.explore-head p { color: var(--ink-soft); margin: 12px 0 24px; }
.explore-card { width: clamp(260px, 36vw, 480px); margin: 0 14px; padding: 12px 12px 20px; border-radius: 18px; }
.explore-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.explore-card h4 { margin: 14px 4px 2px; font-weight: 500; font-size: 15px; }
.explore-card span { margin: 0 4px; font-size: 12px; color: var(--ink-soft); }
.explore-card:nth-child(6n+1) { background: var(--yellow); }
.explore-card:nth-child(6n+2) { background: var(--blue); }
.explore-card:nth-child(6n+3) { background: var(--sand); }
.explore-card:nth-child(6n+4) { background: var(--lime); }
.explore-card:nth-child(6n+5) { background: var(--pink); }
.explore-card:nth-child(6n+6) { background: var(--mint); }
.fade-edges { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }

/* ---------- Connect ---------- */
.connect { text-align: center; }
.connect .icon { width: 64px; height: 64px; margin: 0 auto 18px; }
.connect .title { font-family: var(--font-serif); font-weight: 300; font-size: clamp(44px, 7vw, 72px); margin: 0; line-height: 1.05; }
.connect p { color: var(--ink-soft); margin: 14px 0 36px; }
.connect-list { max-width: 420px; margin: 0 auto; display: grid; gap: 8px; text-align: left; }
.connect-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; border-radius: 10px; background: var(--chip); font-size: 14px;
  transition: background .2s, transform .2s;
}
.connect-list a:hover { background: var(--line); transform: translateX(4px); }
.connect-list svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 1.5; }

/* ---------- Footer ---------- */
.footer { padding: 60px 0 40px; text-align: center; }
.footer-big { font-family: var(--font-serif); font-weight: 300; font-size: clamp(56px, 12vw, 160px); line-height: .95; letter-spacing: -.03em; margin: 0; }
.footer-big em { font-style: normal; color: var(--lavender); }
.footer .cta { margin: 32px 0 60px; }
.footer .badge { margin: 0 auto 40px; }
.footer small { display: block; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }

/* ---------- Inner pages ---------- */
.page-hero { padding-top: 160px; }
.page-title { font-family: var(--font-serif); font-weight: 500; font-variation-settings: "opsz" 144; font-size: clamp(52px, 8vw, 96px); line-height: 1; letter-spacing: -.02em; margin: 0; }
.page-hero .lede { color: var(--ink-soft); max-width: 460px; margin: 24px 0 32px; }
.page-hero.with-badge { position: relative; }
.page-hero.with-badge .badge { position: absolute; right: var(--gutter); bottom: -20px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 70px; }
.facts div { padding: 18px 10px; }
.facts span { display: block; font-size: 12px; color: var(--ink-soft); }
.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.two-col p { margin-top: 0; color: #4a4f52; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chips span { padding: 10px 16px; border-radius: 999px; background: var(--chip); font-size: 14px; }
.hobbies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.hobbies figure { margin: 0; background: var(--paper); padding: 10px 10px 16px; border-radius: 14px; transition: transform .4s; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.hobbies figure:nth-child(1) { transform: rotate(-3deg); }
.hobbies figure:nth-child(3) { transform: rotate(3deg); }
.hobbies figure:hover { transform: rotate(0) translateY(-6px); }
.hobbies img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; width: 100%; }
.hobbies figcaption { font-family: var(--font-script); font-size: 20px; text-align: center; margin-top: 10px; }

.faq { max-width: 760px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-soft); max-width: 640px; }

.list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
.notes-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.notes-list a { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.notes-list img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; }
.notes-list h3 { font-weight: 400; font-size: 22px; margin: 4px 0 0; }
.notes-list a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.masonry { columns: 3 280px; column-gap: 24px; }
.masonry .explore-card { width: auto; margin: 0 0 24px; break-inside: avoid; display: block; }

/* Project / article */
.cover { width: 100%; height: clamp(320px, 55vw, 640px); object-fit: cover; }
.project-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding: 60px 0; }
.project-head h1 { font-family: var(--font-serif); font-weight: 300; font-size: clamp(42px, 6vw, 72px); line-height: 1.02; margin: 0; }
.meta { display: grid; gap: 14px; }
.meta div { border-top: 1px solid var(--line); padding-top: 10px; }
.meta span { display: block; font-size: 12px; color: var(--ink-soft); }
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: 30px; margin: 64px 0 16px; }
.prose .kicker { font-size: 13px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; margin-top: 64px; }
.prose p, .prose li { color: #4a4f52; font-size: 17px; }
.prose li { margin-bottom: 10px; }
.prose blockquote { margin: 40px 0; padding-left: 20px; border-left: 3px solid var(--orange); font-size: 22px; }
.prose figure { margin: 48px 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 48px 0; }
.stats div { background: var(--chip); border-radius: var(--radius); padding: 24px; }
.stats strong { display: block; font-family: var(--font-display); font-size: 48px; font-weight: 500; }
.stats span { font-size: 13px; color: var(--ink-soft); }
.next-project { text-align: center; padding: 80px 0 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .badge { position: relative; top: auto; right: auto; margin: 40px auto 0; width: 140px; height: 140px; }
  .about-paper .badge { width: 110px; height: 110px; top: -50px; right: -10px; }
  .about-paper .badge .star { font-size: 44px; }
  .two-col, .project-head { grid-template-columns: 1fr; gap: 24px; }
  .page-hero.with-badge .badge { position: relative; right: auto; bottom: auto; margin-top: 40px; }
}
@media (max-width: 1100px) {
  .card-fan .polaroid:nth-child(1) { --x: -180%; }
  .card-fan .polaroid:nth-child(5) { --x: 180%; }
  .card-fan .polaroid:nth-child(2) { --x: -92%; }
  .card-fan .polaroid:nth-child(4) { --x: 92%; }
}
@media (max-width: 700px) {
  .work-grid, .list-grid { grid-template-columns: 1fr; gap: 40px; }
  .card-fan .polaroid:nth-child(1), .card-fan .polaroid:nth-child(5) { display: none; }
  .card-fan .polaroid { width: 150px; }
  .card-fan .polaroid:nth-child(2) { --x: -78%; --y: 18px; --r: -7deg; }
  .card-fan .polaroid:nth-child(4) { --x: 78%;  --y: 18px; --r: 7deg; }
  .notes-head { flex-direction: column; align-items: flex-start; }
  .slider-btn { display: none; }
  .t-card { top: 110px; padding: 24px; }
  .t-card blockquote { font-size: 17px; }
  .testimonials .h2 { top: 80px; }
  .facts { grid-template-columns: 1fr; }
  .hobbies { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
  .notes-list a { grid-template-columns: 80px 1fr; }
  .notes-list img { width: 80px; height: 64px; }
  .notes-list .read { display: none; }
  .stats { grid-template-columns: 1fr; }
  .grid-floor { height: 240px; }
}
