/* ============================================================
   David Harcus — personal site
   Dark forest near-black + warm honey gold, large serif display.
   No build step. Designed to be edited by hand if needed.
   ============================================================ */

:root {
  --bg:        #0b110e;
  --bg-deep:   #070a08;
  --surface:   #131a16;
  --surface-2: #1c2520;
  --line:      rgba(212, 168, 90, .18);
  --line-soft: rgba(245, 241, 232, .08);

  --honey:     #d4a85a;
  --honey-bright: #e6bf73;
  --honey-deep: #a87f3a;

  --text:        #f5f1e8;
  --text-mute:   #a9a395;
  --text-soft:   #7a7568;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --max:    1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- HEADER ---------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  background: linear-gradient(180deg, rgba(11,17,14,.92), rgba(11,17,14,.55) 80%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .25s ease;
}
.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.nav { display: flex; gap: 1.7rem; align-items: center; font-size: .88rem; letter-spacing: .04em; }
.nav a { color: var(--text-mute); transition: color .2s ease; }
.nav a:hover { color: var(--honey); }
.nav-cta {
  border: 1px solid var(--line);
  padding: .55rem 1rem;
  border-radius: 999px;
  color: var(--text) !important;
}
.nav-cta:hover {
  background: var(--honey);
  color: var(--bg) !important;
  border-color: var(--honey);
}
@media (max-width: 720px) {
  .nav a:not(.nav-cta) { display: none; }
}

/* ---------- HERO ------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 8rem var(--gutter) 4rem;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 80% 30%, rgba(212,168,90,.06), transparent 70%),
    radial-gradient(50% 70% at 10% 90%, rgba(212,168,90,.04), transparent 70%),
    var(--bg);
}
.hex-pattern {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='84' height='96' viewBox='0 0 84 96'><g fill='none' stroke='%23d4a85a' stroke-opacity='.07' stroke-width='1'><polygon points='42,2 80,24 80,72 42,94 4,72 4,24'/><polygon points='0,48 0,0 -42,24 -42,72 0,96 42,72'/><polygon points='84,48 84,0 42,24 42,72 84,96 126,72'/></g></svg>");
  background-size: 84px 96px;
  opacity: .65;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}
.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
}

.hero-portrait { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }
.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4/5;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(212,168,90,.08);
}
.portrait-frame::before {
  /* honey-coloured outer ribbon */
  content: '';
  position: absolute; inset: -1px;
  border-radius: 4px;
  padding: 1px;
  background: linear-gradient(160deg, var(--honey), transparent 40%, transparent 60%, var(--honey-deep));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: .55;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-caption {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-mute);
  font-size: .95rem;
  letter-spacing: .02em;
}

.eyebrow {
  text-transform: uppercase;
  font-size: .76rem;
  letter-spacing: .35em;
  color: var(--honey);
  margin: 0 0 1.2rem;
  font-weight: 500;
}
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: .95;
  margin: 0 0 1.5rem;
  letter-spacing: -.01em;
}
h1 .amp {
  display: block;
  color: var(--honey);
  font-style: italic;
  font-weight: 400;
}
.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.55;
  color: var(--text);
  max-width: 38ch;
  margin: 0 0 2.4rem;
  font-weight: 400;
}
.lede strong {
  font-weight: 500;
  color: var(--honey-bright);
  font-style: italic;
}

.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-size: .9rem; letter-spacing: .04em;
  font-weight: 500;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--honey);
  color: var(--bg-deep);
}
.btn-primary:hover { background: var(--honey-bright); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--honey); color: var(--honey); }

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-size: .7rem; letter-spacing: .5em; text-transform: uppercase;
  color: var(--text-soft);
}
.scroll-hint .line {
  width: 1px; height: 32px;
  background: linear-gradient(180deg, var(--honey), transparent);
  animation: drop 2.4s ease-in-out infinite;
}
@keyframes drop {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- SECTION SHELL --------------------------------- */
.section {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.section + .section { border-top: 1px solid var(--line-soft); }

.section-head {
  display: flex; align-items: baseline; gap: 1.2rem;
  margin-bottom: 3rem;
}
.section-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--honey);
  letter-spacing: .05em;
}
.section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
  letter-spacing: -.005em;
}

/* ---------- ABOUT ----------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: 880px;
}
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-lead {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 1rem;
  max-width: 36ch;
  font-style: italic;
}
.about-grid p {
  color: var(--text-mute);
  margin: 0;
}

/* ---------- VENTURES -------------------------------------- */
.section-ventures { padding-bottom: clamp(6rem, 10vw, 9rem); }
.venture {
  border-top: 1px solid var(--line-soft);
  padding: 2.4rem 0;
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: flex-start;
  transition: padding .3s ease;
}
.venture:last-of-type { border-bottom: 1px solid var(--line-soft); }
@media (max-width: 720px) {
  .venture { grid-template-columns: 1fr; gap: .8rem; padding: 2rem 0; }
}

.venture-meta {
  display: flex; flex-direction: column; gap: .35rem;
}
.venture-tag {
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .3em;
  color: var(--honey);
}
.venture-year {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-soft);
  font-size: .9rem;
}
.venture-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 .8rem;
  line-height: 1.1;
  letter-spacing: -.005em;
}
.venture-blurb {
  margin: 0 0 1rem;
  color: var(--text);
  max-width: 55ch;
}
.venture-points {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: .35rem;
  color: var(--text-mute);
  font-size: .92rem;
}
.venture-points li {
  position: relative; padding-left: 1.4rem;
}
.venture-points li::before {
  content: '';
  position: absolute; left: 0; top: .65em;
  width: .55rem; height: .55rem;
  background: var(--honey);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* ---------- PHILOSOPHY ------------------------------------ */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 820px) {
  .principles { grid-template-columns: 1fr; }
}
.principle {
  border-top: 1px solid var(--honey);
  border-image: linear-gradient(90deg, var(--honey), transparent) 1;
  padding-top: 1.2rem;
}
.principle-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--honey);
  letter-spacing: .05em;
  display: block;
  margin-bottom: .6rem;
}
.principle h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  margin: 0 0 .8rem;
  line-height: 1.2;
}
.principle p { margin: 0; color: var(--text-mute); font-size: .95rem; }

/* ---------- CONTACT --------------------------------------- */
.section-contact { padding-bottom: clamp(7rem, 12vw, 10rem); }
.contact-card {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    radial-gradient(60% 100% at 0% 0%, rgba(212,168,90,.08), transparent 70%),
    var(--surface);
  overflow: hidden;
  max-width: 780px;
}
.contact-card::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 220px; height: 220px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='84' height='96' viewBox='0 0 84 96'><polygon points='42,2 80,24 80,72 42,94 4,72 4,24' fill='none' stroke='%23d4a85a' stroke-opacity='.25' stroke-width='1'/></svg>");
  background-size: 84px 96px;
  opacity: .35;
  pointer-events: none;
}
.contact-lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 2rem;
  max-width: 40ch;
}
.contact-mail {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--honey);
  display: inline-block;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.contact-mail:hover { border-color: var(--honey); }
.contact-base {
  margin: 1.8rem 0 0;
  color: var(--text-soft);
  font-size: .95rem;
}

/* ---------- FOOTER ---------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 2rem var(--gutter);
  font-size: .82rem;
  color: var(--text-soft);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: .8rem;
}
.footer-companies { color: var(--text-mute); }

/* ---------- REVEAL ANIMATION ------------------------------ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint .line { animation: none; }
  html { scroll-behavior: auto; }
}
