/* Haviv Nadav Arba, law office: brand page (round 2).
   Built with the hebrew-landing-page skill + emil-design-eng.
   Direction: an editorial, portrait-led page. His portrait is framed in the hero and opens to the full screen on scroll;
   vertical hairlines echo the slatted partition of his office. Colours from the logo: navy, cream, warm grey,
   and the logo's thin gold line as the only accent (hairlines and a few words).
   Type: Noto Serif Hebrew, light and slender (variable weight/width), for display; Cormorant Garamond for Latin labels;
   IBM Plex Sans Hebrew for text. RTL first: logical properties only (inline-start = right). */
:root {
  --navy: #061625;
  --navy-2: #0b1e31;
  --navy-3: #132536;        /* logo ink */
  --navy-4: #040f1a;
  --cream: #f6efe5;
  --sand: #f1ebe2;          /* light sections: warm paper */
  --sand-2: #e8e0d4;
  --ink: #132536;           /* text on sand */
  --muted-c: #55606d;       /* secondary on sand, AA */
  --muted-n: #a9b3be;       /* secondary on navy, AA */
  --grey: #8c96a1;
  --gold: #c3995e;          /* the logo line */
  --gold-hi: #d9b886;       /* gold words on navy */
  --gold-lo: #8a6534;       /* gold words on sand, AA */
  --line-n: rgba(246, 239, 229, .13);
  --line-c: rgba(19, 37, 54, .15);

  --f-display: "Noto Serif Hebrew", "Times New Roman", serif;
  --f-latin: "Cormorant Garamond", "Times New Roman", serif;
  --f-body: "IBM Plex Sans Hebrew", "Arial Hebrew", Arial, sans-serif;

  --step--1: clamp(.92rem, .9rem + .12vw, 1rem);
  --step-0: clamp(1.08rem, 1.04rem + .18vw, 1.18rem);
  --step-1: clamp(1.18rem, 1.1rem + .35vw, 1.4rem);
  --step-2: clamp(1.7rem, 1.4rem + 1.1vw, 2.3rem);
  --step-3: clamp(2.5rem, 1.75rem + 3vw, 4.4rem);
  --step-4: clamp(2.9rem, 1.5rem + 5.6vw, 6.8rem);

  --gutter: clamp(20px, 5vw, 72px);
  --wrap: 1240px;
  --header-h: 84px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-soft: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--navy); color: var(--cream);
  font-family: var(--f-body); font-size: var(--step-0); font-weight: 300; line-height: 1.75;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
  -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
em { font-style: normal; }
bdi { unicode-bidi: isolate; }
figure, blockquote { margin: 0; }
::selection { background: var(--gold); color: var(--navy); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; inset-inline-start: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--cream); color: var(--navy); text-decoration: none; transition: top 160ms var(--ease-out); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; }
.sec--sand :focus-visible { outline-color: var(--gold-lo); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- type ---------- */
.label {
  display: flex; align-items: center; gap: 14px; margin: 0 0 20px;
  font-size: .9rem; font-weight: 500; letter-spacing: .1em; color: var(--gold-hi);
}
.label::before { content: ""; inline-size: 40px; block-size: 1px; background: currentColor; opacity: .8; }
.sec--sand .label { color: var(--gold-lo); }
.h2 { font-family: var(--f-display); font-weight: 300; font-stretch: 85%; font-size: var(--step-3); line-height: 1.1; margin-bottom: 24px; text-wrap: balance; }
.h2 em { color: var(--gold-hi); }
.sec--sand .h2 em { color: var(--gold-lo); }
.lead { font-size: var(--step-1); line-height: 1.75; font-weight: 300; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 30px; border-radius: 0; border: 1px solid transparent;
  font-family: var(--f-body); font-size: var(--step-0); font-weight: 500; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn--cream { background: var(--cream); color: var(--navy); }
.btn--ghost { border-color: rgba(246, 239, 229, .32); color: var(--cream); background: rgba(6, 22, 37, .25); }
.btn__k { font-weight: 300; color: var(--muted-n); }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--cream:hover { background: #fff; }
  .btn--ghost:hover { border-color: rgba(246, 239, 229, .7); }
}

/* ---------- header ---------- */
.hdr {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 85; height: var(--header-h);
  transition: background-color 350ms ease, border-color 350ms ease, height 350ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
body:not(.is-top) .hdr { --header-h: 70px; background: rgba(6, 22, 37, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line-n); }
.hdr__in { height: 100%; width: min(100% - 2 * var(--gutter), 1400px); margin-inline: auto; display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; white-space: nowrap; }
.brand__name { font-family: var(--f-display); font-weight: 350; font-stretch: 85%; font-size: 1.42rem; line-height: 1; letter-spacing: .01em; }
.brand__rule { inline-size: 1px; block-size: 20px; background: var(--gold); }
.brand__role { font-size: .88rem; font-weight: 400; color: var(--muted-n); letter-spacing: .04em; }
.hdr__nav { display: flex; gap: 34px; margin-inline-start: auto; }
.hdr__nav a { position: relative; text-decoration: none; font-size: .92rem; font-weight: 400; padding: 6px 0; color: rgba(246, 239, 229, .86); }
.hdr__nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 250ms var(--ease-out); }
.hdr__nav a.is-here { color: var(--cream); }
.hdr__nav a.is-here::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .hdr__nav a:hover::after { transform: scaleX(1); } }
.hdr__phone { font-size: .95rem; font-weight: 500; text-decoration: none; padding: 10px 0 10px; border-bottom: 1px solid var(--gold); letter-spacing: .02em; }
.hdr__burger { display: none; }

/* mobile menu */
.menu { position: fixed; inset: 0; z-index: 80; background: var(--navy); display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--header-h) + 36px) var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px)); opacity: 0; transition: opacity 220ms ease-out; }
.menu.is-open { opacity: 1; }
.menu[hidden] { display: none; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a { padding: 14px 0; border-bottom: 1px solid var(--line-n); font-family: var(--f-display); font-weight: 300; font-stretch: 85%; font-size: clamp(1.9rem, 8.5vw, 2.5rem); line-height: 1.2; text-decoration: none; opacity: 0; transform: translateY(10px); transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: 40ms; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: 80ms; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: 120ms; }
.menu__foot { display: flex; flex-direction: column; gap: 6px; color: var(--muted-n); font-size: .95rem; }
.menu__foot a { text-decoration: none; color: var(--cream); }

/* ---------- opening: the words first, then the portrait ---------- */
.hero { position: relative; min-height: 88vh; min-height: 88svh; display: grid; place-items: center; text-align: center; background: var(--navy); isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 50% 42%, rgba(217, 184, 134, .075), transparent 70%),
    linear-gradient(180deg, #071a2c 0%, var(--navy) 70%);
}
.hero__copy { display: flex; flex-direction: column; align-items: center; padding: calc(var(--header-h) + 48px) var(--gutter) clamp(64px, 10vh, 112px); will-change: transform, opacity; }
.verse { max-width: 34em; margin-bottom: clamp(26px, 4vh, 40px); }
.verse p { margin: 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(.98rem, .9rem + .3vw, 1.15rem); line-height: 1.9; color: rgba(246, 239, 229, .66); }
.verse figcaption { margin-top: 2px; font-size: .74rem; letter-spacing: .08em; color: var(--grey); }
.hero__rule { display: block; inline-size: 120px; block-size: 1px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent); margin-bottom: clamp(26px, 4vh, 40px); }
.kicker { margin: 0 0 22px; font-size: .9rem; font-weight: 500; letter-spacing: .08em; color: var(--gold-hi); }
.kicker span { color: var(--gold); margin-inline: .5em; }
.hero__title { font-family: var(--f-display); font-weight: 250; font-stretch: 82%; font-size: clamp(2.7rem, 1.4rem + 5.6vw, 7.2rem); line-height: 1.02; letter-spacing: -.005em; margin-bottom: 28px; text-wrap: balance; }
.hero__title .ln { display: block; overflow: hidden; padding-block: .08em .12em; margin-block: -.08em -.12em; }
.hero__title .ln > span { display: inline-block; }
.hero__title em { color: var(--gold-hi); }
.hero__sub { font-size: var(--step-1); color: var(--muted-n); max-width: 30em; margin-bottom: 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* the pen: a black-and-gold fountain pen resting on the gold line it has just drawn (right to left).
   Its nib sits on the line's left end; the body leans up to the right. On scroll a fixed copy (.pen-fly) takes over. */
.hero__write { position: relative; inline-size: 150px; block-size: 1px; margin-bottom: clamp(26px, 4vh, 40px); margin-top: 34px; }
.hero__write .hero__rule { inline-size: 100%; margin: 0; transform-origin: right; }
.hero__pen { position: absolute; left: 0; bottom: 0; inline-size: 11px; block-size: 154px; translate: -5.5px 0; transform-origin: 50% 100%; rotate: 78deg; }
.pen { display: block; inline-size: 100%; block-size: 100%; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); }
.pen-fly { position: fixed; z-index: 30; left: 0; top: 0; inline-size: 40px; block-size: 560px; transform-origin: 50% 50%; visibility: hidden; pointer-events: none; will-change: transform, opacity; }
.pen-fly .pen { filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55)); }
.is-flying .pen-fly { visibility: visible; }
.is-flying .hero__pen { visibility: hidden; }

/* the turn: the pen lands in the middle of the screen as the card's edge; scrolling turns the card to face you,
   and its face is the whole portrait, head included (sticky stage; JS sets --ry -90..0deg, --s, --tilt, --cap) */
.turn { position: relative; height: 185vh; height: 185svh; background: var(--navy); }
.turn__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; padding-top: var(--header-h); overflow: hidden; }
.turn__wrap { perspective: 1800px; }
.turn__card {
  --ry: -90deg; --s: 1; --tilt: 0deg; --cap: 0; --d: 18px;
  position: relative; inline-size: var(--w, 480px); aspect-ratio: 3 / 4; visibility: hidden;
  transform-style: preserve-3d; transform: scale(var(--s)) rotateX(var(--tilt)) rotateY(var(--ry)); will-change: transform;
}
.is-landed .turn__card { visibility: visible; }
.turn__face { position: absolute; inset: 0; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.turn__photo { transform: translateZ(calc(var(--d) / 2)); background: var(--navy); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .75); }
.turn__photo::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(217, 184, 134, .6); pointer-events: none; }
.turn__photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.turn__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 22, 37, 0) 55%, rgba(6, 22, 37, .9) 100%); opacity: var(--cap); }
/* the edges are the pen's lacquer with a gold seam */
.turn__edge { position: absolute; top: 0; bottom: 0; inset-inline-start: calc(50% - var(--d) / 2); inline-size: var(--d);
  background: linear-gradient(90deg, transparent calc(50% - 1px), #d9b886 calc(50% - 1px), #d9b886 calc(50% + 1px), transparent calc(50% + 1px)),
              linear-gradient(90deg, #000, #44444a 28%, #121214 46%, #000); }
.turn__edge--r { transform: rotateY(90deg) translateZ(calc(var(--w, 480px) / 2)); }
.turn__edge--l { transform: rotateY(-90deg) translateZ(calc(var(--w, 480px) / 2)); }
.turn__cap { position: absolute; z-index: 2; inset-inline: 7%; bottom: 6%; opacity: var(--cap); translate: 0 calc((1 - var(--cap)) * 14px); }
.turn__cap .portrait__name { font-size: calc(var(--w, 480px) * .1); }
.turn__cap .portrait__en { font-size: calc(var(--w, 480px) * .026); }
.turn__cap .portrait__role { font-size: calc(var(--w, 480px) * .032); margin-top: 10px !important; }
.turn__cap p { margin: 0; }
.portrait__en { font-family: var(--f-latin); font-size: .95rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-hi); direction: ltr; text-align: right; margin-bottom: 10px !important; }
.portrait__name { font-family: var(--f-display); font-weight: 250; font-stretch: 82%; font-size: clamp(2.4rem, 1.5rem + 3.6vw, 5rem); line-height: 1; }
.portrait__role { margin-top: 14px !important; color: rgba(246, 239, 229, .85); }
.portrait__role span { color: var(--gold); margin-inline: .4em; }

/* load sequence: from-states only when JS is running and motion is allowed */
.anim .hero__bg { opacity: 0; transition: opacity 1600ms ease-out; }
.anim .verse, .anim .kicker, .anim .hero__sub, .anim .hero__ctas { opacity: 0; translate: 0 12px; transition: opacity 900ms var(--ease-out), translate 900ms var(--ease-out); }
.anim .verse { transition-delay: 150ms; }
.anim .hero__rule { transform: scaleX(0); transition: transform 1000ms var(--ease-soft) 300ms; }
.anim .hero__pen { opacity: 0; translate: 144.5px 0; transition: opacity 400ms ease-out 300ms, translate 1000ms var(--ease-soft) 300ms; }
.anim.go .hero__pen { opacity: 1; translate: -5.5px 0; }
.anim .kicker { transition-delay: 420ms; }
.anim .hero__title .ln > span { transform: translateY(110%); transition: transform 1100ms var(--ease-soft); }
.anim .hero__title .ln:nth-child(1) > span { transition-delay: 520ms; }
.anim .hero__title .ln:nth-child(2) > span { transition-delay: 620ms; }
.anim .hero__sub { transition-delay: 880ms; }
.anim .hero__ctas { transition-delay: 980ms; }
.anim .hdr { opacity: 0; transition: opacity 900ms ease-out 700ms, background-color 350ms ease, border-color 350ms ease; }
.anim.go :is(.hero__bg, .verse, .kicker, .hero__sub, .hero__ctas, .hdr) { opacity: 1; }
.anim.go :is(.verse, .kicker, .hero__sub, .hero__ctas) { translate: none; }
.anim.go .hero__rule, .anim.go .hero__title .ln > span { transform: none; }

/* ---------- sections ---------- */
.sec { position: relative; padding-block: clamp(64px, 9vw, 136px); }
.sec--sand { background: var(--sand); color: var(--ink); }
.sec--sand p:not(.lead):not(.label) { color: var(--muted-c); }
.sec--navy { background: var(--navy); }
.sec--navy p:not(.lead):not(.label) { color: var(--muted-n); }

/* about */
.statement { font-family: var(--f-display); font-weight: 300; font-stretch: 85%; font-size: clamp(2.05rem, 1.25rem + 2.9vw, 3.8rem); line-height: 1.2; max-width: 21em; margin-bottom: clamp(36px, 6vw, 88px); text-wrap: balance; }
.statement em { color: rgba(19, 37, 54, .48); }
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 104px); align-items: start; }
.about__text { order: -1; max-width: 36em; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 28% 50%; }

/* founder */
.founder { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 104px); align-items: start; }
.founder__media { position: sticky; top: 110px; }
.founder__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; }
.founder__cap { display: flex; justify-content: space-between; margin: 16px 0 0 !important; direction: ltr; font-family: var(--f-latin); font-size: .9rem; letter-spacing: .26em; text-transform: uppercase; color: var(--grey) !important; }
.creds { margin: 32px 0 0; border-top: 1px solid var(--line-n); }
.creds > div { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line-n); }
.creds dt { font-family: var(--f-latin); font-weight: 500; font-size: 1.5rem; color: var(--gold-hi); }
.creds dd { margin: 0; font-weight: 400; }
.creds dd span { display: block; font-weight: 300; font-size: var(--step--1); color: var(--muted-n); }

/* practice areas: an index, not cards */
.practice__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(32px, 5vw, 64px); }
.practice__head .h2 { margin-bottom: 0; }
.practice__intro { max-width: 34em; }
.practice__intro p { margin: 0 0 14px; }
.practice__intro p:last-child { margin-bottom: 0; }
.areas { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: baseline; padding: 26px 0 28px; border-bottom: 1px solid var(--line-c); }
.area h3 { font-family: var(--f-display); font-weight: 300; font-stretch: 85%; font-size: var(--step-2); line-height: 1.15; color: var(--ink); }
.area p { margin: 0; max-width: 36em; }
.areas__more { margin: 28px 0 0; }
.areas__more a { color: var(--ink); font-weight: 500; text-underline-offset: 5px; text-decoration-color: var(--gold); }

/* approach */
.approach { overflow: hidden; isolation: isolate; }
.approach__img { position: absolute; inset: 0; z-index: -1; }
.approach__img img { width: 100%; height: 100%; object-fit: cover; opacity: .2; }
.approach__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 10%, rgba(6, 22, 37, .7) 60%, rgba(6, 22, 37, .55)); }
.approach .h2 { margin-bottom: clamp(36px, 5vw, 72px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.steps li { border-top: 1px solid rgba(246, 239, 229, .3); padding-top: 26px; }
.steps__n { display: block; font-family: var(--f-latin); font-weight: 500; font-size: 1.1rem; letter-spacing: .2em; color: var(--gold-hi); margin-bottom: 20px; }
.steps h3 { font-family: var(--f-display); font-weight: 300; font-stretch: 85%; font-size: var(--step-2); line-height: 1.15; margin-bottom: 14px; }
.steps p { margin: 0; }

/* contact */
.contact { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 6vw, 104px); align-items: start; }
.ways { margin: 32px 0 0; border-top: 1px solid var(--ink); }
.ways > div { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line-c); }
.ways dt { font-size: var(--step--1); font-weight: 500; color: var(--gold-lo); }
.ways dd { margin: 0; font-weight: 400; color: var(--ink); }
.ways dd > span { display: block; font-weight: 300; font-size: var(--step--1); color: var(--muted-c); }
.ways a { text-decoration: none; }
.ways__nav { display: flex !important; gap: 18px; margin-top: 8px; }
.ways__nav a { font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
@media (hover: hover) and (pointer: fine) { .ways a:hover { color: var(--gold-lo); } }

.form { background: var(--navy); color: var(--cream); padding: clamp(28px, 4.5vw, 56px); box-shadow: 0 40px 80px -40px rgba(6, 22, 37, .45); }
.form__title { font-family: var(--f-display); font-weight: 300; font-stretch: 85%; font-size: var(--step-2); line-height: 1.15; margin-bottom: 24px !important; color: var(--cream) !important; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.field { margin-bottom: 22px; min-width: 0; }
.field label { display: block; font-size: var(--step--1); font-weight: 500; margin-bottom: 4px; color: var(--cream); }
.opt { color: var(--muted-n); font-weight: 300; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: max(16px, 1rem); font-weight: 400; color: var(--cream);
  background: transparent; border: 0; border-bottom: 1px solid rgba(246, 239, 229, .28); border-radius: 0; padding: 10px 2px;
  transition: border-color 200ms ease;
}
.field input[dir="ltr"] { text-align: right; }
.field select { appearance: none; -webkit-appearance: none; padding-inline-end: 24px; background: linear-gradient(45deg, transparent 50%, var(--gold-hi) 50%) 10px 55% / 6px 6px no-repeat, linear-gradient(135deg, var(--gold-hi) 50%, transparent 50%) 4px 55% / 6px 6px no-repeat; }
.field select option { color: var(--navy); }
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold-hi); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 1px 0 var(--gold-hi); }
.field [aria-invalid="true"] { border-bottom-color: #ff9c8a; }
.field__err { margin: 6px 0 0 !important; font-size: .85rem; color: #ffb3a5 !important; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0; font-size: var(--step--1); color: var(--muted-n); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--gold); flex: none; }
.form .btn { margin-top: 24px; }
.form__status { margin: 14px 0 0 !important; min-height: 1.5em; color: var(--gold-hi) !important; }
.hp { position: absolute !important; inset-inline-start: -9999px; }

/* footer */
.ftr { background: var(--navy-4); padding: 64px 0 calc(48px + env(safe-area-inset-bottom, 0px)); }
.ftr__in { display: grid; grid-template-columns: auto 1fr; gap: 28px 64px; align-items: center; }
.ftr__logo { width: 300px; }
.ftr__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 32px; }
.ftr__nav a { text-decoration: none; font-size: .92rem; }
.ftr__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-top: 28px; border-top: 1px solid var(--line-n); }
.ftr__meta p { margin: 0; font-size: .84rem; color: var(--grey); }
.ftr__meta a { text-decoration: none; }

.dock { display: none; }

/* ---------- reveals (added by JS, so nothing is lost without it) ---------- */
.js-rv .rv { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--ease-out), transform 1000ms var(--ease-soft); transition-delay: var(--d, 0ms); }
.js-rv .rv.in { opacity: 1; transform: none; }

/* ---------- reduced motion / "stop animations" ---------- */
.is-static .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
.is-static .hero__copy { transform: none !important; opacity: 1 !important; }
.is-static .turn { height: auto; }
.is-static .turn__stage { position: relative; height: auto; padding-block: 24px 72px; }
.is-static .turn__card { transform: none; --cap: 1; visibility: visible; }
.is-static .turn__edge, .is-static .pen-fly { display: none; }
.is-static .turn__photo { transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hdr__nav { gap: 24px; }
  .hdr__phone { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  body:not(.is-top) .hdr { --header-h: 60px; }
  .hdr__nav, .hdr__phone { display: none; }
  .brand__name { font-size: 1.28rem; }
  .brand__role { font-size: .82rem; }
  .hdr__burger { display: grid; place-content: center; gap: 7px; margin-inline-start: auto; width: 44px; height: 44px; margin-inline-end: -10px; background: none; border: 0; padding: 0; cursor: pointer; }
  .hdr__burger span { display: block; width: 26px; height: 1.5px; background: var(--cream); transition: transform 240ms var(--ease-out); }
  .hdr__burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .hdr__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

  /* opening on phones: the words fill the first screen, the portrait peeks below */
  .hero { min-height: 82vh; min-height: 82svh; place-items: start center; }
  .hero__copy { padding: calc(var(--header-h) + 28px) var(--gutter) 48px; }
  .verse p { font-size: .9rem; line-height: 1.75; }
  .kicker { font-size: .8rem; margin-bottom: 14px; }
  .hero__title { font-size: clamp(2.5rem, 11.4vw, 3.4rem); margin-bottom: 18px; }
  .hero__sub { font-size: 1.08rem; margin-bottom: 26px; }
  .hero__ctas { width: 100%; flex-wrap: nowrap; }
  .hero__ctas .btn { flex: 1; padding: 0 12px; }
  .hero__ctas .btn__k { color: var(--cream); font-weight: 500; }
  .hero__ctas .btn__num { display: none; }
  .turn { height: 180vh; height: 180svh; }
  .turn__card { --d: 14px; }
  .hero__write { inline-size: 120px; margin-top: 28px; }
  .hero__pen { block-size: 128px; inline-size: 9px; translate: -4.5px 0; }
  .anim .hero__pen { translate: 115.5px 0; }
  .anim.go .hero__pen { translate: -4.5px 0; }
  .turn__stage { padding-bottom: 76px; } /* clear of the call dock */
  .portrait__en { font-size: .78rem; }
  .portrait__role { display: flex; flex-direction: column; font-size: .92rem; }
  .portrait__role span { display: none; }

  .about, .founder, .contact, .practice__head { grid-template-columns: 1fr; }
  .about__text { order: 0; }
  .about__media img { aspect-ratio: 4 / 3; }
  .founder__media { position: relative; top: 0; max-width: 480px; }
  .founder__media img { aspect-ratio: 4 / 5; }
  .founder__cap { font-size: .74rem; letter-spacing: .16em; white-space: nowrap; }
  .area { grid-template-columns: 1fr; gap: 8px; padding: 20px 0 22px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding-top: 20px; }
  .steps__n { margin-bottom: 10px; }
  .approach__img::after { background: rgba(6, 22, 37, .82); }
  .form__row { grid-template-columns: 1fr; }
  .creds > div, .ways > div { grid-template-columns: 76px 1fr; gap: 16px; }
  .ftr__in { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .ftr__logo { width: min(300px, 76vw); }
  .ftr__nav { justify-content: center; }
  .ftr__meta { flex-direction: column; align-items: center; }

  .dock {
    display: flex; gap: 10px; position: fixed; inset-inline: 0; bottom: 0; z-index: 70;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(6, 22, 37, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line-n);
    transform: translateY(110%); transition: transform 320ms var(--ease-out);
  }
  .dock.is-on { transform: none; }
  .dock__main { flex: 1; }
  .dock__wa { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(246, 239, 229, .4); color: var(--cream); transition: transform 160ms var(--ease-out); }
  .dock__wa:active { transform: scale(.95); }
  .dock__wa svg { width: 24px; height: 24px; fill: currentColor; }
  .ftr { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 900px) and (max-height: 600px) {
  .verse p { font-size: .82rem; }
  .hero__copy { padding-top: calc(var(--header-h) + 16px); }
}
html.a11y-big .hero__title, html.a11y-big .h2, html.a11y-big .statement { text-wrap: wrap; }

/* ---------- accessibility toolbar (from the skill) ---------- */
/* Styles for assets/a11y.js. Append to styles.css (every page loads it, so the toolbar looks the same everywhere).
   The 'a11y-big' block refers to the scroll-story classes of the worked example (.beat, .actions, .display--publish):
   point it at whatever in your page has white-space: nowrap or fixed-width rows. */
/* ---------- accessibility toolbar (a11y.js) ---------- */
.a11y { position: fixed; z-index: 90; inset-inline-end: 16px; bottom: 24px; font-family: Arial, "Arial Hebrew", sans-serif; font-size: 15px; line-height: 1.35; letter-spacing: normal; word-spacing: normal; }
.a11y__fab {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: #1d4fd8; color: #fff; border: 2px solid #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
}
.a11y__fab svg { width: 28px; height: 28px; fill: currentColor; }
.a11y__fab.is-set::after { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 12px; height: 12px; border-radius: 50%; background: #ffd400; border: 2px solid #000; }
.a11y__fab:focus-visible, .a11y button:focus-visible, .a11y a:focus-visible { outline: 3px solid #ffd400; outline-offset: 3px; }
.a11y__panel {
  position: absolute; bottom: 60px; inset-inline-end: 0; width: min(340px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 170px)); overflow: auto;
  background: #fff; color: #111; border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); padding: 14px; text-align: start;
}
.a11y__panel[hidden] { display: none; }
.a11y__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.a11y__title { font: 700 18px/1.2 Arial, "Arial Hebrew", sans-serif; color: #111; margin: 0; }
.a11y__close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #bbb; background: #fff; color: #111; font-size: 16px; cursor: pointer; }
.a11y__size { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid #ddd; border-radius: 10px; margin-bottom: 10px; }
.a11y__label { flex: 1; font-weight: 700; }
.a11y__size button { min-width: 44px; height: 40px; border-radius: 8px; border: 1px solid #1d4fd8; background: #fff; color: #1d4fd8; font-weight: 700; font-size: 15px; cursor: pointer; }
.a11y__size button:disabled { opacity: .4; cursor: default; }
.a11y__val { min-width: 48px; text-align: center; font-weight: 700; }
.a11y__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y__opt {
  display: grid; justify-items: center; gap: 4px; padding: 10px 6px; min-height: 68px; border-radius: 10px; cursor: pointer;
  border: 2px solid #ddd; background: #f5f6f8; color: #111; font: 600 14px/1.25 Arial, "Arial Hebrew", sans-serif;
}
.a11y__opt svg { width: 24px; height: 24px; fill: currentColor; }
.a11y__opt[aria-pressed="true"] { background: #1d4fd8; border-color: #1d4fd8; color: #fff; }
.a11y__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.a11y__reset { padding: 9px 14px; border-radius: 8px; border: 1px solid #111; background: #111; color: #fff; font: 700 14px Arial, sans-serif; cursor: pointer; }
.a11y__foot a { color: #1d4fd8; text-decoration: underline; font-weight: 700; }
/* phones: in the header row, between the logo and the call button, clear of the hero buttons and the dock */
@media (max-width: 860px) {
  .a11y { bottom: auto; top: calc(12px + env(safe-area-inset-top, 0px)); inset-inline-end: auto; left: 50%; transform: translateX(-50%); }
  .a11y__fab { width: 44px; height: 44px; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); }
  .a11y__fab svg { width: 26px; height: 26px; }
  .a11y__panel { bottom: auto; top: 54px; inset-inline-end: auto; left: 50%; transform: translateX(-50%); max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); }
}

/* the settings; the toolbar itself keeps its own look */
/* bigger text: long headlines and button rows wrap instead of running off a phone screen */
html.a11y-big .beat, .story.is-static .beat { min-width: 0; max-width: 100%; }
html.a11y-big .beat .actions { flex-wrap: wrap !important; }
html.a11y-big .btn { white-space: normal; text-align: center; line-height: 1.2; }
html.a11y-big .display--publish { text-wrap: wrap !important; }
html.a11y-contrast {
  --ink: #000; --ink-2: #000; --ink-3: #000; --ivory: #fff; --muted: #fff; --line: rgba(255, 255, 255, .7);
  --gold: #ffd400; --gold-hi: #ffd400; --gold-lo: #ffd400; --gold-grad: linear-gradient(#ffd400, #ffd400);
}
html.a11y-contrast body { background: #000; }
html.a11y-contrast :not(.a11y *) { text-shadow: none !important; }
html.a11y-contrast a:not(.a11y *):not(.btn) { color: #ffd400; }
/* the page ground is painted on <html>/<body>, so the inversion goes on the root; photos, video and the toolbar flip back */
html.a11y-invert { filter: invert(1) hue-rotate(180deg); }
html.a11y-invert :is(img, video, .p3d, .l3d, .a11y) { filter: invert(1) hue-rotate(180deg); }
html.a11y-gray body > *:not(.a11y) { filter: grayscale(1); }
html.a11y-links a:not(.a11y *), html.a11y-links button:not(.a11y *) { outline: 2px solid #ffd400 !important; outline-offset: 2px; }
html.a11y-links a:not(.a11y *) { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-font { --f-display: Arial, "Arial Hebrew", sans-serif; --f-body: Arial, "Arial Hebrew", sans-serif; --f-label: Arial, "Arial Hebrew", sans-serif; }
html.a11y-font :not(.a11y *) { font-family: Arial, "Arial Hebrew", sans-serif !important; }
html.a11y-font .gold, html.a11y-font .gold * { background: none !important; color: var(--gold-hi) !important; -webkit-text-fill-color: currentColor; }
/* WCAG 1.4.12 text spacing */
html.a11y-spacing :not(.a11y, .a11y *) { line-height: 1.6 !important; letter-spacing: .12em !important; word-spacing: .16em !important; }
html.a11y-spacing p:not(.a11y *) { margin-bottom: 2em; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-still .rv, html.a11y-still .rv * { opacity: 1 !important; transform: none !important; }
html.a11y-still .beat .line { filter: none !important; }
html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M5 2l14 12-6.2.6 3.7 7.6-2.7 1.3-3.6-7.7L5 20z' fill='%23000' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E") 8 4, auto !important;
}
/* on phones the toolbar button sits in the header row, next to the menu button */
@media (max-width: 900px) {
  .a11y { top: calc(12px + env(safe-area-inset-top, 0px)); bottom: auto; right: auto; left: calc(var(--gutter) + 40px); transform: none; }
  .a11y__fab { width: 40px; height: 40px; box-shadow: none; }
  .a11y__fab svg { width: 22px; height: 22px; }
  .a11y__panel { left: 0; transform: none; top: 50px; }
}
/* brand the toolbar button (still a clear, standard accessibility icon) */
.a11y__fab { background: var(--navy-3); border: 1px solid rgba(246, 239, 229, .55); }
