/* ============================================
   JDP Studio DE — V2: Bold Constructivist
   ============================================ */

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

:root {
  --bg: #f5f0e8;
  --bg-dark: #1b1b18;
  --surface: #ebe5d9;
  --border: #d4cdbf;
  --border-dark: #333330;
  --text: #1b1b18;
  --text-light: #f5f0e8;
  --text-muted: #7a746a;
  --accent: #c4491a;
  --accent-hover: #d95a2a;

  --font-display: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  cursor: default;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

/* --- Cursor Glow (desktop only) --- */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 73, 26, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

body:hover .cursor-glow { opacity: 1; }

@media (pointer: coarse) {
  .cursor-glow { display: none; }
}

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s;
  mix-blend-mode: normal;
}

.nav.scrolled {
  background: rgba(245, 240, 232, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.75rem 0;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s;
}

.nav-logo:hover { opacity: 0.7; }

.logo-block {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--text);
  color: var(--bg);
  padding: 0.45rem 0.7rem 0.35rem;
  line-height: 1;
  display: inline-block;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: attr(data-index);
  position: absolute;
  top: -0.5rem;
  right: -0.75rem;
  font-size: 0.5625rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.625rem 1.5rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 100px;
  transition: background 0.3s, transform 0.3s;
}

.nav-cta:hover {
  background: var(--accent);
  transform: scale(1.03);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gutter);
  padding-bottom: clamp(3rem, 8vh, 6rem);
}

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

.hero-eyebrow {
  display: flex;
  gap: 0.5rem;
  margin-bottom: clamp(2rem, 4vh, 3rem);
}

.pill {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: clamp(2rem, 4vh, 4rem);
}

.hero-line {
  display: block;
}

.hero-line--outline {
  -webkit-text-stroke: 1.5px var(--text);
  color: transparent;
  transition: color 0.4s;
}

.hero-line--outline:hover {
  color: var(--accent);
  -webkit-text-stroke-color: var(--accent);
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.hero-desc {
  max-width: 420px;
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  color: var(--text-muted);
  line-height: 1.7;
}

.circle-cta {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex-shrink: 0;
  transition: background 0.4s, border-color 0.4s, color 0.4s, transform 0.4s;
  position: relative;
}

.circle-cta span {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.3;
}

.circle-cta svg {
  width: 16px;
  height: 16px;
}

.circle-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.08);
}

/* --- Ticker --- */
.ticker {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 1rem;
  animation: tickerMove 25s linear infinite;
  width: max-content;
}

.ticker-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}

.ticker-sep {
  color: var(--accent) !important;
}

@keyframes tickerMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Sections --- */
.section {
  padding: clamp(5rem, 12vh, 10rem) 0;
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.section-intro {
  margin-bottom: clamp(3rem, 6vh, 5rem);
}

.overline {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section--dark .overline { color: var(--accent); }

.section-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

/* --- Accordion --- */
.accordion {
  border-top: 1px solid var(--border);
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--text);
  text-align: left;
  transition: color 0.3s;
}

.accordion-header:hover { color: var(--accent); }

.accordion-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-muted);
  min-width: 2rem;
}

.accordion-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  letter-spacing: -0.01em;
  flex: 1;
}

.accordion-toggle {
  color: var(--text-muted);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item.open .accordion-toggle {
  transform: rotate(45deg);
}

.accordion-item.open .accordion-toggle .vert {
  opacity: 0;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item.open .accordion-body {
  max-height: 300px;
}

.accordion-content {
  padding: 0 0 2rem 3.5rem;
}

.accordion-content p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 1.25rem;
}

.accordion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.accordion-tags span {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
}

/* --- Process: Horizontal scroll --- */
.h-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 var(--gutter) 2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.h-scroll-wrapper::-webkit-scrollbar { display: none; }

.h-scroll-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
}

.process-card {
  width: clamp(280px, 30vw, 360px);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-dark);
  border-radius: 2px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.4s, background 0.4s;
  position: relative;
}

.process-card:hover {
  border-color: var(--accent);
  background: rgba(196, 73, 26, 0.05);
}

.process-card-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  color: var(--border-dark);
  transition: color 0.4s;
}

.process-card:hover .process-card-num {
  color: var(--accent);
}

.process-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}

.process-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(245, 240, 232, 0.55);
  flex: 1;
}

.process-card-time {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-top: 0.5rem;
}

/* --- Numbers --- */
.numbers-strip {
  padding: clamp(3rem, 6vh, 5rem) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
}

.number-block {
  text-align: center;
}

.number-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.number-suffix {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--accent);
}

.number-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* --- About --- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.about-lead {
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 0.5rem;
}

.about-block {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border);
  transition: border-color 0.3s;
}

.about-block:hover {
  border-color: var(--accent);
}

.about-block h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}

.about-block p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- Testimonial --- */
.section--testimonial {
  padding: clamp(4rem, 8vh, 6rem) 0;
}

.testimonial {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.testimonial-quote {
  color: var(--accent);
  margin-bottom: 2rem;
}

.testimonial blockquote p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.55;
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.testimonial-author strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
}

.testimonial-author span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --- Contact --- */
.section--contact {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: clamp(5rem, 12vh, 10rem) 0;
}

.contact-top {
  text-align: center;
  margin-bottom: clamp(3rem, 6vh, 5rem);
}

.contact-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.contact-heading em {
  font-style: italic;
  color: var(--accent);
  -webkit-text-stroke: 0;
}

.contact-sub {
  font-size: 1.0625rem;
  color: rgba(245, 240, 232, 0.5);
  max-width: 440px;
  margin: 0 auto;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-field {
  position: relative;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-dark);
  color: var(--text-light);
  outline: none;
  transition: border-color 0.3s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}

.form-field label {
  position: absolute;
  left: 0;
  top: 1rem;
  font-size: 0.8125rem;
  color: rgba(245, 240, 232, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-field input:focus ~ label,
.form-field input:not(:placeholder-shown) ~ label,
.form-field select:focus ~ label,
.form-field select:valid ~ label,
.form-field textarea:focus ~ label,
.form-field textarea:not(:placeholder-shown) ~ label {
  top: -0.5rem;
  font-size: 0.625rem;
  color: var(--accent);
}

.form-field select {
  appearance: none;
  cursor: pointer;
  border-radius: 0;
}

.form-field select option {
  background: var(--bg-dark);
  color: var(--text-light);
}

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

.form-field--full {
  margin-bottom: 2rem;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1rem 2.25rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.btn-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-submit svg {
  transition: transform 0.3s;
}

.btn-submit:hover svg {
  transform: translateX(4px);
}

.form-note {
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.3);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 6vh, 5rem) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-craft {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Animations --- */
.anim-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in grids */
.numbers-grid .anim-in:nth-child(2) { transition-delay: 0.08s; }
.numbers-grid .anim-in:nth-child(3) { transition-delay: 0.16s; }
.numbers-grid .anim-in:nth-child(4) { transition-delay: 0.24s; }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

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

  .nav-links.open {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 99;
  }

  .nav-links.open a {
    font-size: 1.5rem;
    color: var(--text);
  }

  .nav-toggle { display: block; z-index: 101; }

  .nav-toggle.active .line-top {
    transform: rotate(45deg) translate(3.5px, 3.5px);
  }
  .nav-toggle.active .line-bot {
    transform: rotate(-45deg) translate(3.5px, -3.5px);
  }

  .hero-title {
    font-size: clamp(3rem, 14vw, 6rem);
  }

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

  .circle-cta {
    width: 100px;
    height: 100px;
  }

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .accordion-content {
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .hero { padding-bottom: 2rem; }

  .pill { font-size: 0.625rem; padding: 0.3rem 0.75rem; }

  .section-heading {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}
