/* Grow Brave Media — V1
   Palette drawn from the Grow Brave Brand System:
   Midnight Plum #2A1833 · Ink Navy #0D1022 · Forest Green #264C40
   Warm Ivory #F6F1E9 · Antique Gold #B79258 · Dusty Mauve #8B607D · Soft Teal #4FA7A0
*/

:root {
  --ink-navy: #0D1022;
  --plum: #2A1833;
  --forest: #264C40;
  --ivory: #F6F1E9;
  --gold: #B79258;
  --mauve: #8B607D;
  --teal: #4FA7A0;

  --bg: var(--ink-navy);
  --text: var(--ivory);
  --text-dim: rgba(246, 241, 233, 0.68);
  --line: rgba(183, 146, 88, 0.25);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1120px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* 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.5rem var(--gutter);
  background: linear-gradient(to bottom, rgba(13,16,34,0.85), rgba(13,16,34,0));
  backdrop-filter: blur(6px);
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.mark-text {
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--ivory);
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--teal);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(42,24,51,0.9) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(38,76,64,0.35) 0%, transparent 50%),
    var(--ink-navy);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.deco-circles {
  top: 8%;
  right: 6%;
  width: min(38vw, 400px);
  animation: slow-rotate 90s linear infinite;
}

@media (max-width: 900px) {
  .deco-circles {
    top: 4%;
    right: 2%;
    width: min(50vw, 320px);
  }
}

.deco-leaf {
  bottom: -40px;
  left: -20px;
  width: min(40vw, 220px);
  opacity: 0.8;
}

@keyframes slow-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 6rem;
  padding-bottom: 6rem;
  max-width: 760px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.25rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 1.05;
  margin: 0 0 1.75rem;
  color: var(--ivory);
}

/* Scroll-driven highlight sweep — a gradient text-clip whose stop position is
   driven by scroll progress (see --reveal, set in js/script.js). Starts fully
   ivory at the top of the page and sweeps to gold as the hero scrolls by. */
#hero-headline {
  --reveal: 0%;
  background-image: linear-gradient(
    100deg,
    var(--gold) 0%,
    var(--gold) var(--reveal),
    var(--ivory) var(--reveal),
    var(--ivory) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@supports not (background-clip: text) {
  #hero-headline {
    background: none;
    color: var(--ivory);
  }
}

.lede {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 300;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 0 1.1rem;
}

.lede-secondary {
  color: var(--text-dim);
}

/* Words that slide in from either side as the hero copy reveals */
.slide-in {
  display: inline-block;
  color: var(--ivory);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
  transition-delay: var(--sd, 0s);
}

.slide-left { transform: translateX(-36px); }
.slide-right { transform: translateX(36px); }

.hero-inner.in-view .slide-in {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .slide-in {
    transition: none;
    opacity: 1;
    transform: none;
  }
  #hero-headline {
    background-image: none;
    color: var(--ivory);
  }
}

/* Sections */
section {
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.work {
  border-top: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(38,76,64,0.08), transparent 40%);
}

.work h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.3;
  max-width: 780px;
  margin: 0 0 2.25rem;
  color: var(--ivory);
}

/* Project gallery — image-forward, minimal copy, room to grow.
   3-up grid; the grid just wraps as more work is added, no placeholder tile needed. */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 3rem;
}

.project-tile {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 30% 20%, rgba(183,146,88,0.10), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(79,167,160,0.10), transparent 55%),
    rgba(246,241,233,0.015);
  transition: transform 0.5s ease, border-color 0.5s ease;
}

.project-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(183, 146, 88, 0.55);
}

.project-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.project-visual svg {
  width: 55%;
  height: 55%;
  transition: transform 8s linear;
}

.project-tile:hover .project-visual svg {
  transform: rotate(8deg) scale(1.03);
}

.project-tile {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.project-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem 1rem 1rem;
  background: linear-gradient(to top, rgba(13,16,34,0.88) 15%, rgba(13,16,34,0.55) 55%, transparent);
}

.project-tag {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.35rem;
}

.project-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--ivory);
  margin: 0 0 0.2rem;
}

.project-caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--gold);
  margin: 0;
}

.project-desc {
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-dim);
  max-width: 32ch;
  margin: 0.5rem 0 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
}

.project-tile:hover .project-desc,
.project-tile:focus-visible .project-desc {
  max-height: 6rem;
  opacity: 1;
  margin-top: 0.6rem;
}

/* Keep the 3 tiles on one row down to a fairly narrow viewport — smaller
   tiles, not a second row, is the priority. */
@media (max-width: 640px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-desc {
    max-height: 6rem;
    opacity: 1;
  }
}

.supporting-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
  margin: 2rem 0 0;
}

.supporting-line-1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  color: var(--teal);
  opacity: 0.85;
}

.supporting-line-2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  line-height: 1.15;
  color: var(--gold);
  letter-spacing: 0.01em;
}

/* About */
.about {
  border-top: 1px solid var(--line);
}

.about-copy {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-family: var(--serif);
  font-weight: 300;
  max-width: 700px;
  color: var(--text-dim);
  margin: 0 0 1.75rem;
}

.about-copy em {
  color: var(--teal);
  font-style: italic;
}

/* Word map — an ambient, unattributed gathering of language, not a testimonials block */
.word-map {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
}

.word-map-eyebrow {
  text-align: center;
  display: block;
  margin: 0 auto 2rem;
}

.word-cloud {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.6rem 1.6rem;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
}

.word-cloud li {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  animation: word-drift 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.word-cloud li.sz-lg { font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--gold); }
.word-cloud li.sz-md { font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--teal); }
.word-cloud li.sz-sm { font-size: clamp(0.95rem, 1.4vw, 1.1rem); color: var(--text-dim); }

@keyframes word-drift {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(-7px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .word-cloud li { animation: none; opacity: 0.9; }
}

/* Inquiry */
.inquiry {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.inquiry-inner {
  text-align: center;
}

.inquiry-text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
}

.inquiry-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.25s ease;
}

.inquiry-link:hover,
.inquiry-link:focus-visible {
  color: var(--teal);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

.footer-mark {
  font-family: var(--serif);
  letter-spacing: 0.08em;
  font-size: 1rem;
  color: var(--ivory);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-email {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-email:hover,
.footer-email:focus-visible {
  color: var(--teal);
  border-color: var(--teal);
}

/* Deep footer — quiet orientation toward the wider Grow Brave ecosystem */
.ecosystem-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.ecosystem-line {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  opacity: 0.75;
  margin: 0 0 0.4rem;
}

.ecosystem-link {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

a.ecosystem-link:hover,
a.ecosystem-link:focus-visible {
  color: var(--teal);
  border-color: var(--teal);
}

.ecosystem-link.is-current {
  color: var(--gold);
}

.ecosystem-subline {
  font-size: 0.72rem;
  color: var(--text-dim);
  opacity: 0.55;
  margin: 0;
}

/* Social dock — fixed bottom-right, LinkedIn + online resume */
.social-dock {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.social-dock a {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(13, 16, 34, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.social-dock a svg {
  width: 18px;
  height: 18px;
}

.social-dock a:hover,
.social-dock a:focus-visible {
  color: var(--teal);
  border-color: rgba(79, 167, 160, 0.55);
  transform: translateY(-3px);
}

.social-dock a[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 52px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13, 16, 34, 0.92);
  border: 1px solid var(--line);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.6rem;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.social-dock a:hover::after,
.social-dock a:focus-visible::after {
  opacity: 1;
}

@media (max-width: 480px) {
  .social-dock {
    right: 1rem;
    bottom: 1rem;
    gap: 0.5rem;
  }
  .social-dock a {
    width: 36px;
    height: 36px;
  }
  .social-dock a svg {
    width: 15px;
    height: 15px;
  }
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .deco-circles { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 640px) {
  .site-nav { gap: 1.2rem; }
  .hero-inner { padding-top: 7rem; }
}
