/* ==========================================================================
   Tabla Archivum — styles.css
   Swedish daylight: white walls, pale wood, grey-blue, falu red. Courier Prime.
   ========================================================================== */

:root {
  --paper: #F7F5F0;
  --white: #FCFBF8;
  --linen: #EDEAE3;
  --ink: #23272B;
  --stone: #5E6368;
  --gold: #C59A4E;
  --gold-deep: #8C6A2C;
  --red: #A23F2E;
  --blue: #4D6878;
  --blue-deep: #3B5260;
  --blue-pale: #E4EAEE;
  --hair: #D9D5CB;
  --cream: #EFE6D2;
  --wood: #C9A77A;

  --mono: "Courier Prime", "Courier New", Courier, monospace;
  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sky: url("img/egbolt.jpg");
  --sky-clear: url("img/egbolt-felho.jpg");
  --frame-img: url("img/keret.svg");   /* dark walnut moulding, used as border-image */
  --parquet: url("img/granit.jpg");    /* granite floor: 2 x 2 large tiles, from a photo */
  /* one embroidered running stitch (red thread), used for the sailor-collar stripes */
  --stitch: radial-gradient(ellipse 4.6px 1.5px at 50% 50%, #CF6852 0, #A23F2E 55%, #7E2E1F 88%, transparent 100%);
  --stitch-v: radial-gradient(ellipse 1.5px 4.6px at 50% 50%, #CF6852 0, #A23F2E 55%, #7E2E1F 88%, transparent 100%);

  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(88px, 11vw, 160px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--mono); font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--mono); font-weight: 400; line-height: 1.15; margin: 0; color: inherit; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--ink); }
strong, b { font-weight: 700; }
img { max-width: 100%; display: block; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: rgba(77, 104, 120, .22); }
[hidden] { display: none !important; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.label { display: block; margin: 0; font-family: var(--mono); font-size: 12.5px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); }
.ornament { display: block; width: 98px; height: 10px; margin: 24px auto 0; border: 0; background: var(--stitch) 0 1px / 14px 4px repeat-x, var(--stitch) 0 6px / 14px 4px repeat-x; }

/* ---------- Embroidered sailor-collar stripes (red running stitch) ---------- */
main::before, .site-footer::before {
  content: ""; display: block; height: 30px;
  background: var(--stitch) 0 8px / 14px 4px repeat-x, var(--stitch) 0 14px / 14px 4px repeat-x, var(--stitch) 0 20px / 14px 4px repeat-x;
}
.site-footer::before { background-color: var(--paper); border-bottom: 1px solid var(--hair); }
.rule { border: 0; border-top: 1px solid var(--hair); margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.email-link { word-break: break-word; }
.is-tba { color: var(--stone); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; font-family: var(--mono); font-size: 14px; letter-spacing: .05em; line-height: 1.2;
  text-decoration: none; border-radius: 0; border: 1px solid transparent; cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
/* white button with an embroidered red running-stitch border (matches the stripes under the header) */
.btn-primary {
  color: var(--ink); background-color: #FFFFFF; padding: 14px 26px;
  background-image: var(--stitch), var(--stitch), var(--stitch-v), var(--stitch-v);
  background-position: 0 3px, 0 calc(100% - 3px), 3px 0, calc(100% - 3px) 0;
  background-size: 14px 4px, 14px 4px, 4px 14px, 4px 14px;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  box-shadow: 0 0 0 1px var(--hair), 0 6px 14px -10px rgba(35, 39, 43, .35);
}
.btn-primary:hover { background-color: var(--linen); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------- Masthead & navigation ---------- */
.masthead { border-bottom: 1px solid var(--hair); background: var(--white); }
.masthead-inner { max-width: 1320px; margin: 0 auto; padding: 22px var(--gutter) 18px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.masthead-social { display: flex; gap: 2px; }
.icon-link { display: inline-grid; place-items: center; width: 44px; height: 44px; color: var(--stone); transition: color .3s, background .3s; }
.icon-link:hover { color: var(--red); background: var(--linen); }
.icon-link svg { width: 19px; height: 19px; }
.brand { display: block; text-align: center; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { display: block; font-family: var(--mono); font-weight: 700; font-size: clamp(20px, 2.3vw, 27px); letter-spacing: .3em; margin-right: -.3em; line-height: 1.15; }
.brand-sub { display: block; margin-top: 6px; font-family: var(--serif); font-style: italic; font-size: clamp(15px, 1.5vw, 18px); color: var(--stone); line-height: 1.3; }
.lang { justify-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; max-width: 100%; }
.lang button { background: none; border: 0; cursor: pointer; color: var(--stone); font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; min-width: 30px; min-height: 44px; padding: 0 3px; }
.lang button:hover { color: var(--red); }
.lang button[aria-pressed="true"] { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .45em; }
.lang .sep { color: #C3BEB2; font-size: 12px; }

.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(252, 251, 248, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hair); }
.site-nav ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: 1320px; display: flex; justify-content: center; gap: clamp(2px, 1.5vw, 22px); overflow-x: auto; scrollbar-width: none; }
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav a { position: relative; display: block; white-space: nowrap; padding: 15px 9px 14px; font-size: 13.5px; letter-spacing: .04em; color: var(--ink); text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: -1px; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .5s var(--ease); }
.site-nav a:hover { color: var(--red); }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Views (tabs) ---------- */
html.js .view { display: none; }
html.js .view.is-active { display: block; animation: viewIn .7s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.page-head { max-width: 800px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter) clamp(40px, 5vw, 64px); text-align: center; }
.page-head h1 { font-size: clamp(34px, 4.6vw, 56px); margin: 16px 0 20px; }
.page-head .lead { font-size: 16.5px; color: var(--stone); max-width: 620px; margin: 0 auto; }

/* ---------- Classic dark walnut moulding frame (from img/keret.svg) ---------- */
.frame {
  --fw: 22px;
  position: relative; display: block; padding: 0;
  border: var(--fw) solid #3F2A1B;
  border-image: var(--frame-img) 60 / var(--fw) stretch;
  background: #3F2A1B;
  box-shadow: 0 18px 30px -16px rgba(30, 20, 12, .6), 0 3px 7px rgba(30, 20, 12, .18);
}
.frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(20, 12, 6, .55), inset 2px 3px 6px rgba(20, 12, 6, .4); }
.mat { display: block; }
.frame img { width: 100%; height: auto; }

.cedula {
  display: block; text-align: left; background: var(--white); color: var(--ink);
  padding: .6em .85em .65em; font-family: var(--mono); font-size: 12px; line-height: 1.45;
  border: 1px solid var(--hair); box-shadow: 0 2px 6px rgba(40, 32, 22, .1);
}
.cedula-name { display: block; font-weight: 700; }
.cedula-age { display: block; color: var(--stone); }
.cedula-title { display: block; margin-top: .2em; font-style: italic; }

/* ---------- Home: hero ---------- */
.hero { overflow-x: clip; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(40px, 7vw, 112px); align-items: center; padding-top: clamp(56px, 8vw, 116px); padding-bottom: clamp(72px, 10vw, 136px); }
.hero h1 { font-size: clamp(36px, 4.8vw, 62px); line-height: 1.08; letter-spacing: -.02em; margin-top: 20px; }
.hero-quote { margin: clamp(28px, 3.4vw, 40px) 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.35vw, 30px); line-height: 1.42; color: #343A3F; }
.hero-quote p { margin: 0; }
.hero-bio { margin: 28px 0 0; max-width: 520px; color: var(--stone); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-art { position: relative; isolation: isolate; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-art::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 44%; width: 140%; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(228, 234, 238, .95), rgba(228, 234, 238, .35) 40%, transparent 66%); }
.hero-art .frame { width: 100%; max-width: 540px; --fw: 30px; }
.hero-art--portrait .frame { max-width: 390px; }
.hero-art .cedula { align-self: flex-end; margin-right: 6%; }

/* ---------- Sky backgrounds (crop of the uploaded watercolour) ---------- */
.sky-bg { position: relative; isolation: isolate; background-color: #C9D7E6; background-image: var(--sky-clear); background-size: cover; background-position: 22% 50%; background-repeat: no-repeat; }
.sky-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(247, 245, 240, .2), rgba(247, 245, 240, 0) 55%, rgba(247, 245, 240, .18)); }

/* ---------- Home: Timeless Child band ---------- */
.band { padding-block: var(--section); }
.timeless-head { max-width: 780px; margin: 0 auto; text-align: center; }
.timeless-head .label { color: var(--ink); }
.timeless-head h2 { font-size: clamp(32px, 4.2vw, 52px); margin: 18px 0 24px; }
.timeless-head p { font-size: 16.5px; margin: 0; color: #2C3136; }
.timeless-list { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.timeless-list li { background: rgba(252, 251, 248, .86); padding: 30px clamp(22px, 2.4vw, 32px) 32px; border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 10px 30px -22px rgba(35, 39, 43, .5); }
.numeral { display: block; font-family: var(--mono); font-size: 15px; letter-spacing: .14em; line-height: 1; color: var(--red); margin-bottom: 16px; }
.timeless-list h3 { font-size: 21px; font-weight: 700; margin-bottom: 12px; }
.timeless-list p { margin: 0; font-size: 15px; color: #3A3F44; }

/* ---------- Home: open call (verbatim three columns) ---------- */
.opencall { padding-block: var(--section); }
.section-title { text-align: center; }
.section-title h2 { font-size: clamp(30px, 3.8vw, 46px); margin-top: 14px; }
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); margin-top: clamp(44px, 5vw, 72px); }
.column { border-top: 1px solid var(--ink); padding-top: 26px; }
.column p { font-size: 15.5px; }
.column p:last-child { margin-bottom: 0; }

/* ---------- Home: press strip ---------- */
.press-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; padding: 28px 0; margin-bottom: clamp(56px, 7vw, 96px); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.press-strip .label { flex: none; }
.press-strip a { font-size: 17px; text-decoration-color: rgba(162, 63, 46, .4); }
.press-strip .press-src { font-size: 13px; color: var(--stone); }

/* ---------- Home: doors (square) ---------- */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); padding-bottom: var(--section); }
.door {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 470px;
  padding: 36px clamp(24px, 2.6vw, 34px) 34px; border: 1px solid var(--hair); background: var(--white);
  color: var(--ink); text-decoration: none; transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease);
}
.door:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 24px 40px -30px rgba(35, 39, 43, .5); color: var(--ink); }
.door--salon { background: var(--blue-pale); border-color: #D3DDE3; }
.door-mini { width: 62%; margin: 8% auto auto; }
.door-mini .frame { --fw: 13px; }
.door h3 { font-size: clamp(22px, 2vw, 26px); font-weight: 700; }
.door p { font-size: 14.5px; color: var(--stone); margin: 0; }
.door-go { margin-top: 12px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.slot-mat { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 1em; text-align: center; background: var(--paper); border: 1px dashed #BDB6A6; color: var(--stone); line-height: 1.3; font-style: italic; }
.slot-mat .plus { font-size: 2em; line-height: 1; color: var(--gold-deep); font-style: normal; }

/* ---------- Footer ---------- */
.site-footer { background: var(--linen); border-top: 1px solid var(--hair); }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 64px var(--gutter) 44px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer-brand .brand-name { font-size: 20px; text-align: left; }
.footer-tag { font-family: var(--serif); font-style: italic; font-size: 21px; margin: 14px 0 0; color: #343A3F; }
.footer-col .label { margin-bottom: 14px; }
.social-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.social-list a { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; color: var(--ink); text-decoration: none; font-size: 14.5px; }
.social-list a:hover { color: var(--red); }
.social-list svg { width: 18px; height: 18px; flex: none; color: var(--stone); }
.footer-bottom { max-width: var(--wrap); margin: 0 auto; padding: 22px var(--gutter) 40px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--stone); }

/* ---------- Virtual exhibition: walkable white gallery (CSS 3D) ---------- */
.salon-section { padding-bottom: var(--section); }
.salon {
  position: relative; isolation: isolate; overflow: hidden; height: clamp(520px, 78vh, 800px);
  background: #ECE9E2; container-type: size; -webkit-user-select: none; user-select: none; touch-action: pan-y;
}
.salon::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(ellipse 80% 78% at 50% 50%, transparent 58%, rgba(60, 52, 40, .16) 100%); }
.salon-view { position: absolute; inset: 0; perspective: 80cqh; perspective-origin: 50% 50%; overflow: hidden; }
.world { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transition: transform 2.2s cubic-bezier(.45, .05, .25, 1); will-change: transform; }
.world.no-anim { transition: none; }
.plane { position: absolute; left: 0; top: 0; transform-origin: 0 0; backface-visibility: hidden; }

.g-wall { background: linear-gradient(180deg, #F3F1EC 0%, #FAF9F5 18%, #F8F6F2 70%, #EFECE5 100%); }
.g-wall--l { background: linear-gradient(180deg, #EEEBE5 0%, #F5F3EE 18%, #F3F0EB 70%, #E9E5DE 100%); }
.g-wall--end { background: linear-gradient(180deg, #EDEAE4 0%, #F4F2ED 20%, #F1EEE8 75%, #E7E3DB 100%); }
/* classic white crown moulding */
.g-cornice { position: absolute; left: 0; right: 0; top: 0; height: 5cqh; background: linear-gradient(180deg, #FFFFFF 0, #E9E5DD 18%, #FFFFFF 34%, #F2EFE9 52%, #DED9CF 68%, #FBFAF7 82%, #EEEBE4 100%); border-bottom: .3cqh solid #D8D2C6; }
.g-rail { position: absolute; left: 0; right: 0; top: 13cqh; height: .7cqh; background: #F6F4EF; border-top: .12cqh solid #FFFFFF; border-bottom: .15cqh solid #DCD6CA; }
/* herringbone oak; each segment's background-position is set from its world z so the pattern runs on seamlessly */
.g-floor { background: #C9C6C0 var(--parquet) 0 0 / 64cqh 64cqh repeat; }
.g-ceiling { background: radial-gradient(ellipse 22% 30% at 50% 50%, #FFFFFF, rgba(255, 255, 255, 0) 70%), #F2F0EA; box-shadow: inset 0 0 0 .3cqh #E8E3D7; }
/* classic Swedish manor window: tall white French casements, 2 x (2 x 4) small panes */
.g-window {
  position: absolute; background-color: #BFD0E3; background-image: var(--sky-clear); background-size: cover; background-position: 50% 50%;
  box-shadow:
    inset 0 0 0 .3cqh rgba(160, 156, 145, .5), inset 0 1.4cqh 2cqh rgba(60, 60, 50, .2),
    0 0 0 1.5cqh #F7F6F2, 0 0 0 1.65cqh #DCD8CE,
    0 0 0 2.7cqh #FCFBF8, 0 0 0 2.8cqh #E2DED4,
    0 2.6cqh 3.2cqh -1.6cqh rgba(70, 65, 50, .22);
}
.g-window.has-sun { background-image: var(--sky); background-position: 71% 50%; }
.g-window::before {
  content: ""; position: absolute; inset: 0;
  --m: #F7F6F2; --s: #D2CEC3;
  background:
    linear-gradient(90deg, transparent calc(50% - 1cqh), var(--s) calc(50% - 1cqh) calc(50% - .85cqh), var(--m) calc(50% - .85cqh) calc(50% + .85cqh), var(--s) calc(50% + .85cqh) calc(50% + 1cqh), transparent calc(50% + 1cqh)),
    linear-gradient(90deg, transparent calc(25% - .35cqh), var(--m) calc(25% - .35cqh) calc(25% + .35cqh), transparent calc(25% + .35cqh)),
    linear-gradient(90deg, transparent calc(75% - .35cqh), var(--m) calc(75% - .35cqh) calc(75% + .35cqh), transparent calc(75% + .35cqh)),
    linear-gradient(180deg, transparent calc(25% - .35cqh), var(--m) calc(25% - .35cqh) calc(25% + .35cqh), transparent calc(25% + .35cqh)),
    linear-gradient(180deg, transparent calc(50% - .35cqh), var(--m) calc(50% - .35cqh) calc(50% + .35cqh), transparent calc(50% + .35cqh)),
    linear-gradient(180deg, transparent calc(75% - .35cqh), var(--m) calc(75% - .35cqh) calc(75% + .35cqh), transparent calc(75% + .35cqh)),
    linear-gradient(160deg, rgba(255, 255, 255, .32), transparent 45%);
}
.g-window::after { content: ""; position: absolute; left: -4.2cqh; right: -4.2cqh; bottom: -4.6cqh; height: 1.9cqh; background: linear-gradient(180deg, #FFFFFF, #ECE9E2); box-shadow: 0 .5cqh .8cqh rgba(70, 65, 50, .2); }
.g-art { position: absolute; }
.g-art .frame { --fw: 3cqh; box-shadow: 0 2cqh 2.8cqh -1.2cqh rgba(30, 20, 12, .55), 0 .3cqh .7cqh rgba(30, 20, 12, .16); }
.g-art .frame::after { box-shadow: inset 0 0 0 .12cqh rgba(20, 12, 6, .55), inset .2cqh .3cqh .6cqh rgba(20, 12, 6, .4); }
.g-label { position: absolute; width: 15cqh; transform: translateY(-100%); font-size: 1.35cqh; padding: .7cqh .9cqh .8cqh; box-shadow: 0 .2cqh .5cqh rgba(40, 32, 22, .12); border-width: .1cqh; }
.g-slot .slot-mat { width: 100%; font-size: 2.6cqh; border-width: .25cqh; background: #FBFAF7; }
.g-slot .slot-mat small { display: block; margin-top: .6em; font-style: normal; font-size: .55em; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }

.frame-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: inherit; cursor: zoom-in; text-decoration: none; }
.frame-btn:focus-visible { outline: .3cqh solid var(--blue); outline-offset: .8cqh; }

.salon-dim { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; background: rgba(28, 31, 34, .55); transition: opacity 1s ease; }
.salon.is-dimmed .salon-dim { opacity: 1; }
.salon-door {
  position: absolute; top: 50%; z-index: 6; transform: translateY(-50%);
  width: 52px; height: 52px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(35, 39, 43, .25); background: rgba(252, 251, 248, .82); color: var(--ink);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background .3s, border-color .3s, opacity .3s;
}
.salon-door:hover { background: #fff; border-color: var(--blue); }
.salon-door:disabled { opacity: .3; cursor: default; }
.salon-door svg { width: 22px; height: 22px; }
.salon-door--prev { left: 22px; }
.salon-door--next { right: 22px; }

.salon-bar { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px var(--gutter) 0; text-align: center; }
.salon-status { margin: 0; font-size: 19px; line-height: 1.3; }
.salon-count { font-size: 12.5px; letter-spacing: .16em; color: var(--stone); }
.salon-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.salon-hint { margin: 10px auto 0; max-width: 680px; color: var(--stone); font-size: 13.5px; }
@media (max-width: 700px) {
  .salon-door { width: 46px; height: 46px; }
  .salon-door--prev { left: 10px; }
  .salon-door--next { right: 10px; }
}

/* ---------- Viewer (close-up / archival detail) ---------- */
.viewer { position: fixed; inset: 0; z-index: 100; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow-y: auto; }
dialog.viewer:not([open]) { display: none; }
.viewer::backdrop { background: rgba(35, 39, 43, .3); }
.viewer.is-inline { position: absolute; height: auto; z-index: 20; }
.viewer--archive { background: rgba(247, 245, 240, .975); }
.viewer--salon { background: rgba(30, 33, 36, .86); color: #F2F0EB; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.viewer-inner { position: relative; min-height: 100%; max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: center; padding: clamp(72px, 7vw, 104px) clamp(20px, 6vw, 96px) clamp(48px, 6vw, 88px); }
.viewer-art { position: relative; margin: 0; display: flex; justify-content: center; }
.viewer-art .frame { display: inline-block; max-width: 100%; --fw: 30px; animation: bringForward .9s var(--ease) both; }
.viewer-art .frame img { width: auto; max-width: 100%; max-height: 68vh; }
.viewer.is-inline .viewer-art .frame img { max-height: 540px; }
.viewer-text { animation: textIn .9s .2s var(--ease) both; }
.viewer-text .label { margin-bottom: 14px; }
.viewer--salon .label { color: #C9CDD1; }
.viewer-title { font-size: clamp(28px, 3.2vw, 40px); margin: 0 0 12px; }
.viewer--salon .is-tba { color: #B9BEC3; }
.viewer-meta { font-size: 15.5px; margin: 0; }
.viewer-medium { font-size: 14px; color: var(--stone); margin: 2px 0 0; }
.viewer--salon .viewer-medium { color: #C9CDD1; }
.viewer-text .rule { margin: 26px 0; }
.viewer--salon .rule { border-color: rgba(242, 240, 235, .22); }
.viewer-body { font-size: 15.5px; margin: 0; }
.viewer--salon .viewer-body { color: #E6E3DC; }
.viewer-nav { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.viewer--salon .btn-ghost { color: #F2F0EB; border-color: rgba(242, 240, 235, .55); }
.viewer--salon .btn-ghost:hover { background: #F2F0EB; color: var(--ink); }
.viewer-close { position: absolute; top: clamp(16px, 2.5vw, 28px); right: clamp(16px, 2.5vw, 28px); z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; border: 1px solid currentColor; background: transparent; color: inherit; opacity: .8; transition: opacity .3s, background .3s; }
.viewer-close:hover { opacity: 1; background: rgba(127, 127, 127, .14); }
.viewer-close svg { width: 20px; height: 20px; }
@keyframes bringForward { from { opacity: 0; transform: scale(.88) translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes textIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Artworks: archival catalogue ---------- */
.catalogue-section { position: relative; padding-bottom: var(--section); }
.catalogue { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 5vw, 72px) clamp(20px, 3.2vw, 48px); }
.card { display: block; color: var(--ink); text-decoration: none; }
.card:hover { color: var(--ink); }
.card-plate { position: relative; aspect-ratio: 1 / 1; background: var(--linen); transition: background .5s var(--ease); }
.card-plate img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(35, 39, 43, .24)) drop-shadow(0 0 1px rgba(35, 39, 43, .3)); transition: transform .8s var(--ease); }
.card:hover .card-plate { background: var(--blue-pale); }
.card:hover .card-plate img { transform: scale(1.025); }
.card-meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; padding-top: 18px; border-top: 1px solid var(--hair); margin-top: 18px; }
.card-no { grid-row: span 3; font-size: 12.5px; letter-spacing: .1em; color: var(--stone); padding-top: 4px; }
.card-title { font-size: 20px; font-weight: 700; line-height: 1.25; }
.card-title.is-tba { font-weight: 400; }
.card-author { margin: 0; font-size: 14.5px; }
.card-medium { margin: 0; font-size: 13px; color: var(--stone); }
.card--slot .card-plate { background: transparent; border: 1px dashed #BDB6A6; display: grid; place-items: center; text-align: center; padding: 14%; }
.card--slot .slot-text { font-style: italic; font-size: 19px; line-height: 1.35; color: var(--stone); }
.card--slot .slot-go { display: block; margin-top: 14px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.card--slot:hover .card-plate { border-color: var(--blue); background: var(--blue-pale); }

/* ---------- Submit ---------- */
.timeless-note { max-width: 860px; margin: 0 auto; padding: clamp(40px, 5vw, 60px) clamp(24px, 5vw, 64px); text-align: center; }
.timeless-note .label { color: var(--ink); }
.timeless-note h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 14px 0 16px; }
.timeless-note p { margin: 0 auto; max-width: 640px; font-size: 15.5px; color: #2C3136; background: rgba(252, 251, 248, .78); padding: 16px 20px; }
.prompts-section { padding-block: var(--section) 0; }
.prompts { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); }
.prompts li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 24px 0; border-top: 1px solid var(--hair); font-size: 15.5px; }
.prompts li:nth-last-child(-n+2) { border-bottom: 1px solid var(--hair); }
.prompts .numeral { margin: 0; font-size: 22px; letter-spacing: 0; padding-top: 2px; }
.prompts-note { margin: clamp(40px, 5vw, 60px) auto 0; text-align: center; max-width: 720px; }
.prompts-note .caps { display: block; font-weight: 700; font-size: 14px; letter-spacing: .16em; }
.prompts-note em { display: block; margin-top: 8px; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.3; }

.form-section { padding-block: var(--section); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; margin-top: clamp(40px, 5vw, 64px); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > .field-label { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); line-height: 1.5; }
.req { color: var(--red); }
.field input[type="text"], .field input[type="email"], .field textarea { width: 100%; min-height: 50px; padding: 13px 15px; font-family: var(--mono); font-size: 16px; color: var(--ink); line-height: 1.5; background: var(--white); border: 1px solid var(--hair); border-radius: 0; transition: border-color .3s, box-shadow .3s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(77, 104, 120, .2); }
.field input::placeholder, .field textarea::placeholder { color: #93979B; }
.field [aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(162, 63, 46, .14); }
.hint { font-size: 13px; color: var(--stone); }

.dropzone { position: relative; padding: 36px 24px; text-align: center; border: 1px dashed #B7B1A3; background: var(--white); transition: background .3s, border-color .3s; }
.dropzone.is-over { background: var(--blue-pale); border-color: var(--blue); }
.dropzone.has-file { padding: 16px; text-align: left; }
.dz-icon { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--blue); }
.dz-text { margin: 0; font-size: 15px; }
.dz-pick { color: var(--red); text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
.dz-pick:hover { color: var(--ink); }
.dz-formats { margin: 8px 0 0; font-size: 12.5px; color: var(--stone); letter-spacing: .04em; }
.file-input:focus-visible + .dz-empty .dz-pick { outline: 2px solid var(--blue); outline-offset: 3px; }
.preview { display: flex; align-items: center; gap: 18px; }
.preview-thumb { flex: none; width: 104px; height: 104px; padding: 8px; display: grid; place-items: center; background: var(--paper); box-shadow: inset 0 0 0 1px rgba(35, 39, 43, .08); }
.preview-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.preview-thumb svg { width: 40px; height: 40px; color: var(--red); }
.preview-info { min-width: 0; flex: 1; }
.preview-name { margin: 0; font-size: 14.5px; overflow-wrap: anywhere; }
.preview-size { margin: 2px 0 0; font-size: 12.5px; color: var(--stone); }
.preview-remove { margin-top: 6px; background: none; border: 0; padding: 8px 0; min-height: 40px; color: var(--red); cursor: pointer; text-decoration: underline; text-underline-offset: .22em; font-family: var(--mono); font-size: 13px; }
.field-error { margin: 6px 0 0; font-size: 13px; color: var(--red); }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; margin: 8px 0 10px; font-size: 14.5px; line-height: 1.6; }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--blue); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.form-foot .hint { margin: 0; }
.form-status { margin-top: 22px; padding: 16px 18px; border: 1px solid var(--hair); background: var(--white); font-size: 14.5px; }
.form-status:empty { display: none; }
.form-status.is-ok { border-color: #9FB3BF; color: var(--blue-deep); }
.form-status.is-err { border-color: #D8A99D; color: #8A3526; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aside-card { background: var(--linen); border: 1px solid var(--hair); padding: clamp(28px, 3vw, 40px); }
.aside-card + .aside-card { margin-top: 20px; }
.aside-card h3 { font-size: 22px; font-weight: 700; margin: 12px 0; }
.aside-card p { font-size: 14.5px; }
.aside-card p:last-child { margin-bottom: 0; }
.aside-email { display: inline-block; font-size: 17px; line-height: 1.4; word-break: break-word; }

/* ---------- About & contact ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: start; padding-bottom: var(--section); }
.about-text p { font-size: 16.5px; }
.etym { margin: 36px 0 0; padding: 26px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.etym-word { font-family: var(--serif); font-style: italic; font-size: 38px; line-height: 1; }
.etym-gram { font-size: 13px; color: var(--stone); letter-spacing: .08em; margin-left: 10px; }
.etym-def { display: block; margin-top: 10px; font-size: 15.5px; }
/* ---------- credo (Jancsó Lula): home teaser + full text on About ---------- */
.credo-teaser { max-width: 900px; margin: 0 auto; padding: clamp(8px, 2vw, 24px) var(--gutter) var(--section); text-align: center; }
.credo-teaser-quote { margin: 22px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(23px, 2.5vw, 32px); line-height: 1.45; color: #2C3136; }
.credo-teaser-quote p { margin: 0; }
.credo-sig { margin: 22px 0 0; font-size: 13px; letter-spacing: .06em; color: var(--stone); }
.credo-more { display: inline-flex; align-items: center; gap: 16px; margin-top: 30px; color: var(--ink); text-decoration: none; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; }
.credo-arrow { display: inline-grid; place-items: center; flex: none; width: 54px; height: 54px; border: 1px solid var(--red); border-radius: 50%; color: var(--red); transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.credo-arrow .ico { width: 22px; height: 22px; }
.credo-more:hover, .credo-more:focus-visible { color: var(--ink); }
.credo-more:hover .credo-arrow, .credo-more:focus-visible .credo-arrow { background: var(--red); color: var(--white); transform: translateX(4px); }
.credo { background: var(--white); border-block: 1px solid var(--hair); padding: clamp(56px, 7vw, 96px) var(--gutter); margin-bottom: clamp(64px, 8vw, 112px); }
.credo-inner { max-width: 760px; margin: 0 auto; }
.credo-inner > .label { text-align: center; margin-bottom: 28px; }
.credo-text p { margin: 0 0 1em; font-family: var(--serif); font-size: clamp(20px, 1.9vw, 24px); line-height: 1.55; color: #2C3136; }
.credo-text p:first-child { font-style: italic; font-size: clamp(23px, 2.3vw, 29px); line-height: 1.4; }
.credo .credo-sig { margin-top: 4px; text-align: right; }
.credo-others { max-width: 760px; margin: clamp(48px, 6vw, 72px) auto 28px; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 24px); }
.credo-quotes { list-style: none; max-width: 1000px; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.credo-quotes li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.credo-quotes li { background: var(--paper); border: 1px solid var(--hair); padding: 28px clamp(22px, 2.6vw, 34px); }
.credo-quotes p { margin: 0 0 12px; font-family: var(--serif); font-style: italic; font-size: 19.5px; line-height: 1.45; }
.credo-quotes cite { display: block; margin-top: 16px; font-style: normal; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
@media (max-width: 720px) { .credo-quotes { grid-template-columns: minmax(0, 1fr); } }
.person { background: var(--white); border: 1px solid var(--hair); padding: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 40px); text-align: center; }
.monogram { width: 100px; height: 100px; margin: 18px auto 22px; display: grid; place-items: center; border: 1px solid var(--gold); box-shadow: inset 0 0 0 6px var(--white), inset 0 0 0 7px rgba(197, 154, 78, .5); font-family: var(--mono); font-size: 30px; letter-spacing: .08em; color: var(--red); }
.person-photo { width: min(230px, 80%); margin: 20px auto 24px; }
.person-photo img { display: block; width: 100%; height: auto; }
.person-name { font-size: 28px; font-weight: 700; }
.person-role { margin: 8px 0 0; font-size: 15px; }
.person-note { margin: 16px 0 0; color: var(--stone); font-size: 14px; }
.press { margin-top: 22px; padding: 24px clamp(24px, 3vw, 40px); border: 1px solid var(--hair); background: var(--white); }
.press-list { list-style: none; margin: 12px 0 0; padding: 0; }
.press-list li { padding: 12px 0; border-top: 1px solid var(--hair); font-size: 15px; line-height: 1.55; }
.press-list li:first-child { border-top: 0; padding-top: 4px; }
.press-list .press-src { display: block; font-size: 12.5px; letter-spacing: .08em; color: var(--stone); margin-top: 4px; }
.press-name { color: var(--red); }
span.press-name { color: var(--ink); }

.contact { background: var(--linen); border-top: 1px solid var(--hair); padding-block: var(--section); text-align: center; }
.contact h2 { font-size: clamp(30px, 3.8vw, 46px); margin: 14px 0 18px; }
.contact-lead { color: var(--stone); max-width: 560px; margin: 0 auto; }
.contact-email { display: inline-block; margin-top: 30px; font-size: clamp(19px, 2.6vw, 30px); line-height: 1.25; word-break: break-word; }
.contact-social { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.contact-social a { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 22px; border: 1px solid var(--hair); background: var(--white); color: var(--ink); text-decoration: none; font-size: 14.5px; transition: border-color .3s, color .3s; }
.contact-social a:hover { border-color: var(--blue); color: var(--red); }
.contact-social svg { width: 19px; height: 19px; color: var(--stone); }

html:has(dialog.viewer[open]) { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .doors { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .door { min-height: 420px; }
}
@media (max-width: 900px) {
  .hero, .about-grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 520px; margin-inline: auto; width: 100%; }
  .columns, .timeless-list { grid-template-columns: minmax(0, 1fr); }
  .catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prompts { grid-template-columns: minmax(0, 1fr); }
  .prompts li:nth-last-child(2) { border-bottom: 0; }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .viewer-inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .viewer-art .frame img { max-height: 54vh; }
}
@media (max-width: 720px) {
  .masthead-inner { grid-template-columns: 1fr 1fr; gap: 6px 12px; padding-top: 10px; padding-bottom: 18px; }
  .masthead-social { grid-row: 1; grid-column: 1 / -1; justify-self: center; }
  .lang { grid-row: 3; grid-column: 1 / -1; justify-self: center; justify-content: center; }
  .brand { grid-column: 1 / -1; grid-row: 2; }
  .site-nav ul { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .catalogue { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .preview { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
