/* Romrek Solutions — warm "ember" theme
   Palette inspired by quantumphoenix.africa (ivory, warm ink, ember orange),
   pushed a little livelier: brighter ember, sunny amber, teal counterpoint.
   Layout is full-width: sections run edge to edge, content is held by .shell. */

:root {
  --ink: #26190f;
  --muted: #6b5544;
  --paper: #fdf6ec;
  --white: #fffcf7;
  --line: #eddcc6;
  --accent: #e4570b;
  --accent-dark: #b23f04;
  --lime: #ffc145;
  --night: #201309;
  --teal: #0f9c86;
  --teal-soft: #e4f6f0;
  --amber-soft: #fff0d6;
  --ember-soft: #fde6d5;
  --serif: "Manrope", sans-serif;
  --sans: "DM Sans", sans-serif;
  --radius: 16px;
  --shadow: 0 22px 60px rgba(80, 44, 16, .12);
  --shadow-soft: 0 8px 24px rgba(80, 44, 16, .08);
  --header-h: 72px;
}

html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); overflow-x: hidden; }

.shell { width: min(1560px, calc(100% - 56px)); margin-inline: auto; }

/* ================================================================= HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(28, 17, 9, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 193, 69, .16);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { background: rgba(24, 14, 7, .96); box-shadow: 0 10px 30px rgba(20, 12, 6, .28); }
.header-inner {
  width: min(1560px, calc(100% - 56px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.site-header .brand { color: #fff6ea; }
.site-header .brand-mark { background: linear-gradient(135deg, #f26510, var(--accent)); color: #fff; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  font: 500 13px var(--sans);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 246, 234, .78);
  transition: color .18s ease, background .18s ease;
}
.site-nav a:not(.nav-contact):hover { color: #fff6ea; background: rgba(255, 193, 69, .12); }
.site-nav a.nav-contact {
  margin-left: 8px;
  border: 1px solid rgba(255, 193, 69, .45);
  background: rgba(255, 193, 69, .1);
  color: #ffe6c6;
}
.site-nav a.nav-contact:hover { background: var(--lime); color: var(--night); border-color: var(--lime); }
.site-nav a.nav-contact span { color: inherit; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 193, 69, .35);
  border-radius: 12px;
  background: rgba(255, 193, 69, .08);
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #ffe6c6;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* =================================================================== HERO */
.hero {
  display: block;
  position: relative;
  color: #fff8ee;
  padding: clamp(56px, 7vw, 96px) 0 clamp(24px, 3vw, 40px);
  overflow: hidden;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 80% 18%, rgba(228, 87, 11, .55) 0%, transparent 50%),
    radial-gradient(ellipse at 8% 88%, rgba(255, 193, 69, .22) 0%, transparent 55%),
    linear-gradient(120deg, #23150b 0%, #2f1a0c 58%, #3a200e 100%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero .eyebrow { color: #ffcd8a; }
.hero h1 { font: 600 clamp(44px, 6.2vw, 88px)/.99 var(--serif); letter-spacing: -.045em; margin: 14px 0 0; }
.hero-highlight { color: var(--lime); }
.hero-lede { color: #ecd9c4; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; max-width: 46ch; margin: 22px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.hero .button-primary { background: var(--lime); color: var(--night); box-shadow: 0 12px 28px rgba(255, 193, 69, .24); }
.hero .button-primary:hover { background: #ffd373; }
.hero .text-link { color: #ffd8ae; }
.hero-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(24px, 3vw, 44px);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #b8967a;
}
.hero-foot i { color: var(--lime); font-style: normal; }

.hero-art { position: relative; height: clamp(280px, 34vw, 420px); }
.art-orbit { position: absolute; border: 1px solid rgba(255, 193, 69, .18); border-radius: 50%; transform: rotate(-22deg); }
.orbit-one { inset: 4% 10%; }
.orbit-two { inset: 14% 22%; }
.orbit-three { inset: 26% 4%; }
.art-sun {
  position: absolute;
  width: clamp(130px, 15vw, 190px);
  height: clamp(130px, 15vw, 190px);
  border-radius: 50%;
  left: 32%;
  top: 22%;
  background: radial-gradient(circle at 34% 30%, #ffe6a3, #ffc145 56%, #e4570b);
  box-shadow: 0 0 100px rgba(255, 193, 69, .3);
}
.art-grid {
  position: absolute;
  left: 0; right: 0; bottom: 4%;
  height: 34%;
  transform: perspective(280px) rotateX(54deg);
  background-image:
    linear-gradient(rgba(255, 193, 69, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 193, 69, .16) 1px, transparent 1px);
  background-size: 30px 22px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000);
}
.art-chip {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 193, 69, .3);
  background: rgba(35, 21, 11, .85);
  backdrop-filter: blur(8px);
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 10px;
  letter-spacing: .13em;
  color: #ffe6c6;
}
.art-chip b { color: var(--lime); padding-left: 12px; font-size: 14px; }
.chip-a { left: 2%; top: 16%; }
.chip-b { right: 4%; top: 58%; }
.art-note {
  position: absolute;
  bottom: 2%;
  right: 4%;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #efd7bd;
}
.note-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }

/* ============================================================== PHOTO BAND */
.photo-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  padding: clamp(20px, 3vw, 36px) 0 clamp(8px, 1.4vw, 16px);
}
.photo-band.is-empty { display: none; }
.photo-band figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ember-soft);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
}
.photo-band img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-band figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 16px 14px;
  font: 600 11px/1.35 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff6e9;
  background: linear-gradient(180deg, transparent, rgba(24, 13, 6, .85));
}

/* ================================================================== ABOUT */
.intro-band { background: linear-gradient(180deg, #fbeedd 0%, var(--paper) 100%); padding: clamp(40px, 5vw, 76px) 0; }
.intro-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr) 380px; gap: clamp(24px, 3vw, 56px); align-items: center; }
.intro-grid h2 { font: 600 clamp(28px, 3.4vw, 44px)/1.14 var(--serif); letter-spacing: -.04em; margin: 0 0 16px; }
.intro-copy { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 62ch; }
.intro-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-soft); background: var(--ember-soft); }
.intro-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

/* =============================================================== SECTIONS */
.content-section { padding: clamp(56px, 6.5vw, 100px) 0; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(26px, 3vw, 44px); }
.section-heading h2 { font: 600 clamp(30px, 3.8vw, 52px)/1.1 var(--serif); letter-spacing: -.04em; margin: 8px 0 0; }
.section-heading > p { color: var(--muted); max-width: 40ch; font-size: 16px; line-height: 1.6; }
.section-heading .eyebrow { color: var(--accent); }

/* =============================================================== SERVICES */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-grid[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.service-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-grid[data-count="4"], .service-grid[data-count="8"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.service-media { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ember-soft); }
.service-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s ease; }
/* the data-centre portrait needs a higher crop so the engineer's face stays in frame */
.service-media img[src*="svc-cloud"] { object-position: center 26%; }
/* the rooftop field-tech portrait is framed high: keep the head in the card */
.service-media img[src*="svc-telecom"] { object-position: center 6%; }
.service-card:hover .service-media img { transform: scale(1.04); }
.service-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.card-number { font: 700 11px var(--sans); letter-spacing: .14em; color: var(--accent); }
.service-body h3 { font: 600 clamp(19px, 1.6vw, 22px)/1.3 var(--serif); letter-spacing: -.02em; margin: 0; }
.service-summary { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }
.service-details { margin-top: auto; border-top: 1px dashed var(--line); padding-top: 12px; }
.service-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  font: 600 13px var(--sans);
  letter-spacing: .04em;
  color: var(--accent-dark);
  padding: 4px 0;
}
.service-details summary::-webkit-details-marker { display: none; }
.detail-mark { font-size: 16px; line-height: 1; transition: transform .2s ease; color: var(--accent); }
.service-details[open] .detail-mark { transform: rotate(45deg); }
.detail-body { padding-top: 8px; }
.detail-body p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0 0 10px; }
.detail-body ul { margin: 0; padding-left: 18px; color: var(--ink); font-size: 14px; line-height: 1.7; }
.detail-body li::marker { color: var(--accent); }

/* =================================================================== WORK */
.work-section {
  padding: clamp(56px, 6.5vw, 100px) 0;
  background:
    radial-gradient(circle at 94% 6%, rgba(255, 193, 69, .3) 0%, transparent 42%),
    linear-gradient(180deg, #fbeedd 0%, #fdf6ec 100%);
}
.site-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.site-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.site-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent); }
.site-index { font: 700 11px var(--sans); letter-spacing: .12em; color: var(--accent); }
.site-card-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.site-card-copy strong { font: 600 16px var(--serif); }
.site-card-copy span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.site-open { margin-left: auto; color: var(--accent); }
.empty-work { padding: 34px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }

/* ================================================================ INSIGHTS */
.posts-list { display: grid; gap: 0; }
.post-card { border-top: 1px solid var(--line); padding: 24px 0; }
.post-meta { display: flex; gap: 14px; font: 600 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.post-mark { color: var(--accent); }
.post-card h3 { font: 600 clamp(20px, 2vw, 26px)/1.3 var(--serif); margin: 10px 0 8px; }
.post-card > p, .post-body { color: var(--muted); line-height: 1.65; max-width: 80ch; }
.post-card details { margin-top: 10px; }
.post-card summary { cursor: pointer; color: var(--accent-dark); font: 600 13px var(--sans); }
.post-attached { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.post-attached a { color: var(--accent-dark); font-size: 13px; font-weight: 600; }
.empty-note { color: var(--muted); font-size: 15px; }

/* ================================================================= PEOPLE */
.people-band {
  padding: clamp(48px, 6vw, 92px) 0;
  background: linear-gradient(180deg, rgba(253, 246, 236, 1) 0%, rgba(251, 238, 221, .8) 100%);
}
.people-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.people-copy .eyebrow { color: var(--accent); }
.people-copy h2 { font: 600 clamp(28px, 3.6vw, 44px)/1.12 var(--serif); letter-spacing: -.04em; margin: 10px 0 16px; }
.people-copy h2 em { font-style: normal; color: var(--accent); }
.people-copy p:not(.eyebrow) { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 48ch; margin: 0 0 22px; }
.people-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.people-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--ember-soft); box-shadow: var(--shadow-soft); }
.people-photo.offset { margin-top: 34px; }
.people-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ================================================================ CONTACT */
.contact-section {
  padding: clamp(52px, 6vw, 96px) 0;
  color: #fff8ee;
  background:
    radial-gradient(ellipse at 88% 14%, rgba(228, 87, 11, .38) 0%, transparent 48%),
    linear-gradient(150deg, #23150b 0%, #2c1a0d 62%, #341d0e 100%);
}
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.contact-section .eyebrow { color: #ffc78a; }
.contact-section h2 { font: 600 clamp(34px, 4.6vw, 64px)/1.05 var(--serif); letter-spacing: -.045em; margin: 0 0 16px; }
.contact-section h2 em { font-style: normal; color: var(--lime); }
.contact-copy { color: #e6cfb7; font-size: 17px; line-height: 1.65; max-width: 44ch; }
.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 28px 30px;
  border: 1px solid rgba(255, 193, 69, .28);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, .07);
  backdrop-filter: blur(6px);
}
.contact-card-label { font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #e8c19a; }
.contact-email { font: 600 clamp(18px, 2.2vw, 26px) var(--serif); color: #fff6ea; word-break: break-word; }
.contact-email:hover { color: var(--lime); }
.contact-meta { display: flex; gap: 16px; color: #e0c4a6; font-size: 14px; flex-wrap: wrap; }
.contact-arrow {
  position: absolute;
  right: 22px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 193, 69, .4);
  color: var(--lime);
}
.contact-arrow:hover { background: var(--lime); color: var(--night); }

/* ================================================================= FOOTER */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.site-footer .brand { color: var(--ink); }
.site-footer > a:last-child { color: var(--accent-dark); font-weight: 600; }

/* ================================================================ BUTTONS */
.button { border-radius: 999px; }
.button-primary { background: linear-gradient(135deg, #f26510, var(--accent)); color: #fff; box-shadow: 0 10px 24px rgba(228, 87, 11, .26); }
.button-primary:hover { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.button-quiet { border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.button-quiet:hover { background: var(--amber-soft); }

/* ================================================================== ADMIN */
.admin-body { background: var(--paper); }
.login-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.login-card input, .field input, .field textarea, .field select { border-radius: 10px; border-color: var(--line); background: #fffdf9; }
.login-card input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(228, 87, 11, .14); }
.admin-topbar { border-bottom-color: var(--line); }
.admin-tabs button { border-radius: 999px; }
.admin-tabs button.active { background: var(--ember-soft); color: var(--accent-dark); }
.admin-panel { background: var(--white); border-radius: var(--radius); border-color: var(--line); }
.stat-card { border-radius: 12px; background: #fffdf9; }
.stat-card strong { color: var(--accent-dark); }
.welcome-card { background: var(--amber-soft); border-radius: 12px; }
.welcome-icon { color: var(--accent); }
.editor-card { background: #fdf7ee; border-radius: 12px; }
.admin-status i { background: var(--teal); }

.admin-identity { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); margin-right: 4px; }
.admin-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #f26510, var(--accent)); color: #fff; font: 700 14px var(--serif); text-transform: uppercase; }
.admin-identity-text { display: flex; flex-direction: column; line-height: 1.15; }
.admin-identity-text b { font: 600 13px var(--sans); color: var(--ink); }
.admin-identity-text small { font-size: 11px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.role-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 600 11px var(--sans); letter-spacing: .05em; text-transform: uppercase; }
.role-pill.admin { background: var(--ember-soft); color: var(--accent-dark); }
.role-pill.editor { background: var(--teal-soft); color: #0b7a68; }
.role-pill.viewer { background: #eef1f4; color: #4a5a68; }

.account-summary { margin-bottom: 22px; }
.account-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fffdf9; }
.account-card strong { display: block; font: 600 15px var(--serif); }
.account-card small { color: var(--muted); font-size: 12px; }
.role-guide { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: center; margin: 20px 0 4px; padding: 16px; border: 1px dashed var(--line); border-radius: 12px; background: #fffdf9; }
.role-guide p { margin: 0; font-size: 13px; color: var(--muted); }

.user-list { display: grid; gap: 10px; margin-top: 18px; }
.user-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fffdf9; }
.user-card .admin-avatar { width: 40px; height: 40px; font-size: 15px; }
.user-card-main h3 { font: 600 15px var(--serif); margin: 0 0 2px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.user-card-main p { margin: 0; color: var(--muted); font-size: 13px; }
.user-card-main .user-meta { margin-top: 4px; font-size: 12px; color: #9a8672; }
.user-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.user-actions select { padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 12px; color: var(--ink); }
.user-actions button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 12px; color: var(--ink); cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.user-actions button:hover { background: var(--amber-soft); border-color: var(--accent); }
.user-actions button.danger-link { color: #b23c2f; }
.user-actions button[disabled] { opacity: .45; cursor: not-allowed; }
.user-reset { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.user-reset input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; background: #fff; }

/* services + photos editors */
.editor-grid { display: grid; gap: 12px; }
.service-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fffdf9; }
.service-row img { width: 92px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--ember-soft); }
.service-row-main h3 { margin: 0 0 3px; font: 600 15px var(--serif); }
.service-row-main p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.service-row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.service-row-actions button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 11px; font-size: 12px; cursor: pointer; }
.service-row-actions button:hover { background: var(--amber-soft); border-color: var(--accent); }
.service-row-actions .danger-link { color: #b23c2f; }
.service-row.hidden-service { opacity: .55; }

.image-pick { display: flex; align-items: center; gap: 12px; }
.image-pick img { width: 86px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--ember-soft); }
.image-pick select { flex: 1; min-width: 0; }
.photo-grid { display: grid; gap: 12px; margin-top: 16px; }
.photo-row { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fffdf9; }
.photo-row img { width: 86px; height: 64px; object-fit: cover; border-radius: 10px; }
.photo-fields { display: grid; gap: 8px; }
.photo-fields input, .photo-fields select { padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; background: #fff; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.field-group { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; background: #fffdf9; }
.field-group h3 { margin: 0 0 12px; font: 600 13px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-dark); }

.readonly-note { display: none; margin-bottom: 18px; padding: 12px 16px; border-radius: 12px; background: var(--amber-soft); border: 1px solid #f4d9a8; color: #7a5520; font-size: 13px; }
body.is-viewer .readonly-note { display: block; }
body.is-viewer .admin-content form :is(input, textarea, select, button) { opacity: .6; }
body.is-viewer .admin-content .form-actions .button-primary,
body.is-viewer .admin-content #new-post-button,
body.is-viewer .admin-content #new-site-button,
body.is-viewer .admin-content #new-service-button { display: none; }

/* =================================================================== MISC */
.hidden { display: none !important; }
img, picture { max-width: 100%; }

@media (max-width: 1180px) {
  .photo-band { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .intro-grid { grid-template-columns: 180px minmax(0, 1fr); }
  .intro-grid .intro-photo { grid-column: 1 / -1; aspect-ratio: 16 / 6; }
  .intro-grid .intro-photo img { object-position: center 40%; }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 22px;
    background: #1b1008;
    border-bottom: 1px solid rgba(255, 193, 69, .2);
    box-shadow: 0 20px 40px rgba(20, 12, 6, .5);
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 12px; font-size: 15px; border-radius: 10px; }
  .site-nav a.nav-contact { margin: 6px 0 0; text-align: center; }
  body.nav-open { overflow: hidden; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { height: 300px; order: 2; }
  .hero-foot { flex-direction: column; gap: 6px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 14px; }
  .people-grid, .contact-grid { grid-template-columns: 1fr; }
  .people-photo.offset { margin-top: 0; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 72px minmax(0, 1fr); }
  .service-row img { width: 72px; height: 54px; }
  .service-row-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 720px) {
  .shell, .header-inner { width: calc(100% - 32px); }
  .photo-band { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .intro-grid { grid-template-columns: 1fr; }
  .service-media { margin: 0; }
  .user-card { grid-template-columns: 40px minmax(0, 1fr); }
  .user-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .admin-identity-text { display: none; }
  .photo-row { grid-template-columns: 1fr; }
  .photo-row img { width: 100%; height: 140px; }
}

@media (max-width: 640px) {
  .service-grid, .service-grid[data-count="2"], .service-grid[data-count="4"], .service-grid[data-count="8"] { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .hero h1 { font-size: clamp(32px, 10.2vw, 44px); }
  .hero-lede { font-size: 16px; }
  .section-heading h2 { font-size: clamp(26px, 7.2vw, 34px); }
  .contact-section h2 { font-size: clamp(28px, 8.4vw, 40px); }
  .people-copy h2 { font-size: clamp(26px, 7vw, 34px); }
  .intro-grid h2 { font-size: clamp(24px, 6.4vw, 30px); }
  .contact-email { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service-card, .service-media img, .button, .site-card { transition: none; }
  .service-card:hover, .site-card:hover { transform: none; }
}

/* ======================================================= BRAND LOGO (v4) */
.brand-logo {
  display: inline-block;
  width: 38px;
  height: 38px;
  background: currentColor;
  -webkit-mask-image: var(--logo);
  mask-image: var(--logo);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  border-radius: 8px;
}

/* ========================================================== PARTNERS (v4) */
.partners-band {
  padding: clamp(48px, 6vw, 88px) 0;
  background: linear-gradient(180deg, #fffaf3 0%, var(--paper) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.partners-heading { margin-bottom: 24px; }
.partners-heading > div { max-width: 40ch; }
.partner-marquee {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.partner-track {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: max-content;
  animation: partner-scroll 42s linear infinite;
}
.partner-marquee:hover .partner-track,
.partner-marquee:focus-within .partner-track { animation-play-state: paused; }
@keyframes partner-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.partner-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 200px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  transition: transform .2s ease, border-color .2s ease;
}
a.partner-tile:hover { transform: translateY(-2px); border-color: var(--accent); }
.partner-logo {
  display: block;
  width: 92px;
  height: 30px;
  background: #3d2b1c;
  -webkit-mask-image: var(--logo);
  mask-image: var(--logo);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-position: left center;
  -webkit-mask-size: contain;
  mask-size: contain;
  flex: none;
}
.partner-fallback {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--ember-soft);
  color: var(--accent-dark);
  font: 700 14px var(--serif);
}
.partner-name { font: 600 13px var(--sans); color: var(--muted); white-space: nowrap; }
.partner-note { margin: 20px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); max-width: 95ch; }
.partner-marquee.is-static .partner-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .partner-track { animation: none; flex-wrap: wrap; width: auto; }
}

/* ====================================================== ARTICLE PAGES (v4) */
.article-body { background: var(--paper); }
.article-shell { max-width: 860px; margin: clamp(36px, 5vw, 72px) auto; padding-bottom: 40px; }
.article-title { font: 600 clamp(30px, 4.4vw, 52px)/1.08 var(--serif); letter-spacing: -.04em; margin: 10px 0 8px; }
.article-meta { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 26px; }
.article-content { font-size: 17px; line-height: 1.78; color: var(--ink); }
.article-content h2 { font: 600 clamp(22px, 2.4vw, 28px)/1.25 var(--serif); letter-spacing: -.02em; margin: 34px 0 10px; }
.article-content h3 { font: 600 20px/1.3 var(--serif); margin: 28px 0 8px; }
.article-content p { margin: 0 0 14px; }
.article-content ul, .article-content ol { padding-left: 22px; margin: 0 0 16px; color: var(--muted); }
.article-content li { margin-bottom: 6px; }
.article-content a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.article-content blockquote { margin: 22px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.article-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 18px 0; }
.article-content code { background: var(--amber-soft); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.article-back { margin-top: 36px; }
.site-nav-static { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav-static a {
  padding: 9px 12px;
  border-radius: 999px;
  font: 500 12px var(--sans);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 246, 234, .8);
}
.site-nav-static a:hover { color: #fff6ea; background: rgba(255, 193, 69, .12); }

/* =========================================================== RICH TEXT (v4) */
.rte { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.rte-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); background: #fdf7ee; }
.rte-toolbar button {
  border: 1px solid transparent;
  background: #fff;
  border-radius: 8px;
  padding: 6px 9px;
  font: 600 12px var(--sans);
  color: var(--ink);
  cursor: pointer;
  min-width: 32px;
}
.rte-toolbar button:hover { background: var(--amber-soft); border-color: var(--line); }
.rte-toolbar button.is-active { background: var(--ember-soft); border-color: var(--accent); color: var(--accent-dark); }
.rte-toolbar .sep { width: 1px; background: var(--line); margin: 2px 4px; }
.rte-editor {
  min-height: 170px;
  max-height: 460px;
  overflow: auto;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  outline: none;
}
.rte-editor:focus { box-shadow: inset 0 0 0 2px rgba(228, 87, 11, .16); }
.rte-editor h2 { font: 600 20px var(--serif); margin: 14px 0 6px; }
.rte-editor h3 { font: 600 17px var(--serif); margin: 12px 0 6px; }
.rte-editor p { margin: 0 0 10px; }
.rte-editor ul, .rte-editor ol { padding-left: 20px; margin: 0 0 10px; }
.rte-editor a { color: var(--accent-dark); text-decoration: underline; }
.rte-editor img { max-width: 100%; border-radius: 10px; }
.rte-editor:empty:before { content: attr(data-placeholder); color: #a08b74; }

/* ===================================================== MENU + PAGES ADMIN */
.menu-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.1fr) 120px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf9;
  margin-bottom: 8px;
}
.menu-row input, .menu-row select, .menu-row .target-input {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13px;
  background: #fff;
  min-width: 0;
}
.menu-order { display: flex; gap: 4px; }
.menu-order button {
  width: 26px; height: 26px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
}
.menu-order button:hover { background: var(--amber-soft); color: var(--ink); }
.menu-row .menu-visible { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.menu-row .danger-link { border: 0; background: transparent; color: #b23c2f; font-size: 12px; cursor: pointer; }
.menu-row.menu-off { opacity: .55; }
.page-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf9;
}
.page-row h3 { margin: 0 0 3px; font: 600 15px var(--serif); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-row p { margin: 0; color: var(--muted); font-size: 13px; }
.page-row .page-slug { color: #9a8672; font-size: 12px; }
.seo-group { border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; background: #fffdf9; }
.seo-group h4 { margin: 0 0 10px; font: 600 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); }
.seo-preview { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.seo-preview b { display: block; color: #1a0d99; font: 400 16px var(--sans); }
.seo-preview span { display: block; color: #0a7a3f; font-size: 12px; }
.seo-preview p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

/* ===================================================== POST + PARTNER FIXES */
.post-meta { display: flex; align-items: center; justify-content: flex-start; gap: 12px; }
.post-meta .post-mark { margin-left: auto; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--accent-dark); }
.post-read { display: inline-block; margin-top: 10px; color: var(--accent-dark); font-weight: 600; font-size: 13px; }
.post-read:hover { color: var(--accent); }
.partners-heading .eyebrow { color: var(--accent); }
.posts-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
@media (max-width: 820px) { .posts-list { grid-template-columns: minmax(0, 1fr); } }

/* ================================================ ADMIN: partners + menu */
.partner-mini {
  width: 92px;
  height: 64px;
  display: block;
  border-radius: 10px;
  background-color: #3d2b1c;
  background-image: none;
  -webkit-mask-image: var(--logo);
  mask-image: var(--logo);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 80% auto;
  mask-size: 80% auto;
}
.partner-mini:not([data-logo]) { background: var(--ember-soft); -webkit-mask: none; mask: none; }
.partner-preview {
  width: 86px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.partner-preview .partner-logo { width: 74px; height: 26px; }
.menu-row {
  grid-template-columns: 64px minmax(0, 1.1fr) 130px minmax(0, 1fr) auto auto;
}
.site-brand-preview { display: flex; align-items: center; gap: 8px; }

/* ================================================== FOOTER, TOP, MEDIA (v5) */
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px 32px;
  align-items: center;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.footer-brand .brand { color: var(--ink); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; }
.footer-nav a { color: var(--muted); font-size: 13px; }
.footer-nav a:hover { color: var(--accent-dark); }
.footer-admin { color: var(--accent-dark); font-weight: 600; font-size: 13px; white-space: nowrap; }

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: linear-gradient(135deg, #f26510, var(--accent));
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease, background .22s ease;
  box-shadow: 0 12px 28px rgba(228, 87, 11, .34);
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.scroll-top:focus-visible { outline: 3px solid var(--amber-soft); outline-offset: 3px; }

/* media library */
.upload-drop {
  border: 2px dashed var(--line);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  background: #fffdf9;
  transition: border-color .2s ease, background .2s ease;
}
.upload-drop.is-over { border-color: var(--accent); background: var(--ember-soft); }
.upload-drop-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.upload-drop-inner b { font: 600 15px var(--serif); }
.upload-drop-inner > span { color: var(--muted); font-size: 12px; }
.upload-preview { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.upload-preview img { width: 132px; height: 88px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.upload-preview span { font-size: 12px; color: var(--muted); }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 20px; }
.media-card { border: 1px solid var(--line); border-radius: 14px; background: #fffdf9; overflow: hidden; display: flex; flex-direction: column; }
.media-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ember-soft); }
.media-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-fields { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }
.media-fields input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 12.5px; background: #fff; }
.media-fields .page-slug { margin: 0; font-size: 11px; color: #9a8672; word-break: break-all; }
.media-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.media-actions button { font-size: 12px; padding: 6px 10px; border-radius: 999px; }
.media-actions .danger-link { background: transparent; border: 0; color: #b23c2f; cursor: pointer; }

@media (max-width: 900px) {
  .site-footer { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .footer-nav { justify-content: flex-start; }
  .scroll-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ================================================= HERO TECH BACKDROP (v5) */
.hero-copy {
  position: relative;
  isolation: isolate;
}
.hero-tech {
  position: absolute;
  inset: -34px -52px -34px -44px;
  width: calc(100% + 96px);
  height: calc(100% + 68px);
  object-fit: cover;
  object-position: center;
  border-radius: 30px;
  z-index: -1;
  opacity: .2;
  filter: grayscale(1) contrast(1.15) brightness(.85);
  -webkit-mask-image: radial-gradient(ellipse 78% 74% at 34% 44%, #000 0%, rgba(0, 0, 0, .82) 46%, rgba(0, 0, 0, 0) 76%);
  mask-image: radial-gradient(ellipse 78% 74% at 34% 44%, #000 0%, rgba(0, 0, 0, .82) 46%, rgba(0, 0, 0, 0) 76%);
  pointer-events: none;
  user-select: none;
}
.hero-tech[hidden] { display: none; }

@media (max-width: 900px) {
  .hero-tech {
    inset: -18px -20px -18px -18px;
    width: calc(100% + 38px);
    height: calc(100% + 36px);
    opacity: .16;
    border-radius: 22px;
  }
}

/* ================================================ FOOTER TWEAKS + PAGE LINKS */
.site-footer { grid-template-columns: minmax(0, 1fr) auto; }
.footer-admin { display: none; }
.about-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 13px; color: var(--accent-dark); }
.about-link:hover { color: var(--accent); }
.contact-page-link {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #ffd8ae;
}
.contact-page-link:hover { color: var(--lime); }
@media (max-width: 900px) {
  .site-footer { grid-template-columns: minmax(0, 1fr); }
}

/* ================================================= RASTER LOGOS (png/webp) */
.brand-logo-img {
  display: block;
  height: 54px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  background: #fff;
  padding: 5px 8px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(20, 12, 6, .18);
}
.site-footer .brand-logo-img { background: transparent; box-shadow: none; padding: 0; height: 46px; }
.partner-logo-img { display: block; width: 92px; height: 34px; object-fit: contain; flex: none; }
@media (max-width: 900px) {
  .brand-logo-img { height: 38px; }
}

/* ============================================ LIGHT HEADER + BIGGER LOGO (v6) */
:root { --header-h: 84px; }

.site-header {
  background: rgba(255, 252, 247, .92);
  border-bottom: 1px solid rgba(228, 87, 11, .16);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset;
  backdrop-filter: blur(14px);
}
.site-header.scrolled {
  background: rgba(255, 252, 247, .98);
  box-shadow: 0 10px 28px rgba(80, 44, 16, .12);
}
.site-header .brand { color: var(--ink); }
.site-header .brand span:not(.brand-mark):not(.brand-logo) { letter-spacing: -.01em; }

.site-nav a:not(.nav-contact) { color: rgba(38, 25, 15, .72); }
.site-nav a:not(.nav-contact):hover { color: var(--ink); background: rgba(228, 87, 11, .1); }
.site-nav a.nav-contact {
  border-color: rgba(228, 87, 11, .45);
  background: rgba(228, 87, 11, .08);
  color: var(--accent-dark);
}
.site-nav a.nav-contact:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.menu-toggle {
  border-color: rgba(38, 25, 15, .18);
  background: rgba(228, 87, 11, .06);
}
.menu-toggle span { background: var(--ink); }

/* larger, cleaner logo on the light bar */
.brand-logo-img {
  height: 66px;
  width: auto;
  max-width: 240px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  mix-blend-mode: multiply;
}
.brand { gap: 14px; }
.site-footer .brand-logo-img { height: 52px; mix-blend-mode: multiply; }

@media (max-width: 900px) {
  :root { --header-h: 76px; }
  .brand-logo-img { height: 54px; max-width: 190px; }
  .site-nav {
    background: #fffcf7;
    border-bottom: 1px solid rgba(228, 87, 11, .18);
    box-shadow: 0 22px 44px rgba(80, 44, 16, .18);
  }
  .site-nav a { color: rgba(38, 25, 15, .8); }
  .site-nav a:not(.nav-contact):hover { color: var(--ink); background: rgba(228, 87, 11, .1); }
  .site-nav a.nav-contact { color: #fff; background: var(--accent); border-color: var(--accent); }
}

/* picker upload buttons (link any image slot to the media library) */
.image-pick { flex-wrap: wrap; }
.pick-upload {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 7px 12px;
  font: 600 12px var(--sans);
  cursor: pointer;
  white-space: nowrap;
}
.pick-upload:hover { background: var(--amber-soft); border-color: var(--accent); }
.pick-upload[disabled] { opacity: .5; cursor: progress; }

/* ============================================ LOGO PROMINENCE + CONTACT FORM */
:root { --header-h: 100px; }
.brand-logo-img { height: 82px; max-width: 300px; }
.site-header .header-inner { min-height: var(--header-h); }
.site-footer .brand-logo-img { height: 58px; }

@media (max-width: 900px) {
  :root { --header-h: 84px; }
  .brand-logo-img { height: 64px; max-width: 220px; }
}

/* contact form */
.contact-form-block { margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--line); }
.contact-form-block h2 { font: 600 clamp(24px, 2.6vw, 32px)/1.2 var(--serif); letter-spacing: -.02em; margin: 0 0 8px; }
.contact-form-lede { color: var(--muted); margin: 0 0 20px; line-height: 1.6; }
.contact-form { display: grid; gap: 14px; max-width: 640px; }
.cf-row { display: grid; gap: 6px; }
.cf-row label { font: 600 12px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cf-row input, .cf-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: 400 15px var(--sans);
  color: var(--ink);
}
.cf-row input:focus, .cf-row textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(228, 87, 11, .14); }
.cf-row textarea { resize: vertical; min-height: 140px; }
.cf-honey { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.cf-note { margin: 0; font-size: 12px; color: var(--muted); }
.cf-banner { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin: 0 0 18px; }
.cf-ok { background: var(--teal-soft); color: #0b6b5b; border: 1px solid #bfe6dc; }
.cf-error { background: #fdecec; color: #a12a2a; border: 1px solid #f3caca; }

/* admin messages */
.tab-count { display: none; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; }
.tab-count.has-count { display: inline-block; }
.message-list { display: grid; gap: 12px; }
.message-card { border: 1px solid var(--line); border-radius: 14px; background: #fffdf9; padding: 16px 18px; }
.message-card.unread { border-color: var(--accent); box-shadow: 0 6px 18px rgba(228, 87, 11, .08); }
.message-card header { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; justify-content: space-between; }
.message-card h3 { margin: 0; font: 600 16px var(--serif); }
.message-card .message-meta { font-size: 12px; color: var(--muted); }
.message-card .message-body { margin: 10px 0 12px; color: var(--ink); font-size: 14px; line-height: 1.65; white-space: pre-wrap; }
.message-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.message-actions a, .message-actions button {
  font-size: 12px;
  border-radius: 999px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}
.message-actions a:hover, .message-actions button:hover { background: var(--amber-soft); border-color: var(--accent); }
.message-actions .danger-link { color: #b23c2f; border-color: #f0c9c4; }

/* photo strip: identical tiles regardless of order */
.photo-band figure,
.photo-band figure:first-child,
.photo-band figure:nth-child(n) {
  aspect-ratio: 4 / 3;
}
.photo-band figcaption { font-size: 10.5px; padding: 30px 12px 10px; }

@media (max-width: 520px) {
  .photo-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-band figcaption { display: none; }
}

/* ========================================== ADMIN FAVICON UPLOADER */
.favicon-panel {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf9;
}
.favicon-preview {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.2;
  color: var(--muted);
  text-align: center;
}
.favicon-preview img { width: 100%; height: 100%; object-fit: contain; }
.favicon-copy { flex: 1; min-width: 0; }
.favicon-copy p { margin: 0 0 10px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.favicon-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.favicon-actions .button { padding: 8px 14px; font-size: 12.5px; }
.favicon-actions .button-ghost { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.favicon-actions .button-ghost:hover { border-color: var(--accent); background: var(--amber-soft); }
.favicon-actions .button[disabled] { opacity: .45; cursor: not-allowed; }

/* ================================================== DASHBOARD BACKDROP */
/* A quiet photograph behind the admin: barely there, but it lifts the panels
   off a flat cream page. Swap --admin-photo to change it. */
:root {
  --admin-photo: url("/images/tech-trends-1600.jpg");
}

.admin-body {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(120% 80% at 88% -10%, rgba(255, 193, 69, .30), transparent 58%),
    radial-gradient(90% 70% at 0% 100%, rgba(15, 156, 134, .16), transparent 60%),
    linear-gradient(180deg, #fdf8f0 0%, #fbf3e7 55%, #f8eddd 100%);
  background-attachment: fixed;
}

.admin-body::before {
  content: "";
  position: fixed;
  inset: -6%;
  z-index: 0;
  background-image: var(--admin-photo);
  background-size: cover;
  background-position: 62% 42%;
  opacity: .10;
  filter: saturate(.28) contrast(.92) blur(1.5px);
  transform: scale(1.03);
  pointer-events: none;
  mask-image: radial-gradient(105% 95% at 70% 25%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(105% 95% at 70% 25%, #000 10%, transparent 72%);
}

/* A faint grid keeps the empty space from feeling washed out. */
.admin-body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(38, 25, 15, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 25, 15, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(100% 80% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(100% 80% at 50% 0%, #000 20%, transparent 75%);
}

.admin-shell { position: relative; z-index: 1; }

/* glass panels */
.admin-body .login-card,
.admin-body .admin-panel,
.admin-body .admin-topbar {
  background: rgba(255, 253, 249, .82);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(237, 220, 198, .9);
  box-shadow: 0 18px 44px rgba(80, 44, 16, .10);
}

.admin-body .login-card {
  border-radius: 22px;
  padding: 34px 32px;
}

.admin-body .admin-topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  border-radius: 18px;
  border-bottom: 1px solid rgba(237, 220, 198, .9);
  margin-bottom: 18px;
}

/* the tab rail reads better as a floating card than a flat strip */
.admin-body .admin-tabs {
  background: rgba(255, 253, 249, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(237, 220, 198, .8);
  border-radius: 18px;
  padding: 10px;
  height: fit-content;
  position: sticky;
  top: 96px;
}

.admin-body .admin-tabs button {
  border-radius: 12px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.admin-body .admin-tabs button:hover { background: rgba(255, 193, 69, .18); }
.admin-body .admin-tabs button.active {
  background: linear-gradient(135deg, #f26510, var(--accent));
  color: #fff;
  box-shadow: 0 8px 20px rgba(228, 87, 11, .28);
}

.admin-body .stat-card {
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(237, 220, 198, .8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.admin-body .admin-heading h1 { text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }

@media (max-width: 900px) {
  .admin-body::before { opacity: .10; }
  .admin-body .admin-tabs { position: static; }
  .admin-body .admin-topbar { border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-body::before { transform: none; }
}

/* Long copy fields need room; without this the intro text sat under the next row. */
.admin-body .field textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
.admin-body #intro { min-height: 172px; }
/* keep the grid rows after a tall field from crowding it */
.admin-body .field + .form-grid-2,
.admin-body .field + .form-grid-3,
.admin-body .field + .field { margin-top: 14px; }
.admin-body .field input, .admin-body .field select { min-height: 42px; }

/* ================================================== ADMIN BRAND (logo) */
.admin-body .admin-logo.brand-logo-img {
  height: 44px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  display: block;
}

.admin-body .admin-login-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.admin-body .admin-login-brand .admin-logo.brand-logo-img { height: 56px; max-width: 240px; }

.admin-body .admin-studio-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-body .admin-studio-brand .admin-logo.brand-logo-img { height: 52px; max-width: 210px; }

/* The uploaded lockup is stacked, so give the bar room and keep it off the corner. */
.admin-body .admin-topbar { min-height: 84px; height: auto; padding: 10px 18px; }
.admin-body .admin-topbar > div { gap: 14px; }

.admin-body .studio-tag {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 10px;
  border-left: 1px solid var(--line);
  line-height: 1.1;
}

/* The old letter mark needs to match the logo's optical size. */
.admin-body .admin-login-brand .brand-mark { width: 52px; height: 52px; font-size: 22px; }

@media (max-width: 640px) {
  .admin-body .admin-login-brand .admin-logo.brand-logo-img { height: 44px; max-width: 190px; }
  .admin-body .admin-studio-brand .admin-logo.brand-logo-img { height: 30px; max-width: 130px; }
}

/* ============================== ARTICLE / CUSTOM PAGE HEADER (light bar) */
.article-body .site-header {
  padding: 12px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid rgba(228, 87, 11, .12);
  background: rgba(255, 252, 247, .95);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.article-body .site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.article-body .site-header .brand-logo-img { height: 50px; max-width: 200px; }
.article-body .site-header .brand { color: var(--ink); }

/* The nav on article pages was still styled for the old dark header. */
.article-body .site-nav-static { gap: 2px; }
.article-body .site-nav-static a { color: var(--muted); }
.article-body .site-nav-static a:hover { color: var(--accent-dark); background: var(--amber-soft); }
.article-body .site-nav-static a.nav-contact {
  color: #fff;
  background: linear-gradient(135deg, #f26510, var(--accent));
  box-shadow: 0 8px 18px rgba(228, 87, 11, .22);
}
.article-body .site-nav-static a.nav-contact:hover { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }

.article-body .site-footer { border-top: 1px solid var(--line); }

@media (max-width: 720px) {
  .article-body .site-header .brand-logo-img { height: 40px; max-width: 150px; }
  .article-body .site-nav-static a { padding: 7px 9px; font-size: 10.5px; }
}

/* Contact form: a full-width submit looked heavy on the page. */
.contact-form .button { justify-self: start; padding-inline: 28px; }
.contact-form .button span[aria-hidden="true"] { margin-left: 4px; }

/* ============================== HEADER NAV FIT (more items than before) */
.site-nav a { white-space: nowrap; }

@media (max-width: 1180px) and (min-width: 901px) {
  .site-nav { gap: 2px; }
  .site-nav a { padding: 8px 9px; font-size: 10px; letter-spacing: .03em; }
  .site-nav a.nav-contact { padding: 9px 12px; }
  .site-header .brand-logo-img { height: 54px; max-width: 180px; }
}

@media (max-width: 1020px) and (min-width: 901px) {
  .site-nav a { padding: 7px 7px; font-size: 9.4px; }
  .site-header .brand-logo-img { height: 46px; max-width: 150px; }
}

/* Admin helpers: these used to be inline style attributes, which the CSP blocks. */
.admin-actions-start { justify-content: flex-start; gap: 10px; flex-wrap: wrap; }
.admin-section-gap { margin-top: 28px; }
.admin-hint-tight { margin: -4px 0 12px; }

/* ============================== CONTENT BLOCKS: stats / process / quotes / CTA */
.stats-band {
  background: var(--paper);
  color: var(--ink);
  padding: 30px 0 8px;
  border-bottom: 1px solid var(--line);
}
.stats-inner {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 18px;
}
.stat-item { text-align: center; }
.stat-item strong {
  display: block;
  font: 700 clamp(26px, 3.4vw, 40px)/1 var(--serif);
  letter-spacing: -.03em;
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
}
.stat-item span {
  display: block;
  margin-top: 8px;
  font: 600 11px var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.process-section { padding-block: clamp(48px, 7vw, 84px); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.process-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 22px 26px;
  box-shadow: var(--shadow-soft);
}
.process-step::after {
  content: "";
  position: absolute;
  top: 34px;
  right: -16px;
  width: 16px;
  height: 1px;
  background: var(--line);
}
.process-step:last-child::after { display: none; }
.process-number {
  display: inline-block;
  font: 700 11px var(--sans);
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 10px;
}
.process-step h3 { font: 600 17px/1.3 var(--serif); margin: 0 0 8px; letter-spacing: -.01em; }
.process-step p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

.testimonials-section {
  padding-block: clamp(48px, 7vw, 84px);
  background: linear-gradient(180deg, rgba(255, 193, 69, .10), transparent 70%);
}
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  justify-content: start;
  gap: 18px;
  margin-top: 28px;
}
.quote-card {
  margin: 0;
  padding: 26px 26px 22px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  position: relative;
}
.quote-card::before {
  content: "“";
  position: absolute;
  top: 6px;
  left: 18px;
  font: 700 46px/1 var(--serif);
  color: rgba(228, 87, 11, .22);
}
.quote-card blockquote {
  margin: 12px 0 14px;
  font: 400 15px/1.65 var(--sans);
  color: var(--ink);
}
.quote-card figcaption {
  font: 600 12px var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.cta-band {
  padding-block: clamp(44px, 6vw, 76px);
}
.cta-inner {
  display: grid;
  gap: 14px;
  padding: clamp(26px, 4vw, 44px);
  border-radius: 24px;
  background: linear-gradient(135deg, #2a1a10 0%, #40230f 55%, #5a2f12 100%);
  color: #fff6ea;
  box-shadow: 0 24px 60px rgba(40, 20, 8, .28);
}
.cta-inner .eyebrow { color: var(--lime); }
.cta-inner .eyebrow-line { background: var(--lime); }
.cta-inner h2 {
  margin: 0;
  font: 600 clamp(24px, 3.4vw, 38px)/1.15 var(--serif);
  letter-spacing: -.03em;
  max-width: 22ch;
}
.cta-copy { margin: 0; color: rgba(255, 246, 234, .78); font-size: 14px; line-height: 1.65; max-width: 60ch; }
.cta-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 6px 0 10px;
  padding: 0;
  list-style: none;
}
.cta-bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: rgba(255, 246, 234, .9);
}
.cta-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--lime);
  font-weight: 700;
}
.cta-inner .button-primary { justify-self: start; }

@media (max-width: 1024px) {
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-step::after { display: none; }
}
@media (max-width: 720px) {
  .stats-inner { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); gap: 18px 10px; }
  .process-grid { grid-template-columns: 1fr; }
  .cta-inner h2 { max-width: none; }
}

/* Sections editor rows: the generic record-card made the fields too narrow. */
.admin-body .section-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
}
.admin-body .section-row .record-main { width: 100%; display: grid; gap: 10px; }
.admin-body .section-row .record-main > .field { gap: 5px; }
.admin-body .section-row .form-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-body .section-row .field input,
.admin-body .section-row .field textarea { width: 100%; }
.admin-body .section-row .check-label { margin-top: 2px; }
.admin-body .section-row textarea { min-height: 78px; }
@media (max-width: 720px) {
  .admin-body .section-row { grid-template-columns: 1fr; }
  .admin-body .section-row .form-grid-2 { grid-template-columns: 1fr; }
}

/* Closing statement without the contact-details card (removed by request). */
.contact-grid-single { max-width: 62ch; }
.contact-grid-single h2 { margin: 0 0 14px; }
