:root { --ease-float: cubic-bezier(.39,.57,.56,1); }

[hidden] { display: none !important; }

.portfolio-header { align-items: center; justify-content: center; padding: 18px var(--edge); text-align: center; }
.masthead-identity { display: flex; align-items: baseline; justify-content: center; gap: 18px; margin: 0; }
.masthead-name { font-family: 'Italiana', serif; font-size: 40px; line-height: 1.1; letter-spacing: -.025em; }
.masthead-profession { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 300; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; }
body:is([data-page='home'], [data-page='gallery']) .portfolio-header { display: none; }
.home-identity { top: calc(var(--header-height) - 28px); }
.home-orbit { top: calc(var(--header-height) + 150px); bottom: 142px; }
.home-orbit:not(.is-reduced) { overflow: visible; }
.home-orbit .orbit-card { cursor: inherit; }
.page-transition-layer { position: fixed; inset: 0; z-index: 24; pointer-events: none; }
.page-transition-pictures { inset: auto; overflow: hidden; perspective-origin: 50% 50%; }
.page-transition-pictures .orbit-card > span { display: none; }
.page-transition-titles { z-index: 40; overflow: hidden; }

.gallery-overview { height: 100svh; }
body[data-page='contact']::after { content: ''; position: fixed; bottom: 0; left: 0; right: 0; height: 88px; background: var(--paper); z-index: 25; pointer-events: none; }
.covers-orbit { top: var(--header-height); }
.covers-orbit .orbit-card img, .covers-orbit .orbit-card video { object-fit: contain; }
.covers-orbit .orbit-card { background: var(--paper); }
.covers-orbit .orbit-card > span { display: none; }
.covers-orbit .orbit-card[data-media-type="image"] { cursor: zoom-in; }
.covers-orbit.is-reduced .orbit-scene { gap: var(--gallery-gap); padding-inline: var(--gallery-inset); }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 7vw, 112px); height: auto; min-height: 100svh; max-width: 1320px; margin: 0 auto; padding: var(--header-height) var(--edge) 112px; }
.contact-image { position: relative; width: 100%; height: clamp(360px, calc(100svh - var(--header-height) - 112px), 720px); aspect-ratio: auto; max-height: none; transform: none; margin: 0; }
.contact-image img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); display: block; width: 100%; max-width: 100%; height: 100%; object-fit: contain; filter: none; }
.contact-copy { min-width: 0; width: 100%; max-width: 540px; align-self: center; margin: 0; }
.contact-copy h1 { font-family: 'Italiana', serif; font-size: clamp(52px, 5.4vw, 78px); font-weight: 400; line-height: 1.02; letter-spacing: -.03em; margin: 0 0 20px; }
.contact-copy .contact-base { font-size: 14px; line-height: 1.6; margin: 0 0 32px; color: var(--muted); }
.contact-address { border-bottom: 1px solid var(--line); }
.contact .email { justify-content: space-between; gap: 20px; min-height: 56px; padding: 0 0 8px; border: 0; color: var(--ink); font-size: clamp(17px, 1.6vw, 22px); line-height: 1.5; }
.contact .email span { min-width: 0; overflow-wrap: anywhere; user-select: text; }
.contact .email svg { width: 19px; height: 19px; flex: none; }
.contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 28px; margin-top: 10px; }
.contact .copy-email, .contact .save-contact { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0; margin: 0; border: 0; background: transparent; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--muted); touch-action: manipulation; user-select: none; transition: color 150ms var(--ease-out), opacity 150ms var(--ease-out); }
.contact .copy-email { min-width: 108px; }
.contact-actions svg { width: 17px; height: 17px; flex: none; stroke-width: 1.25; }
.contact-actions :is(button, a):active { opacity: .72; }
.contact-copy .contact-feedback { min-height: 18px; margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.contact #copy-status { margin-left: 0; }
.contact-copy .contact-note { max-width: 38ch; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
@media (hover: hover) and (pointer: fine) {
  .contact .email:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
  .contact-actions :is(button, a):hover { color: var(--ink); }
}
body[data-page='contact'] footer { position: fixed; left: var(--edge); bottom: 29px; margin: 0; z-index: 30; }

.digitals { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); align-items: center; gap: clamp(32px, 5vw, 80px); min-height: 100svh; max-width: 1400px; margin: 0 auto; padding: 84px var(--edge) 100px; }
.digitals-slider { display: grid; grid-template-rows: minmax(0, 1fr) 44px; gap: 12px; min-width: 0; height: calc(100svh - 184px); min-height: 460px; outline-offset: 8px; touch-action: pan-y pinch-zoom; }
.digitals-slider:focus-visible { outline: 2px solid var(--accent); }
.digitals-frame { position: relative; min-height: 0; overflow: hidden; user-select: none; container-type: size; }
.digital-slide { position: absolute; inset: 0; margin: 0; }
.digital-portrait { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; cursor: zoom-in; touch-action: pan-y pinch-zoom; }
/* Fit the cutout's visible subject, rather than its transparent square canvas. */
.digital-portrait-crop { position: relative; display: block; width: min(100cqw, calc(100cqh * var(--subject-ratio))); aspect-ratio: var(--subject-ratio); }
.digital-slide img { position: absolute; display: block; width: var(--canvas-width); height: var(--canvas-height); left: var(--canvas-left); top: var(--canvas-top); max-width: none; object-fit: contain; -webkit-user-drag: none; }
.digitals-controls { display: flex; align-items: center; justify-content: center; gap: 12px; }
.digitals-arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; flex: none; border: 1px solid var(--line); border-radius: 50%; background: transparent; transition: background-color 160ms ease, color 160ms ease; }
.digitals-arrow svg { width: 19px; height: 19px; }
.digitals-pagination { display: flex; }
.digitals-pagination button { position: relative; display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.digitals-controls button { touch-action: manipulation; user-select: none; }
.digitals-pagination button[aria-current='true'] { color: var(--ink); }
.digitals-pagination button[aria-current='true']::after { content: ''; position: absolute; left: calc(50% - 1.5px); bottom: 4px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.digitals-details { min-width: 0; width: 100%; max-width: 360px; }
.digitals-heading { margin: 0 0 24px; font-family: 'Italiana', serif; font-size: clamp(36px, 3.5vw, 48px); font-weight: 400; line-height: 1.05; letter-spacing: -.025em; }
.digital-facts { display: grid; gap: 12px; margin: 0; }
.digital-facts > div { display: grid; grid-template-columns: minmax(88px, 1fr) minmax(0, 1.3fr); align-items: baseline; gap: 20px; }
.digital-facts dt { color: #505148; font-size: 13px; font-weight: 400; line-height: 1.4; letter-spacing: .025em; }
.digital-facts dd { margin: 0; font-family: 'DM Sans', sans-serif; font-size: clamp(23px, 2.1vw, 28px); font-weight: 400; font-variant-numeric: lining-nums tabular-nums; line-height: 1.2; letter-spacing: -.035em; }
.digital-facts .digital-unit { font-size: 15px; letter-spacing: 0; }
.digital-facts sup { margin-left: 3px; font-size: 12px; color: var(--muted); }
.digital-facts .digital-base { margin-top: 6px; padding-top: 17px; border-top: 1px solid var(--line); }
.digital-facts .digital-base dd { font-size: 17px; letter-spacing: -.015em; white-space: nowrap; }
.digital-facts-note { max-width: 34ch; margin: 18px 0 0; font-size: 12px; line-height: 1.55; color: #505148; }
body[data-page='digitals']::after { content: ''; position: fixed; bottom: 0; left: 0; right: 0; height: 88px; background: var(--paper); z-index: 25; pointer-events: none; }
body[data-page='digitals'] footer { z-index: 30; }
@media (hover: hover) and (pointer: fine) { .digitals-arrow:hover { color: var(--paper); background: var(--ink); } .digitals-pagination button:hover { color: var(--ink); } }

#digital-zoom { position: fixed; inset: 0; width: 100%; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: transparent; color: var(--ink); }
#digital-zoom[open] { display: block; }
#digital-zoom::backdrop { background: transparent; }
.digital-zoom-wash { position: absolute; inset: 0; background: var(--paper); pointer-events: none; }
#digital-zoom .digital-zoom-figure { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; max-width: none; margin: 0; pointer-events: none; }
#digital-zoom .digital-zoom-image { position: absolute; display: block; width: auto; height: auto; max-width: none; max-height: none; object-fit: contain; cursor: zoom-out; pointer-events: auto; user-select: none; -webkit-user-drag: none; }
/* Colour-only grading keeps the model's original photographic detail intact. */
.orbit-card img[data-color-grade='saree-vibrant'],
#digital-zoom .digital-zoom-image[data-color-grade='saree-vibrant'] { filter: saturate(1.4) contrast(1.06) brightness(1.02); }
.digital-zoom-close { position: absolute; top: 18px; right: var(--edge); z-index: 2; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--ink); font-size: 12px; touch-action: manipulation; }
.digital-zoom-close svg { width: 19px; height: 19px; }
.digital-zoom-prev, .digital-zoom-next { position: absolute; top: calc(50% - 22px); z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--paper); touch-action: manipulation; }
.digital-zoom-prev { left: 20px; }
.digital-zoom-next { right: 20px; }
.digital-zoom-prev svg, .digital-zoom-next svg { width: 19px; height: 19px; }
@media (hover: hover) and (pointer: fine) { .digital-zoom-prev:hover, .digital-zoom-next:hover { color: var(--paper); background: var(--ink); } }
@media (max-width: 700px) { .digital-zoom-prev, .digital-zoom-next { top: auto; bottom: 20px; } .digital-zoom-prev { left: calc(50% - 52px); } .digital-zoom-next { right: calc(50% - 52px); } }
@media (hover: hover) and (pointer: fine) { .digital-zoom-close:hover { text-decoration: underline; text-underline-offset: 5px; } }

/* Keep pointer feedback on controls, separate from the photographs' 3D transforms. */
:is(.orbit-buttons button, .digitals-arrow, .digital-zoom-prev, .digital-zoom-next, #lightbox .previous, #lightbox .next) {
  transition: background-color 160ms ease, color 160ms ease, scale 150ms var(--ease-out), opacity 150ms var(--ease-out);
}
:is(.orbit-buttons button, .digitals-arrow, .digital-zoom-prev, .digital-zoom-next, #lightbox .previous, #lightbox .next):active:not(:disabled) {
  opacity: .72;
}
:is(.orbit-buttons button, .digitals-arrow, .digital-zoom-prev, .digital-zoom-next, #lightbox .previous, #lightbox .next):active:not(:disabled):not(:focus-visible) {
  scale: .96;
}

/* The portfolio viewer uses the same icon grid and hit area as the other controls. */
#lightbox :is(.previous, .next) { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; top: calc(50% - 22px); transform: none; }
#lightbox svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.2; }
#lightbox .close-lightbox { gap: 12px; }

@media (max-width: 700px) {
  .portfolio-header { padding-block: 16px; }
  footer { display: none; }
  .masthead-identity { flex-direction: column; align-items: center; gap: 3px; }
  .masthead-name { font-size: 32px; }
  .masthead-profession { font-size: 11px; }
  .home-identity { top: calc(var(--header-height) - 10px); }
  .home-orbit { top: calc(var(--header-height) + 126px); bottom: 147px; }
  .covers-orbit { top: var(--header-height); bottom: 160px; }
  .photos .photo-caption { bottom: 108px; }
  .contact { display: flex; flex-direction: column; align-items: stretch; justify-content: center; padding: max(76px, calc(env(safe-area-inset-top) + 56px)) var(--edge) 108px; gap: 18px; }
  .contact-image { width: 100%; height: clamp(140px, calc(100svh - 426px), 440px); flex: none; }
  .contact-copy { order: 0; align-self: center; margin: 0; max-width: 380px; }
  .contact-copy h1 { font-size: clamp(32px, 9.5vw, 40px); margin-bottom: 8px; }
  .contact-copy .contact-base { font-size: 12px; margin-bottom: 14px; }
  .contact .email { min-height: 42px; font-size: clamp(14px, 4vw, 17px); padding-bottom: 7px; }
  .contact-actions { gap: 8px 24px; margin-top: 4px; }
  .contact .copy-email, .contact .save-contact { font-size: 12px; }
  .contact-copy .contact-feedback { min-height: 16px; margin: 0; font-size: 11px; }
  body[data-page='contact']::after { height: 96px; }
  body[data-page='contact'] footer { bottom: 82px; }
  .digitals { grid-template-columns: minmax(0, 1fr); align-content: center; padding: max(76px, calc(env(safe-area-inset-top) + 56px)) var(--edge) 108px; gap: 14px; }
  .digitals-slider { height: max(270px, calc(100svh - 290px)); min-height: 0; gap: 8px; }
  .digitals-controls { gap: 4px; }
  .digitals-details { width: 100%; max-width: 480px; justify-self: center; }
  .digitals-heading { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .digital-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; padding-top: 12px; border-top: 1px solid var(--line); }
  .digital-facts > div { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
  .digital-facts dt { font-size: 11px; letter-spacing: 0; }
  .digital-facts dt[data-phone-label] { font-size: 0; }
  .digital-facts dt[data-phone-label]::after { content: attr(data-phone-label); font-size: 11px; }
  .digital-facts dd { font-size: 13px; letter-spacing: -.015em; }
  .digital-facts .digital-unit { font-size: 11px; }
  .digital-facts .digital-base { grid-column: 1 / -1; justify-content: center; gap: 6px; margin: 0; padding: 0; border: 0; }
  .digital-facts .digital-base dd { font-size: 12px; }
  body[data-page='digitals']::after { height: 96px; }
  .main-nav { max-width: calc(100vw - 24px); gap: 2px; padding-inline: 8px; }
  .main-nav a { padding-inline: 9px; }
}
@media (max-width: 360px) {
  .digital-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .digitals-slider { height: max(250px, calc(100svh - 318px)); }
}
@media (max-height: 580px) and (min-width: 701px) {
  .contact { padding-top: calc(var(--header-height) + 18px); }
  .contact-image { height: 360px; }
  .contact-copy h1 { font-size: 52px; }
  .contact-copy .contact-base { margin-bottom: 20px; }
}
@media (max-height: 500px) and (min-width: 701px) {
  .portfolio-header { padding-block: 12px; }
  .masthead-name { font-size: 32px; }
  .home-identity { top: calc(var(--header-height) - 12px); }
  .home-orbit { top: calc(var(--header-height) + 92px); bottom: 124px; }
  .covers-orbit { top: var(--header-height); }
  .digitals { padding-top: 72px; padding-bottom: 100px; }
  .digitals-slider { min-height: 380px; height: calc(100svh - 172px); }
  .digital-facts { gap: 10px; }
}

/* Short landscape screens keep a useful picture area and one bottom control row. */
@media (max-height: 500px) and (orientation: landscape) {
  body:is([data-page='home'], [data-page='gallery']) { --header-height: 56px; --edge: 20px; }
  body[data-page='gallery'] .portfolio-header { padding-block: 10px; }
  body[data-page='gallery'] .masthead-identity { flex-direction: row; align-items: baseline; gap: 14px; }
  body[data-page='gallery'] .masthead-name { font-size: 32px; }
  body[data-page='gallery'] .masthead-profession { font-size: 11px; }
  .home-identity { top: 10px; }
  .home-identity h1 { font-size: 42px; margin-bottom: 6px; }
  .home-profession { font-size: 11px; margin-bottom: 4px; }
  .home-location { font-size: 10px; }
  .home-orbit { top: 112px; bottom: 76px; }
  .covers-orbit { top: var(--header-height); bottom: 76px; }
  :is(.home, .photos) .orbit-controls { bottom: 12px; }
  .photos .photo-caption { left: var(--edge); bottom: 24px; transform: none; max-width: calc(50% - 190px); text-align: left; }
  .photo-caption > span { font-size: 18px; }
  body:is([data-page='home'], [data-page='gallery']) .main-nav { bottom: 12px; }
  body:is([data-page='home'], [data-page='gallery']) footer { display: none; }
}
@media (max-height: 500px) and (orientation: landscape) and (max-width: 560px) {
  :is(.home, .photos) .orbit-controls { top: 50%; right: 8px; bottom: auto; }
  :is(.home, .photos) .orbit-buttons { flex-direction: column; gap: 8px; }
  .photos .photo-caption { bottom: 78px; max-width: 45%; }
}
@media (max-height: 320px) and (orientation: landscape) {
  .home-identity { top: 6px; }
  .home-identity h1 { font-size: 36px; margin-bottom: 3px; }
  .home-profession { font-size: 10px; margin-bottom: 2px; }
  .home-location { font-size: 9px; }
  .home-orbit { top: 88px; bottom: 68px; }
  .covers-orbit { bottom: 68px; }
}

/* A small monogram and quiet filters leave the Gallery's height to the photographs. */
body[data-page='gallery'] { --gallery-dock-bottom: 24px; }
.photos { --gallery-top: max(20px, env(safe-area-inset-top)); --gallery-brand-offset: 0px; --gallery-filter-height: 52px; }
.page-monogram { position: absolute; top: max(20px, env(safe-area-inset-top)); left: var(--edge); z-index: 14; display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; font-family: 'Italiana', serif; font-size: 42px; font-weight: 400; line-height: 1; letter-spacing: -.055em; color: var(--ink); touch-action: manipulation; }
.page-monogram > span { display: inline-block; }
.gallery-filters { position: absolute; top: calc(var(--gallery-top) + var(--gallery-brand-offset)); left: var(--edge); right: var(--edge); z-index: 12; display: flex; align-items: center; justify-content: center; gap: 0 24px; min-height: var(--gallery-filter-height); padding-bottom: 8px; }
.gallery-filters :is(button, a) { flex: none; min-height: 44px; padding: 10px 2px; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 400; line-height: 1.3; color: var(--muted); white-space: nowrap; touch-action: manipulation; user-select: none; text-decoration: none; transition: color 150ms var(--ease-out), opacity 150ms var(--ease-out); }
.gallery-filters :is(button, a)[aria-pressed='true'] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.gallery-filters :is(button, a):focus-visible { outline-offset: 2px; }
.gallery-filters :is(button, a):active { opacity: .72; }
.gallery-filters a { display: inline-flex; align-items: center; justify-content: center; }
.orbit-scene[data-prerendered] { display: none; }
.gallery-overview .covers-orbit { top: calc(var(--gallery-top) + var(--gallery-brand-offset) + var(--gallery-filter-height)); bottom: calc(var(--gallery-dock-bottom) + 66px); }
.photos .orbit-controls { top: auto; bottom: calc(var(--gallery-dock-bottom) + 1px); }
body[data-page='gallery'] .main-nav { bottom: var(--gallery-dock-bottom); }
@media (hover: hover) and (pointer: fine) { .gallery-filters :is(button, a):hover { color: var(--ink); } }
@media (max-width: 700px) {
  body[data-page='gallery'] { --gallery-dock-bottom: 20px; }
  .page-monogram { font-size: 34px; }
  .gallery-filters { left: calc(var(--edge) + 64px); gap: 0 12px; }
  .gallery-filters :is(button, a) { font-size: 11px; padding-inline: 0; }
  .photos .orbit-controls { left: 8px; right: 8px; height: 44px; pointer-events: none; }
  .photos .orbit-buttons { flex-direction: row; justify-content: space-between; width: 100%; }
  .photos .orbit-buttons button { pointer-events: auto; }
}
@media (max-width: 480px) {
  .photos { --gallery-brand-offset: 52px; }
  .gallery-filters { left: var(--edge); }
}
@media (max-width: 380px) {
  body[data-page='gallery'] .main-nav { max-width: calc(100vw - 112px); padding-inline: 4px; gap: 0; }
  body[data-page='gallery'] .main-nav a { font-size: 12px; padding-inline: 5px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  body:is([data-page='digitals'], [data-page='contact']) { --edge: 20px; }
  .page-monogram { top: max(8px, env(safe-area-inset-top)); }
  body[data-page='gallery'] { --gallery-dock-bottom: 12px; }
  .photos { --gallery-top: max(8px, env(safe-area-inset-top)); }
}
@media (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  footer { display: none; }
}
@media (max-height: 500px) and (orientation: landscape) and (max-width: 480px) {
  .photos { --gallery-brand-offset: 0px; }
  .page-monogram { left: 12px; font-size: 28px; }
  .gallery-filters { left: 64px; right: 12px; gap: 0 8px; }
  .gallery-filters :is(button, a) { font-size: 10px; }
}
