/* =========================================================
   BLACK LINE CREATIVE — design tokens
   ========================================================= */
:root{
  --bg:            #f5f4ef;
  --bg-elevated:   #ebe9e2;
  --bg-elevated-2: #e0ded5;
  --text:          #0a0a0a;
  --text-muted:    #0a0a0a;
  --text-faint:    #0a0a0a;
  --line:          #0a0a0a;   /* the signature line colour — solid black */
  --line-dim:      #d2cfc5;
  --accent:        #0a0a0a;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body:    "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono:    "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --container: 1180px;
  --gutter: clamp(24px, 5vw, 80px);

  --ease: cubic-bezier(.16,.84,.24,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg{ display:block; max-width:100%; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; }

::selection{ background: var(--line); color: var(--bg); }

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 1px solid var(--line);
  outline-offset: 4px;
}

/* =========================================================
   Type
   ========================================================= */
.eyebrow{
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content:"";
  width: 16px;
  height: 1px;
  background: var(--line);
  display: inline-block;
}

h1, h2, h3{
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}

h1{ font-size: clamp(40px, 6.4vw, 92px); line-height: .98; font-weight: 800; }
h2{ font-size: clamp(30px, 4.2vw, 56px); line-height: 1.04; font-weight: 700; }
h3{ font-size: clamp(20px, 2vw, 26px); font-weight: 650; }

p{ margin: 0; }
.lede{ font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--text-muted); max-width: 42ch; }

/* =========================================================
   Scroll progress line — signature element
   ========================================================= */
.scroll-line{
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--line);
  z-index: 900;
  transition: width .08s linear;
}

/* =========================================================
   Nav
   ========================================================= */
header.site{
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(245,244,239,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dim);
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.wordmark{
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wordmark .dash{
  width: 22px;
  height: 2px;
  background: var(--line);
  display: inline-block;
}
.wordmark img.nav-logo{
  height: 26px;
  width: auto;
  display: block;
}
.footer-col img.footer-logo{
  height: 30px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}
.navlinks{
  display: flex;
  align-items: center;
  gap: 40px;
}
.navlinks a{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
}
.navlinks a::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  width:0%;
  height:1px;
  background: var(--line);
  transition: width .3s var(--ease);
}
.navlinks a:hover, .navlinks a.active{ color: var(--text); }
.navlinks a:hover::after, .navlinks a.active::after{ width:100%; }

.menu-toggle{
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 0;
}
.mobile-panel{
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--bg);
  z-index: 400;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 40px var(--gutter);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mobile-panel.open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-panel a{
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-dim);
  padding-bottom: 20px;
}


.btn{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text);
  transition: background .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:hover{ background: var(--line); color: var(--bg); transform: translateY(-1px); }
.btn.ghost{ border-color: var(--line-dim); }
.btn.ghost:hover{ background: transparent; color: var(--line); border-color: var(--line); }

@media (max-width: 760px){
  .navlinks{ display:none; }
  .nav > .btn{ display:none; }
  .menu-toggle{ display: inline-block; }
  .wordmark{ font-size: 15px; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position: relative;
  padding-top: clamp(90px, 14vh, 160px);
  padding-bottom: clamp(70px, 10vh, 120px);
  overflow: hidden;
}
.hero-canvas{
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .55;
  pointer-events: none;
}
.hero-inner{ position: relative; z-index: 1; }
.hero .eyebrow{ margin-bottom: 26px; }
.hero h1{ max-width: 16ch; margin-bottom: 28px; }
.hero .lede{ margin-bottom: 44px; }
.hero-actions{ display:flex; gap: 16px; flex-wrap: wrap; }

.hero-rule{
  margin-top: clamp(60px, 8vh, 96px);
  height: 1px;
  width: 100%;
  background: var(--line-dim);
  position: relative;
  overflow: hidden;
}
.hero-rule::after{
  content:"";
  position:absolute;
  top:0; left:0;
  height:100%;
  width:100%;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  animation: drawline 1.6s var(--ease) .3s forwards;
}
@keyframes drawline{ to{ transform: scaleX(1); } }

/* =========================================================
   Sections
   ========================================================= */
section{ padding: clamp(80px, 12vh, 140px) 0; }
.section-head{
  display:flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: clamp(48px, 7vh, 80px);
  flex-wrap: wrap;
}
.section-head h2{ margin-top: 18px; max-width: 16ch; }
.section-head .lede{ margin-bottom: 4px; }

.divider{ height:1px; background: var(--line-dim); border:none; margin:0; }

/* reveal on scroll — visible by default; JS opts elements into the animation */
.reveal{
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.pre{ opacity: 0; transform: translateY(24px); }
.reveal.in{ opacity: 1; transform: translateY(0); }

/* =========================================================
   Services grid
   ========================================================= */
.services-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-dim);
  border: 1px solid var(--line-dim);
}
.service-card{
  background: var(--bg);
  padding: clamp(32px, 4vw, 48px);
  position: relative;
  transition: background .35s var(--ease);
}
.service-card:hover{ background: var(--bg-elevated); }
.service-card .tag{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  display:block;
}
.service-card h3{ margin-bottom: 14px; }
.service-card p{ color: var(--text-muted); line-height: 1.65; max-width: 40ch; }
.service-card .rule{
  margin-top: 26px;
  height: 1px;
  width: 32px;
  background: var(--line-dim);
  transition: width .35s var(--ease), background .35s var(--ease);
}
.service-card:hover .rule{ width: 64px; background: var(--line); }

@media (max-width: 760px){
  .services-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   About
   ========================================================= */
.about-grid{
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.about-grid .eyebrow{ margin-bottom: 18px; }
.quote{
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.3;
  font-weight: 500;
  color: var(--text);
  border-left: 1px solid var(--line);
  padding-left: 24px;
  margin: 32px 0 20px;
}
.quote cite{
  display:block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 16px;
}
.about-grid p.body-copy{
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 20px;
}
@media (max-width: 860px){
  .about-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   CTA band
   ========================================================= */
.cta-band{
  text-align: center;
  border-top: 1px solid var(--line-dim);
  border-bottom: 1px solid var(--line-dim);
}
.cta-band h2{ max-width: 18ch; margin: 0 auto 20px; }
.cta-band .lede{ margin: 0 auto 40px; }
.cta-band .hero-actions{ justify-content: center; }

/* =========================================================
   Footer
   ========================================================= */
footer.site{ padding: 64px 0 40px; }
.footer-top{
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dim);
  margin-bottom: 28px;
}
.footer-col h4{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col a, .footer-col p{
  display:block;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color .2s var(--ease);
}
.footer-col a:hover{ color: var(--text); }
.footer-bottom{
  display:flex;
  justify-content: space-between;
  align-items:center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--text-faint);
}

/* =========================================================
   Services page extras
   ========================================================= */
.service-detail{
  display: grid;
  grid-template-columns: .9fr 1.4fr;
  gap: clamp(30px,5vw,80px);
  padding: clamp(50px, 7vh, 80px) 0;
  border-top: 1px solid var(--line-dim);
}
.service-detail:last-of-type{ border-bottom: 1px solid var(--line-dim); }
.service-detail .num{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: .1em;
}
.service-detail h3{ margin-top: 14px; }
.service-detail ul{
  list-style:none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.service-detail li{
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}
.service-detail li::before{
  content:"";
  position:absolute;
  left:0; top:8px;
  width: 8px; height:1px;
  background: var(--line);
}
@media (max-width: 760px){
  .service-detail{ grid-template-columns: 1fr; }
  .service-detail ul{ grid-template-columns: 1fr; }
}

/* =========================================================
   Contact page
   ========================================================= */
.contact-grid{
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(40px,6vw,100px);
}
.contact-info a{
  display:block;
  font-family: var(--display);
  font-size: clamp(22px,2.4vw,30px);
  margin-bottom: 8px;
  position: relative;
  width: fit-content;
}
.contact-info a::after{
  content:"";
  position:absolute;
  left:0; bottom:-2px;
  width:100%;
  height:1px;
  background: var(--line-dim);
  transition: background .25s var(--ease);
}
.contact-info a:hover::after{ background: var(--line); }
.contact-info .label{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 32px 0 8px;
  display:block;
}
.contact-info .label:first-child{ margin-top:0; }

form.contact-form{ display: grid; gap: 22px; }
.field{ display: grid; gap: 8px; }
.field label{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.field input, .field textarea, .field select{
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-dim);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  padding: 10px 2px;
  transition: border-color .25s var(--ease);
  resize: vertical;
}
.field select option{ background: var(--bg-elevated); color: var(--text); }
.field input:focus, .field textarea:focus, .field select:focus{
  outline: none;
  border-color: var(--line);
}
.field textarea{ min-height: 120px; }
.contact-form .btn{
  justify-self: start;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  margin-top: 8px;
}
.form-note{ font-size: 13px; color: var(--text-faint); margin-top: -6px; }

@media (max-width: 860px){
  .contact-grid{ grid-template-columns: 1fr; }
}
