/* ============================================================
   HOME — Compact hero, 2×2 project grid, writing section,
           footer CTA band, minimal footer
   ============================================================ */

/* ── Hero ── */
.hero {
  padding-top: clamp(var(--space-8), 4vw, var(--space-12));
  padding-bottom: 0;
  overflow: visible;
}

.hero__inner {
  display: grid;
  grid-template-columns: 60fr 35fr;
  gap: clamp(var(--space-8), 4vw, var(--space-12));
  align-items: start;
  padding-bottom: clamp(var(--space-8), 4vw, var(--space-11));
  position: relative;
}

/* Left column */
.hero__left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Greeting line — "Hi, I am Punam." */
.hero__greeting {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 500;
  letter-spacing: var(--tracking-hero);
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 20px;
}

.hero__headline em {
  font-style: italic;
  font-weight: 600;
  color: var(--color-accent);
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: 28px;
  font-style: italic;
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1.4;
  margin-bottom: 16px;
}

.hero__sub {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 440px;
}

/* Right column — photo frame */
.hero__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: clamp(var(--space-6), 3vw, var(--space-10));
  position: relative;
}

/* Outer wrapper — holds photo + decorative frames, all positioned relative to this */
/* Extra padding on all sides so the green block + frames can visibly overflow */
.hero__photo-scene {
  position: relative;
  width: 260px;
  height: 320px;
  margin: 28px 28px 28px 0; /* gives breathing room for frame overflow */
  animation: hero-float 6s ease-in-out infinite;
}

/* Subtle float animation */
@keyframes hero-float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* Thin outline frame — offset to top and right, sits behind photo */
.hero__photo-block {
  position: absolute;
  top: -10px;
  left: 8px;
  right: -10px;
  bottom: 8px;
  background: transparent;
  border: 1.5px solid var(--color-accent);
  border-radius: 4px;
  z-index: 1;
  opacity: 0.7;
}

/* Photo sits on top of the frame border */
.hero__photo-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 4px;
  z-index: 2;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.05);
  display: block;
  transition: filter 0.5s ease;
}

/* Color on hover — remove grayscale */
.hero__photo-scene:hover .hero__photo {
  filter: grayscale(0%) contrast(1);
}

/* ── Corner frame decorations ── */

/* Frame 1 — offset toward top-right */
.hero__frame-1 {
  position: absolute;
  top: -22px;
  left: 10px;
  right: -22px;
  bottom: 10px;
  border: 1.5px solid var(--color-accent);
  border-radius: 4px;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

/* Frame 2 — lighter echo, further offset top-right */
.hero__frame-2 {
  position: absolute;
  top: -36px;
  left: 20px;
  right: -36px;
  bottom: 20px;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

/* ── L-bracket accents: TOP-RIGHT + BOTTOM-LEFT ── */
.hero__bracket-tr,
.hero__bracket-bl {
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
  z-index: 4;
}

/* Top-right bracket */
.hero__bracket-tr {
  top: -26px;
  right: -26px;
  border-top: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
  border-radius: 0 4px 0 0;
  opacity: 0.75;
}

/* Bottom-left bracket */
.hero__bracket-bl {
  bottom: -26px;
  left: -26px;
  border-bottom: 2px solid var(--color-accent);
  border-left: 2px solid var(--color-accent);
  border-radius: 0 0 0 4px;
  opacity: 0.75;
}

/* ── Work section ── */
.section-work {
  padding-top: clamp(var(--space-10), 5vw, var(--space-14));
  padding-bottom: clamp(var(--space-12), 6vw, var(--space-20));
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.section-header__link {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-accent);
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}

.section-header__link:hover {
  color: var(--color-accent-hover);
}

/* 2×2 project grid */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Project card */
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  position: relative;
  box-shadow: var(--shadow-card);
  transition:
    transform 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out);
}

/* Bottom edge line — Forest Green, slides in on hover */
.project-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.project-card:hover::after {
  transform: scaleX(1);
}

/* Card thumbnail — top 60% */
.project-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.project-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}

.project-card:hover .project-card__thumb img {
  transform: scale(1.03);
}

/* Thumb placeholder gradient (used until real screens) */
.project-card__thumb--fortunecaller { background: #fff; }
.project-card__thumb--indrive        { background: #fff; }
.project-card__thumb--baseball      { background: #fff; }
.project-card__thumb--readyx        { background: #fff; }
.project-card__thumb--omn           { background: linear-gradient(135deg, #222028, #3A3250); }

/* Thumb placeholder illustration */
.project-card__thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

.thumb-mockup {
  width: min(65%, 180px);
  height: auto;
}

/* Card body — bottom 40% */
.project-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.project-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  line-height: 1.2;
}

.project-card__desc {
  font-family: var(--font-body);
  font-size: var(--text-ui);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* "Read case study →" — fades in on hover */
.project-card__cta {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-accent);
  margin-top: var(--space-1);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 200ms var(--ease-out),
    transform 200ms var(--ease-out);
}

.project-card:hover .project-card__cta {
  opacity: 1;
  transform: none;
}

@media (max-width: 680px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile hero layout */
@media (max-width: 680px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__right {
    padding-top: var(--space-8);
    align-items: flex-start;
    padding-left: 20px; /* room for bracket overflow */
  }

  .hero__photo-scene {
    width: 220px;
    height: 270px;
  }

  .hero__tagline {
    font-size: 22px;
  }
}

/* ── Writing section ── */
.section-writing {
  background: var(--color-accent-subtle);
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}

.writing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
}

@media (max-width: 960px) {
  .writing-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .writing-grid { grid-template-columns: 1fr; }
}

.article-card {
  background: var(--color-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  position: relative;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition:
    transform 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out);
}

.article-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.article-card:hover::after {
  transform: scaleX(1);
}

.article-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}

.article-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}

.article-card:hover .article-card__thumb img {
  transform: scale(1.03);
}

/* Thumb placeholder */
.article-card__thumb--dark-patterns { background: linear-gradient(135deg, #1a2228, #2c3a42); }
.article-card__thumb--accessibility  { background: linear-gradient(135deg, #1c2a1e, #2e4032); }

.article-card__thumb--medium {
  background: var(--color-divider);
}

.article-card__body {
  padding: var(--space-5) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.article-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__teaser {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__source {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-top: auto;
  padding-top: var(--space-3);
}

.article-card__cta {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-accent);
  margin-top: auto;
  padding-top: var(--space-2);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.article-card:hover .article-card__cta {
  opacity: 1;
  transform: none;
}

/* ── Footer CTA band ── */
.footer-cta {
  background: var(--color-bg-dark);
  padding-block: clamp(var(--space-11), 6vw, var(--space-16));
}

.footer-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.footer-cta__heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text-inverse);
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

.footer-cta__sub {
  font-family: var(--font-body);
  font-size: var(--text-ui);
  color: var(--color-accent-subtle);
  line-height: 1.65;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-card);      /* Cloud White — high contrast on Midnight bg */
  color: var(--color-text);           /* Midnight text */
  font-family: var(--font-body);
  font-size: var(--text-ui);
  font-weight: 500;
  padding: 0.8em 1.8em;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.01em;
  transition:
    background 200ms var(--ease-out),
    color 200ms var(--ease-out),
    transform 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out);
}

.btn-cta:hover {
  background: var(--color-bg);        /* Warm cream on hover — stays in palette */
  color: var(--color-text);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
}

/* ── Footer ── */
.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-6);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.site-footer__copy {
  font-family: var(--font-body);
  font-size: var(--text-xxs);
  color: var(--color-text-muted);
}

.site-footer__links {
  display: flex;
  gap: var(--space-6);
}

.site-footer__links a {
  font-family: var(--font-body);
  font-size: var(--text-xxs);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}

.site-footer__links a:hover {
  color: var(--color-accent);
}
