:root {
  --ink: #23392e;
  --paper: #fbf6ee;
  --orange: #ce7046;
  --section-highlight: #f3e6d2;
  --heading-font: "Bricolage Grotesque", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.65 "Poppins", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body, figure, p, h1, h2 {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: .18em;
}

a:focus-visible {
  outline: 3px solid #a34b2c;
  outline-offset: 5px;
}

.wrap {
  width: min(1168px, 88%);
  margin: auto;
}

.bar, .foot, nav {
  display: flex;
  align-items: center;
}

.bar {
  min-height: 83px;
  border-bottom: 1px solid #c9cebe;
  justify-content: space-between;
}

.bar a, .foot a {
  text-decoration: none;
}

.logo {
  font-size: 30px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: -1.9px;
  white-space: nowrap;
}

.logo i {
  font: italic 1.04em Georgia, serif;
  letter-spacing: -1.9px;
}

.logo b {
  color: var(--orange);
}

nav {
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
}

.contact {
  border: 1px solid var(--ink);
  border-radius: 30px;
  padding: 7px 18px;
}

nav a:hover, .foot a:hover, .copy a:hover {
  color: #995137;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.14fr .86fr;
  align-items: center;
  gap: 6%;
  padding: 65px 0 82px;
}

.greet {
  --underline-arc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3,10 C45,4 120,3 197,8' fill='none' stroke='%23EE8A3C' stroke-width='6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  font: italic 25px Georgia, serif;
  margin-bottom: 22px;
}

/* The four curves use the final stroke and position for each heading. */
.greet span, h1 em, h2 em {
  position: relative;
  isolation: isolate;
  display: inline-block;
}

h1 em, h2 em {
  font-style: normal;
}

.greet span::after, h1 em::after, h2 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -2%;
  bottom: -0.08em;
  width: 104%;
  height: 0.26em;
  translate: 0 2.5px;
  background: var(--underline-arc) center / 100% 100% no-repeat;
}

.greet span::after {
  left: -3%;
  bottom: -0.2em;
  width: 106%;
  height: 0.42em;
  translate: 0 0.5px;
}

h1 em::after {
  bottom: -0.06em;
  height: 0.24em;
}

h1, h2 {
  font-family: var(--heading-font);
  font-weight: 700;
  letter-spacing: -.067em;
  line-height: .99;
  text-wrap: balance;
}

h1 {
  --underline-arc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3,11 C50,4 125,3 197,8' fill='none' stroke='%23EE8A3C' stroke-width='7' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  font-size: clamp(54px, 5.65vw, 84px);
}

/* Hero role pills */
.roles {
  margin: 26px 0 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 0;
  list-style: none;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: normal;
  color: #1e2a2b;
}

.roles > li {
  padding: 8px 16px;
  border-radius: 999px;
  background: #f3e6d2;
  white-space: nowrap;
}

.hero-grid > div > p:last-of-type {
  max-width: 51ch;
}

.portrait-frame {
  margin: 0;
  padding: 0 13px 0 2px;
}

.print {
  position: relative;
  background: #fffdf5;
  padding: 12px 12px 0;
  transform: rotate(2.2deg);
  box-shadow: 1px 6px 14px #39382225;
}

.print:before {
  content: "";
  position: absolute;
  background: #dec795d6;
  width: 32%;
  height: 32px;
  top: -13px;
  left: 34%;
  z-index: 1;
  transform: rotate(-7deg);
  clip-path: polygon(3% 0, 100% 5%, 97% 29%, 100% 46%, 97% 67%, 99% 96%, 0 100%, 2% 75%, 0 60%, 3% 38%, 0 18%);
}

.print img {
  display: block;
  width: 100%;
  aspect-ratio: 1.07;
  object-fit: cover;
  object-position: center 10%;
}

figcaption {
  text-align: center;
  font: italic 20px/2.4 Georgia, serif;
}

.chapter {
  --bg: var(--paper);
  position: relative;
  background: var(--bg);
  scroll-margin-top: 15px;
}

.columns {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 8%;
  padding: 73px 0 91px;
}

.copy p + p {
  margin-top: 1em;
}

.copy {
  max-width: 64ch;
}

.copy a {
  font-weight: 600;
}

.columns h2 {
  --underline-arc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3,11 C50,4 125,3 197,8' fill='none' stroke='%23EE8A3C' stroke-width='6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  font-size: clamp(38px, 4.2vw, 60px);
  align-self: start;
  max-width: 13ch;
}

.foot {
  justify-content: space-between;
  border-top: 1px solid #c9cebe;
  gap: 24px;
  font-size: 14px;
  min-height: 110px;
}

.bar a:hover {
  text-decoration: underline;
}

#dtc h2, #advisor h2 {
  --underline-arc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3,9 C55,4 130,4 197,10' fill='none' stroke='%23EE8A3C' stroke-width='6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}

/* Sand sections and their brush edges */
#story, #vital {
  --bg: var(--section-highlight);
  --section-brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H1440 V20 C1392,28 1350,15 1296,23 C1236,32 1188,19 1122,26 C1050,33 990,17 918,25 C846,32 792,20 720,28 C648,35 590,19 516,25 C444,30 396,16 324,24 C252,31 198,18 132,26 C84,31 40,21 0,25 Z'/%3E%3Cpath opacity='.55' d='M0,22 C60,32 120,27 190,35 C250,41 320,29 400,36 C470,42 540,32 620,39 C700,45 780,31 860,38 C940,44 1010,33 1090,40 C1170,46 1250,32 1330,39 C1380,43 1410,35 1440,38 V18 H0 Z'/%3E%3Cpath opacity='.28' d='M40,36 C120,46 210,44 300,50 C330,52 350,47 330,44 C250,40 150,38 40,32 Z M420,40 C500,50 600,47 690,53 C720,55 735,49 712,46 C620,42 520,40 420,36 Z M800,40 C880,50 980,48 1060,54 C1090,56 1104,50 1080,47 C1000,43 900,41 800,37 Z M1140,40 C1220,49 1310,47 1400,52 C1428,54 1440,48 1420,45 C1330,41 1240,39 1140,36 Z'/%3E%3C/svg%3E");
  z-index: 1;
}

#story::before,
#story::after,
#vital::before,
#vital::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: clamp(28px, 4vw, 56px);
  background: var(--bg);
  -webkit-mask: var(--section-brush) center / 100% 100% no-repeat;
  mask: var(--section-brush) center / 100% 100% no-repeat;
  pointer-events: none;
}

/* Top edge: the sand fades upward into cream */
#story::before,
#vital::before {
  bottom: calc(100% - 1px);
  transform: scaleY(-1);
}

/* Bottom edge: the sand fades downward into cream */
#story::after,
#vital::after {
  top: calc(100% - 1px);
  transform: scaleX(-1);
}

#vital .delivery-photo {
  width: min(73.6%, 336px);
  margin: 50px auto -40px;
  transform: rotate(-2.2deg);
}

#vital .delivery-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
}

/* Full-width contact panel beneath the fractional co-founder section */
#advisor .columns {
  row-gap: clamp(32px, 4vw, 56px);
}

.contact-panel {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 28px;
  background: var(--section-highlight, #f3e6d2);
}

.contact-panel-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: grid;
  gap: 10px;
}

.contact-panel h3 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.contact-panel p {
  margin: 0;
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.6;
  color: #33403f;
}

.contact-panel-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: #ee8a3c;
  color: #1e2a2b;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.contact-panel-email svg {
  flex-shrink: 0;
}

.contact-panel-email:hover,
.contact-panel-email:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.footer-linkedin svg {
  flex-shrink: 0;
}

/* Desktop */
@media (min-width: 981px) {
  :root {
    font-size: 18px;
    --brush-spacing: clamp(32px, 4.5vw, 64px);
  }

  .bar .logo {
    font-size: 36px;
  }
  .bar nav {
    font-size: 18px;
  }

  .bar .contact:hover, .bar .contact:focus-visible {
    background-color: #ee8a3c;
    border-color: #ee8a3c;
    color: #000;
    text-decoration: none;
  }

  .hero-grid {
    padding-bottom: calc(82px + var(--brush-spacing));
  }
  h1 {
    font-size: clamp(40px, 5.6vw, 76px);
  }
  h1, h2 {
    letter-spacing: -0.02em;
  }

  .greet {
    font-family: var(--heading-font);
    font-size: clamp(24px, 2.4vw, 32px);
    font-style: normal;
    font-weight: 600;
    letter-spacing: -0.01em;
  }

  .roles {
    margin-bottom: 25px;
  }
  .roles > li {
    font-weight: 600;
  }

  .hero-grid > div > p:last-of-type, .chapter .copy p, .contact-panel-copy > p {
    font-size: 19px;
  }

  #story h2, #dtc h2 {
    line-height: 1.08;
  }
  #dtc .columns {
    padding-top: calc(73px + var(--brush-spacing));
    padding-bottom: calc(91px + var(--brush-spacing));
  }

  #vital .columns {
    display: block;
    padding-block: 53px 71px;
  }

  #vital h2 {
    max-width: none;
    margin: 0 0 66px;
    text-align: center;
  }

  #vital .copy {
    display: grid;
    grid-template-columns: minmax(254.1px, 339.57px) minmax(0, 1fr);
    gap: 20px clamp(40px, 6vw, 88px);
    max-width: 1000px;
    margin-inline: auto;
    align-items: center;
  }

  #vital .delivery-photo {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: 339.57px;
    margin: 10px 0 0;
  }

  .vital-text {
    grid-column: 2;
    grid-row: 1;
  }

  .vital-text > p + p {
    margin-top: 20px;
  }
  #advisor .columns {
    padding-top: calc(73px + var(--brush-spacing));
  }

  .contact-panel {
    padding-block: calc(clamp(32px, 5vw, 56px) - 10px);
    margin-top: 20px;
  }

  .footer-linkedin svg {
    width: 24px;
    height: 24px;
  }

  .linkedin-label {
    transform: translateY(1px);
  }
}

/* Tablet */
@media (min-width: 741px) and (max-width: 980px) {
  .hero-grid {
    gap: 3%;
    padding-block: 56px 74px;
  }

  h1 {
    font-size: clamp(46px, 5.6vw, 60px);
  }

  .wrap {
    width: 90%;
  }

  .columns {
    gap: 6%;
  }
}

/* Mobile */
@media (max-width: 740px) {
  .bar {
    min-height: 68px;
  }

  .logo {
    font-size: 26px;
  }

  nav {
    gap: 14px;
    font-size: 13px;
  }

  nav > a:not(.contact) {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 37px 0 65px;
  }

  h1 {
    font-size: clamp(44px, 10.2vw, 70px);
  }

  .greet {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .roles {
    margin-top: 22px;
  }

  .hero-grid > div > p:last-of-type {
    max-width: 54ch;
  }

  .portrait-frame {
    width: min(92%, 440px);
    margin: auto;
  }

  .print img {
    aspect-ratio: 1.3;
  }

  .columns {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 42px 0 65px;
  }

  .columns h2 {
    font-size: clamp(36px, 8vw, 49px);
    max-width: 17ch;
  }

  .foot {
    gap: 10px;
    padding: 25px 0;
  }

  .foot a {
    font-size: 13px;
  }
}

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

@media (max-width: 480px) {
  .contact-panel {
    padding: 28px 20px;
  }

  .contact-panel-email {
    padding: 0 18px;
    font-size: 16px;
  }
}

#vital .delivery-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
}

/* Append to dtc_family.css. Desktop begins at 981px. */
@media (width < 981px) {
  :root {
    --section-space: clamp(38px, 6.6vw, 65px);
    --brush-space: clamp(24px, 4vw, 40px);
    --copy-size: clamp(16px, 2.25vw, 18px);
  }

  .bar .logo {
    font-size: clamp(29px, 4.2vw, 36px);
  }

  .bar nav {
    font-size: clamp(15px, 2vw, 18px);
    gap: clamp(12px, 3vw, 30px);
  }

  .bar .contact:is(:hover, :focus-visible) {
    background: #ee8a3c;
    border-color: #ee8a3c;
    color: #000;
    text-decoration: none;
  }

  h1, h2 {
    letter-spacing: -0.02em;
    line-height: 1.08;
  }

  .greet {
    font: 600 clamp(22px, 2.6vw, 25px)/1.2 var(--heading-font);
    letter-spacing: -0.01em;
  }

  .roles {
    margin-bottom: clamp(20px, 2.6vw, 25px);
  }

  .roles > li {
    font-weight: 600;
  }

  .hero-grid > div > p:last-of-type,
  .chapter .copy p,
  .contact-panel-copy > p {
    font-size: var(--copy-size);
  }

  .hero-grid {
    padding-bottom: calc(var(--section-space) + var(--brush-space));
  }

  .columns {
    padding-block: var(--section-space);
  }

  /* The tan brushes extend into the adjoining cream sections. */
  #dtc .columns {
    padding-block: calc(var(--section-space) + var(--brush-space));
  }

  #advisor .columns {
    padding-top: calc(var(--section-space) + var(--brush-space));
  }

  #vital .columns {
    display: block;
  }

  #vital h2 {
    max-width: none;
    text-align: center;
    margin-bottom: clamp(32px, 5.8vw, 57px);
  }

  #vital .copy {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 0.37fr) minmax(0, 0.63fr);
    column-gap: clamp(28px, 5vw, 50px);
    align-items: center;
  }

  #vital .delivery-photo {
    grid-area: 1 / 1;
    width: 100%;
    max-width: 336px;
    margin: 10px auto 0;
  }

  #vital .vital-text {
    grid-area: 1 / 2;
  }

  .contact-panel {
    padding-block: clamp(22px, 4vw, 38px);
    margin-top: clamp(8px, 1.6vw, 16px);
  }

  .footer-linkedin svg {
    width: 22px;
    height: 22px;
  }

  .linkedin-label {
    transform: translateY(1px);
  }
}

/* Keep the full navigation wherever it fits on one row. */
@media (540px <= width <= 740px) {
  .bar nav > a {
    display: inline-flex;
  }
}

@media (width < 680px) {
  #vital .copy {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }

  #vital .vital-text {
    grid-area: 1 / 1;
  }

  #vital .delivery-photo {
    grid-area: 2 / 1;
    width: min(80%, 320px);
  }
}

@media (width <= 480px) {
  .contact-panel-email {
    max-width: 100%;
    padding-inline: 12px;
    gap: 7px;
  }
}
