/* Nello Build — design layer
   Clarity, deference, depth. Sits on top of the existing inline styles;
   remove the <link> to this file to return to the previous look. */

:root {
  --hg-font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --hg-ease: cubic-bezier(.25, .1, .25, 1);
  --hg-ink: #F5F3EF;
  --hg-bg: #121110;
  --hg-surface: #1E1D1B;
  --hg-surface-hi: #282624;
  --hg-blue: #1F6DB0;
  --hg-blue-hi: #2A7DC4;
  --hg-sky: #6FA8DC;
  --hg-r-card: 20px;
  --hg-r-media: 16px;
}

/* San Francisco on iPhone, iPad and Safari; the brand face everywhere else */
@supports (font: -apple-system-body) {
  :root { --hg-font: -apple-system, "SF Pro Text", "Instrument Sans", "Helvetica Neue", sans-serif; }
}

/* ---------- Clarity: type ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  text-transform: none !important;
  font-family: var(--hg-font) !important;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
}
.hg-sans, input, textarea, select, button { font-family: var(--hg-font) !important; }
.hg-nocaps { text-transform: none !important; }
.hg-mono { font-family: var(--hg-font) !important; letter-spacing: 0 !important; }
.hg-12 { font-size: 13px !important; font-weight: 500; }
.hg-15 { font-size: 16px !important; }

/* the wordmark keeps its own lettering */
.hg-logo .hg-mono { font-family: 'IBM Plex Mono', monospace !important; letter-spacing: .24em !important; }

h1, h2, h3 { font-weight: 600 !important; }
h1 { letter-spacing: -.028em !important; }
h2 { letter-spacing: -.022em !important; }
h3 { letter-spacing: -.014em !important; }
h1.hg-mono, h2.hg-mono, h3.hg-mono { letter-spacing: 0 !important; }

/* ---------- Navigation bar ---------- */
.hg-nav {
  background: rgba(18, 17, 16, .84) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
  backdrop-filter: saturate(180%) blur(20px) !important;
  border-bottom: 1px solid rgba(245, 243, 239, .08) !important;
}
.hg-nav nav { font-size: 14px !important; letter-spacing: 0 !important; color: rgba(245, 243, 239, .82) !important; }
.hg-nav nav > a:not(.hg-btn), .hg-nav > div > a[href^="tel:"] {
  display: inline-flex; align-items: center; min-height: 44px;
}
.hg-nav nav > span { font-size: 13px !important; }
.hg-nav > div > a[href^="tel:"] { flex: 0 0 auto !important; margin: 0 auto; padding: 0 12px; font-size: 14px !important; }
@media (min-width: 901px) {
  .hg-nav > div { padding-top: 8px !important; padding-bottom: 8px !important; }
  .hg-logo svg { width: 44px; height: 44px; }
  .hg-logo > span > span:first-child { font-size: 24px !important; }
  .hg-logo .hg-mono { font-size: 12px !important; }
}
@media (max-width: 900px) {
  .hg-logo { flex: 0 0 auto !important; }
  .hg-logo svg { width: 40px !important; height: 40px !important; flex: none; }
  .hg-logo > span > span:first-child { font-size: 21px !important; white-space: nowrap; }
  .hg-logo .hg-mono { font-size: 12px !important; }
}
@media (max-width: 620px) {
  .hg-logo svg { width: 34px !important; height: 34px !important; }
  .hg-logo > span > span:first-child { font-size: 18px !important; letter-spacing: .14em !important; }
}
#menubtn {
  min-height: 44px; min-width: 44px; justify-content: flex-end;
  text-transform: none !important; letter-spacing: 0 !important; font-size: 15px !important; font-weight: 500;
}
@media (max-width: 900px) {
  .hg-nav nav.nav-open {
    background: #141312 !important;
    padding-bottom: 24px !important;
  }
  .hg-nav nav.nav-open > a:not(.hg-btn), .hg-nav nav.nav-open > span {
    font-size: 17px !important; min-height: 52px; border-bottom-color: rgba(245, 243, 239, .1) !important;
  }
  .hg-nav nav.nav-open > .hg-btn { margin-top: 18px; min-height: 50px; font-size: 17px !important; border-bottom: 0 !important; }
  .hg-nav nav.nav-open > a[data-li-header] { justify-content: flex-start; border-bottom: 0 !important; }
}

/* ---------- Controls ---------- */
.hg-btn {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 22px !important;
  border: 0 !important; border-radius: 980px !important;
  font-family: var(--hg-font) !important; font-size: 15px !important; font-weight: 500 !important;
  letter-spacing: 0 !important; line-height: 1.2; text-transform: none !important; text-align: center;
  cursor: pointer;
  transition: background-color .2s var(--hg-ease), color .2s var(--hg-ease), box-shadow .2s var(--hg-ease), transform .15s var(--hg-ease);
}
.hg-btn:active { transform: scale(.97); }
.hg-btn-sm { min-height: 36px; padding: 8px 16px !important; font-size: 14px !important; }
.hg-btn-blue { background: var(--hg-blue) !important; color: #fff !important; }
.hg-btn-blue:hover { background: var(--hg-blue-hi) !important; color: #fff !important; }
.hg-btn-light { background: #F5F3EF !important; color: #121110 !important; }
.hg-btn-light:hover { background: #fff !important; color: #121110 !important; }
.hg-btn-dark { background: #121110 !important; color: #F5F3EF !important; }
.hg-btn-dark:hover { background: #33302C !important; color: #F5F3EF !important; }
.hg-btn-ghost-d { background: transparent !important; color: #F5F3EF !important; box-shadow: inset 0 0 0 1px rgba(245, 243, 239, .45); }
.hg-btn-ghost-d:hover { background: rgba(245, 243, 239, .12) !important; color: #F5F3EF !important; box-shadow: inset 0 0 0 1px rgba(245, 243, 239, .8); }
.hg-btn-ghost-l { background: transparent !important; color: #121110 !important; box-shadow: inset 0 0 0 1px rgba(18, 17, 16, .28); }
.hg-btn-ghost-l:hover { background: rgba(18, 17, 16, .06) !important; color: #121110 !important; box-shadow: inset 0 0 0 1px rgba(18, 17, 16, .6); }

.hg-skip { border-radius: 980px; text-transform: none !important; letter-spacing: 0 !important; font-size: 15px !important; font-weight: 500; }

.hg-tab {
  min-height: 44px; padding: 10px 2px !important;
  font-size: 15px !important; font-weight: 500; text-transform: none !important; letter-spacing: 0 !important;
}

/* visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--hg-sky); outline-offset: 3px; border-radius: 8px;
}
.hg-btn:focus-visible { border-radius: 980px !important; }

/* ---------- Form ---------- */
.hg-flabel { font-size: 14px !important; font-weight: 500; color: #F5F3EF !important; }
.hg-field {
  min-height: 48px; padding: 12px 14px !important;
  background: rgba(255, 255, 255, .1) !important; color: #F5F3EF !important;
  border: 1px solid rgba(245, 243, 239, .28) !important; border-radius: 12px !important;
  font-size: 17px !important; line-height: 1.35;
  transition: background-color .2s var(--hg-ease), border-color .2s var(--hg-ease), box-shadow .2s var(--hg-ease);
}
.hg-field::placeholder { color: rgba(245, 243, 239, .62); opacity: 1; }
.hg-field:hover { background: rgba(255, 255, 255, .14) !important; }
.hg-field:focus { background: rgba(255, 255, 255, .16) !important; border-color: #F5F3EF !important; box-shadow: 0 0 0 4px rgba(245, 243, 239, .28); }
textarea.hg-field { min-height: 132px; }
select.hg-field {
  -webkit-appearance: none !important; appearance: none !important; padding-right: 42px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23F5F3EF' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 16px center !important;
}
select.hg-field option { color: #121110; background: #fff; }

/* ---------- Depth: surfaces instead of hairlines ---------- */
.hg-grid { gap: 14px !important; background: transparent !important; border: 0 !important; }
.hg-grid > * { border-radius: var(--hg-r-card); overflow: hidden; transition: background-color .25s var(--hg-ease), transform .35s var(--hg-ease); }
.hg-grid > .hg-dark { background: var(--hg-surface) !important; }
.hg-grid > a.hg-dark:hover { background: var(--hg-surface-hi) !important; color: #F5F3EF; }
.hg-grid > .hg-blue { background: #184E7A !important; }
.hg-grid > * > span[style*="border-top"] { border-top-color: transparent !important; }
.hg-grid .hg-frame, .hg-grid img { border-radius: 0 !important; }
.hg-grid-l > * { border-radius: 14px; }

.hg-panel-l { border: 0 !important; border-radius: var(--hg-r-card); background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgba(18, 17, 16, .04), 0 8px 28px rgba(18, 17, 16, .05); }
.hg-card { border-radius: var(--hg-r-card); }
.hg-panel-d { border: 0 !important; border-radius: var(--hg-r-card); background: rgba(245, 243, 239, .06); }
.hg-media { border: 0 !important; border-radius: var(--hg-r-card); overflow: hidden; }

.hg-play {
  width: 64px !important; height: 64px !important; border-radius: 50% !important;
  background: rgba(245, 243, 239, .92) !important; color: #121110 !important;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .25s var(--hg-ease), background-color .25s var(--hg-ease);
}
a:hover .hg-play { transform: scale(1.06); background: #fff !important; }

/* ---------- Deference: let the photographs speak ---------- */
.hg-gridbg { display: none !important; }
.hg-nofilter { filter: none !important; }
.hg-frame, .hg-photo { border-radius: var(--hg-r-media); }
.hg-thumb { border-radius: 10px; }
.hg-tile { border-radius: 12px; }
.hg-lightbox { border-radius: 12px; }
section[style*="border-top:1px solid rgba(245,243,239,.12)"] { border-top-color: transparent !important; }
#top { border-bottom-color: transparent !important; }

/* links on light sections hover to the deep blue, not the pale one */
.hg-light a:not(.hg-btn):hover { color: #184E7A; }

/* ---------- Home hero: one clear headline ---------- */
#top h1[style*="font:inherit"] { font-weight: 500 !important; letter-spacing: 0 !important; }
#top > div > h2[style*="11vw"] {
  font-size: clamp(64px, 10.5vw, 148px) !important; line-height: .94 !important; letter-spacing: -.04em !important;
}
@media (max-width: 620px) {
  #top h1[style*="font:inherit"] { font-size: 13px !important; line-height: 1.45 !important; }
  #top > div > h2[style*="11vw"] { font-size: clamp(60px, 18.5vw, 88px) !important; }
  section { padding-left: 20px !important; padding-right: 20px !important; }
  .hg-grid { gap: 12px !important; }
}

/* ---------- Touch: 44pt targets ---------- */
@media (pointer: coarse), (max-width: 900px) {
  footer a, .hg-panel-d a, .hg-panel-l a:not(.hg-btn) { display: inline-flex; align-items: center; min-height: 44px; }
  a[href^="tel:"], a[href^="mailto:"] { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ---------- Motion respects the system setting ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* small text links: enlarge the hit area without moving the layout */
@media (pointer: coarse), (max-width: 900px) {
  .hg-logo { min-height: 44px; }
  figcaption a, a.hg-mono, .hg-mono > a { position: relative; }
  figcaption a::after, a.hg-mono::after, .hg-mono > a::after { content: ""; position: absolute; left: -6px; right: -6px; top: -13px; bottom: -13px; }
}
p[style*="rgba(245,243,239,.58)"] { color: rgba(245, 243, 239, .86) !important; }

/* page heroes: tighter under the slimmer bar, and never flush against a light section */
@media (min-width: 901px) {
  #top[style*="padding:clamp(176px"] { padding-top: clamp(128px, 16vh, 168px) !important; }
}
#top[style$=" 0"]:has(+ .hg-light) { padding-bottom: clamp(36px, 6vh, 64px) !important; }
