@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,500&family=Work+Sans:wght@400;500;600&family=Caveat:wght@500;700&display=swap');

:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --ink: #1a1a18;
  --ink-soft: #4a4844;
  --amber: #ffb300;
  --amber-deep: #c9860a;
  --amber-tint: #ffe7a3;
  --line: #e7e2d6;
  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;
  --font-hand: 'Caveat', cursive;
  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  cursor: none;
}

@media (max-width: 900px), (hover: none) {
  body { cursor: auto; }
  #cursor-dot, #cursor-ring { display: none; }
}

a {
  color: var(--ink);
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: var(--amber-deep); }

/* Links that end in a → arrow, nudged on hover like a pointing hand */
.arrow-link .nudge {
  display: inline-block;
  transition: transform 0.2s ease;
}
.arrow-link:hover .nudge { transform: translateX(4px); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.4em;
}

p { margin: 0 0 1em; }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Custom cursor */
#cursor-dot, #cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
#cursor-dot {
  width: 6px; height: 6px;
  background: var(--amber-deep);
  transition: transform 0.08s ease-out;
}
#cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid var(--amber);
  transition: transform 0.15s ease-out, width 0.15s, height 0.15s, opacity 0.15s;
  opacity: 0.7;
}
body.cursor-hover #cursor-ring {
  width: 52px; height: 52px;
  opacity: 1;
}

/* Header / masthead */
header.site {
  border-bottom: 2px solid var(--ink);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 22px 24px;
  flex-wrap: wrap;
  gap: 10px;
}
.masthead .name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.masthead .name a { text-decoration: none; }
nav.main-nav {
  display: flex;
  gap: 26px;
  font-size: 0.95rem;
  font-weight: 500;
}
nav.main-nav a {
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}
nav.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width 0.2s ease;
}
nav.main-nav a:hover::after,
nav.main-nav a.active::after { width: 100%; }

nav.sentence-nav {
  gap: 0.32em;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
nav.sentence-nav a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
nav.sentence-nav a::after { display: none; }

/* Hero */
.hero {
  padding: 56px 0 50px;
  border-bottom: 1px dashed var(--line);
}
.hero .kicker {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--amber-deep);
  transform: rotate(-1.5deg);
  display: inline-block;
  margin-bottom: 10px;
}
.hero-headline {
  width: 100%;
  margin: 0 0 30px;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.hero-headline .accent {
  font-style: italic;
}

/* Hand-drawn circle scribble, for marking up a key phrase like a copyeditor's pen */
.scribble-circle {
  position: relative;
  display: inline-block;
}
.scribble-circle::after {
  content: '';
  position: absolute;
  left: -16%;
  right: -16%;
  top: -26%;
  bottom: -20%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='110' viewBox='0 0 240 110' preserveAspectRatio='none'%3E%3Cpath d='M130 20 C 75 16, 22 35, 18 58 C 15 80, 58 94, 118 95 C 178 96, 218 82, 220 55 C 222 32, 185 18, 138 17 C 133 17, 129 18, 128 21' stroke='%23ffb300' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  transform: rotate(-2deg);
}

/* Hand-drawn arrow nudging toward the primary CTA */
.hero .cta-row {
  position: relative;
}
.cta-arrow {
  position: absolute;
  top: -45px;
  left: 200px;
  width: 70px;
  height: 50px;
  transform: rotate(-4deg);
  pointer-events: none;
}
@media (max-width: 720px) {
  .cta-arrow { display: none; }
}
/* Variant: hook arrow in the open space beside a single button, pointing back at it */
.cta-arrow-right {
  position: absolute;
  top: -4px;
  left: 100%;
  margin-left: 10px;
  width: 62px;
  height: 52px;
  transform: rotate(4deg);
  pointer-events: none;
}
@media (max-width: 720px) {
  .cta-arrow-right { display: none; }
}
.hero-copy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 48px;
}
.hero .sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
@media (min-width: 720px) {
  .hero-copy { grid-template-columns: 1fr 1fr; }
}
.hero .cta-row {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--ink);
  color: var(--bg);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--amber-deep); border-color: var(--amber-deep); color: #fff; transform: translateY(-2px); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--bg); }

/* Section headings */
.section {
  padding: 44px 0;
}
.section-label {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--amber-deep);
  transform: rotate(-1deg);
  display: inline-block;
  margin-bottom: 6px;
}
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 24px;
}

/* Services */
.service-list {
  border-top: 1px dashed var(--line);
  margin-top: 16px;
}
.service-row {
  padding: 26px 0;
  border-bottom: 1px dashed var(--line);
}
.service-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}
.service-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--amber-deep);
}
.service-head h3 {
  font-size: 1.4rem;
  margin: 0;
}
.service-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 40px;
}
.service-hook {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  border-left: 3px solid var(--amber);
  padding-left: 18px;
  margin: 0;
}
.service-content p:last-child {
  color: var(--ink-soft);
  margin: 0;
}
@media (min-width: 800px) {
  .service-content { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
}

/* Press list */
.press-list {
  border-top: 1px dashed var(--line);
}
.press-row {
  display: block;
  padding: 18px 4px;
  border-bottom: 1px dashed var(--line);
  text-decoration: none;
  color: var(--ink);
}
.press-row:hover .press-title { color: var(--amber-deep); }
.press-row:hover .press-title::after { width: 100%; }
.press-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.press-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 2px;
  display: inline-block;
  min-width: 0;
  max-width: 100%;
}
.press-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width 0.2s ease;
}
.press-teaser {
  margin: 6px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.press-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
  min-width: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.press-meta .pub {
  color: var(--amber-deep);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
}

/* Card grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 34px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.card:hover {
  transform: translateY(-4px) rotate(-0.3deg);
  box-shadow: 0 14px 26px rgba(20,20,15,0.08);
}
.card .tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-deep);
  font-weight: 600;
}
.card h3 {
  font-size: 1.3rem;
  margin-top: 8px;
}
.card .excerpt {
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.card .date {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 10px;
  display: block;
}

/* Marginalia sticky note */
.marginalia {
  position: absolute;
  top: -14px;
  right: -12px;
  background: var(--amber-tint);
  border: 1px solid var(--amber);
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: var(--radius);
  transform: rotate(4deg);
  box-shadow: 2px 3px 0 rgba(0,0,0,0.06);
  max-width: 180px;
  line-height: 1.2;
  pointer-events: none;
}
.marginalia.left { left: -12px; right: auto; transform: rotate(-4deg); }

/* Case study proof photo */
.case-photo-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 10px 10px 34px;
  box-shadow: 0 14px 30px rgba(20,20,15,0.09);
  transform: rotate(-1.2deg);
  max-width: 480px;
  margin: 10px 0 40px;
}
.case-photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1px;
}
.case-photo-frame .cap {
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--amber-deep);
  text-align: center;
  margin-top: 10px;
}
.card-thumb {
  margin: -26px -24px 16px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.card-thumb img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

/* Selected-work proof blocks */
.proof-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-top: 8px;
}
.proof-block {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 800px) {
  .proof-block { grid-template-columns: 1fr; }
}
.proof-tag {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-deep);
  font-weight: 600;
  margin-bottom: 8px;
}
.proof-text h3 { font-size: 1.5rem; margin-bottom: 14px; }
.proof-text p { color: var(--ink-soft); }

.proof-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.proof-artifact {
  display: block;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 8px 10px;
  box-shadow: 0 10px 22px rgba(20,20,15,0.08);
  transform: rotate(-1deg);
  text-decoration: none;
}
.proof-artifact img, .proof-artifact video {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: contain;
  border-radius: 1px;
  background: var(--surface);
}
.proof-panel .cap {
  font-family: var(--font-hand);
  font-size: 0.95rem;
  color: var(--amber-deep);
  text-align: center;
  margin: 0;
}
.proof-panel .cap a { color: var(--amber-deep); }

.proof-testimonial {
  background-color: var(--surface);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 27px, rgba(26,26,24,0.05) 27px, rgba(26,26,24,0.05) 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testimonial {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--ink);
  margin: 0;
}
.proof-attribution {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.proof-attribution img {
  display: block;
  height: 30px;
  width: auto;
  max-width: 96px;
  object-fit: contain;
  flex-shrink: 0;
}
.proof-attribution-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.proof-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
}
.proof-role {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* Testimonial wall */
.testimonial-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  margin-top: 8px;
}
.testimonial-card {
  position: relative;
  background-color: var(--surface);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 27px, rgba(26,26,24,0.05) 27px, rgba(26,26,24,0.05) 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  margin: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.testimonial-card:nth-child(3n+2) { transform: rotate(-0.5deg); }
.testimonial-card:nth-child(3n) { transform: rotate(0.6deg); }
.testimonial-card:hover {
  transform: translateY(-4px) rotate(0deg);
  box-shadow: 0 14px 26px rgba(20,20,15,0.08);
}
.testimonial-card::before {
  content: '\201C';
  display: block;
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--amber);
  margin-bottom: -8px;
}
.testimonial-card p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
  margin: 0;
}
.testimonial-card cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber-deep);
  margin-top: 18px;
}
.testimonial-card cite span {
  display: block;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin-top: 2px;
}

/* About block */
.about-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 8px;
}
.about-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 14px 26px rgba(20,20,15,0.08);
  flex-shrink: 0;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}
.about-copy p {
  color: var(--ink-soft);
  margin: 0 0 16px;
  max-width: 68ch;
}
.about-copy p:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .about-block { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .about-photo { width: 160px; height: 160px; }
}

/* Case study / post detail */
.detail-header {
  padding: 60px 0 30px;
  border-bottom: 1px dashed var(--line);
}
.detail-header .tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-deep);
  font-weight: 600;
}
.detail-header h1 { margin-top: 10px; }
.detail-header .dek {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-top: 12px;
}
.detail-byline {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--amber-deep);
  margin: 14px 0 0;
  transform: rotate(-1deg);
  display: inline-block;
}

.brief-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 40px 0;
}
@media (max-width: 700px) { .brief-result { grid-template-columns: 1fr; } }
.brief-result .col {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 22px 24px;
  border-radius: var(--radius);
}
.brief-result .col h4 {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--amber-deep);
  margin-bottom: 10px;
}

article.markdown-body {
  max-width: 70ch;
  padding: 20px 0 60px;
}
article.markdown-body h2 { margin-top: 1.4em; font-size: 1.5rem; }
article.markdown-body h3 { margin-top: 1.2em; font-size: 1.2rem; }
article.markdown-body img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  margin: 1.2em 0;
  box-shadow: 0 10px 22px rgba(20,20,15,0.08);
}
article.markdown-body blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  border-left: 3px solid var(--amber);
  margin: 1.4em 0;
  padding: 4px 0 4px 22px;
  color: var(--ink);
}
article.markdown-body ul { padding-left: 22px; }
article.markdown-body code {
  background: var(--amber-tint);
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 0.9em;
}

/* Footer */
footer.site {
  border-top: 2px solid var(--ink);
  margin-top: 40px;
  padding: 40px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
footer.site .foot-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
footer.site a { color: var(--ink-soft); }

/* Contact form */
form.contact-form {
  max-width: 560px;
  display: grid;
  gap: 16px;
  margin-top: 30px;
}
form.contact-form label {
  font-weight: 600;
  font-size: 0.92rem;
  display: block;
  margin-bottom: 6px;
}
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--surface);
}
form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--amber-deep);
}
form.contact-form textarea { resize: vertical; min-height: 140px; }

.empty-state {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--ink-soft);
  padding: 30px 0;
}

.loading-text {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--ink-soft);
}
