/* ─────────────────────────────────────
   home.css  —  John Loughrin homepage
───────────────────────────────────── */

:root {
  --bg:        #0d0c0b;
  --text:      #ddd8d0;
  --text-soft: #8c8580;
  --text-dim:  #3d3a36;
  --accent:    #e07a38;
  --rule:      #1e1c1a;
  --serif:     'Lora', Georgia, serif;
  --mono:      'DM Mono', 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  background-image: radial-gradient(
    ellipse 80% 50% at 30% 0%,
    rgba(224, 122, 56, 0.05) 0%,
    transparent 65%
  );
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }

/* ── STATUS BAR ── */
.status-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 3.5vw, 3rem);
  background: rgba(13, 12, 11, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.status-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.pulse-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse 2.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1;    transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.6); }
}

/* ── TWO-COLUMN LAYOUT ── */
.layout {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: calc(100vh - 40px);
  margin-top: 40px;
}

/* ── LEFT: NAME ── */
.col-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem clamp(1.5rem, 3.5vw, 3.5rem);
  border-right: 1px solid var(--rule);
  position: sticky;
  top: 40px;
  height: calc(100vh - 40px);
  align-self: start;
}

.name-inner { max-width: 440px; }

h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 3.8vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
  min-height: 1.1em;
}

.caret {
  display: inline-block;
  color: var(--accent);
  font-weight: 300;
  margin-left: 1px;
  animation: blink 1.05s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.tagline {
  font-size: clamp(0.62rem, 0.9vw, 0.78rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-soft);
  opacity: 0;
  animation: fadeIn 0.7s ease 1.9s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ── RIGHT: WORK ── */
.col-work {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem 4rem clamp(1.5rem, 3vw, 3rem);
}

/* ── SECTION LABEL ── */
.section-label {
  font-size: 0.57rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeIn 0.5s ease 0.9s forwards;
}

/* ── WORK LIST ── */
.work-list {
  list-style: none;
  border-top: 1px solid var(--rule);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}

.work-item {
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  animation: fadeUp 0.4s ease forwards;
}

.work-item:nth-child(1) { animation-delay: 1.05s; }
.work-item:nth-child(2) { animation-delay: 1.15s; }
.work-item:nth-child(3) { animation-delay: 1.25s; }
.work-item:nth-child(4) { animation-delay: 1.35s; }
.work-item:nth-child(5) { animation-delay: 1.45s; }
.work-item:nth-child(6) { animation-delay: 1.55s; }

.work-item a {
  display: block;
  padding: 1.3rem 0;
}

.work-row {
  display: flex;
  align-items: baseline;
  gap: clamp(0.65rem, 1.4vw, 1.2rem);
}

.wn {
  font-size: 0.54rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  width: 1.75rem;
  flex-shrink: 0;
}

.wt {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.7vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  flex: 1;
  transition: color 0.2s ease;
}

.work-item a:hover .wt { color: var(--accent); }

/* Per-item hover accent colors */
.work-item:nth-child(2) a:hover .wt { color: #a78bfa; }
.work-item:nth-child(3) a:hover .wt { color: #f0407a; }
.work-item:nth-child(4) a:hover .wt { color: #4ade80; }
.work-item:nth-child(5) a:hover .wt { color: #facc15; }
.work-item:nth-child(6) a:hover .wt { color: #22d3ee; }

.wk {
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  margin-left: auto;
}

.wa {
  font-size: 0.88rem;
  color: var(--text-dim);
  flex-shrink: 0;
  width: 1.25rem;
  text-align: right;
  transition: transform 0.22s ease, color 0.22s ease;
}

.work-item a:hover .wa {
  transform: translateX(4px);
  color: var(--accent);
}

.work-item:nth-child(2) a:hover .wa { color: #a78bfa; }
.work-item:nth-child(3) a:hover .wa { color: #f0407a; }
.work-item:nth-child(4) a:hover .wa { color: #4ade80; }
.work-item:nth-child(5) a:hover .wa { color: #facc15; }
.work-item:nth-child(6) a:hover .wa { color: #22d3ee; }

/* Description — hidden by default, reveals on hover */
.wd {
  font-size: 0.76rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-left: calc(1.75rem + clamp(0.65rem, 1.4vw, 1.2rem));
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition:
    max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity    0.25s ease,
    margin-top 0.25s ease;
}

.work-item a:hover .wd {
  max-height: 4rem;
  opacity: 1;
  margin-top: 0.5rem;
}

/* ── FOOTER ── */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem clamp(1.5rem, 3.5vw, 3rem);
  border-top: 1px solid var(--rule);
  font-size: 0.57rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .work-item,
  .section-label,
  .tagline { opacity: 1 !important; }
}

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  .layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .col-name {
    position: static;
    height: auto;
    min-height: 55vw;
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 3.5rem clamp(1.25rem, 5vw, 2.5rem);
    justify-content: flex-end;
  }

  h1 { font-size: clamp(2.8rem, 8vw, 5rem); }

  .col-work {
    justify-content: flex-start;
    padding: 1.5rem clamp(1.25rem, 5vw, 2.5rem) 2.5rem;
  }

  .wk { display: none; }
  .work-row { gap: 0.75rem; }
  .wd {
    margin-left: calc(1.75rem + 0.75rem);
    max-height: none;
    opacity: 1;
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(2.2rem, 9vw, 3.5rem); }
  footer { flex-direction: column; gap: 0.4rem; text-align: center; }
}
