/* home.css — page-specific styles. Shared foundation lives in base.css,
   which must be loaded BEFORE this file. */

#story, #contact { scroll-margin-top: 100px; }

  /* ---------- HERO ---------- */
  .hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 90px;
    padding-bottom: 40px;
    position: relative;
  }
  .hero .grid {
    display: grid;
    grid-template-columns: 0.62fr 1.38fr;
    gap: 72px;
    align-items: center;
  }
  @media (max-width: 720px) {
    .hero .grid { grid-template-columns: 1fr; }
  }
  .hero h1 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 3.6vw, 50px);
    line-height: 1.18;
    letter-spacing: -0.005em;
  }
  /* the small hand-drawn arrow that points at "growth hacker".
     Absolutely positioned inside the <em>, so it must never affect layout. */
  .doodle-arrow {
    position: absolute;
    top: -36px;
    left: -16px;
    width: 36px;
    height: 36px;
    color: var(--ink);
    opacity: 0.4;
    transform: rotate(35deg);
    pointer-events: none;
    z-index: 0;
  }
  .doodle-arrow svg {
    width: 100%;
    height: 100%;
    animation: float-arrow 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }
  @keyframes float-arrow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(6px, 6px) scale(1.15); }
  }
  @media (max-width: 720px) {
    .doodle-arrow { display: none; }
  }

  .hero h1 em { 
    font-style: italic; 
    color: var(--blue); 
    font-weight: 600; 
    position: relative; 
    white-space: nowrap;
  }
  @keyframes float-arrow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(6px, 6px) scale(1.15); }
  }
  .hero .photo-frame { max-width: 340px; margin: 0 auto; }
  .event .photo-frame { max-width: 320px; }
  .card .photo-frame { max-width: 260px; }
  .event.reverse .photo-frame { margin-left: auto; }
  .event.reverse .photo-frame .inset { right: auto; left: -26px; transform: rotate(-3deg); }

  @media (max-width: 720px) {
    .hero .photo-frame, .event .photo-frame { max-width: 220px; margin: 0 auto; }
    .card .photo-frame { max-width: 190px; margin: 0 auto; }
    .event.reverse .photo-frame .inset { right: auto; left: -10px; }
  }

  /* ---------- hero facts bar (pills) ---------- */
  .hero .facts {
    margin-top: 48px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  .hero .facts .row-break {
    flex-basis: 100%;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .hero .facts span {
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding: 8px 18px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
    transition: border-color 0.3s, background 0.3s, transform 0.3s;
  }
  .hero .facts span:hover {
    border-color: var(--blue);
    background: rgba(0,98,65,0.06);
    transform: translateY(-2px);
  }
  .hero .facts span b { color: var(--blue); font-weight: 600; }

  /* ---------- circular portrait accent ---------- */
  .statement-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--bg);
    box-shadow: 0 12px 28px rgba(20,30,50,0.18), 0 0 0 1px rgba(0,98,65,0.15);
    transform: rotate(-3deg);
  }
  .statement-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

  /* ---------- scroll hint ---------- */
  .scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: scrollHintFade 1.6s ease-in-out 1.5s both;
  }
  .scroll-hint span {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
    opacity: 0.6;
  }
  .scroll-hint .chevron {
    width: 20px;
    height: 20px;
    border-right: 1.5px solid var(--ink-soft);
    border-bottom: 1.5px solid var(--ink-soft);
    transform: rotate(45deg);
    opacity: 0.4;
    animation: chevronBounce 2s ease-in-out infinite;
  }
  @keyframes scrollHintFade {
    from { opacity: 0; transform: translateX(-50%) translateY(12px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
  }
  @keyframes chevronBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50%      { transform: rotate(45deg) translateY(6px); }
  }
  @media (max-width: 640px) { .scroll-hint { display: none; }
  }

  /* ---------- EVENTS (standard two-column) ---------- */
  .event {
    padding: 140px 0;
  }
  .event .event-grid {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 80px;
    align-items: center;
  }
  .event.reverse .event-grid { grid-template-columns: 1.22fr 0.78fr; }
  .event.reverse .event-img { order: 2; }
  .event.reverse .event-text { order: 1; }
  .kicker-line {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: var(--blue);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
  }
  .event-text h3 {
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.4;
    max-width: 26ch;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    margin-bottom: 20px;
  }
  .event-text p.note {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--ink-soft);
    max-width: 42ch;
    line-height: 1.8;
  }
  @media (max-width: 720px) {
    .event { padding: 70px 0; }
    .event .event-grid,
    .event.reverse .event-grid {
      grid-template-columns: 1fr;
      gap: 28px;
    }
    .event.reverse .event-img { order: 1; }
    .event.reverse .event-text { order: 2; }
  }

  /* ---------- CINEMATIC EVENT (full-width parallax break) ---------- */
  .cinematic {
    position: relative;
    min-height: 80svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .cinematic-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .cinematic-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.32) contrast(1.1) saturate(0.7);
    transform: scale(1.1);
    transition: transform 8s ease-out;
  }
  .cinematic.is-visible .cinematic-bg img {
    transform: scale(1.0);
  }
  .cinematic-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22,24,27,0.4) 0%, rgba(22,24,27,0.75) 100%);
    z-index: 1;
  }
  .cinematic-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--bg);
    padding: 80px 48px;
    max-width: 680px;
  }
  .cinematic-content .kicker-line {
    color: rgba(250,248,243,0.6);
    margin-bottom: 28px;
  }
  .cinematic-content h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.3;
    margin-bottom: 24px;
    color: #fff;
  }
  .cinematic-content p.note {
    font-size: 16px;
    color: rgba(250,248,243,0.75);
    line-height: 1.8;
    max-width: 42ch;
    margin: 0 auto;
  }
  @media (max-width: 640px) {
    .cinematic-content { padding: 60px 24px; }
  }

  /* ---------- QUOTE ---------- */
  .statement {
    min-height: 60svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 32px;
    padding: 100px 32px;
    position: relative;
    overflow: hidden;
  }
  /* noise/grain overlay */
  .statement::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 0;
  }
  /* decorative quotation mark */
  .statement::after {
    content: '\201C';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-family: 'Nunito', sans-serif;
    font-size: clamp(200px, 30vw, 400px);
    font-weight: 900;
    color: var(--blue);
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
    line-height: 1;
  }
  .statement blockquote {
    font-family: 'Nunito', sans-serif;
    font-style: italic;
    font-weight: 600;
    font-size: clamp(18px, 2.6vw, 28px);
    line-height: 1.38;
    max-width: 28ch;
    position: relative;
    z-index: 1;
  }
  .statement blockquote b { font-weight: 700; font-style: normal; color: var(--blue); }
  .statement-note {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--ink-soft);
    max-width: 46ch;
    line-height: 1.75;
    position: relative;
    z-index: 1;
  }

  /* ---------- OFF THE CLOCK (full bleed blue, solid bg to cover dot grid) ---------- */
  .clock {
    background-color: var(--blue);
    color: var(--bg);
    padding: 140px 0;
  }
  .clock .head {
    margin-bottom: 20px;
  }
  .clock h2 {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(34px, 5.6vw, 56px);
  }
  .clock .subhead {
    color: rgba(250,248,243,0.82);
    font-size: 16px;
    margin-top: 12px;
    letter-spacing: 0.02em;
  }
  .cards {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
  }
  .card {
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(.16,1,.3,1);
  }
  @media (hover: hover) and (pointer: fine) {
    .card:hover { transform: translateY(-6px); }
    .card:hover .photo-frame { transform: translateY(-2px); filter: brightness(1.04); }
  }
  .card p.cap {
    font-size: 14px;
    color: rgba(250,248,243,0.75);
    line-height: 1.7;
  }
  .card p.cap b { color: var(--bg); font-weight: 600; }
  .clock .photo-frame::before {
    background: var(--blue-deep);
  }
  @media (max-width: 780px) {
    .cards { grid-template-columns: 1fr; gap: 48px; }
  }

  .status {
    margin-top: 26px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
  .status .pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--blue);
    animation: pulseGlow 2s ease-in-out infinite;
  }
  @keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,98,65,0.4); }
    50%      { box-shadow: 0 0 0 6px rgba(0,98,65,0); }
  }

  /* ---------- CONTACT ---------- */
  .contact {
    background-image: linear-gradient(170deg, var(--blue) 0%, #00543A 55%, var(--blue-deep) 100%);
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--bg);
    padding: 140px 0 80px;
    text-align: center;
  }
  .contact .kicker {
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(250,248,243,0.82);
    margin-bottom: 12px;
  }
  .contact .invite {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: clamp(22px, 3vw, 32px);
    margin-bottom: 28px;
    color: rgba(250,248,243,0.92);
  }
  .contact-photo {
    max-width: min(340px, 58vw);
    margin: 0 auto 40px;
  }
  @media (max-width: 720px) {
    .contact-photo { max-width: 220px; }
  }
  .contact-photo .tag {
    color: var(--blue-deep);
    border-color: var(--blue-deep);
  }
  /* ---------- contact CTA ---------- */
  .contact .cta-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 4px;
  }
  .contact .btn-light {
    font-size: 16px;
    padding: 17px 34px;
    box-shadow: 0 14px 30px -10px rgba(0,0,0,0.35);
  }
  .contact a.big {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(16px, 2.2vw, 21px);
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--bg);
    border-bottom: 2px solid rgba(250,248,243,0.45);
    transition: border-color 0.3s, text-shadow 0.3s;
    display: inline-block;
    padding-bottom: 2px;
  }
  .contact a.big:hover {
    border-color: var(--bg);
    text-shadow: 0 0 40px rgba(250,248,243,0.3);
  }
  .contact .cta-note {
    font-size: 13.5px;
    color: rgba(250,248,243,0.8);
    letter-spacing: 0.01em;
  }
  .contact .avail {
    margin: 40px auto 0;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(250,248,243,0.88);
  }
  .contact .avail .pulse-w {
    width: 8px; height: 8px; border-radius: 50%;
    background: #4ade80;
    animation: pulseGreen 2s ease-in-out infinite;
  }
  @keyframes pulseGreen {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
    50%      { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
  }
  .contact .socials {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  .contact .socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    text-decoration: none;
    color: rgba(250,248,243,0.9);
    border: 1px solid rgba(250,248,243,0.38);
    border-radius: 10px;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
  }
  .contact .socials a svg {
    width: 18px;
    height: 18px;
  }
  .contact .socials a:hover {
    background: rgba(250,248,243,0.12);
    border-color: rgba(250,248,243,0.4);
    color: #fff;
  }
  .contact .foot {
    margin-top: 64px;
    display: flex;
    justify-content: center;
    font-size: 13px;
    color: rgba(250,248,243,0.72);
    flex-wrap: wrap;
    gap: 10px;
  }
