/* ============================================================
   Shared section scaffolding
   ============================================================ */
.section { padding-block: clamp(80px, 11vw, 150px); }
.section.alt { background: var(--bg-2); }

.sec-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 68px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .label { display: block; margin-bottom: 18px; }
.sec-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.sec-head h2 em { font-style: italic; color: var(--accent); }
.sec-head p { color: var(--muted); margin: 0; max-width: 52ch; }
.sec-head.center p { margin-inline: auto; }

/* icon chrome */
.ic { width: 22px; height: 22px; stroke: currentColor; fill: none;
      stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   Stack / Toolkit
   ============================================================ */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tool {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 24px 22px;
  transition: border-color .3s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease);
}
.tool:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.tool .tool-ic {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--accent);
  margin-bottom: 18px;
}
.tool .tool-ic img.logo { width: 26px; height: 26px; object-fit: contain; }
.tool .tool-ic .mono {
  font-family: var(--display); font-weight: 600;
  font-size: 21px; color: var(--text); line-height: 1;
}
.tool h3 {
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
}
.tool p { font-size: 13.5px; color: var(--muted); margin: 0 0 16px; line-height: 1.5; }
.dots { display: flex; gap: 6px; }
.dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border);
}
.dots i.on { background: var(--accent); }

/* ============================================================
   Proof of Work
   ============================================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}
.filter {
  background: none; border: none; cursor: pointer;
  font-family: var(--body); font-size: 15px;
  color: var(--muted);
  padding: 4px 0;
  position: relative;
  transition: color .25s var(--ease);
}
.filter::after {
  content: ""; position: absolute; left: 0; bottom: -17px;
  height: 2px; width: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.filter:hover { color: var(--text); }
.filter.active { color: var(--accent); }
.filter.active::after { transform: scaleX(1); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.work-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.work-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  overflow: hidden;
}
.work-thumb image-slot { display: block; width: 100%; height: 100%; }
.work-thumb img.work-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.work-thumb .overlay {
  position: absolute; inset: 0;
  background: rgba(250,246,243,.3);
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.work-card:hover .overlay { opacity: 1; }
.view-btn {
  background: var(--accent); color: var(--bg);
  font-size: 13px; font-weight: 500;
  padding: 10px 20px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  transform: translateY(6px);
  transition: transform .25s var(--ease);
}
.work-card:hover .view-btn { transform: none; }

.work-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.chip {
  align-self: flex-start;
  background: var(--accent);
  color: var(--bg);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.work-body h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 8px;
  line-height: 1.15;
}
.work-body p { font-size: 14px; color: var(--muted); margin: 0 0 18px; line-height: 1.55; flex: 1; }
.work-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-size: 14px; font-weight: 500;
}
.work-link .ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.work-card:hover .work-link .ic { transform: translateX(4px); }
.work-card.is-todo .work-link { color: var(--muted); }

.hidden { display: none !important; }

/* ============================================================
   Off the Clock
   ============================================================ */
.oc-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: clamp(40px, 7vw, 92px);
  align-items: center;
}
.oc-copy .label { display: block; margin-bottom: 18px; }
.oc-copy h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1.06; letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.oc-copy h2 em { font-style: italic; color: var(--accent); }
.oc-copy p { color: var(--muted); margin: 0; max-width: 46ch; }

.oc-photo { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.oc-frame {
  margin: 0;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  border-radius: 200px 200px 18px 18px;
  border: 1px solid var(--accent);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--bg);
}
.oc-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }
.oc-handle {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--accent); font-size: 15px; font-weight: 500;
  text-decoration: none;
}
.oc-handle svg { width: 19px; height: 19px; }
.oc-handle .h {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1.5px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .3s var(--ease); padding-bottom: 2px;
}
.oc-handle:hover .h { background-size: 100% 1.5px; }
.oc-handle-ic { width: 19px; height: 19px; display: block; }

/* dual-craft badges beside the copy */
.oc-crafts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.craft {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px 14px 14px;
  transition: border-color .3s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.craft:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.craft-ic {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px; background: var(--bg-2);
}
.craft-ic img { width: 24px; height: 24px; display: block; }
.craft-txt { display: flex; flex-direction: column; line-height: 1.25; }
.craft-txt strong { font-size: 14.5px; font-weight: 600; color: var(--text); }
.craft-txt span { font-size: 12.5px; color: var(--muted); }

/* realistic contact list under the handle */
.oc-contacts {
  list-style: none;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 340px;
}
.oc-contacts a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 14.5px;
  transition: color .25s var(--ease);
}
.oc-contacts a img {
  width: 26px; height: 26px; flex: none;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  transition: border-color .25s var(--ease), background .25s var(--ease);
  box-sizing: border-box;
}
.oc-contacts a:hover { color: var(--accent); }
.oc-contacts a:hover img { border-color: var(--accent); }
.oc-contacts a span {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1.5px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .3s var(--ease); padding-bottom: 2px;
  white-space: nowrap;
}
.oc-contacts a:hover span { background-size: 100% 1.5px; }

@media (max-width: 860px) {
  .oc-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .oc-copy p { margin-inline: auto; }
  .oc-crafts { justify-content: center; }
  .oc-contacts { margin-inline: auto; }
  .oc-contacts a { justify-content: center; }
  .oc-photo { order: 2; }
}

/* ============================================================
   Fellowship Journey
   ============================================================ */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.journey-col {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 28px;
  transition: border-color .3s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.journey-col:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.journey-head { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.journey-ic {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px; background: var(--bg-2); color: var(--accent);
}
.journey-head h3 { font-family: var(--display); font-weight: 600; font-size: 22px; margin: 0; }
.journey-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.journey-col li {
  font-size: 15px; color: var(--text); line-height: 1.45;
  display: flex; gap: 11px; align-items: flex-start;
}
.journey-col li::before {
  content: ""; flex: none; margin-top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.journey-col li.ghost { color: var(--muted); font-style: italic; }
.journey-col li.ghost::before { background: var(--border); }
.journey-col li .ghost-inline { color: var(--muted); font-style: italic; }

/* ============================================================
   Certificate
   ============================================================ */
.cert-block { display: flex; justify-content: center; }
.cert-cert {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 740px;
  background: var(--text);
  border: 1px solid rgba(199,139,123,.4);
  border-radius: 24px;
  padding: clamp(48px, 8vw, 86px) clamp(28px, 6vw, 70px);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.cert-stripes {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(48deg,
    rgba(250,246,243,.045) 0 2px, transparent 2px 15px);
}
.cert-corner {
  position: absolute; width: 26px; height: 26px;
  border: 1.5px solid rgba(199,139,123,.55);
}
.cert-corner.tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.cert-corner.tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.cert-corner.bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.cert-corner.br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.cert-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cert-emblem {
  width: 90px; height: 90px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(199,139,123,.16);
  border: 1px solid rgba(199,139,123,.45);
  color: var(--accent);
}
.cert-emblem .ic { width: 44px; height: 44px; stroke-width: 1.4; }
.cert-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -0.01em; line-height: 1.05;
  color: var(--bg); margin: 0;
}
.cert-sub {
  font-size: clamp(15px, 2vw, 19px);
  color: rgba(250,246,243,.6);
  margin: 0; max-width: 46ch;
}
.cert-status {
  display: inline-flex; align-items: center; gap: 11px;
  margin-top: 6px;
  background: rgba(250,246,243,.06);
  border: 1px solid rgba(199,139,123,.4);
  color: var(--accent);
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 14px; font-weight: 500; letter-spacing: .02em;
}
.cert-status i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(199,139,123,.18);
}
@media (prefers-reduced-motion: no-preference) {
  .cert-status i { animation: certpulse 2.4s var(--ease) infinite; }
  @keyframes certpulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
}

/* ============================================================
   Work With Me
   ============================================================ */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 64px;
}
.service {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 28px;
  transition: border-color .3s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.service:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.service .svc-ic {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--accent);
  margin-bottom: 20px;
}
.service h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 23px; margin: 0 0 16px;
}
.service ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.service li {
  font-size: 14.5px; color: var(--muted); line-height: 1.5;
  display: flex; gap: 11px; align-items: flex-start;
}
.service li::before {
  content: ""; flex: none; margin-top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* contact panel */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-lead h3 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1;
  margin: 0 0 18px;
}
.contact-lead h3 em { font-style: italic; color: var(--accent); }
.contact-lead p { color: var(--muted); margin: 0 0 28px; max-width: 40ch; }

.contact-meta { display: grid; gap: 16px; }
.contact-meta a.email {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 17px; color: var(--text); text-decoration: none;
  width: fit-content;
}
.contact-meta a.email .txt {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1.5px; background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .3s var(--ease);
  padding-bottom: 2px;
}
.contact-meta a.email:hover .txt { background-size: 100% 1.5px; }
.contact-meta a.email .ic { color: var(--accent); }

.socials { display: flex; gap: 12px; margin-top: 6px; }
.socials a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  transition: color .25s var(--ease), border-color .25s var(--ease),
              background .25s var(--ease), transform .25s var(--ease);
}
.socials a:hover {
  color: var(--bg); background: var(--accent);
  border-color: var(--accent); transform: translateY(-2px);
}

/* form */
.contact-form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font-family: var(--body); font-size: 15px;
  color: var(--text); background: var(--bg);
  border: 1px solid var(--muted);
  border-radius: 12px;
  padding: 14px 16px;
  width: 100%;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B5544' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}
.field input::placeholder, .field textarea::placeholder { color: #B9A795; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(199,139,123,.16);
}
.field textarea { resize: vertical; min-height: 120px; }
.contact-form .btn-primary { width: 100%; justify-content: center; margin-top: 4px; }
.form-note { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--accent);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-block: 30px;
}
.footer .copy { font-size: 14px; color: var(--muted); }
.footer .copy b { color: var(--text); font-weight: 600; font-family: var(--display); }
.footer-nav {
  display: flex; gap: 26px; justify-content: center;
  list-style: none; margin: 0; padding: 0;
}
.footer-nav a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--accent); }
.footer .footer-social { display: flex; gap: 10px; justify-content: flex-end; }
.footer .footer-social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 50%;
  color: var(--text); transition: all .25s var(--ease);
}
.footer .footer-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.built-badge {
  text-align: right;
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  padding: 0 0 24px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .services { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .journey-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tool-grid, .work-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 18px; }
  .footer .footer-social { justify-content: center; }
  .built-badge { text-align: center; }
  .contact-form .btn-primary { width: 100%; }
}
