/* Shared founder website header. Homepage remains the visual authority.
 * Case studies and Privacy reuse its identity, rhythm and mobile navigation.
 * Homepage retains its existing fixed/dynamic light-dark scroll behaviour.
 */
:root {
  --sh-paper: #f2f0e9;
  --sh-ink: #101010;
  --sh-accent: #f05838;
  --sh-rail: rgba(0,0,0,.25);
  --sh-gutter: clamp(24px,3.6vw,64px);
  --sh-ui: 'Inter','Helvetica Neue',Arial,sans-serif;
  --sh-display: 'Inter Display','Arial Black','Helvetica Neue',Arial,sans-serif;
  --sh-ease: cubic-bezier(.2,.78,.2,1);
}
.site-header {
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px,2.2vw,32px);
  width: 100%;
  height: 81px;
  min-height: 81px;
  padding: 0 var(--sh-gutter);
  font-family: var(--sh-ui);
  border-bottom: 1px solid var(--sh-rail);
}
.site-header.shared-header {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  z-index: 100;
  background: var(--sh-paper);
  color: var(--sh-ink);
}
.site-header .identity {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  line-height: 1;
  color: inherit;
  text-decoration: none;
}
.site-header .identity-main {
  display: block;
  font-family: var(--sh-ui);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.015em;
  word-spacing: .15em;
  white-space: nowrap;
  color: inherit;
}
.site-header .identity-dot { color: var(--sh-accent); }
.site-header .identity-small {
  display: block;
  font-family: var(--sh-ui);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .05em;
  white-space: nowrap;
  color: inherit;
}
.site-header .desktop-nav {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(18px,2.5vw,40px);
  min-width: 0;
  width: auto;
  margin: 0;
  padding: 0;
  font-family: var(--sh-ui);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  color: inherit;
}
.site-header .desktop-nav a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  position: relative;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
}
.site-header .desktop-nav a::after {
  content:'';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--sh-ease);
}
.site-header .desktop-nav a:is(:hover,:focus-visible)::after { transform: scaleX(1); }
.site-header .menu-toggle {
  box-sizing: border-box;
  display: none;
  flex: 0 0 auto;
  position: relative;
  width: 48px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.site-header .menu-toggle span {
  display: block;
  position: absolute;
  left: 10px;
  top: 18px;
  width: 28px;
  height: 2px;
  background: currentColor;
  transition: transform .3s var(--sh-ease);
}
.site-header .menu-toggle span + span { top: 26px; }
.site-header .menu-toggle[aria-expanded="true"] span:first-child {transform:translateY(4px) rotate(45deg)}
.site-header .menu-toggle[aria-expanded="true"] span:last-child {transform:translateY(-4px) rotate(-45deg)}
.site-header :is(a,button):focus-visible {
  outline: 3px solid var(--sh-accent);
  outline-offset: 4px;
}
.menu-panel {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(18px,3svh,30px);
  padding: clamp(112px,15svh,150px) var(--sh-gutter) clamp(25px,4svh,42px);
  background: var(--sh-accent);
  color: var(--sh-ink);
  overflow-y: auto;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .55s var(--sh-ease), visibility .55s;
}
.menu-panel.is-open { visibility: visible; clip-path: inset(0); }
.menu-panel nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 1000px;
}
.menu-panel nav a {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  padding: clamp(9px,1.7svh,19px) 0;
  border: 0;
  border-bottom: 2px solid currentColor;
  background: none;
  font-family: var(--sh-display);
  font-size: clamp(35px,6.6vw,95px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.045em;
  overflow-wrap: break-word;
  text-decoration: none;
  color: inherit;
}
.menu-panel nav a:is(:hover,:focus-visible) { color: var(--sh-paper); }
.menu-panel p {
  font-family: var(--sh-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.5;
  margin: 0;
}
body.menu-open { overflow: hidden; }
@media (max-width: 800px) {
  .site-header {
    height: 70px;
    min-height: 70px;
    gap: 12px;
  }
  .site-header .identity-main { font-size: 17px; }
  .site-header .identity-small { font-size: 12px; }
  .site-header .desktop-nav { display: none; }
  .site-header .menu-toggle { display: block; margin-left: auto; }
  .menu-panel {
    padding-top: clamp(105px,14svh,136px);
    padding-bottom: clamp(20px,3.5svh,35px);
  }
  .menu-panel nav a {
    font-size: clamp(31px,8vw,64px);
    line-height: 1.14;
    letter-spacing: -.047em;
    padding-block: clamp(9px,1.3svh,16px);
  }
}
@media (max-width: 360px) {
  .site-header .identity-main { font-size: 16px; }
  .site-header .identity-small { font-size: 12px; }
  .menu-panel nav a { font-size: clamp(29px,8vw,38px); }
}
@media (max-height: 520px) {
  .menu-panel { padding-top: 85px; }
  .menu-panel nav a { font-size: clamp(25px,5svh,42px); padding-block: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-panel,
  .menu-panel nav a,
  .site-header .menu-toggle span,
  .site-header .desktop-nav a::after {
    transition: none !important;
  }
}