:root {
  --paper: #f7f5ef;
  --ink: #30372e;
  --muted: #63685c;
  --line: #d3d5c9;
  --sage: #e6e8dc;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.6 Arial,
    sans-serif;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
img {
  display: block;
  width: 100%;
  object-fit: cover;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  line-height: 1.08;
}
h1 {
  font-size: clamp(3.2rem, 6.3vw, 6.2rem);
  letter-spacing: -0.055em;
}
h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  letter-spacing: -0.035em;
}
h3 {
  font-size: 1.7rem;
}
em {
  font-weight: 400;
}
p {
  color: var(--muted);
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #9a633a;
  outline-offset: 5px;
}
.skip {
  position: absolute;
  left: 20px;
  top: -100px;
}
.skip:focus {
  top: 20px;
  z-index: 10;
  background: white;
  padding: 10px;
}
.wrap {
  width: min(1280px, 90%);
  margin: auto;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.19em;
  font-size: 0.75rem;
  font-weight: 600;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
  gap: 25px;
}
.brand {
  font:
    1.55rem Georgia,
    serif;
  letter-spacing: -0.025em;
}
.brand small {
  display: block;
  font:
    0.65rem Arial,
    sans-serif;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  margin-top: 5px;
}
.navlinks {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.875rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 48px;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-size: 0.875rem;
  text-align: center;
}
.btn.light {
  background: transparent;
  color: var(--ink);
}
.btn:hover {
  background: #4d5746;
  color: white;
}
.menu {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 10px;
}
.hero {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 7%;
  align-items: center;
  padding: 44px 0 65px;
}
.hero-copy {
  padding: 25px 0;
}
.hero h1 {
  margin: 28px 0;
}
.hero p {
  max-width: 365px;
  margin-bottom: 30px;
}
.hero-image {
  position: relative;
}
.hero-image img {
  height: 650px;
  object-position: center 55%;
  border-radius: 48% 48% 0 0;
}
.caption {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero .fine {
  display: block;
  margin-top: 52px;
  font:
    italic 1.1rem Georgia,
    serif;
}
.section {
  padding: 95px 0;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 40px;
}
.heading h2 {
  margin-top: 15px;
}
.heading p {
  max-width: 300px;
}
.portfolio {
  border-top: 1px solid var(--line);
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
}
.card {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  padding: 0;
  color: var(--ink);
}
.card img {
  height: 530px;
  transition: filter 0.25s;
}
.card:hover img {
  filter: brightness(0.92);
}
.card:nth-child(even) {
  margin-top: 70px;
}
.card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.card small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.arrow {
  font-size: 1.8rem;
}
.about {
  background: var(--sage);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 12%;
}
.about img {
  height: 580px;
  object-position: 50% 35%;
  border-radius: 2px 2px 180px 2px;
}
.about h2 {
  margin: 20px 0 25px;
}
.about p + p {
  margin-top: 20px;
}
.client {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  align-items: center;
}
.client h2 {
  margin: 18px 0 25px;
}
.client p {
  max-width: 430px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  padding: 35px;
}
.panel h3 {
  margin-bottom: 20px;
}
label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 15px;
}
input {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border: 1px solid #aaaf9f;
  background: #fafbf7;
  color: var(--ink);
  border-radius: 0;
  min-width: 0;
}
input[type="file"] {
  font-size: 0.875rem;
}
.panel .btn {
  width: 100%;
}
.note {
  font-size: 0.8rem;
  margin-top: 16px;
}
.demo {
  background: #eee8d8;
  border: 1px solid #d4cbb5;
  padding: 12px 15px;
  font-size: 0.8rem;
  color: #554f40;
  margin-bottom: 20px;
}
.error {
  color: #a32f29;
  font-size: 0.875rem;
  margin-bottom: 14px;
}
.contact {
  background: var(--ink);
  color: var(--paper);
  padding: 70px 0;
}
.contact .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.contact p {
  color: #d4d8cc;
  margin-top: 18px;
}
.contact .btn {
  border-color: #c4cbbb;
  background: transparent;
  color: white;
}
footer {
  padding: 30px 0;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  font-size: 0.75rem;
}
.foot button {
  background: none;
  border: 0;
  text-decoration: underline;
  color: var(--muted);
  font-size: 0.8rem;
}
dialog {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 30px;
  width: min(660px, 94vw);
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #182016b8;
  backdrop-filter: blur(5px);
}
.close {
  display: block;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  padding: 6px 12px;
  margin-bottom: 18px;
}
.modal-image {
  max-height: 55vh;
  object-fit: contain;
  background: var(--sage);
  margin: 22px 0;
}
.album-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.status {
  min-height: 24px;
  font-size: 0.875rem;
  margin-top: 15px;
}
.manager-row {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.manager-row span {
  display: block;
  margin-bottom: 6px;
}
.manager-row button {
  border: 1px solid var(--line);
  background: none;
  padding: 7px 12px;
  color: var(--ink);
}
.manager-row input {
  margin-bottom: 10px;
}
.hidden,
[hidden] {
  display: none !important;
}
body:has(dialog[open]) {
  overflow: hidden;
}
@media (max-width: 800px) {
  .wrap {
    width: 89%;
  }
  .nav {
    padding: 20px 0;
    flex-wrap: wrap;
  }
  .menu {
    display: block;
  }
  .navlinks {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .navlinks.open {
    display: flex;
  }
  .navlinks a {
    padding: 12px 0;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 36px 0 50px;
  }
  .hero-copy {
    padding: 0;
  }
  .hero h1 {
    max-width: 550px;
  }
  .hero .fine {
    margin-top: 25px;
  }
  .hero-image img {
    height: 550px;
  }
  .hero p {
    max-width: 440px;
  }
  .section {
    padding: 60px 0;
  }
  .heading {
    display: block;
  }
  .heading p {
    margin-top: 20px;
  }
  .grid {
    gap: 22px;
  }
  .card img {
    height: 330px;
  }
  .card:nth-child(even) {
    margin-top: 35px;
  }
  .card h3 {
    font-size: 1.35rem;
  }
  .about-inner {
    gap: 35px;
    grid-template-columns: 1fr;
  }
  .about img {
    height: 480px;
  }
  .client {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .contact .wrap,
  .foot {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 3.45rem;
  }
  .hero-image img {
    height: 455px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .card:nth-child(even) {
    margin-top: 0;
  }
  .card img {
    height: 440px;
  }
  .panel {
    padding: 24px;
  }
  .brand {
    font-size: 1.3rem;
  }
  .about img {
    height: 430px;
  }
  .caption {
    font-size: 0.65rem;
  }
  .contact h2 {
    font-size: 2.7rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* Motion is progressive enhancement: content remains visible without JavaScript. */
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes imageEnter {
  from {
    opacity: 0;
    transform: scale(1.035);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes modalEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes fadePhoto {
  from {
    opacity: 0.25;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: enter 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-copy > :nth-child(2) {
    animation-delay: 0.12s;
  }
  .hero-copy > :nth-child(3) {
    animation-delay: 0.24s;
  }
  .hero-copy > :nth-child(4) {
    animation-delay: 0.34s;
  }
  .hero-copy > :nth-child(5) {
    animation-delay: 0.44s;
  }
  .hero-image {
    animation: imageEnter 1.4s ease both;
  }
  .reveal-pending {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal {
    transition:
      opacity 0.85s ease,
      transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  dialog[open] {
    animation: modalEnter 0.3s ease;
  }
  .photo-changing {
    animation: fadePhoto 0.4s ease;
  }
}
.btn {
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px #30372e18;
}
.btn:active {
  transform: translateY(0);
}
.navlinks > a:not(.btn) {
  position: relative;
}
.navlinks > a:not(.btn):after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.navlinks > a:hover:after {
  transform: scaleX(1);
}
.photo-frame {
  overflow: hidden;
}
.photo-frame img {
  transition:
    transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.4s;
}
.card:hover .photo-frame img {
  transform: scale(1.035);
}
.card .arrow {
  transition: transform 0.3s;
}
.card:hover .arrow {
  transform: translate(4px, -4px);
}
.progress-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #889475;
  z-index: 20;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.studio-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}
.studio-tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.file-zone {
  padding: 22px;
  border: 1px dashed #889475;
  background: var(--sage);
}
.file-zone small {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}
.file-zone.dragging {
  outline: 3px solid #889475;
}
.album-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.album-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  background: none;
}
.album-thumbs button[aria-pressed="true"] {
  border-color: var(--ink);
}
.album-thumbs img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center;
  background: var(--sage);
}
.photo-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 15px 0;
}
.photo-navigation button {
  background: none;
  border: 1px solid var(--line);
  padding: 10px 18px;
  color: var(--ink);
}
.photo-navigation button:disabled {
  opacity: 0.35;
  cursor: default;
}
.album-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.album-row h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.album-row p {
  font-size: 0.875rem;
  margin-bottom: 12px;
}
.album-row button {
  margin-right: 8px;
}
progress {
  width: 100%;
  accent-color: #59684c;
}
.album-summary {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 12px 0;
}
.studio-heading {
  margin: 24px 0 15px;
  font-size: 1.5rem;
}
@media (max-width: 480px) {
  .album-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .studio-tabs .btn {
    flex: 1;
    padding: 10px;
  }
  .photo-navigation {
    font-size: 0.85rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal-pending {
    opacity: 1;
    transform: none;
  }
  .btn:hover {
    transform: none;
  }
}

.home-slider {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
}
.home-slider::-webkit-scrollbar {
  display: none;
}
.home-slider .card {
  flex: 0 0 72%;
  min-width: 0;
  margin-top: 0 !important;
  scroll-snap-align: start;
}
.home-slider .card img {
  height: 560px;
  object-position: center 50%;
  user-select: none;
  -webkit-user-drag: none;
}
.home-slider.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.home-slider.dragging .card {
  cursor: grabbing;
}
.slider-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  font-size: 0.875rem;
}
.slider-controls > div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.slider-controls button {
  min-height: 46px;
  min-width: 46px;
  background: transparent;
  border: 1px solid var(--line);
  padding: 10px 15px;
  color: var(--ink);
}
.slider-controls button:disabled {
  opacity: 0.4;
  cursor: default;
}
.portfolio-page .hero,
.portfolio-page .about,
.portfolio-page .client,
.portfolio-page .contact {
  display: none;
}
.portfolio-page #portfolio {
  border-top: 0;
  min-height: 70vh;
}
.portfolio-page #slider-controls {
  display: none;
}
.portfolio-page .card:nth-child(even) {
  margin-top: 0;
}
.portfolio-page .grid {
  row-gap: 55px;
}
.portfolio-page .heading {
  padding-top: 10px;
}
.portfolio-page .navlinks a[href="?page=portfolio"] {
  text-decoration: underline;
  text-underline-offset: 8px;
}
@media (max-width: 800px) {
  .home-slider .card {
    flex-basis: 88%;
  }
  .home-slider .card img {
    height: 470px;
  }
}
@media (max-width: 480px) {
  .home-slider .card {
    flex-basis: 92%;
  }
  .home-slider .card img {
    height: 400px;
  }
  .slider-controls {
    align-items: start;
    flex-direction: column;
  }
}
.owner-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.owner-session .btn {
  white-space: nowrap;
}
@media (max-width: 480px) {
  .owner-session {
    align-items: start;
    flex-direction: column;
  }
}

/* Mouse feedback is decorative, local, and never replaces the native pointer. */
#photo-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 78px;
  height: 78px;
  margin: -39px 0 0 -39px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f7f5efe8;
  color: var(--ink);
  border: 1px solid #ffffff80;
  backdrop-filter: blur(8px);
  font-size: 11px;
  letter-spacing: 0.1em;
  pointer-events: none;
  z-index: 30;
  opacity: 0;
  scale: 0.75;
  transition:
    opacity 0.2s,
    scale 0.3s;
  will-change: transform;
}
#photo-cursor.visible {
  opacity: 1;
  scale: 1;
}
.hero-image {
  perspective: 1000px;
}
.hero-image > img {
  translate: var(--photo-x, 0px) var(--photo-y, 0px);
  rotate: var(--photo-angle, 0deg);
  transition:
    translate 0.65s cubic-bezier(0.2, 0.7, 0.2, 1),
    rotate 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: translate;
}
.hero-copy .fine {
  margin-top: 35px;
}
.client .panel {
  transition:
    box-shadow 0.5s,
    border-color 0.4s;
}
.client .panel:focus-within {
  border-color: #7c8b70;
  box-shadow: 0 12px 40px #30372e0d;
}
.client input[name="code"] {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 1.15rem;
  padding: 17px;
}
.card .meta h3 {
  transition: translate 0.35s;
}
.card:hover .meta h3 {
  translate: 5px 0;
}
@media (hover: none), (pointer: coarse) {
  #photo-cursor {
    display: none;
  }
  .hero-image > img {
    translate: none !important;
    rotate: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  #photo-cursor {
    display: none;
  }
  .hero-image > img {
    translate: none !important;
    rotate: none !important;
  }
  .card:hover .meta h3 {
    translate: none;
  }
}

/* The hero IS the homepage slideshow, avoiding a repeated showcase below. */
body:not(.portfolio-page) .hero {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 6%;
  padding: 45px 0 70px;
  align-items: center;
}
.hero-image .home-slider {
  gap: 0;
  position: relative;
  border-radius: 180px 180px 0 0;
  isolation: isolate;
}
.hero-image .home-slider .card {
  flex: 0 0 100%;
  scroll-snap-stop: always;
}
.hero-image .home-slider .photo-frame {
  overflow: hidden;
}
.hero-image .home-slider .card img {
  height: 590px;
  border-radius: 0;
  object-position: center 55%;
  translate: none;
  rotate: none;
}
.hero-image .home-slider .meta {
  padding: 19px 8px 16px;
  min-height: 95px;
}
.hero-image .home-slider h3 {
  font-size: 1.5rem;
}
.hero-image .slider-controls {
  margin-top: 18px;
}
.hero-image .slider-controls > div {
  width: 100%;
  align-items: center;
}
.hero-image #slide-pause {
  margin-left: auto;
  border-color: transparent;
  font-size: 0.8rem;
}
body:not(.portfolio-page) .hero h1 {
  font-size: clamp(3.2rem, 5.5vw, 5.7rem);
}
@media (max-width: 800px) {
  body:not(.portfolio-page) .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 35px 0 50px;
  }
  .hero-image .home-slider .card img {
    height: 520px;
  }
  .hero-image .home-slider {
    border-radius: 150px 150px 0 0;
  }
  .hero-image .slider-controls {
    flex-direction: row;
  }
}
@media (max-width: 480px) {
  .hero-image .home-slider .card img {
    height: 420px;
  }
  .hero-image .home-slider {
    border-radius: 110px 110px 0 0;
  }
  .hero-image .home-slider h3 {
    font-size: 1.35rem;
  }
  body:not(.portfolio-page) .hero h1 {
    font-size: 3.2rem;
  }
}

/* Contain the carousel inside grid tracks instead of its intrinsic content width. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.hero-copy,
.hero-image,
.about-inner > *,
.client > *,
.panel,
.grid,
.card,
.meta > div {
  min-width: 0;
}
body:not(.portfolio-page) .hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}
.hero-image,
.home-slider {
  width: 100%;
  max-width: 100%;
}
.home-slider {
  min-width: 0;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
}
.hero-image .home-slider .card {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}
.card .meta {
  gap: 12px;
}
.card .meta > div {
  overflow-wrap: anywhere;
}
.card .arrow {
  flex-shrink: 0;
}
input,
textarea,
select {
  font-size: 16px;
  max-width: 100%;
}
.demo,
.note,
.status,
.foot,
.album-row {
  overflow-wrap: anywhere;
}
dialog {
  max-width: calc(100vw - 24px);
  max-height: 88vh;
  max-height: 88dvh;
  overscroll-behavior: contain;
}
@media (max-width: 800px) {
  .wrap {
    width: calc(100% - 36px);
  }
  body:not(.portfolio-page) .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 30px 0 42px;
  }
  .hero-copy {
    max-width: 620px;
  }
  .hero-copy .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }
  body:not(.portfolio-page) .hero h1 {
    font-size: clamp(2.4rem, 8.5vw, 4rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
    margin: 18px 0;
  }
  .hero-copy p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 34em;
    margin-bottom: 0;
  }
  .hero-copy .fine {
    font-size: 1rem;
    margin-top: 18px;
  }
  .hero-image .home-slider {
    border-radius: 90px 90px 0 0;
  }
  .hero-image .home-slider .card img {
    height: auto;
    aspect-ratio: 4/5;
    width: 100%;
    object-fit: cover;
    object-position: center 55%;
  }
  .hero-image .home-slider .meta {
    min-height: 84px;
    padding: 15px 3px;
  }
  .hero-image .home-slider h3 {
    font-size: 1.4rem;
  }
  .hero-image .slider-controls {
    margin-top: 12px;
  }
  .hero-image .slider-controls > div {
    gap: 8px;
    flex-wrap: nowrap;
  }
  .hero-image #slide-pause {
    font-size: 0.8rem;
    padding: 10px 8px;
  }
  .section {
    padding: 44px 0;
  }
  .about-inner {
    gap: 28px;
  }
  .about img {
    height: auto;
    aspect-ratio: 4/5;
    max-height: 600px;
    object-position: center 30%;
    border-radius: 2px 2px 90px 2px;
  }
  h2 {
    font-size: clamp(2rem, 7.5vw, 3rem);
  }
  .nav {
    gap: 16px;
    padding: 18px 0;
  }
  .brand {
    font-size: 1.3rem;
  }
  .brand small {
    font-size: 0.6rem;
    letter-spacing: 0.28em;
  }
  .menu {
    min-height: 44px;
    min-width: 64px;
    margin-left: auto;
  }
  .navlinks {
    width: 100%;
    min-width: 0;
  }
  .navlinks a {
    min-height: 46px;
  }
  .navlinks .btn {
    padding: 12px 18px;
  }
  .client {
    gap: 26px;
  }
  .panel {
    padding: 24px;
  }
  .contact {
    padding: 44px 0;
  }
  .contact .wrap {
    gap: 26px;
  }
  .foot {
    gap: 16px;
  }
  .foot button {
    min-height: 44px;
    padding: 0;
    text-align: left;
  }
  .portfolio-page .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .portfolio-page .card img {
    height: auto;
    aspect-ratio: 4/5;
  }
  dialog {
    padding: 20px;
    width: calc(100% - 24px);
  }
  .close {
    min-height: 44px;
  }
  .album-actions {
    flex-direction: column;
  }
  .album-actions .btn {
    width: 100%;
  }
  .file-zone {
    padding: 14px;
  }
  .studio-tabs .btn {
    min-width: 0;
    flex: 1;
    font-size: 0.85rem;
    padding: 10px;
  }
  .owner-session {
    flex-direction: row;
    align-items: center;
  }
  .owner-session .eyebrow {
    font-size: 0.65rem;
  }
  .owner-session .btn {
    padding: 10px;
    font-size: 0.8rem;
  }
}
@media (max-width: 360px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .brand {
    font-size: 1.15rem;
  }
  .brand small {
    letter-spacing: 0.2em;
  }
  .panel {
    padding: 18px;
  }
  .hero-copy .eyebrow {
    font-size: 0.65rem;
  }
  .hero-image #slide-pause {
    font-size: 0.75rem;
  }
  .hero-image .home-slider {
    border-radius: 65px 65px 0 0;
  }
}
@media (hover: none) {
  .card:hover img {
    filter: none;
  }
  .card:hover .photo-frame img {
    transform: none;
  }
  .btn:hover {
    transform: none;
    box-shadow: none;
  }
  .card:hover .meta h3 {
    translate: none;
  }
}

/* Center the main family photograph at every screen size. */
.hero-image .home-slider .card img,
.hero-image > img {
  object-position: 50% 50%;
}

/* Soft page-wide pointer glow; decorative and transparent to clicks. */
#mouse-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(255, 255, 255, 0.16) 28%,
    rgba(255, 255, 255, 0.05) 48%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 25;
  opacity: 0;
  transition: opacity 0.35s ease;
  will-change: transform;
}
#mouse-glow.active {
  opacity: 1;
}
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  #mouse-glow {
    display: none;
  }
}

/* A visible white pointer halo on both ivory and photographic surfaces. */
#mouse-glow {
  width: 110px;
  height: 110px;
  margin: -55px 0 0 -55px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(255, 255, 255, 0.43) 24%,
    rgba(255, 255, 255, 0.16) 48%,
    transparent 72%
  );
  z-index: 40;
}
#mouse-glow::after {
  content: "";
  position: absolute;
  inset: 35px;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(48, 55, 46, 0.16),
    0 2px 10px rgba(48, 55, 46, 0.1);
  background: rgba(255, 255, 255, 0.12);
}

/* Administration and accessible server status. */
.admin-extra {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 18px;
}
.admin-extra summary {
  cursor: pointer;
  margin-bottom: 18px;
}
.manager-row .btn,
.album-row .btn {
  margin: 5px 5px 5px 0;
}
.spam-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.status {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.album-row details {
  margin: 18px 0;
}
.album-row details > div {
  margin: 10px 0;
}
.album-row input {
  margin-bottom: 12px;
}

.selectable-photo {
  min-width: 0;
}
.selectable-photo > button {
  width: 100%;
}
.selectable-photo label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 2px;
  font-size: 0.85rem;
}
.selectable-photo input {
  width: 18px;
  height: 18px;
  margin: 0;
}
.album-actions {
  flex-wrap: wrap;
  gap: 10px;
}
#zip-status {
  margin: 16px 0;
}
