/* ================================
   Georg Knoerr — georgknoerr.me
   Warm, editorial, systems-minded
   ================================ */

:root {
  /* Palette: warm off-white base, ink text, terracotta accent, stone secondary */
  --bg: #f6f1e8;
  --bg-alt: #efe7d7;
  --bg-deep: #1f1d1a;
  --ink: #1f1d1a;
  --ink-soft: #4a463f;
  --ink-mute: #7a7367;
  --line: #d8cfbd;
  --line-soft: #e6dec9;
  --accent: #b9482e;        /* terracotta */
  --accent-deep: #8f3621;
  --accent-soft: #f5d9c9;
  --highlight: #efd089;     /* warm ochre highlight */

  /* Type */
  --serif: 'Fraunces', 'Georgia', serif;
  --sans:  'Inter Tight', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Subtle paper texture */
  background-image:
    radial-gradient(at 20% 10%, rgba(185,72,46,0.04) 0%, transparent 50%),
    radial-gradient(at 80% 80%, rgba(239,208,137,0.08) 0%, transparent 50%);
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* =========== NAV =========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(246, 241, 232, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.nav__brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-weight: 600; }
.nav__mark {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 50%;
  font-size: 14px;
  letter-spacing: 1px;
  font-family: var(--serif);
  font-weight: 500;
}
.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .01em;
}
.nav__links a { color: var(--ink-soft); }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  color: var(--accent) !important;
  font-weight: 500 !important;
}
.nav__toggle {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 0 auto;
}

/* =========== TYPOGRAPHY HELPERS =========== */
.eyebrow, .section__eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.eyebrow::before, .section__eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 2rem;
  max-width: 22ch;
}
.section__title--alt { max-width: none; }
.section__lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 3rem;
}

/* =========== BUTTONS =========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 0.95rem 1.6rem;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .005em;
  border-radius: 999px;
  transition: all .25s cubic-bezier(.2,.8,.2,1);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--primary {
  background: var(--ink);
  color: var(--bg) !important;
}
.btn--primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(185,72,46,0.18);
}
.btn--ghost {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--bg-alt);
}
.btn--full { width: 100%; }

/* =========== HERO =========== */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 100px; right: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  filter: blur(30px);
  opacity: .55;
  z-index: 0;
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 1rem 0 2rem;
  font-variation-settings: "opsz" 144;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  position: relative;
}
.hero__title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.05em;
  height: 0.32em;
  background: var(--highlight);
  z-index: -1;
  opacity: .6;
  transform: skewX(-5deg);
}
.hero__sub {
  font-size: clamp(1.05rem, 1.3vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 52ch;
  line-height: 1.65;
  margin: 0 0 2.5rem;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}
.hero__proof {
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: .01em;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.5rem;
  max-width: 60ch;
}
.hero__proof span {
  color: var(--ink);
  font-weight: 500;
}
.hero__proof span + span::before {
  content: ' · ';
  color: var(--ink-mute);
  font-weight: 400;
}

/* Portrait */
.portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  position: relative;
}
.portrait__frame {
  position: relative;
  width: 320px;
  max-width: 100%;
  aspect-ratio: 4/5;
  border-radius: 50% 50% 48% 52% / 55% 45% 55% 45%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-alt), var(--accent-soft));
  box-shadow:
    0 24px 50px -20px rgba(31,29,26,0.3),
    inset 0 0 0 1px rgba(31,29,26,0.06);
}
.portrait__frame::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 1px dashed var(--line);
  z-index: -1;
}
.portrait__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait__initials {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-family: var(--serif);
  font-size: 5rem;
  font-weight: 400;
  color: var(--accent-deep);
  letter-spacing: .05em;
}
.portrait__placeholder .portrait__initials { display: grid; }
.portrait__caption {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--bg);
  padding: .45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.portrait__dot {
  width: 7px; height: 7px;
  background: #2c8a4f;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(44,138,79,.15);
}

/* =========== LOGO STRIP =========== */
.logo-strip {
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
}
.logo-strip__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 2rem;
  text-align: center;
}
.logo-strip__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
}
.logo-strip__list li {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}
.logo-strip__list img {
  max-height: 38px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.65;
  filter: grayscale(100%);
  transition: opacity .25s, filter .25s;
}
.logo-strip__list li:hover img {
  opacity: 1;
  filter: grayscale(0%);
}
.logo-strip__fallback {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ink-soft);
  opacity: 0.75;
  transition: opacity .25s, color .25s;
}
.logo-strip__list li:hover .logo-strip__fallback {
  opacity: 1;
  color: var(--ink);
}

/* =========== SECTIONS =========== */
.section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  position: relative;
}
.section--approach {
  background: var(--bg-alt);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

/* APPROACH */
.approach__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.5fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 4rem;
  align-items: start;
}
.approach__intro {
  position: sticky;
  top: 100px;
}
.approach__intro p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.principles li {
  position: relative;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
}
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles__num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 400;
  font-style: italic;
}
.principles__body {
  min-width: 0;
}
.principles h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0 0 .5rem;
  letter-spacing: -.01em;
}
.principles p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}
.approach__outro {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  color: var(--ink);
  max-width: 65ch;
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  line-height: 1.55;
}

/* SERVICES */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.service {
  background: var(--bg);
  padding: 2.5rem;
  transition: background .3s;
}
.service:hover { background: var(--bg-alt); }
.service header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}
.service__num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 400;
}
.service h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0;
  letter-spacing: -.01em;
}
.service ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.service li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.55;
}
.service li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* ENGAGE — dark section */
.section--engage {
  background: var(--bg-deep);
  color: var(--bg);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section--engage .section__eyebrow { color: rgba(246,241,232,0.55); }
.section--engage .section__eyebrow::before { background: var(--highlight); }
.section--engage .section__title { color: var(--bg); }
.engage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.engage__card {
  background: rgba(246,241,232,0.04);
  border: 1px solid rgba(246,241,232,0.12);
  border-radius: 8px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  transition: transform .3s, box-shadow .3s, background .3s, border-color .3s;
  color: var(--bg);
}
.engage__card:hover {
  transform: translateY(-3px);
  background: rgba(246,241,232,0.08);
  border-color: rgba(246,241,232,0.25);
  box-shadow: 0 16px 32px -16px rgba(0,0,0,0.4);
}
.engage__card--featured {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.engage__card--featured:hover {
  background: var(--bg);
  border-color: var(--bg);
}
.engage__num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--highlight);
  font-size: 1rem;
  margin: 0;
}
.engage__card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -.01em;
  margin: 0;
  line-height: 1.2;
  color: var(--bg);
}
.engage__card p {
  margin: 0;
  font-size: .97rem;
  line-height: 1.6;
  color: rgba(246,241,232,0.78);
}
.engage__for { color: var(--bg) !important; }
.engage__card strong { color: var(--bg); }
.engage__time {
  margin-top: auto !important;
  padding-top: 1rem;
  border-top: 1px solid rgba(246,241,232,0.15);
  font-size: 13px !important;
  font-style: italic;
  color: rgba(246,241,232,0.55) !important;
}

/* Featured card overrides (must come after base .engage__card rules to win cascade) */
.engage__card--featured h3 { color: var(--ink); }
.engage__card--featured p { color: var(--ink-soft); }
.engage__card--featured strong { color: var(--ink); }
.engage__card--featured .engage__for { color: var(--ink) !important; }
.engage__card--featured .engage__num { color: var(--accent); }
.engage__card--featured .engage__time {
  color: var(--ink-mute) !important;
  border-top-color: var(--line-soft);
}

/* AUDIENCE */
.audience {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.audience__body p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}
.audience__close {
  font-family: var(--serif) !important;
  font-style: italic;
  font-size: 1.2rem !important;
  color: var(--ink) !important;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: 2rem !important;
}

/* TRACK RECORD — light section with logo cards */
.section--track {
  background: var(--bg-alt);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.track__item {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 2rem;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.track__item:hover {
  transform: translateY(-2px);
  border-color: var(--line);
  box-shadow: 0 12px 28px -16px rgba(31,29,26,0.18);
}
.track__head {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line-soft);
}
.track__logo {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.track__logo img {
  max-height: 100%;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.track__logo-fallback {
  display: none;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ink);
}
.track__logo--placeholder .track__logo-fallback {
  display: block;
}
.track__role {
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: .01em;
  text-transform: uppercase;
  font-weight: 500;
}
.track__item p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 0.97rem;
}

/* CONTACT */
.section--contact {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact__lede {
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.contact__direct {
  padding: 1.5rem;
  background: var(--bg-alt);
  border-radius: 8px;
  margin-bottom: 2rem;
}
.contact__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 .5rem;
}
.contact__email {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--accent) !important;
  letter-spacing: -.005em;
  word-break: break-all;
}
.contact__email:hover { color: var(--accent-deep) !important; text-decoration: underline; }
.contact__meta {
  display: flex;
  gap: 1.5rem;
  font-size: 14px;
  color: var(--ink-mute);
}
.contact__meta p { margin: 0; }
.contact__meta a { color: var(--ink-soft); }
.contact__meta a:hover { color: var(--accent); }

.contact__form {
  background: var(--bg-alt);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border: 1px solid var(--line-soft);
}
.field {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: .01em;
}
.field input, .field textarea {
  font-family: var(--sans);
  font-size: 15px;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(185,72,46,0.12);
}
.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__status {
  margin: 0;
  font-size: 14px;
  min-height: 1.4em;
}
.form__status--ok    { color: #2c8a4f; }
.form__status--err   { color: var(--accent-deep); }
.form__status--pending { color: var(--ink-mute); }

/* =========== FOOTER =========== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  padding: 3rem 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  text-align: center;
}
.footer__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0;
}
.footer__meta {
  display: flex;
  gap: 1rem;
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__meta a { color: var(--ink-soft); }
.footer__copy {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0;
}

/* =========== REVEAL ANIMATION =========== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========== RESPONSIVE =========== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .portrait__frame { width: 220px; }
  .approach__grid { grid-template-columns: 1fr; }
  .approach__intro { position: static; }
  .services { grid-template-columns: 1fr; }
  .engage { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; }
  .track { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line-soft);
    flex-direction: column;
    padding: 1.5rem var(--gutter);
    gap: 1.25rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: all .3s;
  }
  .nav__links--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .hero { padding-top: 110px; padding-bottom: 50px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  .logo-strip { padding: 2rem 0 2.5rem; }
  .logo-strip__list { gap: 1.5rem 2rem; justify-content: center; }
  .logo-strip__list img { max-height: 28px; max-width: 110px; }
}

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

::selection { background: var(--accent); color: var(--bg); }
