:root {
  --bg: #ffffff;
  --text: #151516;
  --muted: rgba(21, 21, 22, 0.6);
  --max-width: 960px;
  --gutter: 1.25rem;

  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter Tight", "Inter", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-align: left;
}

h1 {
  margin: 0;
  font-family: "Angkor", "Inter Tight", "Inter", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 28pt;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

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

.container {
  width: min(100% - calc(var(--gutter) * 2), var(--max-width));
  margin: 0 auto;
}

.measure {
  width: 100%;
}

.flow > * + * {
  margin-top: var(--flow-space, var(--space-2));
}

.page-footer .flow {
  --flow-space: var(--space-2);
}

.page-header {
  padding: var(--space-4) 0 var(--space-3);
}

.header-copy {
  font-family: "Inter Tight", "Inter", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12pt;
  font-weight: 400;
  line-height: 1.6;
  margin-top: 0.9rem;
}

.header-copy strong {
  color: #000;
  background: #00ff67;
  padding: 0 0.15em;
  border-radius: 0.2em;
}

.work-section {
  padding: var(--space-3) 0 var(--space-4);
}

.section-title {
  margin: 0 0 0.4rem;
  font-family: "Inter Tight", "Inter", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14pt;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.company {
  margin: 0 0 0.35rem;
  font-family: "Inter Tight", "Inter", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12pt;
  font-weight: 700;
}

.roles {
  margin: 0;
  font-family: "Inter Tight", "Inter", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12pt;
  font-weight: 400;
  line-height: 1.45;
}

.roles + .company {
  margin-top: var(--space-2);
}

.contact-section {
  padding: var(--space-3) 0 var(--space-4);
}

.contact-copy {
  font-family: "Inter Tight", "Inter", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12pt;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.contact-button {
  margin-top: 0.8rem;
  text-decoration: none;
  padding: 0.65rem 2.5rem;
  border: 4px solid #000;
  border-radius: 18px;
  background: #00ff67;
  color: #000;
  font-family: "Inter Tight", "Inter", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12pt;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 0 #000;
  display: inline-block;
  text-align: center;
}

.contact-section .measure {
  text-align: center;
}

.contact-button:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 #000;
}

/* Footer */
.page-footer {
  padding: var(--space-4) 0 var(--space-5);
  color: var(--muted);
  text-align: center;
}

.footer-copy {
  font-family: "Inter Tight", "Inter", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.footer-logo {
  width: 43px;
  height: auto;
  display: block;
  margin: 0 auto var(--space-2);
}

.page-footer .container {
  position: relative;
  padding-top: var(--space-3);
}

.page-footer .container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-top: 3px solid rgba(0, 255, 103, 0.5);
}

/* =========================
   DEBUG MODE (OUTLINES ONLY)
   ========================= */
:root {
  --dbg-off-1: 12px;
  --dbg-off-2: 10px;
  --dbg-off-3: 8px;
  --dbg-off-4: 14px;

  --dbg-sect: #2b6cff;
  --dbg-cont: #22b455;
  --dbg-card: #f2b400;
  --dbg-meas: #f07500;
  --dbg-intr: #d640ff;
}

html[data-debug="on"] [data-dbg] {
  position: relative;
}

html[data-debug="on"] [data-dbg="section"] {
  outline: 4px solid var(--dbg-sect);
  outline-offset: var(--dbg-off-1);
}

html[data-debug="on"] [data-dbg="container"] {
  outline: 3px dashed var(--dbg-cont);
  outline-offset: var(--dbg-off-2);
}

html[data-debug="on"] [data-dbg="card"] {
  outline: 3px dotted var(--dbg-card);
  outline-offset: var(--dbg-off-3);
}

html[data-debug="on"] [data-dbg="measure"] {
  outline: 4px double var(--dbg-meas);
  outline-offset: var(--dbg-off-4);
}

html[data-debug="on"] a,
html[data-debug="on"] button,
html[data-debug="on"] input,
html[data-debug="on"] select,
html[data-debug="on"] textarea,
html[data-debug="on"] [role="button"] {
  outline: 3px solid var(--dbg-intr);
  outline-offset: 6px;
}

.debug-legend {
  display: none;
}

html[data-debug="on"] .debug-legend {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  width: 220px;
  font: 700 12px/1.25 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  pointer-events: none;
  display: block;
}

html[data-debug="on"] .debug-legend .title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

html[data-debug="on"] .debug-legend ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

html[data-debug="on"] .debug-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

html[data-debug="on"] .debug-legend .swatch {
  width: 16px;
  height: 10px;
  border-radius: 6px;
}
