/* Homepage structure only. Legacy pages keep their own stylesheets. */
/* Match the shared local faces, but never swap fonts after the first paint here.
   Preloaded fonts are used when ready; on a slow connection the fallback stays
   for this visit, so different glyph widths cannot rewrap the opening later. */
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: optional;
  src: url("../../fonts/indigo/rubik-hebrew-300-900.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: optional;
  src: url("../../fonts/indigo/rubik-latin-300-900.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2212;
}
@font-face {
  font-family: "Noto Sans Hebrew";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-display: optional;
  src: url("../../fonts/indigo/noto-sans-hebrew-hebrew-100-900.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Noto Sans Hebrew";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-display: optional;
  src: url("../../fonts/indigo/noto-sans-hebrew-latin-100-900.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body[data-indigo] { margin: 0; }
[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; text-underline-offset: .22em; }
h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.15; margin-block: 0 24px; }
p { line-height: 1.75; }
.skip { position: fixed; top: -100px; inset-inline-start: 16px; z-index: 150; padding: 12px 20px; background: var(--paper); color: var(--deep); }
.skip:focus { top: 12px; }
.sr-only, .honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.indigo-header { min-height: 80px; padding: 16px 4vw; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--lilac); background: var(--paper); }
.indigo-wordmark, .footer-wordmark { font: 800 30px/1.2 var(--display); text-decoration: none; }
.indigo-nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 2vw, 32px); font-size: 14px; }
.indigo-nav a { padding-block: 10px; text-decoration: none; }
.indigo-nav a:hover { text-decoration: underline; }
.menu-toggle { display: none; min-height: 44px; border: 1px solid var(--deep); border-radius: 2px; padding: 8px 14px; background: var(--paper); color: var(--deep); }
.services-scene, .portfolio, .persona-slot, .contact-scene { padding: clamp(56px, 8vw, 120px) 6vw; }
.services-heading, .section-heading, .contact-top { max-width: 760px; margin-bottom: 40px; }
.services-heading > p:first-child { display: flex; align-items: center; gap: 12px; color: var(--indigo); }
.services-heading > p:first-child::before { content: ""; width: 32px; height: 2px; background: var(--amber); }
.services-list { border-top: 1px solid var(--lilac); }
.service-detail { border-bottom: 1px solid var(--lilac); padding-block: 22px; }
.service-detail summary { cursor: pointer; font-size: 24px; font-weight: 600; }
.detail-sign { float: inline-end; }
.service-description { max-width: 700px; padding: 16px 0; }
.service-description h3 { font-size: 24px; }
.portfolio { background: var(--lilac); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; }
.project-media { background: var(--deep); }
.project-media img { width: 100%; object-fit: contain; aspect-ratio: var(--media-ratio); }
.project-media video { display: none; }
.project-portrait .project-media img { max-height: 520px; }
.project-open { display: block; position: relative; }
.open-indicator { display: inline-block; padding: 12px; background: var(--deep); color: var(--paper); }
.project-caption { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-block: 16px; }
.project-caption p, .project-caption h3 { margin-block: 0 8px; }
.more-films { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 50px; }
.more-films-thumbs { display: flex; gap: 8px; }
.more-films-thumbs img { width: 42px; height: 74px; object-fit: cover; }
.persona-slot { max-width: 880px; }
.contact-scene { background: var(--lilac); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.contact-direct-block { display: flex; flex-direction: column; align-items: start; gap: 20px; overflow-wrap: anywhere; }
.contact-wa { font-size: clamp(24px, 3vw, 40px); font-weight: 800; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field-full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field input, .field textarea { width: 100%; min-height: 48px; border: 1px solid var(--indigo); border-radius: 2px; background: var(--paper); color: var(--deep); padding: 12px; }
.field textarea { min-height: 120px; resize: vertical; }
.service-options { border: 1px solid var(--indigo); margin: 0 0 24px; padding: 18px; }
.service-options > div { display: flex; flex-wrap: wrap; gap: 16px; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--deep); vertical-align: middle; }
.consent-row { display: flex; align-items: start; gap: 12px; margin-block: 24px; }
.consent-row input { flex-shrink: 0; }
.action-dark { min-height: 48px; border: 1px solid var(--deep); border-radius: 2px; background: var(--deep); color: var(--paper); padding: 12px 24px; }
.indigo-footer { padding: 48px 6vw 110px; background: var(--deep); color: var(--paper); }
.footer-findability { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px 28px; margin-top: 32px; padding-block: 24px; border-block: 1px solid var(--lilac); font-size: 16px; }
.footer-findability a { display: flex; align-items: center; min-height: 44px; padding-block: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-top: 32px; font-size: 14px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.a11y-btn { position: fixed; z-index: 100; bottom: 20px; inset-inline-start: 20px; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--lilac); border-radius: 4px; background: var(--deep); color: var(--paper); }
.a11y-panel { position: fixed; z-index: 120; bottom: 80px; inset-inline-start: 20px; display: grid; gap: 8px; max-width: calc(100vw - 40px); padding: 16px; border: 1px solid var(--deep); background: var(--paper); }
.a11y-panel button { min-height: 44px; padding: 8px 16px; border: 1px solid var(--deep); border-radius: 2px; background: var(--paper); color: var(--deep); }
.a11y-panel button[aria-pressed="true"] { background: var(--deep); color: var(--paper); }
body.a11y-bigtext { font-size: 120%; }
body.a11y-bigtext p { font-size: max(1.2em, 18px); }
body.a11y-bigtext .opening { min-height: 100svh; }
body.a11y-contrast { --indigo: #25285b; --lilac: #e5e6f3; }
body.a11y-contrast .opening-copy { --opening-scrim-alpha: 100%; }
body.a11y-links a { text-decoration: underline; text-decoration-thickness: 2px; }
.motion-off *, .motion-off *::before, .motion-off *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.film-dialog:not([open]) { display: none; }
@media (max-width: 720px) {
  .indigo-header { min-height: 72px; padding: 14px 24px; gap: 16px; flex-wrap: wrap; }
  .indigo-wordmark { font-size: 28px; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .indigo-nav { flex-basis: 100%; display: none; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
  /* CSS owns the initial closed state; JS updates the same ARIA state on click.
     A hidden toggle also restores the native links when navigation is destroyed. */
  .menu-toggle[aria-expanded="true"] + .indigo-nav,
  .menu-toggle[hidden] + .indigo-nav { display: grid; }
  .services-scene, .portfolio, .persona-slot, .contact-scene { padding: 64px 24px; }
  .project-grid, .contact-layout, .form-grid { grid-template-columns: 1fr; }
  .contact-layout { gap: 32px; }
  .indigo-footer { padding-inline: 24px; }
  /* Two columns of short links: 4 rows instead of 8 (footer ~590px on a 390x844 phone, was ~760px). */
  .footer-findability { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin-top: 20px; padding-block: 12px; }
  .footer-findability a { padding-block: 4px; }
  .footer-bottom { margin-top: 20px; gap: 12px 24px; }
  /* Home: the closing already ends in ink with its own bottom padding; no empty band between. */
  main:has(.film-closing) + .indigo-footer { padding-top: 8px; }
}
