/* danielkaufman.info — base styles */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #1b1d1f;
  --ink-soft: #4a4e53;
  --paper: #faf9f6;
  --paper-alt: #f0ede6;
  --line: #dedad0;
  --accent: #7a5c2e;
  --dark-bg: #16130f;
  --dark-line: rgba(255,255,255,0.14);
  --max-width: 1040px;
  --max-width-wide: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav — fixed, transparent over cinematic heroes, solidifies on scroll */
.site-header {
  border-bottom: 1px solid transparent;
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
  transition: padding 0.35s ease;
}

.site-header.scrolled {
  background: rgba(250, 249, 246, 0.96);
  border-bottom-color: var(--line);
  backdrop-filter: blur(6px);
}

.site-header.scrolled .wrap {
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
  transition: color 0.35s ease;
}
.brand:hover { text-decoration: none; }

.site-header.scrolled .brand { color: var(--ink); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255,255,255,0.88);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.35s ease;
}

.nav-links a.active,
.nav-links a:hover {
  color: #fff;
}

.site-header.scrolled .nav-links a { color: var(--ink-soft); }
.site-header.scrolled .nav-links a.active,
.site-header.scrolled .nav-links a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.site-header.scrolled .nav-toggle { color: var(--ink); border-color: var(--line); }

/* Cinematic hero */
.hero-cinematic {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-cinematic.hero-short { min-height: 58vh; }

.hero-cinematic .hero-media-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-cinematic::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10,9,7,0.35) 0%, rgba(10,9,7,0.05) 32%, rgba(10,9,7,0.15) 55%, rgba(10,9,7,0.82) 100%);
}

.hero-cinematic .hero-copy {
  width: 100%;
  padding-bottom: 76px;
  padding-top: 140px;
}

.hero-cinematic .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: #fff;
  opacity: 0.9;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-cinematic .eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,0.7);
}

.hero-cinematic h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.6vw, 4.4rem);
  max-width: 880px;
}

.hero-cinematic .hero-subhead {
  color: rgba(255,255,255,0.88);
  font-size: 1.16rem;
  max-width: 600px;
}

.hero-cinematic .hero-cta {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Section eyebrow label (numbered, editorial) */
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.section-label .num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.section-label .rule {
  flex: 0 0 40px;
  height: 1px;
  background: var(--line);
}

.section-label .label-text {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* Dark section variant */
.section-dark {
  background: var(--dark-bg);
  color: #f4f1ea;
}

.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(244,241,234,0.76); }
.section-dark a:not(.btn):not(.btn-outline) { color: #e9c893; }
.section-dark .section-label .rule { background: var(--dark-line); }
.section-dark .section-label .label-text { color: rgba(244,241,234,0.62); }
.section-dark.section + .section-dark.section { border-top-color: var(--dark-line); }
.section-dark + .section { border-top: none; }
.section + .section-dark { border-top: none; }

/* Split media (image + copy) */
.split-media {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.split-media.media-right { grid-template-columns: 0.95fr 1.05fr; }
.split-media.media-right .media-frame { order: 2; }

.split-media .media-frame {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-alt);
}

.split-media .media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Big stat row */
.stat-row-big {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 8px 0 4px;
}

.stat-row-big .stat-big-num {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 600;
  color: var(--ink);
}

.section-dark .stat-row-big .stat-big-num { color: #fff; }

.stat-row-big .stat-big-label {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

.section-dark .stat-row-big .stat-big-label { color: rgba(244,241,234,0.62); }

.section-dark .record-list li,
.section-dark .record-list li strong { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 2px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: #5f4823; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.55);
  color: #fff !important;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.9); }

/* Full-bleed CTA band */
.cta-full {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.cta-full .hero-media-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.cta-full::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(12,10,8,0.58);
}

.cta-full .cta-inner {
  max-width: 620px;
  padding: 64px 24px;
}

.cta-full h2 { color: #fff; }
.cta-full p { color: rgba(255,255,255,0.86); }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: none; }

/* Page header (non-hero fallback, kept for safety) */
.page-header {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
}

/* Venture card (for projects without photography yet) */
.venture-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  background: var(--paper);
}

.section-dark .venture-card {
  background: rgba(255,255,255,0.04);
  border-color: var(--dark-line);
}

.venture-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin: 22px 0 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.section-dark .venture-stats { border-top-color: var(--dark-line); }

.venture-stats .v-stat-num {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
}
.section-dark .venture-stats .v-stat-num { color: #fff; }

.venture-stats .v-stat-label {
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin-top: 4px;
}
.section-dark .venture-stats .v-stat-label { color: rgba(244,241,234,0.62); }

/* Photo strip (process/progress shots) */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 26px 0 4px;
}
.photo-strip .strip-frame {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-alt);
}
.photo-strip .strip-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 620px) {
  .photo-strip { grid-template-columns: 1fr 1fr; }
}

/* Steve chat widget */
.steve-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}
.steve-launcher:hover { transform: translateY(-2px); background: #5f4823; }
.steve-launcher svg { width: 25px; height: 25px; fill: #fff; }

.steve-panel {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 100;
  width: 350px;
  max-width: calc(100vw - 44px);
  height: 470px;
  max-height: calc(100vh - 140px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.32);
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.steve-panel.open { display: flex; }

.steve-head {
  background: var(--dark-bg);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
}
.steve-head-title { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1rem; }
.steve-head-sub { font-size: 0.72rem; color: rgba(244,241,234,0.65); margin-top: 2px; }
.steve-close {
  background: none; border: none; color: #fff; opacity: 0.7; cursor: pointer;
  font-size: 1.3rem; line-height: 1; padding: 4px 6px;
}
.steve-close:hover { opacity: 1; }

.steve-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper);
}

.steve-msg {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 0.89rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.steve-msg.assistant { align-self: flex-start; background: var(--paper-alt); color: var(--ink); border-bottom-left-radius: 3px; }
.steve-msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 3px; }
.steve-typing { align-self: flex-start; font-size: 0.82rem; color: var(--ink-soft); font-style: italic; padding: 0 4px; }

.steve-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  flex: 0 0 auto;
}
.steve-input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  color: var(--ink);
  background: var(--paper);
}
.steve-input:focus { border-color: var(--accent); }
.steve-send {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 0 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.steve-send:hover { background: #5f4823; }
.steve-send:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 480px) {
  .steve-panel { right: 12px; left: 12px; width: auto; bottom: 84px; }
  .steve-launcher { right: 16px; bottom: 16px; }
}

/* Sections */
.section {
  padding: 56px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-alt {
  background: var(--paper-alt);
}

/* Portrait */
.portrait {
  margin: 40px 0;
  border: 1px solid var(--line);
  background: var(--paper-alt);
  border-radius: 4px;
  aspect-ratio: 4 / 5;
  max-width: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portrait .placeholder-note {
  padding: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Track record list */
.record-list {
  list-style: none;
  margin: 0 0 2em;
  padding: 0;
  display: grid;
  gap: 14px;
}

.record-list li {
  padding: 16px 20px;
  background: var(--paper-alt);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  font-size: 1.02rem;
}

/* Focus body */
.lede {
  font-size: 1.08rem;
  max-width: 720px;
}

/* Contact */
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 24px;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  background: var(--paper-alt);
}

.contact-card dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin-top: 16px;
}

.contact-card dt:first-child { margin-top: 0; }

.contact-card dd {
  margin: 4px 0 0;
  color: var(--ink);
}

.address-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}

.placeholder-flag {
  color: #a13a2a;
  font-weight: 600;
}

/* Blog feed */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0 8px;
}

.blog-card {
  display: block;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
}

.blog-card:hover { text-decoration: none; border-color: var(--accent); }

.blog-card time {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.blog-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.3;
  color: var(--ink);
}

.blog-more { font-size: 0.92rem; font-weight: 600; margin-top: 4px; }

.follow-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin: 24px 0 0;
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.social-icons a:hover {
  color: var(--paper);
  background: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.social-icons svg { width: 16px; height: 16px; fill: currentColor; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
  padding: 36px 0 48px;
  margin-top: 40px;
}

.site-footer p {
  font-size: 0.82rem;
  color: var(--ink-soft);
  max-width: 760px;
  margin-bottom: 0.6em;
}

/* Responsive */
@media (max-width: 900px) {
  .split-media,
  .split-media.media-right { grid-template-columns: 1fr; gap: 28px; }
  .split-media .media-frame { order: -1 !important; aspect-ratio: 16/10; }
  .stat-row-big { grid-template-columns: 1fr 1fr; row-gap: 22px; }
}

@media (max-width: 720px) {
  .nav-links { gap: 18px; }
  .contact-block { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .blog-grid { grid-template-columns: 1fr; }
  .hero-cinematic { min-height: 82vh; }
  .hero-cinematic.hero-short { min-height: 48vh; }
  .hero-cinematic .hero-copy { padding-top: 110px; padding-bottom: 48px; }
}

@media (max-width: 560px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px 24px;
    gap: 14px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links.open a { color: var(--ink-soft) !important; }
  .nav-links.open a.active,
  .nav-links.open a:hover { color: var(--ink) !important; }
  .nav-toggle {
    display: inline-flex;
    background: none;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.9rem;
    cursor: pointer;
  }
}
