/* =========================================================
   HOME
========================================================= */

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
}

.hero-bg svg {
  width: 100%;
  height: 100%;
}

.hero-bg .trace-line {
  fill: none;
  stroke: var(--trace);
  stroke-width: 1;
  opacity: 0.45;
  stroke-dasharray: 6 2000;
  stroke-dashoffset: 2000;
  animation: draw 2.6s ease forwards;
}

.hero-bg .trace-line.amber {
  stroke: var(--accent);
}

.hero-bg .node {
  fill: var(--trace);
  opacity: 0;
  animation: nodeIn 0.6s ease forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes nodeIn {
  to {
    opacity: 0.8;
  }
}

.hero-glow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 640px;
  height: 640px;
  background: radial-gradient(
    circle,
    rgba(255, 122, 41, 0.16),
    transparent 70%
  );
  z-index: 0;
  filter: blur(10px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: end;
}

.hero-kicker {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--trace);
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-kicker::after {
  content: "";
  width: 8px;
  height: 16px;
  background: var(--trace);
  display: inline-block;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-title {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  color: var(--text);
  max-width: 15ch;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  margin-top: 26px;
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-cta {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-side {
  border-left: 1px solid var(--line);
  padding-left: 32px;
  padding-bottom: 6px;
}

.hero-side-label {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.hero-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-stack li {
  color: var(--text-dim);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-stack li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .hero-side {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 26px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-bottom: 60px;
  }
}

/* ---- FEATURED WORK (teaser cards linking to project.html) ---- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 980px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

.work-card {
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.work-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.work-card-img {
  aspect-ratio: 16/11;
  overflow: hidden;
  background: var(--ink-2);
}

.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover .work-card-img img {
  transform: scale(1.06);
}

.work-card-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.work-card-num {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--trace);
  margin-bottom: 10px;
}

.work-card-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.work-card-desc {
  color: var(--text-dim);
  font-size: 0.92rem;
  flex: 1;
}

.work-card-link {
  margin-top: 18px;
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.work-card-link svg {
  transition: transform 0.25s ease;
}

.work-card:hover .work-card-link svg {
  transform: translateX(4px);
}

.work-more {
  margin-top: 46px;
  display: flex;
  justify-content: center;
}

/* ---- TOOLS / LINUX STRIP ---- */
.tools-section {
  background: var(--ink-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.tools-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .tools-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .tools-strip {
    grid-template-columns: 1fr;
  }
}

.tools-strip img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: grayscale(0.3);
  transition: filter 0.3s ease, border-color 0.3s ease;
}

.tools-strip img:hover {
  filter: grayscale(0);
  border-color: var(--trace);
}

.tools-note {
  margin-top: 22px;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ---- SERVICES ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

@media (max-width: 760px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-panel {
  padding: 40px 34px;
}

.service-icon {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 24px;
}

.service-panel.trace .service-icon {
  color: var(--trace);
}

.service-panel.trace::before,
.service-panel.trace::after {
  border-color: var(--trace);
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-desc {
  color: var(--text-dim);
  font-size: 0.98rem;
  max-width: 46ch;
}

/* ---- GRAPHIC DESIGN GALLERY ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-tile {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.gallery-tile:hover img {
  transform: scale(1.08);
  filter: grayscale(0.15);
}

.gallery-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(
    to top,
    rgba(10, 13, 16, 0.95),
    transparent
  );
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.gallery-tile:hover .gallery-info {
  transform: translateY(0);
}

.gallery-info .artist {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.gallery-info .year {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--trace);
  margin-top: 2px;
}

.gallery-more {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}