/* Eastbank Studio */
:root {
  --mist: #EDF1EF;
  --shore: #E1E8E5;
  --white: #FFFFFF;
  --ink: #17313A;
  --ink-soft: #4A636B;
  --river: #2F6F78;
  --river-pale: #CFE0DE;
  --straw: #D8B24A;
  --line: #C4D1CD;

  --display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Newsreader", Georgia, "Times New Roman", serif;

  --wrap: 72rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.1875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--river); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--straw); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}
h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-stretch: 85%; }
h3 { font-size: 1.3rem; font-weight: 650; letter-spacing: -0.005em; }
p { margin: 0; }

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

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--white); padding: 0.75rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons and links */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.05rem;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--river); color: var(--white); }
.btn-small { font-size: 0.95rem; padding: 0.55rem 1.05rem; }
.text-link {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  text-decoration-color: var(--straw);
  text-decoration-thickness: 3px;
}
.text-link:hover { color: var(--river); }

/* Header */
.site-header { background: var(--mist); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.wordmark {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--display); font-weight: 800; font-size: 1.3rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
}
.wordmark .mark { width: 2rem; height: 2rem; }
.wordmark-sub { font-weight: 400; color: var(--ink-soft); }
nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-family: var(--display); font-weight: 500; font-size: 1rem; color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--river); text-decoration: underline; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.river {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 38%; height: 100%;
}
.river-band { fill: none; stroke: var(--river-pale); stroke-width: 70; stroke-linecap: round; }
.river-line {
  fill: none; stroke: var(--river); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.ready .river-line { transition: stroke-dashoffset 2.4s cubic-bezier(.5,.1,.25,1); stroke-dashoffset: 0; }
.river-h { display: none; }
.nowrap { white-space: nowrap; }
.grass path { fill: none; stroke: var(--straw); stroke-width: 3; stroke-linecap: round; }

.hero-inner {
  position: relative;
  padding-top: clamp(4rem, 10vw, 8rem);
  padding-bottom: clamp(4rem, 10vw, 7.5rem);
  padding-left: calc(var(--pad) + 36%);
}
.hero-place {
  font-family: var(--display); font-weight: 500; font-size: 1rem;
  color: var(--river); margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.6rem);
  font-weight: 750;
  font-stretch: 80%;
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 14ch;
  text-wrap: balance;
}
.lede { font-size: 1.3rem; color: var(--ink-soft); max-width: 34rem; margin-top: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2.25rem; }

/* Sections */
.work, .services, .process, .contact { padding: clamp(4rem, 9vw, 7rem) 0; }
.work { background: var(--white); }
.services { background: var(--mist); }
.process { background: var(--shore); }
.contact { background: var(--white); }

.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 4rem; align-items: end; margin-bottom: 3rem; }
.section-head p { color: var(--ink-soft); max-width: 32rem; }

/* Work */
.work h2 { margin-bottom: 2.5rem; }
.case { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.case-text h3 { font-size: 2rem; font-stretch: 85%; }
.case-meta { font-family: var(--display); color: var(--river); font-size: 1rem; margin: 0.35rem 0 1.25rem; }
.case-text > p:not(.case-meta) { max-width: 34rem; }
.case-list { margin: 1.25rem 0 1.75rem; padding: 0; list-style: none; }
.case-list li { padding: 0.45rem 0 0.45rem 1.4rem; border-top: 1px solid var(--line); position: relative; font-size: 1.05rem; }
.case-list li:last-child { border-bottom: 1px solid var(--line); }
.case-list li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 0.55rem; height: 2px; background: var(--straw); }

/* Browser mock of the Haven site */
.case-shot { background: var(--shore); border-radius: 14px; padding: clamp(1.25rem, 3vw, 2.25rem); }
.browser { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(23, 49, 58, 0.45); }
.browser-bar { display: flex; align-items: center; gap: 0.35rem; background: #E7ECEA; padding: 0.55rem 0.75rem; }
.browser-bar span { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #C3CECA; }
.browser-bar p { margin-left: 0.75rem; font-family: var(--display); font-size: 0.72rem; color: var(--ink-soft); background: var(--white); padding: 0.15rem 0.75rem; border-radius: 4px; }
.browser-body { font-family: var(--display); }
.mock-nav { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; border-bottom: 1px solid #E7ECEA; font-size: 0.7rem; }
.mock-nav b { color: #25405A; margin-right: auto; }
.mock-nav i { display: block; width: 1.6rem; height: 0.3rem; border-radius: 2px; background: #D6DEE3; }
.mock-nav em { font-style: normal; font-size: 0.6rem; background: #25405A; color: #fff; padding: 0.2rem 0.5rem; border-radius: 3px; }
.mock-hero { background: linear-gradient(180deg, #EAF1F5, #F8FAFB); padding: 1.6rem 1.2rem 1.5rem; }
.mock-kicker { font-size: 0.62rem; color: #4F7A92; margin-bottom: 0.35rem; }
.mock-h { font-family: Georgia, serif; font-size: clamp(1.05rem, 2.2vw, 1.45rem); color: #25405A; line-height: 1.15; max-width: 14em; }
.mock-btns { display: flex; gap: 0.4rem; margin-top: 0.9rem; }
.mock-btns em { font-style: normal; font-size: 0.6rem; background: #25405A; color: #fff; padding: 0.3rem 0.6rem; border-radius: 3px; }
.mock-btns em.ghost { background: transparent; color: #25405A; border: 1px solid #25405A; }
.mock-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; padding: 1rem 1.2rem 1.3rem; }
.mock-rows i { height: 2.6rem; border-radius: 4px; background: #F0F3F5; border-top: 3px solid #BCD0DB; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(1.5rem, 3vw, 3rem); }
.service { border-top: 2px solid var(--ink); padding: 1.25rem 0 2.5rem; }
.service h3 { margin-bottom: 0.6rem; }
.service p { font-size: 1.05rem; color: var(--ink-soft); }
.service-note { border-top-color: var(--straw); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 1.3rem; height: 2px;
  background: var(--river); opacity: 0.35;
}
.steps li { counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--shore); border: 2px solid var(--river);
  font-family: var(--display); font-weight: 700; color: var(--river);
  margin-bottom: 1.1rem; position: relative;
}
.steps h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.steps p { font-size: 1rem; color: var(--ink-soft); line-height: 1.5; }

/* Clients */
.clients { background: var(--ink); color: var(--mist); padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.clients-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1.5rem 4rem; align-items: start; }
.clients h2 { color: var(--white); }
.clients p { font-size: 1.3rem; line-height: 1.55; color: #D5E1DE; max-width: 40rem; }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-intro p { color: var(--ink-soft); margin-top: 1rem; max-width: 26rem; }
.contact-details { margin: 2rem 0 0; }
.contact-details div { display: grid; grid-template-columns: 6rem 1fr; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.contact-details div:last-child { border-bottom: 1px solid var(--line); }
.contact-details dt { font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); padding-top: 0.15rem; }
.contact-details dd { margin: 0; }

.contact-form { background: var(--mist); border-radius: 14px; padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-family: var(--display); font-weight: 600; font-size: 0.98rem; margin-bottom: 0.4rem; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 1.05rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--river); box-shadow: 0 0 0 3px rgba(47, 111, 120, 0.2); }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--mist); border-top: 1px solid var(--line); padding: 2.5rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; align-items: baseline; font-size: 1rem; color: var(--ink-soft); }
.footer-name { font-family: var(--display); font-weight: 800; color: var(--ink); }
.copy { margin-left: auto; }

/* Simple pages (thanks, 404) */
.simple { min-height: 70vh; display: grid; align-items: center; padding: 5rem 0; }
.simple h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-stretch: 80%; line-height: 1.02; max-width: 16ch; }
.simple p { color: var(--ink-soft); font-size: 1.25rem; margin: 1.25rem 0 2rem; max-width: 34rem; }

/* Responsive */
@media (max-width: 960px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 1.25rem; right: auto; top: 0; bottom: 3rem; width: 2px; height: auto; }
  .steps li { display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 1.25rem; padding-bottom: 1.75rem; }
  .steps li::before { grid-row: span 2; margin-bottom: 0; }
  .case { grid-template-columns: 1fr; }
  .clients-inner, .contact-inner, .section-head { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 1.125rem; }
  .nav-links { display: none; }
  .river { display: none; }
  .river-h { display: block; position: absolute; top: 0; left: 0; width: 100%; height: 7.5rem; }
  .river-h .river-band { stroke-width: 34; vector-effect: non-scaling-stroke; }
  .river-h .river-line { vector-effect: non-scaling-stroke; }
  .hero-inner { padding-left: var(--pad); padding-top: 8.5rem; }
  .mock-nav i { display: none; }
  .service-grid, .field-row { grid-template-columns: 1fr; }
  .copy { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .river-line, .ready .river-line { transition: none; stroke-dashoffset: 0; }
}
