/* =====================================================================
   T-Total Marketing Services
   The brand mark is a solid black spade and the positioning is "no junk,
   no nonsense". The design takes that literally: black and white, one
   green carried over from the existing site, blunt type, no ornament.
   ===================================================================== */

:root {
  --ink:      #101113;
  --ink-2:    #3a3d42;
  --ink-3:    #666b73;   /* passes AA on the shade ground as well as on white */
  --ink-3-d:  #868c94;   /* the same role, but on the near-black grounds */
  --rule:     #e3e4e6;
  --rule-2:   #c9cbcf;
  --paper:    #ffffff;
  --shade:    #f4f4f2;

  /* sampled from the call-to-action button on the existing site */
  --green:      #74B176;
  --green-deep: #2f7a4a;
  --green-dark: #1c5734;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --text:    "Manrope", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 56px);

  /* There is no dark variant of this design. "only light" - not just
     "light" - is what opts the page out of Chrome's Auto Dark Theme. */
  color-scheme: only light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }

/* ----------------------------- type ----------------------------- */

h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0;
             line-height: 1.02; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 5.4vw, 3.6rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); letter-spacing: -.025em; }
p { margin: 0 0 1.1em; max-width: 60ch; }
p:last-child { margin-bottom: 0; }

.label { font-family: var(--display); font-weight: 600; font-size: .73rem;
         letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 1.4rem;
         display: flex; align-items: center; gap: .7em; }
.label::before { content: ""; width: 26px; height: 2px; background: var(--green-deep); flex: none; }
.label--light { color: #9aa0a8; }
.label--light::before { background: var(--green); }

.lede { font-size: clamp(1.1rem, 1.9vw, 1.32rem); color: var(--ink-2); max-width: 46ch; line-height: 1.55; }
.muted { color: var(--ink-3); }

/* ----------------------------- buttons ----------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: -.01em;
  padding: 15px 28px; border: 2px solid transparent; cursor: pointer;
  text-decoration: none; transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn--go    { background: var(--green-deep); color: #fff; }
.btn--go:hover { background: var(--ink); color: #fff; }
.btn--ink   { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--green-deep); color: #fff; }
.btn--line  { border-color: var(--rule-2); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn--onink { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--onink:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn .ar { font-size: .9em; }

/* ----------------------------- header ----------------------------- */

.head { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94);
        backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--rule); }
.head__in { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 72px; }
.brand { flex: none; display: block; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 28px); }
/* :not(.btn) matters — without it this rule outranks .btn--ink and paints the
   header button's label dark grey on a near-black ground */
.nav a:not(.btn) { font-family: var(--display); font-weight: 500; font-size: .95rem; color: var(--ink-2);
         text-decoration: none; white-space: nowrap; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .btn { padding: 10px 18px; font-size: .9rem; }
@media (max-width: 800px) {
  .head__in { flex-wrap: wrap; padding-block: 12px; gap: 10px; min-height: 0; }
  .nav { width: 100%; gap: 16px; flex-wrap: wrap; }
  .nav a { font-size: .88rem; }
}

/* ----------------------------- hero ----------------------------- */

.hero { background: var(--ink); color: #c8ccd2; padding-block: clamp(72px, 13vw, 150px); position: relative; overflow: hidden; }
.hero__spade { position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
               width: clamp(280px, 40vw, 520px); opacity: .07; pointer-events: none; }
.hero__in { position: relative; }
.hero h1 { color: #fff; max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lede { color: #b4b9c0; margin-top: 1.4rem; }
.hero__acts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.4rem; }

/* ----------------------------- sections ----------------------------- */

.sec { padding-block: clamp(60px, 9vw, 110px); }
.sec--shade { background: var(--shade); }
.sec--ink { background: var(--ink); color: #b4b9c0; }
.sec--ink h2, .sec--ink h3 { color: #fff; }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

.head2 { max-width: 62ch; margin-bottom: clamp(34px, 5vw, 56px); }
.head2 p { margin-top: 1rem; }

/* ----------------------------- two-up intro ----------------------------- */

.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(28px, 5vw, 64px); }
.duo h3 { margin-bottom: .6rem; }
.duo strong { color: var(--ink); font-weight: 600; }

/* ----------------------------- services ----------------------------- */

.svcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(18px, 2.4vw, 26px); }
.svc { background: var(--paper); border: 1px solid var(--rule); padding: clamp(26px, 3vw, 36px);
       display: flex; flex-direction: column; gap: 14px;
       transition: border-color .18s ease, transform .18s ease; }
.svc:hover { border-color: var(--ink); transform: translateY(-3px); }
/* the artwork sits in its own fixed band at the top of the card: flex: none so a
   long block of copy below can never squeeze it, and the svg is sized by height
   so its own 108:76 ratio decides the width */
.svc__art { color: var(--green-deep); height: 76px; flex: none; margin-bottom: 4px; }
.svc__art svg { height: 100%; width: auto; max-width: 100%; display: block; }
.svc h3 { margin: 0; }
.svc p { margin: 0; font-size: .99rem; }
.svc__n { font-family: var(--display); font-weight: 700; font-size: .74rem; color: var(--ink-3);
          letter-spacing: .18em; font-variant-numeric: tabular-nums; margin-bottom: -8px; }
@media (prefers-reduced-motion: reduce) { .svc:hover { transform: none; } }

/* ----------------------------- trusted by ----------------------------- */

.trust { background: var(--ink); border-top: 1px solid rgba(255,255,255,.1); padding-block: 26px; }
.trust__in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px clamp(22px, 4vw, 48px); }
.trust__lbl { font-family: var(--display); font-weight: 600; font-size: .72rem; letter-spacing: .18em;
              text-transform: uppercase; color: var(--ink-3-d); margin: 0; flex: none; }
.trust__in ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
                gap: 12px clamp(20px, 3.4vw, 40px); }
.trust__in li { font-family: var(--display); font-weight: 600; font-size: clamp(.98rem, 1.5vw, 1.18rem);
                color: #e6e8ea; letter-spacing: -.02em; }

/* ----------------------------- closing band ----------------------------- */

.closer { background: var(--green-deep); color: #fff; padding-block: clamp(54px, 8vw, 88px); }
.closer h2 { color: #fff; max-width: 18ch; }
.closer p { color: rgba(255,255,255,.86); margin-top: 1rem; }
.closer .btn--onink { border-color: rgba(255,255,255,.55); }

/* ----------------------------- case studies ----------------------------- */

.cases { display: grid; gap: clamp(18px, 2.4vw, 26px); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.case {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--paper); border: 1px solid var(--rule);
  padding: clamp(24px, 3vw, 34px); text-decoration: none; color: inherit;
  transition: border-color .18s ease, transform .18s ease;
}
.case:hover { border-color: var(--ink); transform: translateY(-3px); color: inherit; }
.case__tag { font-family: var(--display); font-weight: 600; font-size: .72rem; letter-spacing: .18em;
             text-transform: uppercase; color: var(--green-deep); }
.case h3 { margin: 0; }
.case p { margin: 0; font-size: .97rem; color: var(--ink-3); }
.case__go { margin-top: auto; padding-top: 10px; font-family: var(--display); font-weight: 600;
            font-size: .95rem; color: var(--ink); }
.case__go::after { content: " \2192"; }
@media (prefers-reduced-motion: reduce) { .case:hover { transform: none; } }

/* ----------------------------- promise strip ----------------------------- */

.promise { display: flex; flex-wrap: wrap; gap: clamp(12px, 3vw, 40px); align-items: baseline;
           font-family: var(--display); font-weight: 700; letter-spacing: -.03em;
           font-size: clamp(1.5rem, 4.4vw, 2.6rem); color: #fff; }
.promise span { display: inline-flex; align-items: baseline; gap: .5em; }
.promise span::before { content: ""; width: .4em; height: .4em; background: var(--green); flex: none; align-self: center; }

/* ----------------------------- contact ----------------------------- */

.cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

.deets { display: grid; gap: 22px; margin-top: 30px; }
.deets dt { font-family: var(--display); font-size: .7rem; font-weight: 600; letter-spacing: .16em;
            text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.deets dd { margin: 0; font-size: 1.05rem; color: var(--ink); overflow-wrap: anywhere; }
.deets a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule-2); }
.deets a:hover { border-bottom-color: var(--ink); }

.form { display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--display); font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  font-family: var(--text); font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule-2); padding: 13px 14px; width: 100%; border-radius: 0;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(47,122,74,.16); }
.hp { position: absolute; left: -9999px; }
.form small { color: var(--ink-3); font-size: .87rem; }

/* ----------------------------- case study pages ----------------------------- */

.study { padding-block: clamp(48px, 7vw, 90px); }
.study__in { max-width: 760px; }
.study h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 2.4rem 0 .7rem; }
.study p { margin-bottom: 1.15em; }
.back { display: inline-block; margin-bottom: 1.6rem; font-family: var(--display); font-weight: 600;
        font-size: .93rem; color: var(--ink-3); text-decoration: none; }
.back:hover { color: var(--ink); }
.back::before { content: "\2190  "; }

.result { border-left: 3px solid var(--green-deep); background: var(--shade); padding: 20px 24px; margin: 1.6rem 0; }
.result p:last-child { margin-bottom: 0; }

/* ----------------------------- footer ----------------------------- */

.foot { background: var(--ink); color: #8d939b; padding-block: clamp(44px, 6vw, 70px); }
.foot__in { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(auto-fit, minmax(150px, 1fr));
            gap: clamp(26px, 4vw, 50px); }
.foot img { height: 40px; width: auto; margin-bottom: 16px; }
.foot h4 { font-family: var(--display); font-size: .72rem; font-weight: 600; letter-spacing: .16em;
           text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { color: #8d939b; text-decoration: none; font-size: .95rem; overflow-wrap: anywhere; }
.foot a:hover { color: #fff; }
.foot p { font-size: .93rem; max-width: 34ch; }
.legal { margin-top: clamp(30px, 4vw, 48px); padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13);
         display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .88rem; }
.legal p { max-width: none; margin: 0; }


/* =====================================================================
   ARTWORK
   No stock photography: every visual here is drawn, and each one says
   something about the service it sits beside.
   ===================================================================== */

/* ---------- hero: a search result climbing to the top ---------- */

.hero { padding-block: clamp(56px, 9vw, 110px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
              gap: clamp(32px, 6vw, 80px); align-items: center; position: relative; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.serp { position: relative; }
.serp__frame {
  background: #17181b; border: 1px solid rgba(255,255,255,.1);
  padding: 18px 18px 20px; position: relative; overflow: hidden;
}
.serp__bar { display: flex; align-items: center; gap: 7px; margin-bottom: 16px; }
.serp__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); flex: none; }
.serp__bar span { margin-left: 8px; height: 22px; flex: 1; background: rgba(255,255,255,.07);
                  display: flex; align-items: center; padding-inline: 10px;
                  font-family: var(--text); font-size: .72rem; color: #8b9199; letter-spacing: .01em; }

.serp__list { position: relative; display: grid; gap: 10px; }
.serp__row { height: 46px; background: rgba(255,255,255,.045); padding: 9px 12px; display: grid; gap: 7px; align-content: center; }
.serp__row b, .serp__row i { display: block; background: rgba(255,255,255,.13); height: 7px; border-radius: 1px; }
.serp__row b { width: 58%; }
.serp__row i { width: 84%; height: 5px; background: rgba(255,255,255,.075); }

/* the branded result: sits above the stack and rises to position one */
.serp__win {
  position: absolute; left: 0; right: 0; height: 46px;
  background: var(--green-deep); color: #fff;
  display: flex; align-items: center; gap: 10px; padding: 0 13px;
  font-family: var(--display); font-weight: 600; font-size: .86rem; letter-spacing: -.01em;
  animation: serp-rise 7s cubic-bezier(.7,0,.2,1) infinite;
}
.serp__win img { height: 17px; width: auto; flex: none; }
.serp__win em { font-style: normal; margin-left: auto; font-variant-numeric: tabular-nums; opacity: .82; font-size: .8rem; }

/* five rows of 46px + 10px gaps: slot n sits at n * 56px */
@keyframes serp-rise {
  0%, 14%   { transform: translateY(224px); }
  46%, 100% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .serp__win { animation: none; transform: translateY(0); }
}

.serp__cap { margin: 14px 0 0; font-size: .82rem; color: var(--ink-3-d); max-width: none; }

/* ---------- case study covers ---------- */

.case { padding: 0; overflow: hidden; }
.case__cover { aspect-ratio: 16 / 9; width: 100%; display: block; background: var(--ink); }
.case__body { padding: clamp(22px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 11px; flex: 1; }

/* ---------- stat tiles ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
         gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 1.8rem 0; }
.stats > div { background: var(--paper); padding: 20px 22px; }
.stats dt { font-family: var(--display); font-size: .68rem; font-weight: 600; letter-spacing: .15em;
            text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.stats dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem);
            color: var(--ink); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats small { display: block; font-family: var(--text); font-weight: 400; font-size: .8rem;
               color: var(--ink-3); letter-spacing: 0; margin-top: 6px; }

/* ---------- reveal on scroll ---------- */

.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }
