/* Static rebuild of ruggerobaracco.xyz (Semplice 6) — fonts, colours and corner menu from the site's settings */

@font-face { font-family: "Fragment Mono"; src: url("assets/fonts/FragmentMono-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/SpaceGrotesk-latin-ext.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/SpaceGrotesk-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #1d1f25;
  --text: #ffffff;
  --muted: #a3a7b3;
  --line: rgba(255, 255, 255, .16);
  --surface: #262933;
  --link: #ffd300;
  --blue: #4065e8;
  --gold: #d6b955;
  --green: #40e86f;
  --red: #e8405e;
  --f-head: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Fragment Mono", ui-monospace, Menlo, monospace;
  --f-menu: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-bold: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-light: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: .8889rem;
  line-height: 1.2778;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; }

h1, h2, h3 { font-family: var(--f-head); font-weight: 400; }
h1 { font-size: 2.6667rem; line-height: 3rem; }
h2 { font-size: 2rem; line-height: 2.3333rem; }
h3 { font-size: 1.1rem; line-height: 1.4; }
p { line-height: 1.6; }

/* Semplice font classes, kept so the original text markup works as-is */
.f-bold, .font_qfodz0p38 { font-family: var(--f-bold); font-weight: 700; }
.f-mono, .font_b3qu7bzku { font-family: var(--f-body); }
.f-head, .font_x6xpbx02p { font-family: var(--f-head); }
.f-light, .font_m8eu9fzmh { font-family: var(--f-light); font-weight: 300; font-style: italic; }
.f-menu, .font_g3xarlbi1 { font-family: var(--f-menu); }

/* ---------- Corner menu ---------- */
.corner-nav a {
  position: fixed;
  z-index: 100;
  padding: 1.7778rem;
  font-family: var(--f-menu);
  font-size: .8889rem;
  letter-spacing: .0278rem;
  color: var(--text);
  text-decoration: none;
}
.corner-nav span {
  display: inline-block;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--text);
  transition: border-color .3s ease, border-width .8s ease-out;
}
.corner-nav a:hover span { border-bottom-width: 4px; }
.corner-nav .home { top: 0; left: 0; }
.corner-nav .projects { top: 0; right: 0; writing-mode: vertical-rl; }
.corner-nav .about { bottom: 0; right: 0; transform: rotate(180deg); }
.corner-nav .process { bottom: 0; left: 0; writing-mode: vertical-rl; transform: rotate(180deg); }
.corner-nav .projects span, .corner-nav .process span { border-bottom: 0; border-left: 1px solid var(--text); padding-bottom: 0; padding-left: .4rem; }
.corner-nav .projects:hover span, .corner-nav .process:hover span { border-left-width: 4px; }
.corner-nav .home[aria-current] span { border-bottom: 4px solid var(--blue); }
.corner-nav .projects[aria-current] span { border-left: 4px solid var(--gold); }
.corner-nav .about[aria-current] span { border-bottom: 4px solid var(--green); }
.corner-nav .process[aria-current] span { border-left: 4px solid var(--red); }

.corner-nav b { font-weight: 400; }
.corner-nav .lbl-m { display: none; }
.menu-toggle { display: none; }

/* ---------- Mobile / tablet: hamburger + full-screen overlay (Semplice switches below 992px) ---------- */
@media (max-width: 991px) {
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    position: fixed; top: 1.4rem; left: 50%; transform: translateX(-50%);
    z-index: 210; width: 44px; height: 44px; padding: 0 10px;
    background: none; border: 0; cursor: pointer;
  }
  .menu-toggle i {
    display: block; height: 2px; background: var(--text);
    transition: transform .3s ease, opacity .2s ease;
  }
  body.menu-open .menu-toggle i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.menu-open .menu-toggle i:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .corner-nav {
    position: fixed; inset: 0; z-index: 200;
    background: #232838;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
    opacity: 0; visibility: hidden;
  }
  body.nav-anim .corner-nav { transition: opacity .35s ease, visibility 0s linear .35s; }
  body.menu-open { overflow: hidden; }
  body.menu-open .corner-nav { opacity: 1; visibility: visible; transition: opacity .35s ease; }

  .corner-nav a,
  .corner-nav .home, .corner-nav .projects, .corner-nav .about, .corner-nav .process {
    position: static; transform: none; writing-mode: horizontal-tb;
    padding: .6rem 0;
    font-size: 1.7778rem; letter-spacing: .05em;
  }
  .corner-nav span,
  .corner-nav .projects span, .corner-nav .process span {
    border-left: 0;
    border-bottom: 2px solid var(--text);
    padding-bottom: .9rem;
    padding-left: 0;
  }
  .corner-nav a:hover span { border-bottom-width: 2px; }
  .corner-nav .home[aria-current] span { border-bottom: 4px solid var(--blue); }
  .corner-nav .projects[aria-current] span { border-left: 0; border-bottom: 4px solid var(--gold); }
  .corner-nav .about[aria-current] span { border-bottom: 4px solid var(--green); }
  .corner-nav .process[aria-current] span { border-left: 0; border-bottom: 4px solid var(--red); }
  .corner-nav .lbl-d { display: none; }
  .corner-nav .lbl-m { display: inline; }
}

/* ---------- Page transition: the content fades out and in, the corner menu stays ---------- */
body > :not(.corner-nav):not(.menu-toggle) { animation: page-in .8s ease-out backwards; }
body.leaving > :not(.corner-nav):not(.menu-toggle) { opacity: 0; transition: opacity .5s ease-in; }
body.leaving.menu-open .corner-nav { opacity: 0; transition: opacity .5s ease-in; } /* mobile overlay fades with the page */
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
/* Clicking a menu item moves the thick underline to it while the content fades */
.corner-nav.going span { transition: border-color .45s ease, border-width .45s ease-out; }
@media (prefers-reduced-motion: reduce) {
  body > :not(.corner-nav):not(.menu-toggle) { animation: none; }
  body.leaving > :not(.corner-nav):not(.menu-toggle), body.leaving.menu-open .corner-nav { transition: none; }
}

/* ---------- Layout ---------- */
.page {
  max-width: 1360px;
  margin: 0 auto;
  padding: 7rem 4rem 8rem;
}
/* About header: small animation, wide intro, social links */
.lottie.about-anim { width: 280px; max-width: 100%; aspect-ratio: 2.4; margin: 0 0 2.5rem; }
.about-intro { font-family: var(--f-head); font-size: 1.75rem; line-height: 1.38; max-width: none; margin: 0; }
.lottie { width: 100%; max-width: 570px; margin: 0 auto; aspect-ratio: 1.15; }
.lottie.small { max-width: 220px; margin: 0; }
.lottie.medium { max-width: 380px; margin: 0; aspect-ratio: 2.4; }

/* Home */
.home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 5rem 4.5rem;
  text-align: center;
}
/* Animation sits behind the text, fixed and centred on the screen */
.home-hero .lottie {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw; max-width: none;
  height: 100vh; aspect-ratio: auto;
  margin: 0;
  pointer-events: none;
}
.home-hero .lottie svg { width: 100% !important; height: 100% !important; }
.home-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  font-size: clamp(2.4rem, min(4vw, 6vh), 4.2rem);
  line-height: 1.15;
  text-shadow: 0 0 2.5556rem rgba(29, 31, 37, 1);
}
.home-hero h1 a { color: var(--text); }

/* Section titles */
.title { font-family: var(--f-bold); font-weight: 700; font-size: 2.6667rem; line-height: 1.1; margin: 4rem 0 1.5rem; }
.title:first-child { margin-top: 0; }
.intro { font-family: var(--f-head); font-size: 1.5rem; line-height: 1.35; max-width: 34ch; }

/* About */
.social { display: flex; gap: 1rem; margin-top: 2rem; }
.social img { width: 64px; height: 64px; display: block; transition: transform .3s ease; }
.social a:hover img { transform: scale(1.06); }
.jobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; margin-top: 1rem; }
.jobs div { border-top: 1px solid var(--line); padding-top: 1rem; line-height: 1.75; }
.jobs b { font-weight: 400; display: block; margin-bottom: .15rem; }
.jobs b a { text-decoration: underline; }
.jobs small { color: var(--muted); font-size: inherit; }

/* Process */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.tools h2 { margin: 1rem 0; }
.tools ul { list-style: none; line-height: 1.9; }
.phases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem 4rem; margin-top: 3rem; }
.phase img { width: 310px; max-width: 100%; height: auto; display: block; }
.phase h2 { margin: .8rem 0; }

/* Projects */
.lottie.nda-anim { max-width: 340px; margin: 0 0 3rem 1.5rem; aspect-ratio: 2.4; }
.case-list { list-style: none; border-top: 1px solid var(--text); }
.case-list li { border-bottom: 1px solid var(--line); }
.case-list a {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: baseline;
  padding: 1.6rem 0; text-decoration: none; transition: color .3s ease;
}
.case-list .n { color: var(--muted); }
.case-list .body { display: block; }
.case-list .t { display: block; font-family: var(--f-head); font-size: 1.6rem; line-height: 1.25; transition: color .3s ease; }
.case-list .m { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin-top: .6rem; font-size: .85rem; }
.case-list .client { color: var(--text); }
.case-list .tags { color: var(--link); }
.case-list a:hover .t { color: var(--link); }
details.acc { border-bottom: 1px solid var(--line); }
details.acc:first-of-type { border-top: 1px solid var(--text); }
details.acc summary {
  cursor: pointer; list-style: none; padding: 1.3rem 2.5rem 1.3rem 0; position: relative;
  font-family: var(--f-head); font-size: 1.15rem; line-height: 1.4;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; position: absolute; right: 0; top: 1.1rem; font-family: var(--f-body); font-size: 1.4rem; }
details.acc[open] summary::after { content: "–"; }
details.acc .acc-body { padding: 0 0 1.8rem; max-width: 70ch; }
details.acc .acc-body div, details.acc .acc-body p { margin-bottom: .2rem; line-height: 1.6; }
details.acc .acc-body ul { margin: .6rem 0 .6rem 1.2rem; line-height: 1.6; }
details.acc .acc-body a { color: var(--link); }
.taste { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 1.5rem; }
.taste a { display: block; border: 1px solid var(--line); padding: 1.5rem; text-decoration: none; transition: border-color .3s ease; }
.taste a:hover { border-color: var(--link); }
.taste h2 { font-family: var(--f-bold); font-weight: 700; font-size: 1.6rem; line-height: 1.2; margin-bottom: .6rem; }
.taste small { display: block; color: var(--link); margin-top: 1rem; }
.clients { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1rem; align-items: center; }
.clients img { width: 100%; height: auto; display: block; opacity: .9; }
.note { color: var(--muted); margin-top: 1rem; max-width: 70ch; }

@media (max-width: 900px) {
  .tools, .phases, .jobs, .taste { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(4, 1fr); }
  .case-list a { grid-template-columns: auto 1fr; gap: .75rem; }
  .case-list .t { font-size: 1.3rem; }
}
@media (max-width: 768px) {
  html { font-size: 16px; }
  h1 { font-size: 2.2rem; line-height: 2.6rem; }
  h2 { font-size: 1.6rem; line-height: 2rem; }
  .page { padding: 6rem 1.25rem 5rem; }
  .home-hero { padding: 6rem 1.25rem 3rem; }
  .title { font-size: 2.2rem; }
  .lottie.nda-anim { margin-left: 0; }
}

/* Background particles (drawn by site.js) */
.particles { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.page, .case-content, .home-hero h1 { position: relative; z-index: 1; }

/* Resume on About */
.resume-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.2rem 0 1.5rem; }
.btn { display: inline-block; font-family: var(--f-menu); font-size: .9rem; letter-spacing: .03em; color: var(--text); text-decoration: none; border: 1px solid var(--text); padding: .75rem 1.2rem; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.btn:hover { border-color: var(--link); color: var(--link); }

.more-note { font-family: var(--f-body); font-size: .9rem; line-height: 1.5; margin: 1.4rem 0 0; color: var(--text); }

/* AI section (Process) and Design with AI page */
.ai-tools { margin-top: 2.5rem; }
.ai-tools h3, .ai-grid h3 { font-family: var(--f-bold); font-weight: 700; font-size: 1.35rem; margin: 0 0 1rem; padding-top: 1rem; border-top: 1px solid var(--text); }
.ai-tools ul, .ai-list { list-style: none; line-height: 1.6; }
.ai-tools li, .ai-list li { position: relative; padding-left: 1.2rem; margin-bottom: .7rem; }
.ai-tools li::before, .ai-list li::before { content: "→"; position: absolute; left: 0; color: var(--link); }
.ai-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem 4rem; margin-top: 2rem; }
.ai-grid p { margin-bottom: 1rem; max-width: 60ch; }
.ai-loop { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--text); margin-top: 2rem; }
.ai-loop div { padding: 1.2rem 1.5rem 0 0; }
.ai-loop div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.ai-loop b { display: block; font-family: var(--f-bold); font-size: 1.2rem; margin-bottom: .4rem; }
.ai-loop b span { color: var(--link); margin-right: .4rem; }
.ai-loop p { font-size: .9rem; color: var(--muted); }
.back-link { margin-top: 5rem; }
@media (max-width: 900px) {
  .ai-grid { grid-template-columns: 1fr; }
  .ai-loop { grid-template-columns: repeat(2, 1fr); }
  .ai-loop div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) {
  .ai-loop { grid-template-columns: 1fr; }
  .ai-loop div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 1rem; }
}

/* Home: button to the chat, and the slide transitions between home and chat */
.home-hero .hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2.4rem; }
.ask-btn { font-size: .85rem; padding: .7rem 1.15rem; background: rgba(29, 31, 37, .7); }
body.swipe-up .hero-inner { transform: translateY(-55vh); opacity: 0; transition: transform .7s cubic-bezier(.65, 0, .35, 1), opacity .55s ease .1s; }
body.swipe-up .corner-nav, body.swipe-up .menu-toggle, body.swipe-up .home-hero .lottie { opacity: 0; transition: opacity .35s ease; }
html.enter-from-above body > * { animation: none; }
html.enter-from-above .hero-inner { animation: from-above .75s cubic-bezier(.22, 1, .36, 1) backwards; }
html.enter-from-above .corner-nav, html.enter-from-above .menu-toggle, html.enter-from-above .home-hero .lottie { animation: page-in .5s ease .35s backwards; }
@keyframes from-above { from { transform: translateY(-45vh); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  body.swipe-up .hero-inner { transform: none; }
  html.enter-from-above .hero-inner { animation: none; }
}

/* Homepage: current Berlin weather (filled in by site.js), first line of the centred hero group */
.wx-line { min-height: 1.5em; font-family: var(--f-body); font-size: .85rem; line-height: 1.5; color: var(--text); text-shadow: 0 0 1rem rgba(29, 31, 37, 1); opacity: 0; transition: opacity .5s ease; margin-bottom: -.6rem; }
.wx-line.on { opacity: 1; }
@media (max-width: 991px) {
  .wx-line { font-size: .8rem; }
}

