:root {
  --bg: #f7f7f7; /* igual ao index-milo */
  --fg: #222;
  --muted: #555;
  --accent: #0a84ff; /* link azul do tema anterior */
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
body.dark-mode {
  --bg: #1a1a1a;
  --fg: #e0e0e0;
  --muted: #b7b0a8;
  --accent: #4CAF50;
}
body { margin: 0; font-family: 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--fg); }
.mono { font-family: var(--mono); }

.scroll-progress{position:fixed;top:0;left:0;height:3px;width:0;background:linear-gradient(90deg,#22c55e,var(--accent));z-index:9999;transition:width .1s linear}

/* ===== SIDE NAVIGATION ===== */
.side-nav{position:fixed;top:50%;left:12px;transform:translateY(-50%);z-index:999}
.side-nav::before{content:"";position:absolute;left:-10px;top:-32vh;bottom:-32vh;width:56px;background:rgba(0,0,0,.06);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(0,0,0,.1);border-radius:14px;pointer-events:none;z-index:-1}
body.dark-mode .side-nav::before{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12)}
.side-nav ul{list-style:none;padding:12px;margin:0}
.side-nav li{margin:22px 0;display:block}
.side-nav a{display:block;writing-mode:vertical-rl;text-orientation:mixed;color:var(--fg);opacity:.85;text-decoration:none;font-family:var(--mono);letter-spacing:.1em;padding:12px 14px;border-radius:12px;transition:opacity .2s ease, transform .2s ease, background-color .2s ease}
.side-nav a::before{counter-increment:sidenav;content:counter(sidenav, upper-roman);display:block;margin-bottom:6px;opacity:.8}
.side-nav ul{counter-reset:sidenav}
.side-nav a:hover{opacity:1;transform:translateX(2px)}
.side-nav a::after{content:""}

/* ===== MOBILE NAVIGATION ===== */

/* Mobile menu toggle button - BEAUTIFUL! */
.mobile-menu-toggle {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  width: 50px;
  height: 50px;
  background: var(--fg);
  color: var(--bg);
  border: none;
  border-radius: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: var(--accent);
  transform: scale(1.05);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

/* Contact floating button - ALWAYS VISIBLE! */
.contact-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  font-size: 1.5rem;
  box-shadow: 0 6px 25px rgba(10, 132, 255, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.contact-fab:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(10, 132, 255, 0.4);
}

.contact-fab:active {
  transform: translateY(0);
}

/* Mobile navigation - hamburger menu alternative */
@media (max-width: 600px) {
  .mobile-menu-toggle {
    display: flex !important;
  }
  
  .side-nav { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: var(--bg); 
    transform: none; 
    z-index: 9997; 
    display: none; 
    padding: 4rem 2rem 2rem; 
    overflow-y: auto; 
  }
  
  .side-nav.active { 
    display: block; 
    animation: slideIn 0.3s ease;
  }
  
  .side-nav::before { display: none; }
  
  .side-nav ul { 
    padding: 0; 
    margin: 0; 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
  }
  
  .side-nav li { margin: 0; }
  
  .side-nav a { 
    writing-mode: horizontal-tb; 
    text-orientation: mixed; 
    padding: 1.2rem; 
    border: 1px solid rgba(255,255,255,.1); 
    border-radius: 12px; 
    text-align: center; 
    font-size: 1.1rem; 
    letter-spacing: normal; 
    background: rgba(255,255,255,.02);
    transition: all 0.2s ease;
  }
  
  .side-nav a:hover {
    background: rgba(255,255,255,.05);
    border-color: var(--accent);
    transform: translateY(-2px);
  }
  
  .side-nav a::before { 
    display: inline; 
    margin-right: 0.8rem; 
    margin-bottom: 0; 
    color: var(--accent);
    font-weight: 600;
  }
  
  /* Contact FAB adjustments for mobile */
  .contact-fab {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header{position:relative;padding:10vh 8vw}
.hero-wrap{max-width:1200px;margin:0 auto}
.hero-lines .line{margin:.25rem 0}
.hero-lines .title{font-size:clamp(3rem,12vw,11rem);line-height:.88;letter-spacing:-.02em;text-transform:uppercase}
.hero-lines .title .chunk.a{display:block;transform:rotate(-2deg)}
.hero-lines .title .chunk.b{display:block;transform:translateX(8%) rotate(1.2deg)}
.hero-lines .kicker{opacity:.75;letter-spacing:.08em}
.hero-lines .title .chunk.a{font-weight:300;letter-spacing:.2em}
.hero-lines .title .chunk.b{font-weight:900;letter-spacing:-.01em}
.hero-meta{display:flex;gap:12px;opacity:.8;margin-top:6px}
.hero-photo{position:absolute;right:8vw;top:12vh;width:clamp(140px,22vw,320px);transform:rotate(-4deg);border-radius:12px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.3)}
.hero-photo img{display:block;width:100%;height:auto;filter:saturate(1.05) contrast(1.05)}
.doodle-canvas{position:absolute;inset:0;pointer-events:auto;touch-action:none}
.hero-photo img{user-select:none;-webkit-user-drag:none;-webkit-user-select:none}
.doodle-canvas:hover{cursor:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="%23222"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1.004 1.004 0 0 0 0-1.42l-2.34-2.34a1.004 1.004 0 0 0-1.42 0l-1.83 1.83 3.75 3.75 1.84-1.82z"/></svg>') 0 24, crosshair}
body.dark-mode .doodle-canvas:hover{cursor:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="%23ffffff"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1.004 1.004 0 0 0 0-1.42l-2.34-2.34a1.004 1.004 0 0 0-1.42 0l-1.83 1.83 3.75 3.75 1.84-1.82z"/></svg>') 0 24, crosshair}
.hero-photo:hover{cursor:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="%23222"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1.004 1.004 0 0 0 0-1.42l-2.34-2.34a1.004 1.004 0 0 0-1.42 0l-1.83 1.83 3.75 3.75 1.84-1.82z"/></svg>') 0 24, crosshair}
body.dark-mode .hero-photo:hover{cursor:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="%23ffffff"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1.004 1.004 0 0 0 0-1.42l-2.34-2.34a1.004 1.004 0 0 0-1.42 0l-1.83 1.83 3.75 3.75 1.84-1.82z"/></svg>') 0 24, crosshair}

main{padding:2rem 8vw 8rem;max-width:1200px;margin:0 auto}
.section-block{padding:4rem 0;border-bottom:1px solid rgba(255,255,255,.08)}
.kicker{color:var(--muted);margin-bottom:.5rem}

.work-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:48px;row-gap:42px}
.work-item{padding:1rem;border:1px dashed rgba(255,255,255,.12);border-radius:10px;transition:transform .2s ease,border-color .2s ease,background-color .2s ease}
.work-item:hover{transform:translateY(-3px) scale(1.01);border-color:rgba(255,255,255,.25);background-color:rgba(255,255,255,.03)}
.work-item .meta{opacity:.75;margin:.25rem 0 .5rem}
.work-item h3{position:relative;display:inline-block}
.work-item h3::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:2px;background:linear-gradient(90deg,var(--accent),transparent);transform:scaleX(0);transform-origin:left;transition:transform .25s ease}
.work-item:hover h3::after{transform:scaleX(1)}
.work-item ul{list-style:none;padding-left:0;margin:0}
.work-item ul li{position:relative;padding-left:18px;margin:.35rem 0}
.work-item ul li::before{content:"—";position:absolute;left:0;color:var(--muted)}
.work-item ul li::after{content:""}

/* timeline center spine */
#work .work-grid{position:relative;display:grid;grid-template-columns:1fr 1fr;column-gap:48px;row-gap:42px}
#work .work-grid::before{content:"";position:absolute;top:0;bottom:0;left:50%;width:2px;background:rgba(0,0,0,.12);transform:translateX(-1px)}
body.dark-mode #work .work-grid::before{background:rgba(255,255,255,.15)}
#work .work-item{position:relative}
#work .work-item:nth-child(odd){grid-column:1}
#work .work-item:nth-child(even){grid-column:2}
#work .work-item{margin-top:0;transition:opacity .45s ease, border-color .2s ease, background-color .2s ease}
#work .work-item:nth-child(odd)::before{content:"";position:absolute;top:14px;right:-22px;width:22px;height:2px;background:rgba(0,0,0,.2)}
#work .work-item:nth-child(even)::before{content:"";position:absolute;top:14px;left:-22px;width:22px;height:2px;background:rgba(0,0,0,.2)}
#work .work-item::after{content:"";position:absolute;top:10px;width:10px;height:10px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 2px var(--bg)}
#work .work-item:nth-child(odd)::after{right:-28px}
#work .work-item:nth-child(even)::after{left:-28px}
body.dark-mode #work .work-item:nth-child(odd)::before,
body.dark-mode #work .work-item:nth-child(even)::before{background:rgba(255,255,255,.25)}

/* date label visible on the left rail */
.tl-label{display:block}

/* scroll reveal state */
#work .work-item.reveal{opacity:0;transform:translateY(28px)}
#work .work-item.revealed{opacity:1;transform:translateY(0)}

/* staircase offsets uniformes: mesmo espaçamento entre itens */
#work .work-item{margin-top:0}
#work .work-item:nth-child(even){margin-top:40px}

.edu-list{list-style:none;padding:0;margin:0}
.edu-list li{margin:.4rem 0;transition:transform .2s ease,color .2s ease}
.edu-list li:hover{transform:translateX(2px);color:var(--fg)}

.skills-inline{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:10px}
.skills-inline li{border:1px solid rgba(255,255,255,.18);padding:4px 8px;border-radius:999px;transition:border-color .2s ease,letter-spacing .2s ease}
.skills-inline li:hover{border-color:var(--accent);letter-spacing:.02em}

.contact .copy-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.copy-target{border:1px dashed rgba(255,255,255,.2);color:var(--fg);background:transparent;border-radius:6px;padding:.7rem 1rem;cursor:pointer;font-family:var(--mono)}
.copy-feedback{margin-top:.6rem;opacity:0;transition:opacity .15s ease}
.copy-feedback.show{opacity:1}

.type-form{margin-top:1rem}
.tf-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tf-field{display:grid;grid-template-rows:auto auto auto;gap:6px}
.tf-field.half{grid-column:auto}
.tf-field.full{grid-column:1 / -1}
.tf-label{font-size:.8rem;opacity:.85;letter-spacing:.08em}
.tf-field input,.tf-field textarea,.tf-field select{background:transparent;border:none;color:var(--fg);font-size:1.05rem;padding:.6rem .4rem .2rem 0;border-bottom:1px solid rgba(127,127,127,.4)}
.tf-field input:focus,.tf-field textarea:focus,.tf-field select:focus{outline:none;border-bottom-color:var(--accent);border-bottom-width:2px}
.tf-label{color:var(--muted)}
.tf-field input::placeholder,.tf-field textarea::placeholder{color:rgba(127,127,127,.75)}
.tf-sep{display:none}
.tf-submit{margin-top:12px;border:1px solid rgba(255,255,255,.25);background:transparent;color:var(--fg);padding:.9rem 1.2rem;border-radius:8px;cursor:pointer}

/* All-type step form (wizard) */
.wizard{max-width:780px;margin-top:16px}
.wiz-progress{height:2px;background:rgba(0,0,0,.08);position:relative;margin:8px 0 18px}
.wiz-bar{position:absolute;left:0;top:0;bottom:0;width:0;background:linear-gradient(90deg,var(--accent),#22c55e);transition:width .25s ease}
/* ===== WIZARD FORM STYLING ===== */
.wizard .wiz-steps{list-style:none;padding:0;margin:0}
.wiz-step{display:none}
.wiz-step.active{display:block;animation:fadeIn .25s ease}
.wiz-label{display:block;font-size:.8rem;color:var(--muted);letter-spacing:.08em;margin-bottom:6px}
.wizard input,.wizard textarea,.wizard select{width:100%;background:transparent;border:none;color:var(--fg);font-size:1.1rem;padding:.7rem .4rem .3rem 0;border-bottom:1px solid rgba(127,127,127,.4);transition:border-color .2s ease,border-width .2s ease}
.wizard input:focus,.wizard textarea:focus,.wizard select:focus{outline:none;border-bottom-color:var(--accent);border-bottom-width:2px}
.wiz-hint{opacity:.65;margin:.35rem 0 0;font-size:.85rem}
.wiz-controls{display:flex;gap:10px;align-items:center;margin-top:14px}
.wiz-prev,.wiz-next,.wiz-submit{border:1px solid rgba(255,255,255,.25);background:transparent;color:var(--fg);padding:.7rem 1rem;border-radius:8px;cursor:pointer;transition:all .2s ease;min-height:44px;display:flex;align-items:center;justify-content:center}
.wiz-prev:hover,.wiz-next:hover,.wiz-submit:hover{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.4)}
.wiz-submit{display:none}
.wiz-review .wiz-summary{border:1px dashed rgba(255,255,255,.25);padding:10px;border-radius:8px;background:rgba(255,255,255,.02)}

/* Progress bar styling */
.wiz-progress{width:100%;height:4px;background:rgba(255,255,255,.1);border-radius:2px;overflow:hidden;margin-bottom:1.5rem}
.wiz-bar{height:100%;background:linear-gradient(90deg,var(--accent),#22c55e);transition:width .3s ease;border-radius:2px}

/* Mobile form optimizations */
@media (max-width: 600px) {
  .wizard { padding: 1.5rem; border-radius: 12px; }
  .wiz-step { margin-bottom: 1.5rem; }
  .wiz-label { font-size: 0.75rem; margin-bottom: 8px; }
  .wizard input, .wizard textarea, .wizard select { 
    font-size: 1rem; 
    padding: 0.8rem 0.4rem 0.4rem 0; 
    min-height: 48px; /* Better touch target */
  }
  .wiz-hint { font-size: 0.8rem; margin-top: 0.5rem; }
  .wiz-controls { 
    flex-direction: column; 
    gap: 12px; 
    margin-top: 1.5rem; 
  }
  .wiz-prev, .wiz-next, .wiz-submit { 
    width: 100%; 
    text-align: center; 
    min-height: 48px; /* Better touch target */
    font-size: 1rem;
  }
  .wiz-progress { margin-bottom: 2rem; height: 6px; }
}

/* playful send success gag */
.wiz-fake-error{background:#fff3cd;color:#7a5d00;border:1px solid #ffe08a;border-radius:6px;padding:8px 10px;margin-top:10px}

@keyframes fadeIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

/* ===== CUSTOM CURSOR ===== */
.glass-blur{position:fixed;left:0;top:0;width:120px;height:120px;margin-left:-60px;margin-top:-60px;pointer-events:none;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-radius:50%;opacity:0;transition:opacity .18s ease, transform .18s ease;z-index:2}
.cursor-orb{position:fixed;left:0;top:0;width:80px;height:80px;margin-left:-40px;margin-top:-40px;pointer-events:none;opacity:1;transform:scale(1);transition:opacity .18s ease, transform .18s ease, filter .18s ease;z-index:3}
.orb-svg{width:100%;height:100%}
.orb-text{fill:#fff;font-family:var(--mono);animation:spin 12s linear infinite;transform-origin:50% 50%}
body:not(.dark-mode) .orb-text{fill:#111}

/* Hide cursor on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
  .cursor-orb, .glass-blur { display: none !important; }
}

.theme-fab,.print-fab{position:fixed;right:16px;width:46px;height:46px;border-radius:50%;border:1px solid rgba(255,255,255,.2);background:#111;color:#fff;display:grid;place-items:center;box-shadow:0 6px 20px rgba(0,0,0,.08);cursor:pointer;z-index:1000}
.theme-fab{top:50%;transform:translateY(-50%)}
.print-fab{top:calc(50% + 58px);transform:translateY(-50%)}
.print-fab::after{content:attr(data-tip);position:absolute;left:-8px;top:50%;transform:translate(-100%,-50%);background:rgba(0,0,0,.75);color:#fff;font-size:11px;padding:4px 6px;border-radius:4px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s ease}
.print-fab:hover::after{opacity:1}

@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}

/* ===== MOBILE OPTIMIZATION ===== */

/* Tablets - keep it simple */
@media (max-width: 900px) {
  /* Force single column for work grid */
  .work-grid, #work .work-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    width: 100% !important;
  }
  
  /* Force work items to full width */
  .work-item, #work .work-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Remove timeline elements */
  #work .work-grid::before,
  #work .work-item::before,
  #work .work-item::after {
    display: none !important;
  }
  
  /* Reset grid positioning */
  #work .work-item:nth-child(odd),
  #work .work-item:nth-child(even) {
    grid-column: auto !important;
    margin-top: 0 !important;
  }
  /* Header - clean and centered */
  header { 
    padding: 4vh 4vw; 
    text-align: center; 
  }
  .hero-lines .title { 
    font-size: clamp(2.5rem, 8vw, 5rem); 
    line-height: 0.9; 
  }
  .hero-lines .title .chunk.a { transform: none; }
  .hero-lines .title .chunk.b { transform: none; }
  .hero-meta { 
    flex-direction: column; 
    gap: 8px; 
    margin-top: 1rem; 
    opacity: 0.9; 
  }
  
  /* Photo - center and simple */
  .hero-photo { 
    position: relative; 
    right: auto; 
    top: auto; 
    width: clamp(120px, 25vw, 200px); 
    transform: none; 
    margin: 2rem auto 0; 
    border-radius: 16px; 
  }
  
  /* Main content */
  main { padding: 1rem 4vw 4rem; }
  .section-block { padding: 2rem 0; }
  
  /* Work grid - clean single column */
  .work-grid { 
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }
  #work .work-grid::before { display: none; }
  #work .work-item { 
    padding: 1.2rem; 
    margin: 0;
    border: 1px solid rgba(255,255,255,.1); 
    border-radius: 12px; 
    background: rgba(255,255,255,.02); 
    width: 100%;
    box-sizing: border-box;
  }
  #work .work-item::before,
  #work .work-item::after { display: none; }
  
  /* FABs - simple positioning */
  .theme-fab, .print-fab { 
    right: 16px; 
    width: 44px; 
    height: 44px; 
  }
  .theme-fab { top: 20px; transform: none; }
  .print-fab { top: 72px; transform: none; }
}

/* Mobile phones - SUPER SIMPLE & FUN! */
@media (max-width: 600px) {
  /* Force single column for work grid */
  .work-grid, #work .work-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    width: 100% !important;
  }
  
  /* Force work items to full width */
  .work-item, #work .work-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Remove timeline elements */
  #work .work-grid::before,
  #work .work-item::before,
  #work .work-item::after {
    display: none !important;
  }
  
  /* Reset grid positioning */
  #work .work-item:nth-child(odd),
  #work .work-item:nth-child(even) {
    grid-column: auto !important;
    margin-top: 0 !important;
  }
  
  /* Hide complex elements */
  .side-nav { display: none; }
  .mobile-menu-toggle { display: none; }
  .cursor-orb, .glass-blur { display: none; }
  
  /* Super clean header */
  header { 
    padding: 3vh 4vw 2vh; 
    text-align: center; 
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .hero-lines .title { 
    font-size: clamp(2.2rem, 9vw, 4.5rem); 
    line-height: 0.95; 
    letter-spacing: -0.02em; 
  }
  .hero-lines .kicker { 
    font-size: 0.9rem; 
    margin-bottom: 0.5rem; 
    opacity: 0.8; 
  }
  .hero-meta { 
    font-size: 0.9rem; 
    opacity: 0.9; 
    margin-top: 1.5rem; 
  }
  
  /* Photo - small and centered */
  .hero-photo { 
    width: clamp(100px, 35vw, 160px); 
    margin: 1.5rem auto 0; 
    transform: none; 
    border-radius: 16px; 
  }
  
  /* Main content - clean and spacious */
  main { 
    padding: 0.5rem 4vw 3rem; 
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .section-block { 
    padding: 2.5rem 0; 
    width: 100%;
    box-sizing: border-box;
  }
  .kicker { 
    font-size: 0.85rem; 
    margin-bottom: 0.5rem; 
    opacity: 0.7; 
  }
  
  /* Typography - readable */
  h2 { font-size: 1.6rem; margin-bottom: 1rem; }
  h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
  p { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
  
  /* Work items - clean cards */
  .work-item { 
    padding: 1.2rem; 
    margin: 0 0 1.5rem 0; 
    border-radius: 12px; 
    background: rgba(255,255,255,.03); 
    border: 1px solid rgba(255,255,255,.1); 
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    word-wrap: break-word;
  }
  .work-item h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
  .work-item .meta { 
    font-size: 0.9rem; 
    opacity: 0.8; 
    margin-bottom: 1rem; 
  }
  .work-item ul li { 
    font-size: 0.95rem; 
    padding-left: 20px; 
    margin-bottom: 0.5rem; 
  }
  
  /* Skills - clean grid */
  .skills-inline { 
    gap: 8px; 
    margin-top: 1rem; 
  }
  .skills-inline li { 
    font-size: 0.9rem; 
    padding: 6px 12px; 
    border-radius: 20px; 
    background: rgba(255,255,255,.05); 
  }
  
  /* Contact form - super clean */
  .wizard { 
    padding: 1.5rem; 
    border-radius: 16px; 
    background: rgba(255,255,255,.02); 
    border: 1px solid rgba(255,255,255,.1); 
  }
  .wiz-step { margin-bottom: 1.5rem; }
  .wiz-label { 
    font-size: 0.8rem; 
    margin-bottom: 0.5rem; 
    opacity: 0.8; 
  }
  .wizard input, .wizard textarea, .wizard select { 
    font-size: 1rem; 
    padding: 0.8rem 0.5rem 0.4rem 0; 
    min-height: 48px; 
    border-radius: 8px; 
    background: rgba(255,255,255,.05); 
  }
  .wiz-hint { 
    font-size: 0.8rem; 
    margin-top: 0.5rem; 
    opacity: 0.7; 
  }
  .wiz-controls { 
    flex-direction: column; 
    gap: 12px; 
    margin-top: 1.5rem; 
  }
  .wiz-prev, .wiz-next, .wiz-submit { 
    width: 100%; 
    text-align: center; 
    min-height: 48px; 
    font-size: 1rem; 
    border-radius: 8px; 
    background: rgba(255,255,255,.1); 
    border: 1px solid rgba(255,255,255,.2); 
  }
  .wiz-progress { 
    margin-bottom: 2rem; 
    height: 6px; 
    border-radius: 3px; 
  }
  
  /* FABs - clean and accessible */
  .theme-fab, .print-fab { 
    right: 12px; 
    width: 42px; 
    height: 42px; 
    border-radius: 12px; 
  }
  .theme-fab { top: 16px; }
  .print-fab { top: 66px; }
}

/* Very small phones - ultra clean */
@media (max-width: 400px) {
  header { padding: 2vh 3vw 1vh; }
  .hero-lines .title { font-size: clamp(1.8rem, 8vw, 3.5rem); }
  .hero-photo { width: clamp(80px, 30vw, 120px); }
  main { padding: 0.5rem 3vw 2.5rem; }
  .section-block { padding: 2rem 0; }
  
  .work-item { padding: 1rem; margin-bottom: 1rem; }
  .work-item h3 { font-size: 1.1rem; }
  .work-item .meta { font-size: 0.85rem; }
  
  .wizard { padding: 1.2rem; }
  .wizard input, .wizard textarea, .wizard select { font-size: 0.95rem; }
  
  .theme-fab, .print-fab { right: 8px; width: 40px; height: 40px; }
  .theme-fab { top: 14px; }
  .print-fab { top: 62px; }
}

/* Touch devices - remove hover effects */
@media (hover: none) and (pointer: coarse) {
  .side-nav a:hover { transform: none; }
  .work-item:hover { transform: none; }
  .skills-inline li:hover { letter-spacing: normal; }
  .wiz-prev:hover, .wiz-next:hover, .wiz-submit:hover { 
    background: rgba(255,255,255,.1); 
    border-color: rgba(255,255,255,.2); 
  }
}

@media print{
  :root{--bg:#ffffff!important;--fg:#000000!important}
  body{background:#fff!important;color:#000!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  /* esconder tudo que é interativo/visual */
  header,.side-nav,.glass-blur,.cursor-orb,.theme-fab,.print-fab,.copy-chips,.scroll-progress,#contact{display:none!important}
  .print-aside{display:none!important}
  /* capa simples no topo */
  .print-header.print-only{display:block!important}
  .print-header{background:#fff;color:#000;padding:0 18mm 6mm;margin:0 0 6mm;border-bottom:1px solid #000;page-break-after:avoid}
  .ph-name{font-size:24pt;margin:0}
  .ph-headline{font-size:12pt;margin:2mm 0 0}
  .ph-contact{font-size:10.5pt;margin:2mm 0 0;color:#000}
  /* corpo clássico */
  main{margin:0;padding:0 18mm}
  .section-block{padding:0 0 7mm 0;border:0;margin:0}
  #hero{display:none!important}
  /* ordem fluida, sem breaks forçados */
  #about,#work,#edu,#skills,#certs{break-before:auto;page-break-before:auto}
  /* force Skills to new page */
  #skills{break-before:page;page-break-before:always}
  /* timeline vira texto puro */
  #work .work-grid::before{display:none!important}
  #work .work-item::before,#work .work-item::after{display:none!important}
  .tl-label{display:block!important;color:#000;font-weight:600}
  /* garantir render do conteúdo de Work */
  #work{display:block!important}
  #work .work-grid{display:block!important}
  #work .work-item{display:block!important;color:#000!important;background:#fff!important;border:0!important;opacity:1!important;transform:none!important}
  #work .work-item.reveal{opacity:1!important;transform:none!important}
  #work .work-item ul{list-style:disc;margin-left:5mm}
  #work .work-item h3,#work .work-item p,#work .work-item li{color:#000!important}
  h1{font-size:24pt}
  h2{font-size:14pt}
  h3{font-size:11pt}
  p,li{font-size:10.5pt}
  .work-grid{display:block!important}
  .work-item{border:0;padding:0;margin:0 0 6mm 0;break-inside:avoid;page-break-inside:avoid}
  .edu-list li{break-inside:avoid;page-break-inside:avoid}
  .skills-inline li{border:0;padding:0}
}

.print-only{display:none}
.type-grid{position:fixed;inset:0;pointer-events:none;background-image:linear-gradient(to bottom, rgba(0,0,0,.08) 1px, transparent 1px), linear-gradient(to right, rgba(0,0,0,.06) 1px, transparent 1px);background-size:0 0;opacity:0;z-index:1}
body.dark-mode .type-grid{background-image:linear-gradient(to bottom, rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px)}
.type-grid.on{opacity:.45;background-size:0 24px, 24px 0}

/* emoji physics bin */
.emoji-bin{position:fixed;left:0;right:0;bottom:0;height:22vh;pointer-events:none;z-index:5}
.emoji-piece{position:fixed;left:0;top:0;font-size:20px;will-change:transform}
.print-header{padding:0 18mm 6mm}
.ph-name{font-size:24pt;margin:0}
.ph-headline{font-size:12pt;margin:2mm 0 0}
.ph-contact{font-size:10pt;margin:1mm 0 8mm;color:#333}
.print-footer{position:fixed;bottom:10mm;left:18mm;right:18mm;display:flex;justify-content:space-between;align-items:center;font-size:10pt}
.print-footer .pf-left{color:#333}
.print-footer .pf-right{color:#333}
.page-num::after{content:"Page " counter(page) " of " counter(pages)}

