@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600&display=swap');

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

:root {
  --white: #ffffff;
  --cream: #f7f5f2;
  --ink: #1c1c1c;
  --ink-soft: #5c5c5c;
  --ink-muted: #8a8a8a;
  --accent: #c0392b;
  --accent-hover: #a93226;
  --line: #e8e4df;
  --max: 1080px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 20px;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; font-family: 'Inter', sans-serif; font-weight: 600; color: var(--ink); margin-bottom: 8px; }

p { margin: 0 0 16px; }

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--accent); }

.container {
  max-width: var(--max);
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.logo span {
  font-weight: 400;
  color: var(--ink-muted);
  margin-left: 4px;
  text-transform: none;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.site-nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: 0.3s;
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white) !important;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white) !important;
}

/* EYEBROW */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* SHARP FRAMES & ACCENTS */
.sharp-frame {
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

.sharp-frame::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: var(--accent);
  z-index: 2;
}

.sharp-frame .visual {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  transition: transform 0.5s ease;
}

.sharp-frame:hover .visual {
  transform: scale(1.04);
}

/* CSS visuals — no external images */
.visual {
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.visual::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.85;
}

.visual-gaming {
  min-height: 320px;
  background-image:
    linear-gradient(135deg, #1c1c1c 60%, #c0392b 60%);
}

.visual-gaming::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55%;
  height: 45%;
  border: 3px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.4);
  box-shadow: inset 0 0 40px rgba(192,57,43,0.3);
}

.visual-gaming::after {
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 18px,
    rgba(255,255,255,0.04) 18px,
    rgba(255,255,255,0.04) 20px
  );
}

.visual-mobile {
  min-height: 140px;
  background: linear-gradient(160deg, #c0392b, #8b291d);
}

.visual-mobile::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42%;
  height: 72%;
  border-radius: 14px;
  border: 3px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.35);
}

.visual-hk {
  min-height: 380px;
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #2c3e50 0%, #1c1c1c 55%, #111 100%);
}

.visual-hk::before {
  content: '';
  position: absolute;
  bottom: 28%;
  left: 8%;
  right: 8%;
  height: 45%;
  background:
    linear-gradient(to top, #444 0%, #444 100%) 8% 100% / 8% 60% no-repeat,
    linear-gradient(to top, #555 0%, #555 100%) 20% 100% / 10% 80% no-repeat,
    linear-gradient(to top, #666 0%, #666 100%) 34% 100% / 9% 95% no-repeat,
    linear-gradient(to top, #888 0%, #888 100%) 48% 100% / 12% 100% no-repeat,
    linear-gradient(to top, #555 0%, #555 100%) 64% 100% / 8% 70% no-repeat,
    linear-gradient(to top, #444 0%, #444 100%) 76% 100% / 10% 55% no-repeat,
    linear-gradient(to top, #333 0%, #333 100%) 88% 100% / 7% 40% no-repeat;
}

.visual-hk::after {
  background: radial-gradient(circle at 80% 15%, rgba(255,255,255,0.12) 0%, transparent 40%);
}

.visual-service-dev,
.visual-service-art,
.visual-service-ops {
  height: 200px;
}

.visual-service-dev {
  background: linear-gradient(135deg, #1c1c1c, #2a2a2a);
}

.visual-service-dev::before {
  content: '';
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: linear-gradient(90deg, #c0392b, #c0392b 30%, transparent 30%, transparent 35%, #888 35%, #888 55%, transparent 55%, transparent 60%, #c0392b 60%);
  transform: skewY(-8deg);
}

.visual-service-dev::after {
  background: radial-gradient(circle at 70% 40%, rgba(192,57,43,0.35) 0%, transparent 50%);
}

.visual-service-art {
  background: linear-gradient(160deg, #2a2a2a, #1c1c1c);
}

.visual-service-art::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  background:
    linear-gradient(#c0392b, #c0392b) 20% 60% / 25% 25% no-repeat,
    linear-gradient(#888, #888) 55% 40% / 25% 25% no-repeat;
}

.visual-service-ops {
  background: linear-gradient(135deg, #1c1c1c, #252525);
}

.visual-service-ops::before {
  content: '';
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  height: 60%;
  background:
    linear-gradient(to top, #c0392b, #c0392b) 10% 100% / 12% 40% no-repeat,
    linear-gradient(to top, #888, #888) 26% 100% / 12% 65% no-repeat,
    linear-gradient(to top, #c0392b, #c0392b) 42% 100% / 12% 50% no-repeat,
    linear-gradient(to top, #666, #666) 58% 100% / 12% 80% no-repeat,
    linear-gradient(to top, #c0392b, #c0392b) 74% 100% / 12% 55% no-repeat,
    linear-gradient(to top, #888, #888) 90% 100% / 12% 70% no-repeat;
}

.sharp-accent {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 80px;
  height: 80px;
  border: 3px solid var(--accent);
  z-index: 0;
}

/* HERO */
.hero {
  position: relative;
  padding: 140px 0 0;
  background: var(--cream);
  overflow: hidden;
}

.hero-sharp {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: var(--ink);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
  opacity: 0.04;
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}

.hero-row {
  display: flex;
  align-items: center;
}

.hero-lead {
  font-size: 18px;
  max-width: 480px;
  margin-bottom: 36px;
  color: var(--ink-soft);
}

.hero-visual {
  position: relative;
  height: 420px;
  margin-top: 20px;
}

.hero-img-main {
  position: absolute;
  top: 0;
  right: 0;
  width: 78%;
  height: 85%;
  box-shadow: 12px 12px 0 var(--ink);
}

.hero-img-main .visual {
  min-height: 320px;
}

.hero-img-sub {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48%;
  height: 42%;
  box-shadow: 8px 8px 0 var(--accent);
  z-index: 2;
}

.hero-strip {
  background: var(--ink);
  padding: 28px 0;
}

.hero-metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.hero-metrics li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.hero-metrics strong {
  display: block;
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 2px;
}

/* SECTIONS */
.section {
  padding: 100px 0;
}

.section-heading {
  margin-bottom: 56px;
}

/* ABOUT */
.about {
  background: var(--white);
}

.about-row {
  display: flex;
  align-items: center;
}

.about-visual {
  position: relative;
  padding-right: 24px;
}

.about-img {
  box-shadow: 14px 14px 0 var(--accent);
}

.about-img .visual-hk {
  min-height: 380px;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: 0;
  background: var(--ink);
  color: var(--white);
  padding: 20px 24px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  text-align: center;
  min-width: 90px;
}

.about-badge span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 2px;
}

.about-badge strong {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  font-weight: 400;
}

.about-text {
  padding-top: 8px;
}

.about-text p {
  font-size: 17px;
}

/* SERVICES */
.services {
  background: var(--cream);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.service-card-img {
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.service-card-img .visual {
  transition: transform 0.5s;
}

.service-card:hover .visual {
  transform: scale(1.06);
}

.service-card-num {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--accent);
  color: var(--white);
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  padding: 6px 14px;
}

.service-card-body {
  padding: 24px 20px 28px;
  border-left: 3px solid var(--line);
  transition: border-color 0.3s;
}

.service-card:hover .service-card-body {
  border-color: var(--accent);
}

.service-card-body p {
  margin: 0;
  font-size: 14px;
}

/* CONTACT */
.contact {
  background: var(--white);
}

.contact-block {
  margin-top: 32px;
  font-style: normal;
}

.contact-block p {
  margin-bottom: 24px;
  font-size: 15px;
}

.contact-block strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.contact-form {
  background: var(--cream);
  padding: 40px;
}

.contact-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 20px;
  transition: border-color 0.2s;
  border-radius: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.map-wrap {
  margin-top: 64px;
  height: 360px;
  overflow: hidden;
  box-shadow: 12px 12px 0 var(--ink);
  position: relative;
  background: var(--cream);
}

.map-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  z-index: 2;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.4s;
}

.map-wrap:hover iframe {
  filter: grayscale(0%);
}

/* FOOTER */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.55);
  padding: 64px 0 0;
  font-size: 14px;
}

.footer-top {
  padding-bottom: 48px;
}

.footer-logo {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-tagline {
  margin: 0;
  font-size: 14px;
}

.footer-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 16px;
}

.site-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid .service-card:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 14px);
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 12px 24px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child { border-bottom: none; }

  .hero { padding-top: 100px; }

  .hero-sharp { display: none; }

  .hero-visual {
    height: 300px;
    margin-top: 48px;
  }

  .hero-img-main { width: 72%; height: 75%; }
  .hero-img-sub { width: 50%; height: 40%; }

  .hero-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .section { padding: 72px 0; }

  .about-visual {
    margin-bottom: 48px;
    padding-right: 0;
  }

  .about-img .visual-hk { min-height: 280px; }

  .service-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .service-grid .service-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .contact-form { padding: 28px 20px; }

  .footer-top .col-sm-3,
  .footer-top .col-sm-6 {
    margin-bottom: 32px;
  }
}
