:root {
  --bg: #080f1e;
  --panel: #0f1c30;
  --panel-soft: #162840;
  --text: #eef2f8;
  --muted: #b0c4d8;
  --brand: #45b88a;
  --brand-2: #d4b840;
  --line: #1e3350;
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.33);
  --brand-glow: rgba(69, 184, 138, 0.35);
  --transition-fast: 180ms ease;
  --transition-med: 320ms ease;
  --radius-sm: 8px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(14, 28, 20, 0.76), rgba(10, 13, 14, 0.84)),
    url("assets/oceanlowres.webp"),
    radial-gradient(circle at 20% 0%, rgba(69, 184, 138, 0.2), transparent 42%),
    radial-gradient(circle at 80% 100%, rgba(212, 184, 64, 0.16), transparent 38%),
    var(--bg);
  background-attachment: fixed;
  background-size: cover;
  background-position: center top;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

main a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.17em;
  font-weight: 600;
}

main a:hover {
  color: #a8e4d0;
}

.btn,
.brand,
.nav a,
.btn:hover {
  text-decoration: none;
}

.site-shell {
  width: min(var(--max), 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(12, 24, 44, 0.78);
  border-bottom: 1px solid rgba(30, 51, 80, 0.5);
}

.header-inner {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  min-height: 74px;
}

.brand {
  display: grid;
  gap: 0.15rem;
}

.brand-title {
  font-family: "Outfit", "Sora", sans-serif;
  font-size: 1.04rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.44rem 0.82rem;
  color: var(--muted);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  border-color: rgba(69, 184, 138, 0.44);
  background: rgba(69, 184, 138, 0.16);
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-chevron {
  font-size: 0.65em;
  opacity: 0.6;
  margin-left: 0.1em;
  vertical-align: 0.05em;
  transition: transform var(--transition-fast);
  display: inline-block;
}

.nav-item:hover .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  padding: 0.55rem;
  padding-top: 0.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 30;
}

.nav-item::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.5rem;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
  border: none;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-dropdown a:hover {
  color: var(--text);
  background: rgba(69, 184, 138, 0.16);
  border: none;
}

main {
  padding: 2rem 0 5rem;
}

/* ---------- Hero ---------- */

.hero {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(145deg, rgba(15, 28, 48, 0.92), rgba(10, 20, 38, 0.96)),
    linear-gradient(115deg, rgba(69, 184, 138, 0.2), transparent 40%);
  box-shadow: var(--shadow);
  padding: clamp(1.3rem, 2vw, 3rem);
  margin-bottom: 2rem;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: center;
}

.hero h1 {
  background: linear-gradient(135deg, #5eedb0, var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 40px rgba(69, 184, 138, 0.3);
  animation: showcase-glow 4s ease-in-out infinite;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--brand);
  margin: 0 0 0.45rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.7rem;
  font-family: "Outfit", "Sora", sans-serif;
}

h1 {
  font-size: clamp(1.8rem, 4.3vw, 3.3rem);
}

h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  color: #d4e8f0;
  margin: 0 0 0.95rem;
}

/* ---------- Grid ---------- */

.grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

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

/* ---------- Card ---------- */

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(175deg, rgba(15, 28, 48, 0.84), rgba(10, 20, 38, 0.94));
  padding: 1.1rem;
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4), 0 0 30px var(--brand-glow);
  border-color: rgba(69, 184, 138, 0.5);
}

.card h3 {
  margin-bottom: 0.4rem;
}

.card p,
.panel p,
.timeline p {
  color: #c8dce8;
}

/* ---------- Panel ---------- */

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 28, 48, 0.84);
  padding: 1.1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.panel + .panel {
  margin-top: 0.9rem;
}

/* ---------- KPI Row ---------- */

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.1rem;
  margin-bottom: 1.4rem;
}

.kpi {
  border: 1px solid rgba(69, 184, 138, 0.42);
  border-radius: 12px;
  padding: 0.7rem;
  background: linear-gradient(135deg, rgba(69, 184, 138, 0.14), rgba(69, 184, 138, 0.06));
  text-align: center;
}

.kpi strong {
  display: block;
  font-family: "Outfit", "Sora", sans-serif;
  font-size: 1.15rem;
}

.kpi-label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

/* ---------- Tag Row ---------- */

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0;
}

.tag {
  display: inline-block;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(69, 184, 138, 0.15);
  border: 1px solid rgba(69, 184, 138, 0.35);
  color: var(--brand);
}

.tag--gold {
  background: rgba(212, 184, 64, 0.15);
  border-color: rgba(212, 184, 64, 0.4);
  color: var(--brand-2);
}

/* ---------- List ---------- */

.list {
  padding-left: 1.1rem;
  margin: 0;
}

.list li {
  margin: 0 0 0.45rem;
  color: #cce0ea;
}

.featured-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  padding-left: 0;
  list-style: none;
}

.featured-list li {
  margin: 0;
  font-size: 1.1rem;
}

/* ---------- Buttons ---------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.btn-row--center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--brand);
  background: linear-gradient(135deg, rgba(69, 184, 138, 0.28), rgba(69, 184, 138, 0.14));
  border-radius: var(--radius-sm);
  padding: 0.62rem 1.35rem;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--text);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(69, 184, 138, 0.15);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover {
  background: linear-gradient(135deg, rgba(69, 184, 138, 0.42), rgba(69, 184, 138, 0.22));
  border-color: #78d4aa;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(69, 184, 138, 0.25);
}

.btn:hover::before {
  opacity: 1;
}

.btn--primary {
  border-color: rgba(69, 184, 138, 0.5);
  background: linear-gradient(135deg, rgba(69, 184, 138, 0.28), rgba(69, 184, 138, 0.12));
  color: var(--brand);
}

.btn--primary:hover {
  border-color: rgba(69, 184, 138, 0.65);
  box-shadow: 0 4px 18px rgba(69, 184, 138, 0.25);
}

.btn--secondary {
  border-color: rgba(212, 184, 64, 0.5);
  background: linear-gradient(135deg, rgba(212, 184, 64, 0.28), rgba(212, 184, 64, 0.12));
  color: var(--brand-2);
}

.btn--secondary:hover {
  border-color: rgba(212, 184, 64, 0.65);
  box-shadow: 0 4px 18px rgba(212, 184, 64, 0.25);
}

.btn--tertiary {
  border-color: rgba(184, 199, 179, 0.5);
  background: linear-gradient(135deg, rgba(184, 199, 179, 0.22), rgba(184, 199, 179, 0.08));
  color: var(--muted);
}

.btn--tertiary:hover {
  border-color: rgba(184, 199, 179, 0.65);
  box-shadow: 0 4px 18px rgba(184, 199, 179, 0.2);
}

.btn.secondary {
  color: var(--muted);
  font-weight: 600;
  border-color: rgba(212, 184, 64, 0.4);
  background: linear-gradient(135deg, rgba(212, 184, 64, 0.22), rgba(212, 184, 64, 0.1));
}

.btn.secondary:hover {
  border-color: var(--brand-2);
  color: var(--text);
  background: rgba(212, 184, 64, 0.12);
  box-shadow: 0 6px 22px rgba(212, 184, 64, 0.18);
}

/* ---------- Section ---------- */

.section-title {
  margin-top: 1.2rem;
  margin-bottom: 0.8rem;
}

/* ---------- Timeline ---------- */

.timeline {
  border-left: 2px solid rgba(69, 184, 138, 0.44);
  padding-left: 1rem;
  margin-left: 0.15rem;
}

.timeline article {
  position: relative;
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: -1.36rem;
  top: 0.26rem;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: var(--brand);
}

/* ---------- Layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1rem;
}

.caption {
  font-size: 0.84rem;
  color: var(--muted);
}

.game-inspo img {
  height: auto;
  max-height: none;
  object-fit: contain;
}

.game-inspo .caption {
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--text);
  padding: 0.65rem 0.9rem 0.9rem;
}

/* ---------- Media ---------- */

.media-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(8, 16, 30, 0.76);
  box-shadow: var(--shadow);
  margin: 0.9rem 0;
}

.media-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-med);
}

.media-frame:hover img {
  transform: scale(1.05);
}

.hero-portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
}

.hero .media-frame:hover img {
  transform: none;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

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

.archive-grid > :last-child:nth-child(3n+1) {
  grid-column: 1 / -1;
}

.archive-grid > :last-child:nth-child(3n+2) {
  grid-column: span 2;
}

.gallery details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 28, 48, 0.78);
  padding: 0.75rem;
  margin-bottom: 0.85rem;
}

.gallery summary {
  cursor: pointer;
  font-family: "Outfit", "Sora", sans-serif;
  font-weight: 700;
  color: var(--text);
}

.media-grid .media-frame img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-media {
  margin: 0.45rem 0 0.7rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.card-media img {
  width: 100%;
  height: clamp(180px, 22vw, 280px);
  object-fit: cover;
  display: block;
  transition: transform var(--transition-med);
}

.card-media:hover img {
  transform: scale(1.05);
}

.media-frame.contain img {
  object-fit: contain;
  background: rgba(40, 55, 80, 0.85);
}

.hero-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0.9rem 0;
}

.hero-image-grid .media-frame--square {
  min-width: 0;
  max-width: none;
}

.media-frame--square {
  max-width: 50%;
}

.media-frame--square img {
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
}

.media-frame--original img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.thumb-link {
  display: block;
  border-radius: var(--radius);
}

.thumb-link:focus-visible,
.thumb-link:hover {
  outline: 2px solid rgba(69, 184, 138, 0.65);
  outline-offset: 3px;
}

/* ---------- Project Card ---------- */

.project-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(175deg, rgba(15, 28, 48, 0.84), rgba(10, 20, 38, 0.94));
  overflow: hidden;
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.45), 0 0 35px var(--brand-glow);
  border-color: rgba(69, 184, 138, 0.5);
}

.project-card-img {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.project-card-img img {
  width: 100%;
  height: clamp(180px, 22vw, 280px);
  object-fit: cover;
  display: block;
  transition: transform var(--transition-med);
}

.project-card-img--contain {
  object-fit: contain;
  background: rgba(8, 16, 30, 0.9);
}

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

.project-card--featured .project-card-img img {
  height: clamp(220px, 28vw, 360px);
}

.project-card-body {
  padding: 1.4rem 1.6rem 1.6rem;
}

.project-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.project-card-body p {
  margin-bottom: 0.5rem;
}

/* ---------- Sightline Game ---------- */

.sightline-section {
  margin-top: 1.4rem;
}

.sightline-section h2 {
  margin-bottom: 0.3rem;
}

.sightline-hint {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 400ms ease;
}

.sightline-hint.solved {
  color: var(--brand-2);
  font-weight: 600;
}

#game-container {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 0.8rem;
}

#game-container canvas {
  display: block;
  width: 100%;
}

.sightline-reset {
  font-size: 0.84rem;
  margin-top: 0.4rem;
}

/* ---------- CTA Block ---------- */

.showcase-section {
  margin-bottom: 2rem;
}

.showcase-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
  text-align: center;
  animation: showcase-glow 4s ease-in-out infinite;
}

@keyframes showcase-glow {
  0%, 100% { opacity: 0.88; text-shadow: 0 0 30px rgba(69, 184, 138, 0.2); }
  50% { opacity: 1; text-shadow: 0 0 50px rgba(69, 184, 138, 0.35); }
}

.cta-block {
  border: 1px solid rgba(69, 184, 138, 0.35);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(69, 184, 138, 0.08), rgba(212, 184, 64, 0.06)),
    rgba(15, 28, 48, 0.84);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  margin-top: 2rem;
}

.cta-block h2 {
  margin-bottom: 0.5rem;
}

.cta-block p {
  margin-bottom: 0.4rem;
}

/* ---------- Gallery Section ---------- */

.gallery-section h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  background: var(--brand);
  margin-top: 0.5rem;
  border-radius: 2px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(184, 199, 179, 0.2);
  padding: 1.3rem 0 2.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

.footer-contact-label {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: 0.03em;
}

.footer-contact-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.footer-contact a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  transition: color var(--transition-fast);
}

.footer-contact a:hover {
  color: #a8e4d0;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-links a {
  color: var(--muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand);
}

/* ---------- Scroll Animation ---------- */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 550ms ease, transform 550ms ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid-3,
  .grid-2,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-split {
    grid-template-columns: 1fr;
  }

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

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

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.6rem 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .media-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .kpi-row {
    grid-template-columns: 1fr;
  }

  .tag-row {
    gap: 0.35rem;
  }
}
