/* Cameron Walker Counseling */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("fonts/newsreader.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url("fonts/newsreader-italic.woff2") format("woff2");
}

:root {
  --bg: #C4CED6;
  --ink: #1B2228;
  --ink-body: rgba(27, 34, 40, 0.84);
  --ink-rule: rgba(27, 34, 40, 0.18);
  --blue: #2E5670;
  --pale: #EFF3F6;
  --gutter: clamp(22px, 5vw, 76px);
  --display: "Instrument Serif", Georgia, serif;
  --text: "Newsreader", Georgia, serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 24px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 300;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
:where(a):hover { color: var(--blue); }
::selection { background: rgba(46, 86, 112, 0.22); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

img { max-width: 100%; }

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: #EEF2F5;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 16px; color: #EEF2F5; }

.page {
  position: relative;
  isolation: isolate;
  background: var(--bg);
  overflow-x: clip;
}

/* Paper texture behind everything */
.tex {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.tex img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tex--paper { opacity: 0.2; filter: grayscale(1) contrast(0.9); }
.tex--grain { opacity: 0.05; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px var(--gutter) 0;
  animation: cw-fade 0.9s ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
  text-decoration: none;
}

.mark {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
}
.mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-top-color: var(--blue);
  border-left-color: var(--blue);
  border-radius: 50%;
  transform: rotate(-45deg);
}
.mark span {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  background: linear-gradient(145deg, #FFFFFF 0%, #FFFFFF 45%, #E2E9EF 100%);
  font-family: var(--display);
  font-size: 31px;
  line-height: 1;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.mark--sm { width: 62px; height: 62px; margin-top: 2px; }
.mark--sm::before { border-width: 1.5px; }
.mark--sm span { width: 50px; height: 50px; font-size: 23px; border-width: 1.25px; }

.brand-name {
  display: block;
  font-family: var(--display);
  font-size: clamp(21px, 2.1vw, 27px);
  letter-spacing: -0.01em;
}
.brand-tag {
  display: block;
  margin-top: 7px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px clamp(18px, 2.6vw, 34px);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav a:not(.btn) {
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, color 0.25s;
}
.nav a:not(.btn):hover { border-bottom-color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border-radius: 999px;
  background: var(--ink);
  color: #EEF2F5;
  transition: background 0.3s, transform 0.3s;
}
.btn:hover { background: var(--blue); color: #EEF2F5; transform: translateY(-2px); }
.btn--sm { padding: 12px 20px; font-size: 10.5px; letter-spacing: 0.18em; }
.btn--sm:hover { transform: translateY(-1px); }
.btn--lg { padding: 17px 30px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
.btn--light { background: var(--pale); color: var(--ink); }
.btn--light:hover { background: #FFFFFF; color: var(--ink); }
.btn .arrow { font-size: 15px; line-height: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(32px, 5vw, 72px);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 86px) var(--gutter) clamp(48px, 6vw, 90px);
}
.hero-copy { flex: 1 1 400px; min-width: 280px; }

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(46px, 7.4vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  animation: cw-rise 1s 0.12s ease both;
}
h1 span { display: block; }
h1 em { font-style: italic; color: var(--blue); }

.lede {
  max-width: 46ch;
  margin: clamp(26px, 3vw, 38px) 0 0;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.62;
  color: rgba(27, 34, 40, 0.82);
  animation: cw-rise 1s 0.2s ease both;
}
.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: clamp(28px, 3.4vw, 40px);
  animation: cw-rise 1s 0.28s ease both;
}

.portrait {
  position: relative;
  flex: 0 1 340px;
  min-width: 230px;
  margin: 0;
  animation: cw-arch 1.2s 0.34s ease both;
}
.portrait-back {
  position: absolute;
  left: -7%;
  right: 14%;
  top: 10%;
  bottom: -4%;
  background: var(--blue);
  border-radius: 240px 240px 8px 8px;
}
.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 83 / 100;
  border-radius: 260px 260px 10px 10px;
  background: linear-gradient(180deg, #D2DBE3 0%, #B6C3CD 100%);
}
.portrait-frame img {
  display: block;
  width: 112%;
  max-width: none;
  height: 100%;
  margin-left: -6%;
  object-fit: cover;
  object-position: 50% 8%;
  mix-blend-mode: multiply;
  filter: saturate(0.88) contrast(1.04);
}
.portrait figcaption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 16px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.portrait figcaption::after { content: ""; flex: 1; height: 1px; background: rgba(27, 34, 40, 0.2); }

/* ---------- At a glance ---------- */
.glance {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.glance ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin: 0;
  padding: 18px 0;
  list-style: none;
  border-top: 1px solid var(--ink-rule);
  border-bottom: 1px solid var(--ink-rule);
}
.glance li {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 64px);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 92px) var(--gutter);
}
.section-label {
  flex: 0 0 auto;
  width: 96px;
  padding-top: 10px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}
.section-body { flex: 1 1 520px; min-width: 280px; }

h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.section-title { font-size: clamp(30px, 3.9vw, 54px); line-height: 1.06; max-width: 24ch; }

.copy { font-size: 16.5px; line-height: 1.72; margin: 0; color: var(--ink-body); }
.cols { display: flex; flex-wrap: wrap; gap: clamp(24px, 3vw, 56px); }
.cols .copy { flex: 1 1 300px; max-width: 44ch; }

.work {
  margin-top: clamp(48px, 6vw, 96px);
  padding-block: clamp(48px, 6vw, 88px);
  background: linear-gradient(180deg, #FFFFFF 0%, #D6DFE6 100%);
}
.work .cols { margin-top: clamp(30px, 3.6vw, 48px); }

.about { padding-bottom: clamp(56px, 7vw, 104px); }
blockquote {
  max-width: 32ch;
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(24px, 2.9vw, 40px);
  line-height: 1.24;
  letter-spacing: -0.015em;
}
.about-copy { max-width: 48ch; margin-top: clamp(30px, 3.6vw, 46px); }
.about-copy .copy + .copy { margin-top: 18px; }

/* Services */
.services {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #FFFFFF 0%, #CCD7DF 100%);
  border-top: 1px solid rgba(27, 34, 40, 0.1);
  border-bottom: 1px solid rgba(27, 34, 40, 0.1);
}
.services .section { padding-block: clamp(56px, 7vw, 104px); }
.svc-top { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 64px); }

.svc-card {
  flex: 1 1 340px;
  align-self: flex-start;
  max-width: 46ch;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--blue);
}
.svc-title { font-size: 26px; line-height: 1.16; letter-spacing: -0.01em; }
.svc-card .svc-text { margin: 14px 0 0; }
.svc-text { font-size: 15.5px; line-height: 1.7; color: var(--ink-body); }

.svc-indiv { flex: 1 1 280px; max-width: 40ch; }
.svc-indiv h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.16; }
.svc-indiv .svc-text { margin: 14px 0 6px; color: rgba(27, 34, 40, 0.78); }
.svc-indiv ul { margin: 0; padding: 0; list-style: none; }
.svc-indiv li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(27, 34, 40, 0.16);
  font-size: 16px;
}
.svc-indiv li:last-child { border-bottom: 1px solid rgba(27, 34, 40, 0.16); }
.svc-indiv li::before { content: "●"; color: var(--blue); font-size: 12px; }

.svc-modes { display: flex; flex-wrap: wrap; gap: clamp(24px, 3vw, 48px); margin-top: clamp(40px, 5vw, 72px); }
.svc-mode { flex: 1 1 220px; max-width: 32ch; }
.svc-mode h3 {
  margin: 0 0 12px;
  font-family: var(--text);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.svc-mode p { margin: 0; }

/* ---------- Call to action ---------- */
.start {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 108px) var(--gutter);
}
.start-card {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 5.6vw, 88px) clamp(26px, 5vw, 80px);
  border-radius: 4px 4px 180px 4px;
  background: var(--blue);
  color: var(--pale);
}
.eyebrow { display: block; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; }
.start-card h2 {
  max-width: 22ch;
  margin-top: clamp(18px, 2.4vw, 30px);
  font-size: clamp(32px, 4.6vw, 66px);
  line-height: 1.04;
}
.start-card p {
  max-width: 48ch;
  margin: clamp(20px, 2.4vw, 28px) 0 0;
  font-size: 17px;
  line-height: 1.66;
  color: rgba(239, 243, 246, 0.92);
}
.start-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: clamp(28px, 3.4vw, 42px);
}
.start-mail {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(239, 243, 246, 0.5);
  color: var(--pale);
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.3s;
}
.start-mail:hover { color: var(--pale); border-bottom-color: var(--pale); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(40px, 5vw, 64px);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  padding-top: 26px;
  border-top: 1px solid var(--ink-rule);
}
.footer-id {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(27, 34, 40, 0.88);
}
.footer-id > span:not(.mark) > span { display: block; }
.footer-id .name { font-family: var(--display); font-size: 20px; color: var(--ink); }
.footer-mail {
  display: inline-block;
  margin-top: 4px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(27, 34, 40, 0.3);
  text-decoration: none;
}
.badge-link { display: block; flex: 0 0 auto; transition: opacity 0.3s; }
.badge-link:hover { opacity: 0.88; }
.badge { display: block; width: 178px; height: auto; }

/* ---------- Motion ---------- */
@keyframes cw-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes cw-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cw-arch { from { opacity: 0; transform: translateY(26px) scale(0.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* 404 */
.start--full { min-height: 100vh; display: grid; align-content: center; }

/* Press feedback on the email buttons */
.btn:active { transform: translateY(0) scale(0.98); }

/* Consultation form (assets/form.js) */
.formpop-open { overflow: hidden; }
.formpop {
  width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: 20px;
  border: 0; background: transparent; color: var(--ink);
  overflow-y: auto;
}
.formpop[open] { display: grid; place-items: center; }
.formpop::backdrop { background: rgba(27, 34, 40, 0.58); }
.formpop[open]::backdrop { animation: cw-fade 0.2s ease both; }
.formpop-card {
  position: relative;
  width: min(520px, 100%);
  margin: auto;
  padding: 40px clamp(22px, 5vw, 40px) 34px;
  background: var(--pale);
  border: 1px solid var(--blue);
  border-radius: 4px 4px 72px 4px;
  box-shadow: 0 24px 60px rgba(27, 34, 40, 0.3);
  animation: cw-rise 0.28s ease both;
}
.formpop-card [hidden] { display: none; }
.formpop-card .eyebrow { color: var(--blue); }
.formpop-card h2 { margin-top: 12px; font-size: clamp(30px, 6vw, 38px); line-height: 1.04; outline: none; }
.formpop-text { margin: 12px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-body); }

.formpop form { margin-top: 24px; display: grid; gap: 16px; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}
.field input {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(27, 34, 40, 0.4);
  border-radius: 2px;
  background: #FFFFFF;
  color: var(--ink);
  font: 400 16px/1.3 var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: rgba(27, 34, 40, 0.42); }
.field input:hover { border-color: var(--ink); }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 86, 112, 0.22); }
.field input:user-invalid { border-color: #9B2C2C; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.formpop-note { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: rgba(27, 34, 40, 0.7); }
.formpop .btn { justify-self: start; margin-top: 4px; cursor: pointer; border: 0; font-family: var(--text); font-weight: 400; }
.formpop .btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.formpop-error { margin: 0; padding: 12px 14px; border-left: 3px solid #9B2C2C; background: rgba(155, 44, 44, 0.08); font-size: 14.5px; line-height: 1.5; }
.formpop-error a { color: var(--ink); }
.formpop-done { padding: 18px 0 6px; }
.formpop-done .btn { margin-top: 26px; }
.formpop-x {
  position: absolute; top: 12px; right: 16px;
  width: 40px; height: 40px;
  border: 0; background: none; cursor: pointer;
  font: 300 30px/1 var(--text); color: var(--ink);
}
.formpop-x:hover { color: var(--blue); }
