/* ============================================================
   Frank Denbow — Personal Site
   Jamaica + Guyana palette | Basketball court background
   ============================================================ */

:root {
    /* Jamaica: green, gold, black | Guyana: green, gold, red, black */
    --jm-green:  #009b3a;
    --jm-gold:   #fed100;
    --gy-red:    #ce1126;
    --gy-green:  #009739;
    --ink:       #1a1a1a;
    --ink-soft:  #3a3a3a;
    --ink-muted: #5e6066;
    --gold-soft: #f5e6a3;
    --gold-bg:   #fdf8e8;
    --gold-bg-2: #faf3d4;
    --warm-200:  #e8dfc8;
    --warm-300:  #d4c9a8;
    --valid:     #009b3a;
    --btn-text:  #fdf8e8;
    --accent:    #009b3a;

    --ff-display: 'EB Garamond', Georgia, 'Times New Roman', serif;
    --ff-body:    'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    --ff-mono:    'SF Mono', 'Cascadia Code', 'JetBrains Mono', Menlo, monospace;

    --container: 960px;
    --gutter:    clamp(20px, 5vw, 48px);
    --section-v: clamp(28px, 4vw, 48px);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
    font-family: var(--ff-body);
    font-size: 17px; line-height: 1.65;
    color: var(--ink);
    background: var(--gold-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    animation: pageIn 0.4s ease forwards;
}
a { color: var(--ink); transition: color 0.2s ease; }
a:hover { color: var(--jm-green); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
strong { font-weight: 600; }

/* --- Focus --- */
:focus-visible {
    outline: 2px solid var(--jm-green);
    outline-offset: 3px; border-radius: 4px;
}
input:focus-visible, textarea:focus-visible { outline: none; }

/* --- Basketball court canvas --- */
#particles-bg {
    position: fixed; inset: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}

/* --- Navigation --- */
#site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
    display: flex; align-items: center; gap: 24px;
    padding: 0 var(--gutter); height: 52px;
    background: rgba(253,248,232,0.85); backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}
#site-nav.scrolled { box-shadow: 0 1px 10px rgba(0,0,0,0.06); }
.nav-name {
    font-family: var(--ff-display); font-size: 18px; font-weight: 600;
    text-decoration: none; margin-right: auto; letter-spacing: -0.01em;
    color: var(--ink);
}
.nav-links { display: flex; gap: 20px; }
.nav-links a {
    font-size: 12px; font-weight: 600; text-decoration: none;
    color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.8px;
    position: relative; padding: 16px 0; min-height: 44px;
    display: inline-flex; align-items: center;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--jm-green), var(--jm-gold));
    transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-mobile-btn {
    display: none; flex-direction: column; gap: 4px;
    background: none; border: none; cursor: pointer; padding: 8px 4px;
}
.nav-mobile-btn span {
    display: block; width: 20px; height: 2px;
    background: var(--ink); border-radius: 1px;
}

.mobile-menu {
    position: fixed; inset: 0; z-index: 899;
    background: rgba(253,248,232,0.97); backdrop-filter: blur(20px);
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 24px;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
    font-family: var(--ff-display); font-size: 28px; text-decoration: none;
    color: var(--ink); font-weight: 500;
    padding: 8px 16px; min-height: 44px;
    display: inline-flex; align-items: center;
}

/* --- Hero --- */
.hero {
    position: relative; z-index: 1;
    display: flex; align-items: center;
    padding: 80px var(--gutter) 24px;
    overflow: hidden;
}
.hero-inner {
    max-width: var(--container); width: 100%;
    position: relative; z-index: 2;
}
.hero-profile { margin-bottom: 16px; }
.hero-photo {
    width: 100px; height: 100px; border-radius: 50%;
    border: 3px solid var(--jm-gold);
    object-fit: cover;
    opacity: 0; transform: scale(0.85);
    animation: heroFadeIn 0.7s var(--ease-out) 0.1s forwards;
    box-shadow: 0 0 0 0 rgba(0,155,58,0);
}
.hero-photo:hover {
    animation: heroFadeIn 0.7s var(--ease-out) 0.1s forwards, photoRing 2.5s ease-in-out infinite;
}
.hero-title {
    font-family: var(--ff-display); font-weight: 500;
    font-size: clamp(40px, 8vw, 76px); line-height: 1.05;
    letter-spacing: -0.02em; margin-bottom: 8px;
    opacity: 0; transform: translateY(20px);
    animation: heroFadeIn 0.8s var(--ease-out) 0.2s forwards;
}
.hero-title-line { display: inline-block; cursor: default; }
.hero-subtitle {
    font-family: var(--ff-display); font-style: italic;
    font-size: clamp(17px, 2.5vw, 22px); color: var(--ink-soft);
    margin-bottom: 16px;
    opacity: 0; animation: heroFadeIn 0.8s var(--ease-out) 0.35s forwards;
}
.hero-intro {
    max-width: 540px; color: var(--ink-soft); font-size: 16px;
    margin-bottom: 16px;
    opacity: 0; animation: heroFadeIn 0.8s var(--ease-out) 0.45s forwards;
}
.hero-intro a {
    font-weight: 600; text-decoration: underline;
    text-decoration-color: var(--warm-300); text-underline-offset: 3px;
}
.hero-intro a:hover { text-decoration-color: var(--jm-green); }

.hero-goal {
    display: flex; align-items: baseline; gap: 10px;
    font-family: var(--ff-display); font-size: 16px; font-weight: 500;
    color: var(--ink); margin-bottom: 24px; max-width: 500px;
    opacity: 0; animation: heroFadeIn 0.8s var(--ease-out) 0.55s forwards;
}
.goal-marker {
    flex-shrink: 0; width: 8px; height: 8px;
    background: var(--jm-gold); border-radius: 50%;
    animation: goalPulse 2s ease-in-out infinite;
}
@keyframes goalPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(254,209,0,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(254,209,0,0); }
}

.hero-actions {
    display: flex; gap: 10px; flex-wrap: wrap;
    opacity: 0; animation: heroFadeIn 0.8s var(--ease-out) 0.65s forwards;
}

/* Decorative court lines (CSS) */
.hero-court-lines {
    position: absolute; inset: 0; z-index: 0;
    pointer-events: none; overflow: hidden;
}
.court-center-circle {
    position: absolute; top: 50%; right: -40px;
    width: 240px; height: 240px;
    border: 2px solid rgba(0,155,58,0.1);
    border-radius: 50%; transform: translateY(-50%);
    animation: courtPulse 6s ease-in-out infinite;
}
.court-half-line {
    position: absolute; top: 0; bottom: 0;
    right: 80px; width: 2px;
    background: rgba(0,155,58,0.06);
}

/* Buttons */
.btn-play {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 26px; border-radius: 8px;
    font-family: var(--ff-body); font-size: 14px; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer;
    background: var(--jm-green); color: var(--btn-text);
    box-shadow: 0 2px 12px rgba(0,155,58,0.2);
    transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s var(--ease-bounce);
    position: relative; overflow: hidden;
}
.btn-play::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0; transition: opacity 0.3s ease;
}
.btn-play:hover { color: var(--btn-text); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,155,58,0.25); }
.btn-play:hover::after { opacity: 1; }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 26px; border-radius: 8px;
    font-family: var(--ff-body); font-size: 14px; font-weight: 600;
    text-decoration: none; cursor: pointer;
    background: transparent; color: var(--ink);
    border: 1.5px solid var(--warm-300);
    transition: transform 0.3s var(--ease-bounce), border-color 0.3s ease;
}
.btn-ghost:hover { border-color: var(--jm-green); color: var(--ink); }

@keyframes heroFadeIn { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes photoRing {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,155,58,0.15); }
    50% { box-shadow: 0 0 0 10px rgba(0,155,58,0); }
}
@keyframes courtPulse {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 1; }
    50% { transform: translateY(-50%) scale(1.04); opacity: 0.5; }
}

/* --- Sections --- */
.section {
    position: relative; z-index: 1;
    padding: var(--section-v) var(--gutter);
}
.section--warm { background: var(--gold-bg-2); }

.section-inner { max-width: var(--container); margin: 0 auto; }
.section-inner--wide { max-width: 860px; }

.section-label, h2.section-label {
    font-family: var(--ff-mono); font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--ink-muted); margin-bottom: 20px;
    padding-left: 20px; position: relative;
    transition: opacity 0.6s var(--ease-out);
}
.section-label::before {
    content: ''; position: absolute; left: 0; top: 50%;
    width: 12px; height: 2px;
    background: linear-gradient(90deg, var(--jm-green), var(--jm-gold));
    transform: translateY(-50%);
    transition: width 0.5s var(--ease-out) 0.2s;
}
.section-label.animate-in::before { width: 12px; }

/* --- Narrative --- */
.narrative p {
    font-size: 17px; line-height: 1.7;
    color: var(--ink-soft); margin-bottom: 16px;
}
.narrative p a {
    font-weight: 600; text-decoration: underline;
    text-decoration-color: var(--warm-300); text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}
.narrative p a:hover { text-decoration-color: var(--jm-green); }

.narrative p.narrative-lede {
    font-family: var(--ff-display);
    font-size: 21px; line-height: 1.55;
    color: var(--ink); font-weight: 400;
}

.narrative-img {
    margin: 20px 0; border-radius: 6px; overflow: hidden;
    transition: transform 0.4s var(--ease-out);
}
.narrative-img:hover { transform: translateY(-3px); }
.narrative-img img {
    width: 100%; height: auto; display: block; border-radius: 6px;
    background: var(--warm-200);
    transition: transform 0.6s var(--ease-out);
}
.narrative-img:hover img { transform: scale(1.015); }

/* --- Philosophy --- */
.section--philosophy {
    background: var(--ink);
    color: var(--gold-bg);
    text-align: center;
    padding: clamp(40px, 6vw, 72px) var(--gutter);
    position: relative; overflow: hidden;
}
.section--philosophy::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(0,155,58,0.06) 0%, transparent 60%),
        linear-gradient(90deg, rgba(254,209,0,0.03) 0%, transparent 30%, transparent 70%, rgba(206,17,38,0.03) 100%);
    pointer-events: none;
}
.philosophy-quote {
    font-family: var(--ff-display); font-size: clamp(19px, 3vw, 26px);
    line-height: 1.55; font-weight: 400; font-style: italic;
    max-width: 640px; margin: 0 auto 24px;
    color: rgba(253,248,232,0.85);
    position: relative;
}
.philosophy-quote::before {
    content: '\201C'; position: absolute;
    top: -16px; left: -8px;
    font-family: var(--ff-display); font-size: 60px;
    color: rgba(254,209,0,0.12); line-height: 1;
    pointer-events: none;
}
.support-note {
    font-size: 15px; color: rgba(253,248,232,0.5); margin-top: 20px; margin-bottom: 10px;
}
.support-note a { font-weight: 600; color: var(--jm-gold); }
.section--philosophy .narrative-img { margin: 20px auto; max-width: 500px; }
.section--philosophy .narrative-img img { aspect-ratio: auto; }

/* --- Press --- */
.press-list { display: flex; flex-direction: column; }
.press-item {
    display: flex; align-items: baseline; gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--warm-200);
}
.press-item:first-child { border-top: 1px solid var(--warm-200); }
.press-outlet {
    flex-shrink: 0; width: 150px;
    font-family: var(--ff-mono); font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.8px;
    color: var(--ink-muted);
}
.press-item a {
    font-family: var(--ff-display); font-size: 17px; font-weight: 500;
    text-decoration: none; transition: color 0.2s ease;
}
.press-item a:hover { color: var(--jm-green); }

/* --- Page Header --- */
.page-header { padding: 80px var(--gutter) 16px; }
.page-title {
    font-family: var(--ff-display); font-weight: 500;
    font-size: clamp(34px, 7vw, 56px); line-height: 1.1;
    letter-spacing: -0.02em; margin-bottom: 10px;
}
.page-intro {
    font-size: 16px; color: var(--ink-soft); max-width: 540px; line-height: 1.65;
}
.page-intro a { font-weight: 600; }

/* --- Investment Grid --- */
.investment-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.investment-card {
    display: block; text-decoration: none; color: var(--ink);
    padding: 20px; border-radius: 8px;
    border: 1px solid var(--warm-200);
    background: rgba(255,255,255,0.4);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s ease;
}
.investment-card:hover {
    border-color: rgba(0,155,58,0.25); color: var(--ink);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.05);
}
.investment-card h3 {
    font-family: var(--ff-display); font-size: 18px; font-weight: 500;
    margin-bottom: 4px;
}
.investment-card p { font-size: 13px; color: var(--ink-muted); line-height: 1.5; }
.investing-more { margin-top: 24px; font-size: 14px; color: var(--ink-muted); }
.investing-more a { font-weight: 600; }

/* --- Track List --- */
.track-list { display: flex; flex-direction: column; }
.track-item {
    display: flex; align-items: center; gap: 20px;
    padding: 20px 0; text-decoration: none; color: var(--ink);
    border-bottom: 1px solid var(--warm-200);
    transition: background 0.2s ease, padding-left 0.2s ease;
}
.track-item:first-child { border-top: 1px solid var(--warm-200); }
.track-item:hover { background: rgba(255,255,255,0.4); padding-left: 12px; }
.track-number {
    font-family: var(--ff-mono); font-size: 13px; font-weight: 600;
    color: var(--ink-muted); flex-shrink: 0; width: 28px;
}
.track-info { flex: 1; }
.track-info h3 { font-family: var(--ff-display); font-size: 21px; font-weight: 500; margin-bottom: 2px; }
.track-info p { font-size: 13px; color: var(--ink-muted); }
.track-link {
    font-size: 13px; font-weight: 600; color: var(--jm-green);
    flex-shrink: 0; opacity: 0; transition: opacity 0.2s ease;
}
.track-item:hover .track-link { opacity: 1; }

/* --- Goals --- */
.goals-list { display: flex; flex-direction: column; gap: 32px; }
.goal-year h2 {
    font-family: var(--ff-display); font-size: 30px; font-weight: 500;
    margin-bottom: 8px; color: var(--ink);
}
.goal-year ul { padding-left: 0; }
.goal-year ul li {
    font-size: 16px; color: var(--ink-soft);
    padding: 6px 0 6px 20px; position: relative;
}
.goal-year ul li::before {
    content: ''; position: absolute; left: 0; top: 14px;
    width: 8px; height: 8px; border-radius: 50%;
    border: 2px solid var(--jm-gold); background: transparent;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-bounce);
}
.goal-year ul li:hover::before {
    background: var(--jm-green); border-color: var(--jm-green); transform: scale(1.3);
}
.goal-year ul li a { font-weight: 600; }
.goal-detail { font-size: 13px; color: var(--ink-muted); margin-top: 4px; line-height: 1.6; }

/* --- Nicknames --- */
.nicknames {
    font-family: var(--ff-display); font-size: 19px;
    line-height: 1.7; color: var(--ink-soft); font-style: italic;
}

/* --- Contact --- */
.contact-lede {
    font-family: var(--ff-display); font-size: 21px;
    line-height: 1.5; margin-bottom: 24px; max-width: 460px;
}
.contact-form { margin-bottom: 32px; }
.form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin-bottom: 12px;
}
.form-group { display: flex; flex-direction: column; }
.form-group label {
    font-family: var(--ff-mono); font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.8px;
    color: var(--ink-muted); margin-bottom: 5px;
}
.form-group input, .form-group textarea {
    font-family: var(--ff-body); font-size: 16px;
    padding: 10px 14px; border-radius: 8px;
    border: 1.5px solid var(--warm-200);
    background: rgba(255,255,255,0.5);
    color: var(--ink); outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--ink-muted); opacity: 0.5;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--jm-green);
    box-shadow: 0 0 0 3px rgba(0,155,58,0.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.contact-form .form-group:last-of-type { margin-bottom: 16px; }

.required-mark { color: var(--gy-red); }
.form-error { font-size: 12px; color: var(--gy-red); margin-top: 3px; min-height: 16px; display: block; }
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) { border-color: var(--gy-red); }
.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) { border-color: var(--valid); }

.contact-links-row { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-links-row a {
    font-size: 13px; font-weight: 500; text-decoration: none;
    color: var(--ink-muted); padding: 7px 16px;
    border: 1px solid var(--warm-200); border-radius: 100px;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.contact-links-row a:hover {
    color: var(--ink); border-color: var(--jm-green);
    background: rgba(0,155,58,0.04);
}

/* --- Footer --- */
.site-footer {
    position: relative; z-index: 1;
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px var(--gutter);
    border-top: 1px solid var(--warm-200);
    font-size: 12px; color: var(--ink-muted);
}
.footer-motto {
    font-family: var(--ff-display); font-weight: 500;
    font-style: italic; color: var(--ink-muted);
}

/* --- Scroll reveal --- */
.reveal-up {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-up.visible { opacity: 1; transform: none; }

/* --- Hero letter animation --- */
.hero-letter {
    display: inline-block;
    opacity: 0; transform: translateY(24px);
    animation: letterIn 0.5s var(--ease-out) forwards;
    transition: transform 0.3s var(--ease-bounce), color 0.2s ease;
    cursor: default;
}
@keyframes letterIn { to { opacity: 1; transform: translateY(0); } }

/* --- Floating shapes --- */
@keyframes shapeFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(12px, -16px) rotate(4deg); }
    50% { transform: translate(-8px, -28px) rotate(-2deg); }
    75% { transform: translate(16px, -12px) rotate(3deg); }
}

/* --- Smooth page load --- */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-photo, .hero-title, .hero-subtitle, .hero-intro,
    .hero-goal, .hero-actions { opacity: 1; transform: none; }
    .hero-letter { opacity: 1; transform: none; }
    .reveal-up { opacity: 1; transform: none; }
    #particles-bg { display: none; }
    .floating-shape { display: none; }
}

/* --- Responsive --- */
@media (max-width: 860px) { .form-row { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
    .nav-links { display: none; }
    .nav-mobile-btn { display: flex; }
    .court-center-circle, .court-half-line { display: none; }
}
@media (hover: none) { .track-link { opacity: 0.5; } }
@media (max-width: 600px) {
    .press-item { flex-direction: column; gap: 3px; }
    .press-outlet { width: auto; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 16px; }
    .narrative p.narrative-lede { font-size: 18px; }
    .hero-actions { flex-direction: column; }
    .btn-play, .btn-ghost { text-align: center; justify-content: center; }
}
