/* Private portfolio — server-rendered HTML and self-hosted assets. */

:root {
  /* Interim palette recovered from the saved Sentire (Bridge/Qode) theme
     options, wp_sentire.sql option row qode_options_proya (both saved sets
     identical): background_color #ffffff, page/portfolio titles #222222,
     text_color and first_color #8d8d8d, buttons #000000 with white titles,
     input_border_color #d3d3d3 with #222222 focus, portfolio_list_overlay
     white. AA reconciliation: small critical text and control hover states
     use --ink-soft #6b6b6b (5.3:1 on white; the recovered hover gray #939393
     would leave white button text below AA); the exact Sentire gray #8d8d8d
     stays on decorative moments only (gate hover). Control glyphs are a
     local inline-data-URI stroke set, no icon library or network requests. */
  --bg: #ffffff;
  --panel: #ffffff;
  --ink: #222222;
  --ink-soft: #6b6b6b;
  --accent: #8d8d8d;
  --line: #d3d3d3;
  --overlay-scrim: rgba(255, 255, 255, 0.72);
  --overlay-blur: blur(6px);
  --display: "Abel", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --ease: cubic-bezier(0.22, 0.9, 0.3, 1);
}

/* Self-hosted upstream fonts under the SIL Open Font License 1.1; the license
   texts ship beside the files (fonts/abel/OFL.txt, fonts/roboto/OFL.txt).
   Downloaded 2026-11-24 from github.com/google/fonts:
   ofl/abel/Abel-Regular.ttf sha256 8809dcad25318225052f88333e208c5aad4adcb7b2c934c135735ec19aa410b4
   ofl/roboto/Roboto[wdth,wght].ttf sha256 d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134
   (saved here as Roboto-Variable.ttf). */
@font-face {
  font-family: "Abel";
  src: url("fonts/abel/Abel-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("fonts/roboto/Roboto-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 2rem 1.25rem;
}

/* ---------- shared bits ---------- */

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.kicker {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.6rem;
  border: 1px solid #000000;
  background: #000000;
  color: #ffffff;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

/* Sentire button: black with white title; hover darkened to the AA gray so
   white text stays 5.3:1 (the recovered #939393 hover would fail AA). */
.action:hover { background: var(--ink-soft); border-color: var(--ink-soft); }

/* Secondary control: the shared sign-out on signed-in pages. Same type
   treatment as .action, inverted surface; the AA-gray hover keeps the
   label at or above 4.5:1 on white. */
.action-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.action-secondary:hover {
  border-color: var(--ink-soft);
  color: var(--ink-soft);
}

/* Signed-in page headers: the sign-out sits top-right in flow, so long
   titles and narrow screens wrap instead of colliding with it. */
.grid-head,
.project-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 1rem;
}

.grid-head > :not(.logout-form),
.project-head > :not(.logout-form) { grid-column: 1; }

.grid-head .logout-form,
.project-head .logout-form {
  grid-column: 2;
  grid-row: 1;
}

/* Icon-only controls. The label text stays in the accessibility tree — it is
   only collapsed visually — so every control keeps its accessible name
   (Open project, Play/Pause, Previous, Next). */
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--overlay-scrim);
  -webkit-backdrop-filter: var(--overlay-blur);
  backdrop-filter: var(--overlay-blur);
  color: var(--ink);
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}

/* One local stroke-icon set (no library, no network requests): masks let the
   glyph take its color from background-color, so hover stays AA. */
.chip::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--ink);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.chip-open { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cpolyline points='9 21 3 21 3 15'/%3E%3Cline x1='21' y1='3' x2='14' y2='10'/%3E%3Cline x1='3' y1='21' x2='10' y2='14'/%3E%3C/svg%3E"); }
.chip-prev { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E"); }
.chip-next { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E"); }
.chip-play { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='7 4 20 12 7 20 7 4'/%3E%3C/svg%3E"); }
.chip-play.is-playing { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='9' y1='5' x2='9' y2='19'/%3E%3Cline x1='15' y1='5' x2='15' y2='19'/%3E%3C/svg%3E"); }
.chip-info { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12' y2='8.01'/%3E%3C/svg%3E"); }

.chip:hover { border-color: var(--ink-soft); }
.chip:hover::before { background-color: var(--ink-soft); }

:is(a, button, input, label, video):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- landing ---------- */

.gate-check {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.gate { margin: 0; }

.gate label {
  display: inline-block;
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(3.4rem, 13vw, 9.5rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--ink);
  transition: font-size 0.5s var(--ease), color 0.3s var(--ease);
}

.gate label:hover { color: var(--accent); }

#gate:checked ~ .gate label { font-size: clamp(2rem, 6vw, 3.4rem); }

#gate:focus-visible ~ .gate label,
.gate label:active { outline: 2px solid var(--ink); outline-offset: 8px; }

.login {
  visibility: hidden;
  opacity: 0;
  transform: translateY(0.75rem);
  width: min(100%, 21rem);
  margin-top: 1.6rem;
  padding: 1.6rem 1.5rem 1.7rem;
  border: 1px solid var(--line);
  background: var(--panel);
  display: grid;
  gap: 1rem;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0.4s;
}

#gate:checked ~ .login {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.field { display: grid; gap: 0.4rem; }

.field label {
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input {
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.field input:focus-visible { outline-offset: 0; border-color: var(--ink); }

.login .action { justify-self: stretch; margin-top: 0.3rem; }

.form-error {
  margin: 0;
  padding: 0.6rem 0.8rem;
  border-left: 2px solid var(--ink);
  background: rgba(141, 141, 141, 0.14);
  color: var(--ink);
  font-size: 0.95rem;
}

/* ---------- notice ---------- */

.page-notice { text-align: center; }

.greeting {
  margin: 0 auto;
  max-width: 34ch;
  font-size: clamp(1.45rem, 3.2vw, 2.2rem);
  line-height: 1.45;
  font-weight: 400;
  text-wrap: balance;
}

.greeting + .statement { margin-top: 0.9rem; }

.statement {
  margin: 0 auto;
  max-width: 34ch;
  font-size: clamp(1.45rem, 3.2vw, 2.2rem);
  line-height: 1.45;
  text-wrap: balance;
}

.notice-form { margin-top: 2.2rem; }

.page-notice .logout-form { margin-top: 1.5rem; }

/* ---------- grid ---------- */

.page-grid {
  display: block;
  align-content: start;
  justify-items: stretch;
  padding: clamp(1.4rem, 4vw, 3rem);
}

.grid-head {
  max-width: 108rem;
  margin: 0 auto 1.6rem;
}

.wordmark {
  margin: 0;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.2;
}

.grid-head .kicker { margin: 0.2rem 0 0; }

.grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 108rem;
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.6rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 57rem) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* One edge-to-edge column on phones. */
@media (max-width: 34rem) {
  .page-grid { padding: 0; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .grid-head { padding: 1.25rem 1.1rem 0; margin-bottom: 1.1rem; }
}

.tile { position: relative; aspect-ratio: 1; }

.tile-body {
  position: relative;
  height: 100%;
  background: var(--panel);
  overflow: hidden;
}

.tile-body video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The overlay does not block playback; the open and Info controls can still be used. */
.tile-top {
  position: absolute;
  inset: 0;
  padding: 0.9rem;
  pointer-events: none;
}

.tile-panel {
  position: absolute;
  inset: 3.75rem 0.9rem;
  display: grid;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--overlay-scrim);
  -webkit-backdrop-filter: var(--overlay-blur);
  backdrop-filter: var(--overlay-blur);
  text-align: center;
  transition: opacity 150ms ease, visibility 150ms ease;
}

/* Multiple audio examples need a second clear control row. */
.tile-body:has(.audio-nav) .tile-panel { bottom: 8rem; }

.tile-info,
.tile-desc {
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: auto;
}

.tile-info {
  display: flex;
  flex-direction: column;
  justify-content: safe center;
}

/* Readable fallback when the platform has no backdrop blur: drop the
   translucency instead of the contrast. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .chip,
  .tile-panel {
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.tile-title {
  display: block;
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.25;
  overflow-wrap: break-word;
  color: var(--ink);
}

.tile-year,
.tile-role,
.tile-stack {
  display: block;
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.tile-year {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.tile-role {
  font-size: 0.82rem;
  color: var(--ink);
}

.tile-stack {
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
  padding-top: 0.45rem;
  font-size: 0.75rem;
}

.tile-top .chip {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  pointer-events: auto;
}

.tile-body > .chip.chip-play,
.tile-body > .chip.chip-info {
  position: absolute;
  bottom: 0.6rem;
  z-index: 1;
}

.tile-body > .chip-play,
.tile-body > .chip-info { left: 0.6rem; }

.tile-body:is([data-video-enhance], [data-audio-tile]) > .chip-info {
  left: calc(0.6rem + 2.75rem + 0.4rem);
}

/* Both text panes share one fixed frame; only its contents crossfade. */
.tile-desc {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.tile-desc:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* Shared copy styling keeps the detail description at the media width. */
:is(.tile-desc, .description-text) :is(p, ul, ol) { margin: 0 0 0.75em; }
:is(.tile-desc, .description-text) > :last-child { margin-bottom: 0; }

:is(.tile-desc, .description-text) :is(ul, ol) {
  padding-left: 1.4em;
  text-align: left;
}

:is(.tile-desc, .description-text) ul { list-style-type: disc; }

:is(.tile-desc, .description-text) li + li { margin-top: 0.3em; }

:is(.tile-desc, .description-text) a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}

:is(.tile-desc, .description-text) a:hover { text-decoration-thickness: 2px; }

.tile-panel.is-switching :is(.tile-info, .tile-desc) {
  transition: opacity 150ms ease, visibility 150ms ease;
}

.tile-info[hidden] { display: flex; }
.tile-desc[hidden] { display: block; }

.tile-info[hidden],
.tile-desc[hidden],
.tile-body.is-playing .tile-panel:not(.is-info-open) {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.tile-body.is-playing .tile-panel:not(.is-info-open) {
  transition-duration: 320ms;
}

/* ---------- audio tiles and detail players ---------- */

/* Audio projects: the still fills the tile. Script-off, every example is
   visible with its own native player, stacked at the bottom edge — nothing
   can end up playing while hidden. When the script runs it adds
   .audio-select and the group collapses to one player behind the tabs. */
.tile-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audio-radio {
  display: none;
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.audio-group {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.6rem;
  display: grid;
  gap: 0.4rem;
}

.audio-example {
  margin: 0;
}

.audio-example audio {
  display: block;
  width: 100%;
}

.audio-example audio:not([controls]) { display: none; }
.audio-select .audio-radio { display: block; }
.audio-select .audio-example { display: none; }

.audio-select .audio-radio:checked + .audio-example { display: block; }

.audio-select .audio-radio:focus-visible + .audio-example {
  outline: 2px solid var(--ink);
  outline-offset: -6px;
}

.audio-nav {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 4.6rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.audio-nav[hidden] { display: none; }

.tile-body :is(.audio-group, .audio-nav) {
  z-index: 1;
  pointer-events: none;
}

.tile-body :is(.audio-group audio, .audio-group button, .audio-tab) { pointer-events: auto; }

.audio-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--overlay-scrim);
  -webkit-backdrop-filter: var(--overlay-blur);
  backdrop-filter: var(--overlay-blur);
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}

.audio-tab:hover { border-color: var(--ink-soft); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .audio-tab { background: rgba(255, 255, 255, 0.94); }
}

/* Detail page: the group flows with the document instead of anchoring to a
   tile bottom, above the (script-revealed) tab row. */
.audio-block {
  position: relative;
}

.audio-block .audio-group {
  position: static;
}

.audio-block .audio-nav {
  position: static;
  margin-top: 0.6rem;
  justify-content: flex-start;
}

/* ---------- carousel ---------- */

.slide-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.slide { display: none; height: 100%; margin: 0; flex-direction: column; }

/* Adjacent pairing scales to any number of slides. */
.slide-radio:checked + .slide { display: flex; width: 100%; }

.slide-radio:focus-visible + .slide {
  outline: 2px solid var(--ink);
  outline-offset: -6px;
}

.slide img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: contain;
  background: #000;
}

.slide-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.7rem;
  border-top: 1px solid var(--line);
}

.slide-count {
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.slide-nav { display: flex; gap: 0.5rem; }

/* ---------- page fades ---------- */

@media (prefers-reduced-motion: no-preference) {
  .page-grid,
  .page-project { animation: page-arrive 170ms ease-out; }

  .page.is-leaving { animation: page-leave 110ms ease-in forwards; }

  @keyframes page-arrive {
    from { opacity: 0.15; }
    to { opacity: 1; }
  }

  @keyframes page-leave {
    to { opacity: 0.15; }
  }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
