/*
Theme Name: Ilxonwat
Theme URI: https://ilxonwat.com
Author: ilxonwat LLC
Author URI: https://ilxonwat.com
Description: The ilxonwat LLC site â€” software and AI engineering. Monochrome, full-bleed, with Mission, Research, Approach, Services and Contact.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ilxonwat
Tags: business, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   Ilxonwat LLC — shared styles
   Monochrome. Ink and paper only. Hairline rules, generous whitespace.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------ */
:root {
  --paper:        #FFFFFF;
  --paper-2:      #F7F7F5;
  --ink:          #0B0B0C;
  --ink-2:        #2B2B30;
  --muted:        #6C6C73;
  --hair:         #E6E6E3;
  --hair-2:       #F0F0ED;
  --shadow-md:    0 1px 2px rgba(11, 11, 12, .04), 0 12px 32px rgba(11, 11, 12, .06);

  --font-display: "Inter Tight", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, sans-serif;
  --font-serif:   "Instrument Serif", "Georgia", serif;
  --font-mono:    "IBM Plex Mono", "Cascadia Code", Consolas, monospace;

  --wrap: 1600px;
  --gutter: clamp(20px, 3vw, 56px);
  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
  --paper:        #0B0B0C;
  --paper-2:      #131314;
  --ink:          #F5F5F2;
  --ink-2:        #D6D6D3;
  --muted:        #8C8C93;
  --hair:         #26262A;
  --hair-2:       #1B1B1E;
  --shadow-md:    0 1px 2px rgba(0, 0, 0, .5), 0 12px 40px rgba(0, 0, 0, .4);
}

html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

::selection { background: var(--ink); color: var(--paper); }

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

/* --- Wordmark (the logo) ------------------------------------------------ */
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.012em;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1;
  text-rendering: geometricPrecision;
  transition: color .35s var(--ease);
}

.wordmark--lg { font-size: clamp(1.9rem, 5vw, 2.8rem); }

.wordmark-mark {
  display: inline-block;
  vertical-align: -0.3em;
  width: 1.5em;
  height: 1.5em;
  margin-right: .5em;
  color: var(--ink);
  stroke-width: 1.7;
}

/* --- Layout ------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Edge-to-edge hairline, independent of the content grid */
.rule {
  height: 1px;
  background: var(--hair);
  width: 100%;
}

.section { padding: 104px 0; }
.section + .section { border-top: 1px solid var(--hair); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.section-head { max-width: 780px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.section-head p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

.lead {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* --- Header ------------------------------------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .35s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--hair); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.brand { display: flex; align-items: center; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: .93rem;
  color: var(--ink-2);
  transition: color .2s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* --- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .93rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { box-shadow: var(--shadow-md); }

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

.btn--sm { padding: 8px 15px; font-size: .86rem; }

/* --- Theme toggle ------------------------------------------------------ */
.theme-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* --- Mobile menu ------------------------------------------------------- */
.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s var(--ease);
}
.menu-toggle:hover { border-color: var(--ink); }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  border-top: 1px solid var(--hair);
  background: var(--paper);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-inner { padding-block: 6px 20px; }
.mobile-nav-inner a:not(.btn) {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 1.05rem;
  color: var(--ink-2);
}
.mobile-nav-inner a:not(.btn):last-of-type { border-bottom: 0; }
.mobile-nav-inner .btn { margin-top: 18px; width: 100%; justify-content: center; }

/* --- Hero -------------------------------------------------------------- */
.hero { padding: 96px 0 84px; position: relative; }

.hero h1 {
  font-size: clamp(2.5rem, 7.2vw, 6.4rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.97;
  margin-top: 10px;
}

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 56px;
  align-items: end;
  margin-top: 44px;
}

.hero-lead { max-width: 44rem; }

.hero-sub {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--muted);
}

.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-meta { margin: 0; display: grid; gap: 0; }
.hero-meta > div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hair);
}
.hero-meta > div:first-child { border-top: 1px solid var(--hair); }
.hero-meta dt {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.hero-meta dd { margin: 0; font-size: .98rem; color: var(--ink-2); }
.hero-meta dd a { border-bottom: 1px solid var(--hair); transition: border-color .2s var(--ease); }
.hero-meta dd a:hover { border-color: var(--ink); }

/* --- Capability strip -------------------------------------------------- */
.strip {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: var(--paper-2);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.strip-item {
  padding: 26px 24px;
  border-left: 1px solid var(--hair);
}
.strip-item:first-child { border-left: 0; }
.strip-item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.strip-item span { font-size: .88rem; color: var(--muted); }

/* --- Cards ------------------------------------------------------------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 20px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--hair)); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-index {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.22rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: .96rem; }

.card-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--hair);
  display: grid;
  gap: 9px;
}
.card-list li {
  position: relative;
  padding-left: 18px;
  font-size: .9rem;
  color: var(--ink-2);
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--ink);
}

/* --- Steps ------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step {
  border-top: 1px solid var(--ink);
  padding: 26px 28px 0 0;
  margin-right: 28px;
}
.step:last-child { margin-right: 0; }
.step-num {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 14px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 10px; }
.step p { font-size: .94rem; color: var(--muted); }

/* --- Stack ------------------------------------------------------------- */
.stack {
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--hair);
}
.stack-label { font-size: .92rem; color: var(--muted); }
.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.chip {
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--ink-2);
  background: var(--paper-2);
}

/* --- Contact ----------------------------------------------------------- */
.contact-box {
  border: 1px solid var(--hair);
  border-radius: 18px;
  background: var(--paper-2);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}
.contact-box h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.contact-box p { margin-top: 16px; color: var(--muted); max-width: 30rem; }

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--hair);
  padding-bottom: 4px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.email-link:hover { border-color: var(--ink); }

/* --- Footer ------------------------------------------------------------ */
.footer { border-top: 1px solid var(--hair); padding: 44px 0 40px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-meta { font-size: .88rem; color: var(--muted); }
.footer-links { display: flex; gap: 24px; font-size: .88rem; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

/* --- Logo draft sheet -------------------------------------------------- */
.sheet { padding: 72px 0 100px; }
.sheet h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 12px; }
.sheet-intro { color: var(--muted); max-width: 46rem; margin-bottom: 48px; }

.logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }

.logo-card {
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.logo-card__head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.logo-card__head strong { font-size: .95rem; font-weight: 500; font-family: var(--font-display); letter-spacing: -.02em; }
.logo-card__head span { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); letter-spacing: .08em; }

.logo-stage {
  padding: 56px 32px;
  display: grid;
  place-items: center;
  min-height: 168px;
  border-bottom: 1px solid var(--hair);
}
.logo-stage--light { background: #FFFFFF; }
.logo-stage--dark { background: #0B0B0C; }

.logo-note { padding: 16px 22px 20px; font-size: .86rem; color: var(--muted); }

/* Wordmark variants — all uppercase, all letters on one uniform cap height */
.wm-a { font-family: var(--font-display); font-weight: 700; letter-spacing: -.015em; font-size: 1.85rem; line-height: 1; }
.wm-b { font-family: var(--font-display); font-weight: 600; letter-spacing: .02em;  font-size: 1.85rem; line-height: 1; }
.wm-c { font-family: var(--font-body);    font-weight: 700; letter-spacing: .01em;  font-size: 1.8rem;  line-height: 1; }
.wm-d { font-family: var(--font-mono);    font-weight: 600; letter-spacing: .06em;  font-size: 1.55rem; line-height: 1; }
.wm-e { font-family: var(--font-display); font-weight: 800; letter-spacing: -.035em; font-size: 1.85rem; line-height: 1; }

.stage-light .wm-a, .stage-light .wm-b, .stage-light .wm-c,
.stage-light .wm-d, .stage-light .wm-e { color: #0B0B0C; }
.stage-dark .wm-a, .stage-dark .wm-b, .stage-dark .wm-c,
.stage-dark .wm-d, .stage-dark .wm-e { color: #F5F5F2; }

.sheet-sub {
  margin: 64px 0 22px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Index rows (studios, products) ------------------------------------ */
.rows { border-top: 1px solid var(--hair); }

.row {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr) auto;
  gap: 36px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--hair);
  transition: background-color .2s var(--ease);
}
.row-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.12rem;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.row-desc { color: var(--muted); font-size: .95rem; }
.row-meta {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  color: var(--muted);
  white-space: nowrap;
}
.row:hover .row-title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.row:hover .row-meta { color: var(--ink); }

.rows-note {
  margin-top: 26px;
  font-size: .92rem;
  color: var(--muted);
}
.rows-note a { color: var(--ink); border-bottom: 1px solid var(--hair); }
.rows-note a:hover { border-color: var(--ink); }

/* --- Research entries --------------------------------------------------- */
.page-head { padding: 92px 0 60px; }
.page-head h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-top: 10px;
}
.page-head p {
  margin-top: 24px;
  max-width: 46rem;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--muted);
}

.entries { border-top: 1px solid var(--ink); }
.entry { padding: 40px 0 44px; border-bottom: 1px solid var(--hair); }
.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.entry h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 500; }
.entry-meta {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.entry-body {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
}
.entry-body > p { color: var(--muted); font-size: .97rem; }

.facts { list-style: none; margin: 0; padding: 0; }
.facts li {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hair);
  font-size: .9rem;
  color: var(--muted);
}
.facts li:first-child { border-top: 1px solid var(--hair); }
.facts b { font-weight: 500; color: var(--ink); }

.outcome {
  margin-top: 30px;
  padding: 2px 0 2px 20px;
  border-left: 2px solid var(--ink);
}
.outcome-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.outcome p { font-size: .95rem; color: var(--ink-2); }
.outcome .metric { font-family: var(--font-mono); font-size: .82rem; color: var(--ink); }

.links { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 9px 16px;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--ink-2);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.link-chip:hover { border-color: var(--ink); color: var(--ink); }

.section-lead-note {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--hair);
  font-size: .95rem;
  color: var(--muted);
  max-width: 52rem;
}
.section-lead-note a {
  color: var(--ink);
  border-bottom: 1px solid var(--hair);
  transition: border-color .2s var(--ease);
}
.section-lead-note a:hover { border-color: var(--ink); }
.section-lead-note.note-wide { max-width: none; }
.section-lead-note.note-wide > p { max-width: 52rem; }

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .hero-body { grid-template-columns: 1fr; gap: 40px; align-items: start; }
  .hero h1 { max-width: 100%; }
  .hero-meta { max-width: 620px; }
}

@media (max-width: 900px) {
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(3) { border-left: 0; }
  .strip-item:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .step { border-top: 1px solid var(--ink); margin-right: 24px; }
  .contact-box { grid-template-columns: 1fr; padding: 44px 30px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; }
  .row-desc { grid-column: 1 / -1; }
  .entry-body { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .wrap { padding-inline: 20px; }
  .hero { padding: 60px 0 56px; }
  .hero h1 { font-size: clamp(2.05rem, 9.2vw, 2.9rem); line-height: 1.03; }
  .hero-body { margin-top: 32px; padding-top: 30px; gap: 32px; }
  .hero-cta { margin-top: 26px; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .hero-meta > div { grid-template-columns: 1fr; gap: 5px; padding: 13px 0; }
  .strip-grid { grid-template-columns: 1fr; }
  .strip-item { border-left: 0; border-top: 1px solid var(--hair); }
  .strip-item:first-child { border-top: 0; }
  .steps { grid-template-columns: 1fr; }
  .step { margin-right: 0; }
  .contact-box { padding: 32px 22px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-direction: column; gap: 8px; }
}

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


/* --- WordPress admin bar offset ------------------------------------ */
body.admin-bar .header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .header { top: 46px; }
}
