:root {
  --bg: #0b0d10;
  --bg-soft: #11151b;
  --panel: #141920;
  --line: #ffffff1f;
  --text: #f3f5f7;
  --text-soft: #c4c8ce;
  --accent: #d5a11a;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 20% 0%, #151b24 0%, var(--bg) 45%);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  scroll-behavior: smooth;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(1240px, 94vw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  backdrop-filter: blur(10px);
}

.brand-horizontal {
  display: block;
  width: auto;
  height: 44px;
  background: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.92rem;
}

.nav a {
  color: var(--text-soft);
  transition: color 180ms ease;
}

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

.hero {
  position: relative;
  min-height: 88vh;
  width: min(1240px, 94vw);
  margin: 0 auto;
  border: 1px solid var(--line);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, #08090ccc 18%, #08090c7a 60%, #08090cd6 100%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#ffffff15 1px, transparent 1px),
    linear-gradient(90deg, #ffffff15 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.25;
  animation: gridPulse 8s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: clamp(4rem, 8vw, 8rem) clamp(1.2rem, 4vw, 3.5rem);
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  margin: 0 0 1rem;
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 4.7rem);
  max-width: 13ch;
}

h2 {
  font-size: clamp(1.65rem, 3.1vw, 3rem);
  max-width: 19ch;
}

p {
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.16rem;
  border: 1px solid #ffffff30;
  font-weight: 600;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.btn-primary {
  background: #f0f0f0;
  color: #0d0f12;
}

.btn-ghost {
  background: #ffffff08;
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: #ffffff55;
}

.section {
  width: min(1240px, 94vw);
  margin: 0 auto;
  padding: 6rem 0;
  border-bottom: 1px solid var(--line);
}

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

.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.2rem;
}

.about-copy,
.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.25rem;
}

.about-figure {
  margin: 0;
  position: relative;
  border: 1px solid var(--line);
  min-height: 360px;
  overflow: hidden;
  background: #090b0d;
}

.about-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#ffd77a2f 1px, transparent 1px),
    linear-gradient(90deg, #ffd77a2f 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.14;
}

.about-figure figcaption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  font-size: 0.76rem;
  padding: 0.32rem 0.5rem;
  background: #090b0ddb;
  border: 1px solid #ffffff26;
  color: #f0f0f0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.8rem;
}

.tile {
  margin: 0;
  border: 1px solid var(--line);
  min-height: 200px;
  overflow: hidden;
  background: #0f1216;
}

.tile:nth-child(1) {
  grid-column: span 7;
  min-height: 320px;
}

.tile:nth-child(2) {
  grid-column: span 5;
}

.tile:nth-child(3) {
  grid-column: span 4;
}

.tile:nth-child(4) {
  grid-column: span 4;
}

.tile:nth-child(5) {
  grid-column: span 4;
}

.tile:nth-child(6) {
  grid-column: span 12;
  min-height: 260px;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95);
  transition: transform 280ms ease;
}

.tile:hover img {
  transform: scale(1.02);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.service-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1rem;
  min-height: 95px;
  display: flex;
  align-items: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-actions {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.9rem;
}

.icon-block-title {
  margin: 0 0 0.55rem;
  color: #aeb4bc;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.icon-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff32;
  color: #e7e7e7;
  background: #0f1217;
  transition: transform 180ms ease, border-color 180ms ease;
}

.icon-link i {
  font-size: 1.05rem;
}

.icon-link:hover {
  transform: translateY(-2px);
  border-color: #ffffff70;
}

.icon-link.accent {
  border-color: #d5a11a72;
  color: #f0d286;
}

.icon-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, #ffffff2e, #ffffff08);
}

.footer {
  width: min(1240px, 94vw);
  margin: 0 auto;
  padding: 1.4rem 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #aeb4bc;
  font-size: 0.87rem;
}

.reveal {
  opacity: 0.99;
}

@supports (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 12% cover 34%;
  }
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gridPulse {
  0%,
  100% {
    opacity: 0.18;
  }
  50% {
    opacity: 0.32;
  }
}

@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .tile:nth-child(1),
  .tile:nth-child(2),
  .tile:nth-child(3),
  .tile:nth-child(4),
  .tile:nth-child(5),
  .tile:nth-child(6) {
    grid-column: span 6;
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .brand-horizontal {
    height: 34px;
  }

  .hero {
    min-height: 78vh;
  }

  .section {
    padding: 4rem 0;
  }

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

  .tile:nth-child(1),
  .tile:nth-child(2),
  .tile:nth-child(3),
  .tile:nth-child(4),
  .tile:nth-child(5),
  .tile:nth-child(6) {
    grid-column: span 12;
    min-height: 190px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
