/* Sudo Design: blueprint style. White, teal, thin lines, monospace labels. */
:root {
  --t: #48969f;          /* teal */
  --t-line: #48969f59;   /* teal, faint */
  --t-wash: #edf4f5;
  --ink: #1a1f1e;
  --muted: #5d6b69;
  --grid: #f1f5f4;
  --mono: "IBM Plex Mono", "DejaVu Sans Mono", ui-monospace, Menlo, monospace;   /* labels, buttons, menus */
  --sans: "IBM Plex Sans", "Inter", system-ui, sans-serif;                         /* body text */
  --head: "Chakra Petch", "IBM Plex Sans", system-ui, sans-serif;                   /* headings and logo: cut corners, like machined parts */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); color: var(--ink); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.w { max-width: 1180px; margin: 0 auto; padding: 0 40px; }
.k { font: 14px var(--mono); color: var(--t); letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; letter-spacing: 0; line-height: 1.08; }
section { scroll-margin-top: 20px; }

.btn { display: inline-block; white-space: nowrap; background: var(--t); color: #fff; border: 0; font: 500 15px var(--mono); padding: 15px 24px; cursor: pointer; transition: background .15s, transform .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.btn:hover { background: #3a787f; }
.btn.ghost { background: #fff; color: var(--t); box-shadow: inset 0 0 0 1.5px var(--t); margin-left: 10px; }
.btn.ghost:hover { background: var(--t-wash); box-shadow: inset 0 0 0 1.5px var(--t), 4px 4px 0 var(--t); }
.btn.wa { display: inline-flex; align-items: center; gap: 10px; }
.float-wa { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 54px; height: 54px; background: #25d366; display: grid; place-items: center; border-radius: 50%; box-shadow: 0 8px 22px rgba(0,0,0,.18); }

.announce { background: var(--t); color: #fff; text-align: center; font: 15px var(--mono); padding: 9px 16px; }
.announce a { text-decoration: underline; }

/* header */

/* ===== header and menu: same behaviour as sudo.london ===== */
:root { --rule: 3px; --ease: cubic-bezier(.65, 0, .35, 1); }
.site-head { position: sticky; top: 0; z-index: 50; background: #fff; transition: transform .3s ease; }
.site-head.hide { transform: translateY(-100%); }
.site-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--rule); background: var(--ink); transition: opacity .3s ease; }
.head-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 1180px; margin: 0 auto; padding: 14px 40px calc(14px + var(--rule)); }
.site-head .logo { grid-column: 2; display: block; position: relative; font: 600 42px var(--head); letter-spacing: -.015em; line-height: 1; text-align: center; transition: opacity .3s ease, letter-spacing .35s var(--ease); }
.site-head .logo span { color: inherit; }
.site-head .logo img { height: 44px; width: auto; display: block; }
.head-right { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 18px; transition: opacity .3s ease; }
.head-wa { display: inline-flex; align-items: center; gap: 8px; font: 15px var(--mono); color: var(--ink); }
.head-wa:hover { color: var(--t); }
.menu-btn { grid-column: 1; justify-self: start; position: relative; width: 34px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.menu-btn span { position: absolute; left: 0; width: 34px; height: var(--rule); background: var(--ink); transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-btn span:nth-child(1) { top: 6px; }
.menu-btn span:nth-child(2) { top: 15px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 10.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 10.5px; transform: rotate(-45deg); }
.nav { position: fixed; top: 0; left: 0; bottom: 0; z-index: 70; width: min(380px, 86vw); background: #fff; border-right: var(--rule) solid var(--ink);
  padding: 96px 32px 32px; overflow-y: auto; transform: translateX(-100%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s linear .5s; display: flex; flex-direction: column; }
.nav.open { transform: none; visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav ul a { display: flex; align-items: baseline; gap: 14px; padding-block: 14px; font: 600 1.45rem var(--head); text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.nav ul a i { font: 14px var(--mono); font-style: normal; color: var(--t); }
.nav ul a:hover { color: var(--t); }
.nav-foot { margin-top: auto; padding-top: 32px; display: grid; gap: 8px; }
.nav-foot a { font: 15px var(--mono); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.scrim { position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s linear .5s; }
.scrim.on { opacity: 1; visibility: visible; transition: opacity .5s, visibility 0s; }
html.menu-open { overflow: hidden; }
html.menu-open .site-head { z-index: 80; background: transparent; transform: none; }
html.menu-open .site-head::after, html.menu-open .site-head .logo, html.menu-open .head-right { opacity: 0; pointer-events: none; }
@media (max-width: 760px) {
  .head-bar { padding: 12px 40px calc(12px + var(--rule)); }
  .site-head .logo { font-size: 30px; }
  .head-right { gap: 12px; }
  .head-wa span { display: none; }
  .menu-btn, .menu-btn span { width: 30px; }
}
@media (prefers-reduced-motion: reduce) { .site-head, .nav, .scrim, .menu-btn span, .site-head .logo, .head-right { transition: none !important; } }

/* hero */
.hero { padding: 96px 0 40px; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; }
.hero-side { display: flex; flex-direction: column; align-items: flex-end; }
.hero .hero-side .ctas { justify-content: flex-end; margin-top: 0; }
.hero-side .tags { flex-direction: column; align-items: flex-end; gap: 6px; }
.hero h1 { font-size: 60px; margin: 0 0 22px; }
.hero .sub { font-size: 18px; color: var(--muted); max-width: 30rem; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero .btn.ghost { margin-left: 0; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; font: 14px var(--mono); color: #567; }
.tags li::before { content: "+ "; color: var(--t); }


/* work */
.work { padding: 100px 0 0; }
.work .head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.work h2 { font-size: 34px; }
.placeholder-note { font: 13px var(--mono); background: #fff4cc; border: 1px solid #f0d27a; color: #6b5300; padding: 8px 12px; margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1.5px solid var(--t); background: #fff; overflow: hidden; }
.job { background: #fff; display: flex; flex-direction: column; text-align: left; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; box-shadow: 1px 0 0 #add0d4, 0 1px 0 #add0d4; }
.job .ph img { transition: transform .4s ease; }
.job:hover .ph img, .job:focus-visible .ph img { transform: scale(1.04); }
.job:focus-visible { outline: 2px solid var(--t); outline-offset: -2px; }
.job .more { font: 13px var(--mono); color: var(--t); margin-top: 8px; display: inline-block; }
.job[hidden] { display: none; }
.job .ph { aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--t); background: #fff; overflow: hidden; }
.job .ph svg { width: 50%; }
.job .ph img { width: 100%; height: 100%; object-fit: cover; }
.job .cap { border-top: 1px solid var(--t-line); padding: 12px 14px; }
.job h3 { font-size: 17px; line-height: 1.25; }
.job .spec { font: 13px var(--mono); color: #567; text-transform: uppercase; margin-top: 4px; }


/* contact */
.contact { margin: 100px 0 60px; border: 1.5px solid var(--t); background: #fff; display: grid; grid-template-columns: 1fr 1.25fr; }
.contact .intro { background: var(--t); color: #fff; padding: 44px; }
.contact .intro .k { color: #c4dde0; }
.contact h2 { font-size: 36px; margin: 16px 0 14px; }
.contact .intro > p:not(.k) { color: #e4eff1; max-width: 26rem; }
.direct { list-style: none; margin-top: 34px; display: grid; gap: 10px; }
.direct a { font: 15px var(--mono); color: #fff; }
.direct a span { color: #c4dde0; margin-left: 6px; }
.direct a:hover { text-decoration: underline; }
.form { padding: 40px 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; align-content: start; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 6px; font: 14px var(--mono); color: #456; text-transform: lowercase; }
.form label em { font-style: normal; color: #9aa7a5; }
.form input, .form select, .form textarea { font: 16px var(--sans); color: var(--ink); background: #fff; border: 1px solid #c9d6d3; border-radius: 0; padding: 11px 12px; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--t); outline-offset: -1px; border-color: var(--t); }
.form textarea { min-height: 120px; resize: vertical; }
.form .file input { padding: 9px; font-size: 15px; }
.actions { display: grid; gap: 12px; margin-top: 4px; }
.actions .btn { width: 100%; justify-content: center; padding: 17px 24px; }
.actions .note { font: 14px var(--mono); color: #7a8886; }
.hp { position: absolute; left: -9999px; }
.form-err { color: #b3261e; font-size: 15px; display: none; }
.form-msg { font: 14px var(--mono); background: var(--t-wash); color: #2f6267; padding: 10px 12px; display: none; }

footer { display: grid; grid-template-columns: 1fr; gap: 22px; border-top: 1px solid var(--t-line); padding: 32px 0 90px; color: #5d6b69; font-size: 15px; }
.f-logo { font: 600 24px var(--head); color: var(--ink); justify-self: start; }
footer a.f-logo { text-decoration: none; }
.f-logo span { color: inherit; }
footer a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: var(--t); }


/* job detail */
.job-dialog { border: 1.5px solid var(--t); padding: 0; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); margin: auto; background: #fff; color: var(--ink); }
.job-dialog::backdrop { background: rgba(10, 30, 28, .55); }
.jd-gal { position: relative; }
.jd-ph { aspect-ratio: 3 / 2; display: grid; place-items: center; color: var(--t); background: #fff; border-bottom: 1px solid var(--t-line); }
.jd-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jd-ph svg { width: 40%; }
.jd-count { position: absolute; left: 10px; bottom: 10px; font: 13px var(--mono); color: var(--t); background: rgba(255,255,255,.9); padding: 3px 8px; border: 1px solid var(--t-line); }
.jd-count:empty { display: none; }
.jd-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 30px) / 4); gap: 10px; padding: 12px 26px 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.jd-thumbs[hidden] { display: none; }
.jd-thumbs button { aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--t-line); background: #fff; color: var(--t); cursor: pointer; scroll-snap-align: start; display: grid; place-items: center; overflow: hidden; }
.jd-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .6; transition: opacity .3s ease; }
.jd-thumbs button:hover img, .jd-thumbs button.on img { opacity: 1; }
.jd-thumbs button.on { border: 2px solid var(--t); }
.jd-thumbs button svg { width: 60%; }
.jd-body { padding: 24px 26px 28px; }
.jd-body h3 { font-size: 26px; margin: 10px 0 8px; }
.jd-body p:not(.k):not(.spec) { color: var(--muted); }
.jd-body .spec { font: 14px var(--mono); color: #567; text-transform: uppercase; margin: 10px 0 22px; }
.jd-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 1.5px solid var(--t); background: #fff; color: var(--t); font: 22px var(--mono); cursor: pointer; z-index: 2; }

/* photos sit at 60% and come to full strength when hovered, tapped or focused */
.job .ph img { opacity: .6; transition: opacity .3s ease, transform .4s ease; }
.job:hover .ph img, .job:focus-visible .ph img, .job:active .ph img,
.jd-ph img { opacity: 1; }

/* gentle fade-in as sections scroll into view */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { padding: 56px 0 20px; grid-template-columns: 1fr; gap: 0; }
  .hero-side { align-items: flex-start; }
  .hero .hero-side .ctas { justify-content: flex-start; margin-top: 34px; }
  .hero-side .tags { flex-direction: row; align-items: center; gap: 8px 18px; }
  .hero h1 { font-size: 46px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .job .cap { padding: 10px; }
  .job h3 { font-size: 15px; }
  .w { padding: 0 18px; }
  .head-bar { padding-left: 18px; padding-right: 18px; }
  .hero-side { align-items: stretch; }
  .hero .hero-side .ctas { flex-direction: column; }
  .hero .ctas .btn { width: 100%; text-align: center; }
  .hero h1 { font-size: 38px; }
  .hero .ctas { margin-top: 26px; }
  footer { padding-bottom: 100px; }
  .work { padding-top: 70px; }
  .work h2 { font-size: 28px; }
  .contact { margin-top: 70px; }
  .contact .intro, .form { padding: 28px 22px; }
  .contact h2 { font-size: 30px; }
  .form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .rv { opacity: 1; transform: none; transition: none; } .job .ph img { transition: none; } }

/* ===== movement ===== */
/* logo: a dimension line draws itself under the name, like on a drawing */
.site-head .logo::before, .site-head .logo::after { content: ""; position: absolute; pointer-events: none; }
.site-head .logo::after { left: 0; right: 0; bottom: -8px; height: 2px; background: var(--t); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.site-head .logo::before { left: 0; right: 0; bottom: -12px; height: 10px; border-left: 2px solid var(--t); border-right: 2px solid var(--t); opacity: 0; transition: opacity .2s ease .3s; }
.site-head .logo:hover, .site-head .logo:focus-visible { letter-spacing: .02em; }
.site-head .logo:hover::after, .site-head .logo:focus-visible::after { transform: scaleX(1); }
.site-head .logo:hover::before, .site-head .logo:focus-visible::before { opacity: 1; }
.f-logo { transition: color .2s ease, letter-spacing .35s var(--ease); }
footer a.f-logo:hover { color: var(--t); letter-spacing: .03em; }

/* headline arrives in steps when the page opens */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js .hero h1 span, .js .hero .sub, .js .hero-side { animation: rise .45s ease-out both; }
.js .hero h1 span { display: inline-block; }
.js .hero h1 span:last-child { animation-delay: .06s; }
.js .hero .sub { animation-delay: .12s; }
.js .hero-side { animation-delay: .18s; }

/* service cards arrive one after another, then react to the pointer */
.js .work.in .job { animation: rise .4s ease-out backwards; animation-delay: calc(var(--i, 0) * 40ms); }
.job { position: relative; }
.job::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--t); opacity: 0; transform: scale(.97); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.job:hover::after, .job:focus-visible::after { opacity: 1; transform: none; }
.job h3 { transition: color .2s ease; }
.job:hover h3 { color: var(--t); }
.job .more { transition: transform .25s ease, letter-spacing .25s ease; }
.job:hover .more { transform: translateX(6px); letter-spacing: .06em; }

/* pop-up opens with a small lift; photos fade across */
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.job-dialog[open] { animation: pop .3s var(--ease); }
.job-dialog[open]::backdrop { animation: fade .3s ease; }
.jd-ph img { animation: fade .35s ease; }
.jd-gal.many .jd-ph { cursor: pointer; }
.jd-thumbs button { transition: transform .2s ease, border-color .2s ease; }
.jd-thumbs button:hover { transform: translateY(-3px); border-color: var(--t); }
.jd-close { transition: background .15s, color .15s, transform .25s ease; }
.jd-close:hover { background: var(--t); color: #fff; transform: rotate(90deg); }

/* small touches */
.float-wa { transition: transform .2s ease, box-shadow .2s ease; }
.float-wa:hover { transform: scale(1.1) rotate(-6deg); box-shadow: 0 12px 26px rgba(0,0,0,.24); }
.tags li { transition: color .2s ease; }
.tags li:hover { color: var(--t); }

@media (prefers-reduced-motion: reduce) {
  .js .hero h1 span, .js .hero .sub, .js .hero-side, .js .work.in .job, .job-dialog[open], .job-dialog[open]::backdrop, .jd-ph img { animation: none; }
  .btn, .job::after, .job .more, .site-head .logo, .site-head .logo::after, .site-head .logo::before, .jd-thumbs button, .jd-close, .float-wa { transition: none; }
}
