/* ArchTech project albums. Pearl surfaces and a continuous, tactile glass reel. */
:root { --paper: #f0f4f7; --stone: #e0e8ec; --line: #ccd8df; --ink: #172a36; --muted: #50636f; }
body { background: var(--paper); }
.site-header { background: #eff4f7ed; border-bottom-color: #bfcfd96b; }
.page-hero, .project-intro { background: linear-gradient(130deg, #f7fafd 0%, #eaf0f5 65%, #e3edf3 100%); border-bottom-color: #cfdae2; }
.home-introduction { position: relative; }
.home-introduction::after { content: ''; position: absolute; z-index: -1; inset: 0 calc(-1 * var(--gutter)); background: radial-gradient(ellipse at 91% 0%, #d9eaf57a, transparent 65%); pointer-events: none; }
.section-stone { background: #e3ebef; }
.cta-panel { background: linear-gradient(115deg, #e1eaf0, #eaf1f5); }
.section-dark { background: #172c39; }
.site-footer { background: #142734; }
/* The entire strip stays in one row, including on a phone. */
.explorer-home .explorer-copy { padding-top: 7px; padding-bottom: 34px; }
.project-explorer .reel-shell { border: 0; margin-top: 0; padding-top: 0; min-width: 0; }
.project-explorer .reel-heading { font-size: 11px; letter-spacing: .09em; padding: 0 3px; margin-bottom: 15px; }
.project-explorer .project-reel,
.explorer-home .project-reel { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 14px; padding: 7px 4px 15px; overflow-x: auto; overflow-y: hidden; max-height: none; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #9db5c4 transparent; scroll-padding-inline: 4px; }
.project-explorer .reel-item,
.explorer-home .reel-item { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; flex: 0 0 calc((100% - 70px) / 6); min-width: 186px; min-height: 198px; max-width: 250px; padding: 8px; margin: 0; gap: 0; border: 1px solid #ffffffcf; border-radius: 13px; overflow: hidden; color: var(--ink); text-align: left; background: linear-gradient(145deg, #ffffffdb 0%, #d7e5eea6 48%, #f7fbffd6 100%); box-shadow: inset 0 1px 0 #ffffff, inset 1px 0 0 #ffffff, inset -1px -1px 0 #9eafc375, 0 3px 8px #23445a0e, 0 0 0 1px #a9bfce55; scroll-snap-align: start; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
/* Narrow optical rims: the grain and colour splitting never cross the text. */
.project-explorer .reel-item::before { content: ''; position: absolute; z-index: 3; inset: 1px; border-radius: 11px; pointer-events: none; border: 1px solid transparent; border-top-color: #ffffffed; border-left-color: #e5fbffd9; border-right-color: #c6c3e288; box-shadow: inset 2px 0 2px #69b9ef4d, inset -2px 0 2px #e5c4d92e, inset 0 -2px 2px #adc4d787; }
.project-explorer .reel-item::after { content: ''; position: absolute; z-index: 4; inset: 0; padding: 2px; border-radius: inherit; pointer-events: none; opacity: .38; background: repeating-linear-gradient(0deg, #ffffff90 0 1px, #83b4d140 1px 2px, transparent 2px 4px), repeating-linear-gradient(90deg, #a5d8f170 0 1px, transparent 1px 4px); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; }
.project-explorer .reel-item img,
.explorer-home .reel-item img { width: 100%; height: 108px; flex: 0 0 108px; border-radius: 6px; object-fit: cover; filter: saturate(.92); box-shadow: 0 1px 0 #ffffffb3; }
.project-explorer .reel-number { position: absolute; z-index: 2; top: 15px; left: 15px; display: grid; place-items: center; min-width: 25px; height: 24px; padding: 0 5px; border: 1px solid #ffffff7d; border-radius: 4px; font-size: 9px; line-height: 1; color: white; background: #17303fbd; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-variant-numeric: tabular-nums; }
.project-explorer .reel-label { display: block; padding: 13px 7px 7px; }
.project-explorer .reel-label strong { display: block; font-size: 12px; line-height: 1.4; font-weight: 600; letter-spacing: -.01em; }
.project-explorer .reel-label small { font-size: 10px; line-height: 1.5; margin-top: 6px; color: #566d7b; }
.project-explorer .reel-item svg { display: none; }
.project-explorer .reel-item:hover { border-color: #8db9d2; background: linear-gradient(135deg, #ffffff, #deedf7bc 60%, #ffffffdc); box-shadow: inset 0 1px 0 white, inset 1px 0 0 white, 0 4px 12px #1c547e15, 0 0 0 1px #97bdd266; }
.project-explorer .reel-item.is-selected { border-color: #2c7fa9; background: linear-gradient(135deg, #f5fcff, #d7eaf6 60%, #f1f9ff); box-shadow: inset 0 1px 0 white, inset 0 -3px 0 #2386b7, 0 3px 12px #1c547e17, 0 0 0 1px #2e86b32e; }
.project-explorer .reel-item.is-selected .reel-number { color: white; background: #176184ed; border-color: #d8edf88c; }
.project-explorer .reel-item:focus-visible { outline: 3px solid #176184; outline-offset: 3px; }
.project-explorer .reel-hint { padding-left: 3px; margin-top: 9px; font-size: 11px; color: #566d7b; }
/* The Projects page uses the same sequence: introduction, reel, selected album. */
.project-explorer.explorer-projects { display: flex; flex-direction: column; gap: 30px; padding-top: 40px; padding-bottom: 56px; }
.explorer-projects .explorer-copy { display: contents; }
.explorer-projects .explorer-heading { order: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: start; gap: 0 24px; padding: 0; }
.explorer-projects .explorer-heading > .eyebrow { grid-column: 1 / -1; margin-bottom: 18px; }
.explorer-projects .explorer-heading h2 { grid-column: 1 / span 3; grid-row: 2 / span 2; margin: 0; font-size: clamp(36px, 3.8vw, 56px); }
.explorer-projects .explorer-lead { grid-column: 5 / span 2; grid-row: 2; max-width: 100%; margin: 0 0 20px; }
.explorer-projects .explorer-actions { grid-column: 5 / span 2; grid-row: 3; }
.explorer-projects .reel-shell { order: 2; }
.explorer-projects .explorer-stage { order: 3; width: 100%; min-height: 550px; height: min(76svh, 850px); max-height: none; border-radius: 9px; box-shadow: 0 1px 0 #ffffff, 0 9px 34px #1c425c12; }
.explorer-projects .explorer-photo { object-fit: contain; background: #1b2e3b; }
.explorer-projects .stage-glass { left: 26px; right: auto; width: min(570px, calc(100% - 52px)); border-radius: 8px; background: #122938c9; border-color: #ffffff73; box-shadow: inset 0 1px 0 #ffffff24, inset 1px 0 0 #cceeff24; }
.explorer-home .stage-glass { border-radius: 8px; border-color: #ffffff73; background: #122938c9; box-shadow: inset 0 1px 0 #ffffff24, inset 1px 0 0 #cceeff24; }
.round-button { text-decoration: none; }
/* Photograph controls are an in-place contact sheet, outside the sticky scene. */
.album-tray { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(0, 2fr); align-items: center; gap: 22px; width: min(100%, calc(var(--max) + 2 * var(--gutter))); margin: 0 auto; padding: 23px var(--gutter) 30px; border-bottom: 1px solid #c8d8e2; background: linear-gradient(125deg, #ffffff96, #e3edf49c); }
.explorer-projects .album-tray { order: 4; margin-top: -13px; padding: 19px 20px; width: 100%; border: 1px solid #ffffffa6; border-radius: 9px; box-shadow: inset 0 1px 0 white, 0 2px 8px #24486109; }
.album-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; }
.album-tools button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #afc5d3; border-radius: 7px; color: var(--ink); background: linear-gradient(140deg, #ffffffd9, #d8e7f18c); box-shadow: inset 0 1px 0 white; font-size: 20px; }
.album-tools button:hover { border-color: #3484b0; background: #f7fcff; }
.album-tools button:disabled { opacity: .38; }
.album-tools svg { width: 20px; height: 20px; }
.album-status { flex: 1; min-width: 0; margin: 0; text-align: center; color: #355265; font-size: 12px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.album-thumbs { display: flex; align-items: center; gap: 9px; min-width: 0; overflow-x: auto; padding: 5px; scrollbar-width: thin; scrollbar-color: #9db5c4 transparent; scroll-snap-type: x proximity; }
.album-thumbs button { flex: 0 0 70px; width: 70px; height: 57px; margin: 0; padding: 3px; border: 1px solid #c4d5df; border-radius: 6px; background: #ffffff85; scroll-snap-align: center; box-shadow: inset 0 1px 0 white; }
.album-thumbs button img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 3px; }
.album-thumbs button.is-active, .album-thumbs button[aria-current="true"], .album-thumbs button[aria-selected="true"] { border-color: #176184; background: #d6ebf8; box-shadow: 0 0 0 1px #176184; }
.album-thumbs button:hover { border-color: #4e91b7; }
@media (max-width: 1100px) {
  .project-explorer .reel-item, .explorer-home .reel-item { min-width: 197px; flex-basis: 197px; }
  .explorer-projects .explorer-lead, .explorer-projects .explorer-actions { grid-column: 4 / span 3; padding-left: 30px; }
}
@media (max-width: 760px) {
  .explorer-home .explorer-copy { padding-top: 3px; padding-bottom: 25px; }
  .project-explorer .project-reel, .explorer-home .project-reel { gap: 12px; padding-bottom: 14px; }
  .project-explorer .reel-item, .explorer-home .reel-item { flex: 0 0 190px; min-width: 190px; min-height: 198px; padding: 7px; }
  .project-explorer .reel-item img, .explorer-home .reel-item img { width: 100%; height: 108px; }
  .project-explorer .reel-label { padding: 12px 6px 8px; }
  .project-explorer .reel-label strong { font-size: 12px; }
  .project-explorer .reel-label small { font-size: 10px; }
  .project-explorer.explorer-projects { gap: 25px; padding-top: 32px; }
  .explorer-projects .explorer-heading { display: block; }
  .explorer-projects .explorer-heading h2 { margin: 0 0 21px; font-size: 39px; }
  .explorer-projects .explorer-lead { padding: 0; max-width: 440px; }
  .explorer-projects .explorer-actions { padding: 0; }
  .explorer-projects .explorer-stage { min-height: 480px; height: 68svh; border-radius: 7px; }
  .explorer-projects .stage-glass { left: 17px; width: calc(100% - 34px); padding: 20px; bottom: 70px; }
  .explorer-projects .stage-topline, .explorer-projects .stage-controls { left: 17px; right: 17px; }
  .explorer-projects .stage-topline { font-size: 9px; gap: 7px; }
  .explorer-projects .film-trigger { font-size: 10px; padding: 8px 10px; }
  .album-tray { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 18px; padding-bottom: 20px; }
  .album-tools { justify-content: flex-start; gap: 15px; }
  .album-status { min-width: 0; }
  .album-thumbs { gap: 8px; }
  .album-thumbs button { flex-basis: 64px; width: 64px; height: 53px; }
  .explorer-projects .album-tray { margin-top: -9px; padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-explorer .reel-item { transition: none; }
}

.explorer-home .explorer-stage:not(.has-scroll-film) .explorer-photo { object-fit: contain; background: #1b2e3b; }
.explorer-stage { touch-action: pan-y; }
.gallery { touch-action: pan-y; }

/* A dimmed, soft duplicate of the selected photograph fills the album surround. */
.album-ambience { position: absolute; inset: -5%; width: 110%; height: 110%; object-fit: cover; filter: blur(24px) brightness(.45) saturate(.7); pointer-events: none; }
.explorer-projects .explorer-photo, .explorer-home .explorer-stage:not(.has-scroll-film) .explorer-photo { background: transparent; }
.project-explorer .reel-number { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Reserve editorial archive frames before lazy images load: stable category jumps. */
.archive-grid { grid-auto-rows: clamp(180px, 20vw, 300px); }
.archive-grid .archive-shot { min-height: 0; }
.archive-shot > a { position: relative; display: block; width: 100%; height: 100%; }
.archive-grid .archive-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media(max-width:760px) { .archive-grid { grid-auto-rows: 240px; } }
