/* ==========================================================================
   ISG Consultants — site styles
   Palette sampled from logo.png:  navy #022D5E · teal #008E99 · gold #B9945C
   ========================================================================== */

:root {
  --navy:        #022d5e;
  --navy-deep:   #011f43;
  --teal:        #008e99;
  --teal-dark:   #017682;
  --gold:        #b9945c;

  --ink:         #10233d;
  --body:        #5a6a80;
  --muted:       #8a97a8;

  --bg:          #ffffff;
  --bg-alt:      #f7f9fa;
  --bg-cream:    #faf6f3;
  --rule:        #e3e8ee;

  --container:   1180px;
  --radius:      3px;

  --font: "Jost", "Century Gothic", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

h1, h2, h3 {
  color: var(--navy);
  font-weight: 400;
  line-height: 1.18;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}

p { margin: 0 0 1.1em; }

ul, ol { margin: 0; padding: 0; list-style: none; }

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

.sr-only, .skip-link {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  width: auto; height: auto; clip: auto; margin: 0;
  padding: 10px 18px; background: var(--navy); color: #fff;
}

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-sm { padding: 9px 20px; font-size: 14px; }

.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); color: #fff; }

.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--teal);
}
.link-arrow::after {
  content: "";
  width: 26px; height: 9px;
  background: currentColor;
  clip-path: polygon(0 42%, 74% 42%, 74% 0, 100% 50%, 74% 100%, 74% 58%, 0 58%);
  transition: transform .18s ease;
}
.link-arrow:hover::after { transform: translateX(5px); }
.link-arrow--icon { gap: 0; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.6) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.brand img { width: 190px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-nav a {
  color: var(--navy);
  font-size: 15px;
  font-weight: 400;
}
.site-nav a:hover { color: var(--teal); }
.site-nav .btn { color: #fff; }

.nav-toggle {
  display: none;
  width: 42px; height: 38px;
  padding: 9px 8px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  margin: 4px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfc 100%);
  border-bottom: 1px solid var(--rule);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 92px;
  padding-bottom: 92px;
}
.hero-copy { max-width: 540px; }

.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.08;
  margin-bottom: .48em;
}
.hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero-lede {
  max-width: 420px;
  font-size: 16px;
  color: var(--body);
  margin-bottom: 2em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 34px;
  margin-bottom: 2.6em;
}

.hero-tags {
  margin: 0;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--navy);
}
.hero-tags span { color: var(--gold); margin: 0 .35em; }

/* decorative artwork — image3.png */
.hero-art {
  position: absolute;
  inset: 0 -2% 0 32%;
  z-index: 1;
  background: url("../public/image3.png") no-repeat center right / cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 100%);
  pointer-events: none;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 96px 0; }
.section--alt   { background: var(--bg-alt); }
.section--cream { background: var(--bg-cream); }

.section-head {
  max-width: 720px;
  margin: 0 auto 62px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  margin-bottom: .5em;
}
.section-head p {
  font-size: 16px;
  margin: 0;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.4em;
}

/* ---------- What we do ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.cap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 30px;
  text-align: center;
  border-left: 1px solid var(--rule);
}
.cap:first-child { border-left: 0; }

.cap-icon {
  display: block;
  width: 54px;
  margin: 0 auto 26px;
}
.cap-icon--teal { color: var(--teal); }
.cap-icon--gold { color: var(--gold); }
.cap-icon--navy { color: var(--navy); }

.cap h3 {
  font-size: 21px;
  margin-bottom: .7em;
}
.cap p {
  font-size: 15px;
  line-height: 1.62;
  margin-bottom: 1.6em;
}
/* pins every arrow to the same baseline regardless of copy length */
.cap .link-arrow {
  justify-content: center;
  margin-top: auto;
}

/* ---------- Selected work ---------- */
.work-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.work {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 60px;
}
.work--flip .work-media { order: 2; }

.work-media {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: #eef2f5;
}
/* 33:20 matches the artwork and the product screenshots, so nothing
   meaningful gets cropped; object-position keeps the top of a UI shot
   (nav + headline) if a future image is a different shape. */
.work-media img {
  width: 100%;
  aspect-ratio: 33 / 20;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s ease;
}
.work:hover .work-media img { transform: scale(1.03); }

/* Flat compositions on a white ground (packaging, print) must be seen
   whole — fit them inside the card instead of cropping to fill it. */
.work-media--contain { background: #fff; }
.work-media--contain img { object-fit: contain; }

.work-body h3 {
  font-size: 25px;
  font-weight: 400;
  margin-bottom: .6em;
}
.work-num { color: var(--teal); }
.work-body p {
  font-size: 15px;
  max-width: 460px;
  margin-bottom: 1.1em;
}
.work-body p:last-of-type { margin-bottom: 1.6em; }

/* project subtitle, sits between the name and the write-up */
.work-tagline {
  color: var(--navy);
  font-size: 16px;
  letter-spacing: .01em;
  margin-top: -.4em;
  margin-bottom: 1.2em;
}

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
}
.about-copy h2 {
  font-size: clamp(28px, 3.2vw, 36px);
  margin-bottom: .7em;
}
.about-copy p { font-size: 15.5px; }

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  position: relative;
  padding-top: 8px;
}
/* the connecting rail */
.timeline::before {
  content: "";
  position: absolute;
  top: 42px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--navy);
  opacity: .35;
}
.tl-step {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tl-year {
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--navy);
  margin-bottom: 14px;
}
.tl-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-bottom: 20px;
}
.tl-dot--teal { background: var(--teal); }
.tl-dot--navy { background: var(--navy); }
.tl-dot--gold { background: var(--gold); }

.tl-icon {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  border-radius: 50%;
  color: #fff;
  margin-bottom: 14px;
}
.tl-icon svg { width: 30px; height: 30px; }
.tl-icon--teal { background: var(--teal); }
.tl-icon--navy { background: var(--navy); }
.tl-icon--gold { background: var(--gold); }

.tl-label {
  font-size: 13px;
  line-height: 1.4;
  color: var(--navy);
}

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfc 100%);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cta-inner {
  position: relative;
  z-index: 2;
  padding-top: 84px;
  padding-bottom: 84px;
}
.cta-copy { max-width: 480px; }
.cta-copy h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: .5em;
}
.cta-copy p {
  max-width: 360px;
  font-size: 16px;
  margin-bottom: 1.8em;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cta-actions .btn { min-width: 160px; }

.cta-art {
  position: absolute;
  inset: 0 -2% 0 40%;
  z-index: 1;
  background: url("../public/image3.png") no-repeat center right / cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%);
  pointer-events: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #fff;
  padding: 62px 0 26px;
  font-size: 14.5px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr;
  gap: 50px;
  align-items: start;
}
.footer-brand img { width: 190px; margin-bottom: 20px; }
.footer-brand p {
  max-width: 300px;
  font-size: 14px;
  color: var(--body);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 46px;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--navy); }
.footer-links a:hover { color: var(--teal); }

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-contact svg {
  width: 19px; height: 19px;
  flex: 0 0 auto;
  color: var(--teal);
}
.footer-contact a { color: var(--navy); }
.footer-contact a:hover { color: var(--teal); }

.footer-legal {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.footer-legal p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 0; }
  .cap:nth-child(3) { border-left: 0; }
  .about-inner { grid-template-columns: 1fr; gap: 52px; }
  .hero-art, .cta-art { inset: 0 -10% 0 45%; opacity: .55; }
}

@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .hero-inner { padding-top: 68px; padding-bottom: 68px; }

  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 28px 24px;
    background: #fff;
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 14px 24px rgba(2,45,94,.07);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--rule);
  }
  .site-nav .btn {
    margin-top: 16px;
    border-bottom: 0;
    padding: 13px 26px;
  }

  .work,
  .work--flip { grid-template-columns: 1fr; gap: 24px; }
  .work--flip .work-media { order: 0; }
  .work-body p { max-width: none; }

  .timeline { grid-template-columns: repeat(2, 1fr); gap: 34px 10px; }
  .timeline::before { display: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .brand img { width: 152px; }
  .cap-grid { grid-template-columns: 1fr; }
  .cap { border-left: 0; padding: 0; }
  .hero-art, .cta-art { opacity: .32; }
  .cta-actions .btn { flex: 1 1 100%; }
  .timeline { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
