:root {
  --sand: #d8c59f;
  --sand-deep: #c4ad80;
  --paper: #f6eedf;
  --paper-soft: #eadcc1;
  --ink: #12100d;
  --muted: #5c554b;
  --logo: #687686;
  --moss: #3f5f46;
  --brick: #98513b;
  --white: #fffaf1;
  --line: #17130e;
  --ease: 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.3), rgba(216, 197, 159, 0.08)),
    radial-gradient(circle at 88% 10%, rgba(63, 95, 70, 0.13), transparent 28rem),
    var(--sand);
  color: var(--ink);
  font-family: "Gill Sans", "Trebuchet MS", Verdana, sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(18, 16, 13, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 16, 13, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  transition: background-color var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.site-header.is-scrolled {
  background: rgba(235, 220, 192, 0.9);
  border-bottom: 1px solid rgba(18, 16, 13, 0.1);
  box-shadow: 0 12px 34px rgba(32, 25, 13, 0.08);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: 100%;
  min-height: 78px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: clamp(134px, 13vw, 170px);
  height: auto;
}

.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(18, 16, 13, 0.16);
  background: rgba(255, 250, 241, 0.32);
  color: var(--ink);
  cursor: pointer;
}

.mobile-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform var(--ease), opacity var(--ease);
}

.mobile-nav-toggle.is-open span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.mobile-nav-toggle.is-open span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(18, 16, 13, 0.1);
  background: rgba(255, 250, 241, 0.22);
  backdrop-filter: blur(14px);
}

.nav-link {
  position: relative;
  z-index: 1;
  padding: 10px 15px;
  color: rgba(18, 16, 13, 0.72);
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.contact-link {
  margin-left: 4px;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--paper);
}

.contact-link:hover,
.contact-link.is-active {
  background: var(--moss);
  border-color: var(--moss);
  color: var(--white);
}

.nav-indicator {
  position: absolute;
  bottom: 6px;
  left: 6px;
  width: 0;
  height: 2px;
  background: var(--line);
  opacity: 0;
  transition: left var(--ease), width var(--ease), opacity var(--ease);
}

.inner {
  width: min(1200px, calc(100% - 42px));
  margin: 0 auto;
}

.narrow {
  max-width: 880px;
}

.hero-section {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 118px 0 74px;
}

.hero-section.has-response {
  align-items: start;
  padding-bottom: 118px;
}

.hero-section.has-response .hero-inner {
  padding-top: min(16vh, 130px);
}

.hero-inner {
  position: relative;
}

.hero-inner::after {
  content: "";
  position: absolute;
  right: min(5vw, 70px);
  bottom: -18px;
  width: 156px;
  height: 156px;
  border: 2px solid rgba(18, 16, 13, 0.22);
  transform: rotate(11deg);
}

.microline {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 28px;
  color: var(--moss);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.microline::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

.hero-title,
.page-title,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.05;
}

.hero-title {
  max-width: 900px;
  font-size: clamp(2.9rem, 5.8vw, 5.35rem);
}

.prompt-form {
  width: min(860px, 100%);
  margin-top: 38px;
}

.prompt-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  align-items: center;
  border-bottom: 4px solid var(--line);
}

.prompt-input {
  width: 100%;
  min-height: 74px;
  padding: 8px 14px 12px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2.05rem);
}

.prompt-input::placeholder {
  color: rgba(18, 16, 13, 0.52);
}

.prompt-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: transform var(--ease), background-color var(--ease), border-color var(--ease);
}

.prompt-button:hover {
  transform: translateY(-2px);
  background: var(--moss);
  border-color: var(--moss);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18, 16, 13, 0.28);
  background: rgba(255, 250, 241, 0.18);
  color: var(--ink);
  transform: translateX(-50%);
  transition: transform var(--ease), background-color var(--ease), border-color var(--ease);
}

.scroll-cue:hover {
  background: rgba(255, 250, 241, 0.34);
  border-color: rgba(18, 16, 13, 0.48);
  transform: translate(-50%, 4px);
}

.scroll-cue span {
  width: 13px;
  height: 13px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  animation: cuePulse 1.7s ease-in-out infinite;
}

.ai-response {
  display: none;
  width: min(900px, 100%);
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(18, 16, 13, 0.18);
}

.ai-response.is-visible {
  display: block;
  animation: reveal 0.5s ease both;
}

.response-label {
  margin-bottom: 12px;
  color: var(--brick);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.response-text {
  margin: 0;
  max-width: 900px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.55vw, 1.32rem);
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.response-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.solid-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}

.solid-button {
  background: var(--ink);
  color: var(--paper);
}

.solid-button:hover,
.text-button:hover {
  background: var(--moss);
  border-color: var(--moss);
  color: var(--white);
}

.references-section {
  padding: 56px 0 88px;
  background:
    linear-gradient(180deg, rgba(246, 238, 223, 0.78), rgba(246, 238, 223, 0.98)),
    var(--paper);
  border-top: 1px solid rgba(18, 16, 13, 0.12);
}

.section-intro {
  display: grid;
  gap: 14px;
  max-width: 790px;
  margin-bottom: 30px;
}

.section-intro h2 {
  font-size: clamp(1.95rem, 3.4vw, 3rem);
}

.section-intro p:last-child,
.page-lead,
.about-text p,
.contact-copy p,
.service-row p,
.reference-item p {
  color: var(--muted);
}

.section-intro p:last-child,
.page-lead {
  margin: 0;
  font-size: 1.18rem;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-left: 1px solid rgba(18, 16, 13, 0.16);
}

.reference-item {
  min-height: 176px;
  padding: 22px;
  border-right: 1px solid rgba(18, 16, 13, 0.16);
  border-bottom: 1px solid rgba(18, 16, 13, 0.16);
  background: rgba(255, 250, 241, 0.34);
}

.reference-item span,
.service-row span {
  display: block;
  margin-bottom: 18px;
  color: var(--brick);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.reference-item h3 {
  margin-bottom: 10px;
  font-size: 1.32rem;
}

.reference-item p {
  margin: 0;
}

.reference-claim {
  background: rgba(63, 95, 70, 0.1);
}

.page-main {
  min-height: calc(100vh - 82px);
}

.page-hero {
  padding: 158px 0 76px;
}

.page-title {
  max-width: 920px;
  font-size: clamp(2.7rem, 5.5vw, 5.4rem);
}

.page-lead {
  max-width: 760px;
  margin-top: 26px;
}

.service-section {
  padding: 28px 0 110px;
  background: var(--paper);
  border-top: 1px solid rgba(18, 16, 13, 0.12);
}

.service-list {
  border-top: 2px solid var(--ink);
}

.service-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid rgba(18, 16, 13, 0.16);
}

.service-row h2 {
  margin-bottom: 10px;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

.service-row p {
  max-width: 760px;
  margin: 0;
  font-size: 1.08rem;
}

.about-page,
.contact-page {
  padding: 154px 0 110px;
}

.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 70px;
  align-items: center;
}

.portrait-panel {
  min-height: 520px;
  display: grid;
  align-content: end;
  padding: 30px;
  border: 2px solid var(--ink);
  background:
    linear-gradient(145deg, rgba(63, 95, 70, 0.84), rgba(18, 16, 13, 0.92)),
    repeating-linear-gradient(0deg, rgba(255, 250, 241, 0.08), rgba(255, 250, 241, 0.08) 1px, transparent 1px, transparent 13px);
  color: var(--white);
  box-shadow: 18px 18px 0 rgba(152, 81, 59, 0.22);
}

.portrait-photo {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  background: var(--ink);
}

.portrait-photo img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.portrait-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(18, 16, 13, 0.84));
}

.portrait-caption {
  position: absolute;
  right: 30px;
  bottom: 30px;
  left: 30px;
  z-index: 1;
}

.portrait-initials {
  width: 102px;
  height: 102px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border: 2px solid var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  font-weight: 700;
}

.portrait-panel p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.3rem;
  line-height: 1;
}

.portrait-panel span {
  margin-top: 10px;
  color: rgba(255, 250, 241, 0.74);
}

.about-text p:not(.microline) {
  max-width: 760px;
  font-size: 1.08rem;
}

.line-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.line-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.line-list li::before {
  content: "";
  height: 2px;
  margin-top: 13px;
  background: var(--line);
}

.contact-layout {
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 24px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-bottom: 2px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  resize: vertical;
}

.field textarea {
  min-height: 134px;
}

.site-footer {
  padding: 26px 0;
  background: var(--ink);
  color: rgba(255, 250, 241, 0.78);
}

.footer-inner {
  width: min(1200px, calc(100% - 42px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.92rem;
}

.footer-inner a {
  color: var(--white);
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cuePulse {
  0%,
  100% {
    opacity: 0.58;
    transform: translateY(-4px) rotate(45deg);
  }

  50% {
    opacity: 1;
    transform: translateY(2px) rotate(45deg);
  }
}

@media (max-width: 900px) {
  .nav-shell {
    min-height: 72px;
    align-items: center;
    flex-direction: row;
    padding: 0 18px;
  }

  .brand-logo {
    width: 128px;
  }

  .mobile-nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 18px;
    width: min(280px, calc(100vw - 36px));
    display: grid;
    gap: 0;
    padding: 8px;
    border-color: rgba(18, 16, 13, 0.14);
    background: rgba(246, 238, 223, 0.96);
    box-shadow: 0 22px 48px rgba(32, 25, 13, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--ease), transform var(--ease);
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    width: 100%;
    padding: 13px 14px;
  }

  .contact-link {
    margin: 6px 0 0;
  }

  .nav-indicator {
    display: none;
  }

  .hero-section,
  .page-hero,
  .about-page,
  .contact-page {
    padding-top: 112px;
  }

  .hero-inner::after {
    display: none;
  }

  .reference-grid,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about-layout,
  .contact-layout {
    gap: 42px;
  }

  .portrait-panel {
    min-height: 390px;
  }

  .portrait-photo img {
    min-height: 390px;
  }
}

@media (max-width: 560px) {
  .inner,
  .footer-inner {
    width: min(100% - 28px, 1200px);
  }

  .nav-link {
    padding: 9px 11px;
    font-size: 0.88rem;
  }

  .hero-section {
    min-height: 100svh;
    padding-bottom: 66px;
  }

  .scroll-cue {
    bottom: 18px;
    width: 42px;
    height: 42px;
  }

  .prompt-line {
    grid-template-columns: minmax(0, 1fr) 46px;
    border-bottom-width: 3px;
  }

  .prompt-button {
    width: 40px;
    height: 40px;
  }

  .references-section {
    padding: 48px 0 72px;
  }

  .reference-grid {
    grid-template-columns: 1fr;
  }

  .reference-item {
    min-height: auto;
    padding: 24px 20px;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .service-row span,
  .reference-item span {
    margin-bottom: 8px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
