/* =========================================================
   MK Holding Co
   ========================================================= */

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

:root {
  --ink:        #0f1113;
  --navy:       #14213d;
  --gold:       #b78628;
  --gold-hover: #9a6f1f;
  --gold-lift:  #d7a949;
  --paper:      #f6f5f2;
  --rule:       #e3e0d8;

  --text:       #191b1e;
  --text-soft:  #4e5157;
  --on-dark:    #f3f2ef;
  --on-dark-soft: rgba(243, 242, 239, 0.74);

  --shell: 1140px;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --step: clamp(3.5rem, 7vw, 6.5rem);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
}
h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); }
h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.35;
  letter-spacing: 0;
}
p { margin: 0 0 1.1em; color: var(--text-soft); max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
}
.skip-link:focus { left: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  padding: 1rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn-solid { background: var(--gold); color: #fff; }
.btn-solid:hover { background: var(--gold-hover); }
.btn-line { background: transparent; color: var(--text); border-color: #c9c5bb; }
.btn-line:hover { border-color: var(--text); }
.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(170%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 40px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 2.1rem; }
.site-nav a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.18s ease;
}
.site-nav a:hover { color: var(--gold-hover); }
.site-nav .nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.3rem;
  border-radius: 2px;
}
.site-nav .nav-cta:hover { background: var(--gold); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.6rem;
  margin-right: -0.6rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(180deg, #fbfaf8 0%, #ffffff 68%);
}
.hero-title {
  font-size: clamp(2.3rem, 6.2vw, 4.6rem);
  margin-bottom: 2rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.hero-lede {
  font-size: 1.13rem;
  max-width: 46ch;
  margin: 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-figure {
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  overflow: hidden;
  border-radius: 3px;
}
.hero-figure img { width: 100%; }

/* ---------- Bands ---------- */
.band { padding-block: var(--step); background: #fff; }
.band-paper { background: var(--paper); }

.band-deep {
  background: var(--navy);
  color: var(--on-dark);
  text-align: center;
}
.band-deep h2 { color: var(--on-dark); }
.band-deep p {
  color: var(--on-dark-soft);
  font-size: 1.1rem;
}

.band-title {
  max-width: 20ch;
  margin-bottom: 3rem;
}

.measure-center {
  max-width: 44rem;
  text-align: center;
}
.measure-center p { margin-inline: auto; }

/* ---------- Approach ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.approach-copy h2 { max-width: 22ch; }
.approach-copy p { font-size: 1.08rem; }

.sector-heading {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--gold);
}
.sector-list { list-style: none; margin: 0; padding: 0; }
.sector-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1.02rem;
  color: var(--text);
}
.sector-list .sector-more {
  color: var(--text-soft);
  font-style: italic;
  border-bottom: 0;
}

/* ---------- Portfolio ---------- */
.portfolio-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.statement {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin: 0;
  max-width: 14ch;
}
.portfolio-detail { padding-top: 0.6rem; }
.portfolio-detail p { font-size: 1.08rem; }

/* ---------- Standards ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pillar {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 2.25rem 1.75rem;
}
.pillar-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 1.5rem;
  color: var(--gold);
}
.pillar h3 { margin-bottom: 0.65rem; }
.pillar p { font-size: 0.97rem; margin: 0; }

/* ---------- Brand collage ---------- */
.ventures-head { max-width: 48rem; margin-bottom: 3rem; }
.ventures-head h2 { max-width: 16ch; }
.ventures-head p { font-size: 1.06rem; }

.collage {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.25rem;
}
.brandcard > a {
  display: flex; flex-direction: column; height: 100%;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.brandcard > a:hover { border-color: var(--gold); transform: translateY(-2px); }
.brandcard-art {
  display: flex; align-items: center; justify-content: center;
  height: 132px; padding: 1.4rem;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.brandcard-art img { max-height: 100%; width: auto; }
.brandcard-art--dark { background: var(--ink); }
.brandcard-body {
  display: flex; flex-direction: column; flex: 1;
  gap: 0.55rem; padding: 1.4rem;
}
.brandcard-name {
  font-family: var(--serif); font-weight: 600; font-size: 1.12rem;
  line-height: 1.25; color: var(--text);
}
.brandcard-desc { font-size: 0.94rem; color: var(--text-soft); line-height: 1.55; }
.brandcard-kind {
  margin-top: auto; padding-top: 0.9rem;
  font-size: 0.77rem; font-weight: 500; color: var(--text-soft);
}
.brandcard-kind::before {
  content: ""; display: block; width: 24px; height: 2px;
  background: var(--gold); margin-bottom: 0.65rem;
}

.ventures-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule);
}
.ventures-foot p { margin: 0; max-width: 52ch; }
.ventures-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Contact ---------- */
.band-contact {
  background: linear-gradient(160deg, var(--navy) 0%, var(--ink) 100%);
  color: var(--on-dark);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-intro h2 {
  color: var(--on-dark);
  max-width: 14ch;
}
.contact-intro p { color: var(--on-dark-soft); }
.contact-direct { font-size: 0.97rem; }
.contact-direct a {
  color: var(--gold-lift);
  border-bottom: 1px solid rgba(215, 169, 73, 0.4);
  padding-bottom: 1px;
}
.contact-direct a:hover { border-bottom-color: var(--gold-lift); }

.contact-form { display: grid; gap: 1.1rem; }

.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--on-dark);
}
.field .optional {
  color: rgba(243, 242, 239, 0.5);
  font-weight: 400;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: 0.97rem;
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  padding: 0.8rem 0.9rem;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--on-dark-soft) 50%),
                    linear-gradient(135deg, var(--on-dark-soft) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 15px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
  cursor: pointer;
}
/* Native option lists render on the OS surface, so they need their own colors. */
.field select option { background: var(--ink); color: var(--on-dark); }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(243, 242, 239, 0.4); }
.field input:hover,
.field textarea:hover,
.field select:hover { border-color: rgba(255, 255, 255, 0.3); }
/* background-color, not the background shorthand: the select's arrow is a
   background-image and the shorthand would erase it on focus. */
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.09);
  border-color: var(--gold-lift);
  box-shadow: 0 0 0 3px rgba(215, 169, 73, 0.18);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #e2795f; }

.field-error {
  margin: 0;
  font-size: 0.84rem;
  color: #f0a08b;
  max-width: none;
}

.trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-status {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  padding: 0.85rem 1rem;
  border-radius: 2px;
  border: 1px solid transparent;
  max-width: none;
}
.form-status[data-tone="ok"] {
  color: #bfe6c8;
  background: rgba(93, 173, 118, 0.12);
  border-color: rgba(93, 173, 118, 0.35);
}
.form-status[data-tone="error"] {
  color: #f3b5a3;
  background: rgba(226, 121, 95, 0.1);
  border-color: rgba(226, 121, 95, 0.35);
}
.form-status a { color: inherit; text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-soft);
  padding-block: 3rem 1.75rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.footer-logo { height: 40px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.footer-nav a {
  font-size: 0.9rem;
  color: var(--on-dark-soft);
  transition: color 0.18s ease;
}
.footer-nav a:hover { color: var(--gold-lift); }
.colophon {
  margin: 1.5rem 0 0;
  font-size: 0.84rem;
  color: rgba(243, 242, 239, 0.45);
  max-width: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .approach-grid,
  .portfolio-inner,
  .contact-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .statement { max-width: 20ch; }
  .band-title { max-width: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .site-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0.75rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 0.85rem 0;
    border-top: 1px solid var(--rule);
  }
  .site-nav .nav-cta {
    margin-top: 0.85rem;
    text-align: center;
    border-top: 0;
  }
  .hero-meta { align-items: flex-start; }
  .footer-inner { justify-content: center; text-align: center; }
  .colophon { text-align: center; }
}

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