/* Shared archival stylesheet for ektolakh service & studio pages */
:root {
  --bg: #efe4d0;
  --ink: #060606;
  --body: #434445;
  --mute: #52524c;
  --faint: #d3cfcf;
  --blue: #2f55e8;
  --paper: #f6f0e2;
  --ink-rgb: 23,22,15;
  --sans: 'Geist', system-ui, sans-serif;
  --head: 'Fraunces', Georgia, serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.22,1,.36,1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1014;
  --ink: #f6f3ed;
  --body: #c4c3bf;
  --mute: #92918c;
  --faint: #3a3a40;
  --blue: #86a2ff;
  --paper: #e8e0cf;
  --ink-rgb: 242,239,233;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  transition: background-color .5s ease;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: -.1px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: color .5s ease;
}

a {
  color: inherit;
}

a[href^="tel:"] {
  white-space: nowrap;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}

::selection {
  background: var(--blue);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

main {
  position: relative;
  display: flow-root;
  overflow: clip;
  min-height: 100dvh;
}

main::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='a' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .02' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 2.2 0 0 0 -.92'/%3E%3C/filter%3E%3Cfilter id='b' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.6 0 0 0 -.68'/%3E%3C/filter%3E%3Crect width='600' height='600' filter='url(%23a)' opacity='.14'/%3E%3Crect width='600' height='600' filter='url(%23b)' opacity='.9'/%3E%3C/svg%3E") 0 0 / 600px 600px;
  filter: invert(1);
}

:root[data-theme="dark"] main::before {
  opacity: .1;
  filter: none;
}

.mono {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.wrap {
  width: min(100% - 48px, 760px);
  margin: 0 auto;
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 36px, 760px);
  }
}

/* ── Topbar & Breadcrumbs ── */
.topbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 20px 0 14px;
  border-bottom: 1px dashed rgba(var(--ink-rgb),.18);
}

@media (min-width: 768px) and (max-width: 940px) {
  .topbar {
    padding-right: 54px;
  }
}

.topbar-brand {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px 18px;
}

.topbar-nav a {
  color: var(--mute);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
  transition: color .2s ease;
}

.topbar-nav a:hover {
  color: var(--ink);
}

.topbar-nav a.cta-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(var(--ink-rgb),.34);
}

.topbar-nav a.cta-link:hover {
  text-decoration-color: var(--ink);
}

.theme-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ink-rgb),.22);
  color: var(--ink);
  flex-shrink: 0;
  transition: border-color .2s ease, background-color .2s ease;
}

.theme-btn svg {
  width: 16px;
  height: 16px;
}

.theme-btn .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-btn .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-btn .icon-moon {
  display: none;
}

@media (max-width: 767px) {
  .topbar {
    padding: 8px 0;
  }
  .topbar-nav {
    gap: 8px;
  }
  .topbar-nav a:not(.cta-link) {
    display: none;
  }
  .topbar-nav a.cta-link {
    min-height: 44px;
    padding: 0 15px;
    border-radius: 999px;
    background: #17160f;
    color: #f7f1e3;
    text-decoration: none;
    font: 500 13px/1 var(--sans);
    letter-spacing: -.01em;
    text-transform: none;
  }
  :root[data-theme="dark"] .topbar-nav a.cta-link {
    background: #efe7d6;
    color: #17160f;
  }
  .theme-btn {
    display: inline-flex;
    width: 44px;
    height: 44px;
  }
}

.crumb {
  margin-top: 14px;
  color: var(--mute);
  font-size: 11px;
}

.crumb ol {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.crumb li {
  white-space: nowrap;
}

.crumb li[aria-current="page"] {
  overflow: hidden;
  text-overflow: ellipsis;
}

.crumb a {
  color: var(--mute);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -10px -4px;
  padding: 0 4px;
}

.crumb a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ── Hero ── */
.page-hero {
  padding: 20px 0 36px;
}

.page-hero h1 {
  font: 400 clamp(1.9rem, 1.15rem + 3.6vw, 3.35rem)/1.08 var(--head);
  letter-spacing: -.022em;
  text-wrap: balance;
  color: var(--ink);
  margin-bottom: 16px;
}

.page-lead {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--body);
  max-width: 58ch;
  text-wrap: pretty;
}

.page-updated {
  margin-top: 14px;
  color: var(--mute);
  font-size: 11px;
}

.hero-bar {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: #17160f;
  color: #f7f1e3;
  font: 500 14.5px/1 var(--sans);
  letter-spacing: -.01em;
  text-decoration: none;
  box-shadow: 0 1px 1px rgba(40,30,15,.16), 0 12px 24px -12px rgba(40,30,15,.44);
  transition: transform .25s var(--ease), background-color .2s ease;
}

.cta-btn:hover {
  background: #2b2720;
  transform: translateY(-1px);
}

:root[data-theme="dark"] .cta-btn {
  background: #efe7d6;
  color: #17160f;
  box-shadow: 0 12px 26px -12px rgba(0,0,0,.78);
}

:root[data-theme="dark"] .cta-btn:hover {
  background: #fff8ea;
}

.direct-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 14px;
  color: var(--mute);
}

.direct-links a {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(var(--ink-rgb),.32);
}

.direct-links a:hover {
  text-decoration-color: var(--ink);
}

@media (max-width: 640px) {
  .crumb {
    margin-top: 12px;
    font-size: 10.5px;
    letter-spacing: .11em;
  }
  .page-hero {
    padding: 14px 0 22px;
  }
  .page-hero h1 {
    margin-bottom: 12px;
  }
  .page-lead {
    font-size: 15.5px;
    line-height: 1.56;
  }
  .hero-bar {
    margin-top: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cta-btn {
    width: 100%;
    min-height: 50px;
    font-size: 15px;
  }
  .direct-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .direct-links .sep {
    display: none;
  }
  .direct-links a {
    justify-content: center;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px dashed rgba(var(--ink-rgb),.28);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .direct-links a:active {
    background: rgba(var(--ink-rgb),.05);
  }
}

/* ── Archival Summary Sheet ── */
.sheet {
  --s-ink: #17160f;
  --s-body: #3c3b37;
  --s-mute: #5c5950;
  position: relative;
  margin: 8px 0 40px;
  padding: 26px 26px 22px;
  border-radius: 3px;
  background: var(--paper);
  color: var(--s-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 0 0 1px rgba(23,22,15,.12), 0 14px 28px -14px rgba(40,30,15,.34);
}

:root[data-theme="dark"] .sheet {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 0 0 1px rgba(23,22,15,.1), 0 16px 34px -14px rgba(0,0,0,.78);
}

.sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 24px;
}

.sheet-cell dt {
  font: 500 10.5px/1.3 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--s-mute);
  margin-bottom: 6px;
}

.sheet-cell dd {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--s-body);
}

@media (max-width: 680px) {
  .sheet {
    margin: 4px 0 28px;
    padding: 18px 18px 16px;
  }
  .sheet-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .sheet-cell + .sheet-cell {
    padding-top: 12px;
    border-top: 1px dashed rgba(23,22,15,.18);
  }
  .sheet-cell dd {
    font-size: 14px;
    line-height: 1.48;
  }
}

/* ── Editorial Body Sections ── */
.section {
  padding: 36px 0;
  border-top: 1px dashed rgba(var(--ink-rgb),.18);
}

.section h2 {
  font: 400 clamp(1.5rem, 1.05rem + 2.2vw, 2.15rem)/1.16 var(--head);
  letter-spacing: -.018em;
  color: var(--ink);
  margin-bottom: 14px;
  text-wrap: balance;
}

.section h3 {
  font: 400 clamp(1.12rem, 0.96rem + 0.7vw, 1.35rem)/1.28 var(--head);
  letter-spacing: -.012em;
  color: var(--ink);
  margin: 22px 0 8px;
}

.section p {
  color: var(--body);
  max-width: 64ch;
  text-wrap: pretty;
}

.section p + p {
  margin-top: 14px;
}

.section ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  max-width: 64ch;
  border-top: 1px dashed rgba(var(--ink-rgb),.16);
}

.section ul li {
  padding: 13px 0;
  border-bottom: 1px dashed rgba(var(--ink-rgb),.16);
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.56;
}

.section ol {
  margin: 14px 0 0 20px;
  color: var(--body);
  max-width: 62ch;
}

.section ol li + li {
  margin-top: 10px;
}

.section li strong {
  color: var(--ink);
  font-weight: 500;
}

.section a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(var(--ink-rgb),.32);
}

.section a:hover {
  text-decoration-color: var(--ink);
}

@media (max-width: 640px) {
  .section {
    padding: 26px 0;
  }
  .section p {
    font-size: 15.5px;
    line-height: 1.6;
  }
  .section ul li {
    padding: 12px 0;
    font-size: 15px;
  }
}

/* ── Step Cards ── */
.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.step {
  --s-ink: #17160f;
  --s-body: #3c3b37;
  --s-mute: #5c5950;
  padding: 20px 20px;
  border-radius: 3px;
  background: var(--paper);
  color: var(--s-ink);
  box-shadow: inset 0 0 0 1px rgba(23,22,15,.12), 0 10px 20px -12px rgba(40,30,15,.3);
}

.step-num {
  display: block;
  font: 500 10.5px/1.2 var(--sans);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--s-mute);
  margin-bottom: 6px;
}

.step h3 {
  margin: 0 0 6px;
  font: 400 19.5px/1.22 var(--head);
  color: var(--s-ink);
}

.step p {
  font-size: 14.5px;
  line-height: 1.54;
  color: var(--s-body);
}

@media (max-width: 680px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 16px;
  }
  .step {
    padding: 16px 16px;
  }
  .step h3 {
    font-size: 18.5px;
  }
  .step p {
    font-size: 14px;
  }
}

/* ── Accessible Native FAQ Accordion Ledger ── */
.faq-list {
  margin-top: 14px;
  border-top: 1px dashed rgba(var(--ink-rgb),.18);
}

details.faq-item {
  border-bottom: 1px dashed rgba(var(--ink-rgb),.18);
}

details.faq-item:last-child {
  border-bottom: 0;
}

summary.faq-q {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 48px;
  padding: 16px 0;
  cursor: pointer;
  font: 400 clamp(1.1rem, 0.96rem + 0.6vw, 1.3rem)/1.3 var(--head);
  letter-spacing: -.012em;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

summary.faq-q::-webkit-details-marker {
  display: none;
}

summary.faq-q::before {
  content: '';
  inline-size: 14px;
  block-size: 14px;
  margin-top: 5px;
  flex-shrink: 0;
  background-color: var(--mute);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}

details.faq-item[open] > summary.faq-q::before {
  rotate: 0deg;
  background-color: var(--ink);
}

.faq-a {
  padding: 0 0 18px 26px;
}

.faq-a p {
  font-size: 15px;
  line-height: 1.62;
  color: var(--body);
}

details.faq-item::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

details.faq-item:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  summary.faq-q::before {
    transition: rotate .2s var(--ease), background-color .2s ease;
  }
  details.faq-item::details-content {
    transition: block-size .28s var(--ease), content-visibility .28s, display .28s;
    transition-behavior: allow-discrete;
  }
}

/* ── Related Services ── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.section a.related-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 16px;
  border-radius: 3px;
  border: 1px dashed rgba(var(--ink-rgb),.26);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s var(--ease);
}

.section a.related-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.section a.related-card strong {
  font: 400 18px/1.25 var(--head);
  color: var(--ink);
}

.section a.related-card:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.section a.related-card span {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--mute);
}

@media (max-width: 680px) {
  .related-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .section a.related-card {
    padding: 14px 16px;
  }
  .section a.related-card strong {
    font-size: 17px;
  }
}

/* ── Closing CTA ── */
.closing {
  padding: 40px 0 42px;
  border-top: 1px dashed rgba(var(--ink-rgb),.18);
  text-align: center;
}

.closing h2 {
  font: 400 clamp(1.65rem, 1.1rem + 2.6vw, 2.5rem)/1.12 var(--head);
  letter-spacing: -.018em;
  margin-bottom: 10px;
  text-wrap: balance;
}

.closing p {
  max-width: 48ch;
  margin: 0 auto 22px;
  color: var(--body);
}

.closing-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

@media (max-width: 640px) {
  .closing {
    padding: 30px 0 32px;
  }
  .closing p {
    font-size: 15px;
    margin-bottom: 18px;
  }
  .closing-actions {
    align-items: stretch;
  }
}

/* ── Colophon ── */
.colophon {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 0 52px;
  border-top: 1px dashed rgba(var(--ink-rgb),.18);
  color: var(--mute);
  font-size: 11px;
}

.colophon-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
}

.colophon-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}

.colophon a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(var(--ink-rgb),.32);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.colophon a:hover {
  text-decoration-color: var(--ink);
}

@media (max-width: 640px) {
  .colophon {
    gap: 10px;
    padding: 22px 0 calc(84px + env(safe-area-inset-bottom));
    font-size: 10.5px;
    letter-spacing: .1em;
  }
  .colophon-row {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 4px;
  }
  .colophon-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 16px;
  }
  .colophon-pages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 0 16px;
  }
  .colophon a {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
  ::view-transition-old(root), ::view-transition-new(root) {
    animation-duration: .2s;
  }
}
