/* Editorial finishing pass. Background geometry and its timing live in style.css. */
:root {
  --detail-line: #b1b6a632;
  --detail-light: #ced2c0;
  --detail-ease: cubic-bezier(.22, .61, .36, 1);
}

::selection { background: #c6cbb6; color: #111210; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--detail-light);
  outline-offset: 5px;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 5%;
  z-index: 10;
  padding: 12px 18px;
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* A quiet underline gives navigation the same precise rhythm as the cards. */
nav { align-items: center; }
nav a {
  position: relative;
  padding: 12px 0;
  border-bottom: 0;
}
nav a::after {
  content: '';
  position: absolute;
  height: 1px;
  inset: auto 0 6px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--detail-ease);
}
nav .contact-link::after { transform: scaleX(1); opacity: .55; }
nav a:focus-visible::after { transform: scaleX(1); }
.intro-bottom {
  border-top: 1px solid var(--detail-line);
  padding-top: 18px;
}
.intro-bottom p { margin-bottom: 0; }
.intro-bottom a { display: inline-flex; align-items: center; gap: 20px; padding: 10px 0; }
.intro-bottom a span {
  display: inline-block;
  margin-left: 0;
  transition: transform 240ms var(--detail-ease);
}
.intro::after { right: 9%; }
.reel-bottom span:last-child { max-width: none; text-align: left; line-height: 1.5; }

/* Camera framing marks sit inside the art, without resampling or zooming it. */
.grid { row-gap: 48px; }
.project { min-width: 0; }
.project-frame {
  position: absolute;
  inset: 14px;
  pointer-events: none;
  z-index: 1;
  opacity: .38;
  transition: opacity 220ms var(--detail-ease);
}
.project-frame::before, .project-frame::after {
  content: '';
  position: absolute;
  top: 0;
  width: 16px;
  height: 16px;
  border-top: 1px solid #f1f0e9;
}
.project-frame::before { left: 0; border-left: 1px solid #f1f0e9; }
.project-frame::after { right: 0; border-right: 1px solid #f1f0e9; }
.art { box-shadow: inset 0 0 0 1px #f1f0e914; }
.art strong {
  font-weight: 500;
  letter-spacing: 1.4px;
  background: #11121080;
  color: var(--fg);
  border-color: #f1f0e966;
}
.art small { text-shadow: 0 1px 4px #0009; }
.project .art::after, .project:hover .art::after {
  transform: rotate(30deg);
  transition: none;
}
.project-info {
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--detail-line);
  transition: border-color 220ms var(--detail-ease);
}
.project-info > div { min-width: 0; }
.project h3 { line-height: 1.3; margin-bottom: 10px; }
.project-info p { line-height: 1.65; display: flex; flex-wrap: wrap; gap: 3px 8px; }
.project-info p > span[aria-hidden] { color: #72786a; }
.project-info > span {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border: 1px solid var(--detail-line);
  border-radius: 50%;
  font-size: 19px;
  transition: color 220ms, background-color 220ms, border-color 220ms;
}
.project:focus-visible .project-frame { opacity: .85; }
.project:focus-visible .project-info { border-color: #b1b6a680; }
.project:focus-visible .project-info > span { color: var(--bg); background: var(--fg); }
.filters { margin-bottom: 38px; }
.filters button {
  min-height: 40px;
  transition: color 180ms, background-color 180ms, border-color 180ms;
}

/* Left-aligned service credits: short rules and small, restrained indices. */
.about { gap: 36px; }
.about h2 { line-height: 1.4; }
.about > div:last-child { max-width: 1000px; }
.services { column-gap: 32px; row-gap: 18px; margin-top: 44px; }
.services > span {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--detail-line);
  min-width: 190px;
  flex: 1 1 190px;
  line-height: 1.6;
}
.service-index { color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: 1px; }
.about .sample-note { font-size: 10px; }
.contact .eyebrow { align-items: center; justify-content: flex-start; gap: 12px; }
.contact .eyebrow::before { content: ''; width: 18px; height: 1px; background: #a7ae98; }
.inquiry {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid transparent;
  transition: background-color 220ms, border-color 220ms;
}
.inquiry span { margin-left: 25px; transition: transform 220ms var(--detail-ease); }
.inquiry:focus-visible { background: #dce0d0; }
footer > a:last-child { padding: 12px 0; border-bottom: 1px solid transparent; }

/* Short opacity transitions keep interaction calm and all content immediately available. */
@media (prefers-reduced-motion: no-preference) {
  .project { animation: detail-appear 180ms ease-out; }
  dialog[open] { animation: detail-appear 180ms ease-out; }
  dialog[open]::backdrop { animation: detail-appear 180ms ease-out; }
}
@keyframes detail-appear { from { opacity: .6; } to { opacity: 1; } }
dialog { border-color: #6d7360; box-shadow: 0 24px 80px #0005; }
.close { min-width: 44px; min-height: 44px; top: 8px; right: 8px; border-radius: 50%; }
input, select, textarea { transition: border-color 180ms, background-color 180ms; }
input:focus, select:focus, textarea:focus { border-color: #a7ae98; background: #292d23; }

@media (hover: hover) and (pointer: fine) {
  nav a:hover::after { transform: scaleX(1); opacity: 1; }
  .intro-bottom a:hover span { transform: translateY(3px); }
  .project:hover .project-frame { opacity: .85; }
  .project:hover .project-info { border-color: #b1b6a680; }
  .project:hover .project-info > span { color: var(--bg); background: var(--fg); border-color: var(--fg); }
  .filters button:not([aria-pressed=true]):hover { color: var(--fg); border-color: #a7ae98; background: #ffffff05; }
  .inquiry:hover { background: #dce0d0; border-color: #dce0d0; }
  .inquiry:hover span { transform: translate(2px, -2px); }
  .close:hover { background: #ffffff0a; }
  footer > a:last-child:hover { color: var(--fg); border-color: var(--detail-line); }
}

@media (max-width: 700px) {
  nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .intro-bottom { padding-top: 14px; align-items: flex-end; gap: 14px; }
  .intro-bottom a { gap: 7px; flex: 0 0 auto; }
  .intro-bottom p { margin-top: 0; }
  .grid { row-gap: 32px; }
  .filters { margin-bottom: 28px; }
  .filters button { min-height: 44px; }
  .project-info { padding: 17px 0 19px; gap: 12px; }
  .project h3 { font-size: 19px; }
  .project-info p { font-size: 10px; letter-spacing: .2px; gap: 2px 6px; }
  .project-frame { inset: 12px; }
  .project-frame::before, .project-frame::after { width: 12px; height: 12px; }
  .about { gap: 28px; }
  .about h2 { font-size: clamp(24px, 7.15vw, 29px); line-height: 1.5; }
  .about p { word-break: keep-all; }
  .services { column-gap: 24px; margin-top: 32px; }
  .services > span { flex-basis: 100%; min-width: 0; padding-top: 12px; gap: 18px; }
  .contact small { display: block; max-width: 32em; line-height: 1.7; }
  footer { padding-bottom: 62px; }
}
@media (max-width: 360px) {
  .intro-bottom { flex-wrap: wrap; }
  .intro-bottom a { margin-top: 2px; }
  .project-info p > span[aria-hidden] { display: none; }
  .project-category { flex-basis: 100%; }
}

/* Double the original logo and menu sizes, with a separate mobile navigation row. */
header { height: auto; min-height: 164px; padding-top: 16px; padding-bottom: 16px; }
header .brand-image, footer .brand-image { width: 180px; }
header nav { font-size: 22px; }
header nav a { white-space: nowrap; }
@media (max-width: 700px) {
  header { min-height: 0; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
  header .brand-image { width: 144px; }
  header nav { width: 100%; justify-content: space-between; gap: 12px; font-size: 18px; letter-spacing: .5px; }
}

/* Real portfolio media: no synthetic artwork overlays. */
.art.real-art::before,.project .art.real-art::after{display:none}
.real-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.real-art small{background:#111210b3;padding:6px 8px;text-shadow:none}
.portfolio-video{display:block;width:100%;aspect-ratio:16/9;background:#000;margin:24px 0 12px;object-fit:contain}
.video-status:empty{display:none}
.modal-inner h2{overflow-wrap:anywhere}

/* Compact portfolio index; detail players and other sections are unchanged. */
#work { max-width: none; margin-inline: 0; }
#work .grid { max-width: none; margin-inline: 0; grid-template-columns: repeat(3, minmax(0, 466.67px)); gap: 24px 20px; align-items: start; }
#work .art { aspect-ratio: 16 / 9; padding: 14px; }
#work .project-info { padding: 12px 0 14px; gap: 10px; }
#work .project h3 { font-size: 18px; line-height: 1.35; margin-bottom: 6px; overflow-wrap: anywhere; }
#work .project-info p { font-size: 11px; line-height: 1.5; letter-spacing: .2px; gap: 2px 6px; }
#work .project-info > span { flex-basis: 28px; height: 28px; font-size: 17px; }
#work .project-frame { inset: 12px; }
@media (min-width: 701px) and (max-width: 1024px) { #work .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
 #work .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
 #work .project h3 { font-size: 14px; line-height: 1.45; letter-spacing: -.2px; }
 #work .project-info { gap: 6px; padding: 10px 0 12px; }
 #work .project-info p { font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
 #work .project-info p > span { max-width: 100%; }
 #work .project-info > span { flex-basis: 22px; height: 22px; font-size: 14px; }
 #work .art { padding: 6px; }
 #work .art small, #work .art strong { font-size: 7px; letter-spacing: .15px; }
 #work .art small { max-width: 52%; overflow-wrap: anywhere; }
 #work .real-art small { padding: 3px; }
 #work .art strong { padding: 3px; }
 #work .project-frame { inset: 6px; }
}

/* Add columns as space permits, keeping cards at their existing maximum size. */
@media (min-width: 1700px) and (max-width: 2199px) {
 #work .grid { grid-template-columns: repeat(4, minmax(0, 466.67px)); }
}
@media (min-width: 2200px) {
 #work .grid { grid-template-columns: repeat(5, minmax(0, 466.67px)); }
}

#work .work-more{display:flex;justify-content:center;margin-top:32px}
#work .work-more button{min-height:48px;min-width:180px;padding:12px 30px;border:1px solid var(--line);border-radius:30px;background:transparent;color:var(--fg);font:inherit;font-size:14px}
#work .work-more button:hover{background:#ffffff0a;border-color:#a7ae98}
#work .work-more button[hidden]{display:none}
#work .work-more-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.beauty-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:24px}
.beauty-gallery figure{margin:0;min-width:0}.gallery-media{min-height:180px;background:#0d0f0c;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden}
.gallery-media img,.gallery-media video{display:block;width:100%;height:auto;max-height:60vh;object-fit:contain}.gallery-media [hidden]{display:none}
.beauty-gallery figcaption{font-size:12px;line-height:1.6;overflow-wrap:anywhere;margin-top:9px;color:var(--muted)}
.gallery-loading{padding:12px}.gallery-loading:empty{display:none}.gallery-toggle{border:1px solid var(--line);background:transparent;color:var(--fg);padding:10px 16px;margin-top:20px;font:inherit;font-size:13px}
@media(max-width:600px){.beauty-gallery{grid-template-columns:minmax(0,1fr);gap:20px}}
