:root {
  --bg: #242526;
  --surface: #2d2e30;
  --text: #ededeb;
  --muted: #929496;
  --line: #3a3b3d;
  --page-width: 1800px;
  --gutter: clamp(20px, 3.4vw, 58px);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.lightbox-open { overflow: hidden; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
.skip-link { position: absolute; top: 12px; left: -9999px; z-index: 1000; padding: 10px 14px; background: var(--text); color: var(--bg); }
.skip-link:focus { left: 12px; }
.site-header {
  width: 100%;
  padding: 27px var(--gutter) 25px;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 30px;
  width: min(100%, var(--page-width));
  margin: 0 auto;
}
.identity { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 13px; color: var(--text); text-decoration: none; }
.identity-name { font-size: 16px; font-weight: 600; letter-spacing: -.025em; }
.identity-role { color: var(--muted); font-size: 12px; letter-spacing: .015em; }
.site-nav { display: flex; align-items: baseline; gap: 27px; }
.site-nav a { color: var(--muted); font-size: 12px; letter-spacing: .015em; text-decoration: none; transition: color .2s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.work-main { width: min(100%, var(--page-width)); margin: 0 auto; padding: var(--gutter); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.work-item { min-width: 0; margin: 0; }
.work-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.work-thumb:disabled { cursor: default; }
.work-image, .thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.65,.3,1), opacity .35s ease;
}
.thumb-placeholder { background: linear-gradient(135deg, #383a3c, #292a2c); }
.work-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  padding: clamp(14px, 2vw, 25px);
  background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.78) 100%);
  opacity: 0;
  transition: opacity .25s ease;
}
.work-title { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.work-details { color: rgba(255,255,255,.72); font-size: 11px; }
.play-mark {
  position: absolute;
  top: 16px;
  right: 18px;
  color: #fff;
  font-size: 17px;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity .25s ease, transform .25s ease;
}
.work-thumb:hover .work-overlay,
.work-thumb:focus-visible .work-overlay { opacity: 1; }
.work-thumb:hover .work-image { transform: scale(1.035); }
.work-thumb:hover .play-mark,
.work-thumb:focus-visible .play-mark { opacity: 1; transform: translate(0, 0); }
.work-thumb:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }
.empty-work { min-height: 45vh; display: grid; place-items: center; color: var(--muted); text-align: center; }
.contact-main {
  display: flex;
  align-items: center;
  width: min(100%, var(--page-width));
  min-height: calc(100vh - 130px);
  margin: 0 auto;
  padding: 70px var(--gutter) 110px;
}
.contact-copy { width: min(100%, 660px); margin-left: clamp(0px, 9vw, 150px); }
.contact-content { color: #c5c6c5; font-size: clamp(16px, 1.8vw, 20px); line-height: 1.8; }
.contact-content > :first-child { margin-top: 0; }
.contact-content h1, .contact-copy > h1 {
  margin: 0 0 28px;
  color: var(--text);
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.08;
}
.contact-content a { color: var(--text); text-decoration-color: #737678; text-underline-offset: 4px; }
.contact-content a:hover { text-decoration-color: var(--text); }
.site-footer {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding: 0 var(--gutter) 24px;
  color: #66696b;
  font-size: 10px;
  letter-spacing: .03em;
}
.video-lightbox {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vw;
  background: rgba(12, 13, 14, .96);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.video-lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-frame { width: min(100%, 1200px); aspect-ratio: 16 / 9; background: #000; }
.lightbox-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 30px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 34px;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 1050px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .site-header { padding-top: 20px; padding-bottom: 19px; }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 16px; }
  .identity { gap: 8px; }
  .site-nav { gap: 22px; }
  .work-main { padding: 12px; }
  .work-grid { grid-template-columns: 1fr; gap: 8px; }
  .work-overlay { opacity: 1; padding: 16px; }
  .play-mark { opacity: .9; }
  .contact-main { min-height: calc(100vh - 150px); padding-top: 60px; padding-bottom: 80px; }
  .contact-copy { margin-left: 0; }
  .video-lightbox { padding: 18px; }
  .lightbox-close { top: 10px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Customizable palette and fonts; header centered on the page. */
:root { --header-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.header-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 17px; }
.identity { flex-direction: column; align-items: center; gap: 1px; text-align: center; font-family: var(--header-font); }
.site-nav { justify-content: center; font-family: var(--header-font); }
.identity-name { font-size: 18px; }
.identity-role { font-size: 12px; }
.work-thumb, .work-image, .thumb-placeholder { border-radius: 0 !important; }
.site-header { border-color: var(--line); }
.contact-content { color: var(--text); }
.site-footer { color: var(--muted); }
@media (max-width: 620px) {
  .header-inner { align-items: center; gap: 15px; }
  .identity { align-items: center; }
}

/* v5: centered contact copy, visually separated project metadata. */
.contact-main { justify-content: center; }
.contact-copy { margin-inline: auto; text-align: center; }
.contact-content { text-align: center; }
.work-details { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 14px; }
.work-detail { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 5px; }
.work-detail + .work-detail { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.38); }
.work-detail-label { color: rgba(255,255,255,.56); font-size: 10px; text-transform: uppercase; letter-spacing: .075em; }
.work-detail-value { color: #fff; font-size: 11px; }
@media (max-width: 620px) { .contact-copy { margin-inline: auto; } }

/* Centered, optional WordPress custom logo (replaces the name when present). */
.identity { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; }
.identity .custom-logo-link { display: inline-flex; justify-content: center; align-items: center; max-width: 100%; text-decoration: none; }
.identity .custom-logo { display: block; width: auto; max-width: min(300px, 75vw); max-height: 110px; height: auto; object-fit: contain; }
.identity-name { color: var(--text); text-decoration: none; }
.identity-role { display: block; text-align: center; }
@media (max-width: 620px) { .identity .custom-logo { max-height: 85px; max-width: min(250px, 80vw); } }

/* v7: centered footer privacy link */
.site-footer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.site-footer .privacy-link { color: var(--muted); font-size: 12px; text-decoration: none; text-underline-offset: 4px; }
.site-footer .privacy-link:hover, .site-footer .privacy-link:focus-visible { color: var(--text); text-decoration: underline; }
.site-footer .footer-copyright { font-size: 10px; }

.player-shell{position:relative;width:min(100%,1200px)}.player-shell .lightbox-frame{width:100%}.player-shell .lightbox-frame>div,.player-shell .lightbox-frame iframe{width:100%!important;height:100%!important}.player-shell .lightbox-close{z-index:4;top:-46px;right:0}.player-controls{display:flex;align-items:center;gap:15px;padding:15px 4px 4px;color:#fff;transition:opacity .2s}.player-controls button{background:transparent;color:inherit;border:0;cursor:pointer;padding:6px;font-size:22px}.player-controls button:disabled{opacity:.4}.player-controls label{font-size:11px;color:#ccc}.player-controls input{width:110px;accent-color:#eee}.player-spacer{flex:1}.player-status{min-height:1.3em;font-size:12px;color:#ddd}.player-shell.controls-hidden .player-controls{opacity:0;pointer-events:none}.player-shell.controls-hidden:focus-within .player-controls{opacity:1;pointer-events:auto}.player-shell:fullscreen{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;padding:24px;background:#000}.player-shell:fullscreen .lightbox-frame{max-height:calc(100vh - 95px)}.player-shell:fullscreen .lightbox-close{top:4px;right:8px}@media(max-width:620px){.player-controls{gap:10px}.player-controls input{width:85px}.player-shell .lightbox-close{top:-42px}}

/* V10: work item as image, using the same accessible lightbox without video controls. */
.player-shell.image-mode .lightbox-frame { background: transparent; aspect-ratio: auto; height: auto; max-height: 80vh; display: flex; align-items: center; justify-content: center; }
.player-shell.image-mode .lightbox-still { display:block; max-width: 100%; max-height: 80vh; width: auto; height: auto; object-fit: contain; }
.player-shell.image-mode .player-controls { display: none; }
.player-shell.image-mode .player-status:empty { display: none; }
.player-shell.image-mode:fullscreen .lightbox-frame,
.player-shell.image-mode:fullscreen .lightbox-still { max-height: 90vh; }


/* v11: adjustable page title/paragraph sizing, widths, leading and alignment.
   Apply only on regular pages; Work cards, header, footer and player retain their styles. */
.contact-main .contact-copy { width: 100%; max-width: none; margin-inline: auto; text-align: var(--page-text-align); }
.contact-main .contact-copy > h1,
.contact-main .contact-content h1,
.contact-main .contact-content .wp-block-heading:is(h1) {
  font-size: var(--page-title-size);
  max-width: min(100%, var(--page-title-width));
  width: 100%;
  margin-inline: auto;
  text-align: var(--page-text-align);
}
.contact-main .contact-content > p,
.contact-main .contact-content > .wp-block-paragraph,
.contact-main .contact-content > ul,
.contact-main .contact-content > ol {
  font-size: var(--page-paragraph-size);
  line-height: var(--page-paragraph-line-height);
  max-width: min(100%, var(--page-paragraph-width));
  margin-inline: auto;
  text-align: var(--page-text-align);
}
.contact-main .contact-content { text-align: var(--page-text-align); }
.contact-main .contact-content > :not(h1):not(p):not(ul):not(ol) { max-width: min(100%, var(--page-paragraph-width)); margin-inline: auto; }
