:root {
  color-scheme: light;
  --wine: #501c2d;
  --ink: #242224;
  --muted: #645e60;
  --line: #ded8d5;
  font-family: "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: #fcfaf8;
}
* {box-sizing: border-box}
body, h1, h2, h3, p {margin: 0}
body {word-break: keep-all; overflow-wrap: break-word; line-height: 1.5}
main {width: min(1020px, calc(100% - 72px)); margin: auto; container-type:inline-size}
a {color: inherit; text-decoration: none}
a:focus-visible {outline: 3px solid #b86618; outline-offset: 3px}
.skip {position: absolute; left: 2rem; top: -5rem; background: white; padding: .7rem}
.skip:focus {top: 0; z-index: 4}
header, nav, .brand, .section-head, footer, footer div {display: flex; align-items: center}
header {flex-wrap:wrap; justify-content: space-between; min-height: 88px; gap: 1rem}
.brand {gap: .65rem; font-weight: 750; font-size: 1.1rem; letter-spacing: -.05em; line-height: 1.25}
.brand small {display:block; margin-top: .19rem; font: .65rem Georgia, serif; letter-spacing: .17em}
.seal {width: 43px; height: 43px; background: var(--wine); border-radius: 50%; padding: 6px}
.seal img {width: 100%; display: block}
nav {gap: 1.4rem; flex-wrap:wrap; max-width:100%}
nav a, .text-link, footer a {display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem}
nav a:hover, footer a:hover {color:var(--wine); text-decoration: underline}
.hero {display: grid; grid-template-columns: 1fr 1fr; background: var(--wine); color: #fff; border-radius: 6px; overflow: hidden}
.hero-copy {position:relative; isolation: isolate; overflow:hidden; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; padding: clamp(28px,4vw,54px) clamp(24px,3.8vw,46px); min-height: 342px; background: linear-gradient(140deg,#391423,#63253a)}
.hero-copy::after {content:''; position:absolute; z-index:-1; width:300px; height:300px; right:-92px; bottom:-156px; opacity:.07; background: url('assets/mark-white.png') center/contain no-repeat}
.eyebrow {display:flex; align-items:center; gap:.7rem; font-size:.86rem; color:#f0d6ae; font-weight:650; letter-spacing:.075em}
.eyebrow i {width:24px; height:1px; background: currentColor}
h1 {margin: 1.3rem 0 1.05rem; font: 600 clamp(1.8rem,3.1vw,2.75rem)/1.32 "Iowan Old Style","AppleMyungjo","Batang",serif; letter-spacing:-.075em}
.intro {color:#f5e9e9; font-size:1rem; line-height:1.65; letter-spacing:-.035em}
.team-photo {position:relative; background:#d3d6dc}
.team-photo img {position:absolute; width:100%; height:100%; object-fit:cover; object-position:54% 32%}
#consult,.block {padding:32px 0; border-bottom: 1px solid var(--line); scroll-margin-top:1rem}
h2 {font-size:1.5rem; letter-spacing:-.065em}
#consult h2 {margin-bottom:15px}
.contact-actions {display:grid; grid-template-columns:1.15fr 1fr 1fr; gap:10px}
.contact {display:flex; flex-direction:column; justify-content:center; border:1px solid #c9bbbd; background:#fff; border-radius:5px; min-height:78px; padding:12px 20px; transition:background-color .15s}
.contact b {font-size:1.13rem; letter-spacing:-.04em; color:var(--wine)}
.contact span {font-size:.875rem; color:var(--muted); margin-top:.16rem}
.contact:hover {background:#f7eeef}
.primary, .primary:hover {background:var(--wine); border-color:var(--wine)}
.primary:hover {background:#6b2840}
.primary b {color:#fff}
.primary span {color:#ecdae0}
.section-head {justify-content:space-between; gap:1rem; margin-bottom:1rem}
.text-link {font-weight:600; color:var(--wine); text-decoration:underline; text-underline-offset:4px; text-decoration-color:#baa2aa}
.people {display:grid; grid-template-columns:repeat(4,1fr); gap:12px}
.people article {background:#f2efec; border-radius:4px; overflow:hidden}
.people img {width:100%; aspect-ratio:1.25; object-fit:cover; object-position:50% 15%; display:block; background:#e5e2df}
.people article div {padding:.85rem 1rem 1.05rem}
h3 {font-size:1.1rem; letter-spacing:-.045em; line-height:1.4}
.people small {color:var(--muted); font-size:.85rem; font-weight:500}
.people p {font-size:.9rem; color:var(--muted); margin-top:.35rem}
.stories {display:grid; grid-template-columns:1fr 1fr; gap:20px}
.stories a {display:flex; align-items:center; gap:1rem}
.stories a:hover h3 {text-decoration:underline; text-underline-offset:3px}
.stories img {width:105px; aspect-ratio:1.4; object-fit:cover; border-radius:4px}
.stories small {font-size:.875rem; color:var(--wine); display:block; margin-bottom:.3rem}
.office address {font-style:normal; margin:.7rem 0 .2rem; line-height:1.65}
footer {padding:20px 0 36px; justify-content:space-between; gap:1rem; color:var(--muted)}
footer div {gap:1rem}
@media (max-width:700px) {
  main {width:min(100% - 36px,520px)}
  header {min-height:68px; row-gap:0; padding:.4rem 0}
  .brand {font-size:1rem; gap:.45rem}
  .brand small {font-size:.62rem}
  .seal {width:35px; height:35px; padding:5px}
  nav {gap:.25rem}
  nav a {font-size:.875rem; min-width:44px; justify-content:center}
  .hero {grid-template-columns:1fr}
  .hero-copy {min-height:0; padding:23px 24px 24px}
  h1 {font-size:clamp(1.82rem,7.8vw,2.5rem); margin:.7rem 0}
  .intro {font-size:1rem; line-height:1.45}
  .intro br {display:none}
  .team-photo {aspect-ratio:2.4}
  .team-photo img {object-position:50% 6%}
  #consult,.block {padding:22px 0}
  h2 {font-size:1.32rem}
  .contact-actions {grid-template-columns:repeat(auto-fit,minmax(min(100%, 8.5rem),1fr)); gap:8px}
  .primary {grid-column:1 / -1}
  .contact {padding:10px 13px; min-height:64px}
  .contact.primary {flex-wrap:wrap; flex-direction:row; align-items:center; justify-content:space-between; gap:.5rem; min-height:55px}
  .contact b {font-size:1rem}
  .contact span {font-size:.875rem}
  .people {grid-template-columns:1fr 1fr; gap:9px}
  .people img {aspect-ratio:1.35}
  .people article div {padding:.72rem}
  .stories {grid-template-columns:1fr; gap:1rem}
  .stories img {width:90px}
  footer {display:block; padding:22px 0}
  footer div {flex-wrap:wrap; gap:0 .9rem}
}
@media (max-width:370px) {
  main {width:calc(100% - 24px)}
  header {flex-wrap:wrap; column-gap:.4rem; row-gap:0; padding:.375rem 0}
  nav {margin-left:auto; gap:.15rem}
  .hero-copy {padding:21px 19px}
  .contact.primary {align-items:flex-start; flex-direction:column; gap:0}
}

.mobile-contact {display:none}
@media (max-width:700px) {
  html {scroll-padding-bottom:calc(72px + env(safe-area-inset-bottom, 0px))}
  footer {padding-bottom:calc(4rem + 30px + env(safe-area-inset-bottom, 0px))}
  .mobile-contact:not([hidden]) {
    display:flex; flex-wrap:wrap; gap:8px; position:fixed;
    z-index:3; bottom:0; left:0; right:0; border-top:1px solid var(--line);
    background:#fcfaf8; padding:8px max(12px, calc((100% - 520px) / 2)) calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-contact a {
    flex:1 1 7.5rem; display:grid; place-items:center; min-height:46px; padding:.5rem;
    border-radius:5px; border:1px solid var(--wine); color:var(--wine); font-weight:650;
  }
  .mobile-contact a:last-child {flex-grow:1.7; background:var(--wine); color:white}
}

/* Follow the available space in text units, including the reader’s font size. */
@container (max-width: 16em) {
  header {align-items:flex-start; gap:.25rem; padding-block:.5rem}
  nav {flex-basis:100%; margin:0; gap:.5rem}
  .contact-actions, .people {grid-template-columns:minmax(0, 1fr)}
  .contact.primary {flex-direction:column; align-items:flex-start; gap:0}
  .section-head, footer div {flex-wrap:wrap; gap:0 .5rem}
  .stories a {align-items:flex-start}
  footer {padding-bottom:calc(6.5rem + 30px + env(safe-area-inset-bottom, 0px))}
}
@media (prefers-reduced-motion: no-preference) {
  .mobile-contact:not([hidden]) {animation:contact-appear 150ms ease-out}
}
@keyframes contact-appear {
  from {opacity:0}
  to {opacity:1}
}
