/* =============================================
   Luke Morris — B2B Technical Copywriter
   Design: Editorial / refined with warmth
   Palette: Deep slate, warm off-white, amber accent
   ============================================= */

:root {
  --ink: #1c1c1c;
  --ink-soft: #3a3a3a;
  --paper: #f8f7f5;
  --paper-mid: #eeece8;
  --amber: #bb4039;
  --amber-light: #d45550;
  --slate: #2a2a2a;
  --text: #2c2c2c;
  --text-muted: #6b6b6b;
  --border: #dddad4;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --max-w: 1140px;
  --section-pad: 5rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 400; }
em { color: var(--amber); font-style: italic; }
p { color: var(--text); }

.lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 700px;
}
.lead.centered { margin: 0 auto; text-align: center; }

/* ---- Layout ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-cta {
  background: var(--amber) !important;
  color: white !important;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--amber-light) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-block;
  background: var(--amber);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--amber-light); transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  padding: 0.8rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover { background: var(--ink); color: white; }

.btn-full { width: 100%; text-align: center; }

/* ---- Hero (Homepage) ---- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 8rem 2.5rem 5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.2rem;
}

.hero-headline {
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.8;
}

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

/* Hero graphic */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-graphic {
  position: relative;
  width: 420px;
  height: 420px;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  border-radius: 50%;
  mask-image: radial-gradient(circle, black 40%, transparent 75%);
  opacity: 0.6;
}

.orbit {
  position: absolute;
  top: 50%; left: 50%;
  border: 1px solid var(--border);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 20s linear infinite;
}
.orbit-1 { width: 200px; height: 200px; animation-duration: 18s; }
.orbit-2 { width: 300px; height: 300px; animation-duration: 28s; animation-direction: reverse; border-color: rgba(187,64,57,0.2); }
.orbit-3 { width: 380px; height: 380px; animation-duration: 40s; }

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.node {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--amber);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.node-1 { top: 50%; left: 50%; width: 16px; height: 16px; background: var(--slate); }
.node-2 { top: 20%; left: 68%; animation: pulse 3s ease-in-out infinite; }
.node-3 { top: 70%; left: 22%; animation: pulse 3s ease-in-out infinite 1s; }
.node-4 { top: 55%; left: 78%; width: 7px; height: 7px; animation: pulse 3s ease-in-out infinite 2s; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.7); }
}

/* ---- Specialism Section ---- */
.specialism {
  background: var(--ink);
  padding: var(--section-pad) 0;
}

.specialism-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 3rem;
}

.specialism-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.spec-item {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
}

.spec-num {
  font-size: 0.75rem;
  color: var(--amber);
  font-weight: 500;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.8rem;
}

.spec-item h3 {
  font-family: var(--font-display);
  color: white;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.spec-item p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 300;
}

/* ---- Testimonial Strip ---- */
.testimonial-strip {
  background: var(--slate);
  padding: 4rem 0;
}

.testimonial-strip blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  color: white;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---- CTA Section ---- */
.cta-section {
  padding: var(--section-pad) 0;
  background: var(--paper-mid);
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  margin-bottom: 2rem;
}

/* ---- Page Hero ---- */
.page-hero {
  padding: 10rem 0 5rem;
  background: var(--ink);
}

.page-hero-tag {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
}

.page-hero h1 {
  color: white;
  letter-spacing: -0.02em;
}

/* ---- Prose Section ---- */
.prose-section {
  padding: var(--section-pad) 0;
}

.prose-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 5rem;
  align-items: start;
}

.prose-body p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}

.prose-body p.lead {
  font-size: 1.25rem;
  color: var(--ink-soft);
  font-weight: 300;
}

/* Aside */
.aside-card {
  background: var(--paper-mid);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.8rem;
  margin-bottom: 1.5rem;
}

.aside-card h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-bottom: 1rem;
}

.aside-list {
  list-style: none;
  padding: 0;
}

.aside-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.aside-list li:last-child { border-bottom: none; }

.aside-quote blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- Services ---- */
.services-section {
  padding: var(--section-pad) 0;
  background: var(--paper-mid);
}

.section-title {
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

.section-intro {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

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

.service-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}

.service-icon {
  color: var(--amber);
  font-size: 0.6rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.8rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Sectors ---- */
.sectors-section {
  padding: var(--section-pad) 0;
}

.sectors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.sector-tag {
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 1.1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
  cursor: default;
}

.sector-tag:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* ---- Process ---- */
.process-section {
  padding: var(--section-pad) 0;
  background: var(--ink);
}

.process-section .section-title {
  color: white;
  margin-bottom: 3rem;
}

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

.process-step {
  border-top: 2px solid var(--amber);
  padding-top: 1.5rem;
}

.step-num {
  display: block;
  font-size: 2rem;
  font-family: var(--font-display);
  color: var(--amber);
  opacity: 0.4;
  margin-bottom: 0.5rem;
}

.process-step h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: white;
  margin-bottom: 0.7rem;
}

.process-step p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

/* ---- Portfolio ---- */
.work-section {
  padding: var(--section-pad) 0;
}

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

.work-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  transition: border-color 0.2s;
}

.work-card:hover { border-color: var(--amber); }

.work-card-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.work-type {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--amber);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

.work-client {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.work-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: var(--ink);
}

.work-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.work-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.work-tag {
  font-size: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.2rem 0.7rem;
  color: var(--text-muted);
}

.work-link {
  font-size: 0.875rem;
  color: var(--amber);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.work-link:hover { color: var(--amber-light); }

.portfolio-cta {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* ---- Footer ---- */
.footer {
  background: var(--ink);
  padding: 2.5rem 0;
}

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

.footer span {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.35);
}

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

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--amber); }

/* Hero photo */
.hero-photo {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--amber);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.aside-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.aside-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.testimonial-strip cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-style: normal;
  text-align: center;
}

.aside-quote cite {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 7rem 2rem 4rem;
    gap: 3rem;
  }
  .hero-visual { display: none; }
  .specialism-grid,
  .services-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .prose-container { grid-template-columns: 1fr; gap: 3rem; }
  .work-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; background: #f8f7f5; padding: 5rem 2rem 2rem; gap: 1.2rem; z-index: 200; box-shadow: 0 8px 24px rgba(0,0,0,0.12); border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links li { font-size: 1.2rem; }
  .nav-toggle { display: block; z-index: 201; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
}

/* ---- Nav logo name ---- */
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-left: 0.6rem;
}

/* ---- Mobile hero photo ---- */
.hero-photo-mobile {
  display: none;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--amber);
  margin: 0 auto 2rem;
}

.hero-img-mobile {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 900px) {
  .hero-photo-mobile {
    display: block;
  }
}

/* ---- Clients strip ---- */
.clients-strip {
  background: var(--paper-mid);
  padding: 1.8rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.clients-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.clients-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  align-items: center;
}

.clients-list span {
  font-size: 0.875rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ---- Portfolio teaser ---- */
.portfolio-teaser {
  padding: var(--section-pad) 0;
  background: var(--paper-mid);
}

.portfolio-teaser-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.portfolio-teaser-header h2 {
  margin: 0;
}

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

.teaser-card {
  text-decoration: none;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--paper);
  transition: transform 0.2s, border-color 0.2s;
  display: block;
}

.teaser-card:hover {
  transform: translateY(-3px);
  border-color: var(--amber);
}

.teaser-card-visual {
  height: 160px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
}

.teaser-automotive {
  background: linear-gradient(135deg, #1c1c1c 0%, #2d1a00 100%);
}

.teaser-medical {
  background: linear-gradient(135deg, #1a1a2e 0%, #3d0000 100%);
}

.teaser-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.06);
  letter-spacing: -0.05em;
  user-select: none;
  white-space: nowrap;
}

.teaser-label-wrap {
  position: relative;
  z-index: 1;
}

.teaser-type {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--amber);
  color: white;
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
}

.teaser-card-body {
  padding: 1.5rem;
}

.teaser-client {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.teaser-card-body h3 {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.teaser-sector {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Availability badge ---- */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #2d7a3a;
  background: rgba(45,122,58,0.1);
  border: 1px solid rgba(45,122,58,0.2);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

/* ---- CTA sub text ---- */
.cta-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.cta-email-link {
  color: var(--amber);
  text-decoration: none;
}

.cta-email-link:hover {
  text-decoration: underline;
}

/* ---- Prose pull quote ---- */
.prose-pullquote {
  border-left: 3px solid var(--amber);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--paper-mid);
  border-radius: 0 6px 6px 0;
}

.prose-pullquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem !important;
}

.prose-pullquote cite {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ---- Work cards with visuals ---- */
.work-card-link {
  text-decoration: none;
  display: block;
}

.work-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  background: var(--paper);
}

.work-card-link:hover .work-card {
  border-color: var(--amber);
  transform: translateY(-2px);
}

.work-card-visual {
  height: 140px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.2rem;
}

.work-visual-automotive {
  background: linear-gradient(135deg, #1c1c1c 0%, #2d1a00 60%, #bb4039 100%);
}

.work-visual-medical {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a3a4a 60%, #bb4039 100%);
}

.work-visual-ai {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1a2a 60%, #bb4039 100%);
}

.work-visual-f1 {
  background: linear-gradient(135deg, #1a0000 0%, #2d0000 60%, #bb4039 100%);
}

.work-visual-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.07);
  letter-spacing: -0.05em;
  user-select: none;
}

.work-visual-meta {
  position: relative;
  z-index: 1;
}

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

.work-card-content .work-card-header {
  margin-bottom: 0.6rem;
  display: block;
}

.work-card-content h3 {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.7rem;
  line-height: 1.4;
}

.work-card-content .work-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.work-card-content .work-link {
  font-size: 0.875rem;
  color: var(--amber);
  font-weight: 500;
  display: block;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .teaser-grid { grid-template-columns: 1fr; }
  .portfolio-teaser-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .clients-list { gap: 0.5rem 1.5rem; }
}

/* ---- Nav open state (mobile menu) ---- */
.nav-open {
  background: #f8f7f5 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 199 !important;
}
