@font-face {
  font-family: "Narkiss Yair Variable";
  src: local("Narkiss Yair Variable"),
       url("fonts/NarkissYairVariable.woff2") format("woff2-variations"),
       url("fonts/NarkissYairVariable.woff2") format("woff2"),
       url("fonts/NarkissYairVariable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Tel Aviv Modernist";
  src: url("fonts/telaviv-modernistregular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Tel Aviv Modernist";
  src: url("fonts/telaviv-modernistbold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #1d2b36;
  --text: #4a5560;
  --muted: #7a838b;
  --bg: #fffaf6;
  --blush: #f8ebe6;
  --blush-deep: #eccdc4;
  --sage: #7fb8a7;
  --sage-soft: #eef4f0;
  --sage-deep: #2f4a42;
  --rose: #b0707f;
  --peach: #f2a48f;
  --line: rgba(29, 43, 54, .1);

  --font-body: "Assistant", system-ui, sans-serif;
  --font-head: "Narkiss Yair Variable", "Tel Aviv Modernist", "Frank Ruhl Libre", sans-serif;

  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--blush-deep); color: var(--ink); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
main:focus { outline: none; }

.skip-link {
  position: fixed;
  top: .75rem;
  right: .75rem;
  z-index: 100;
  padding: .6rem 1.3rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); line-height: 1.4; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.4; }
h3 { font-size: 1.3rem; font-weight: 500; }
h1 em { font-style: normal; color: var(--rose); }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--rose);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.eyebrow-latin { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }

.lead { font-size: 1.18rem; color: var(--text); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 50;
  background: rgba(255, 250, 246, .8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .4s var(--ease), background .4s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line);
  background: rgba(255, 250, 246, .94);
}

.header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; color: var(--rose); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-size: 1.45rem; color: var(--ink); }
.brand-tag { font-size: .8rem; color: var(--muted); }

.header-cta {
  padding: .55rem 1.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: .98rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background .3s var(--ease);
}
.header-cta:hover { background: var(--rose); color: #fff; }

/* ---------- Panels ---------- */

.panel {
  position: relative;
  padding: 6rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 3rem);
}
.bg-blush { background: var(--blush); }
.bg-sage { background: var(--sage-soft); }
.bg-deep { background: var(--sage-deep); color: rgba(255, 255, 255, .78); }
.bg-deep .eyebrow { color: var(--peach); }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container.narrow { max-width: 780px; }

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 5rem;
  align-items: center;
}
/* ---------- Framed images ---------- */

.frame {
  position: relative;
  margin: 0;
  width: 100%;
  justify-self: center;
}
.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--sage);
}
.frame img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame-hero {
  aspect-ratio: auto;
  width: calc(100% + 6rem);
  max-width: 580px;
  padding: 0;
  margin-left: -6rem;
  background: none;
  justify-self: left;
  align-self: stretch;
}
.frame-hero::before { display: none; }
.frame-hero img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: transparent;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 6%, #000 94%, transparent),
    linear-gradient(to bottom, #000 82%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 6%, #000 94%, transparent),
    linear-gradient(to bottom, #000 82%, transparent);
  mask-composite: intersect;
}

.frame-portrait { aspect-ratio: auto; max-width: 440px; padding: 36px 48px 36px 0; }
.frame-portrait::before {
  left: 32px;
  background: var(--blush-deep);
  border: 0;
  transform: none;
}
.frame-portrait img { aspect-ratio: 1; height: auto; object-position: center 30%; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-primary {
  padding: 1rem 2.2rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--rose);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(176, 112, 127, .7);
}
/* ---------- Hero ---------- */

.hero { overflow: clip; }
.hero::before {
  content: "";
  position: absolute;
  width: 680px;
  height: 680px;
  left: -180px;
  top: 50%;
  transform: translateY(-46%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--blush) 0%, rgba(248, 235, 230, 0) 68%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero .split { grid-template-columns: 1.15fr .85fr; gap: 5rem; }
.hero .lead { max-width: 30em; }
.hero-intro { max-width: 34em; }
.hero-intro p:last-child { margin-bottom: 0; }
.hero-highlight {
  max-width: 34em;
  margin-top: 2rem;
  padding: 1.6rem 1.8rem;
  background: var(--blush);
  border-right: 3px solid var(--rose);
  color: var(--ink);
}
.hero-highlight p:last-child { margin-bottom: 0; }
.highlight-note { font-style: italic; color: var(--rose); }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1px solid var(--muted);
  border-radius: 12px;
  opacity: .6;
}
.scroll-hint span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--muted);
  animation: scrollHint 2.2s var(--ease) infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Lists ---------- */

.list { list-style: none; padding: 0; margin: 0; }
.list li {
  position: relative;
  padding: .55rem 1.6rem .55rem 0;
  border-top: 1px solid var(--line);
}
.list li:first-child { border-top: 0; }
.list li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 1.3em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--rose);
}

/* ---------- About ---------- */

.hero .about-row { grid-template-columns: .9fr 1.1fr; margin-top: 5rem; }
.about-sub { margin: 0 0 .5rem; font-size: 1.15rem; color: var(--sage-deep); }
.about-details { margin: 1.5rem 0 0; color: var(--sage-deep); }


/* ---------- Contact ---------- */

.contact { padding-bottom: 0; }
.contact-split { flex: 1; align-items: center; }

.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact-list li {
  display: flex;
  gap: 1.5rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list span { min-width: 80px; color: var(--rose); font-weight: 600; font-size: .95rem; }
.contact-list a { text-decoration: none; color: var(--ink); transition: color .3s var(--ease); }
.contact-list a:hover { color: var(--rose); }

.contact-form {
  background: #fff;
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: 0 30px 60px -40px rgba(29, 43, 54, .35);
}
.form-title { font-family: var(--font-head); font-size: 1.45rem; color: var(--ink); margin: 0 0 .25rem; }
.contact-form label { display: flex; flex-direction: column; gap: .35rem; font-size: .95rem; color: var(--ink); }
.contact-form small { color: var(--muted); font-size: .85rem; }
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 1rem;
  padding: .75rem .1rem;
  border: 0;
  border-bottom: 1px solid var(--blush-deep);
  background: transparent;
  color: var(--ink);
  resize: vertical;
  transition: border-color .3s var(--ease);
}
.contact-form input[dir="ltr"] { text-align: right; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--rose); }
.contact-form input.is-invalid { border-color: var(--rose); }
.contact-form .btn { align-self: flex-start; margin-top: .5rem; }
.form-status { margin: 0; min-height: 1.5em; font-size: .95rem; color: var(--sage-deep); }

.site-footer {
  margin-top: 4rem;
  padding: 2rem;
  text-align: center;
  font-size: .88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.site-footer p { margin: 0; }
.footer-mark { width: 26px; height: 26px; color: var(--rose); margin-bottom: .5rem; }
.site-footer .disclaimer { margin: .6rem auto 0; max-width: 46rem; font-size: .85rem; line-height: 1.7; }
.disclaimer a { color: var(--rose); }

.footer-links a { color: var(--rose); }

.doc-page { padding: calc(var(--header-h) + 3.5rem) 0 4rem; }
.doc-page h2 { font-size: 1.5rem; margin: 2.5rem 0 .75rem; }
.doc-page .list { margin-bottom: 1em; }
.doc-page .contact-list { margin: 1.25rem 0 1.5rem; }
.doc-updated { margin-top: 2.5rem; font-size: .95rem; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* ---------- Accessibility menu ---------- */

.a11y {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 70;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
}
.a11y svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.a11y button { font: inherit; color: inherit; cursor: pointer; }

.a11y-toggle {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  color: #fff !important;
  box-shadow: 0 10px 24px -10px rgba(29, 43, 54, .6);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.a11y-toggle:hover { transform: scale(1.06); }
.a11y-toggle:hover,
.a11y-toggle[aria-expanded="true"] { background: var(--rose); }
.a11y-toggle svg { width: 26px; height: 26px; }

.a11y-panel {
  position: absolute;
  left: 0;
  bottom: 60px;
  width: min(316px, calc(100vw - 40px));
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 50px -22px rgba(29, 43, 54, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transform-origin: bottom left;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.a11y.is-open .a11y-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s;
}

.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.a11y-title { margin: 0; font-family: var(--font-head); font-size: 19px; color: var(--ink); }
.a11y-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--blush);
}
.a11y-close svg { width: 14px; height: 14px; stroke-width: 2; }

.a11y-size {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 7px 12px 7px 7px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.a11y-size-label { font-size: 13.5px; font-weight: 600; }
.a11y-size-ctrl { display: flex; align-items: center; gap: 4px; }
.a11y-size button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--blush-deep);
  border-radius: 50%;
  background: #fff;
  font-size: 18px;
  line-height: 1;
}
.a11y-size button:hover { border-color: var(--rose); }
.a11y-size button[aria-disabled="true"] { opacity: .35; cursor: default; }
.a11y-size output { min-width: 44px; text-align: center; font-size: 13.5px; font-variant-numeric: tabular-nums; }

.a11y-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.a11y-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 11px 4px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-size: 12.5px !important;
  line-height: 1.25;
  text-align: center;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.a11y-opt svg { width: 22px; height: 22px; }
.a11y-opt:hover { border-color: var(--rose); }
.a11y-opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.a11y-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.a11y-reset { display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; border: 0; background: none; color: var(--text) !important; }
.a11y-reset svg { width: 15px; height: 15px; }
.a11y-reset:hover { color: var(--ink) !important; }
.a11y-foot a { color: var(--rose); }

/* ---------- Accessibility settings ---------- */

html.a11y-contrast {
  --ink: #000;
  --text: #000;
  --muted: #1a1a1a;
  --bg: #fff;
  --blush: #fff;
  --blush-deep: #000;
  --sage: #000;
  --sage-soft: #fff;
  --sage-deep: #000;
  --rose: #9b1c3c;
  --peach: #ffd28a;
  --line: rgba(0, 0, 0, .55);
}
html.a11y-contrast .site-header { background: #fff; box-shadow: 0 1px 0 #000; }
html.a11y-contrast .bg-deep { color: #fff; }
html.a11y-contrast .contact-form,
html.a11y-contrast .hero-highlight { border: 1px solid #000; }

html.a11y-grayscale body > :not(.a11y) { filter: grayscale(1); }

html.a11y-links a {
  color: #000 !important;
  background-color: #fff3a6 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px;
}

html.a11y-font {
  --font-body: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-head: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
html.a11y-font body { letter-spacing: .01em; word-spacing: .06em; }

html.a11y-motion { scroll-behavior: auto; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { transition: none !important; animation: none !important; }
html.a11y-motion .reveal { opacity: 1; transform: none; }

html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M7 4l24 17.5-10.8 1.9 6 11.9-4.8 2.5-6-11.9L7 34z' fill='%23000' stroke='%23fff' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 7 4, auto !important;
}

@media print {
  .a11y, .skip-link { display: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1279px) {
  .frame-hero { padding: 0; width: calc(100% + 2rem); margin-left: -2rem; }
  .frame-hero::before { display: none; }
  .frame-portrait { padding: 28px 36px 28px 0; }
  .frame-portrait::before { left: 22px; }
}

@media (max-width: 960px) {
  /* Touch snapping is unreliable on the root scroller, so the home page scrolls inside <main>. */
  html:not(.page-doc),
  html:not(.page-doc) body { height: 100%; overflow: hidden; }
  html:not(.page-doc) main {
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
  }
  html.a11y-motion main { scroll-snap-type: none; scroll-behavior: auto; }
  .hero-row h1,
  .hero-row .frame-hero,
  .about-row .frame-portrait,
  .contact-split > *,
  .site-footer {
    scroll-snap-align: start;
    scroll-margin-top: calc(var(--header-h) + 1rem);
  }
  .hero-row h1 { scroll-margin-top: calc(var(--header-h) + 1.75rem); }
  .site-footer { scroll-snap-align: end; }

  .header-inner { padding: 0 1.25rem; }

  .panel { padding: 4.5rem 0; }
  .hero { padding-top: calc(var(--header-h) + 1.75rem); }
  .scroll-hint { display: none; }

  .container { padding: 0 1.5rem; }
  .split, .hero .split { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero .hero-row { gap: 0; }
  .hero-row .hero-text { display: contents; }
  .hero-row h1 { order: 1; font-size: 1.85rem; margin-bottom: .45em; }
  .hero-row .hero-intro { order: 2; }
  .hero-intro p { font-size: 1rem; line-height: 1.7; margin-bottom: .7em; }
  .hero-row .frame-hero { order: 3; margin-top: 2.5rem; }
  .hero-row .hero-highlight { order: 4; margin-top: 1rem; font-size: 1rem; line-height: 1.7; }
  .hero .about-row { margin-top: 3.5rem; gap: 1.5rem; }
  .hero-highlight { padding: 1.2rem 1.25rem; }
  .frame { max-width: 400px; }
  .frame-hero { width: 100%; max-width: 200px; margin-left: 0; padding: 0; justify-self: center; }
  .about-row .frame-portrait { max-width: 250px; }
  .frame-hero img { position: relative; height: auto; }
  .frame-hero::before { display: none; }
  .frame-portrait { padding: 20px 24px 20px 0; }
  .frame-portrait::before { left: 16px; }

  .contact-form { padding: 2rem 1.5rem; }

  .a11y { left: 14px; bottom: 14px; }
  .a11y-toggle { width: 44px; height: 44px; }
  .a11y-panel { bottom: 54px; width: min(316px, calc(100vw - 28px)); }
}

@media (prefers-reduced-motion: reduce) {
  html, main { scroll-behavior: auto !important; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
