/*
Theme Name: Deft Studios
Author: Deft Studios
Description: Independent technology consulting for businesses and schools.
Version: 1.3.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: deft-studios
*/
:root {
  color-scheme: light;
  --ink: #101e32;
  --slate: #425268;
  --blue: #155bff;
  --blue-text: #164dcd;
  --cloud: #f1f5f8;
  --line: #d5dce3;
  --white: #fff;
  --wide: 78rem;
  --pad: clamp(1.25rem, 5vw, 5.5rem);
  --section-y: clamp(3.75rem, 6.8vw, 6.75rem);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  font-size: 100%;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font-family: inherit; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-text); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #087df9;
  outline-offset: 4px;
}
.home-hero a:focus-visible, .site-footer a:focus-visible, .contact-band a:focus-visible { outline-color: #a8dbff; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; color: inherit; line-height: 1.09; }
h1, h2, h3 { font-weight: 710; }
h1 { font-size: clamp(2.8rem, 5.9vw, 5.5rem); letter-spacing: -.064em; }
h2 { font-size: clamp(2.18rem, 4.15vw, 3.8rem); letter-spacing: -.06em; }
h3 { font-size: clamp(1.24rem, 2vw, 1.58rem); letter-spacing: -.035em; }
p, h1, h2, h3, a { overflow-wrap: break-word; }
::selection { background: #bdd2ff; color: #0a234d; }
.wrap { width: min(calc(100% - 2 * var(--pad)), var(--wide)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section-soft { background: var(--cloud); }
.section-dark { background: var(--ink); color: #fff; }
.section-head { margin-bottom: clamp(1.8rem, 3.4vw, 3rem); }
.eyebrow, .project-context {
  margin-bottom: .85rem;
  color: var(--blue-text);
  font-size: .74rem;
  line-height: 1.35;
  font-weight: 730;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.split-head { display: flex; justify-content: space-between; gap: 1rem 2rem; align-items: end; }
.lead { max-width: 47rem; color: var(--slate); font-size: clamp(1.075rem, 1.7vw, 1.4rem); line-height: 1.55; }
.button, .header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .85em;
  min-height: 3rem;
  padding: .72rem 1.18rem;
  border: 1px solid transparent;
  border-radius: .32rem;
  font: inherit;
  font-size: .94rem;
  font-weight: 670;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease;
}
.button-primary, .header-cta { background: var(--blue); color: #fff; }
.button-primary:hover, .header-cta:hover { background: #124bd1; }
.button-secondary { background: transparent; border-color: #aab7c5; color: var(--ink); }
.button-secondary:hover { border-color: var(--ink); background: #fff; }
.button-light { background: #fff; color: #123d95; }
.button-light:hover { background: #e2edff; }
.forward::after, .header-cta::after, .service-tile::after {
  flex: 0 0 auto;
  display: inline-block;
  width: 1.12rem;
  height: .87rem;
  background: currentColor;
  clip-path: polygon(0 44%, 77% 44%, 48% 10%, 56% 0, 100% 50%, 56% 100%, 48% 90%, 77% 56%, 0 56%);
  content: "";
  transition: transform .16s ease;
}
.forward:hover::after, .header-cta:hover::after { transform: translateX(3px); }
.text-link { display: inline-flex; align-items: center; gap: .65rem; color: var(--blue-text); font-size: .98rem; font-weight: 680; text-decoration: none; }
.text-link:hover, .hero-link:hover, .band-link:hover { text-decoration: underline; }
.skip-link { position: absolute; top: -10rem; left: 1rem; z-index: 20; padding: .6rem 1rem; background: #fff; color: var(--ink); }
.skip-link:focus { top: .5rem; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Primary navigation and branding */
.site-header { position: relative; z-index: 5; background: #fff; border-bottom: 1px solid #e0e5ea; }
.nav-shell { display: flex; gap: clamp(1rem, 2.2vw, 2rem); align-items: center; min-height: 5.05rem; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .66rem; width: fit-content; color: var(--ink); text-decoration: none; line-height: 1; }
.brand-name { white-space: nowrap; font-weight: 750; font-size: 1.45rem; letter-spacing: -.065em; }
.brand-period { color: var(--blue); }
.brand-real-logo { width: auto; height: auto; max-width: min(12rem, 33vw); max-height: 3.5rem; object-fit: contain; background: #101e32; padding: .25rem .45rem; border-radius: .25rem; }
.brand-icon, .ds-monogram { width: 2.7rem; height: 2.7rem; flex: 0 0 auto; }
.ds-monogram {
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden; border-radius: .32rem;
  padding-right: .12rem; background: #12223a; color: #fff; font: 850 italic 1.53rem/1 Arial, sans-serif;
}
.ds-monogram i { display: inline-block; transform: skewX(-7deg); letter-spacing: -.15em; }
.ds-monogram i + i { color: #75abff; }
.site-nav { margin-inline-start: auto; display: flex; align-items: center; gap: clamp(1rem, 2.15vw, 2rem); }
.site-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: #29374b; text-decoration: none; font-size: .92rem; font-weight: 610; }
.site-nav a:hover, .site-nav a[aria-current="page"], .site-nav .current-menu-item > a { color: var(--blue-text); }
.deft-nav-list { display: flex; align-items: center; gap: clamp(1rem, 2.15vw, 2rem); margin: 0; padding: 0; list-style: none; }
.nav-toggle, .site-nav .deft-mobile-contact { display: none; }
.header-cta { min-height: 2.7rem; padding: .64rem 1rem; font-size: .88rem; }
.header-cta:has(span[aria-hidden="true"])::after { display: none; }

/* Home */
.home-hero { position: relative; isolation: isolate; overflow: hidden; background: #0c192b; color: #fff; }
.hero-grid { display: grid; grid-template-columns: 53% 47%; align-items: stretch; }
.hero-copy { position: relative; z-index: 1; padding: clamp(3.4rem, 6.5vw, 6.4rem) clamp(1.6rem, 3.5vw, 3.4rem) clamp(3.6rem, 6.7vw, 6.7rem) 0; }
.hero-copy h1 { font-size: clamp(3.1rem, 5.75vw, 5.65rem); line-height: 1.02; letter-spacing: -.068em; }
.hero-copy h1 span { color: #9fc6ff; }
.hero-copy > p { max-width: 32rem; margin: 1.65rem 0 0; color: #dae4f3; font-size: clamp(1.04rem, 1.38vw, 1.25rem); line-height: 1.58; }
.hero-photo { position: relative; margin-inline-end: min(calc(-1 * var(--pad)), calc((var(--wide) - 100vw) / 2)); min-height: 100%; }
.hero-photo img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: 58% 50%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,25,43,.34), transparent 21%); pointer-events: none; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: .75rem 1.55rem; align-items: center; }
.hero-actions { margin-top: 2rem; }
.hero-link, .band-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: #fff; font-size: .95rem; font-weight: 650; text-underline-offset: .3em; text-decoration: underline; text-decoration-color: #8291a6; }
.hero-link:hover, .band-link:hover { text-decoration-color: currentColor; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.service-tile { position: relative; display: block; min-width: 0; padding: 1.65rem 2.5rem 1.7rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.service-tile:nth-child(3n+2), .service-tile:nth-child(3n+3) { padding-left: 1.65rem; }
.service-tile:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.service-tile:nth-child(3n) { padding-right: 1.8rem; }
.service-tile h3 { padding-right: .15em; }
.service-tile p { margin: .8rem 0 0; color: var(--slate); line-height: 1.55; font-size: .98rem; }
.service-tile::after { position: absolute; right: .95rem; top: 1.9rem; width: .88rem; height: .67rem; color: var(--blue-text); transform: rotate(-41deg); }
.service-tile:nth-child(3n)::after { right: .06rem; }
.service-tile:hover { background: #f7faff; }
.service-tile:hover h3 { color: var(--blue-text); }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.75rem); }
.project-card { display: flex; flex-direction: column; align-items: start; padding: clamp(1.6rem, 3.6vw, 3.6rem); border-top: .25rem solid #1652da; background: #fff; }
.project-card:nth-child(2) { border-top-color: #326b70; }
.project-card h3 { max-width: 15em; margin-bottom: 1rem; font-size: clamp(1.65rem, 2.7vw, 2.65rem); letter-spacing: -.05em; }
.project-context { color: #435a77; letter-spacing: .08em; }
.project-context span { margin-inline: .3em; color: #7a8999; }
.project-card > p:not(.project-context) { color: var(--slate); }
.project-card .text-link { margin-top: auto; padding-top: .65rem; }
.founder-grid { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: 4rem; }
.founder-lead h2 { font-size: clamp(2.6rem, 4.4vw, 4.5rem); }
.founder-location { margin: 1.25rem 0 0; color: var(--slate); font-size: .98rem; }
.founder-copy { padding-left: 2rem; border-left: 2px solid #b8c9e4; }
.founder-copy p { color: var(--slate); }
.contact-band { padding-block: clamp(3.4rem, 5.3vw, 5.5rem); color: #fff; background: #1548bd; }
.contact-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.contact-band h2 { font-size: clamp(2.2rem, 4vw, 3.75rem); }
.contact-band p { max-width: 34rem; margin: 1rem 0 0; color: #edf3ff; }
.contact-band .contact-actions { flex-direction: column; align-items: flex-start; gap: .55rem; }
.band-link { text-decoration-color: #abbeef; }

/* Inner pages and project intake */
.page-hero { padding-block: clamp(3.6rem, 6.8vw, 6.8rem); background: #edf3fb; border-bottom: 1px solid #d9e2ed; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { margin: 1.45rem 0 0; }
.page-hero .button, .page-hero .contact-actions { margin-top: 1.65rem; }
.page-hero .contact-actions .button { margin-top: 0; }
.grid-2, .grid-3 { display: grid; gap: clamp(1rem, 2vw, 1.8rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: clamp(1.4rem, 2.6vw, 2.45rem); border: 1px solid var(--line); background: #fff; color: var(--ink); }
.card h3 { margin-bottom: .85rem; font-size: clamp(1.4rem, 2.2vw, 1.95rem); }
.card p:not(.eyebrow), .prose > p:not(.eyebrow) { color: var(--slate); }
.card > :last-child, .prose > :last-child { margin-bottom: 0; }
.prose { max-width: 48rem; }
.prose h2 { margin-bottom: 1.2rem; }
.prose > .button, .prose > .text-link { margin-top: .45rem; }
.prose a:not(.button) { overflow-wrap: anywhere; }
.grid-2 > .prose { align-self: center; padding-right: clamp(0rem, 2.5vw, 2rem); }
[id] { scroll-margin-top: 1.2rem; }

/* Footer */
.site-footer { padding-block: clamp(2.9rem, 5vw, 4.7rem) 1.35rem; color: #e6edf7; background: #0c192b; }
.footer-grid { display: grid; grid-template-columns: 1.55fr .8fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand-period { color: #8dbaff; }
.site-footer .ds-monogram { background: #273954; }
.site-footer .brand-real-logo { background: #101e32; }
.footer-grid p { margin: 1.1rem 0 0; color: #bccadc; }
.footer-grid h2 { margin-bottom: .65rem; color: #fff; font-size: .95rem; letter-spacing: -.005em; }
.footer-grid > div > a:not(.brand) { display: block; width: fit-content; padding: .18rem 0; }
.footer-grid a:not(.brand), .footer-meta a { color: #c7d4e7; font-size: .95rem; text-decoration: none; overflow-wrap: anywhere; }
.footer-grid a:hover:not(.brand), .footer-meta a:hover { text-decoration: underline; }
.footer-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .7rem; padding-top: 1.25rem; border-top: 1px solid #344158; color: #b9c6d7; font-size: .82rem; }
.footer-meta a { font-size: inherit; }

@media (max-width: 900px) {
  .nav-shell { flex-wrap: wrap; min-height: 4.5rem; gap: 0 1.2rem; }
  .nav-toggle { margin-inline-start: auto; min-height: 2.7rem; align-items: center; gap: .65rem; padding: .5rem .8rem; border: 1px solid #b9c6d5; border-radius: .3rem; color: var(--ink); background: #fff; font: inherit; font-size: .9rem; font-weight: 650; cursor: pointer; }
  .nav-toggle::after { content: ""; width: 1rem; height: .7rem; border-block: 2px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
  .nav-ready .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .site-nav { flex: 1 1 100%; gap: .35rem 1rem; margin: 0; flex-wrap: wrap; padding: .4rem 0 .7rem; }
  .nav-ready .site-nav:not(.is-open) { display: none; }
  .site-nav .deft-mobile-contact { display: inline-flex; color: var(--blue-text); }
  .deft-nav-list { flex-wrap: wrap; }
  .hero-copy { padding-block: 3.6rem; }
  .hero-copy h1 { font-size: clamp(2.75rem, 5.6vw, 4.1rem); }
  .hero-copy > p { font-size: 1rem; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid .service-tile:nth-child(n) { padding: 1.45rem 2rem 1.45rem 0; border-right: 0; }
  .service-grid .service-tile:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 2.25rem; }
  .service-grid .service-tile:nth-child(even) { padding-left: 1.2rem; }
  .service-grid .service-tile:nth-child(n)::after { right: .6rem; top: 1.65rem; }
  .service-grid .service-tile:nth-child(even)::after { right: 0; }
  .founder-grid { gap: 2rem; }
}
@media (max-width: 680px) {
  .hero-grid { width: 100%; grid-template-columns: 1fr; }
  .hero-copy { padding: 3rem var(--pad) 2.75rem; }
  .hero-copy h1 { font-size: clamp(3rem, 10vw, 4.1rem); }
  .hero-copy > p { max-width: 34rem; margin-top: 1.2rem; }
  .hero-actions { margin-top: 1.4rem; }
  .hero-photo { margin: 0; min-height: initial; height: clamp(12rem, 53vw, 17.5rem); }
  .hero-photo img { object-position: 55% 52%; }
  .hero-photo::after { display: none; }
  .nav-shell { padding-block: .65rem; }
  .site-nav { flex-direction: column; align-items: stretch; padding-top: .7rem; gap: 0; }
  .deft-nav-list { display: contents; }
  .site-nav a { border-top: 1px solid var(--line); width: 100%; }
  .split-head { align-items: flex-start; flex-direction: column; }
  .split-head .text-link { padding-block: .25rem; }
  .project-grid, .founder-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .founder-copy { padding: 0; border: 0; }
  .contact-band-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .grid-2 > .prose { padding-right: 0; }
}
@media (max-width: 500px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-grid .service-tile:nth-child(n) { border-right: 0; padding: 1.3rem 1.7rem 1.35rem 0; }
  .service-grid .service-tile:nth-child(n)::after { right: .1rem; top: 1.55rem; }
  .service-tile p { margin-top: .48rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
