/* Shared public-site refinement layer.
   Keeps page-specific templates intact while unifying the portfolio around a
   quieter, production-oriented visual system. */
:root {
  --bg: #f7f8f6;
  --panel: #ffffff;
  --line: #dfe4e0;
  --line-strong: #c9d1cc;
  --text: #17201d;
  --muted: #65716c;
  --secondary: #3e4a45;
  --soft: #87918c;
  --accent: #08766a;
  --accent-hover: #06645b;
  --accent-soft: #e3f2ef;
  --radius: 10px;
  --radius-lg: 18px;
  --shell: 75rem;
}

body.site-body {
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
}

/* Content must remain visible when motion scripts are delayed or blocked. */
.reveal,
.reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
}

::selection {
  color: #ffffff;
  background: var(--accent);
}

.site-header {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(23, 32, 29, 0.02);
  backdrop-filter: blur(18px) saturate(125%);
}

.site-header.scrolled {
  border-bottom-color: var(--line-strong);
}

.nav-shell {
  min-height: 4rem;
}

.brand-monogram {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 720;
  letter-spacing: -0.04em;
}

.nav-link,
.section-link,
.footer-links a {
  color: var(--muted);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 620;
  letter-spacing: 0.04em;
}

.nav-link:hover,
.nav-link.active,
.section-link:hover,
.footer-links a:hover {
  color: var(--accent);
}

.button {
  min-height: 2.7rem;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 620;
}

.button-primary {
  color: #ffffff;
  background: var(--accent);
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-ghost {
  color: var(--text);
  background: var(--panel);
  border-color: var(--line-strong);
}

.button-ghost:hover {
  background: #f1f4f1;
  border-color: #aeb9b3;
}

.hero-section {
  min-height: calc(100svh - 4rem);
  padding: clamp(4rem, 9vh, 7rem) 0 5rem;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 76% 22%, rgba(8, 118, 106, 0.07), transparent 30rem),
    linear-gradient(180deg, #fafbf9 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(19rem, 0.75fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-badge {
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.05em;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero-title {
  max-width: 54rem;
  color: var(--text);
  font-size: clamp(3rem, 6.1vw, 5.25rem);
  font-weight: 610;
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.hero-title-muted {
  color: var(--muted);
}

.hero-text {
  max-width: 38rem;
  margin-top: 1.65rem;
  color: var(--secondary);
  font-size: 1.02rem;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 1.9rem;
}

.hero-focus {
  padding: 0.6rem;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 55px rgba(23, 32, 29, 0.08);
  backdrop-filter: blur(12px);
}

.hero-focus-head,
.hero-focus-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-focus-head {
  padding: 0.75rem 0.8rem 0.9rem;
}

.focus-status {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--accent);
}

.focus-status i {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 999px;
  background: currentColor;
}

.focus-product {
  min-height: 5.4rem;
  padding: 0.9rem;
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.focus-product + .focus-product {
  margin-top: 0.45rem;
}

.focus-product:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 8px 24px rgba(23, 32, 29, 0.07);
}

.focus-index {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
}

.focus-product > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 0.25rem;
}

.focus-product strong {
  font-size: 0.84rem;
  font-weight: 680;
}

.focus-product small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.hero-focus-foot {
  padding: 0.9rem 0.8rem 0.65rem;
  color: var(--soft);
  font-size: 0.58rem;
}

.content-section,
.contact-band {
  padding: clamp(4.5rem, 8vw, 6.5rem) 0;
}

.section-heading {
  margin-bottom: 1.6rem;
}

.section-title {
  color: var(--text);
  font-weight: 620;
  letter-spacing: -0.035em;
}

.section-kicker,
.section-heading-count {
  color: var(--accent);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-weight: 650;
}

.content-section-muted {
  background: #f1f3f0;
  border-color: var(--line);
}

.project-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.project-card {
  min-height: 22rem;
  padding: 1.25rem;
  gap: 1rem;
  background: var(--panel);
  border-color: var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(23, 32, 29, 0.025);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.project-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 40px rgba(23, 32, 29, 0.075);
}

.project-icon {
  width: 3.6rem;
  height: 3.6rem;
  border-color: var(--line);
  border-radius: 12px;
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
}

.project-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.project-card .project-body {
  padding: 0;
}

.project-card .project-body h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 650;
  letter-spacing: -0.025em;
}

.project-card .project-body p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.62;
}

.tag-pill {
  color: var(--muted);
  background: var(--bg);
  border-color: var(--line);
}

.project-card-arrow {
  color: var(--accent);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-weight: 650;
}

.plist {
  border-color: var(--line);
}

.plist-item {
  border-color: var(--line);
  border-radius: 10px;
}

.plist-item:hover {
  background: var(--panel);
}

.plist-title {
  color: var(--text);
  font-weight: 630;
}

.plist-arrow,
.plist-item:hover .plist-arrow {
  color: var(--accent);
}

.about-simple-body {
  gap: clamp(2.5rem, 7vw, 6rem);
}

.about-copy p {
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1.72;
}

.about-facts {
  padding: 0.6rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.fact-row:first-child {
  border-top: 0;
}

.contact-band {
  color: #edf4f0;
  background: #14201c;
  border: 0;
}

.contact-band .section-kicker {
  color: #70cfc1;
}

.contact-band .button-primary {
  color: #14201c;
  background: #8ce0d3;
}

.contact-band .button-primary:hover {
  background: #a2eadf;
}

.contact-band .button-ghost {
  color: #edf4f0;
  background: transparent;
  border-color: rgba(237, 244, 240, 0.28);
}

.contact-band .button-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(237, 244, 240, 0.5);
}

.site-footer {
  padding: 1.6rem 0;
  background: #0f1815;
  border-color: rgba(255, 255, 255, 0.09);
}

.site-footer,
.site-footer a,
.site-footer .footer-title,
.site-footer .footer-meta {
  color: #aebcb6;
}

@media (max-width: 980px) {
  .hero-section {
    min-height: auto;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-focus {
    width: min(100%, 36rem);
  }

  .project-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero-section {
    padding: 3.6rem 0 3.8rem;
  }

  .hero-layout {
    gap: 2.4rem;
  }

  .hero-title {
    font-size: clamp(2.65rem, 12vw, 4rem);
  }

  .hero-text {
    font-size: 0.94rem;
  }

  .hero-focus-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .project-showcase {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
