:root {
  --paper: #F4EFE6;
  --ink: #1A1714;
  --ink-soft: #3d3630;
  --rule: #1a1714;
  --accent: #B8441F;
  --muted: #7a6f63;
  --cream: #EBE4D5;
  --suite-bg: #1a1714;
  --suite-fg: #f4efe6;
  --suite-accent: #d67355;
  --suite-rule: rgba(244, 239, 230, 0.2);
  --font1: system-ui, BlinkMacSystemFont, Roboto, "Segoe UI", Segoe, "Helvetica Neue", Tahoma, sans-serif;
  --font2: system-ui, BlinkMacSystemFont, Roboto, "Segoe UI", Segoe, "Helvetica Neue", Tahoma, sans-serif;
  --font3: "Arsenal", sans-serif;
  --f5: 17px;
  --w-total: 1280px;
  --f1: 45px;
  --f2: 35px;
  --f3: 28px;
  --f4: 22px;
  --f6: 13px;
  --g1: 71px;
  --g2: 57px;
  --g3: 47px;
  --g4: 38px;
  --g5: 31px;
  --g6: 25px;
  --x1: 50px;
  --x2: 31px;
  --x3: 19px;
  --x4: 12px;
  --x5: 7px;
  --x6: 4px;
  --w-content: 920px;
}

[data-theme=dark] {
  --paper: #1a1714;
  --ink: #f4efe6;
  --ink-soft: #c4bcb0;
  --rule: #3d3630;
  --accent: #d67355;
  --muted: #8a8077;
  --cream: #262220;
  --suite-bg: #0f0d0b;
  --suite-fg: #f4efe6;
  --suite-accent: #e8866a;
  --suite-rule: rgba(244, 239, 230, 0.12);
}

html {
  transition: background 0.3s ease;
}

body {
  transition: background 0.3s ease, color 0.3s ease;
}

/* Theme toggle */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--rule);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  margin-left: var(--x2);
  transition: all 0.3s ease;
  padding: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

.theme-toggle .sun {
  display: none;
}

.theme-toggle .moon {
  display: block;
}

[data-theme=dark] .theme-toggle .sun {
  display: block;
}

[data-theme=dark] .theme-toggle .moon {
  display: none;
}

.nav-right {
  display: flex;
  align-items: center;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font1);
  font-size: var(--f5);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.display {
  font-family: var(--font2);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.wrap {
  max-width: var(--w-total);
  margin: 0 auto;
  padding: 0 var(--x1);
}

/* Header */
header {
  border-bottom: 1px solid var(--rule);
  padding: var(--x2) 0;
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.logo {
  font-family: var(--font3);
  font-weight: 700;
  font-size: var(--f4);
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: var(--x4);
  color: var(--ink);
  text-decoration: none;
}

.logo svg {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}

.logo span.accent {
  color: var(--accent);
}

.nav ul {
  list-style: none;
  display: flex;
  gap: var(--x1);
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: var(--f6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
}

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

/* Hero */
.hero {
  padding: calc(var(--x1) * 2.38) 0 calc(var(--x1) * 2.04);
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--f6);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: calc(var(--x1) * 1.36);
  color: var(--muted);
}

.hero h1 {
  font-family: var(--font3);
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.035em;
  max-width: 14ch;
  margin-bottom: var(--x1);
  text-transform: none;
}

.hero h1 em {
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
}

.hero-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--x1) * 1.36);
  align-items: end;
  margin-top: var(--x2);
}

.hero-lede {
  font-size: var(--f5);
  line-height: 1.55;
  max-width: calc(var(--w-content) * 0.5);
  color: var(--ink-soft);
}

.hero-cta {
  text-align: right;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: var(--x3) var(--x2);
  text-decoration: none;
  font-size: var(--f6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid var(--ink);
  transition: all 0.3s 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);
}

/* Manifesto */
.manifesto {
  padding: calc(var(--x1) * 2.04) 0;
  border-bottom: 1px solid var(--rule);
}

.section-label {
  font-size: var(--f6);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--x2);
  display: block;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: calc(var(--x1) * 1.7);
}

.manifesto h2 {
  font-family: var(--font2);
  font-size: var(--f2);
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.manifesto-body p {
  font-size: var(--f4);
  line-height: 1.55;
  font-family: var(--font2);
  font-weight: 300;
  margin-bottom: var(--x2);
  max-width: 58ch;
}

.manifesto-body p:last-child {
  margin-bottom: 0;
}

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

/* Selected Work */
.work {
  padding: calc(var(--x1) * 2.04) 0;
  border-bottom: 1px solid var(--rule);
}

.work-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--x1) * 1.36);
  margin-bottom: calc(var(--x1) * 1.36);
  align-items: end;
}

.work h2 {
  font-family: var(--font3);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.work h2 em {
  font-style: normal;
  color: var(--accent);
}

.work-head p {
  font-size: var(--f5);
  color: var(--ink-soft);
  max-width: calc(var(--w-content) * 0.53);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}

.work-card {
  padding: var(--x1) var(--x2) var(--x1) 0;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.3s ease;
}

.work-card:last-child {
  border-right: none;
  padding-right: 0;
}

.work-card:not(:first-child) {
  padding-left: var(--x2);
}

.work-card:hover {
  background: var(--cream);
}

.work-num {
  font-family: var(--font2);
  font-size: var(--f6);
  font-style: italic;
  color: var(--muted);
  margin-bottom: var(--x2);
}

.work-title {
  font-family: var(--font3);
  font-size: var(--f3);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: var(--x4);
  line-height: 1.05;
}

.work-desc {
  font-size: var(--f5);
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: auto;
}

.work-link {
  font-size: var(--f6);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-top: var(--x2);
  font-weight: 500;
}

.work-card[aria-disabled=true] .work-link {
  color: var(--muted);
}

/* Services */
.services {
  padding: calc(var(--x1) * 2.04) 0;
  border-bottom: 1px solid var(--rule);
}

.services-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--x1) * 1.36);
  margin-bottom: calc(var(--x1) * 1.7);
  align-items: end;
}

.services h2 {
  font-family: var(--font2);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -0.03em;
}

.services-head p {
  font-size: var(--f5);
  color: var(--ink-soft);
  max-width: calc(var(--w-content) * 0.53);
}

.service-list {
  border-top: 1px solid var(--rule);
}

.service {
  border-bottom: 1px solid var(--rule);
  padding: var(--x1) 0;
  display: grid;
  grid-template-columns: 80px 1fr 2fr 180px;
  gap: var(--x2);
  align-items: baseline;
  transition: background 0.3s ease;
  cursor: pointer;
}

.service:hover {
  background: var(--cream);
  padding-left: var(--x3);
  padding-right: var(--x3);
}

.service-num {
  font-family: var(--font2);
  font-size: var(--f5);
  font-style: italic;
  color: var(--muted);
}

.service-name {
  font-family: var(--font2);
  font-size: var(--f2);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

.service-desc {
  font-size: var(--f5);
  color: var(--ink-soft);
  line-height: 1.5;
}

.service-price {
  font-family: var(--font2);
  font-size: var(--f5);
  text-align: right;
  color: var(--ink);
}

.service-price span {
  display: block;
  font-size: var(--f6);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-family: var(--font1);
  margin-bottom: var(--x6);
}

/* Suite */
.suite {
  padding: calc(var(--x1) * 2.04) 0;
  border-bottom: 1px solid var(--rule);
  background: var(--suite-bg);
  color: var(--suite-fg);
  transition: background 0.3s ease, color 0.3s ease;
}

.suite .section-label {
  color: var(--suite-accent);
}

.suite-head {
  margin-bottom: calc(var(--x1) * 1.36);
  max-width: 60ch;
}

.suite h2 {
  font-family: var(--font2);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: var(--x2);
}

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

.suite-head p {
  font-size: var(--f5);
  line-height: 1.6;
  opacity: 0.85;
}

.suite-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--suite-rule);
}

.suite-item {
  padding: var(--x1) var(--x2);
  border-bottom: 1px solid var(--suite-rule);
  border-right: 1px solid var(--suite-rule);
}

.suite-item:nth-child(3n) {
  border-right: none;
  padding-right: 0;
}

.suite-item:nth-child(3n+1) {
  padding-left: 0;
}

.suite-item h3 {
  font-family: var(--font2);
  font-size: var(--f4);
  font-weight: 400;
  margin-bottom: var(--x4);
}

.suite-item h3 span {
  color: var(--suite-accent);
  font-style: italic;
  font-weight: 300;
}

.suite-item p {
  font-size: var(--f5);
  opacity: 0.75;
  line-height: 1.55;
}

/* Pull quote */
.pull {
  padding: calc(var(--x1) * 2.72) 0;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.pull blockquote {
  font-family: var(--font2);
  font-size: clamp(var(--f3), 4vw, var(--f1));
  line-height: 1.2;
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 auto;
}

.pull blockquote::before {
  content: '"';
  color: var(--accent);
}

.pull blockquote::after {
  content: '"';
  color: var(--accent);
}

/* CTA */
.cta {
  padding: calc(var(--x1) * 2.38) 0;
  border-bottom: 1px solid var(--rule);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--x1) * 1.7);
  align-items: center;
}

.cta h2 {
  font-family: var(--font2);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -0.03em;
}

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

.cta-body p {
  font-size: var(--f5);
  color: var(--ink-soft);
  margin-bottom: var(--x2);
  max-width: calc(var(--w-content) * 0.5);
}

.cta-buttons {
  display: flex;
  gap: var(--x3);
  flex-wrap: wrap;
}

/* Footer */
footer {
  padding: calc(var(--x1) * 1.36) 0 var(--x2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--x1);
  margin-bottom: var(--x1);
}

.footer-brand .logo {
  margin-bottom: var(--x3);
  display: block;
}

.footer-brand p {
  font-size: var(--f6);
  color: var(--muted);
  max-width: 30ch;
}

.footer-col h4 {
  font-size: var(--f6);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--x3);
  color: var(--accent);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--x5);
}

.footer-col a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: var(--f6);
}

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

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: var(--x2);
  display: flex;
  justify-content: space-between;
  font-size: var(--f6);
  color: var(--muted);
}

@media (max-width: 900px) {
  .wrap {
    padding: 0 var(--x2);
  }
  .nav ul {
    display: none;
  }
  .hero-foot, .manifesto-grid, .services-head, .work-head, .cta-grid {
    grid-template-columns: 1fr;
    gap: var(--x2);
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .work-card {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: var(--x2) 0 !important;
    min-height: auto;
  }
  .work-card:last-child {
    border-bottom: none;
  }
  .hero-cta {
    text-align: left;
  }
  .suite-grid {
    grid-template-columns: 1fr;
  }
  .suite-item {
    border-right: none;
    padding-left: 0 !important;
  }
  .service {
    grid-template-columns: 1fr;
    gap: var(--x4);
    padding: var(--x2) 0;
  }
  .service-price {
    text-align: left;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--x5);
  }
}
/* ========================================
   PAGE TEMPLATE STYLES
   ======================================== */
.template-page .content-section {
  padding: calc(var(--x1) * 1.36) 0;
}

.template-page .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--x2);
}

.template-page .page-title {
  font-size: var(--f1);
  font-weight: 700;
  margin-bottom: var(--x2);
}

.template-page .page-content {
  font-size: var(--f5);
  line-height: 1.8;
}

.template-page .page-content h2 {
  font-size: var(--f3);
  font-weight: 600;
  margin: var(--x1) 0 var(--x3);
}

.template-page .page-content h3 {
  font-size: var(--f4);
  font-weight: 600;
  margin: var(--x2) 0 var(--x4);
}

.template-page .page-content p {
  margin-bottom: var(--x3);
}

.template-page .page-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.template-page .page-content a:hover {
  text-decoration: underline;
}

.template-error .content-section {
  padding: calc(var(--x1) * 2.04) 0;
  text-align: center;
}

/* Contact form on pages */
.ep-contact-form-wrapper {
  max-width: var(--w-content);
  margin: var(--x2) auto;
}

.ep-contact-form input[type=text],
.ep-contact-form input[type=email],
.ep-contact-form input[type=tel],
.ep-contact-form input[type=url],
.ep-contact-form input[type=number],
.ep-contact-form textarea {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: var(--x4) var(--x3);
  width: 100%;
  font-family: var(--font1);
  font-size: var(--f5);
  box-sizing: border-box;
}

.ep-contact-form input:focus,
.ep-contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.ep-contact-form label {
  font-family: var(--font1);
  font-weight: 600;
  display: block;
  margin-bottom: var(--x5);
  color: var(--ink);
}

.ep-contact-form .form-field {
  margin-bottom: var(--x2);
}

.ep-contact-form textarea {
  min-height: calc(var(--x1) * 3.2);
  resize: vertical;
}

.ep-contact-form button,
.ep-contact-form input[type=submit] {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: var(--x4) var(--x2);
  border-radius: 0;
  font-family: var(--font1);
  font-size: var(--f6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.ep-contact-form button:hover,
.ep-contact-form input[type=submit]:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

/* Container padding (prevents content running to browser edge) */
.container, .section-inner, [class*=-inner] {
  max-width: var(--w-total);
  margin: 0 auto;
  padding-left: var(--x2);
  padding-right: var(--x2);
  box-sizing: border-box;
}

section, [class*=section] {
  overflow-x: hidden;
}

.site-footer {
  position: relative;
  z-index: 1;
}

/* Base button styles (AI-generated HTML uses .button with variant classes) */
.button, a.button,
a.btn-primary, a.btn-secondary, a.btn-dark, a.btn-outline, a.btn-light {
  display: inline-block;
  padding: var(--x4) var(--x2);
  border-radius: 0;
  font-family: var(--font1);
  font-size: var(--f6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  line-height: 1.4;
}

.button:not([class*=outline]):not([class*=secondary]):not([class*=light]),
.btn-primary {
  background: var(--ink);
  color: var(--paper) !important;
  border: 1px solid var(--ink);
}

.button:not([class*=outline]):not([class*=secondary]):not([class*=light]):hover,
.btn-primary:hover {
  background: var(--accent);
  color: var(--paper) !important;
  border-color: var(--accent);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

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

.btn-dark {
  background: var(--ink);
  color: var(--paper) !important;
  border: 1px solid var(--ink);
}

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

.button.btn-outline, .button[class*=outline],
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.button[class*=outline]:hover, .btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-light {
  background: var(--cream);
  color: var(--ink) !important;
  border: 1px solid var(--cream);
}

.btn-light:hover {
  background: var(--accent);
  color: var(--paper) !important;
  border-color: var(--accent);
}

a.read-more, .read-more {
  display: inline-block;
  font-family: var(--font1);
  font-weight: 500;
  text-decoration: none;
  color: var(--accent);
  padding: var(--x5) 0;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s;
}

.read-more:hover {
  opacity: 0.7;
}

a[class*=hero-btn] {
  display: inline-block;
  padding: var(--x4) var(--x2);
  border-radius: 6px;
  font-size: var(--f5);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.hero-cta, .hero-actions, .hero-buttons {
  display: flex;
  gap: var(--x3);
  flex-wrap: wrap;
}

/* About page body sections (added post-conversion) */
.body {
  padding: calc(var(--x1) * 2.04) 0;
  border-bottom: 1px solid var(--c1);
}

.body + .body {
  border-top: none;
}

.body-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: calc(var(--x1) * 1.7);
}

.body h2 {
  font-family: var(--font3);
  font-size: var(--f3);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.02em;
  position: sticky;
  top: 6rem;
}

.body-text p {
  font-family: var(--font2);
  font-weight: 300;
  font-size: var(--f4);
  line-height: 1.55;
  margin-bottom: var(--x2);
  max-width: calc(var(--w-content) * 0.68);
}

.body-text p:last-child {
  margin-bottom: 0;
}

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

@media (max-width: 900px) {
  .body-grid {
    grid-template-columns: 1fr;
    gap: var(--x2);
  }
  .body h2 {
    position: static;
  }
}