/* ============================================================
   JUSTIN THOMAS PORTFOLIO — style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --bg:            #ffffff;
  --surface:       #f8f8f8;
  --surface-alt:   #f0f0f0;
  --border:        #e2e2e2;
  --accent:        #2563eb;
  --accent-hover:  #1d4ed8;
  --text:          #0f0f0f;
  --text-secondary:#4b4b4b;
  --text-muted:    #9a9a9a;
  --green:         #16a34a;
  --max-width:     1100px;
  --nav-height:    64px;
  --section-pad:   100px;
  --radius:        10px;
  --radius-sm:     6px;
  --radius-xs:     4px;
  --transition:    all 0.2s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   UTILITIES — LABEL
   ============================================================ */
.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.label--muted { color: var(--text-muted); }

/* ============================================================
   UTILITIES — TAGS
   ============================================================ */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ============================================================
   UTILITIES — BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--text-secondary);
}
.badge::before            { content: '●'; font-size: 8px; }
.badge--live::before      { color: var(--green); }
.badge--prototype::before { color: var(--accent); }

/* ============================================================
   UTILITIES — BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}

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

.btn--outline { background: transparent; color: var(--text-secondary); border-color: var(--border); }
.btn--outline:hover { border-color: var(--accent); color: var(--text); }

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

.btn--sm  { padding: 8px 16px;  font-size: 13px; }
.btn--lg  { padding: 14px 32px; font-size: 15px; font-weight: 600; }
.btn--full { width: 100%; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo { font-size: 18px; font-weight: 600; color: var(--text); transition: var(--transition); }
.nav__logo:hover { color: var(--text-secondary); }

.nav__right { display: flex; align-items: center; gap: 32px; }

.nav__links { display: flex; align-items: center; gap: 32px; }

.nav__link { font-size: 14px; color: var(--text-secondary); transition: var(--transition); }
.nav__link:hover,
.nav__link.active { color: var(--text); }

.nav__cta { padding: 8px 16px; font-size: 13px; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 2px;
}
.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 40px 0; }

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.footer__name    { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.footer__tagline { font-size: 13px; color: var(--text-muted); }

.footer__right { display: flex; gap: 24px; align-items: center; }

.footer__link { font-size: 13px; color: var(--text-secondary); transition: var(--transition); }
.footer__link:hover { color: var(--text); }

.footer__bottom { padding-top: 24px; border-top: 1px solid var(--border); text-align: center; }
.footer__bottom p { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   HOME — HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 60px) 0 80px;
  background: radial-gradient(ellipse at 0% 0%, rgba(37, 99, 235, 0.13) 0%, transparent 65%), #ffffff;
}

/* No grain overlay on light theme */
.hero::before { display: none; }

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
}

.hero__label   { margin-bottom: 16px; }
.hero__h1      { font-size: 56px; font-weight: 700; color: var(--text); line-height: 1.1; }
.hero__sub     { font-size: 18px; color: var(--text-secondary); line-height: 1.7; max-width: 480px; margin-top: 24px; }
.hero__buttons { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

/* Architecture card */
.arch-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}
.arch-card__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.arch-flow { display: flex; flex-direction: column; align-items: stretch; }
.arch-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.arch-box__icon { color: var(--accent); font-size: 14px; flex-shrink: 0; }
.arch-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 24px;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}
.arch-card__tags { margin-top: 20px; }

/* Scroll chevron */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 22px;
  animation: bounce 2s ease-in-out infinite;
  z-index: 1;
  line-height: 1;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   HOME — CREDIBILITY BAR
   ============================================================ */
.credibility {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.credibility__heading { text-align: center; margin-bottom: 24px; }
.credibility__stats   { display: grid; grid-template-columns: repeat(4, 1fr); }

.credibility__stat {
  text-align: center;
  padding: 0 24px;
  position: relative;
}
.credibility__stat + .credibility__stat::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  height: 40px; width: 1px;
  background: var(--border);
}
.credibility__number { font-size: 28px; font-weight: 700; color: var(--text); display: block; }
.credibility__desc   { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* ============================================================
   HOME — SECTION SHARED
   ============================================================ */
.section-header { margin-bottom: 56px; }
.section-header h2 { font-size: 36px; font-weight: 700; color: var(--text); }
.section-header p  { font-size: 16px; color: var(--text-secondary); margin-top: 8px; }

.section-header--flex {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.section-header__link { font-size: 14px; color: var(--accent); transition: var(--transition); white-space: nowrap; }
.section-header__link:hover { color: var(--accent-hover); }

/* ============================================================
   HOME — FOCUS AREAS
   ============================================================ */
.focus { padding: var(--section-pad) 0; }

.focus__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.focus__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}
.focus__card:hover { border-color: var(--accent); }
.focus__icon     { color: var(--accent); font-size: 24px; line-height: 1; }
.focus__card h3  { font-size: 18px; font-weight: 600; color: var(--text); margin-top: 16px; }
.focus__card p   { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-top: 12px; }

/* ============================================================
   HOME — FEATURED PROJECTS
   ============================================================ */
.projects-preview { padding: var(--section-pad) 0; border-top: 1px solid var(--border); }

.project-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.project-card:hover { box-shadow: 0 0 0 1px var(--accent); }

.project-card__title { font-size: 20px; font-weight: 600; color: var(--text); margin-top: 12px; }
.project-card__desc  { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-top: 8px; flex: 1; }
.project-card__tags  { margin-top: 20px; }
.project-card__link  { display: inline-block; margin-top: 24px; font-size: 14px; color: var(--accent); transition: var(--transition); }
.project-card__link:hover { color: var(--accent-hover); }

/* ============================================================
   HOME — WRITING PREVIEW
   ============================================================ */
.writing-preview { padding: var(--section-pad) 0; border-top: 1px solid var(--border); }

.writing-list { display: flex; flex-direction: column; }

.writing-item { padding: 24px 0; border-bottom: 1px solid var(--border); }
.writing-item:first-child { border-top: 1px solid var(--border); }

.writing-item__category { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.writing-item__title    { font-size: 18px; font-weight: 600; color: var(--text); margin-top: 8px; transition: var(--transition); display: block; }
a:hover .writing-item__title { color: var(--accent); }
.writing-item--placeholder .writing-item__title { color: var(--text-muted); }
.writing-item__desc { font-size: 14px; color: var(--text-secondary); margin-top: 6px; }
.writing-item__date { font-size: 12px; color: var(--text-muted); margin-top: 12px; }

/* ============================================================
   HOME — CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
  text-align: center;
}
.cta-banner h2 { font-size: 36px; font-weight: 700; color: var(--text); }
.cta-banner p  { font-size: 16px; color: var(--text-secondary); max-width: 560px; margin: 16px auto 0; }
.cta-banner .btn { margin-top: 32px; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding-top: calc(var(--nav-height) + 76px);
  padding-bottom: 60px;
}
.page-hero__label { margin-bottom: 16px; }
.page-hero h1     { font-size: 48px; font-weight: 700; color: var(--text); line-height: 1.1; }
.page-hero__sub   { font-size: 18px; color: var(--text-secondary); line-height: 1.7; max-width: 560px; margin-top: 16px; }

.page-hero--centered { text-align: center; }
.page-hero--centered .page-hero__sub { margin-left: auto; margin-right: auto; }

.page-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ============================================================
   PROJECTS PAGE — FILTER BAR
   ============================================================ */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 48px; }

.filter-btn {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.filter-btn:hover  { border-color: var(--accent); color: var(--text); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============================================================
   PROJECTS PAGE — FULL CARDS
   ============================================================ */
.project-full {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 65fr 35fr;
  gap: 40px;
  transition: var(--transition);
}
.project-full:hover { border-color: var(--accent); }

.project-full__title   { font-size: 24px; font-weight: 600; color: var(--text); margin-top: 12px; }
.project-full__usecase { font-size: 14px; color: var(--accent); margin-top: 6px; }
.project-full__desc    { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-top: 12px; }
.project-full__tags    { margin-top: 20px; }

.project-full__links { display: flex; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.project-full__link  { font-size: 14px; color: var(--accent); transition: var(--transition); }
.project-full__link:hover { color: var(--accent-hover); }
.project-full__link--muted { color: var(--text-secondary); }
.project-full__link--muted:hover { color: var(--text); }

/* Stack panel */
.stack-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  align-self: start;
}
.stack-panel__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 16px; }
.stack-list { display: flex; flex-direction: column; gap: 12px; }
.stack-item { display: flex; align-items: flex-start; gap: 8px; }
.stack-item__dot  { color: var(--accent); font-size: 12px; margin-top: 3px; flex-shrink: 0; }
.stack-item__name { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.stack-item__role { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   CASE STUDY
   ============================================================ */
.case-hero {
  padding-top: calc(var(--nav-height) + 76px);
  padding-bottom: 60px;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--accent); transition: var(--transition); }
.breadcrumb a:hover { color: var(--accent-hover); }

.case-hero h1    { font-size: 48px; font-weight: 700; line-height: 1.1; color: var(--text); margin-top: 16px; }
.case-hero__sub  { font-size: 20px; color: var(--text-secondary); line-height: 1.6; margin-top: 16px; }
.case-meta       { font-size: 13px; color: var(--text-muted); margin-top: 16px; }
.case-hero .tags { margin-top: 20px; }
.case-hero .page-divider { margin-top: 40px; }

.case-body {
  max-width: var(--max-width);
  margin: 60px auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 68fr 32fr;
  gap: 60px;
  align-items: flex-start;
}

/* Sidebar */
.case-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}
.case-sidebar__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 20px; }
.summary-item         { margin-bottom: 16px; }
.summary-item__label  { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 4px; }
.summary-item__value  { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.case-sidebar hr      { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* Case sections */
.case-section { margin-bottom: 60px; }
.case-section__label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.case-section h2 { font-size: 26px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.case-section p  { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.case-section p:last-child { margin-bottom: 0; }

/* Callout */
.callout {
  background: var(--surface-alt);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 24px 28px;
  margin: 24px 0;
}
.callout p { font-size: 15px; color: var(--text); line-height: 1.7; margin: 0; }

/* Numbered list */
.numbered-list { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.numbered-item { display: flex; align-items: flex-start; gap: 14px; }
.numbered-item__badge {
  width: 24px; height: 24px; min-width: 24px;
  background: var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: #fff;
  margin-top: 1px;
}
.numbered-item__content        { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.numbered-item__content strong { color: var(--text); }

/* Arch diagram (case study) */
.arch-diagram { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }

.arch-phase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.arch-phase__label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); text-align: center; margin-bottom: 16px;
}
.arch-phase__flow { display: flex; flex-direction: column; align-items: center; }
.arch-phase .arch-box { width: 100%; font-size: 12px; padding: 10px 14px; justify-content: flex-start; }
.arch-phase .arch-arrow { height: 20px; font-size: 14px; }

/* Settings card */
.settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 20px;
}
.settings-row { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.settings-row:first-child { padding-top: 0; }
.settings-row:last-child  { border-bottom: none; padding-bottom: 0; }
.settings-row__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); min-width: 110px; }
.settings-row__value { font-size: 14px; color: var(--text); }

/* Code block */
.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 20px 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.8;
  overflow-x: auto;
}
.code-key    { color: var(--accent); }
.code-string { color: var(--green); }
.code-number { color: #e8a87c; }
.code-punct  { color: var(--text-muted); }

/* Before/after */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.compare__col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
}
.compare__col--after { border-color: var(--green); }
.compare__header { font-size: 12px; font-weight: 500; color: var(--text-muted); margin-bottom: 12px; }
.compare__col--after .compare__header { color: var(--green); }
.compare__q {
  font-size: 13px; color: var(--text-muted); font-style: italic;
  margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.compare__a { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.compare__col--after .compare__a { color: var(--text); }

/* Tradeoffs table */
.tradeoffs-table { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-top: 20px; border-collapse: collapse; }
.tradeoffs-table thead tr { background: var(--surface-alt); }
.tradeoffs-table th { padding: 12px 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); text-align: left; }
.tradeoffs-table td { padding: 14px 20px; font-size: 14px; color: var(--text-secondary); border-top: 1px solid var(--border); vertical-align: top; }
.tradeoffs-table td:first-child { color: var(--text); font-weight: 500; }

/* Next version list */
.next-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.next-item { display: flex; gap: 10px; font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.next-item::before { content: '→'; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* Case bottom nav */
.case-bottom-nav { display: flex; justify-content: space-between; padding-top: 48px; margin-top: 80px; border-top: 1px solid var(--border); }
.case-bottom-nav a { font-size: 14px; color: var(--text-secondary); transition: var(--transition); }
.case-bottom-nav a:hover { color: var(--text); }
.case-bottom-nav a.accent { color: var(--accent); }
.case-bottom-nav a.accent:hover { color: var(--accent-hover); }

/* ============================================================
   WRITING PAGE
   ============================================================ */
.article-list { margin-top: 8px; }

.article-row {
  display: grid;
  grid-template-columns: 75fr 25fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.article-row:first-child { border-top: 1px solid var(--border); }

.article-row__category { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.article-row__title    { font-size: 22px; font-weight: 600; color: var(--text); margin-top: 8px; transition: var(--transition); display: block; }
a:hover .article-row__title { color: var(--accent); }
.article-row--placeholder .article-row__title { color: var(--text-muted); cursor: default; }
.article-row__desc     { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-top: 8px; }
.article-row__readmore { display: block; font-size: 13px; color: var(--accent); margin-top: 16px; transition: var(--transition); }
.article-row__readmore:hover { color: var(--accent-hover); }

.article-row__right { text-align: right; }
.article-row__date  { font-size: 13px; color: var(--text-muted); }
.platform-badge {
  display: inline-block;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero { padding-top: calc(var(--nav-height) + 76px); padding-bottom: 60px; }
.about-hero__inner { display: grid; grid-template-columns: 60fr 40fr; gap: 80px; align-items: flex-start; }

.about-photo {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-body { max-width: 720px; margin: 80px auto 0; padding: 0 24px; }

.about-section { margin-bottom: 56px; }
.about-section:not(:last-child) { padding-bottom: 56px; border-bottom: 1px solid var(--border); }
.about-section h2 { font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.about-section p  { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.about-section p:last-child { margin-bottom: 0; }

.tools-section { padding: var(--section-pad) 0; }
.tools-section h2 { font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.tools-section > .container > p { font-size: 14px; color: var(--text-secondary); margin-bottom: 32px; }

.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  transition: var(--transition);
}
.tool-cell:hover { border-color: var(--accent); }
.tool-cell__name { font-size: 14px; font-weight: 600; color: var(--text); }
.tool-cell__role { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 640px; margin: 56px auto 0; }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-card:hover { border-color: var(--accent); }
.contact-card__icon  { font-size: 28px; color: var(--accent); line-height: 1; }
.contact-card__title { font-size: 16px; font-weight: 600; color: var(--text); margin-top: 12px; }
.contact-card__link  { font-size: 14px; color: var(--accent); margin-top: 8px; transition: var(--transition); }
.contact-card__link:hover { color: var(--accent-hover); }

.contact-form-wrap { max-width: 560px; margin: 64px auto 0; padding-bottom: var(--section-pad); }
.contact-form-wrap h2 { font-size: 20px; font-weight: 600; color: var(--text); margin-bottom: 32px; }

.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: var(--transition);
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--accent); }
.form-field textarea { min-height: 140px; }

.form-submit {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
  background: var(--accent);
  color: #fff; border: none;
  cursor: pointer; font-family: inherit;
  transition: var(--transition);
  margin-top: 8px;
}
.form-submit:hover { background: var(--accent-hover); }
.form-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 12px; }

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --section-pad: 64px; }

  /* Nav */
  .nav__links,
  .nav__cta { display: none; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
  }
  .nav__links.open .nav__link { padding: 12px 24px; width: 100%; text-align: center; }
  .nav__hamburger { display: flex; }
  .nav__right { gap: 16px; }

  /* Hero */
  .hero__inner { grid-template-columns: 1fr; }
  .hero__h1    { font-size: 38px; }
  .hero__sub   { max-width: 100%; }
  .hero__scroll { display: none; }

  /* Credibility */
  .credibility__stats { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .credibility__stat + .credibility__stat::before { display: none; }

  /* Cards */
  .focus__cards           { grid-template-columns: 1fr; }
  .project-preview-grid   { grid-template-columns: 1fr; }

  /* CTA */
  .cta-banner h2 { font-size: 28px; }

  /* Footer */
  .footer__top { flex-direction: column; gap: 24px; }

  /* Page hero */
  .page-hero h1 { font-size: 36px; }
  .section-header h2 { font-size: 28px; }
  .section-header--flex { flex-direction: column; gap: 8px; }

  /* Projects */
  .project-full { grid-template-columns: 1fr; padding: 28px; }

  /* Case study */
  .case-hero { padding-top: calc(var(--nav-height) + 48px); }
  .case-hero h1    { font-size: 36px; }
  .case-hero__sub  { font-size: 17px; }
  .case-body       { grid-template-columns: 1fr; gap: 40px; }
  .case-sidebar    { position: static; order: -1; }
  .arch-diagram    { grid-template-columns: 1fr; }
  .compare         { grid-template-columns: 1fr; }
  .case-bottom-nav { flex-direction: column; gap: 12px; }

  /* About */
  .about-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 240px; }
  .tools-grid  { grid-template-columns: repeat(2, 1fr); }

  /* Writing */
  .article-row { grid-template-columns: 1fr; }
  .article-row__right { text-align: left; }

  /* Contact */
  .contact-cards { grid-template-columns: 1fr; }
}
