/* Constantin Works — main.css */

/* ── VARIABLES ── */
:root {
  --bg:           #0a0a0a;
  --surface:      #121212;
  --surface-2:    #181818;
  --border:       #222222;
  --border-hover: #383838;
  --text:         #e0e0e0;
  --text-muted:   #5c5c5c;
  --text-dim:     #888;
  --accent:       #d97706;
  --accent-hover: #b45309;
  --green:        #16a34a;
  --green-dim:    rgba(22,163,74,.12);
  --amber-dim:    rgba(217,119,6,.12);
  --blue-dim:     rgba(99,102,241,.12);
  --blue:         #6366f1;
  --radius:       8px;
  --radius-sm:    5px;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
  --font-sans:    'Inter', system-ui, sans-serif;
  --max-w:        1080px;
  --pad:          1.5rem;
}

[data-theme="light"] {
  --bg:           #f5f5f4;
  --surface:      #ffffff;
  --surface-2:    #f0efee;
  --border:       #e0dedd;
  --border-hover: #b8b5b2;
  --text:         #1a1a1a;
  --text-muted:   #888;
  --text-dim:     #aaa;
  --green-dim:    rgba(22,163,74,.08);
  --amber-dim:    rgba(217,119,6,.10);
  --blue-dim:     rgba(99,102,241,.08);
}

/* ── RESET ── */
*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
textarea, input { font: inherit; }

/* ── SKIP LINK ── */
.skip {
  position: absolute;
  top: -999px;
  left: 1rem;
  background: var(--accent);
  color: #000;
  padding: .4rem .8rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  z-index: 9999;
}
.skip:focus { top: 1rem; }

/* ── LAYOUT ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: 5rem 0;
}
.section--alt {
  background: var(--surface-2);
}

.section__head {
  margin-bottom: 2.5rem;
}
.section__head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .4rem;
}
.section__lead {
  color: var(--text-muted);
  font-size: .9375rem;
}

/* ── HEADER ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 56px;
  gap: 1.5rem;
}

.brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: -.01em;
  color: var(--text);
  text-decoration: none;
}
.brand__title { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: .125rem;
  margin-left: auto;
}
.nav a, .nav .theme-btn {
  padding: .4rem .75rem;
  font-size: .875rem;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav a:hover, .nav .theme-btn:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ── HERO ── */
.hero {
  padding: 6rem 0 5rem;
  border-bottom: 1px solid var(--border);
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero__lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .75rem;
  padding: .25rem .65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-dim);
}

/* ── GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color .2s;
}
.card:hover {
  border-color: var(--border-hover);
}
.card--sale {
  border-color: var(--border);
}
.card--sale:hover {
  border-color: var(--accent);
}

.card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
}

.card__name {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: .25rem;
}

.card__domain {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-muted);
}

.card__tagline {
  font-size: .9rem;
  color: var(--text-dim);
  line-height: 1.55;
  flex-grow: 1;
}

.card__scope {
  font-size: .8125rem;
  color: var(--text-muted);
  padding: .4rem .7rem;
  background: var(--amber-dim);
  border-radius: var(--radius-sm);
}
.scope-label {
  font-weight: 600;
  color: var(--accent);
}

.card__list {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.card__list li {
  font-size: .8375rem;
  color: var(--text-dim);
  padding-left: 1rem;
  position: relative;
  line-height: 1.45;
}
.card__list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: auto;
}

.card__actions {
  display: flex;
  gap: .5rem;
  padding-top: .25rem;
}

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  padding: .2rem .55rem;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge--active {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(22,163,74,.25);
}
.badge--sale {
  background: var(--amber-dim);
  color: var(--accent);
  border: 1px solid rgba(217,119,6,.25);
}
.badge--portfolio {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid rgba(99,102,241,.25);
}

/* ── TAGS ── */
.tag {
  display: inline-block;
  font-size: .75rem;
  padding: .2rem .55rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn--primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hover);
}
.btn--ghost:hover {
  background: var(--surface-2);
  border-color: var(--text-muted);
}
.btn--sm {
  padding: .4rem .9rem;
  font-size: .8375rem;
}

/* ── HELD DOMAINS ── */
.domain-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.domain-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.domain-item:last-child { border-bottom: none; }
.domain-item:hover { background: var(--surface-2); }

.domain-item__main {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  min-width: 0;
}

.domain-item__name {
  font-family: var(--font-mono);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text);
  flex-shrink: 0;
}

.domain-item__note {
  font-size: .8375rem;
  color: var(--text-muted);
  min-width: 0;
}

/* ── ABOUT ── */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}
.about-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.prose p {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 560px;
}
.prose p + p { margin-top: .75rem; }

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-shrink: 0;
}
.stat {
  text-align: right;
}
.stat__n {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .2rem;
  letter-spacing: -.04em;
}
.stat__l {
  font-size: .75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-family: var(--font-mono);
}

/* ── CONTACT ── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.contact-head p {
  font-size: .9375rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: .5rem;
}
.contact-email a {
  font-family: var(--font-mono);
  font-size: .875rem;
  color: var(--accent);
}
.contact-email a:hover { text-decoration: underline; }

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.field__label {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-dim);
}
.req { color: var(--accent); }
.field input,
.field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .6rem .9rem;
  color: var(--text);
  font-size: .9rem;
  width: 100%;
  transition: border-color .15s;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.form-note {
  font-size: .78rem;
  color: var(--text-muted);
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-email:hover { color: var(--accent); }

/* ── UTILS ── */
.muted { color: var(--text-muted); font-size: .875rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 57px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: .5rem 0;
    gap: 0;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a, .nav .theme-btn {
    padding: .75rem var(--pad);
    border-radius: 0;
    text-align: left;
    justify-content: flex-start;
  }
  .header { position: sticky; }

  .nav-toggle { display: flex; }

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

  .about-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-stats {
    flex-direction: row;
    gap: 2rem;
  }
  .stat { text-align: left; }

  .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }

  .hero { padding: 4rem 0 3.5rem; }
  .section { padding: 3.5rem 0; }

  .domain-item {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
  }
  .domain-item__main { flex-direction: column; gap: .25rem; }
}

@media (max-width: 480px) {
  :root { --pad: 1rem; }
  .hero h1 { font-size: 1.75rem; }
  .about-stats { flex-wrap: wrap; gap: 1.25rem 2rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ── SERVICES SECTION ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .2s;
}
.service-card:hover { border-color: var(--border-hover); }
.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}
.service-card p {
  font-size: .875rem;
  color: var(--text-dim);
  line-height: 1.55;
}
.service-symbol {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent);
  margin-bottom: .75rem;
  display: block;
}
.services-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: .5rem;
}
.services-cta p {
  color: var(--text-dim);
  font-size: .9375rem;
}

/* ── PROJECT PAGES ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8125rem;
  color: var(--text-muted);
  padding: 1.25rem 0 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { opacity: .4; }

.project-hero {
  padding: 2.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
}
.project-hero__badges {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.project-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: .5rem;
}
.project-hero__domain {
  font-family: var(--font-mono);
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: block;
}
.project-hero__tagline {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-dim);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 2rem;
}
.project-hero__actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.project-body {
  padding: 4rem 0;
}
.project-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}
.project-sections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.project-section h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: .85rem;
  color: var(--text);
}
.project-section p {
  font-size: .9375rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.project-section p + p { margin-top: .6rem; }
.project-section ul {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-top: .25rem;
}
.project-section ul li {
  font-size: .9rem;
  color: var(--text-dim);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}
.project-section ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.project-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 72px;
}
.aside-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.aside-block h3 {
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: .85rem;
}
.aside-block ul {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.aside-block ul li {
  font-size: .875rem;
  color: var(--text-dim);
  padding-left: 1rem;
  position: relative;
}
.aside-block ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}
.aside-offer {
  background: var(--amber-dim);
  border-color: rgba(217,119,6,.25);
}
.aside-offer h3 { color: var(--accent); }
.aside-offer p {
  font-size: .875rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.aside-offer .btn { width: 100%; justify-content: center; }

.project-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  color: var(--text-muted);
  margin-top: 2rem;
  transition: color .15s;
}
.project-back:hover { color: var(--accent); }

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .project-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .project-aside { position: static; }
}

/* ── BRAND LOGO ── */
.brand__logo {
  height: 14px;
  width: auto;
  display: block;
}

/* ── SERVICES PAGE ── */
.services-split {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}
.services-callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.services-callout__text {
  font-size: .875rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.process-step__num {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent);
  display: block;
  margin-bottom: .75rem;
}
.process-step h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: .5rem;
}
.process-step p {
  font-size: .875rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.rate-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.rate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.rate-card__label {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.rate-card__price {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--text);
}
.rate-card__sub {
  font-size: .8125rem;
  color: var(--text-muted);
  margin-top: -.5rem;
}
.rate-card > p {
  font-size: .875rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.rate-card ul {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-top: auto;
  padding-top: .25rem;
  border-top: 1px solid var(--border);
}
.rate-card ul li {
  font-size: .8125rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.rate-card ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}
.rates-note {
  font-size: .8125rem;
  color: var(--text-muted);
}

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: .5rem;
}
.faq-item {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}
.faq-item p {
  font-size: .875rem;
  color: var(--text-dim);
  line-height: 1.65;
}
.faq-item a { color: var(--accent); }
.faq-item a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .services-split { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .rate-cards { grid-template-columns: 1fr; }
}
