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

:root {
  --bg: #000000;
  --card: #0d0d0d;
  --card-2: #111111;
  --text: #ffffff;
  --muted: #b8b8b8;
  --muted-2: #8d8d8d;
  --line: #242424;
  --line-soft: rgba(255, 255, 255, 0.08);
  --accent: #99CC33;
  --accent-soft: rgba(153, 204, 51, 0.12);
  --accent-line: rgba(153, 204, 51, 0.28);
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(153, 204, 51, 0.09), transparent 30%),
    radial-gradient(circle at bottom left, rgba(153, 204, 51, 0.05), transparent 24%),
    linear-gradient(180deg, #000000 0%, #050505 100%);
  color: var(--text);
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.home-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.visit-wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.visit-card {
  width: 100%;
  background: rgba(10, 10, 10, 0.98);
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.photo {
  position: relative;
  aspect-ratio: 1 / 0.86;
  overflow: hidden;
  background: #111111;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
}

.photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 44%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.94) 100%);
  pointer-events: none;
}

.brand {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(153, 204, 51, 0.42);
  color: #99CC33;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  backdrop-filter: blur(10px);
  box-shadow: none;
  animation: brand-text-green-glow 2.6s ease-in-out infinite;
}

@keyframes brand-blink {
  0%, 100% {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.68);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 0 rgba(153, 204, 51, 0);
    text-shadow: none;
  }

  50% {
    color: #99CC33;
    background: rgba(153, 204, 51, 0.12);
    border-color: rgba(153, 204, 51, 0.95);
    box-shadow: 0 0 22px rgba(153, 204, 51, 0.72), inset 0 0 12px rgba(153, 204, 51, 0.14);
    text-shadow: 0 0 8px rgba(153, 204, 51, 0.95), 0 0 18px rgba(153, 204, 51, 0.7);
  }
}

.visit-content {
  padding: 24px 22px 24px;
}

.label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.name {
  font-size: 34px;
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.role,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(153, 204, 51, 0.24);
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.role {
  margin-bottom: 18px;
}

.desc {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.62;
  margin-bottom: 22px;
}

.desc p + p {
  margin-top: 10px;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.button,
.project-button,
.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 18px;
  border-radius: 18px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.button {
  width: 100%;
}

.primary,
.secondary,
.accent-outline,
.project-button,
.back-button {
  background: #000000;
  color: #ffffff;
  border: 1.5px solid var(--accent);
}

.button:hover,
.project-button:hover,
.back-button:hover,
.nav-link:hover,
.logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(153, 204, 51, 0.16);
}

.button:hover,
.project-button:hover,
.back-button:hover {
  background: rgba(153, 204, 51, 0.09);
  border-color: var(--accent);
  color: #ffffff;
}

.button:focus-visible,
.project-button:focus-visible,
.back-button:focus-visible,
.nav-link:focus-visible,
.logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}



.request-open {
  margin-top: 14px;
}

.modal-open {
  overflow: hidden;
}

.request-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.request-modal.is-open {
  display: flex;
}

.request-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(12px);
}

.request-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(153, 204, 51, 0.16), transparent 36%),
    #0b0b0b;
  border: 1px solid rgba(153, 204, 51, 0.24);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.72), 0 0 34px rgba(153, 204, 51, 0.1);
}

.request-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: #000000;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.request-form-state h2,
.request-success h2 {
  max-width: calc(100% - 42px);
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.request-form-state > p,
.request-success > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contact-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #080808;
  color: var(--text);
  font: inherit;
  font-size: 18px;
  line-height: 1.35;
  padding: 15px 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-form input::placeholder {
  color: #666666;
}

.contact-form input:focus {
  border-color: rgba(153, 204, 51, 0.62);
  box-shadow: 0 0 0 4px rgba(153, 204, 51, 0.1);
  background: #0c0c0c;
}

.form-submit {
  border: 1px solid var(--accent);
  cursor: pointer;
  margin-top: 4px;
}

.form-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.hidden-frame {
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.request-success {
  text-align: center;
  padding: 10px 0 4px;
}

.request-success h2 {
  max-width: none;
  margin-bottom: 8px;
}

.request-success > p {
  margin-bottom: 18px;
}

.success-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #000000;
  font-size: 44px;
  font-weight: 950;
  box-shadow: 0 0 34px rgba(153, 204, 51, 0.52);
}

.footer {
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted-2);
  text-align: center;
}

.projects-body {
  padding: 22px;
}

.site-header,
.projects-page {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(16px);
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 13px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.nav-link.active {
  color: var(--accent);
  background: #000000;
  border-color: var(--accent);
}

.hero {
  padding: 28px 0 28px;
}

.eyebrow {
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin-bottom: 18px;
}

.hero p,
.section-subtitle {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.section {
  margin-top: 34px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.section h2 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 280px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(13, 13, 13, 0.98);
  border: 1px solid var(--line);
  overflow: hidden;
  overflow-wrap: anywhere;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  border-color: rgba(153, 204, 51, 0.32);
  box-shadow: 0 0 28px rgba(153, 204, 51, 0.08);
  transform: translateY(-2px);
}

.meta {
  color: var(--accent);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
  margin-bottom: 14px;
}

.project-card h3 {
  font-size: 20px;
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.project-card p:not(.meta) {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 18px;
}

.project-card .project-button {
  width: 100%;
  margin-top: auto;
}

.other-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.other-item {
  min-width: 0;
  padding: 14px 15px;
  border-radius: 18px;
  background: #0f0f0f;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.projects-bottom {
  display: flex;
  justify-content: center;
  padding: 36px 0 18px;
}

.back-button {
  min-width: 220px;
  text-decoration: none;
}

@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .projects-body {
    padding: 12px;
  }

  .home-body {
    padding: 12px;
    align-items: flex-start;
  }

  .visit-card {
    border-radius: 26px;
  }

  .visit-content {
    padding: 22px 18px 22px;
  }

  .name {
    font-size: 30px;
  }

  .desc {
    font-size: 18px;
  }

  .photo {
    aspect-ratio: 1 / 0.92;
  }

  .site-header {
    position: static;
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 22px;
  }

  .nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .nav-link {
    text-align: center;
  }

  .hero {
    padding: 18px 0 22px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p,
  .section-subtitle {
    font-size: 15.5px;
  }

  .project-grid,
  .other-list {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
    padding: 17px;
  }

  .button,
  .project-button,
  .back-button {
    min-height: 54px;
  }
}


@keyframes brand-text-green-glow {
  0%, 100% {
    color: #99CC33;
    text-shadow: 0 0 4px rgba(153, 204, 51, 0.35);
  }

  50% {
    color: #99CC33;
    text-shadow: 0 0 10px rgba(153, 204, 51, 1), 0 0 22px rgba(153, 204, 51, 0.9), 0 0 36px rgba(153, 204, 51, 0.55);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


@keyframes brand-visible-pulse {
  0%, 100% {
    color: #99CC33;
    text-shadow: 0 0 4px rgba(153, 204, 51, 0.35);
  }

  50% {
    color: #99CC33;
    text-shadow: 0 0 10px rgba(153, 204, 51, 1), 0 0 22px rgba(153, 204, 51, 0.9), 0 0 36px rgba(153, 204, 51, 0.55);
  }
}

.form-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-success {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px 16px 18px;
  text-align: center;
  border: 1px solid rgba(153, 204, 51, 0.38);
  border-radius: 20px;
  background: rgba(153, 204, 51, 0.1);
  box-shadow: inset 0 0 22px rgba(153, 204, 51, 0.08);
}

.success-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: #000000;
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 0 24px rgba(153, 204, 51, 0.34);
}

.form-success strong {
  font-size: 24px;
  line-height: 1.1;
}

.form-success p {
  max-width: 280px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.45;
}

.form-error {
  margin-top: 12px;
  color: #ffb4b4;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

[hidden] {
  display: none !important;
}
