/* Homepage: a single layout source, independent of the case-study styles. */
:root { --ink:#1d1d1f; --muted:#6e6e73; --blue:#0066cc; --surface:#f5f5f7; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:65px; }
body { margin:0; color:var(--ink); background:#fff; font:17px/1.47 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; }
a { color:var(--blue); }
a:focus-visible { outline:3px solid #0071e3; outline-offset:5px; }
h1,h2,h3,p,figure { margin:0; }
h1,h2,h3 { letter-spacing:-.035em; line-height:1.08; font-weight:650; text-wrap:balance; }
.skip { position:absolute; top:-100px; }
.skip:focus { top:8px; background:#fff; padding:10px; z-index:100; }
.hero { padding:84px 24px 72px; text-align:center; }
.eyebrow { font-size:12px; letter-spacing:.04em; }
.hero > .eyebrow { font-size:17px; letter-spacing:0; }
.hero h1 { max-width:1120px; margin:20px auto 22px; font-size:clamp(42px,6.5vw,88px); letter-spacing:-.05em; }
.hero .accent { color:#6e6e73; }
.hero .intro { max-width:710px; margin:auto; color:#616166; font-size:22px; line-height:1.4; }
.actions { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:20px; margin-top:26px; }
.button { border-radius:99px; background:#0071e3; color:white; padding:11px 22px; text-decoration:none; font-size:15px; }
.text-link { font-size:15px; text-decoration:none; }
.hero-context { margin-top:26px; font-size:13px; color:var(--muted); }
.hero-context span { margin:0 6px; }
#work { padding:0 12px 12px; }
.section-top { max-width:1040px; margin:0 auto 24px; padding:20px 10px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.section-top h2 { font-size:28px; }
.section-note { color:var(--muted); font-size:14px; max-width:340px; }
.projects { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.project { min-width:0; position:relative; display:flex; flex-direction:column; height:680px; overflow:hidden; background:var(--surface); color:var(--ink); text-decoration:none; }
.project-copy { flex:0 0 auto; padding:44px 24px 22px; text-align:center; }
.project .eyebrow { color:#616166; font-size:11px; }
.project h3 { margin:9px auto 12px; font-size:40px; max-width:590px; }
.project p { margin:0 auto 12px; max-width:520px; font-size:19px; line-height:1.35; }
.tag { display:inline-block; margin:0 2px 4px; padding:3px 8px; border:1px solid #d7d7dc; border-radius:99px; color:#616166; font-size:10px; }
.project-footer { margin-top:12px; }
.project-footer span { display:inline-block; padding:8px 18px; border-radius:99px; color:#fff; background:#0071e3; font-size:14px; }
.project > figure { flex:1; min-height:0; width:100%; overflow:hidden; }
.project > figure img { width:100%; height:100%; display:block; object-fit:contain; object-position:center bottom; }
.project-orbit { background:#080808; color:#f5f5f7; }
.project-orbit .eyebrow,.project-orbit .tag { color:#d2d2d7; }
.project-orbit .tag { border-color:#555; }
#auto-loan p { font-size:16px; max-width:600px; }
#auto-loan { grid-column:1 / -1; }
#auto-loan > figure img { object-fit:contain; }
.approach { margin-top:64px; padding:78px 24px; background:var(--surface); }
.approach > .wrap, #about > .wrap { max-width:1040px; margin:auto; }
.approach h2,#about h2 { font-size:42px; }
.principles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; margin-top:40px; }
.principle h3 { font-size:23px; margin:14px 0; }
.principle p { font-size:16px; color:#616166; }
#about { padding:90px 24px; }
.about-grid { display:grid; grid-template-columns:1fr 1.5fr; gap:65px; }
#about h2 { margin:16px 0 24px; }
.about-copy p { color:#616166; margin-bottom:18px; }
.history { margin-top:30px; }
.history-row { padding:16px 0; border-top:1px solid #d2d2d7; display:grid; grid-template-columns:120px 1fr; gap:20px; font-size:13px; }
.history-row strong { display:block; }
.history-row span { color:#616166; }
.closing { background:var(--surface); padding:50px 24px; }
.closing > .wrap { max-width:1040px; margin:auto; display:flex; justify-content:space-between; align-items:center; gap:40px; }
.closing h2 { font-size:44px; margin:12px 0; }
.contact-intro { max-width:430px; color:#616166; }
.contact-details { font-style:normal; display:grid; gap:14px; }
.contact-details div { display:grid; gap:4px; }
.contact-details span { color:var(--muted); font-size:11px; }
.contact-details a { text-decoration:none; font-size:15px; overflow-wrap:anywhere; }
footer { background:var(--surface); padding:22px 24px; border-top:1px solid #d2d2d7; font-size:11px; color:var(--muted); text-align:center; }
@media(hover:hover) { .button:hover,.project:hover .project-footer span { background:#0077ed; } .text-link:hover,.contact-details a:hover { text-decoration:underline; } }
@media(min-width:1600px) { .project { height:740px; } .project h3 { font-size:44px; } }
@media(max-width:734px) {
 .hero { padding:55px 20px 48px; }
 .hero h1 { font-size:clamp(30px,6.9vw,49px); }
 .hero h1 .accent { display:inline-block; white-space:nowrap; }
 .hero .intro { font-size:19px; }
 .hero > .eyebrow { font-size:14px; }
 .projects { grid-template-columns:1fr; }
 #work { padding-inline:0; }
 .section-top { padding-inline:22px; display:block; }
 .section-note { margin-top:10px; }
 .project { height:620px; }
 .project-copy { padding:34px 22px 20px; }
 .project h3 { font-size:33px; }
 .project p { font-size:18px; }
 #auto-loan { grid-column:auto; height:740px; }
 .principles,.about-grid { grid-template-columns:1fr; gap:30px; }
 .closing > .wrap { flex-direction:column; align-items:flex-start; }
 .approach h2,#about h2 { font-size:34px; }
 .history-row { grid-template-columns:100px 1fr; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }

/* Consistent title weight across desktop and mobile. */
h1, h2, h3, h4,
.hero h1, .case-hero h1,
#work .project h3, #work .project.banking-project h3,
#work .section-top h2, .approach h2, #about h2,
.principle h3, .closing h2,
.case-body h2, .case-body h3 { font-weight: 600; }

/* Full-bleed cover images for the website, design system, and enterprise cards. */
.project:is(.project-website, .project-orbit, .project-walmart) > figure {
  margin: 0; padding: 0; align-self: stretch; border: 0; border-radius: 0;
}
.project:is(.project-website, .project-orbit, .project-walmart) > figure img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  margin: 0; padding: 0; border: 0; border-radius: 0;
}

/* On mobile, let content and the original image ratio determine card height. */
@media (max-width: 734px) {
  #work .project, #work #auto-loan { height: auto; min-height: 0; }
  #work .project > figure {
    flex: 0 0 auto; width: 100%; height: auto; min-height: 0;
    margin: 0; padding: 0; overflow: hidden;
  }
  #work .project > figure img {
    display: block; width: 100%; max-width: 100%; height: auto;
    object-fit: contain; object-position: center; margin: 0; padding: 0;
  }
  #work .project-copy { min-width: 0; width: 100%; }
}

/* Small cover responses without moving cards or changing their layout. */
@media (prefers-reduced-motion: no-preference) {
  #work .project > figure img {
    transform: scale(1); transform-origin: center;
    transition: transform 420ms cubic-bezier(.2,.65,.3,1);
  }
  #work .project .project-footer span {
    transition: background-color 180ms ease, box-shadow 180ms ease;
  }
  #work a.project:focus-visible > figure img { transform: scale(1.025); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #work .project:hover > figure img { transform: scale(1.025); }
  #work a.project:hover .project-footer span {
    background: #0077ed; box-shadow: 0 3px 12px rgba(0,113,227,.18);
  }
}
#work a.project:focus-visible {
  outline: 3px solid #0071e3; outline-offset: -3px;
}
@media (prefers-reduced-motion: reduce) {
  #work .project > figure img, #work .project .project-footer span {
    transform: none; transition: none;
  }
}
