:root {
  --paper: #efe8dc;
  --paper-2: #f7f2e8;
  --ink: #17150f;
  --ink-soft: #3c382e;
  --muted: #6d6758;
  --signal: #d84315;
  --moss: #3d5a45;
  --line: rgba(23, 21, 15, 0.12);
  --shadow: 0 24px 60px rgba(23, 21, 15, 0.08);
  --font-display: "Fraunces", "Iowan Old Style", "Times New Roman", serif;
  --font-body: "Karla", "Avenir Next", sans-serif;
  --font-serif: "Fraunces", "Iowan Old Style", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  overflow-wrap: break-word;
  word-break: normal;
}

p, li {
  overflow-wrap: break-word;
  word-break: normal;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 200;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
}

.skip:focus { top: 12px; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  max-width: 100%;
  margin: 0 auto;
  min-width: 0;
}

.kicker {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
}

.serif { font-family: var(--font-serif); }

.mono { font-family: var(--font-mono); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(239, 232, 220, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
}

.logo {
  display: block;
  height: 64px;
  width: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-text small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

#nav-toggle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.burger i {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  font-size: 14px;
  color: var(--ink-soft);
}

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

.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper) !important;
}

.hero {
  padding: 56px 0 72px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: end;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 7.2vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.hero h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--signal);
}

.lead {
  max-width: 36em;
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn-fill,
.btn-line,
.form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  max-width: 100%;
}

.btn-fill,
.form button {
  border: 0;
  background: var(--signal);
  color: #fff;
}

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

.hero-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-card .mono {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-card li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
}

.hero-ico {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--signal);
  color: var(--signal);
}

.hero-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.services,
.process,
.approach,
.contact,
.hero,
.refs {
  scroll-margin-top: 88px;
}

.refs {
  padding: 72px 0 80px;
  border-top: 1px solid var(--line);
}

.refs-lead {
  margin: 14px 0 0;
  max-width: 36em;
  color: var(--ink-soft);
}

.ref-grid {
  display: grid;
  gap: 22px;
}

.refs-empty { color: var(--muted); }

.ref-card {
  display: block;
  min-width: 0;
  color: inherit;
}

.ref-card.is-plain { cursor: default; }

.browser {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f4efe6;
  border-bottom: 1px solid var(--line);
}

.dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d3cbbd;
}

.dots i:first-child { background: #e07a5f; }
.dots i:nth-child(2) { background: #e8c36a; }
.dots i:nth-child(3) { background: #81b29a; }

.browser-url {
  min-width: 0;
  flex: 1;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-view {
  aspect-ratio: 16 / 10;
  background: var(--paper);
}

.browser-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.browser-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--muted);
}

.ref-card:hover .browser {
  border-color: rgba(216, 67, 21, 0.35);
}

.ref-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 4px 0;
}

.ref-meta h3 {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ref-meta p {
  margin: 0;
  flex: 0 0 auto;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.services { padding: 80px 0 40px; }

.section-head {
  max-width: min(720px, 100%);
  margin-bottom: 36px;
}

.section-head h2,
.approach h2,
.contact h2,
.process h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.service {
  display: grid;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.service-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.icon {
  width: 72px;
  height: 72px;
  color: var(--ink);
}

.service h3 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
}

.who {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  color: var(--moss);
  font-size: 17px;
}

.service p {
  margin: 0;
  max-width: 42em;
  color: var(--ink-soft);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
}

.compare {
  padding: 24px 0 80px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-2);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}

th, td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: top;
}

thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(23, 21, 15, 0.03);
}

tbody th { width: 22%; color: var(--ink); }

.process {
  padding: 80px 0;
  background: var(--ink);
  color: var(--paper);
}

.process .kicker { color: #ff8a63; }

.steps {
  display: grid;
  gap: 18px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 22px 0;
  border-top: 1px solid rgba(239, 232, 220, 0.12);
}

.steps span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #ff8a63;
}

.steps h3 {
  margin: 8px 0 8px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.steps p {
  margin: 0;
  color: rgba(239, 232, 220, 0.7);
  max-width: 36em;
}

.approach { padding: 80px 0; }

.approach-grid,
.contact-grid {
  display: grid;
  gap: 36px;
}

.approach .serif {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.points li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.points strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.points li {
  color: var(--ink-soft);
}

.contact {
  padding: 80px 0;
  background:
    linear-gradient(180deg, transparent, rgba(216, 67, 21, 0.06)),
    var(--paper);
  border-top: 1px solid var(--line);
}

.contact-card {
  margin-top: 22px;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-2);
}

.contact-reach {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contact-phone {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.contact-wa {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
}

.contact-wa svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.contact-map {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: 16px;
  background: #fff;
}

.form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-2);
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
}

.form textarea { resize: vertical; min-height: 120px; }

.notice {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 21, 15, 0.4);
}

.notice[hidden] { display: none; }

.notice-card {
  width: min(380px, 100%);
  padding: 22px 22px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}

.notice-card p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  text-align: left;
}

.notice.is-error .notice-card p { color: #b42318; }

.notice-card button {
  min-height: 42px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--signal);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(23, 21, 15, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.to-top.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: end;
}

.foot strong {
  font-family: var(--font-display);
  font-size: 20px;
}

.foot p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 800px) {
  .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1.3fr 0.7fr; }
  .service { grid-template-columns: 180px 1fr; padding: 40px 0; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .steps li { border-top: 0; border-left: 1px solid rgba(239, 232, 220, 0.12); padding: 0 0 0 18px; }
  .approach-grid,
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .contact-grid { align-items: stretch; }
  .contact-grid .form {
    height: 100%;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  }
  .contact-grid .form label:last-of-type {
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
  }
  .contact-grid .form textarea {
    height: 100%;
    min-height: 0;
  }
}

@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
  .ref-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 799px) {
  .service-meta {
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
  }
  .icon { width: 48px; height: 48px; }
  .logo { height: 52px; }
  .burger { display: grid; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 84px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  #nav-toggle:checked ~ .nav { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }
  .hero { padding: 36px 0 48px; }
  .services, .process, .approach, .contact, .refs { padding: 56px 0; }
  .compare { padding: 8px 0 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
