/* Hilda Kelly portfolio | Fraunces Bold is the heading font. Change --serif to test others. */
:root {
  --pink: #fbe5f3;
  --cream: #faf9ee;
  --green: #245037;
  --accent: #93b84b;
  --rose: #e9b8c7;
  --ink: #343d36;
  --white: #fffdf7;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --script: 'Caveat', cursive;
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: var(--sans); background: var(--cream); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #d96285; outline-offset: 4px; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 50; padding: 10px 14px; background: var(--green); color: white; }
.skip-link:focus { top: 12px; }
.site-header { background: var(--pink); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; min-height: 122px; }
.wordmark { text-decoration: none; color: var(--green); display: flex; align-items: center; gap: 23px; flex-shrink: 0; }
.wordmark > span { font-family: var(--script); font-size: 48px; font-weight: 700; line-height: .62; transform: rotate(-5deg); padding: 14px 0; }
.wordmark small { border-left: 1px solid var(--rose); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding-left: 21px; max-width: 190px; line-height: 1.6; }
.navigation { display: flex; gap: clamp(16px, 3vw, 42px); }
.navigation a { text-decoration: none; font-weight: 600; font-size: 14px; position: relative; }
.navigation a::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 3px; border-radius: 3px; background: var(--accent); transition: width .2s ease; }
.navigation a:hover::after,.navigation a.active::after { width: 100%; }
.hero { background: var(--pink); overflow: hidden; position: relative; }
.hero::after { content: ''; position: absolute; bottom: -98px; left: -8%; height: 150px; width: 130%; background: var(--cream); border-radius: 50% 50% 0 0 / 65% 85% 0 0; pointer-events: none; }
.hero-layout { min-height: 480px; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 35px; padding: 24px 0 96px; position: relative; z-index: 1; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .19em; font-size: 11px; margin: 0 0 16px; }
.eyebrow span { color: #a56779; }
h1,h2,h3,h4,p { margin-top: 0; }
h1,h2,h3,h4 { color: var(--green); }
h1,h2,h3 { font-family: var(--serif); font-weight: 700; line-height: 1.18; }
.hero h1 { font-size: clamp(2.4rem, 4.2vw, 4.65rem); letter-spacing: -.035em; margin-bottom: 22px; }
.highlight { position: relative; white-space: nowrap; }
.highlight::after { content: ''; position: absolute; height: 10px; background: var(--accent); opacity: .85; left: 1%; right: -2%; bottom: -3px; border-radius: 50%; transform: rotate(-2deg); z-index: -1; }
.hero-description { max-width: 490px; font-size: 16px; margin-bottom: 28px; }
.button { display: inline-flex; gap: 30px; align-items: center; justify-content: space-between; padding: 11px 20px; border-radius: 100px; text-decoration: none; color: white; background: var(--green); font-weight: 700; font-size: 14px; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); background: #366949; }
.hero-art { min-height: 390px; position: relative; }
.hero-art figure { margin: 0; position: absolute; overflow: hidden; background: #fff; box-shadow: 0 16px 42px rgba(65,59,59,.14); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.art-main { width: 64%; aspect-ratio: 1; top: 8%; right: 15%; transform: rotate(6deg); border: 9px solid var(--white); border-radius: 19px; }
.art-small { width: 36%; aspect-ratio: 1; border: 7px solid var(--white); border-radius: 13px; }
.art-puppy { top: 2%; left: 0; transform: rotate(-11deg); }
.art-paper { right: 0; bottom: 0; transform: rotate(-9deg); }
.art-sparkle { position: absolute; font-size: 60px; color: var(--accent); }
.art-sparkle.top { right: 2%; top: 2%; }
.art-sparkle.bottom { left: 14%; bottom: 6%; color: #db8ca5; }
.work-section { padding: 48px 0 100px; scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 30px; }
.section-heading h2 { font-size: clamp(2.3rem, 3.6vw, 3.35rem); margin: 0; letter-spacing: -.03em; }
.little-star { color: var(--accent); font-family: var(--sans); font-size: .55em; vertical-align: top; }
.section-heading > p { margin: 0 0 5px; max-width: 400px; font-size: 14px; }
.featured-project { display: grid; grid-template-columns: 1fr 1fr; background: #eff2e1; border-radius: 15px; overflow: hidden; margin-bottom: 65px; }
.featured-image { background: #a7c339; display: block; min-height: 315px; }
.featured-image img { width: 100%; height: 100%; object-fit: contain; max-height: 400px; }
.featured-copy { padding: clamp(26px, 5vw, 64px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.featured-copy h3 { font-size: clamp(1.9rem, 3vw, 3rem); margin: 0 0 16px; }
.featured-copy > p:not(.eyebrow) { max-width: 320px; }
.text-link { font-size: 14px; color: var(--green); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.more-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 15px; border-bottom: 1px solid #decfd0; margin-bottom: 24px; }
.more-heading h3 { margin: 0; font-size: 1.6rem; }
.more-heading span { font-size: 12px; color: #6e786f; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 38px 22px; }
.project-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; background: #eee; }
.project-meta { padding-top: 13px; }
.project-meta h4 { font-size: 1.15rem; font-family: var(--serif); font-weight: 700; line-height: 1.3; margin-bottom: 3px; }
.project-meta p { margin: 0; font-size: 11px; letter-spacing: .13em; font-weight: 700; color: #58735f; text-transform: uppercase; }
.about-section { background: #e6ecdc; padding: 78px 0; scroll-margin-top: 0; }
.about-layout { display: grid; grid-template-columns: .35fr 1fr; gap: 35px; }
.about-layout h2 { font-size: clamp(2rem,4vw,3.75rem); letter-spacing: -.035em; margin-bottom: 15px; }
.about-layout h2 em { font-weight: 400; }
.about-layout p:last-child { max-width: 620px; margin: 0; }
.contact-section { background: var(--pink); padding: 65px 0; }
.contact-layout { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.contact-layout h2 { font-size: clamp(2.2rem,4vw,3.5rem); margin: 0; }
.contact-layout > p { max-width: 420px; font-size: 14px; margin: 0 0 5px; }
.site-footer { background: var(--green); color: white; padding: 24px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 12px; }
.footer-inner a { color: white; }
/* Project case study */
.case-hero { background: var(--pink); padding: 40px 0 68px; }
.case-hero-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; }
.case-intro .text-link { display: inline-block; margin-bottom: 55px; }
.case-intro h1 { font-size: clamp(2.7rem, 5.5vw, 5.5rem); letter-spacing: -.04em; margin-bottom: 24px; }
.case-intro > p:last-child { max-width: 460px; font-size: 17px; }
.case-hero-layout > img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 12px solid var(--white); transform: rotate(3deg); box-shadow: 0 20px 48px rgba(60,50,60,.11); }
.case-section { padding: 70px 0; }
.case-info { display: grid; grid-template-columns: .85fr 1.3fr 1fr; gap: 40px; }
.case-section h2 { font-size: clamp(2rem, 3vw, 3rem); margin-bottom: 15px; }
.case-info > p { margin: 0; }
.case-facts { display: grid; gap: 15px; }
.case-facts div { display: grid; gap: 4px; }
.case-facts strong { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--green); }
.case-facts span { font-size: 14px; }
.case-gallery { background: #e8eedc; }
.gallery-intro { max-width: 660px; }
.brand-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 23px; }
.brand-grid figure { margin: 0; }
.brand-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #fff; }
.brand-grid figcaption { font-size: 13px; color: #526d55; font-weight: 600; margin-top: 10px; }
.case-end { background: var(--pink); padding: 70px 0; }
.case-end h2 { font-size: clamp(2rem, 3vw, 3rem); }
.case-end p:not(.eyebrow) { max-width: 650px; }
@media (max-width: 930px) {
  .hero-layout { grid-template-columns: 1fr 0.8fr; }
  .hero-art { min-height: 320px; }
  .wordmark small { max-width: 145px; }
  .case-info { grid-template-columns: 1fr 1fr; }
  .case-info > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .container { width: min(100% - 32px, 520px); }
  .header-inner { min-height: unset; padding-block: 20px; flex-wrap: wrap; gap: 20px; }
  .wordmark > span { font-size: 39px; }
  .wordmark small { font-size: 9px; max-width: 170px; }
  .navigation { width: 100%; justify-content: space-between; gap: 10px; }
  .navigation a { font-size: 13px; }
  .hero-layout { grid-template-columns: 1fr; padding: 30px 0 86px; min-height: unset; gap: 16px; }
  .hero h1 { font-size: clamp(2.45rem, 10vw, 4rem); }
  .hero-art { min-height: 275px; max-width: 450px; width: 100%; margin-inline: auto; }
  .art-main { width: 57%; right: 20%; top: 0; }
  .art-small { width: 30%; }
  .hero-description { font-size: 15px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 13px; }
  .featured-project { grid-template-columns: 1fr; }
  .featured-image { min-height: unset; }
  .featured-image img { max-height: 370px; }
  .featured-copy { padding: 27px; }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 14px; }
  .project-meta h4 { font-size: 1rem; }
  .project-meta p { font-size: 9px; }
  .about-layout { grid-template-columns: 1fr; gap: 12px; }
  .contact-layout { display: block; }
  .contact-layout > p { margin-top: 18px; }
  .case-hero-layout { grid-template-columns: 1fr; gap: 20px; }
  .case-intro .text-link { margin-bottom: 30px; }
  .case-hero-layout > img { max-width: 420px; margin-inline: auto; }
  .case-info { grid-template-columns: 1fr; gap: 20px; }
  .case-info > div:first-child { grid-column: auto; }
  .brand-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .wordmark small { letter-spacing: .09em; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card img { aspect-ratio: 4/3; }
  .brand-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition: none !important; } }

/* All of the thumbnails and their captions are now links. */
.project-card-link { display: block; text-decoration: none; color: inherit; }
.project-card-link img { transition: transform .22s ease, box-shadow .22s ease; }
.project-card-link:hover img, .project-card-link:focus-visible img { transform: translateY(-5px); box-shadow: 0 14px 28px rgba(36,80,55,.14); }
.project-card-link:hover h4, .project-card-link:focus-visible h4 { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.featured-heading-link { text-decoration: none; }
.featured-heading-link:hover, .featured-heading-link:focus-visible { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
/* Simple, consistent project subpages */
.case-detail-layout { display: grid; grid-template-columns: minmax(210px,.7fr) minmax(0,1.3fr); gap: clamp(20px,5vw,65px); align-items: center; }
.case-detail-layout > div > p:last-child { max-width: 350px; }
.case-large-preview { margin: 0; }
.case-large-preview img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:14px; box-shadow: 0 12px 34px rgba(36,80,55,.09); background:#fff; }
.case-large-preview figcaption { margin-top:10px; font-size:12px; color:#526d55; }
.case-edit-note { display:grid; grid-template-columns: 1.2fr .8fr; gap:clamp(25px,6vw,85px); }
.case-edit-note > div:first-child > p:last-child { max-width:610px; }
.case-suggestions { background:#eff2e1; border:1px solid #d5dfc6; border-radius:14px; padding:25px; align-self:start; }
.case-suggestions strong { color:var(--green); }
.case-suggestions ul { margin-bottom:0; padding-left:20px; }
.case-suggestions li + li { margin-top:8px; }
.project-pager { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:25px 0 30px; }
.project-pager a { min-width:0; display:flex; flex-direction:column; gap:3px; padding:18px 22px; border:1px solid #d9b9c6; border-radius:12px; background:rgba(255,255,255,.42); text-decoration:none; transition:background .2s ease; }
.project-pager a:hover { background:rgba(255,255,255,.8); }
.project-pager a:last-child { text-align:right; }
.project-pager small { text-transform:uppercase; letter-spacing:.09em; font-size:11px; color:#5d7461; }
.project-pager strong { font-family:var(--serif); font-size:clamp(1rem,2.1vw,1.35rem); color:var(--green); }
@media(max-width:700px) {
  .case-detail-layout, .case-edit-note { grid-template-columns:1fr; gap:22px; }
}
@media(max-width:420px) {
  .project-pager { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce) {
  .project-card-link img, .project-pager a { transition:none; }
}


/* Click-to-enlarge images inside project galleries */
.zoom-trigger {
  display: block;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}
.zoom-trigger img {
  transition: filter .18s ease, transform .18s ease;
}
.zoom-trigger:hover img, .zoom-trigger:focus-visible img {
  filter: brightness(.93);
  transform: scale(1.01);
}
.zoom-trigger:focus-visible { outline: 3px solid #c05680; outline-offset: 5px; }
.zoom-indicator {
  position: absolute;
  bottom: 13px;
  right: 13px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(36,80,55,.94);
  color: #fff;
  font: 600 12px/1.4 var(--sans);
  box-shadow: 0 3px 12px rgba(0,0,0,.12);
  pointer-events: none;
}
.zoom-help { color: #4e7053; font-size: 13px; margin-top: 10px; font-weight: 600; }
.image-lightbox {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(1230px, calc(100vw - 30px));
  max-width: none;
  max-height: calc(100dvh - 30px);
  padding: 0;
  border: 1px solid #d8bfc8;
  border-radius: 17px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 25px 75px rgba(0,0,0,.35);
  overflow: auto;
}
.image-lightbox::backdrop { background: rgba(11,31,20,.83); }
.lightbox-panel { position: relative; padding: 54px 20px 16px; }
.lightbox-close {
  position: absolute;
  right: 16px;
  top: 11px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--pink);
  color: var(--green);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover, .lightbox-nav:hover { background: #e8e4d9; }
.lightbox-row { display: grid; grid-template-columns: 42px minmax(0,1fr) 42px; gap: 10px; align-items: center; }
.lightbox-nav {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--pink);
  color: var(--green);
  font-size: 24px;
  cursor: pointer;
}
.lightbox-nav[hidden], .lightbox-counter[hidden] { display: none; }
.lightbox-row:has(.lightbox-nav[hidden]) { grid-template-columns: minmax(0,1fr); }
.lightbox-figure { min-width: 0; margin: 0; text-align: center; }
.lightbox-image {
  display: block;
  width: 100%;
  height: min(72dvh, 850px);
  max-height: calc(100dvh - 160px);
  margin-inline: auto;
  object-fit: contain;
  border-radius: 7px;
}
.lightbox-caption { color: #35583f; font-size: 13px; margin-top: 13px; }
.lightbox-counter { text-align: center; font: 600 11px var(--sans); letter-spacing: .04em; margin: 10px 0 0; color: #526d55; }
.lightbox-close:focus-visible, .lightbox-nav:focus-visible { outline: 3px solid #c05680; outline-offset: 3px; }
@media (max-width: 640px) {
  .image-lightbox { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .lightbox-panel { padding: 50px 10px 12px; }
  .lightbox-row { display: block; position: relative; }
  .lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 34px;
    height: 40px;
    font-size: 19px;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
  }
  .lightbox-prev { left: 3px; }
  .lightbox-next { right: 3px; }
  .lightbox-image { height: auto; max-height: calc(100dvh - 158px); }
  .zoom-indicator { bottom: 9px; right: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .zoom-trigger img { transition: none; }
}
