/*
Theme Name: LeNSLab Sustainable Design
Theme URI: https://lenslab.example
Author: LeNSLab
Description: A high-end minimal WordPress theme for LeNSLab Sustainable Design International Joint Laboratory.
Version: 1.0.0
Text Domain: lenslab
*/

:root {
  --ink: #1a1a1a;
  --text: #2c2c2c;
  --muted: #888888;
  --paper: #ffffff;
  --warm: #f5f3f0;
  --sage: #8ba888;
  --line: rgba(26, 26, 26, .14);
  --gutter: clamp(24px, 10vw, 168px);
  --grid-gap: clamp(20px, 2.4vw, 40px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--paper); font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
button, input, textarea { font: inherit; }

.site-header { position: fixed; z-index: 50; top: 0; left: 0; width: 100%; padding: 25px var(--gutter); transition: padding .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { padding-top: 16px; padding-bottom: 16px; border-color: rgba(26,26,26,.08); background: rgba(255,255,255,.78); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.header-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1600px; margin: auto; }
.brand { display: flex; align-items: center; gap: 12px; letter-spacing: .08em; font-size: 11px; font-weight: 500; line-height: 1.25; text-transform: uppercase; }
.brand-mark { width: 26px; height: 26px; border: 1px solid var(--ink); border-radius: 50%; position: relative; flex: 0 0 auto; }
.brand-mark::after { content: ""; position: absolute; width: 8px; height: 8px; top: 4px; left: 4px; border-radius: 50%; background: var(--sage); }
.main-navigation ul { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 38px); margin: 0; padding: 0; list-style: none; }
.main-navigation a, .text-link { position: relative; padding-bottom: 4px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; transition: color .3s ease; }
.main-navigation a::after, .text-link::after { content: ""; position: absolute; bottom: 0; left: 50%; height: 1px; width: 0; background: var(--sage); transition: width .3s ease, left .3s ease; }
.main-navigation a:hover, .main-navigation .current-menu-item > a, .text-link:hover { color: var(--sage); }
.main-navigation a:hover::after, .main-navigation .current-menu-item > a::after, .text-link:hover::after { width: 100%; left: 0; }
.language-switcher { margin-left: clamp(18px, 2.2vw, 36px); padding-left: clamp(18px, 2.2vw, 30px); border-left: 1px solid var(--line); }
.language-switcher ul { display: flex; gap: 9px; margin: 0; padding: 0; list-style: none; }
.language-switcher a { color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; transition: color .3s ease; }
.language-switcher a:hover, .language-switcher .current-lang a { color: var(--sage); }
.menu-toggle { display: none; background: transparent; border: 0; padding: 5px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

.hero { min-height: 100svh; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 0 var(--gutter) clamp(60px, 9vh, 112px); background: #fdfdfc; }
.ambient { position: absolute; width: min(50vw, 720px); aspect-ratio: 1; border-radius: 50%; filter: blur(100px); opacity: .72; pointer-events: none; will-change: transform; }
.ambient-one { top: -13%; right: -11%; background: radial-gradient(circle, #fff8f0 0%, rgba(255,248,240,.76) 30%, transparent 72%); animation: drift-one 75s ease-in-out infinite alternate; }
.ambient-two { bottom: -18%; left: 7%; background: radial-gradient(circle, rgba(139,168,136,.5) 0%, rgba(139,168,136,.19) 36%, transparent 72%); animation: drift-two 89s ease-in-out infinite alternate; }
@keyframes drift-one { from { transform: translate3d(0,0,0); } to { transform: translate3d(-10vw, 8vh, 0); } }
@keyframes drift-two { from { transform: translate3d(0,0,0); } to { transform: translate3d(13vw, -7vh, 0); } }
.hero-inner { z-index: 1; width: 100%; max-width: 1600px; margin: 0 auto; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 22px; color: var(--muted); font-size: 11px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; height: 1px; width: 32px; background: var(--sage); }
.hero h1 { max-width: 1380px; margin: 0; color: var(--ink); font-size: clamp(3.3rem, 8vw, 8rem); font-weight: 300; line-height: .95; letter-spacing: .105em; text-transform: uppercase; }
.hero h1 .cn { display: block; margin-top: .23em; font-size: clamp(1.2rem, 2.45vw, 2.45rem); font-weight: 300; letter-spacing: .28em; }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: clamp(50px, 10vh, 130px); }
.hero-slogan { margin: 0; font-size: clamp(1rem, 1.4vw, 1.35rem); font-weight: 400; letter-spacing: .18em; text-transform: uppercase; }
.scroll-cue { color: var(--muted); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; writing-mode: vertical-rl; }

.section { padding: clamp(80px, 12vw, 180px) var(--gutter); }
.section-inner { width: 100%; max-width: 1600px; margin: 0 auto; }
.intro { padding-top: clamp(76px, 11vw, 154px); }
.intro-statement { max-width: 850px; margin: 0; color: var(--ink); font-size: clamp(1.75rem, 3.4vw, 3.8rem); font-weight: 300; line-height: 1.32; letter-spacing: -.035em; }
.section-rule { width: 100%; height: 1px; margin-top: clamp(64px, 10vw, 150px); background: var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: clamp(38px, 6vw, 84px); }
.section-heading h2 { margin: 0; font-size: clamp(1.9rem, 3.3vw, 3.7rem); font-weight: 300; line-height: 1; letter-spacing: -.045em; }
.section-number { color: var(--sage); font-size: 11px; letter-spacing: .14em; }

.research-list { border-top: 1px solid var(--line); }
.research-item { display: grid; grid-template-columns: 1.4fr 4fr 4fr; gap: var(--grid-gap); align-items: baseline; padding: 25px 0 28px; border-bottom: 1px solid var(--line); transition: padding-left .4s var(--ease), color .3s ease; }
.research-item:hover { color: var(--sage); padding-left: 12px; }
.research-item .number { color: var(--sage); font-size: 12px; letter-spacing: .12em; }
.research-item h3 { margin: 0; font-size: clamp(1.25rem, 1.7vw, 1.75rem); font-weight: 400; line-height: 1.3; }
.research-item p { max-width: 380px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.projects { background: var(--warm); }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 50px) var(--grid-gap); }
.project-card { grid-column: span 4; min-width: 0; }
.project-card:nth-child(3n + 2) { margin-top: clamp(40px, 8vw, 128px); }
.project-image { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #deded9, #b1bcb0); }
.project-image::after { content: ""; position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle at 50% 50%, rgba(139,168,136,.5), transparent 64%); transition: opacity .45s var(--ease); }
.project-image img { height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.04); transition: transform .65s var(--ease), filter .45s var(--ease); }
.project-card:hover .project-image img { transform: scale(1.045); }
.project-card:hover .project-image img { filter: saturate(.92) contrast(1.04); }
.project-image-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #deded9, #b1bcb0); }
.project-card:hover .project-image::after { opacity: .55; }
.project-meta { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--muted); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.project-meta span + span::before { content: "/"; margin-right: 10px; color: var(--sage); }
.project-card h3 { margin: 8px 0 0; font-size: clamp(1.15rem, 1.55vw, 1.55rem); font-weight: 400; line-height: 1.35; }

.news-list { border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 1.4fr 6fr auto; gap: var(--grid-gap); align-items: center; padding: 23px 0; border-bottom: 1px solid var(--line); }
.news-date { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.news-item h3 { margin: 0; font-size: clamp(1.1rem, 1.65vw, 1.65rem); font-weight: 400; line-height: 1.4; }
.arrow { color: var(--sage); font-size: 23px; transition: transform .3s var(--ease); }
.news-item:hover .arrow { transform: translateX(8px); }

.page-hero { padding: clamp(160px, 24vw, 290px) var(--gutter) clamp(70px, 10vw, 130px); }
.page-hero-inner, .page-content { max-width: 1600px; margin: auto; }
.page-hero h1 { max-width: 1100px; margin: 0; color: var(--ink); font-size: clamp(3rem, 7vw, 7.2rem); font-weight: 300; line-height: .96; letter-spacing: -.065em; }
.page-content { padding: 0 var(--gutter) clamp(100px, 14vw, 200px); }
.prose { max-width: 680px; font-size: 17px; }
.prose h2 { margin: 70px 0 22px; color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.8rem); font-weight: 300; line-height: 1.2; }
.prose p { margin: 0 0 22px; }
.prose a { border-bottom: 1px solid var(--sage); }
.entry-image { margin: 0 0 50px; }

.site-footer { padding: clamp(60px, 9vw, 120px) var(--gutter) 34px; color: #fff; background: var(--ink); }
.footer-inner { max-width: 1600px; margin: auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--grid-gap); padding-bottom: clamp(60px, 9vw, 120px); }
.footer-title { max-width: 570px; margin: 0; font-size: clamp(1.6rem, 3vw, 3.1rem); font-weight: 300; line-height: 1.2; letter-spacing: -.04em; }
.footer-label { margin: 0 0 12px; color: var(--sage); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.footer-text { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.8; }
.footer-text a:hover { color: var(--sage); }
.footer-bottom { display: flex; justify-content: space-between; gap: 22px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.42); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .15s; }
.reveal-delay-2 { transition-delay: .3s; }
.screen-reader-text { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

@media (max-width: 760px) {
  .site-header { padding-top: 18px; padding-bottom: 18px; }
  .menu-toggle { display: block; }
  .main-navigation { position: absolute; top: 100%; left: 0; width: 100%; display: none; padding: 23px var(--gutter) 28px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { display: grid; gap: 17px; }
  .language-switcher { margin-left: auto; margin-right: 16px; padding-left: 0; border-left: 0; }
  .hero { min-height: 740px; }
  .hero-bottom { margin-top: 65px; }
  .scroll-cue { display: none; }
  .research-item, .news-item { grid-template-columns: 1fr; gap: 7px; }
  .research-item { padding: 22px 0; }
  .news-item { position: relative; padding-right: 32px; }
  .news-item .arrow { position: absolute; right: 0; top: 50%; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { grid-column: auto; }
  .project-card:nth-child(3n + 2) { margin-top: 0; }
  .project-image { aspect-ratio: 1.18; }
  .footer-top { grid-template-columns: 1fr; gap: 42px; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
