:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-soft: #efeadf;
  --ink: #161512;
  --text: #2d2a25;
  --muted: #686158;
  --border: #d9d1c3;
  --divider: rgba(104, 97, 88, 0.24);
  --portrait-blue: #3621ee;
  --portrait-blue-dark: #2413b8;
  --portrait-blue-soft: rgba(54, 33, 238, 0.08);
  --portrait-blue-border: rgba(54, 33, 238, 0.22);
  --accent: var(--portrait-blue);
  --accent-dark: var(--portrait-blue-dark);
  --accent-soft: var(--portrait-blue-soft);
  --gold: #b6812f;
  --shadow: 0 24px 70px rgba(42, 34, 24, 0.12);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(14, 111, 115, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(14, 111, 115, 0.055) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
}

body,
button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.65rem 0.9rem;
  color: #ffffff;
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  width: min(100% - 2rem, 1160px);
  margin: 0 auto;
  padding: 1rem 0;
  background: rgba(247, 244, 238, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: max-content;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  display: block;
  border-radius: 50%;
}

nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

nav a,
.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease;
}

nav a:hover,
.footer-links a:hover {
  color: var(--portrait-blue);
}

main {
  width: min(100% - 2rem, 1160px);
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  min-height: auto;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.25rem, 5vw, 4rem);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.panel-label {
  margin: 0 0 1rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.4rem;
  font-size: clamp(2.75rem, 6.7vw, 5.7rem);
  line-height: 1;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.8vw, 4.3rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.lede {
  max-width: 62ch;
  margin-bottom: clamp(2.35rem, 4vw, 3.2rem);
  color: #403a33;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #ffffff;
  background: var(--portrait-blue);
  border-color: var(--portrait-blue);
}

.button-primary:hover {
  background: var(--portrait-blue-dark);
  border-color: var(--portrait-blue-dark);
}

.button-secondary {
  color: var(--portrait-blue);
  background: var(--portrait-blue-soft);
  border-color: var(--portrait-blue-border);
}

.profile-panel {
  display: grid;
  gap: 1rem;
  align-content: end;
  padding: clamp(1rem, 3vw, 1.4rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.portrait {
  display: block;
  width: 100%;
  max-width: 390px;
  aspect-ratio: 1;
  object-fit: contain;
  justify-self: center;
}

.profile-copy {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: left;
}

.profile-copy p:last-child {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 800;
  line-height: 1.2;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 4vw, 3rem);
  margin: clamp(1.8rem, 4vw, 3.2rem) 0 clamp(4rem, 8vw, 7rem);
  padding: 0;
}

.proof-strip div {
  min-height: auto;
  padding: 0;
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  color: var(--ink);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.2;
}

.proof-strip span {
  max-width: 22ch;
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.work-section,
.philosophy-section,
.value-section,
.writing-section,
.contact-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--border);
}

.section-heading {
  max-width: 860px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.value-section .section-heading {
  margin-bottom: clamp(2.7rem, 5vw, 4rem);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.work-grid article {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(42, 34, 24, 0.06);
}

.work-grid span {
  display: inline-flex;
  margin-bottom: 2rem;
  color: var(--gold);
  font-weight: 850;
}

.work-grid p {
  margin-bottom: 0;
}

.philosophy-section,
.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
}

.philosophy-section {
  align-items: center;
}

.philosophy-copy {
  display: grid;
  gap: 0.75rem;
}

.philosophy-copy p {
  font-size: 1.08rem;
}

.value-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.6rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
}

.value-list section {
  padding: 0;
}

.value-list p {
  margin-bottom: 0;
}

.writing-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  padding: clamp(3rem, 7vw, 5rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(239, 234, 223, 0.78)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.writing-section::before,
.writing-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.writing-section::before {
  width: min(38vw, 360px);
  aspect-ratio: 1.42;
  right: clamp(1rem, 5vw, 4rem);
  top: clamp(1.3rem, 4vw, 2.6rem);
  background:
    linear-gradient(rgba(14, 111, 115, 0.16) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(217, 237, 237, 0.34));
  background-size: 100% 28px, auto;
  border: 1px solid rgba(14, 111, 115, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(42, 34, 24, 0.08);
  opacity: 0.78;
  transform: rotate(-2deg);
}

.writing-section::after {
  width: min(30vw, 280px);
  aspect-ratio: 1.38;
  right: clamp(0.5rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  background:
    linear-gradient(90deg, rgba(182, 129, 47, 0.18), transparent 42%),
    repeating-linear-gradient(0deg, rgba(22, 21, 18, 0.11) 0 1px, transparent 1px 18px),
    rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(182, 129, 47, 0.18);
  border-radius: 8px;
  opacity: 0.5;
  transform: rotate(3deg);
}

.writing-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.writing-copy p {
  max-width: 58ch;
}

.writing-copy .button {
  margin-top: 1.3rem;
}

.contact-copy p {
  max-width: 42ch;
}

.contact-reasons {
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
  padding: clamp(1.2rem, 3vw, 1.5rem);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.contact-reasons h3 {
  margin-bottom: 1rem;
}

.contact-reasons ul {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding-left: 1.1rem;
}

.contact-reasons li {
  color: var(--muted);
  line-height: 1.55;
}

.contact-reasons li::marker {
  color: var(--accent-dark);
}

.contact-form {
  display: grid;
  gap: 0.8rem;
  padding: clamp(1.2rem, 3vw, 1.6rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(42, 34, 24, 0.06);
}

.contact-form label:not(.consent) {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.78rem 0.9rem;
  color: var(--ink);
  background: #fbfaf7;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.contact-form textarea {
  resize: vertical;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--muted);
}

.consent input {
  width: 20px;
  height: 20px;
  margin-top: 0.22rem;
  accent-color: var(--accent-dark);
}

.hidden-field {
  display: none;
}

footer {
  background: #ece5d8;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, 1160px);
  margin: 0 auto;
  padding: 2rem 0;
}

.footer-inner p {
  margin-bottom: 0;
}

.footer-inner strong {
  display: block;
  color: var(--ink);
}

.footer-inner p span {
  display: block;
  margin-top: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    grid-column: 1 / -1;
    order: 3;
  }

  .hero,
  .philosophy-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

  .profile-panel {
    max-width: 520px;
  }

  .proof-strip,
  .work-grid,
  .value-list {
    grid-template-columns: 1fr;
  }

  .writing-section::before {
    width: 260px;
    right: -80px;
    top: 1.5rem;
    opacity: 0.42;
  }

  .writing-section::after {
    width: 220px;
    right: -90px;
    bottom: 1rem;
    opacity: 0.28;
  }

}

@media (max-width: 560px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  nav {
    order: initial;
    grid-column: auto;
  }

  h1 {
    max-width: 100%;
    font-size: 2.65rem;
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .footer-inner {
    display: grid;
  }
}
