/* Sara Jacinto — sarajacintodesign.pt · v4 design (Nov 2026)
   Light/dark alternating sections, fixed profile card, lime highlight. */

:root {
  --bg: #ECEAE4; --surface: #FFFFFF; --line: #DEDBD3; --line-2: #CFCBC2;
  --text: #15191B; --muted: #565F61; --dim: #868E90;
  --accent: #587000; --accent-soft: #EEF9C9;
  --dark: #16191C; --dark-2: #1F2427; --dark-line: #2E3539; --dark-line-2: #39424A;
  --on-dark: #EEF0EE; --on-dark-muted: #9EA8A9; --on-dark-dim: #717D7F;
  --lime: #C6F432; --lime-rgb: 198 244 50; --on-lime: #14180B;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --side-w: 344px;
  --content-left: 412px;
}
.dark, .theme-dark {
  --text: #EEF0EE; --muted: #9EA8A9; --dim: #717D7F; --surface: #1F2427; --line: #2E3539; --line-2: #39424A;
  --accent: #C6F432; --accent-soft: rgb(198 244 50 / .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body.theme-dark { background: var(--dark); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--lime); color: var(--on-lime); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { left: 16px; }
.ic { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- profile card ---------- */
.side {
  position: fixed; left: 28px; top: 28px; bottom: 28px; width: var(--side-w); z-index: 40;
  border-radius: 28px; background: var(--dark); color: var(--on-dark);
  padding: 24px 24px 20px; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .5); border: 1px solid var(--dark-line);
}
.side .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 0 4px; }
.side .name { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.side .role { text-align: right; font-size: 12px; line-height: 1.35; color: var(--on-dark-muted); }
.side .photo { margin-top: 16px; height: clamp(140px, 27vh, 250px); border-radius: 20px; overflow: hidden; background: #9a9a9a; flex-shrink: 0; }
.side .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; filter: grayscale(1) contrast(1.04); transition: transform .8s var(--ease); }
.side .photo:hover img { transform: scale(1.04); }
.side .mail { margin-top: 14px; padding: 0 4px; font-size: 14px; font-weight: 600; transition: color .2s; word-break: break-all; }
.side .mail:hover { color: var(--lime); }
.side .loc { margin-top: 2px; padding: 0 4px; color: var(--on-dark-muted); font-size: 12.5px; }
.avail { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--lime); border: 1px solid rgb(var(--lime-rgb) / .35); border-radius: 999px; padding: 5px 10px; }
.avail i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(var(--lime-rgb) / .5); } 50% { box-shadow: 0 0 0 5px rgb(var(--lime-rgb) / 0); } }
.side .avail { margin: 10px 4px 0; align-self: flex-start; }
.menu { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--dark-line); }
.menu li { border-bottom: 1px solid var(--dark-line); }
.menu a { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; padding: clamp(5px, 1.05vh, 10px) 6px; font-size: 15px; color: var(--on-dark-muted); transition: color .25s, padding .25s var(--ease); }
.menu a:hover { color: var(--on-dark); padding-left: 10px; }
.menu small { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--on-dark-dim); transition: color .25s; }
.menu .bar { width: 0; height: 2px; border-radius: 2px; background: var(--lime); transition: width .35s var(--ease); }
.menu li.on a { color: var(--on-dark); font-weight: 600; }
.menu li.on small { color: var(--lime); }
.menu li.on .bar { width: 26px; }
.side .hire { margin-top: auto; padding-top: 14px; }
.btn-lime, .btn-dark, .btn-line {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 800; font-size: 14.5px; letter-spacing: .02em;
  border: 1.5px solid transparent; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), color .25s, background .25s, border-color .25s;
}
.btn-lime { background: var(--lime); color: var(--on-lime); }
.btn-lime::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: translateY(101%); transition: transform .35s var(--ease); }
.btn-lime:hover::before { transform: translateY(0); }
.btn-lime:hover { box-shadow: 0 12px 24px -12px rgb(var(--lime-rgb) / .9); transform: translateY(-2px); }
.btn-dark { background: var(--text); color: var(--bg); }
.dark .btn-dark, .theme-dark .btn-dark { background: var(--lime); color: var(--on-lime); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgb(0 0 0 / .5); }
.btn-line { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--text); transform: translateY(-2px); }
.btn-lime .ic, .btn-dark .ic, .btn-line .ic { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn-lime:hover .ic, .btn-dark:hover .ic, .btn-line:hover .ic { transform: translateX(4px); }
.side .hire .btn-lime { width: 100%; letter-spacing: .06em; }
.side .foot { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; padding: 0 4px; font-size: 11.5px; color: var(--on-dark-dim); }
.round-link { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--dark-line-2); display: grid; place-items: center; color: var(--on-dark-muted); font-size: 11px; font-weight: 800; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.round-link:hover { background: var(--lime); color: var(--on-lime); border-color: var(--lime); transform: rotate(-8deg); }

/* language switch */
.lang { position: fixed; right: 36px; top: 30px; z-index: 30; display: flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; background: rgb(255 255 255 / .85); backdrop-filter: blur(10px); }
.lang { border-color: #CFCBC2; }
.lang a, .lang span { padding: 7px 12px; border-radius: 999px; color: #565F61; transition: background .2s, color .2s; }
.lang a:hover { color: #15191B; }
.lang [aria-current="true"] { background: #15191B; color: #fff; }

/* ---------- mobile top bar ---------- */
.topbar { display: none; }
@media (max-width: 1099px) {
  .side { position: static; width: auto; margin: 76px 16px 0; bottom: auto; top: auto; overflow: visible; display: grid; grid-template-columns: 132px 1fr; gap: 6px 18px; padding: 18px; }
  .side .top { grid-column: 1 / -1; padding: 0; }
  .side .photo { grid-row: span 4; margin-top: 4px; height: 160px; }
  .side .mail { margin-top: 6px; padding: 0; }
  .side .loc { padding: 0; }
  .side .avail { margin: 6px 0 0; }
  .side .menu, .side .foot { display: none; }
  .side .hire { margin-top: 6px; padding-top: 0; }
  .side .hire .btn-lime { height: 44px; font-size: 13px; }
  .lang { display: none; }
  .topbar { display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 64px; padding: 0 16px; align-items: center; justify-content: space-between; background: rgb(22 25 28 / .92); backdrop-filter: blur(12px); color: var(--on-dark); border-bottom: 1px solid var(--dark-line); }
  .topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
  .topbar .mark { width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
  .topbar .tools-r { display: flex; align-items: center; gap: 8px; }
  .topbar .lang-m { display: flex; border: 1px solid var(--dark-line-2); border-radius: 999px; padding: 3px; font-size: 11.5px; font-weight: 700; }
  .topbar .lang-m a, .topbar .lang-m span { padding: 6px 10px; border-radius: 999px; color: var(--on-dark-muted); }
  .topbar .lang-m [aria-current="true"] { background: var(--lime); color: var(--on-lime); }
  .menu-btn { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--dark-line-2); background: transparent; color: var(--on-dark); font-weight: 700; cursor: pointer; }
  .drawer { position: fixed; top: 64px; left: 0; right: 0; z-index: 49; background: var(--dark); border-bottom: 1px solid var(--dark-line); padding: 8px 16px 18px; transform: translateY(-120%); transition: transform .35s var(--ease); }
  .drawer.open { transform: translateY(0); }
  .drawer .menu { margin: 0; }
}
@media (max-width: 520px) {
  .side { grid-template-columns: 1fr; }
  .side .photo { grid-row: auto; height: 260px; }
}
@media (min-width: 1100px) { .drawer { display: none; } }

/* ---------- main layout ---------- */
main { margin-left: 0; }
.sec { position: relative; padding: 104px 110px 96px calc(var(--content-left) + 60px); }
.sec.dark { background: var(--dark); color: var(--text); }
.sec:not(.dark) { background: var(--bg); }
.page-light .gallery { background: var(--bg); }
@media (max-width: 1099px) { body { background: var(--dark); } .side { margin-top: 80px; } .drawer { padding-top: 12px; } }
.sec-inner { max-width: 880px; }
@media (max-width: 1099px) { .sec { padding: 72px 20px 64px; } .sec-inner { margin: 0 auto; } }
section[id] { scroll-margin-top: 0; }
@media (max-width: 1099px) { section[id] { scroll-margin-top: 64px; } }

.pill { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pill .ic { width: 15px; height: 15px; }
.sec:not(.dark) .pill::before, .page-light .pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgb(var(--lime-rgb) / .3); }
.dark .pill, .theme-dark .pill { background: transparent; }
.dark .pill .ic, .theme-dark .pill .ic { color: var(--lime); }
h2.big, .page-head h1, .simple h1 { text-wrap: balance; }
h2.big { margin-top: 28px; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.06; font-weight: 400; letter-spacing: -.025em; }
.acc { color: var(--text); background: linear-gradient(transparent 60%, var(--lime) 60%, var(--lime) 92%, transparent 92%); padding: 0 .06em; }
.dark .acc, .theme-dark .acc { color: var(--lime); background: none; padding: 0; }
.lead { margin-top: 22px; font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 660px; }

/* ---------- 1 hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; }
@media (max-width: 1099px) { .hero { min-height: auto; } }
.hero .sec-inner { width: 100%; position: relative; }
.hero h1 { margin-top: 34px; font-size: clamp(46px, 6vw, 84px); line-height: 1.04; font-weight: 300; letter-spacing: -.035em; }
.hero h1 b { font-weight: 600; color: var(--lime); }
.hero .actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .bottom { margin-top: 64px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.stats { display: flex; gap: 56px; flex-wrap: wrap; }
.stats b { display: block; font-size: clamp(44px, 4.5vw, 62px); font-weight: 300; letter-spacing: -.03em; color: var(--lime); line-height: 1; }
.stats span { display: block; margin-top: 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.seal { position: relative; width: 176px; height: 176px; flex-shrink: 0; }
.seal .ring { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.seal .ring circle { stroke: var(--line-2); }
.seal .ring text { fill: var(--muted); }
.seal:hover .ring { animation-duration: 6s; }
.seal .core { position: absolute; left: 50%; top: 50%; width: 86px; height: 86px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--lime); color: var(--on-lime); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; letter-spacing: -.02em; box-shadow: 0 0 0 10px var(--accent-soft); transition: transform .4s var(--ease); }
.seal:hover .core { transform: translate(-50%, -50%) scale(1.08) rotate(-6deg); }
.seal .core em { font-style: normal; font-weight: 300; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 2 about ---------- */
.about-cols { margin-top: 30px; display: grid; grid-template-columns: 1fr 260px; gap: 34px; align-items: start; }
@media (max-width: 800px) { .about-cols { grid-template-columns: 1fr; } }
.about-text p { font-size: 16.5px; line-height: 1.75; color: var(--muted); }
.about-text p + p { margin-top: 14px; }
.about-text p:first-child { color: var(--text); font-size: 17.5px; }
.about-side { display: grid; gap: 14px; }
.mini { border: 1px solid var(--line); border-radius: 22px; padding: 22px; background: var(--surface); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.mini:hover { transform: translateY(-4px); box-shadow: 0 20px 30px -22px rgb(0 0 0 / .35); }
.mini .ic { width: 26px; height: 26px; color: var(--accent); }
.mini h3 { margin-top: 12px; font-size: 17px; font-weight: 700; }
.mini p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- 3 services ---------- */
.svc { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; } }
.svc .card { position: relative; border: 1px solid var(--line); border-radius: 24px; padding: 30px; background: var(--surface); min-height: 230px; display: flex; flex-direction: column; overflow: hidden; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.svc .card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgb(var(--lime-rgb) / .25), transparent 70%); opacity: 0; transition: opacity .35s; }
.svc .card:hover { transform: translateY(-5px); border-color: rgb(var(--lime-rgb) / .45); box-shadow: 0 24px 40px -26px rgb(0 0 0 / .8); }
.svc .card:hover::after { opacity: 1; }
.svc .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.svc h3 { font-size: 23px; font-weight: 600; }
.svc .card .ic { width: 28px; height: 28px; color: var(--lime); transition: transform .4s var(--ease); }
.svc .card:hover .ic { transform: rotate(-10deg) scale(1.1); }
.svc p { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.svc .go { margin-top: auto; padding-top: 18px; color: var(--lime); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.svc .go .ic { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.svc .go:hover .ic { transform: translateX(5px); }

/* ---------- 4 portfolio ---------- */
.works { margin-top: 34px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px 18px; }
.work { grid-column: span 3; display: block; }
.work.wide { grid-column: span 6; }
.work.third { grid-column: span 2; }
@media (max-width: 760px) { .works { grid-template-columns: 1fr; } .work, .work.wide, .work.third { grid-column: auto; } }
.shot { position: relative; border-radius: 22px; overflow: hidden; background: #d9d6ce; aspect-ratio: 4 / 3; }
.work.wide .shot { aspect-ratio: 16 / 8; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work:hover .shot img { transform: scale(1.05); }
.shot .tag { position: absolute; left: 14px; bottom: 14px; background: rgb(255 255 255 / .94); color: #15191B; border-radius: 999px; padding: 7px 13px; font-size: 12.5px; font-weight: 700; }
.shot .open { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border-radius: 50%; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; transform: scale(.6) rotate(-45deg); opacity: 0; transition: transform .35s var(--ease), opacity .35s; }
.work:hover .shot .open, .work:focus-visible .shot .open { transform: scale(1) rotate(-45deg); opacity: 1; }
.work-title { margin-top: 12px; font-size: 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.work-title small { font-size: 11.5px; color: var(--dim); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.more-row { margin-top: 30px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.count { color: var(--dim); font-size: 14px; font-weight: 600; }

/* ---------- 5 path ---------- */
.tools { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.tool { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 16px 6px 6px; font-size: 14.5px; font-weight: 600; transition: transform .25s var(--ease), box-shadow .25s; }
.tool:hover { transform: translateY(-3px); box-shadow: 0 12px 20px -14px rgb(0 0 0 / .35); }
.tool b { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; background: var(--dark); color: var(--lime); }
.tool.d b { background: var(--accent-soft); color: var(--accent); }
.path { margin-top: 38px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; }
@media (max-width: 860px) { .path { grid-template-columns: 1fr; } }
.path h3 { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.tl time { color: var(--accent); font-weight: 700; }
.tl b { font-weight: 700; display: block; }
.tl span { color: var(--muted); }
@media (max-width: 480px) { .tl li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- 6 contact ---------- */
.contact-form { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; }
@media (max-width: 640px) { .contact-form { grid-template-columns: 1fr; } }
.contact-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-size: 15.5px; color: var(--text); background: var(--surface); width: 100%;
  border: 1px solid var(--line-2); border-radius: 16px; padding: 15px 17px; transition: border-color .2s, box-shadow .2s;
}
.contact-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.contact-form select option { color: #15191B; background: #fff; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--dim); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgb(var(--lime-rgb) / .18); }
.contact-form .send-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.contact-form button[disabled] { opacity: .6; cursor: wait; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.form-status.ok { color: var(--lime); }
.form-status.err { color: #FF8A7A; }
.direct { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.chip-link { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 11px 18px; font-size: 15px; font-weight: 600; transition: border-color .25s, transform .25s var(--ease); }
.chip-link .ic { color: var(--accent); }
.chip-link:hover { border-color: var(--lime); transform: translateY(-2px); }

.mini-foot { padding: 28px 110px 34px calc(var(--content-left) + 60px); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--on-dark-dim); background: var(--dark); border-top: 1px solid var(--dark-line); }
.mini-foot a:hover { color: var(--lime); }
@media (max-width: 1099px) { .mini-foot { padding: 24px 20px; } }

/* ---------- gallery pages ---------- */
.gallery { padding: 104px 110px 40px calc(var(--content-left) + 60px); max-width: calc(1100px + var(--content-left)); }
@media (max-width: 1099px) { .gallery { padding: 40px 20px 30px; } }
.page-head h1 { margin-top: 28px; font-size: clamp(42px, 5vw, 68px); line-height: 1.05; font-weight: 300; letter-spacing: -.03em; }
.page-head p { margin-top: 18px; max-width: 640px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.page-head .eyebrow { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.page-head .eyebrow .ic { width: 15px; height: 15px; color: var(--accent); }
.index { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.index a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s, border-color .2s; }
.index a:hover { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.project { padding: 46px 0; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.page-head + .project { margin-top: 40px; }
@media (max-width: 1099px) { .project { scroll-margin-top: 70px; } }
.project-head { display: grid; gap: 6px; margin-bottom: 24px; }
@media (min-width: 768px) { .project-head { grid-template-columns: 72px 1fr; align-items: baseline; } }
.project-num { font-size: 15px; font-weight: 800; color: var(--accent); letter-spacing: .06em; }
.project-head h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
.project-sub { color: var(--muted); margin-top: 4px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.chip .ic { width: 16px; height: 16px; color: var(--accent); }
.room { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 28px 0 14px; }
.room:first-of-type { margin-top: 0; }
.room .ic { width: 17px; height: 17px; color: var(--accent); }
.masonry { column-count: 1; column-gap: 16px; }
@media (min-width: 640px) { .masonry { column-count: 2; } }
.masonry figure { margin: 0 0 16px; break-inside: avoid; }
.masonry button { display: block; width: 100%; padding: 0; border: 0; background: #d9d6ce; cursor: zoom-in; border-radius: 18px; overflow: hidden; }
.masonry img { width: 100%; transition: transform .7s var(--ease); }
.masonry button:hover img { transform: scale(1.04); }
.next-page { padding: 50px 0 70px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.next-page p { color: var(--muted); font-weight: 600; }

/* lightbox */
.lightbox { border: 0; padding: 0; margin: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgb(14 16 18 / .96); color: #fff; }
.lightbox::backdrop { background: rgb(14 16 18 / .96); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: calc(100vw - 2rem); max-height: calc(100vh - 7rem); width: auto; height: auto; border-radius: 10px; }
@media (min-width: 768px) { .lightbox img { max-width: calc(100vw - 10rem); } }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .1); color: #fff; font-size: 24px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s; }
.lb-btn:hover { background: var(--lime); color: var(--on-lime); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-caption { position: absolute; bottom: 22px; left: 16px; right: 16px; text-align: center; color: #c9cfcf; font-size: 15px; }
@media (max-width: 767px) { .lb-prev, .lb-next { top: auto; bottom: 60px; transform: none; } }

/* simple pages (404 / thank you) */
.simple { min-height: 80vh; display: flex; align-items: center; }
.simple h1 { margin-top: 26px; font-size: clamp(40px, 5vw, 64px); line-height: 1.06; font-weight: 300; letter-spacing: -.03em; }
.simple .actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .side, .topbar, .drawer, .lang { display: none; } main { margin: 0; } }
