:root {
  --green: #174f42;
  --green-2: #2f6758;
  --olive: #5f7f2f;
  --yellow: #eff100;
  --black: #252525;
  --ink: #333538;
  --muted: #5b6063;
  --line: #cfd8d2;
  --paper: #f7f8f5;
  --soft: #eef1ec;
  --white: #ffffff;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

a { color: inherit; }

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: 2px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 900;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.portfolio-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(23,79,66,.16);
  box-shadow: 0 10px 28px rgba(20,31,27,.08);
}

.nav-inner {
  width: min(1280px, calc(100% - 36px));
  height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--green);
  text-decoration: none;
}

.logo-mark,
.logo-mark svg {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text > span {
  color: var(--green);
  font-size: 1rem;
  font-weight: 900;
  line-height: .94;
  letter-spacing: .08em;
}

.logo-text small {
  margin-top: 4px;
  color: var(--olive);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.nav-back,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.nav-back {
  padding: 0 20px;
  background: var(--green);
  color: var(--white);
}

.nav-back:hover,
.nav-back:focus-visible {
  background: var(--green-2);
}

.portfolio-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 86px;
  padding: clamp(68px, 9vw, 108px) 24px clamp(60px, 8vw, 88px);
  background: var(--green);
  color: var(--white);
}

.portfolio-hero::before {
  content: "";
  position: absolute;
  top: 30px;
  right: 34px;
  width: 110px;
  height: 110px;
  border-top: 7px solid var(--yellow);
  border-right: 7px solid var(--yellow);
  opacity: .72;
  pointer-events: none;
  z-index: -1;
}

.hero-inner,
.portfolio-section,
.footer-inner {
  width: min(var(--container), 100%);
  margin: 0 auto;
}

.hero-eyebrow,
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--yellow);
  font-size: .92rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero-eyebrow::before,
.section-label-line {
  content: "";
  width: 42px;
  height: 3px;
  flex: 0 0 42px;
  background: currentColor;
}

.portfolio-hero h1,
.section-title,
.project-name,
.notice-inner h3 {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portfolio-hero h1 {
  max-width: 880px;
  margin: 18px 0 20px;
  color: var(--white);
  font-size: clamp(3rem, 7vw, 5.3rem);
  line-height: .96;
}

.portfolio-hero h1 em {
  color: var(--yellow);
  font-style: normal;
}

.portfolio-hero p {
  max-width: 700px;
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: 1.08rem;
  line-height: 1.7;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 2px;
  background: rgba(37,37,37,.18);
  color: var(--white);
  font-size: .9rem;
  font-weight: 800;
}

.badge-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: var(--yellow);
}

.portfolio-section {
  position: relative;
  padding: clamp(64px, 8vw, 96px) 0;
}

.portfolio-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green);
  pointer-events: none;
}

.section-label {
  margin-bottom: 18px;
  color: var(--olive);
}

.section-title {
  max-width: 760px;
  margin: 0 0 38px;
  color: var(--green);
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  line-height: .98;
}

.section-title em {
  color: var(--olive);
  font-style: normal;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(20,31,27,.07);
}

.project-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--soft);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-coming {
  position: absolute;
  top: 14px;
  right: 14px;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  border-radius: 2px;
  background: var(--yellow);
  color: var(--black);
  font-size: .85rem;
  font-weight: 900;
  line-height: 1;
}

.project-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.project-type {
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 2px;
  background: var(--soft);
  color: var(--green);
  font-size: .88rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.project-name {
  color: var(--green);
  font-size: 1.7rem;
  line-height: 1.05;
}

.project-desc {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.meta-item {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.4;
}

.meta-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--green);
  font-size: .85rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.placeholder-notice {
  position: relative;
  overflow: hidden;
  margin-top: 54px;
  padding: clamp(34px, 5vw, 52px);
  border-radius: 4px;
  background: var(--green);
  color: var(--white);
}

.placeholder-notice::before {
  content: "";
  position: absolute;
  top: 24px;
  right: 28px;
  width: 72px;
  height: 72px;
  border-top: 6px solid var(--yellow);
  border-right: 6px solid var(--yellow);
  opacity: .7;
  pointer-events: none;
}

.notice-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.notice-inner h3 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
}

.notice-inner p {
  max-width: 650px;
  margin: 0 0 26px;
  color: rgba(255,255,255,.84);
  font-size: 1.05rem;
  line-height: 1.7;
}

.notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-secondary {
  padding: 14px 24px;
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #ffff33;
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,.52);
  color: var(--white);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--yellow);
  color: var(--yellow);
}

footer {
  padding: 34px 24px;
  background: var(--black);
  color: rgba(255,255,255,.76);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

footer p {
  margin: 0;
  font-size: .95rem;
}

.footer-faith { color: var(--yellow); }

.footer-privacy {
  color: rgba(255,255,255,.82);
  font-size: .95rem;
  font-weight: 800;
  text-underline-offset: 4px;
}

.footer-privacy:hover,
.footer-privacy:focus-visible {
  color: var(--yellow);
}

:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 4px;
}

@media (max-width: 960px) {
  .hero-inner,
  .portfolio-section,
  .footer-inner {
    width: min(100% - 48px, var(--container));
  }

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

@media (max-width: 768px) {
  body { font-size: 16px; }

  .nav-inner {
    width: min(100% - 28px, 1280px);
    height: 78px;
    gap: 12px;
  }

  .logo-mark,
  .logo-mark svg {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .logo-text > span { font-size: .92rem; }
  .logo-text small { font-size: .68rem; }

  .nav-back {
    min-height: 44px;
    padding: 0 14px;
    font-size: .9rem;
  }

  .portfolio-hero {
    margin-top: 78px;
    padding: 54px 20px 58px;
  }

  .portfolio-hero::before {
    top: 22px;
    right: 20px;
    width: 62px;
    height: 62px;
    border-width: 5px;
  }

  .hero-inner,
  .portfolio-section,
  .footer-inner {
    width: min(100% - 40px, var(--container));
  }

  .hero-eyebrow,
  .section-label {
    font-size: .88rem;
    letter-spacing: .08em;
  }

  .portfolio-hero h1 {
    font-size: clamp(2.7rem, 13vw, 3.65rem);
    overflow-wrap: anywhere;
  }

  .portfolio-hero p,
  .notice-inner p { font-size: 1rem; }

  .portfolio-section { padding: 58px 0 68px; }

  .section-title {
    margin-bottom: 28px;
    font-size: clamp(2.35rem, 12vw, 3.2rem);
  }

  .projects-grid { grid-template-columns: 1fr; }

  .project-card { max-width: 620px; }

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

  .placeholder-notice {
    margin-top: 38px;
    padding: 30px 22px;
  }

  .placeholder-notice::before { display: none; }

  .notice-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary { width: 100%; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .logo-text small { display: none; }
  .nav-back { padding-inline: 11px; }
  .project-meta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
