/* ============================================================
   site.css — jlehtimaki Consulting
   Palette sampled from logo2.png, a one-colour line mark: hue 69deg olive,
   lifted to usable lightness on the dark ground. Lime is reserved for the
   primary CTA, focus ring and selection; moss does everyday accent work.
   ============================================================ */

:root {
  --bg:            #0A0F06;
  --bg-rgb:        10, 15, 6;
  --bg-raised:     #141C0C;
  --bg-hover:      #192211;
  --bg-sunken:     #070B04;
  --bezel:         #1E2A12;
  --leaf:          #20330C;
  --line:          rgba(200, 197, 150, 0.12);
  --line-strong:   rgba(200, 197, 150, 0.26);

  --text:          #CFCEC6;
  --text-bright:   #EDEBE3;
  --text-muted:    #8B8A80;

  --lime:          #B8C954;
  --lime-hi:       #CAD879;

  --moss:          #838F3D;
  --moss-hi:       #A2B14E;
  --moss-dim:      rgba(131, 143, 61, 0.14);

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --container: 1120px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

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

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

/* Paper grain, echoing the logo's drawn texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--moss-hi); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--text-bright); }

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

:focus-visible {
  outline: 2px solid var(--lime-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Layout ===== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 104px 0; position: relative; }
.section--tight { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }

.section__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss-hi);
  margin-bottom: 14px;
}
.section__label::before { content: '// '; color: var(--text-muted); }

.section__title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 14px;
}

.section__intro {
  max-width: 60ch;
  color: var(--text-muted);
  margin-bottom: 44px;
}

/* For sections that go straight from title to content, with no intro line */
.section__title--spaced { margin-bottom: 40px; }

/* ===== Skip link ===== */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lime);
  color: var(--bg);
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ===== Nav ===== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(var(--bg-rgb), 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--text-bright);
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav__brand:hover { color: var(--text-bright); }
.nav__mark {
  height: 32px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  list-style: none;
  font-size: 0.94rem;
}
.nav__links a { color: var(--text); }
.nav__links a:hover { color: var(--text-bright); }

.nav__cta { margin-left: 4px; }

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--lime);
  color: var(--bg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset;
}
.btn--primary:hover { background: var(--lime-hi); color: var(--bg); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line-strong); color: var(--text-bright); }
.btn--ghost:hover { border-color: var(--moss); color: var(--text-bright); transform: translateY(-1px); }
.btn--sm { padding: 9px 16px; font-size: 0.9rem; }

/* ===== Hero ===== */

.hero {
  position: relative;
  padding: 84px 0 76px;
}
/* Text left where the eye starts, the landscape mark balancing it right. */
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 60px;
  align-items: center;
}
.hero__text { min-width: 0; }
.hero__lockup { width: 100%; }

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.hero__eyebrow b { color: var(--moss-hi); font-weight: 500; }

.hero__title {
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.033em;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 26px;
}
.hero__title em {
  font-style: normal;
  color: var(--moss-hi);
}

.hero__lede {
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  max-width: 62ch;
  color: var(--text);
  margin-bottom: 36px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }


/* ===== Proof strip ===== */

.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.proof__item { background: var(--bg-sunken); padding: 26px 22px; }
.proof__value {
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 500;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.proof__value span { color: var(--moss-hi); }
.proof__label {
  margin-top: 7px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* ===== Service groups ===== */

.group { margin-bottom: 52px; }
.group:last-child { margin-bottom: 0; }

.group__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.group__name {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.015em;
}
.group__hint { font-size: 0.9rem; color: var(--text-muted); }

/* Grid on desktop, snapping rail on small screens */
.rail {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
              background 0.25s var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
  background: var(--bg-hover);
  transform: translateY(-2px);
}

.card__icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--moss-dim);
  border: 1px solid rgba(131,143,61,0.32);
  display: grid;
  place-items: center;
  margin-bottom: 15px;
}
.card__icon svg { width: 17px; height: 17px; stroke: var(--moss-hi); fill: none; stroke-width: 1.7; }

.card__title {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text-bright);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.card__body { font-size: 0.94rem; color: var(--text-muted); }

/* ===== Tags ===== */

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* ===== Work ===== */

.work-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.work__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 4px;
}
.work__client {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--moss);
}
.work__period {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.work__title {
  font-size: 1.1rem;
  font-weight: 650;
  color: var(--text-bright);
  letter-spacing: -0.012em;
  margin-bottom: 10px;
}
.work__role {
  font-size: 0.86rem;
  color: var(--text);
  margin-bottom: 10px;
}
.work__body { font-size: 0.93rem; color: var(--text-muted); }

.work__more { margin-top: 30px; font-size: 0.95rem; color: var(--text-muted); }

/* ===== Products ===== */

.product {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: center;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px;
}
.product + .product { margin-top: 22px; }

.product__head { display: flex; align-items: center; gap: 15px; margin-bottom: 16px; }
.product__logo {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: var(--bg-sunken);
  object-fit: contain;
  padding: 5px;
}
.product__name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.018em;
  line-height: 1.2;
}
.product__tagline { font-size: 0.9rem; color: var(--text-muted); }
.product__body { font-size: 0.97rem; margin-bottom: 6px; }
.product__link { display: inline-flex; margin-top: 20px; }

.shots { display: flex; gap: 14px; justify-content: center; }
.shot {
  width: 138px;
  border-radius: 20px;
  border: 6px solid var(--bezel);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  background: #000;
}
.shot:nth-child(2) { transform: translateY(18px) rotate(2.5deg); }
.shot:nth-child(1) { transform: rotate(-2.5deg); }

/* ===== About ===== */

.about {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}
/* No tint on the face — the headshot is already black-and-white, and it
   reads as a studio shot against its own white. */
.about__figure {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
}
.about__photo { width: 100%; }
.about__body p + p { margin-top: 18px; }
.about__body strong { color: var(--text-bright); font-weight: 600; }

.certs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cert {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--bg-sunken);
  border-radius: 7px;
  padding: 5px 10px;
}

/* ===== Contact ===== */

.contact {
  text-align: center;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 62px 32px;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side at 50% 0%, rgba(131,143,61,0.11), transparent 70%);
  pointer-events: none;
}
.contact > * { position: relative; }
.contact__title {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.contact__body { max-width: 52ch; margin: 0 auto 30px; color: var(--text-muted); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ===== Footer ===== */

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; }
.footer__links a { color: var(--text-muted); }
.footer__links a:hover { color: var(--text-bright); }
.footer__prompt { font-family: var(--font-mono); }
.footer__prompt::before { content: '$ '; color: var(--moss-hi); }

/* ===== Motion ===== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */

@media (max-width: 960px) {
  .product { grid-template-columns: 1fr; gap: 32px; padding: 30px; }
  .about { grid-template-columns: 1fr; gap: 30px; }
  .about__figure { max-width: 220px; }
  .proof { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 30px; }
  .hero__lockup { order: 1; width: min(320px, 72vw); }
  .hero__text { order: 2; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 76px 0 64px; }

  /* The nav wraps to two rows rather than hiding its links: there is no
     room beside the CTA, but a menu nobody can open is worse. */
  .nav__inner {
    height: auto;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding-top: 11px;
    padding-bottom: 11px;
  }
  .nav__cta { margin-left: auto; }
  .nav__links {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 0;
    justify-content: space-between;
    font-size: 0.86rem;
  }
  html { scroll-padding-top: 118px; }

  /* Cards become a swipeable, snapping rail */
  .rail, .work-grid {
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 24px;
    margin: 0 -24px;
    padding: 4px 24px 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .rail::-webkit-scrollbar, .work-grid::-webkit-scrollbar { display: none; }
  .rail > *, .work-grid > * { scroll-snap-align: start; }
  .card:hover, .work-grid .card:hover { transform: none; }

  .shot { width: 120px; }
  .contact { padding: 44px 22px; }
}

/* Below this the wordmark and the CTA fight for the same row, so the
   leaf carries the brand on its own. */
@media (max-width: 520px) {
  .nav__brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
