/* ============================================================
   INKASEC Partners — Shared Stylesheet
   Editorial / refined / gallery aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

:root {
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --ink-mute: #6f6a63;
  --paper: #faf7f2;
  --paper-warm: #f3eee5;
  --rule: #d9d3c8;
  --accent: #c4502a;
  --accent-deep: #8f3819;
  --highlight: #e8d9c3;

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: 'ss01' on, 'kern' on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* -------- Layout primitives -------- */

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

.container--narrow {
  max-width: 920px;
}

/* -------- Navigation -------- */

.nav {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(250, 247, 242, 0.92);
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
}

.nav__brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.nav__brand em {
  font-style: italic;
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: 2.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.nav__links a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
  position: relative;
}

.nav__links a:hover {
  color: var(--accent);
}

.nav__links a.active {
  color: var(--ink);
}

.nav__links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
}

@media (max-width: 720px) {
  .nav__links {
    gap: 1.25rem;
    font-size: 0.82rem;
  }
}

/* -------- Hero -------- */

.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

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

.hero__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 1.75rem;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__lede {
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 38ch;
  margin-bottom: 2.25rem;
}

.hero__image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-warm);
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.hero__credit {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  font-family: var(--sans);
}

/* -------- Buttons -------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn__arrow {
  transition: transform 0.2s ease;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* -------- Section -------- */

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-bottom: 1px solid var(--rule);
}

.section--warm {
  background: var(--paper-warm);
}

.section__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  color: var(--ink);
  max-width: 22ch;
}

.section__title em {
  font-style: italic;
  color: var(--accent);
}

.section__intro {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 3rem;
}

/* -------- Two-column editorial -------- */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.duo--media-led {
  grid-template-columns: 0.9fr 1.1fr;
}

@media (max-width: 880px) {
  .duo,
  .duo--media-led {
    grid-template-columns: 1fr;
  }
}

.duo__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-warm);
}

.duo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duo__text h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.duo__text p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

/* -------- Number / pillar grid -------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2rem;
}

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

.pillar {
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
}

.pillar__num {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.pillar h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.pillar p {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* -------- Steps (numbered editorial list) -------- */

.steps {
  margin-top: 2.5rem;
  border-top: 1px solid var(--ink);
}

.step {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

@media (max-width: 720px) {
  .step {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.step__num {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
}

.step__body h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.18;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.step__body p {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* -------- Pull quote / aside -------- */

.aside {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.aside__quote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.25;
  font-style: italic;
  color: var(--ink);
  max-width: 32ch;
  margin: 0 auto;
  text-align: center;
}

.aside__quote::before {
  content: '"';
  font-size: 1.5em;
  color: var(--accent);
  line-height: 0;
  vertical-align: -0.2em;
  margin-right: 0.1em;
}

/* -------- Lists -------- */

.list-clean {
  list-style: none;
  margin: 1.25rem 0;
}

.list-clean li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink-soft);
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}

.list-clean li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
}

.list-clean li strong {
  color: var(--ink);
  font-weight: 500;
}

/* -------- Two-column comparison -------- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

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

.compare__col {
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--rule);
}

.compare__col--accent {
  background: var(--paper-warm);
  border-color: var(--accent);
}

.compare__col h5 {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.compare__col--accent h5 {
  color: var(--accent);
}

.compare__col h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--ink);
}

.compare__col p {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* -------- CTA Block -------- */

.cta {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: var(--ink);
  color: var(--paper);
  border-bottom: none;
}

.cta__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: end;
}

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

.cta h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin-bottom: 1.5rem;
  max-width: 18ch;
}

.cta h2 em {
  font-style: italic;
  color: var(--accent);
}

.cta p {
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(250, 247, 242, 0.7);
  max-width: 42ch;
}

.cta .btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.cta .btn:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

/* -------- Footer -------- */

.footer {
  padding: 3rem 0 2rem;
  background: var(--ink);
  color: rgba(250, 247, 242, 0.65);
  font-size: 0.85rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(250, 247, 242, 0.12);
}

@media (max-width: 720px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.footer h6 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer__brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--paper);
  margin-bottom: 0.5rem;
}

.footer__brand em {
  font-style: italic;
  color: var(--accent);
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer a:hover {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(250, 247, 242, 0.45);
}

@media (max-width: 720px) {
  .footer__bottom {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* -------- Form (contact) -------- */

.form {
  display: grid;
  gap: 1.25rem;
  max-width: 540px;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form__field label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

.form__field input,
.form__field textarea,
.form__field select {
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-size: 1rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s ease;
}

.form__field input:focus,
.form__field textarea:focus,
.form__field select:focus {
  outline: none;
  border-color: var(--accent);
}

.form__field textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--sans);
}

.form__honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  font-size: 0.95rem;
  min-height: 1.2em;
  margin: 0;
}

.form__status--ok {
  color: var(--accent-deep);
}

.form__status--error {
  color: #a02020;
}

.form__note {
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-top: 0.5rem;
}

/* -------- Page Header (interior pages) -------- */

.page-header {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}

.page-header__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.page-header h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  max-width: 22ch;
}

.page-header h1 em {
  font-style: italic;
  color: var(--accent);
}

.page-header__lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* -------- Image strip (decorative break) -------- */

.image-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  background: var(--ink);
}

@media (max-width: 720px) {
  .image-strip {
    grid-template-columns: 1fr;
  }
}

.image-strip__item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin: 0;
}

.image-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-strip__item figcaption {
  position: absolute;
  bottom: 0.5rem;
  right: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  font-family: var(--sans);
}

/* -------- Subtle entrance animation -------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title,
.hero__lede,
.hero__cta,
.page-header h1,
.page-header__lede {
  animation: rise 0.7s ease-out backwards;
}

.hero__title,
.page-header h1 {
  animation-delay: 0.05s;
}

.hero__lede,
.page-header__lede {
  animation-delay: 0.15s;
}

.hero__cta {
  animation-delay: 0.25s;
}

/* -------- Misc -------- */

.text-accent {
  color: var(--accent);
}

.serif {
  font-family: var(--serif);
}

.italic {
  font-style: italic;
}

/* -------- Justified body copy -------- */
/* Body paragraphs in major content blocks are justified, with automatic
   hyphenation. Pull-quotes, footer, captions, form notes stay left-aligned
   so they keep their rhythm. */

.hero__lede,
.page-header__lede,
.section__intro,
.section p:not(.aside__quote):not(.form__note):not(.form__status):not(.paragraph--note),
.duo__text p,
.pillar p,
.step__body p,
.compare__col p,
.cta p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-justify: inter-word;
}

/* -------- Image credit on duo media -------- */

.duo__credit {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  font-family: var(--sans);
}

/* -------- Definition list (label + body, grid-aligned) --------
   Used for the "Commercial structure", "What we will not do", "Boundaries",
   "What to expect", and the "Where we work" delivery breakdown.
   Replaces the misaligned <ul><li><strong>...</strong>...</li> pattern. */

.deflist {
  display: grid;
  grid-template-columns: 11rem 1fr;
  column-gap: 1.75rem;
  row-gap: 1rem;
  margin: 1.5rem 0;
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}

.deflist--wide {
  grid-template-columns: 17rem 1fr;
}

.deflist dt {
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.5;
}

.deflist dt::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.deflist dd {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
  text-align: justify;
  hyphens: auto;
}

.deflist dt:not(:first-child),
.deflist dd:not(:nth-child(2)) {
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

@media (max-width: 720px) {
  .deflist,
  .deflist--wide {
    grid-template-columns: 1fr;
    row-gap: 0.25rem;
  }
  .deflist dd:not(:nth-child(2)) {
    padding-top: 0;
    border-top: none;
  }
  .deflist dt:not(:first-child) {
    margin-top: 1rem;
  }
}

/* -------- Small helper classes (replace inline styles) -------- */

.paragraph--spaced { margin-top: 1.5rem; }

.paragraph--note {
  margin-top: 2rem;
  color: var(--ink-mute);
  font-size: 0.95rem;
  max-width: 60ch;
  text-align: left;
}

.paragraph--mute {
  font-size: 1rem;
  color: var(--ink-mute);
}

.form__heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.12;
  margin-bottom: 1.5rem;
}

.not-found__actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.link {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}
.link:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent-deep);
}
