/* thodorisnikolaou.com — design layer (from the approved mockup, 2026-11-20).
   Every rule is scoped by html.f-<flag>; with all flags off the page renders exactly like the live site.
   Same look & feel: black/white palette, uppercase headings, left sidebar, white-framed title boxes. */
:root{--ink:#252525;--ink-2:#4e4e4e;--muted:#6b6b6b;--rule:#e2e2e2;--veil:rgba(255,255,255,.6);--ease:cubic-bezier(.2,.7,.2,1);--on-ink:#fff;--paper:#fff;--paper-0:rgba(255,255,255,0);--soft:#f3f3f3}

/* ===================== type: one family everywhere (switchable), tight titles, light menu, no bold without reason =====================
   default TikTok Sans at 115% width = Montserrat-like proportions with full Greek. Panel lets you compare others. */
html{--tn-font:'TikTok Sans';--tn-wd-title:115%;--tn-wd-text:108%;--tn-ls-title:-.02em}
html.f-type *:not(.fa){font-family:var(--tn-font),system-ui,-apple-system,'Segoe UI',sans-serif;font-optical-sizing:auto;font-stretch:var(--tn-wd-text)}
html.f-type :is(h1,h2,h3,.entry-title,.page-title,.site-logo,.item-title,.navigation a,.btn,input[type=submit],button,label,.site-tagline,.entry-meta,.tn-prevnext .ttl,.tn-share-lbl,.tn-view){font-stretch:var(--tn-wd-title)}
html.f-type body{font-size:14px;color:var(--ink);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
html.f-type .entry-content p,html.f-type .entry-content li{font-size:16px;line-height:1.72;text-wrap:pretty}
html.f-type .entry-project-side .entry-content,html.f-type .entry-project-side .entry-content p{font-size:15px;line-height:1.75}
/* titles: same uppercase, reduced letter-spacing, semibold (the name stays bold) */
html.f-type h1,html.f-type h2,html.f-type h3,html.f-type .entry-title,html.f-type .page-title{font-weight:600;letter-spacing:var(--tn-ls-title);text-wrap:balance}
html.f-type .site-logo,html.f-type.f-header .site-logo{font-weight:700;letter-spacing:calc(var(--tn-ls-title) - .005em);line-height:.92}
html.f-type .site-tagline{margin-top:6px}
html.f-type .item-title{font-weight:600;letter-spacing:calc(var(--tn-ls-title) - .005em);line-height:1.08;text-wrap:balance}
html.f-type .page-title{color:var(--ink)}
/* menu: light weight */
html.f-type .navigation a{font-size:14px;font-weight:300;letter-spacing:.03em}
@media (min-width:992px){html.f-type .navigation a{padding:6px 8px 5px;margin:4px 0 0 -8px}}
html.f-type .site-tagline{font-size:11px;font-weight:400;letter-spacing:.06em;color:var(--muted)}
html.f-type .entry-meta,html.f-type .entry-meta a{font-size:11px;font-weight:400;letter-spacing:.06em;color:var(--muted)}
html.f-type .btn,html.f-type input[type=submit],html.f-type button{font-weight:500;letter-spacing:.07em}
html.f-type label{font-weight:500}
html.f-type .entry-thumb figcaption{font-size:14px;font-style:italic;color:var(--ink-2);text-wrap:pretty}
/* no bold without reason: long or whole-paragraph bold becomes regular, short labels medium; real inline emphasis stays */
html.f-type .entry-content strong,html.f-type .entry-content b{font-weight:600}
html.f-type .entry-content .tn-bold-long{font-weight:400}
html.f-type .entry-content .tn-bold-short{font-weight:500}

/* ===================== frame: centred composition on wide screens ===================== */
@media (min-width:1700px){
  html.f-frame .sidebar-left{left:calc(50% - 800px)}
  html.f-frame .content-wrap{margin-left:calc(50% - 500px)}
}

/* ===================== axis: text pages on one centred axis ===================== */
@media (min-width:992px){html.f-axis .main:not(.main-fullwidth){float:none;width:100%}}
html.f-axis .main:not(.main-fullwidth) > article,html.f-axis .main:not(.main-fullwidth) > .entry{max-width:720px;margin-left:auto;margin-right:auto}
html.f-axis .main:not(.main-fullwidth) .entry-title,html.f-axis .main:not(.main-fullwidth) .entry-meta{text-align:center}
html.f-axis .main:not(.main-fullwidth) .col-narrow{max-width:none;margin:0}
html.f-axis[data-page=bio] .entry-content p{text-align:center !important}
html.f-axis[data-page=post] .entry-content figure{margin-left:auto;margin-right:auto}
html.f-axis[data-page=notfound] main .entry-content,html.f-axis[data-page=notfound] main .entry-title{text-align:center}
html.f-axis[data-page=notfound] main .searchform{max-width:480px;margin:0 auto}
html.f-axis .main:not(.main-fullwidth) .tn-share{justify-content:center}
html.f-axis[data-page=notfound] .tn-related .page-title{text-align:center;margin-top:50px}

/* ===================== ratio: home photos keep a photographic ratio ===================== */
html.f-ratio .item{height:auto;min-height:0;aspect-ratio:3/2;max-height:calc(100vh - 100px)}
@media (max-width:767px){html.f-ratio .item{aspect-ratio:4/5;max-height:none}}

/* ===================== hover: veil on hover / when centred (touch), whole photo clickable ===================== */
html.f-hover .item{overflow:hidden}
html.f-hover .item.has-bg{background-image:none !important}
html.f-hover .item > .item-bg{position:absolute;inset:0;background-size:cover;background-position:center;background-repeat:no-repeat;transition:transform 1.4s var(--ease)}
html.f-hover .item > .item-cover{position:absolute;inset:0;z-index:1}
html.f-hover .item .item-details{z-index:2;pointer-events:none}
html.f-hover .item .item-details a{pointer-events:auto}
html.f-hover .item .item-details::before{content:"";position:absolute;inset:0;background:var(--veil);opacity:0;transition:opacity .45s var(--ease)}
html.f-hover .item .item-title{position:relative}
html.f-hover .item:hover .item-details::before,html.f-hover .item:focus-within .item-details::before,html.f-hover .item.is-centered .item-details::before{opacity:1}
/* frame at 2/3 of the original thickness (10px -> 7px; small cards 6px -> 4px) */
html.f-hover .item .item-details{border-width:7px}
html.f-hover .tn-grid .tn-card .item-details{border-width:4px}
/* titles white at rest, black when the veil comes in */
html.f-hover .item .item-title{color:#fff !important;text-shadow:0 1px 16px rgba(0,0,0,.28);transition:color .45s var(--ease),text-shadow .45s var(--ease)}
html.f-hover .item:hover .item-title,html.f-hover .item:focus-within .item-title,html.f-hover .item.is-centered .item-title{color:var(--ink) !important;text-shadow:none}
@media (hover:hover){html.f-hover .item:hover > .item-bg{transform:scale(1.025)}}
@media (prefers-reduced-motion:reduce){html.f-hover .item > .item-bg,html.f-hover .item .item-details::before{transition:none}}

/* ===================== project: statement above photos on tablets, read more ===================== */
@media (min-width:1280px){
  html.f-project .entry-project-side{width:280px}
  html.f-project .entry-project-main{width:calc(100% - 320px)}
}
@media (min-width:768px) and (max-width:1279px){
  html.f-project .entry-project-side{float:none !important;width:100% !important;position:static !important;max-width:720px;margin:0 0 50px}
  html.f-project .entry-project-main{float:none;width:100%}
  html.f-project .stuck{display:none !important}
}
html.f-project .tn-collapsible{position:relative}
html.f-project .tn-readmore{display:none}
@media (max-width:1279px){
  html.f-project .tn-collapsible.is-collapsed{max-height:15em;overflow:hidden}
  html.f-project .tn-collapsible.is-collapsed::after{content:"";position:absolute;left:0;right:0;bottom:0;height:5em;background:linear-gradient(var(--paper-0),var(--paper))}
  html.f-project .tn-readmore{display:block;width:100%;height:auto;margin:16px 0 8px;padding:14px 0;background:none;border:solid var(--ink);border-width:1px 0;color:var(--ink);font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;cursor:pointer;transition:background .2s,color .2s}
  html.f-project .tn-readmore:hover{background:var(--ink);color:var(--on-ink)}
}

/* ===================== gallery: Story / Gallery (masonry) switch on project pages ===================== */
.tn-view{display:inline-flex;align-items:center;gap:0;margin:2px 0 26px;border:1px solid var(--ink)}
.tn-view-lbl{font-size:10px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);padding:0 12px}
.tn-view button{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 13px;margin:0;border:0;border-left:1px solid var(--ink);background:var(--paper) !important;color:var(--ink);font-size:11px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;cursor:pointer;transition:background .25s,color .25s}
.tn-view button svg{width:16px;height:16px}
.tn-view button:hover{background:var(--soft) !important}
.tn-view button[aria-pressed=true]{background:var(--ink) !important;color:var(--on-ink)}
html.tn-gallery .entry-project-side{float:none !important;width:100% !important;max-width:760px;position:static !important;margin:0 0 46px}
html.tn-gallery .stuck{display:none !important}
html.tn-gallery .entry-project-main{float:none;width:100%}
html.tn-gallery.f-project .tn-collapsible.is-collapsed{max-height:15em;overflow:hidden}
html.tn-gallery.f-project .tn-collapsible.is-collapsed::after{content:"";position:absolute;left:0;right:0;bottom:0;height:5em;background:linear-gradient(var(--paper-0),var(--paper))}
html.tn-gallery.f-project .tn-readmore{display:block;width:100%;max-width:760px;height:auto;margin:16px 0 8px;padding:14px 0;background:none;border:solid var(--ink);border-width:1px 0;color:var(--ink);font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;cursor:pointer}
.tn-masonry{--g:18px;display:flex;align-items:flex-start;gap:var(--g)}
.tn-masonry .tn-col{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:var(--g)}
@media (max-width:991px){.tn-masonry{--g:12px}}
@media (max-width:600px){.tn-masonry{--g:8px}}
html.tn-gallery .project-assets .entry-thumb,html.tn-gallery .project-assets .entry-thumb.has-caption{margin:0 !important;background:var(--soft);overflow:hidden;position:relative}
html.tn-gallery .project-assets .entry-thumb a{display:block;cursor:zoom-in}
html.tn-gallery .project-assets .entry-thumb img{display:block;width:100%;height:auto;transition:transform 1.2s var(--ease),opacity .6s}
html.tn-gallery .project-assets .entry-thumb:hover img{transform:scale(1.03)}
html.tn-gallery .project-assets .entry-thumb figcaption{position:absolute;left:0;right:0;bottom:0;padding:34px 14px 12px;margin:0;font-size:12px;line-height:1.45;text-align:left;color:#fff;background:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.55));opacity:0;transform:translateY(6px);transition:opacity .45s var(--ease),transform .45s var(--ease);pointer-events:none}
html.tn-gallery .project-assets .entry-thumb:hover figcaption{opacity:1;transform:none}
@media (hover:none){html.tn-gallery .project-assets .entry-thumb figcaption{display:none}}
.project-assets{transition:opacity .3s var(--ease)}
.project-assets.is-switching{opacity:0}

/* ===================== header: sticky mobile header, overlay menu, back to top ===================== */
@media (max-width:991px){
  html.f-header{--pad:25px}
  html.f-header .sidebar-left{position:sticky;top:0;left:auto;right:auto;bottom:auto;width:auto;z-index:60;background:var(--paper);margin:calc(-1 * var(--pad)) calc(-1 * var(--pad)) 30px;padding:14px var(--pad);transition:top .35s var(--ease),box-shadow .35s}
  html.f-header .sidebar-left.is-hidden{top:calc(-1 * var(--hdr-h,80px) - 4px)}
  html.f-header .sidebar-left.is-scrolled{box-shadow:0 1px 0 rgba(0,0,0,.09)}
  html.f-header .header{position:relative;padding-right:52px}
  html.f-header .site-logo{font-size:clamp(18px,5.6vw,24px);line-height:1.15}
  html.f-header .mobile-toggle{width:44px;height:44px;top:50%;margin-top:-22px;right:-10px;display:flex;align-items:center;justify-content:center;font-size:26px}
  html.f-header .side-wrap{position:fixed;inset:0;z-index:-1;background:var(--paper);padding:calc(var(--hdr-h,80px) + 12px) var(--pad) 40px;overflow-y:auto}
  html.f-header .side-wrap .navigation a{font-size:20px;padding:12px 10px 10px;margin:0 -10px}
  html.f-header.tn-menu-open,html.f-header.tn-menu-open body{overflow:hidden}
}
@media (max-width:767px){html.f-header{--pad:15px}}
html.f-header .tn-top{position:fixed;right:16px;bottom:calc(16px + var(--cookie-h,0px));z-index:70;width:44px;height:44px;padding:0;border:0;background:var(--ink);color:var(--on-ink);display:flex;align-items:center;justify-content:center;opacity:0;transform:translateY(8px);pointer-events:none;transition:opacity .3s,transform .3s,background .2s,bottom .4s var(--ease)}
html.f-header .tn-top.is-on{opacity:1;transform:none;pointer-events:auto}
html.f-header .tn-top:hover{background:var(--ink-2)}
html.f-header .tn-top svg{width:20px;height:20px}

/* ===================== focus: visible keyboard focus, skip link, link underline ===================== */
html.f-focus a:focus-visible,html.f-focus button:focus-visible,html.f-focus input:focus-visible,html.f-focus textarea:focus-visible,html.f-focus select:focus-visible{outline:2px solid var(--ink) !important;outline-offset:3px !important}
html.f-focus .navigation a:focus-visible{background:var(--ink);color:var(--on-ink);outline-offset:3px !important}
html.f-focus .btn:focus-visible,html.f-focus input[type=submit]:focus-visible{box-shadow:inset 0 0 0 2px #fff}
.tn-skip{position:fixed;left:12px;top:-80px;z-index:200;background:var(--ink);color:var(--on-ink) !important;padding:12px 18px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;transition:top .2s}
.tn-skip:focus{top:12px}
html.f-focus .entry-content a:not(.btn):not(.ci-lightbox):not([class*=tn-]){text-decoration:underline;text-decoration-color:rgba(37,37,37,.3);text-underline-offset:3px;transition:text-decoration-color .2s}
html.f-focus .entry-content a:not(.btn):not(.ci-lightbox):not([class*=tn-]):hover{text-decoration-color:currentColor}

/* ===================== lightbox ===================== */
html.f-lightbox .tn-lb.mfp-bg{background:#101010}
html.f-lightbox .tn-lb.mfp-bg.mfp-ready{opacity:.97 !important}
html.f-lightbox .tn-lb.mfp-bg.mfp-removing{opacity:0 !important}
html.f-lightbox .tn-lb .mfp-title{font-size:14px;line-height:1.5;color:#d8d8d8;padding-right:80px}
html.f-lightbox .tn-lb .mfp-counter{font-size:12px;letter-spacing:.08em;color:#9a9a9a}
html.f-lightbox .tn-lb .mfp-close{width:48px;height:48px;font-size:34px;opacity:.85}
@media (hover:none){html.f-lightbox .tn-lb .mfp-arrow{display:none}}

/* ===================== related: 3 projects + previous / next ===================== */
.tn-prevnext{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--ink);border-bottom:1px solid var(--ink);margin:0 0 70px}
.tn-prevnext a{display:block;padding:22px 20px;color:var(--ink);transition:background .25s,color .25s}
.tn-prevnext a + a{text-align:right;border-left:1px solid var(--ink)}
.tn-prevnext .lbl{display:block;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:8px;transition:color .25s}
.tn-prevnext .ttl{display:block;font-weight:700;font-size:18px;line-height:1.2;text-transform:uppercase;letter-spacing:-.015em}
.tn-prevnext a:hover{background:var(--ink);color:var(--on-ink)}
.tn-prevnext a:hover .lbl{color:var(--on-ink);opacity:.7}
.tn-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
html .tn-grid .tn-card.item{height:auto;min-height:0;max-height:none;aspect-ratio:4/5;margin:0;background-size:cover;background-position:center}
html .tn-grid .tn-card .item-details{left:14px;right:14px;bottom:14px;min-width:0;max-width:none;min-height:0;width:auto;padding:16px 16px 60px;border-width:6px}
html .tn-grid .tn-card .item-title{font-size:17px;line-height:1.2}
html .tn-grid .tn-card .item-more{font-size:11px}
@media (max-width:991px){.tn-grid{grid-template-columns:1fr 1fr}.tn-prevnext .ttl{font-size:15px}}
@media (max-width:600px){.tn-grid{grid-template-columns:1fr}html .tn-grid .tn-card.item{aspect-ratio:3/2}.tn-prevnext a{padding:16px 12px}}
.tn-related{margin-top:10px}

/* ===================== share: minimal row ===================== */
.tn-share{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin:26px 0 0;padding-top:16px;border-top:1px solid var(--rule)}
.tn-share-lbl{font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-right:10px}
.tn-share a,.tn-foot a,.tn-pagefoot a{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;color:var(--ink);transition:background .2s,color .2s}
.tn-share a:hover,.tn-foot a:hover,.tn-pagefoot a:hover{background:var(--ink);color:var(--on-ink)}
.tn-share svg,.tn-foot svg,.tn-pagefoot svg{width:18px;height:18px}

/* ===================== footer ===================== */
.tn-foot .tn-icons{display:flex;gap:2px;margin:0 0 10px -9px}
.tn-foot p{margin:0;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.tn-pagefoot{display:none}
@media (max-width:991px){
  .tn-pagefoot{display:flex;justify-content:space-between;align-items:center;margin-top:60px;padding:18px 0 4px;border-top:1px solid var(--rule);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
  .tn-pagefoot .tn-icons{display:flex;gap:2px;margin-right:-9px}
}

/* ===================== form ===================== */
html.f-form .wpcf7-form p{margin:0 0 22px}
html.f-form .wpcf7-form label{display:block;margin:0 0 8px;font-size:12px;letter-spacing:.08em;color:var(--ink)}
/* paper-form fields: no box, only a thin line underneath; the message field is ruled like paper */
html.f-form .wpcf7-form input[type=text],html.f-form .wpcf7-form input[type=email],html.f-form .wpcf7-form textarea{color:var(--ink);font-size:16px;height:44px;padding:6px 0 7px;border:0;border-bottom:1px solid var(--ink);border-radius:0;background-color:transparent;box-shadow:none;transition:box-shadow .25s var(--ease)}
html.f-form .wpcf7-form textarea{height:auto;min-height:161px;padding:0;line-height:32px;resize:vertical;border-bottom:0;
  background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 31px,#cfcfcf 31px,#cfcfcf 32px);background-attachment:local}
html.f-form .wpcf7-form input[type=text]:focus,html.f-form .wpcf7-form input[type=email]:focus{outline:none !important;box-shadow:inset 0 -1px 0 var(--ink)}
html.f-form .wpcf7-form textarea:focus{outline:none !important;box-shadow:inset 0 -2px 0 var(--ink)}
html.f-form .wpcf7-form .wpcf7-not-valid{border-bottom-color:var(--ink) !important;box-shadow:inset 0 -1px 0 var(--ink)}
html.f-form .wpcf7-form label{font-size:11px;letter-spacing:.1em;margin:0 0 2px;color:var(--muted)}
html.f-form .wpcf7-form p{margin:0 0 30px}
html.f-form .wpcf7-not-valid-tip{display:flex;align-items:center;gap:8px;margin-top:8px;color:var(--ink);font-size:13px}
html.f-form .wpcf7-not-valid-tip::before{content:"!";flex:none;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:var(--ink);color:var(--on-ink);font-size:11px;font-weight:700}
html.f-form div.wpcf7-response-output{margin:24px 0 0;padding:14px 18px;border:0;border-left:3px solid var(--ink);background:var(--soft);color:var(--ink);font-size:14px;line-height:1.55}
html.f-form .wpcf7-submit{min-height:50px;padding:0 42px}
@media (max-width:767px){html.f-form .wpcf7-submit{width:100%}}
html.f-form .tn-consent label{display:flex;gap:12px;align-items:flex-start;margin:0;font-size:13px;line-height:1.55;letter-spacing:0;text-transform:none;cursor:pointer}
html.f-form .tn-consent input[type=checkbox]{flex:none;width:18px;height:18px;margin:2px 0 0;padding:0;accent-color:#252525}
html.f-form .tn-consent a{text-decoration:underline;text-underline-offset:3px}
html.f-form .tn-contact-alt{text-align:center;margin:-6px 0 30px;font-size:15px}
html.f-form .tn-contact-alt a{font-weight:600;text-decoration:underline;text-underline-offset:3px}

/* ===================== cookie disclaimer ===================== */
.tn-cookie{position:fixed;left:0;right:0;bottom:0;z-index:80;background:var(--paper);border-top:1px solid var(--ink);padding:16px 15px;display:flex;flex-direction:column;gap:14px;transform:translateY(110%);transition:transform .5s var(--ease)}
.tn-cookie.is-on{transform:none}
.tn-cookie p{margin:0;font-size:13px;line-height:1.6;color:var(--ink)}
.tn-cookie p a{text-decoration:underline;text-underline-offset:3px}
.tn-cookie-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tn-cookie .btn{min-height:44px;padding:0 22px;font-size:12px}
.tn-cookie .tn-decline{background:var(--paper);color:var(--ink);box-shadow:inset 0 0 0 2px var(--ink)}
.tn-cookie .tn-decline:hover{background:var(--ink);color:var(--on-ink)}
@media (min-width:768px){.tn-cookie{left:auto;right:24px;bottom:24px;width:400px;border:1px solid var(--ink);padding:22px 22px 20px}}

/* ===================== motion: subtle reveal on scroll, menu entrance, sliding menu bar ===================== */
html.f-motion.tn-anim :is(.main .item,.project-assets .entry-thumb,.main:not(.main-fullwidth) .entry-content > *,.main .entry-title,.main .page-title,.entry-project-side,.tn-r):not(.is-in){opacity:0;transform:translateY(14px)}
html.f-motion.tn-anim .entry-project-side:not(.is-in){transform:none}
html.f-motion :is(.main .item,.project-assets .entry-thumb,.main:not(.main-fullwidth) .entry-content > *,.main .entry-title,.main .page-title,.entry-project-side,.tn-r){transition:opacity .45s var(--ease),transform .55s var(--ease);transition-delay:var(--d,0s)}
@keyframes tn-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
html.f-motion.tn-first .header,html.f-motion.tn-first .navigation li,html.f-motion.tn-first .footer{animation:tn-in .8s var(--ease) both}
html.f-motion.tn-first .navigation li:nth-child(1){animation-delay:.10s}
html.f-motion.tn-first .navigation li:nth-child(2){animation-delay:.16s}
html.f-motion.tn-first .navigation li:nth-child(3){animation-delay:.22s}
html.f-motion.tn-first .navigation li:nth-child(4){animation-delay:.28s}
html.f-motion.tn-first .navigation li:nth-child(5){animation-delay:.34s}
html.f-motion.tn-first .footer{animation-delay:.45s}
@media (min-width:992px){
  html.f-motion .navigation a{background-color:transparent !important;background-image:linear-gradient(var(--ink),var(--ink));background-repeat:no-repeat;background-size:0 100%;transition:background-size .45s var(--ease),color .3s}
  html.f-motion .navigation a:hover,html.f-motion .navigation a:focus-visible,html.f-motion .navigation li.current_page_item > a,html.f-motion .navigation li.current-menu-item > a{background-size:100% 100%;color:var(--on-ink)}
}
html.f-motion .btn,html.f-motion input[type=submit]{transition:background-color .3s,color .3s,box-shadow .3s}
html.tn-still *,html.tn-still *::before,html.tn-still *::after{transition:none !important;animation:none !important}
@media (prefers-reduced-motion:reduce){
  html.f-motion :is(.main .item,.project-assets .entry-thumb,.main:not(.main-fullwidth) .entry-content > *,.main .entry-title,.main .page-title,.entry-project-side,.tn-r){opacity:1 !important;transform:none !important;transition:none}
  html.f-motion .header,html.f-motion .navigation li,html.f-motion .footer{animation:none}
}

/* ===================== dark theme: discreet toggle, inverts UI only (photos untouched) ===================== */
html.f-dark.tn-dark{--ink:#e8e8e8;--ink-2:#c4c4c4;--muted:#9a9a9a;--rule:#2c2c2c;--veil:rgba(16,16,16,.55);--on-ink:#121212;--paper:#121212;--paper-0:rgba(18,18,18,0);--soft:#1c1c1c;color-scheme:dark}
html.f-dark.tn-dark,html.f-dark.tn-dark body,html.f-dark.tn-dark body.custom-background{background-color:var(--paper) !important;color:var(--ink)}
html.f-dark.tn-dark :is(a,h1,h2,h3,h4,.site-logo,.site-logo a,.entry-title,.page-title,.entry-content,.entry-content p,.entry-content li,label,.mobile-toggle,.navigation a,.tn-share a,.tn-foot a,.tn-pagefoot a):not(.btn):not(.item-more){color:var(--ink)}
html.f-dark.tn-dark :is(.site-tagline,.entry-meta,.entry-meta a,.tn-share-lbl,.tn-foot p,.tn-pagefoot){color:var(--muted) !important}
html.f-dark.tn-dark .entry-thumb figcaption{color:var(--ink-2)}
html.f-dark.tn-dark hr{border-color:#333;background:#333}
html.f-dark.tn-dark :is(.item,.entry-thumb,.tn-card){background-color:var(--soft)}
html.f-dark.tn-dark :is(.btn,.item-more,input[type=submit],.wpcf7-submit){background-color:var(--ink) !important;color:var(--on-ink) !important}
html.f-dark.tn-dark :is(.btn,.item-more,input[type=submit],.wpcf7-submit):hover{background-color:#fff !important}
html.f-dark.tn-dark:not(.f-motion) :is(.navigation li > a:hover,.navigation li.current_page_item > a,.navigation li.current-menu-item > a){background-color:var(--ink) !important;color:var(--on-ink) !important}
html.f-dark.tn-dark input,html.f-dark.tn-dark textarea{background-color:transparent;color:var(--ink);border-color:var(--ink)}
html.f-dark.tn-dark.f-form .wpcf7-form textarea{background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 31px,rgba(255,255,255,.2) 31px,rgba(255,255,255,.2) 32px)}
html.f-dark.tn-dark.f-hover .item:hover .item-title,html.f-dark.tn-dark.f-hover .item:focus-within .item-title,html.f-dark.tn-dark.f-hover .item.is-centered .item-title{color:#fff !important}
html.f-dark.tn-dark .entry-project-side .entry-content img{filter:invert(1) hue-rotate(180deg);mix-blend-mode:screen}
html.f-dark.tn-dark .navigation :is(li.current_page_item > a,li.current-menu-item > a,a:hover,a:focus-visible){color:var(--on-ink) !important}
html.f-dark.tn-dark .tn-collapsible.is-collapsed::after{background:linear-gradient(var(--paper-0),var(--paper))}
html.f-dark.tn-dark.f-header .sidebar-left.is-scrolled{box-shadow:0 1px 0 rgba(255,255,255,.08)}
html.f-dark.tn-dark .wpcf7-not-valid-tip{color:var(--ink)}
html.f-dark.tn-dark ::selection{background:#e8e8e8;color:#121212}
html.tn-theming,html.tn-theming *{transition:background-color .45s ease,color .45s ease,border-color .45s ease !important}
.tn-theme{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;padding:0;margin:0;border:0;border-radius:0;background:transparent !important;color:var(--ink) !important;cursor:pointer;transition:background .2s,color .2s}
.tn-theme:hover{background:var(--ink) !important;color:var(--on-ink) !important}
.tn-theme svg{width:18px;height:18px}
.tn-theme .i-sun{display:none}
html.tn-dark .tn-theme .i-sun{display:block}
html.tn-dark .tn-theme .i-moon{display:none}
.tn-theme--head{display:none !important}
.tn-theme--float{position:fixed;top:22px;right:24px;z-index:95;width:42px;height:42px;border:1px solid var(--ink) !important;border-radius:50%;background:var(--paper) !important;box-shadow:0 2px 12px rgba(0,0,0,.08)}
.tn-theme--float:hover{background:var(--ink) !important;color:var(--on-ink) !important}
@media (max-width:991px){
  .tn-theme--head{display:inline-flex !important;position:absolute;top:50%;margin-top:-20px;right:38px;width:40px;height:40px}
  .tn-theme--float{display:none !important}
  html.f-dark .header{padding-right:84px}
}
/* dark: hovers on dark backgrounds must flip to the dark ink (generic link colour rule is stronger otherwise) */
html.f-dark.tn-dark :is(.tn-share a,.tn-foot a,.tn-pagefoot a,.tn-theme,.tn-prevnext a):hover,
html.f-dark.tn-dark :is(.tn-share a,.tn-foot a,.tn-pagefoot a,.tn-theme,.tn-prevnext a):focus-visible{background:var(--ink) !important;color:var(--on-ink) !important}
html.f-dark.tn-dark .tn-prevnext a:hover .lbl,html.f-dark.tn-dark .tn-prevnext a:hover .ttl{color:var(--on-ink) !important}

/* ===================== clean ===================== */
html.f-clean .entry-author,html.f-clean #comments,html.f-clean .comment-respond,html.f-clean .comments-area{display:none !important}

