:root {
  --ink: #373f43;
  --dark: #373f43;
  --accent: #e20000;
  --paper: #ffffff;
  --soft: #f4f5f4;
  --muted: #666666;
  --line: #dcdedd;
  --font: Inter, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, summary, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: #f5d9d6; color: var(--ink); }
h1, h2, h3, h4, p { margin-top: 0; }
.wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.section { padding-block: 72px; }

/* Navigation */
.site-header { height: 92px; background: var(--paper); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #eeeeeb; }
.header-inner { width: min(1440px, calc(100% - 112px)); height: 100%; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; width: 154px; height: 68px; overflow: hidden; flex-shrink: 0; }
.brand img { width: 154px; height: auto; max-width: none; flex-shrink: 0; }
.navigation { display: flex; align-items: center; gap: 30px; font-size: 16px; font-weight: 500; }
.navigation > a:not(.button) { padding-block: 12px; position: relative; white-space: nowrap; }
.navigation > a:not(.button)::after { content: ''; position: absolute; bottom: 5px; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.navigation > a:hover::after, .navigation > a[aria-current='location']::after { transform: scaleX(1); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 15px 23px; min-height: 56px; font-size: 16px; font-weight: 550; line-height: 1.5; border: 1px solid transparent; border-radius: 2px; transition: background .2s, border-color .2s; }
.button span { font-size: 22px; line-height: 1; }
.button-dark { background: var(--accent); color: white; }
.button-dark:hover { background: #cb1717; }

.menu-toggle { display: none; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 10px 20px; color: white; background: var(--dark); z-index: 100; }
.skip-link:focus { top: 10px; }

/* Technical image with a continuous dark gradient behind the copy. */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #272f33; color: #fff; }
.hero-image { position: absolute; z-index: -2; inset: 0 0 0 35%; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; filter: saturate(.8); }
.hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #272f33 0%, #272f33 25%, #272f33ee 39%, #272f3370 64%, #272f3318 100%), linear-gradient(0deg, #17212699, transparent 55%); }
.hero-inner { min-height: 580px; position: relative; padding-top: 68px; padding-bottom: 65px; }
.hero-copy { width: 62%; max-width: 750px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 1.5px; font-weight: 600; line-height: 1.6; margin: 0 0 22px; color: var(--muted); }
.hero .eyebrow { color: #e1e5e5; }
.tiny-square { width: 6px; height: 6px; background: var(--accent); display: inline-block; flex-shrink: 0; }
h1 { font-size: clamp(58px, 5.25vw, 76px); line-height: 1.08; letter-spacing: -3.5px; font-weight: 550; margin-bottom: 27px; }
h1 span { position: relative; display: inline-block; padding-bottom: 9px; }
h1 span::after { content: ''; position: absolute; bottom: 0; height: 4px; left: 0; width: 90px; background: var(--accent); }
.hero-description { color: #e0e4e4; font-size: 20px; max-width: 555px; line-height: 1.65; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 16px; font-weight: 550; border-bottom: 1px solid #b9bdba; padding: 7px 0; line-height: 1.6; }
.text-link span { font-size: 20px; }
.text-link:hover { border-color: var(--accent); }
.hero .text-link { color: white; border-color: #959ea1; }
.hero .text-link:hover { border-color: white; }







/* Compact orientation before the services. */





.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 34px; }
.section-heading .eyebrow { margin-bottom: 16px; }
h2 { font-size: 38px; letter-spacing: -1.4px; font-weight: 500; line-height: 1.23; margin-bottom: 0; text-wrap: balance; }
.muted { color: #737b7c; }
.section-intro { width: 360px; font-size: 18px; color: var(--muted); line-height: 1.65; flex-shrink: 0; margin-bottom: 2px; }

/* Services: three clear entry points, with more detail on demand. */








.service-details { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.service-details summary { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 550; padding-block: 17px; }
.service-details summary span { color: var(--accent); font-size: 24px; font-weight: 300; line-height: 1; transition: transform .2s; }
.service-details[open] summary span { transform: rotate(45deg); }
.detail-body { font-size: 18px; line-height: 1.65; padding-bottom: 24px; color: var(--muted); }
.detail-body a { display: block; color: var(--ink); font-weight: 500; margin-top: 16px; }

/* Selected project experience. */
.experience-section { background: var(--soft); }
.projects { border-top: 1px solid var(--line); }
.project { border-bottom: 1px solid var(--line); }
.project summary { display: grid; grid-template-columns: 30px 1fr 225px 40px; gap: 22px; align-items: center; padding: 22px 0; }

.project-title { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.project-title small { display: block; letter-spacing: 1px; font-size: 12px; font-weight: 450; color: var(--muted); margin-bottom: 7px; }
.project-title strong { font-size: 23px; letter-spacing: -.5px; font-weight: 500; line-height: 1.4; display: block; }

.project-toggle { border: 1px solid #c4cac9; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-size: 22px; transition: background .2s, transform .2s; }
.project summary:hover .project-toggle { background: #e6e9e7; }
.project[open] .project-toggle { transform: rotate(90deg); background: #e6e9e7; }
.project-content { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; max-width: 1050px; padding: 0 0 26px 52px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.project-content p { margin-bottom: 0; }
.project-content h4 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.experience-note { font-size: 14px; color: var(--muted); margin: 18px 0 0; }

/* The person behind the project work. */
.about { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: center; }
.portrait-panel { background: #e9eceb; position: relative; padding: 14px 18px 0; min-width: 0; overflow: hidden; border-radius: 2px; border-bottom: 4px solid var(--accent); }
.portrait-panel > img { width: 100%; height: 350px; object-fit: cover; object-position: 50% 12%; mix-blend-mode: multiply; }
.about-copy .eyebrow { margin-bottom: 16px; }
.about-copy h2 { margin-bottom: 20px; }
.about-lead { font-size: 19px; line-height: 1.65; margin-bottom: 14px; max-width: 720px; }
.about-copy > p:not(.eyebrow):not(.about-lead) { font-size: 18px; color: var(--muted); line-height: 1.65; margin-bottom: 18px; max-width: 720px; }
.qualification { border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 10px; }
.qualification p { font-size: 16px; line-height: 1.7; margin: 0; color: var(--muted); }
.qualification strong { font-weight: 500; color: var(--ink); }

/* Inquiry with an explicit mail-draft flow. */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; border-top: 1px solid var(--line); }
.contact-copy h2 { font-size: 46px; line-height: 1.15; letter-spacing: -1.8px; margin: 23px 0 23px; text-wrap: initial; }
.contact-copy > p:not(.eyebrow) { font-size: 18px; color: var(--muted); max-width: 470px; line-height: 1.65; margin-bottom: 18px; }
.contact-email { display: inline-flex; gap: 22px; align-items: center; font-size: 27px; font-weight: 500; letter-spacing: -.6px; margin: 15px 0 6px; }
.contact-email span { font-size: 25px; color: var(--accent); }
.contact-phone { font-size: 21px; display: block; width: fit-content; }
.contact-copy .contact-location { font-size: 16px; margin: 24px 0 0; }
.contact-form { padding: 27px; background: var(--soft); align-self: start; border-radius: 2px; }
.contact-form h3 { font-size: 27px; letter-spacing: -.6px; font-weight: 500; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; margin-bottom: 16px; gap: 6px; min-width: 0; }
.field label { font-size: 15px; font-weight: 450; }
.field label span { color: var(--muted); }
.field input, .field select, .field textarea { border: 1px solid #cdd2ce; background: white; min-height: 50px; border-radius: 2px; padding: 11px 12px; width: 100%; font-size: 16px; color: var(--ink); }
.field textarea { resize: vertical; min-height: 112px; }
.field input::placeholder, .field textarea::placeholder { color: #70746f; opacity: 1; }
.form-note { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0 0 18px; }
.form-submit { width: 100%; font-size: 16px; }
.form-status { margin: 18px 0 0; font-size: 16px; color: var(--ink); line-height: 1.65; border-left: 2px solid #adb6ad; padding-left: 15px; }

/* Footer */
.footer { background: var(--soft); }
.footer-main { display: flex; justify-content: space-between; align-items: center; padding: 28px 0; gap: 30px; }
.footer-main p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0 auto 0 30px; }
.footer .brand { width: 140px; height: 62px; }
.footer .brand img { width: 140px; }
.back-to-top { font-size: 15px; display: flex; gap: 20px; align-items: center; }
.back-to-top span { font-size: 22px; }
.footer-bottom { padding: 18px 0; border-top: 1px solid var(--line); font-size: 13px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); }
.footer-bottom nav { display: flex; gap: 24px; }
.footer-bottom a:hover { text-decoration: underline; }
.design-label { font-size: 11px; letter-spacing: 1px; }

@media (max-width: 1200px) {
  .wrap, .header-inner { width: calc(100% - 80px); }
  .navigation { gap: 24px; }

  h1 { font-size: 66px; letter-spacing: -3px; }
  .hero-copy { width: 65%; }
  .hero-description { max-width: 515px; }



  .hero-actions { gap: 20px; }
  .section-heading { gap: 36px; }
  h2 { font-size: 35px; }
  .section-intro { width: 310px; }


  .project summary { grid-template-columns: 26px 1fr 190px 40px; gap: 18px; }
  .project-title strong { font-size: 22px; }
  .about { grid-template-columns: 250px 1fr; gap: 45px; }
  .contact { gap: 44px; }
  .contact-copy h2 { font-size: 42px; }
  .contact-form { padding: 23px; }
}
@media (max-width: 960px) {
  html { scroll-padding-top: 100px; }
  .site-header { height: 84px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 46px; height: 46px; border: 1px solid var(--line); background: transparent; padding: 12px; z-index: 52; }
  .menu-toggle span { height: 1px; width: 100%; background: var(--ink); transition: transform .2s; }
  .menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .navigation { display: none; position: absolute; top: 84px; left: 0; right: 0; padding: 20px 40px 26px; background: white; border-bottom: 1px solid var(--line); font-size: 18px; }
  .navigation.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .navigation > a:not(.button) { padding: 12px 0; }

  .hero-inner { min-height: auto; padding-block: 56px 36px; }
  .hero-copy { width: 100%; max-width: 720px; }
  .hero-image { left: 25%; }
  .hero::before { background: linear-gradient(90deg, #272f33 0%, #272f33eb 30%, #272f33a6 72%, #272f3359), linear-gradient(0deg, #272f33c4, transparent 65%); }
  .hero-description { max-width: 570px; }








  .section { padding-block: 60px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 28px; }
  .section-intro { width: auto; max-width: 650px; }


  .project summary { grid-template-columns: 26px 1fr 40px; }

  .about { grid-template-columns: 220px 1fr; gap: 32px; }
  .portrait-panel { padding-inline: 10px; }
  .portrait-panel > img { height: 320px; }
  .about h2 { font-size: 32px; }
  .contact { gap: 30px; }
  .contact-copy h2 { font-size: 36px; }
  .contact-email { font-size: 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-main p { margin-left: 0; }
  .footer-bottom { align-items: flex-start; flex-wrap: wrap; }
  .design-label { margin-left: auto; }
}
@media (max-width: 640px) {
  .wrap, .header-inner { width: calc(100% - 48px); }
  .site-header { height: 78px; }
  .brand { width: 140px; height: 62px; }
  .brand img { width: 140px; }
  .navigation { top: 78px; padding-inline: 24px; }
  .hero-inner { padding-top: 43px; padding-bottom: 28px; }
  .hero-image { left: 0; }
  .hero-image img { object-position: 60% 45%; }
  .hero::before { background: linear-gradient(90deg, #272f33ed, #272f33b8 62%, #272f338c), linear-gradient(0deg, #272f33e8, transparent 65%); }
  h1 { font-size: clamp(43px, 10.7vw, 64px); letter-spacing: -2.2px; margin-bottom: 23px; }
  .eyebrow { font-size: 11px; letter-spacing: 1.1px; gap: 10px; }
  .hero .eyebrow { margin-bottom: 22px; }
  .hero-description { font-size: 18px; margin-bottom: 23px; }
  .hero-actions { gap: 13px; align-items: flex-start; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { font-size: 16px; }










  .section { padding-block: 46px; }
  h2 { font-size: 32px; letter-spacing: -1px; }
  .section-heading { gap: 17px; margin-bottom: 26px; }
  .section-heading .eyebrow { margin-bottom: 13px; }





  .service-details summary { padding-block: 16px; }
  .project summary { grid-template-columns: 20px 1fr 34px; gap: 11px; padding-block: 20px; }

  .project-title small { font-size: 11px; letter-spacing: .6px; line-height: 1.6; }
  .project-title strong { font-size: 21px; }
  .project-toggle { width: 34px; height: 34px; font-size: 21px; }
  .project-content { grid-template-columns: 1fr; gap: 20px; padding-left: 31px; }
  .experience-note { font-size: 13px; }
  .about { grid-template-columns: 1fr; gap: 26px; }
  .portrait-panel { width: 180px; padding: 8px 12px 0; }
  .portrait-panel > img { height: 205px; object-position: 50% 12%; }
  .about h2 { font-size: 31px; }
  .about-lead { font-size: 18px; }
  .about-copy .text-link { font-size: 15px; }
  .contact { grid-template-columns: 1fr; gap: 28px; }
  .contact-copy h2 { font-size: 38px; letter-spacing: -1.3px; margin: 20px 0; }
  .contact-email { font-size: 25px; margin-top: 7px; }
  .contact-copy .contact-location { font-size: 15px; margin-top: 20px; }
  .contact-form { padding: 24px 20px; }
  .contact-form h3 { font-size: 26px; }
  .form-submit { font-size: 15px; padding-inline: 16px; gap: 10px; }
  .footer-main { display: grid; grid-template-columns: 1fr; gap: 18px; padding-block: 26px; }
  .footer-main p { margin: 0; font-size: 15px; }
  .back-to-top { padding-top: 16px; border-top: 1px solid var(--line); }
  .footer-bottom { flex-direction: column; gap: 14px; }
  .design-label { margin-left: 0; }
  .footer-bottom nav { flex-wrap: wrap; gap: 15px 24px; }
}
@media (max-width: 370px) {
  .wrap, .header-inner { width: calc(100% - 40px); }
  h1 { font-size: 42px; letter-spacing: -1.9px; }
  h2, .about h2 { font-size: 29px; }







  .contact-copy h2 { font-size: 34px; }
  .contact-email { font-size: 23px; }
  .contact-form { padding-inline: 16px; }
  .form-submit { font-size: 14px; padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* A shared reading grid aligns section titles and content. */
.wrap, .header-inner { width: min(1120px, calc(100% - 64px)); }
.hero-inner { min-height: 460px; display: flex; align-items: center; padding-block: 58px; }
.hero-description { max-width: 32rem; }
h1 span { padding: 0; }
h1 span::after { content: none; }
.services, .experience-section .section {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr);
  align-items: start;
  column-gap: clamp(32px, 6vw, 90px);
}
.service-card + .service-card { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
.service-card h3 { margin: 0 0 6px; font-size: 24px; font-weight: 550; line-height: 1.3; letter-spacing: -.6px; }
.service-card p { margin-bottom: 7px; color: var(--muted); max-width: 62ch; }
.service-details { border: 0; }
.service-details summary { display: list-item; list-style: disclosure-closed inside; padding: 6px 0; color: var(--ink); font-size: 15px; }
.service-details[open] summary { list-style-type: disclosure-open; }
.service-details summary::-webkit-details-marker { display: inline; }
.detail-body { padding: 8px 0; }
.detail-body a { text-decoration: underline; text-underline-offset: 4px; }
.experience-note { grid-column: 2; }
.project summary { grid-template-columns: 1fr auto; gap: 16px; padding-block: 18px; }
.project-title strong { font-size: 21px; }
.project-title small { letter-spacing: .45px; }
.project-toggle { background: transparent; border: 0; width: 28px; height: 28px; }
.project[open] .project-toggle { transform: rotate(45deg); background: transparent; }
.project-content { display: block; padding: 0 36px 24px 0; max-width: 65ch; }
.project-content .role { color: var(--ink); font-weight: 550; margin-bottom: 8px; }
.project-content h4 { margin: 16px 0 4px; }
.about { grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 90px); }
.portrait-panel { width: min(100%, 228px); padding: 10px 10px 0; border: 0; }
.portrait-panel > img { height: 270px; }
.contact-copy h2 { margin-top: 0; }
@media (max-width: 760px) {
  .wrap, .header-inner { width: calc(100% - 40px); }
  .services, .experience-section .section, .about { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .experience-note { grid-column: 1; margin: 0; }
  .hero-inner { min-height: 380px; padding-block: 46px; }
  .hero-actions .button { width: auto; }
  .hero-copy { width: 100%; }
  .hero-description { max-width: 30rem; }
  .portrait-panel { width: 145px; }
  .portrait-panel > img { height: 166px; }
}

.form-note a { text-decoration: underline; text-underline-offset: .15em; }
