/* ── Reset & tokens ── */
:root {
  --gold: #c9a84c;
  --gold-dim: rgba(201,168,76,.15);
  --gold-border: rgba(201,168,76,.25);
  --dark: #0a0a0a;
  --surface: #111111;
  --card: #161616;
  --border: #222222;
  --text: #f0ece0;
  --muted: rgba(240,236,224,.5);
  --radius: 10px;
  --max: 1100px;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Nav ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 100;
  transition: background .3s, border-color .3s;
}

#nav.scrolled {
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: .85rem;
  color: var(--muted);
  letter-spacing: .04em;
  transition: color .2s;
}

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

.nav-links .nav-cta {
  color: var(--gold);
  border: 1px solid var(--gold-border);
  padding: .4rem .9rem;
  border-radius: 4px;
  transition: background .2s, color .2s;
}

.nav-links .nav-cta:hover {
  background: var(--gold-dim);
  color: var(--gold);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .04em;
  cursor: pointer;
  border: none;
  transition: opacity .2s, background .2s;
}

.btn-primary {
  background: var(--gold);
  color: #0a0a0a;
}

.btn-primary:hover { opacity: .88; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover { border-color: var(--gold-border); color: var(--gold); }

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 4rem) 2rem 4rem;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(201,168,76,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.hero-kicker {
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-rule {
  position: absolute;
  bottom: 0; left: 2rem; right: 2rem;
  height: 1px;
  background: var(--border);
}

/* ── Sections ── */
section { padding: 6rem 2rem; }

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-kicker {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-heading {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 3rem;
}

/* ── Work ── */
#work { background: var(--surface); }

.work-group-label {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.work-card {
  background: var(--card);
  display: flex;
  flex-direction: column;
}

.work-card-visual {
  position: relative;
  aspect-ratio: 16/9;
  background: #0d0d0d;
  overflow: hidden;
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
}

.work-card-visual:hover .work-card-overlay { opacity: 1; }

.work-card-link {
  font-size: .85rem;
  letter-spacing: .08em;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  padding: .5rem 1.2rem;
  border-radius: 4px;
  background: rgba(10,10,10,.7);
  transition: background .2s;
}

.work-card-link:hover { background: var(--gold-dim); }

/* Mocked site preview inside the card */
.work-card-mock {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mock-bar {
  height: 28px;
  background: #1a1a1a;
  border-bottom: 1px solid #222;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 5px;
}

.mock-bar::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #333;
  box-shadow: 13px 0 0 #333, 26px 0 0 #333;
}

.mock-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1206 100%);
  gap: .3rem;
}

.mock-hero--warm {
  background: linear-gradient(135deg, #0d0a08 0%, #1a1008 100%);
}

.mock-tag {
  font-size: .55rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .7;
}

.mock-h {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: .04em;
}

.mock-sub {
  font-size: .6rem;
  color: var(--muted);
  letter-spacing: .06em;
}

.work-card-info {
  padding: 1.5rem;
}

.work-card-info h3 {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: .5rem;
}

.work-card-info p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.tag {
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  padding: .2rem .6rem;
  border-radius: 3px;
}

/* ── About ── */
#about { background: var(--dark); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-body {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 3.5rem;
}

.about-stat-value {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: .3rem;
}

.about-stat-label {
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ── Contact ── */
#contact { background: var(--surface); }

.contact-inner { max-width: 640px; }

.contact-sub {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 2.5rem;
  margin-top: -.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}

.contact-form input,
.contact-form textarea {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .8rem 1rem;
  color: var(--text);
  font-size: .9rem;
  font-family: inherit;
  width: 100%;
  transition: border-color .2s;
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }

.contact-form textarea { resize: vertical; }

.contact-form .btn-primary { align-self: flex-start; }

/* ── Footer ── */
#footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.footer-links a {
  font-size: .8rem;
  color: var(--muted);
  transition: color .2s;
}

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

.footer-copy {
  font-size: .75rem;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-stats {
    flex-direction: row;
    flex-wrap: wrap;
    padding-top: 0;
  }

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

  .nav-links {
    display: none;
  }

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

@media (max-width: 480px) {
  section { padding: 4rem 1.25rem; }
  #hero { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero-rule { left: 1.25rem; right: 1.25rem; }
}
