/* ============================================================
   Senechal Consulting — editorial studio
   Palette: warm bone paper · deep ink · terracotta · pine
   Type:    Fraunces (display serif) · Hanken Grotesk (body)
   ============================================================ */

:root {
  --paper:    #f4ede1;
  --paper-2:  #ece2d2;
  --ink:      #1a1613;
  --ink-soft: #4a423a;
  --ink-mute: #8a7f72;
  --rust:     #c8502f;
  --rust-dk:  #a83f22;
  --pine:     #2f4a3f;
  --line:     rgba(26, 22, 19, .14);
  --line-2:   rgba(26, 22, 19, .08);

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --edge: clamp(1.25rem, 5vw, 6rem);
  --maxw: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--rust); color: var(--paper); }

a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.4rem;
}
.eyebrow--light { color: #e0a58f; }

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8.5rem) var(--edge);
}
.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.section__sub {
  margin-top: 1.4rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 600;
  font-size: .98rem;
  padding: .95rem 1.7rem;
  border-radius: 100px;
  border: 1.5px solid var(--ink);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s, color .25s, box-shadow .25s;
  cursor: pointer;
}
.btn span { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.btn:hover span { transform: translateX(4px); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--rust); border-color: var(--rust); transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(200,80,47,.6); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; padding: 1.1rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--edge);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line-2);
}
.nav__brand { display: flex; align-items: center; gap: .6rem; }
.nav__mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  background: var(--ink); color: var(--rust);
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
  border-radius: 9px;
}
.nav__word { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em; }
.nav__word em { color: var(--ink-mute); font-style: italic; font-weight: 400; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.nav__links a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  padding: .55rem 1.15rem;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  color: var(--ink) !important;
}
.nav__cta:hover { background: var(--ink); color: var(--paper) !important; }
@media (max-width: 720px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) var(--edge) clamp(3rem, 6vw, 5rem);
}
.hero__grain {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 8%, rgba(200,80,47,.13), transparent 60%),
    radial-gradient(50% 45% at 10% 90%, rgba(47,74,63,.10), transparent 60%);
  z-index: -1;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 8.5vw, 6.4rem);
  line-height: .98;
  letter-spacing: -.035em;
  margin-bottom: 2rem;
}
.hero__title span { display: block; }
.hero__title em { color: var(--rust); font-style: italic; }
.hero__lede {
  max-width: 40rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--ink-soft);
  line-height: 1.5;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero__meta {
  display: flex; flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 4rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.hero__meta span { font-size: .9rem; color: var(--ink-mute); }

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: .85rem 0;
}
.marquee__track {
  display: inline-flex;
  gap: 1.4rem;
  white-space: nowrap;
  animation: slide 32s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
}
.marquee__track span { opacity: .92; }
.marquee__track span:nth-child(even) { color: var(--rust); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- services ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--paper);
  padding: 2.2rem 2rem 2.6rem;
  transition: background .3s;
  position: relative;
}
.card:hover { background: var(--paper-2); }
.card__num {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--rust);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  margin-bottom: 1.4rem;
}
.card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; margin-bottom: .6rem; letter-spacing: -.01em; }
.card p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- approach (dark band) ---------- */
.approach {
  max-width: none;
  background: var(--ink);
  color: var(--paper);
}
.approach > * { max-width: var(--maxw); margin-inline: auto; }
.approach .section__title { color: var(--paper); }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem 3rem;
  list-style: none;
}
.step { border-top: 1px solid rgba(244,237,225,.18); padding-top: 1.4rem; }
.step__no { font-family: var(--font-mono); font-size: .85rem; color: var(--rust); }
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.55rem; margin: .8rem 0 .6rem; }
.step p { color: rgba(244,237,225,.72); font-size: 1rem; }

/* ---------- work ---------- */
.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(135deg, var(--paper) 0%, var(--paper-2) 100%);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(26,22,19,.35); }
.feature__tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--pine); margin-bottom: 1rem; }
.feature__name { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 5vw, 3.4rem); letter-spacing: -.02em; line-height: 1; }
.feature__desc { color: var(--ink-soft); margin: 1.1rem 0 1.6rem; max-width: 32rem; }
.feature__link { font-weight: 600; color: var(--rust); display: inline-flex; gap: .4rem; }
.feature:hover .feature__link { color: var(--rust-dk); }

/* faux browser mock */
.browser { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 45px -25px rgba(26,22,19,.5); background: #fff; }
.browser__bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .9rem; background: var(--ink); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #5a5048; }
.browser__bar i:first-child { background: var(--rust); }
.browser__bar span { margin-left: .7rem; font-family: var(--font-mono); font-size: .72rem; color: rgba(244,237,225,.6); }
.browser__screen { padding: 1.4rem; display: flex; flex-direction: column; gap: .7rem; background: #fbf7f0; }
.bl-row { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--ink-soft); }
.bl-row b { margin-left: auto; font-size: .75rem; color: var(--pine); background: rgba(47,74,63,.12); padding: .1rem .5rem; border-radius: 5px; }
.bl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pine); }
.bl-dot--amber { background: var(--rust); }
.bl-bar { height: 10px; background: var(--paper-2); border-radius: 5px; overflow: hidden; }
.bl-bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--rust), #e08b6f); border-radius: 5px; }

.work__note { margin-top: 2.5rem; font-size: 1.1rem; color: var(--ink-mute); font-family: var(--font-display); font-style: italic; }
.work__note a { color: var(--rust); border-bottom: 1px solid currentColor; }

/* ---------- contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  background: var(--ink);
  color: var(--paper);
  border-radius: 24px;
  padding: clamp(2.2rem, 5vw, 4rem);
}
.contact { padding-bottom: clamp(4rem, 8vw, 7rem); }
.contact .section__title { color: var(--paper); }
.contact__blurb { color: rgba(244,237,225,.72); margin: 1.4rem 0 2rem; font-size: 1.1rem; max-width: 24rem; }
.contact__email { font-family: var(--font-mono); font-size: .95rem; color: var(--rust); border-bottom: 1px solid rgba(200,80,47,.5); padding-bottom: 2px; }
.contact__email:hover { color: #e08b6f; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; grid-column: 1 / -1; }
.field--half { grid-column: span 1; }
.field label { font-size: .82rem; font-weight: 600; margin-bottom: .5rem; color: rgba(244,237,225,.85); }
.field .opt { color: rgba(244,237,225,.4); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--paper);
  background: rgba(244,237,225,.06);
  border: 1px solid rgba(244,237,225,.16);
  border-radius: 10px;
  padding: .8rem .95rem;
  transition: border-color .2s, background .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c8502f' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.2rem; }
.field option { color: #1a1613; }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(244,237,225,.35); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rust); background: rgba(244,237,225,.1); }
.field input.invalid, .field textarea.invalid { border-color: #e07a5f; }
.err { color: #f0a58f; font-size: .78rem; margin-top: .4rem; min-height: 1em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn--block { grid-column: 1 / -1; margin-top: .5rem; background: var(--rust); border-color: var(--rust); color: var(--paper); }
.form .btn--block:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.form .btn--block:disabled { opacity: .6; cursor: wait; }
.form__status { grid-column: 1 / -1; font-size: .95rem; min-height: 1.2em; text-align: center; }
.form__status.ok { color: #a8d8b9; }
.form__status.bad { color: #f0a58f; }

/* ---------- footer ---------- */
.foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem var(--edge);
  border-top: 1px solid var(--line);
}
.foot__top { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; padding-bottom: 2rem; }
.foot__brand { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; }
.foot__brand em { color: var(--ink-mute); font-weight: 400; }
.foot__links { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.foot__links a { font-size: .95rem; color: var(--ink-soft); transition: color .2s; }
.foot__links a:hover { color: var(--rust); }
.foot__base { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid var(--line-2); font-size: .82rem; color: var(--ink-mute); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
}

/* ---------- reveal on load ---------- */
.reveal { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

.in-view { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.in-view.seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal, .in-view { opacity: 1; transform: none; }
}
