:root {
  --bg: #222222;
  --bg-elevated: #1b1b1e;
  --bg-elevated-2: #202024;
  --text: #e2e2e2;
  --text-muted: #9b9b9f;
  --gold: #ffa220;
  --gold-soft: rgb(255, 162, 32, 0.14);
  --blue: #49d4ff;
  --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --maxw: 1200px;
}

html.light {
  --bg: #f6f4ef;
  --bg-elevated: #ffffff;
  --bg-elevated-2: #f0eee7;
  --text: #17171a;
  --text-muted: #63636a;
  --gold: #c9790a;
  --gold-soft: rgba(201, 121, 10, 0.1);
  --blue: #0a8fb0;
  --border: rgba(0, 0, 0, 0.09);
  --shadow: 0 20px 50px rgba(20, 20, 20, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Jost", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition:
    background 0.4s ease,
    color 0.4s ease;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
section {
  padding: 120px 24px;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  display: inline-block;
  flex-shrink: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
}
p {
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}
.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Diamond signature motif ---------- */
.diamond {
  width: 14px;
  height: 14px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.diamond.blue {
  background: var(--blue);
}
.diamond.outline {
  background: transparent;
  border: 2px solid var(--gold);
}
.divider-diamonds {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto 20px;
  justify-content: center;
}
.divider-diamonds span {
  width: 6px;
  height: 6px;
  background: var(--border);
  transform: rotate(45deg);
}
.divider-diamonds span.on {
  background: var(--gold);
}

/* ---------- Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition:
    background 0.4s ease,
    border-color 0.4s ease;
}
nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 17px;
  white-space: nowrap;
}
.brand img {
  height: 34px;
  width: auto;
}
.brand .name {
  letter-spacing: 0.02em;
}
.brand .name span {
  color: var(--gold);
}
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 15px;
  font-weight: 400;
}
.nav-links a {
  position: relative;
  color: var(--text);
  opacity: 0.82;
  transition: opacity 0.25s ease;
  padding: 4px 0;
}
.nav-links a:hover {
  opacity: 1;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.theme-toggle {
  width: 52px;
  height: 28px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  position: relative;
  padding: 0;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}
.theme-toggle .knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  transition:
    transform 0.35s cubic-bezier(0.65, 0, 0.35, 1),
    background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
html.light .theme-toggle .knob {
  transform: translateX(24px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    opacity 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: #141414;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--gold-soft);
}
.btn-secondary {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-small {
  padding: 10px 20px;
  font-size: 14px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(28px, 5.6vw, 50px);
  margin-bottom: 26px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero p.lead {
  font-size: 18px;
  max-width: 480px;
  margin-bottom: 40px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  height: 420px;
}
.grid-field {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  place-items: center;
}
.grid-field .cell {
  width: 34px;
  height: 34px;
  transform: rotate(45deg);
  border: 1px solid var(--border);
  transition: border-color 0.4s ease;
}
.grid-field .cell.fill {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 24px var(--gold-soft);
}
.grid-field .cell.fill-white {
  background: var(--text);
  border-color: var(--text);
  box-shadow: 0 0 24px rgba(73, 212, 255, 0.25);
}
.grid-field .cell {
  animation: drift 6s ease-in-out infinite;
}
.grid-field .cell:nth-child(3n) {
  animation-delay: 0.3s;
}
.grid-field .cell:nth-child(4n) {
  animation-delay: 0.9s;
}
.grid-field .cell:nth-child(5n) {
  animation-delay: 1.4s;
}
@keyframes drift {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }
  50% {
    transform: rotate(45deg) translateY(-8px);
  }
}
.hero-visual .glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-soft), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(10px);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .grid-field .cell {
    animation: none;
  }
  * {
    scroll-behavior: auto !important;
  }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 32px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 26px;
  position: relative;
}
.service-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 15px;
}
.service-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.service-tags span {
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: 5px;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid transparent;
}

/* ---------- Portfolio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.portfolio-item {
  --accent: var(--gold);
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.portfolio-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.browser-frame {
  display: flex;
  flex-direction: column;
}
.browser-topbar {
  flex-shrink: 0;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.browser-topbar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.35s ease;
}
.portfolio-item:hover .browser-topbar::after {
  width: 100%;
}
.browser-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}
.browser-url {
  margin-left: 8px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-body {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(0.85) brightness(0.85) contrast(1.02);
  transition: filter 0.5s ease;
}
.portfolio-item:hover .browser-body {
  filter: grayscale(0) brightness(1) contrast(1);
}
.portfolio-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.82));
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.portfolio-item:hover .overlay {
  opacity: 1;
}
.overlay-inner .cat {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}
.overlay-inner h4 {
  font-size: 19px;
  color: #fff;
  font-weight: 500;
}

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 60px;
  box-shadow: var(--shadow);
}
.contact-info h2 {
  margin-bottom: 18px;
}
.contact-info p {
  margin-bottom: 32px;
}
.info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 15px;
}
.info-row .diamond {
  width: 10px;
  height: 10px;
}
.reassure {
  position: relative;
  margin-top: 36px;
  padding: 20px;
  border-left: 2px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 8px 8px 0;
}
.reassure::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 22px;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border: 2px solid var(--bg-elevated);
  transform: rotate(45deg);
}
.reassure p {
  color: var(--text);
  font-size: 14px;
  margin: 0;
}

form {
  display: grid;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
label {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 7px;
  letter-spacing: 0.03em;
}
input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.25s ease;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
}
textarea {
  resize: vertical;
  min-height: 110px;
}
form .btn {
  margin-top: 6px;
  width: 100%;
}

/* ---------- claude ---------- */
/* --- custom select --- */
.cs {
  position: relative;
  width: 100%;
  font-size: 14.5px;
}

.cs-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s ease;
}

.cs-trigger:hover {
  border-color: var(--gold);
}

.cs.open .cs-trigger,
.cs-trigger:focus-visible {
  outline: none;
  border-color: var(--gold);
}

.cs-arrow {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  margin-left: 10px;
  transition: transform 0.2s ease;
}
.cs-arrow path {
  stroke: var(--text-muted);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cs.open .cs-arrow {
  transform: rotate(180deg);
}

.cs-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 6px;
  max-height: 260px;
  overflow-y: auto;

  opacity: 0;
  transform: translateY(-4px);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.cs.open .cs-list {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.cs-option {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s ease;
}

.cs-option:hover,
.cs-option.active {
  background: var(--bg-elevated-2);
}

.cs-option.selected {
  color: var(--gold);
  background: var(--gold-soft);
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 50px 24px 30px;
}
.footer-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}
.footer-col h4 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-col h4::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
}
.footer-links a {
  opacity: 0.85;
  transition:
    opacity 0.25s,
    color 0.25s;
}
.footer-links a:hover {
  opacity: 1;
  color: var(--gold);
}
.socials {
  display: flex;
  gap: 12px;
}
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease;
}
.social-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.footer-bottom {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    height: 280px;
    order: -1;
  }
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-wrap {
    grid-template-columns: 1fr;
    padding: 40px;
  }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 26px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-140%);
    opacity: 0;
    transition:
      transform 0.35s ease,
      opacity 0.35s ease;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .hamburger {
    display: flex;
  }
  section {
    padding: 80px 20px;
  }
  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-wrap {
    flex-direction: column;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
}
