/* EPTA · Espacio cliente. Shared presentation layer, isolated from the core. */
:root {
    --accent:#626b54; --accent-d:#414b38; --bg:#f5f3ee; --card-bg:#fffefa;
    --ink:#2e342c; --muted:#6c7167; --line:#dedfd5; --paper:#fffefa;
    --font:'Termina',sans-serif; --reading:Arial,Helvetica,sans-serif;
    --gray-400:#6c7167; --gray-300:#8a8e82; --black:#2e342c;
}
html { background:var(--bg); scroll-behavior:smooth; scroll-padding-top:96px; }
body.epta-theme { background:var(--bg); color:var(--ink); }
::selection { background:#dce1cf; color:#293027; }
a,button,input { -webkit-tap-highlight-color:transparent; }
a:focus-visible,button:focus-visible,input:focus-visible { outline:2px solid #626b54; outline-offset:4px; }
.site-header { background:rgba(250,249,245,.97); border:0; border-bottom:1px solid var(--line); backdrop-filter:blur(16px); }
.header-inner { max-width:1360px; height:60px; padding:0 48px; border:0; }
.header-logo img { height:44px !important; }
.logo-text { color:var(--ink) !important; }
.logo-sub { color:var(--muted) !important; font-size:10px; letter-spacing:.06em; }
.logo-divider { color:#c2c6b8 !important; margin:0 18px; }
.dropdown-toggle { color:var(--ink); height:40px; border-radius:6px; }
.dropdown-toggle:hover { color:var(--accent-d); background:#e9ece2; }
.dropdown-menu { background:var(--paper); border:1px solid var(--line); border-radius:10px; box-shadow:0 12px 40px #28311d16; }
.dropdown-item { color:var(--ink); border-color:var(--line); line-height:1.6; }
.dropdown-item:hover,.dropdown-item.active { color:var(--accent-d); background:#ecefe5; }
.dropdown-item.active::after { background:var(--accent); }
.btn-login-header,.experience-button { display:inline-flex; align-items:center; justify-content:center; gap:24px; padding:15px 24px; border:1px solid var(--accent-d); border-radius:5px; background:var(--accent-d); color:#fffefa; text-decoration:none; font:500 11px/1.6 var(--font); letter-spacing:0; text-transform:none; min-height:46px; transition:background .2s,transform .2s; }
.btn-login-header { padding:10px 18px; gap:10px; min-height:40px; }
.btn-login-header:hover,.experience-button:hover { background:#303c28; color:#fffefa; transform:translateY(-1px); opacity:1; }
.experience-button--line { background:transparent; color:var(--ink); border-color:#bdc3b4; }
.experience-link { display:inline-flex; align-items:center; gap:20px; color:var(--ink); text-decoration:none; font:500 11px/1.7 var(--font); padding:10px 0; border-bottom:1px solid #a5ae96; }
.experience-link:hover { color:var(--accent); }
.experience-eyebrow { font:500 9px/1.7 var(--font); letter-spacing:.16em; text-transform:uppercase; color:var(--muted); margin:0 0 22px; }
.experience-actions { display:flex; align-items:center; flex-wrap:wrap; gap:18px 28px; margin-top:28px; }
.home-hero { position:relative; background:var(--bg); padding:46px 48px 54px; border:0; overflow:visible; }
.home-hero-inner { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:64px; max-width:1184px; margin:auto; }
.home-hero-copy { padding:30px 0; }
.home-hero-label { color:var(--muted); font-size:9px; letter-spacing:.17em; margin-bottom:26px; }
.home-hero-title { color:var(--ink); font-size:clamp(28px,3.3vw,46px); letter-spacing:-.04em; font-weight:400; line-height:1.25; margin:0; }
.home-hero-title em { display:block; color:var(--accent); font-family:Georgia,'Times New Roman',serif; font-size:1.24em; font-weight:400; letter-spacing:-.025em; line-height:1.15; margin-top:5px; }
.home-hero-sub { font:16px/1.85 var(--reading); color:var(--muted); max-width:420px; margin-top:25px; }
.home-hero-visual { position:relative; min-width:0; }
.home-hero-visual img { display:block; width:100%; height:420px; object-fit:cover; object-position:30% center; border-radius:7px 7px 65px 7px; }
.home-hero-caption { display:flex; justify-content:space-between; gap:16px; font:9px/1.6 var(--font); color:var(--muted); padding-top:15px; }
.home-hero-caption span:last-child { color:var(--accent); }
.home-hero--welcome { padding-top:36px; padding-bottom:38px; }
.home-hero--welcome .home-hero-visual img { height:285px; }
.home-hero--welcome .home-hero-title { font-size:clamp(26px,2.7vw,38px); }
.home-hero--welcome .home-hero-label { margin-bottom:18px; }
.home-hero--direct { padding-top:28px; padding-bottom:28px; }
.home-hero--direct .home-hero-copy { padding:0; }
.home-hero--direct .home-hero-label { margin-bottom:13px; }
.home-hero--direct .home-hero-title { font-size:clamp(25px,2.4vw,34px); }
.home-hero--direct .home-hero-title em { display:inline; font-size:1.13em; margin:0; }
.home-hero--direct .home-hero-sub { font-size:15px; line-height:1.75; margin-top:14px; }
.home-hero--direct .experience-actions { margin-top:20px; }
.home-hero--direct .home-hero-visual img { height:210px; border-bottom-right-radius:40px; }
.home-hero--welcome.home-hero--direct .home-hero-visual img { height:165px; }
.home-content { background:var(--bg); max-width:1280px; width:100%; margin:0 auto; padding:18px 48px 64px; flex:1; }
.home-section { margin-bottom:48px; }
.home-section-header,.section-header { display:flex; align-items:end; justify-content:space-between; gap:20px; border:0; padding:0; margin:0 0 24px; }
.home-section-title,.section-title { color:var(--ink); font-size:19px; letter-spacing:-.02em; font-weight:400; text-transform:none; }
.home-section-count,.section-hint { font:13px/1.7 var(--reading); color:var(--muted); }
.section-intro { font:14px/1.8 var(--reading); color:var(--muted); margin:8px 0 0; }
.projects-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; padding:0; overflow:visible; margin:0; }
.project-card { display:flex; flex-direction:column; gap:0; width:auto; min-width:0; min-height:220px; position:relative; background:var(--paper); color:var(--ink); border:1px solid var(--line); border-radius:8px; padding:28px; transition:transform .2s,border-color .2s,box-shadow .2s; }
.project-card::before { display:none; }
.project-card:hover { transform:translateY(-3px); border-color:#a6af98; box-shadow:0 12px 28px #343d2410; }
.project-card-label { color:var(--muted); font-size:8px; letter-spacing:.12em; margin:0 0 24px; }
.project-card-name { color:var(--ink); font-size:17px; font-weight:400; line-height:1.6; padding-right:14px; overflow-wrap:anywhere; }
.project-card-arrow { position:absolute; top:23px; right:24px; display:grid; place-items:center; width:32px; height:32px; border:1px solid var(--line); border-radius:50%; font-size:16px; color:var(--accent); transition:background .2s; }
.project-card:hover .project-card-arrow { color:var(--ink); background:#e9edde; }
.project-card-meta,.project-card-footer { margin-top:26px; padding-top:18px; border-top:1px solid var(--line); gap:8px; }
.project-card-cats { gap:7px; }
.project-card-cat { background:#eef0e8; color:#59624e; text-transform:none; letter-spacing:0; font:12px/1.5 var(--reading); border-radius:4px; padding:4px 8px; }
.project-card-count { color:var(--muted); font:12px/1.7 var(--reading); }
.project-card-lock,.project-card-lock svg { color:var(--muted); font-size:9px; letter-spacing:0; text-transform:none; }
.project-card-footer .project-card-arrow { top:auto; bottom:19px; }
.public-portal .projects-grid { grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); }
.carousel-outer,.carousel-track-wrap { padding:0; overflow:visible; }
.carousel-track-wrap::after { display:none; }
.carousel-btn { display:none; }
.experience-guide { display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--line); margin:0 0 54px; }
.experience-guide article { padding:25px 24px 0 0; }
.experience-guide article + article { padding-left:28px; border-left:1px solid var(--line); }
.experience-guide span { font:9px/1 var(--font); color:var(--accent); }
.experience-guide h2 { font:400 14px/1.6 var(--font); margin:13px 0 7px; }
.experience-guide p { font:14px/1.75 var(--reading); color:var(--muted); max-width:280px; }
.recent-scroll { gap:16px; padding:0 0 12px; }
.file-card { min-width:255px; max-width:255px; padding:23px; border-color:var(--line); border-radius:8px; background:var(--paper); }
.file-card:hover { border-color:#a6af98; box-shadow:0 6px 20px #343d2410; }
.file-card-icon { color:var(--accent); width:28px; height:28px; }
.file-card-icon svg { width:28px; height:28px; }
.file-card-name { font-size:11px; font-weight:500; line-height:1.65; }
.file-card-proj { font:13px/1.7 var(--reading); }
.file-card-type { background:#eef0e8; color:var(--accent-d); font:11px/1.4 var(--reading); letter-spacing:0; }
.file-card-btn { border-radius:4px; background:var(--accent-d); padding:7px 10px; font-size:9px; }
.project-hero { background:var(--bg); border:0; padding:34px 0 30px; }
.hero-inner { max-width:1280px; padding:0 48px; }
.project-breadcrumb { display:inline-flex; align-items:center; gap:12px; color:var(--muted); text-decoration:none; font:12px/1.6 var(--reading); margin:0 0 25px; }
.project-breadcrumb:hover { color:var(--accent-d); }
.project-introduction { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(220px,.7fr); align-items:end; gap:60px; }
.hero-label { font-size:8px; color:var(--muted); letter-spacing:.17em; margin-bottom:14px; }
.hero-title { color:var(--ink); font-size:clamp(25px,3vw,40px); font-weight:400; letter-spacing:-.035em; line-height:1.35; max-width:820px; overflow-wrap:anywhere; }
.project-welcome { border-left:1px solid #c8cebd; padding-left:25px; }
.project-welcome p { font:15px/1.8 var(--reading); color:var(--muted); margin:0; }
.project-welcome .experience-link { font-size:9px; margin-top:8px; padding-bottom:7px; }
.main-content { background:var(--bg); max-width:1280px; width:100%; margin:0 auto; padding:0 48px 65px; }
.project-tour { margin-bottom:0; }
.project-tour-frame { border:0; border-radius:9px; height:clamp(280px,48svh,480px); box-shadow:0 10px 28px #323b2310; }
.tour-caption { display:flex; justify-content:space-between; gap:20px; font:12px/1.7 var(--reading); color:var(--muted); margin-top:13px; }
.tour-caption > span { display:inline-flex; align-items:center; gap:5px; }
.tour-caption > span:first-child { gap:8px; }
.tour-caption svg { width:14px; height:14px; }
.tour-caption a { color:var(--accent-d); text-decoration:none; }
.project-tour.is-fullscreen .tour-caption { display:none; }
.documents-intro { display:flex; align-items:end; justify-content:space-between; gap:24px; margin:42px 0 23px; scroll-margin-top:100px; }
.documents-intro h2 { font:400 23px/1.4 var(--font); letter-spacing:-.03em; }
.mobile-document-title { display:none; }
.documents-intro p { font:14px/1.8 var(--reading); color:var(--muted); margin-top:8px; }
.documents-intro .experience-eyebrow { font-size:8px; margin-bottom:13px; }
.documents-count { flex-shrink:0; font:13px/1.7 var(--reading); color:var(--muted); }
.sort-bar { justify-content:flex-end; padding:0 0 18px; }
.sort-label { font:12px/1.6 var(--reading); text-transform:none; letter-spacing:0; color:var(--muted); }
.sort-btn { border-color:#d8dccf; border-radius:5px; background:transparent; color:var(--muted); padding:7px 12px; font-size:9px; }
.sort-btn.active { background:#e7ebdf; color:#414d36; border-color:#bec7b0; }
.file-accordion { gap:10px; }
.cat-section { border:1px solid var(--line); border-radius:8px; background:var(--paper); overflow:hidden; }
.cat-header { background:var(--paper); }
.cat-header:hover { background:#f7f8f2; }
.cat-section.open .cat-header { border-color:var(--line); }
.cat-toggle { padding:20px; gap:14px; min-width:0; }
.cat-toggle-name { color:var(--ink); font-size:11px; line-height:1.65; }
.cat-description { display:block; font:13px/1.65 var(--reading); color:var(--muted); margin-top:3px; }
.cat-toggle-count { color:var(--muted); font:12px/1.6 var(--reading); white-space:nowrap; }
.cat-chevron { color:var(--accent); width:14px; height:14px; }
.cat-action-btn { color:var(--accent-d); border-color:var(--line); font-size:9px; padding:0 20px; }
.cat-action-btn:hover { background:#edf0e6; }
.file-row { min-height:62px; border-color:#e9ebe3; }
.file-row:hover { background:#f4f6ee; }
.file-row-icon { color:#879176; }
.file-row-name { font:14px/1.6 var(--reading); }
.file-row-desc { font:13px/1.6 var(--reading); color:var(--muted); }
.file-type-badge { background:#edf0e7; color:#55624a; font:11px/1.5 var(--reading); letter-spacing:0; border-radius:4px; padding:4px 9px; }
.file-row-header { height:32px; background:#f2f4ec; border-color:#e1e5d8; }
.frh-cell { color:#68725e; font:10px/1.5 var(--reading); letter-spacing:.07em; }
.kebab-btn { color:#657159; border-radius:5px; width:34px; height:34px; }
.kebab-btn:hover { background:#e5ebdb; }
.subcat-header { color:#67765a; font:500 9px/1.6 var(--font); background:#f8f9f3; }
.subcat-count { background:#e9eddf; color:#657159; }
.row-dropdown { border-color:var(--line); border-radius:8px; }
.row-menu-item { font:13px/1.6 var(--reading); }
.modal-box { border-radius:10px; }
.modal-title { color:var(--ink); }
.site-footer { background:var(--bg); border-top:1px solid var(--line); padding:28px 0; }
.footer-inner { max-width:1280px; padding:0 48px; gap:24px; align-items:center; }
.footer-brand { color:var(--ink) !important; font:400 10px/1.7 var(--font); letter-spacing:0; }
.footer-copy { display:inline-flex; align-items:center; gap:5px; color:var(--muted) !important; font:12px/1.7 var(--reading); letter-spacing:0; text-decoration:none; }
.icon-external { width:13px; height:13px; flex-shrink:0; }
.footer-copy:hover { color:var(--accent-d) !important; }
.experience-support { display:flex; align-items:center; justify-content:space-between; gap:25px; margin-top:42px; padding-top:27px; border-top:1px solid var(--line); }
.experience-support p { font:14px/1.75 var(--reading); color:var(--muted); }
.experience-support strong { display:block; color:var(--ink); font-weight:400; font-family:var(--font); font-size:11px; margin-bottom:4px; }
.experience-support .experience-link { flex-shrink:0; font-size:10px; }
/* The entrance is a quiet, architectural welcome rather than a login dialog. */
body.login-page { display:grid; grid-template-columns:1.05fr 1fr; min-height:100svh; padding:0; align-items:stretch; background:var(--bg); color:var(--ink); font-family:var(--font); }
.login-scene { position:relative; display:flex; flex-direction:column; justify-content:space-between; padding:48px; min-height:100svh; background:#333c2d; color:#fff; overflow:hidden; }
.login-scene::before { content:''; position:absolute; inset:0; background:linear-gradient(180deg,#19231312 35%,#192313d9),url('/assets/img/hero-epta.png') 35% center/cover; }
.login-scene > * { position:relative; }
.login-scene-logo { width:105px; height:auto; }
.login-scene-copy { padding:90px 0 20px; max-width:470px; }
.login-scene .experience-eyebrow { color:#e0e7d7; }
.login-scene h2 { font:400 clamp(28px,3vw,42px)/1.35 var(--font); letter-spacing:-.04em; }
.login-scene p:last-child { font:15px/1.9 var(--reading); color:#e3e8dc; margin-top:22px; max-width:350px; }
.login-main { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:50px; }
.login-main .login-logo { margin:0 0 48px; align-self:flex-start; }
.login-main .login-logo img { height:33px; }
.login-card { width:100%; max-width:365px; padding:0; border:0; background:transparent; border-radius:0; margin:auto; }
.login-card h1 { font:400 29px/1.4 var(--font); color:var(--ink); letter-spacing:-.03em; margin-bottom:15px; }
.login-card .subtitle { font:16px/1.8 var(--reading); color:var(--muted); margin-bottom:32px; }
.login-card label { font:13px/1.7 var(--reading); text-transform:none; color:var(--ink); letter-spacing:0; margin-bottom:9px; }
.login-card .input-wrap { margin-bottom:18px; }
.login-card .input-wrap input { padding:16px 50px 16px 17px; border:1px solid #c6cdbb; background:var(--paper); color:var(--ink); border-radius:5px; font-size:17px; }
.login-card .input-wrap input:focus { border-color:var(--accent); box-shadow:0 0 0 3px #626b5415; }
.login-card .toggle-pw { color:var(--muted); min-height:40px; }
.login-card .btn-login { background:var(--accent-d); color:var(--paper); min-height:50px; border-radius:5px; font-size:11px; font-weight:400; text-transform:none; letter-spacing:0; }
.login-card .btn-cancel { border:0; color:var(--muted); font:13px/1.7 var(--reading); margin-top:15px; }
.login-hint { color:var(--muted); font:12px/1.8 var(--reading); margin-top:36px; }
.login-hint a { color:var(--accent-d); text-underline-offset:4px; }
.login-card .error-msg { font:14px/1.7 var(--reading); color:#8b422e; background:#f5e9df; border-color:#e0c7b5; }
.account-page { background:var(--bg); color:var(--ink); }
.account-page .page-header { min-height:60px; background:var(--bg); border-bottom:1px solid var(--line); padding:0 max(30px,calc((100vw - 1184px)/2)); }
.account-page .page-header a { color:var(--ink); font-size:10px; }
.account-page .page-header a:hover { color:var(--accent); }
.account-page .page-main { max-width:600px; margin:48px auto; }
.account-page .page-title { font-size:25px; font-weight:400; letter-spacing:-.03em; }
.account-page .card { background:var(--paper); border-color:var(--line); border-radius:9px; padding:30px; }
.account-page .card-title { color:var(--muted); font-weight:400; font-size:9px; }
.account-page .form-field label { font:13px/1.6 var(--reading); color:var(--muted); letter-spacing:0; text-transform:none; }
.account-page .form-field input { font-size:16px; min-height:44px; background:var(--bg); color:var(--ink); border-color:#c6cdbb; border-radius:5px; }
.account-page .btn-primary { background:var(--accent-d); font-weight:400; padding:13px 20px; border-radius:5px; }
.account-page .avatar { border-color:#d8ddce; color:var(--accent); }
@media (max-width:1050px) {
    .home-hero-inner { gap:35px; }
    .home-hero-title { font-size:32px; }
    .projects-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .project-introduction { gap:30px; grid-template-columns:minmax(0,1.5fr) minmax(200px,1fr); }
    .cat-description { max-width:320px; }
}
@media (max-width:768px) {
    .header-inner { height:56px; padding:0 22px; }
    .header-logo img { height:34px !important; }
    .logo-divider { margin:0 12px; }
    .logo-sub { font-size:8px; }
    .btn-login-header { padding:9px 12px; font-size:9px; }
    .home-hero { padding:32px 22px 35px; }
    .home-hero-inner { grid-template-columns:1fr; gap:26px; }
    .home-hero-copy { padding:6px 0; }
    .home-hero-label { margin-bottom:18px; }
    .home-hero-title { font-size:31px; }
    .home-hero-sub { margin-top:20px; font-size:15px; max-width:440px; }
    .home-hero-visual img { height:260px; border-bottom-right-radius:45px; }
    .home-hero--welcome .home-hero-visual { display:none; }
    .home-hero--welcome .home-hero-title { font-size:29px; }
    .home-hero--direct { padding-top:25px; padding-bottom:27px; }
    .home-hero--direct .home-hero-inner { display:block; }
    .home-hero--direct .home-hero-visual { display:none; }
    .home-hero--direct .home-hero-title { font-size:25px; }
    .home-hero--direct .home-hero-label { margin-bottom:12px; }
    .home-hero--direct .home-hero-sub { font-size:14px; margin-top:13px; }
    .home-hero--direct .experience-actions { margin-top:18px; }
    .home-content { padding:8px 22px 40px; }
    .home-section-header,.section-header { gap:14px; margin-bottom:20px; }
    .home-section-title,.section-title { font-size:17px; }
    .home-section-count,.section-hint { font-size:11px; }
    .projects-grid { grid-template-columns:1fr; gap:14px; padding:0; }
    .public-portal .projects-grid { grid-template-columns:1fr; }
    .project-card { padding:24px; min-height:205px; }
    .project-card-name { font-size:16px; }
    .project-card-meta { flex-wrap:wrap; }
    .project-card-count { margin-left:0; }
    .experience-guide { grid-template-columns:1fr; margin-bottom:36px; }
    .experience-guide article,.experience-guide article + article { padding:19px 0; border-left:0; border-bottom:1px solid var(--line); display:grid; grid-template-columns:28px 1fr; gap:0 10px; }
    .experience-guide span { grid-row:1/3; padding-top:7px; }
    .experience-guide h2 { margin:0 0 5px; font-size:13px; }
    .experience-guide p { grid-column:2; max-width:none; font-size:14px; }
    .section-hint { max-width:120px; text-align:right; }
    .project-hero { padding:22px 0 24px; }
    .hero-inner { padding:0 22px; }
    .project-breadcrumb { margin-bottom:22px; font-size:12px; }
    .project-introduction { display:block; }
    .hero-title { font-size:26px; line-height:1.45; }
    .hero-label { font-size:8px; margin-bottom:12px; }
    .project-welcome { margin-top:18px; padding:0; border:0; }
    .project-welcome p { font-size:14px; }
    .project-welcome .experience-link { margin-top:5px; }
    .project-hero .hero-label,.project-welcome { display:none; }
    .main-content { padding:0 22px 42px; }
    .project-tour-frame { height:auto; aspect-ratio:16/9; border-radius:6px; }
    .tour-caption { font-size:11px; margin-top:11px; gap:8px; }
    .documents-intro { margin-top:32px; gap:16px; display:block; }
    .documents-intro h2 { font-size:21px; }
    .documents-intro p { font-size:14px; }
    .documents-intro p,.documents-intro .documents-count,.desktop-document-title,.experience-support .support-detail { display:none; }
    .mobile-document-title { display:inline; }
    .documents-count { display:block; margin-top:10px; font-size:12px; }
    .sort-bar { justify-content:flex-start; padding-bottom:15px; }
    .cat-toggle { padding:17px 13px; gap:10px; }
    .cat-toggle-name { font-size:10px; }
    .cat-description { font-size:12px; max-width:none; }
    .cat-toggle-count { font-size:11px; }
    .cat-action-btn { padding:0 12px; }
    .file-row-name { font-size:13px; }
    .file-row-desc { display:none; }
    .file-row-type { width:60px; }
    .file-row { gap:9px; padding:0 13px; }
    .file-row-icon { width:22px; }
    .file-type-badge { font-size:10px; padding:3px 6px; }
    .experience-support { display:block; margin-top:30px; }
    .experience-support .experience-link { margin-top:14px; }
    .footer-inner { padding:0 22px; flex-direction:column; align-items:flex-start; gap:10px; }
    body.login-page { display:block; }
    .login-scene { min-height:265px; padding:28px 25px; }
    .login-scene-logo { display:none; }
    .login-scene-copy { padding:15px 0 0; max-width:330px; }
    .login-scene h2 { font-size:27px; }
    .login-scene .experience-eyebrow { margin-bottom:18px; font-size:8px; }
    .login-scene p:last-child { margin-top:14px; font-size:14px; }
    .login-main { padding:30px 25px 40px; }
    .login-main .login-logo { margin-bottom:30px; }
    .login-card { max-width:420px; }
    .login-card h1 { font-size:25px; }
    .login-card .subtitle { font-size:15px; margin-bottom:24px; }
}
@media (prefers-reduced-motion:reduce) {
    html { scroll-behavior:auto; }
    *,*::before,*::after { animation:none !important; transition:none !important; }
}
