/* ========================================
   JUDE BARTLETT — PORTFOLIO
   ======================================== */

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #F5F5F3;
  --bg-subtle: #EFEFED;
  --text-primary: #1B1B1B;
  --text-secondary: #6B6B6B;
  --text-tertiary: #9A9A98;
  --border: #E0E0DC;
  --border-light: #EAEAE6;
  --accent: #4A4A4A;
  --accent-hover: #333;
  --accent-subtle: rgba(74, 74, 74, 0.06);
  --white: #FAFAF8;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'EB Garamond', Georgia, serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: 400;
}

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

img {
  max-width: 100%;
  display: block;
}

/* --- CONTAINER --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
}

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

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  font-weight: 500;
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: #fff;
  color: #000 !important;
  border-color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 20px;
  height: 1.5px;
  background: #fff;
  transition: all 0.2s ease;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

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

.btn-secondary:hover {
  border-color: var(--text-primary);
}

/* --- HERO --- */
.hero {
  padding: 0;
  padding-top: 72px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 72px);
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 2.5rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
}

/* --- SECTIONS --- */
.section {
  padding: 7rem 0;
}

.section-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.label-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.section-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 600px;
}

/* --- ABOUT --- */
.about {
  border-top: 1px solid var(--border-light);
}

.about-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  max-width: 620px;
}

.about-text p:last-child {
  margin-bottom: 0;
  color: var(--text-primary);
  font-weight: 400;
}

/* --- CASE STUDIES --- */
.work {
  border-top: 1px solid var(--border-light);
  background: linear-gradient(180deg, var(--bg) 0%, #F2F2F0 100%);
}

.case-study {
  padding: 4rem 0;
  border-top: 1px solid var(--border-light);
}

.case-study:first-of-type {
  margin-top: 0;
}

.case-header {
  margin-bottom: 3rem;
}

.case-name {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.375rem;
}

.case-industry {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 4rem;
}

.case-block h4 {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}

.case-block p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.case-outcome {
  grid-column: 1 / -1;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.case-outcome p {
  color: var(--text-primary);
  max-width: 720px;
}

/* --- SERVICES --- */
.services {
  border-top: 1px solid var(--border-light);
}

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

.service-card {
  padding: 2.5rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 6px;
}

.service-number {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.service-note {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-style: italic;
  margin-bottom: 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
}

/* --- PROCESS --- */
.process {
  border-top: 1px solid var(--border-light);
  background: linear-gradient(180deg, #F2F2F0 0%, var(--bg) 100%);
}

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

.process-step {
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: var(--white);
}

.process-number {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 1.25rem;
}

.process-step h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.process-step p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.process-detail {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* --- TESTIMONIALS --- */
.testimonials {
  border-top: 1px solid var(--border-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.testimonial {
  padding: 3rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  max-width: 800px;
}

.testimonial blockquote p {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-primary);
  font-style: italic;
}

.testimonial-author {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.author-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.author-title {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.testimonial-author .author-name::after {
  content: "—";
  margin-left: 0.75rem;
  color: var(--text-tertiary);
}

/* --- CONSULTATION --- */
.consultation {
  border-top: 1px solid var(--border-light);
  background: linear-gradient(180deg, var(--bg) 0%, #F2F2F0 50%, var(--bg) 100%);
}

.consult-overview {
  margin-bottom: 4rem;
}

.consult-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.consult-block h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.consult-block p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

/* --- Ideal Client --- */
.consult-ideal {
  margin-bottom: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-light);
}

.consult-ideal > h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

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

.ideal-item {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 6px;
}

.ideal-item h4 {
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.ideal-item p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* --- Application Process --- */
.consult-process {
  margin-bottom: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-light);
}

.consult-process > h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.app-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.app-step {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 6px;
}

.app-step-num {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 1rem;
}

.app-step h4 {
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.app-step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Application Form --- */
.consult-form {
  padding-top: 3rem;
  border-top: 1px solid var(--border-light);
}

.consult-form > h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}

.application-form {
  max-width: 800px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group-full {
  margin-bottom: 1.5rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.form-group .optional {
  color: var(--text-tertiary);
  font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  color: var(--text-primary);
  transition: border-color 0.2s ease;
  line-height: 1.5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6B6B' d='M6 8.825L1.175 4 2.238 2.938 6 6.7 9.763 2.937 10.825 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

.form-submit {
  margin-top: 2rem;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* --- CAPACITY --- */
.capacity {
  border-top: 1px solid var(--border-light);
}

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

.capacity-inner h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.capacity-inner p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* --- FINAL CTA --- */
.final-cta {
  border-top: 1px solid var(--border-light);
  padding: 8rem 0;
}

.final-cta-inner {
  max-width: 560px;
  text-align: center;
  margin: 0 auto;
}

.final-cta-inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.final-cta-inner p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-name {
  font-size: 0.8125rem;
  font-weight: 500;
}

.footer-sep {
  color: var(--text-tertiary);
  font-size: 0.8125rem;
}

.footer-desc {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.footer-right a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

/* --- ANIMATIONS --- */

/* Hero entrance */
.hero-headline,
.hero-sub,
.hero-ctas {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-headline { animation-delay: 0.15s; }
.hero-sub { animation-delay: 0.35s; }
.hero-ctas { animation-delay: 0.55s; }

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

/* Scroll reveal base */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger-children .reveal {
  transition-delay: calc(var(--stagger, 0) * 0.1s);
}

/* Button hover lift + shadow */
.btn-primary {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(27, 27, 27, 0.15);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(27, 27, 27, 0.1);
}

.btn-secondary {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(27, 27, 27, 0.06);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Nav CTA hover */
.nav-cta {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 27, 27, 0.12);
}

/* Nav link underline animation */
.nav-links li:not(:last-child) a {
  position: relative;
}

.nav-links li:not(:last-child) a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links li:not(:last-child) a:hover::after {
  width: 100%;
}

/* Card hover effects */
.ideal-item,
.app-step {
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ideal-item:hover,
.app-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(27, 27, 27, 0.08);
  border-color: var(--border);
}

/* Form input focus animation */
.form-group input,
.form-group select,
.form-group textarea {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

/* Form label shift on focus */
.form-group label {
  transition: color 0.2s ease;
}

.form-group:focus-within label {
  color: var(--text-primary);
}

/* Footer link hover */
.footer-right a {
  position: relative;
}

.footer-right a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-right a:hover::after {
  width: 100%;
}

/* Section border reveal */
.section {
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--border);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.section.is-visible::before {
  width: min(100%, 1200px);
}

/* Smooth page load */
body {
  animation: pageLoad 0.5s ease;
}

@keyframes pageLoad {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

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

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 8rem 0 5rem;
    min-height: auto;
  }

  .hero-headline {
    font-size: 2.5rem;
  }

  .section {
    padding: 5rem 0;
  }

  .services-grid,
  .process-grid,
  .consult-overview-grid,
  .ideal-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .final-cta-inner {
    text-align: left;
  }

  .final-cta {
    padding: 5rem 0;
  }
}
