@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,400;1,700&display=swap');

:root {
  --ink: #1c1c1c;
  --paper: #ffffff;
  --footer-bg: #dcdcdc;
  --accent: #1c1c1c;
  --line: #e2e2e2;
  --muted: #555555;
  --max: 1500px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 { font-family: 'Roboto', sans-serif; font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; font-weight: 700; }

p { margin: 0 0 1.1em; }
a { color: var(--ink); text-decoration: underline; }
a:hover { opacity: 0.7; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 4vw; }

/* Header */
header.site { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 100; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding: 0.5vw 4vw; position: relative; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { height: 65px; width: auto; display: block; }
.logo-text { font-size: 1.4rem; font-weight: 700; color: var(--ink); }
nav.primary { display: flex; gap: 32px; }
nav.primary a { color: var(--ink); font-size: 1rem; font-weight: 500; text-decoration: none; }
nav.primary a[aria-current="page"] { text-decoration: underline; }
nav.primary a:hover { text-decoration: underline; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 10px 14px; margin: -10px -14px; min-width: 48px; min-height: 48px; color: var(--ink); -webkit-tap-highlight-color: rgba(0,0,0,0.08); }
@media (max-width: 860px) {
  nav.primary { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 200; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px 32px 18px; }
  nav.primary.open { display: flex; }
  nav.primary a { padding: 14px 0; font-size: 1.05rem; }
  .nav-toggle { display: block; }
}

/* Buttons */
.btn {
  display: inline-block; border-radius: 999px; padding: 14px 30px;
  font-weight: 600; font-size: 0.85rem; text-decoration: none;
  border: 2px solid var(--ink); cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: transparent; color: var(--ink); opacity: 1; text-decoration: none; }

/* Hero (home page) */
.hero { background: var(--ink); color: #fff; padding: 90px 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero h1 { white-space: normal; font-size: 32px; } .hero-photo { margin: 0 auto; } }
.hero h1 { margin-top: 0; color: #fff; text-transform: uppercase; font-weight: 700; letter-spacing: 0; font-size: 42px; line-height: 1.2; max-width: none; white-space: nowrap; }
.hero .lede { font-size: 1.25rem; margin-top: 36px; line-height: 1.6; }
.hero .lede strong { font-weight: 700; text-transform: uppercase; }
.hero .links { margin: 44px 0 32px; font-size: 1.05rem; }
.hero .links a { color: #fff; }
.hero .btn-dark { background: #fff; color: var(--ink); border-color: #fff; text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.85rem; }
.hero .btn-dark:hover { background: transparent; color: #fff; }
.hero-photo { width: 100%; max-width: 420px; aspect-ratio: 1/1; object-fit: cover; display: block; margin-left: auto; }

.statement-band { padding: 56px 0; text-align: center; }
.statement-band p { max-width: 820px; margin: 0 auto; font-size: 1.3rem; font-weight: 500; }

/* Generic page intro */
.page-intro { padding: 56px 0 24px; }
.page-intro h1 { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 400; }

/* About page */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; padding: 40px 0; }
.about-grid > div > h1:first-child, .about-grid > div > h2:first-child { margin-top: 0; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid img.headshot { width: 100%; object-fit: cover; }
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; padding: 24px 0 40px; }
.logo-strip img { height: 42px; width: auto; max-width: 140px; object-fit: contain; }
.center-cta { text-align: center; padding-bottom: 40px; }

/* Services */
.service-row { display: grid; grid-template-columns: 336px 1fr; gap: 48px; padding: 40px 0; align-items: start; }
@media (max-width: 720px) { .service-row { grid-template-columns: 1fr; } }
.service-row img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.service-row h3 { margin-top: 0; margin-bottom: 14px; font-size: 29px; line-height: 1.25; }
.service-row a { font-weight: 700; font-style: italic; }

/* Work grid */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; padding: 40px 0 60px; }
@media (max-width: 860px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }
.work-card { text-decoration: none; color: var(--ink); display: block; }
.work-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; margin-bottom: 16px; }
.work-card h3 { font-size: 1.15rem; font-weight: 600; }
.work-card:hover { opacity: 0.8; }

/* Case study pages */
.case-hero-img { width: 100%; max-height: 420px; object-fit: cover; margin: 8px 0 32px; }
.case-body { max-width: 780px; }
.case-body p { max-width: none; }
.case-quote { font-size: 1.25rem; font-style: italic; font-weight: 500; margin: 8px 0 32px; }
.case-fine-print { font-size: 0.85rem; color: var(--muted); font-style: italic; }
.case-nav { display: flex; justify-content: space-between; gap: 24px; padding: 36px 0; border-top: 1px solid var(--line); margin-top: 24px; font-size: 0.95rem; }
.case-nav a { max-width: 45%; }
.case-nav .next { text-align: right; margin-left: auto; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; padding: 40px 0 80px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid h1 { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 400; }
form.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; }
form.contact-form .req { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 480px) { .name-row { grid-template-columns: 1fr; } }
form.contact-form input, form.contact-form textarea {
  width: 100%; font-family: inherit; font-size: 1rem; padding: 14px 18px;
  border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink);
  margin-bottom: 20px;
}
form.contact-form textarea { border-radius: 20px; resize: vertical; min-height: 130px; }
form.contact-form button { border: none; }

/* Footer */
footer.site { background: var(--footer-bg); padding: 36px 0; margin-top: 0; }
footer.site .wrap { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; text-align: center; align-items: start; }
@media (max-width: 700px) { footer.site .wrap { grid-template-columns: 1fr; } }
footer.site .footer-left { text-align: center; }
footer.site strong { font-weight: 700; }
footer.site a { color: var(--ink); text-decoration: none; }
footer.site a.linkedin-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; background: var(--ink); color: #ffffff !important;
  margin-top: 10px; font-weight: 700; font-size: 0.85rem; text-decoration: none;
}
.copyright { font-size: 0.85rem; margin-top: 6px; color: var(--muted); }


/* Mobile corrections */
@media (max-width: 860px) {
  .hero h1 { white-space: normal !important; font-size: 30px !important; }
  .hero { padding: 48px 0; }
  .hero-grid { grid-template-columns: 1fr !important; gap: 32px; }
  .hero-photo { max-width: 100%; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr !important; }
  .service-row { grid-template-columns: 1fr !important; }
  .contact-grid { grid-template-columns: 1fr !important; }
  .logo-img { height: 48px; }
  .logo-text { font-size: 1.1rem; }
}
@media (max-width: 560px) {
  .work-grid { grid-template-columns: 1fr !important; }
  .name-row { grid-template-columns: 1fr !important; }
}

/* Netlify Forms spam honeypot - hidden from humans */
.hidden-field { display: none !important; }

/* Thank-you page */
.thanks { padding: 100px 0 140px; text-align: center; }
.thanks h1 { margin-bottom: 20px; }
.thanks p { max-width: 520px; margin: 0 auto 28px; }

/* Work page intro: "Work" heading aligns with right-hand text */
.work-intro { padding-top: 56px; align-items: start; }
.work-intro h1 { margin-top: 0; font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 400; }
.work-intro h2 { margin-top: 0; }


/* Case study: two-column layout (title+quote left, body right) — matches original */
.case-layout { display: grid; grid-template-columns: 11fr 8fr; gap: 5.5%; padding: 56px 0 24px; align-items: start; }
.case-layout .case-head h1 { margin-top: 0; }
.case-layout .case-head .case-quote { margin: 24px 0 0; }
.case-layout .case-body { max-width: none; }
.case-layout .case-body h3:first-child { margin-top: 0; }
@media (max-width: 900px) {
  .case-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
}

/* Desktop: hide case-study hero image entirely (matches original site). Mobile keeps it. */
@media (min-width: 901px) {
  .case-hero-img { display: none; }
}
