:root {
  --ink: #101914;
  --ink-2: #17241c;
  --forest: #2f5a34;
  --moss: #4f7a46;
  --sage: #9fb58c;
  --cream: #fbf7eb;
  --paper: #fffdf6;
  --red: #b3261e;
  --red-dark: #8c1c16;
  --gold: #e8c877;
  --text: #1c2620;
  --muted: #5b665e;

  --serif: "Fraunces", Georgia, serif;
  --caps: "Cinzel", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 400 17px/1.65 var(--sans);
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.eyebrow {
  font-family: var(--caps);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before { content: "✦"; color: var(--gold); letter-spacing: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--red);
  transition: transform .2s, background .2s, box-shadow .2s;
  box-shadow: 0 8px 24px -10px rgba(179, 38, 30, .7);
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(251, 247, 235, .35); box-shadow: none; }
.btn-ghost:hover { background: rgba(251, 247, 235, .08); border-color: var(--cream); }
.btn-small { padding: 9px 18px; font-size: .92rem; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(16, 25, 20, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 4px; text-decoration: none; }
.brand-icon { width: 44px; height: 44px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); }
.brand-logo { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }

/* Language dropdown */
.lang-switch { position: relative; }
.lang-current {
  display: flex; align-items: center; gap: 6px;
  font: 600 .85rem var(--sans); letter-spacing: .06em;
  padding: 7px 10px; border-radius: 999px; cursor: pointer;
  background: none; color: rgba(251, 247, 235, .85);
  border: 1px solid rgba(251, 247, 235, .2);
  transition: color .2s, border-color .2s;
}
.lang-current:hover, .lang-current[aria-expanded="true"] { color: #fff; border-color: rgba(232, 200, 119, .6); }
.lang-current svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lang-current .lang-caret { width: 14px; height: 14px; transition: transform .2s; }
.lang-current[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  min-width: 160px; margin: 0; padding: 6px; list-style: none;
  background: var(--ink-2); border: 1px solid rgba(251, 247, 235, .12); border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6);
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font: 500 .92rem var(--sans); text-align: left;
  padding: 9px 12px; border: 0; border-radius: 8px; cursor: pointer;
  background: none; color: rgba(251, 247, 235, .85);
}
.lang-menu button:hover { background: rgba(251, 247, 235, .07); color: #fff; }
.lang-menu button[aria-pressed="true"] { color: var(--gold); }
.lang-menu button[aria-pressed="true"]::after { content: "✦"; font-size: .8em; }
.nav a:not(.btn) { color: rgba(251, 247, 235, .85); text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--gold); transition: right .25s; }
.nav a:not(.btn):hover { color: #fff; }
.nav a:not(.btn):hover::after { right: 0; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--cream); margin: 5px 0; transition: transform .25s, opacity .25s; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 70% 30%, #24402a 0%, var(--ink) 60%);
  color: var(--cream);
  padding: 140px 0 100px;
  min-height: min(100vh, 920px); display: flex; align-items: center;
}
.sky { position: absolute; inset: 0; pointer-events: none; }
.sky i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold); opacity: .0;
  animation: twinkle var(--d, 4s) ease-in-out infinite var(--delay, 0s);
  box-shadow: 0 0 8px var(--gold);
}
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.6); } 50% { opacity: .9; transform: scale(1); } }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .eyebrow { color: var(--sage); }
.lead { font-size: 1.15rem; color: rgba(251, 247, 235, .8); max-width: 56ch; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { margin: 0; position: relative; justify-self: center; }
.hero-art::before {
  content: ""; position: absolute; inset: 10% -10% 20%;
  background: radial-gradient(circle, rgba(232, 200, 119, .28), transparent 65%);
  filter: blur(30px); z-index: -1;
  animation: glow 5s ease-in-out infinite;
}
@keyframes glow { 50% { opacity: .55; } }
.hero-art img { width: min(420px, 100%); height: auto; border-radius: 24px; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); }

/* Sections */
.section { padding: 110px 0; }
.section-light { background: var(--paper); }
.section-cream { background: var(--cream); }
.section-dark { background: var(--ink); color: var(--cream); }
.section-dark .eyebrow { color: var(--sage); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }

.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.about .section-head { margin-bottom: 0; }
.about-body { font-size: 1.1rem; color: var(--muted); }
.about-body strong { color: var(--text); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--paper);
  border: 1px solid rgba(47, 90, 52, .14);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(16, 25, 20, .35); border-color: rgba(47, 90, 52, .3); }
.card p { color: var(--muted); }
.card ul { list-style: none; padding: 0; margin: 1.4rem 0 0; border-top: 1px solid rgba(47, 90, 52, .14); padding-top: 1.2rem; }
.card li { padding-left: 1.4em; position: relative; margin: .4em 0; font-weight: 500; font-size: .95rem; }
.card li::before { content: "✦"; position: absolute; left: 0; color: var(--red); font-size: .8em; top: .15em; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--moss), var(--forest));
  margin-bottom: 22px;
}
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--cream); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-feature { background: var(--ink); color: var(--cream); border-color: transparent; }
.card-feature p { color: rgba(251, 247, 235, .72); }
.card-feature ul { border-color: rgba(251, 247, 235, .15); }
.card-feature li::before { color: var(--gold); }
.card-feature .card-icon { background: linear-gradient(145deg, var(--gold), #c79f45); }
.card-feature .card-icon svg { stroke: var(--ink); }

/* Portfolio */
.portfolio-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.portfolio-head .section-head { margin-bottom: 0; }
.section-sub { color: var(--muted); font-size: 1.08rem; margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  font: 600 .92rem var(--sans);
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text);
  border: 1px solid rgba(47, 90, 52, .25);
  transition: background .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--forest); }
.filter.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work {
  display: flex; flex-direction: column;
  background: var(--cream);
  border: 1px solid rgba(47, 90, 52, .14);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.work[hidden] { display: none; }
.work:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(16, 25, 20, .35); }
.work-wide { grid-column: span 2; flex-direction: row; }
.work-wide .work-thumb { flex: 1.1; aspect-ratio: auto; min-height: 260px; }
.work-wide .work-body { flex: 1; align-self: center; }
.work-wide.work-solo { grid-column: auto; flex-direction: column; }
.work-wide.work-solo .work-thumb { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
.work-wide.work-solo .work-body { align-self: stretch; }

.work-thumb {
  position: relative; aspect-ratio: 16 / 10;
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #3d6b3c, var(--ink) 75%);
}
.work-thumb::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 18% 22%, var(--gold), transparent),
    radial-gradient(1.5px 1.5px at 78% 30%, var(--gold), transparent),
    radial-gradient(1px 1px at 62% 78%, var(--cream), transparent),
    radial-gradient(1px 1px at 30% 70%, var(--cream), transparent),
    radial-gradient(2px 2px at 88% 66%, var(--gold), transparent);
  opacity: .8;
}
.work-thumb::after {
  content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 200, 119, .3), transparent 65%);
  transition: transform .5s;
}
.work:hover .work-thumb::after { transform: scale(1.25); }
.work-thumb svg { position: relative; z-index: 1; width: 64px; height: 64px; fill: none; stroke: var(--cream); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s; }
.work:hover .work-thumb svg { transform: scale(1.1) rotate(-4deg); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-games { background: radial-gradient(circle at 55% 45%, #a8322a, #4a1410 55%, var(--ink)); }
.thumb-games svg { width: 96px; height: 96px; }
.thumb-ia, .thumb-ia2 { background: radial-gradient(circle at 50% 40%, #6b5a26, #2a2410 60%, var(--ink)); }
.thumb-ia svg, .thumb-ia2 svg { stroke: var(--gold); }
.thumb-apps2, .thumb-games2 { background: radial-gradient(circle at 50% 40%, #2e5a52, #12241f 65%, var(--ink)); }

.work-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.work-body p { color: var(--muted); font-size: .97rem; }
.work-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.tag { font-family: var(--caps); font-weight: 600; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.status { font-size: .78rem; font-weight: 600; color: var(--forest); background: rgba(79, 122, 70, .12); padding: 4px 10px; border-radius: 999px; }
.stack { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stack li { font-size: .8rem; font-weight: 500; padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(47, 90, 52, .2); color: var(--text); }
.works-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Innovation */
.innovation { position: relative; color: var(--cream); padding: 130px 0; overflow: hidden; background: var(--ink-2); }
.innovation-bg {
  position: absolute; inset: 0;
  background: url("assets/banner.png") 30% center / cover no-repeat;
}
.innovation-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16, 25, 20, .15) 0%, rgba(16, 25, 20, .7) 45%, rgba(16, 25, 20, .96) 70%);
}
.innovation-inner { position: relative; display: flex; justify-content: flex-end; }
.innovation-copy { max-width: 540px; }
.innovation .eyebrow { color: var(--sage); }
.innovation-copy > p { color: rgba(251, 247, 235, .82); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 2rem; }
.pillars div { border-top: 2px solid var(--gold); padding-top: 12px; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.pillars b { font-weight: inherit; }
.pillars span { display: block; font-family: var(--caps); color: var(--gold); font-size: .8rem; letter-spacing: .2em; margin-bottom: 4px; }

/* Mission & vision */
.mv { display: grid; grid-template-columns: 1fr auto 1fr; gap: 48px; align-items: center; }
.mv-text { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.5; color: var(--text); font-weight: 500; }
.mv-divider { width: 1px; align-self: stretch; background: linear-gradient(transparent, rgba(47, 90, 52, .35), transparent); position: relative; }
.mv-divider span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--paper); color: var(--red); padding: 8px 0; font-size: 1.2rem; }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(251, 247, 235, .1); border-radius: var(--radius); overflow: hidden; }
.value { background: var(--ink); padding: 40px 34px; transition: background .3s; }
.value:hover { background: #18271e; }
.value h3 { color: var(--gold); display: flex; align-items: center; gap: .5em; }
.value h3::before { content: ""; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); flex: none; }
.value p { color: rgba(251, 247, 235, .7); margin: 0; }

/* Contact */
.contact { text-align: center; max-width: 760px; }
.contact-icon { width: 140px; height: auto; margin: 0 auto 28px; filter: drop-shadow(0 18px 22px rgba(16, 25, 20, .35)); }
.contact .eyebrow { justify-content: center; }
.contact-lead { font-size: 1.12rem; color: var(--muted); margin-bottom: 2.2rem; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(251, 247, 235, .7); padding: 64px 0 40px; text-align: center; }
.footer-brand { width: 240px; height: auto; margin: 0 auto 6px; }
.tagline { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--sage); }
.copy { font-size: .85rem; margin: 2rem 0 0; opacity: .6; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .hero-copy { order: 2; }
  .hero .eyebrow { display: block; }
  .hero .eyebrow::before { margin-right: .7em; }
  .hero .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-art img { width: min(300px, 80vw); }
  .hero { padding-top: 110px; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .cards, .values { grid-template-columns: 1fr 1fr; }
  .card-feature { grid-column: 1 / -1; }
  .works { grid-template-columns: 1fr 1fr; }
  .mv { grid-template-columns: 1fr; gap: 24px; }
  .mv-divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(47, 90, 52, .35), transparent); }
  .mv-divider span { padding: 0 10px; }
  .innovation-bg { background-position: 25% center; }
  .innovation-bg::after { background: linear-gradient(180deg, rgba(16, 25, 20, .55), rgba(16, 25, 20, .94) 55%); }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0;
    background: rgba(16, 25, 20, .98); padding: 8px 16px 24px;
    transform: translateY(-120%); transition: transform .3s; visibility: hidden;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; width: 100%; text-align: center; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav .btn { margin-top: 16px; }
  .lang-switch { margin-top: 16px; display: flex; flex-direction: column; align-items: center; }
  .lang-menu { position: static; margin-top: 8px; width: 100%; max-width: 260px; box-shadow: none; }
  .lang-menu button { justify-content: center; gap: 8px; }
  .brand-icon { width: 38px; height: 38px; }
  .brand-logo { height: 44px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header { background: rgba(16, 25, 20, .92); }
  .section { padding: 80px 0; }
  .cards, .values, .pillars, .works { grid-template-columns: 1fr; }
  .filter { padding: 8px 14px; font-size: .88rem; }
  .work-wide { grid-column: auto; flex-direction: column; }
  .work-wide .work-thumb { aspect-ratio: 16 / 10; min-height: 0; }
  .innovation { padding: 90px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
